/**
 * Accolade Trademark Fee Schedule Section 1 Table CSS
 */

.accolade-tm-fs1t {
    width: 100%;
    box-sizing: border-box;
}

.accolade-tm-fs1t__container {
    width: 100%;
    max-width: 1340px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

/* Header & Filters Layout */
.accolade-tm-fs1t__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.accolade-tm-fs1t__header-text {
    text-align: left;
}

/* Double-Dot Label */
.accolade-tm-fs1t__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    color: #1d82ea;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.accolade-tm-fs1t__dots {
    position: relative;
    width: 30px;
    height: 16px;
    display: inline-block;
}

.accolade-tm-fs1t__dots span {
    position: absolute;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
}

.accolade-tm-fs1t__dots span:first-child {
    left: 0;
    background-color: #1d82ea;
}

.accolade-tm-fs1t__dots span:last-child {
    left: 12px;
    background-color: #0A3681;
}

/* Heading Title */
.accolade-tm-fs1t__heading {
    font-family: "Inter", sans-serif;
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: 800;
    line-height: 1.2;
    color: #062250;
    margin: 0;
}

/* Filters Panel */
.accolade-tm-fs1t__filters {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Inputs styling */
.accolade-tm-fs1t__search-input {
    width: 260px;
    height: 48px;
    border: 1px solid #d5dae2;
    border-radius: 0;
    padding: 0 18px;
    color: #062250;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s ease;
}

.accolade-tm-fs1t__search-input:focus {
    border-color: #1d82ea;
}

.accolade-tm-fs1t__select-wrapper {
    position: relative;
    display: inline-block;
}

.accolade-tm-fs1t__select {
    width: 220px;
    height: 48px;
    border: 1px solid #d5dae2;
    border-radius: 0;
    padding: 0 40px 0 18px;
    color: #062250;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    background-color: #ffffff;
    box-sizing: border-box;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23062250' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 16px;
    transition: border-color 0.3s ease;
}

.accolade-tm-fs1t__select:focus {
    border-color: #1d82ea;
}

/* Horizontal scrolling wrapper for mobile responsive */
.accolade-tm-fs1t__table-wrapper {
    width: 100%;
    overflow-x: auto;
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.04);
    margin-bottom: 40px;
    border: 1px solid #eaedf2;
    box-sizing: border-box;
}

/* Table grid formatting */
.accolade-tm-fs1t__table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    min-width: 0px; /* guarantees table text doesn't squish */
    background-color: #ffffff;
    box-sizing: border-box;
}

.accolade-tm-fs1t__table thead th {
    background-color: #062250;
    color: #ffffff;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    padding: 18px 24px;
    border: none;
    box-sizing: border-box;
    position: relative;
    white-space: nowrap;
}

.accolade-tm-fs1t__table thead th.sortable {
    cursor: pointer;
    user-select: none;
    padding-right: 32px;
    transition: background-color 0.2s ease;
}

.accolade-tm-fs1t__table thead th.sortable:hover {
    background-color: #041738;
}

/* Sorting arrows css implementation */
.accolade-tm-fs1t__table th.sortable .sort-arrows {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-block;
    width: 12px;
    height: 12px;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.accolade-tm-fs1t__table th.sortable:hover .sort-arrows {
    opacity: 1;
}

.accolade-tm-fs1t__table th.sortable .sort-arrows::before,
.accolade-tm-fs1t__table th.sortable .sort-arrows::after {
    content: '';
    position: absolute;
    left: 3px;
    border: 4px solid transparent;
    width: 0;
    height: 0;
}

/* Default state arrows */
.accolade-tm-fs1t__table th.sortable .sort-arrows::before {
    border-bottom-color: #ffffff;
    top: -1px;
}

.accolade-tm-fs1t__table th.sortable .sort-arrows::after {
    border-top-color: #ffffff;
    bottom: -1px;
}

/* Active Sorting States */
.accolade-tm-fs1t__table th.sort-asc .sort-arrows::after {
    opacity: 0.2;
}

.accolade-tm-fs1t__table th.sort-desc .sort-arrows::before {
    opacity: 0.2;
}

.accolade-tm-fs1t__table th.sort-asc,
.accolade-tm-fs1t__table th.sort-desc {
    background-color: #041738;
}

.accolade-tm-fs1t__table th.sort-asc .sort-arrows,
.accolade-tm-fs1t__table th.sort-desc .sort-arrows {
    opacity: 1;
}

/* Alignment utilities */
.accolade-tm-fs1t__table th.text-center,
.accolade-tm-fs1t__table td.text-center {
    text-align: center;
}

.accolade-tm-fs1t__table tbody td {
    font-family: "Inter", sans-serif;
    font-size: 14px;
    color: #062250;
    padding: 18px 24px;
    border-bottom: 1px solid #eaedf2;
    box-sizing: border-box;
    vertical-align: middle;
}

.accolade-tm-fs1t__table tbody tr {
    transition: background-color 0.25s ease;
}

.accolade-tm-fs1t__table tbody tr:hover {
    background-color: #f1f5fa;
}

.accolade-tm-fs1t__table tbody tr:last-child td {
    border-bottom: none;
}

.accolade-tm-fs1t__table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.accolade-tm-fs1t__table tbody tr:nth-child(even) {
    background-color: #f9fbfd;
}

.accolade-tm-fs1t__table tbody td strong {
    font-weight: 700;
    color: #062250;
}

/* Region pill indicator badge */
.accolade-tm-fs1t__badge {
    display: inline-block;
    padding: 6px 16px;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #10387e;
    background-color: #e8f2fe;
    border-radius: 4px;
    text-align: center;
    white-space: nowrap;
}

/* Note cards grid footer layout */
.accolade-tm-fs1t__footer-grid {
    display: grid;
    grid-template-columns: repeat(var(--atf1t-footer-columns, 3), minmax(0, 1fr));
    gap: 30px;
    margin-top: 40px;
    box-sizing: border-box;
}

/* Note cards container */
.accolade-tm-fs1t__note-card {
    background-color: #f4f6f9;
    border-left: 3px solid #1d82ea;
    padding: 30px;
    border-radius: 0;
    box-sizing: border-box;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Note Card Typography */
.accolade-tm-fs1t__note-title {
    font-family: "Inter", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #062250;
    margin: 0 0 12px 0;
}

.accolade-tm-fs1t__note-desc {
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #848484;
    margin: 0;
}

/* Responsive configurations */
@media (max-width: 1024px) {
    .accolade-tm-fs1t__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .accolade-tm-fs1t__filters {
        width: 100%;
    }
    
    .accolade-tm-fs1t__search-input,
    .accolade-tm-fs1t__select-wrapper,
    .accolade-tm-fs1t__select {
        width: 100%;
        flex: 1;
    }

    .accolade-tm-fs1t__footer-grid {
        grid-template-columns: repeat(var(--atf1t-footer-columns-tablet, 2), minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .accolade-tm-fs1t__filters {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .accolade-tm-fs1t__footer-grid {
        grid-template-columns: repeat(var(--atf1t-footer-columns-mobile, 1), minmax(0, 1fr));
    }
    
    .accolade-tm-fs1t__container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .accolade-tm-fs1t__note-card {
        padding: 24px 20px;
    }

    /* Mobile Table Card Layout */
    .accolade-tm-fs1t__table-wrapper {
        border: none;
        box-shadow: none;
        background: transparent;
    }

    .accolade-tm-fs1t__table, 
    .accolade-tm-fs1t__table thead, 
    .accolade-tm-fs1t__table tbody, 
    .accolade-tm-fs1t__table th, 
    .accolade-tm-fs1t__table td, 
    .accolade-tm-fs1t__table tr {
        display: block;
    }

    .accolade-tm-fs1t__table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .accolade-tm-fs1t__table tbody tr {
        margin-bottom: 15px;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        padding: 0;
        background-color: #fff;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        overflow: hidden;
    }

    .accolade-tm-fs1t__table tbody tr:hover {
        background-color: #fff;
    }

    .accolade-tm-fs1t__table td {
        border: none;
        position: relative;
        padding: 15px 20px 15px 50% !important;
        text-align: right !important;
        margin-bottom: 0;
        border-bottom: 1px solid #f1f1f1;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        background-color: #fdfdfd;
        box-sizing: border-box;
    }
    
    .accolade-tm-fs1t__table td:first-child {
        background-color: #f4f4f4;
    }

    .accolade-tm-fs1t__table td:last-child {
        border-bottom: none;
    }

    .accolade-tm-fs1t__table td::before {
        position: absolute;
        top: 50%;
        left: 20px;
        transform: translateY(-50%);
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: 600;
        color: #555;
        content: attr(data-label);
    }
}
