.note-box {
  border-left: 4px solid #ccc;
  background-color:#f9f9f9;
  padding: 10px;
  margin: 15px 0;
  font-size: 0.85em;
  font-style: italic;
}

.legend-container {
    padding:0.7rem 1rem;
}

.legend-compact {
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
    background-color: #f1f3f4;
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    line-height: 1.3;
}

.legend-compact .legend-title {
    font-weight: bold;
    margin-bottom: 0.4rem;
    color: #333;
}

.legend-compact .legend-subtitle {
    font-weight: bold;
    margin-bottom: 0.6rem;
    color: #555;
    font-size: 0.8rem;
}

.legend-compact .legend-table {
    width: 100%;
    border-collapse: collapse;
}

.legend-compact .legend-table td {
    padding: 0.3rem 0.5rem;
    vertical-align: top;
    border-bottom: 1px solid #e9ecef;
}

.legend-compact .legend-table td:first-child {
    font-weight: bold;
    width: 22px;
    color: #333;
}

.legend-compact .legend-table td:last-child {
    color: #555;
    font-size: 0.8rem;
}

.legend-compact .legend-table tr:last-child td {
    border-bottom: none;
}

.aside-soft-wrapper {
    display: flex;
    justify-content: center;
}

.aside-soft {
  background-color: #FFF9DB;
  padding: 1.5em 1.2em 2.5em 1.2em;
  width: 300px;
  font-size: 1.05em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  clip-path: polygon(0 0, 100% 10px, 100% 100%, 0 90%);
  border-left: 5px solid #F4E285;
  margin-right: 2rem;
  margin-bottom: 1rem;
}

@media (max-width: 1024px) {
    .aside-soft-wrapper {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .aside-soft {
        width: 90%;
        max-width: 300px;
        margin: 0 0 1rem 0;
        flex-shrink: 0;
    }
}

.wrapperA {
  width: 80%;
  margin: auto;
  padding: 20px 5px;
}

.wrapperB {
  width: 90%;
  margin: auto;
  padding-top: 1.6em;
}

/* Table wrapper */
#custom-table.responsive-table-wrapper {
    position: relative;
    margin: 1rem 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #dee2e6;
}

/* Mobile scroll notice */
#custom-table .scroll-notice {
    display: none;
    font-size: 0.875rem;
    color: #6c757d;
    padding: 0.85rem 1rem;
    background: #e9ecef;
    border-bottom: 2px solid #dee2e6;
    margin: 0;
}

/* Scrollable container */
#custom-table .table-scroll {
    overflow: auto;
    min-height: 350px;
    max-height: calc(80vh - 50px);
    scrollbar-width: thick;
    scrollbar-color: #888 #f1f1f1;
}

/* Custom scrollbar styling */
#custom-table .table-scroll::-webkit-scrollbar {
    height: 12px;
    width: 12px;
}

#custom-table .table-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

#custom-table .table-scroll::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 6px;
}

#custom-table .table-scroll::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Table base styles */
#custom-table table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    font-size: 0.8rem;
    position: relative;
}

/* Cell styles */
#custom-table th,
#custom-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
    border-right: 1px solid #dee2e6;
    line-height: 1.2;
}

/* Header styling */
#custom-table thead th {
    background-color: #123C73;
    color: #fff;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* First column styling */
#custom-table td:first-child,
#custom-table th:first-child {
    background-color: #74818C;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 180px;
    position: sticky;
    left: 0;
    z-index: 5;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
    border-right: 2px solid #fff;
    text-align: left;
}

#custom-table thead th:first-child {
    z-index: 15;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
}

/* Row banding */
#custom-table tbody tr:nth-child(even) td:not(:first-child) {
    background-color: #f8f9fa;
    min-width: 120px;
}

#custom-table tbody tr:nth-child(even) td:first-child {
    background-color: #74818C;
}

/* Hover effects */
#custom-table tbody tr:hover td:not(:first-child) {
    background-color: #fff3cd;
}

#custom-table tbody tr:hover td:first-child {
    background-color: #b3d9ff;
    color: #123C73;
    font-weight: 700;
}

/* Focus styles */
#custom-table table:focus-within {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Check mark styling (formerly x-mark) */
#custom-table td .x-mark {
    color: #000 !important;
    font-weight: bold !important;
    font-size: 18px !important;
    display: inline-block !important;
    text-align: center !important;
    width: 100% !important;
    line-height: 1 !important;
}

#custom-table td:has(.x-mark) {
    text-align: center !important;
    vertical-align: middle !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    #custom-table .scroll-notice {
        display: block;
    }
    
    #custom-table table {
        min-width: 500px;
        font-size: 0.8rem;
    }
    
    #custom-table th,
    #custom-table td {
        padding: 0.5rem;
    }
    
    #custom-table td:first-child,
    #custom-table th:first-child {
        min-width: 140px;
        font-size: 0.85rem;
    }
    
    #custom-table.responsive-table-wrapper {
        min-height: 300px;
        max-height: 70vh;
    }
    
    #custom-table .table-scroll {
        min-height: 250px;
        max-height: calc(70vh - 50px);
    }
    
    #custom-table .table-scroll::-webkit-scrollbar {
        height: 16px;
        width: 16px;
    }
    
    #custom-table .table-scroll::-webkit-scrollbar-thumb {
        background: #666;
        border-radius: 8px;
    }
    
    #custom-table td .x-mark {
        font-size: 22px !important;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    #custom-table table {
        min-width: 400px;
    }
    
    #custom-table th,
    #custom-table td {
        padding: 0.4rem;
    }
    
    #custom-table.responsive-table-wrapper {
        min-height: 250px;
        max-height: 60vh;
    }
    
    #custom-table .table-scroll {
        min-height: 200px;
        max-height: calc(60vh - 50px);
    }
    
    #custom-table .table-scroll::-webkit-scrollbar {
        height: 20px;
        width: 20px;
    }
    
    #custom-table .table-scroll::-webkit-scrollbar-thumb {
        background: #444;
        border-radius: 10px;
    }
    
    #custom-table td .x-mark {
        font-size: 20px !important;
    }
}