.wse-je-table-wrap {
    overflow: visible;
    margin: 14px 0;
    width: 100%;
}

.wse-je-table-scroll {
    overflow-x: auto;
    overflow-y: visible;
}

.wse-je-table {
    width: 100%;
    min-width: 640px;
    table-layout: auto;
    border-collapse: collapse;
    font-size: 13px;
    line-height: 1.4;
}

.wse-je-table th,
.wse-je-table td {
    padding: 12px 10px;
    vertical-align: top;
    text-align: left;
    white-space: normal;
    word-break: break-word;
    max-width: var(--wse-je-max-col-width, 400px);
}

.wse-je-table th {
    cursor: pointer;
    font-weight: 600;
    background: #DECBA7;
    color: #000000;
    white-space: normal;
    overflow: visible;
}

.wse-je-table th.is-sorted {
    color: #fff;
}

.wse-je-table th.is-sorted-col,
.wse-je-table td.is-sorted-col {
    background: rgb(172 152 116);
}

.wse-je-table tbody tr:nth-child(odd) td.is-sorted-col {
    background: rgb(115 89 10 / 15%);
}

.wse-je-table tbody tr:nth-child(even) td.is-sorted-col {
    background: rgb(172 152 116 / 17%);
}

.wse-je-table td[data-key] {
    font-variant-numeric: tabular-nums;
}
.wse-je-table-container.no-deltas .wse-je-table td[data-key='rank'],
.wse-je-table-container.no-deltas .wse-je-table th[data-key='rank'] {
    width: 40px;
}
.wse-je-table td[data-key='rank'],
.wse-je-table th[data-key='rank'] {
    width: 66px;
}



.wse-je-table td[data-key='rank'],
.wse-je-table td[data-key='global_prime_market_index'],
.wse-je-table td[data-key='demand_scale'],
.wse-je-table td[data-key='demand_momentum'],
.wse-je-table td[data-key='luxury_supply'] {
    text-align: left;
    font-weight: 600;

}

.wse-je-table td[data-key='globalprimemarketindex'],
.wse-je-table th[data-key='globalprimemarketindex'] {
    font-weight: 700;
}

.wse-je-table td[data-key='destination'] {
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    align-items: center;
    overflow: hidden;
    min-width: 350px;
}

.wse-je-destination-text {
    display: inline-block;
    white-space: nowrap;
    max-width: 100%;
}

.wse-je-table[data-width-mode='header'] {
    table-layout: fixed;
}

.wse-je-flag {
    height: 12px;
    margin-right: 4px;
    min-width: 20px;
}
.wse-je-table tbody{
    animation: fadeIn 0.3s ease-in-out;
}
.wse-je-table tbody tr:nth-child(odd) {
    background: #f7f4ee;
}

.wse-je-table tbody tr:nth-child(even) {
    background: #ffffff;
}

.wse-je-table tbody tr:nth-child(odd) td {
    background: #f7f4ee;
}

.wse-je-table tbody tr:nth-child(even) td {
    background: #ffffff;
}

.wse-je-table tbody tr:hover td {
    box-shadow: inset 0 1px 0 rgb(172 152 116), inset 0 -1px 0 rgb(172 152 116);
}

.wse-je-table tbody tr:hover td:first-child {
    box-shadow: inset 1px 0 0 rgb(172 152 116), inset 0 1px 0 rgb(172 152 116), inset 0 -1px 0 rgb(172 152 116);
}

.wse-je-table tbody tr:hover td:last-child {
    box-shadow: inset -1px 0 0 rgb(172 152 116), inset 0 1px 0 rgb(172 152 116), inset 0 -1px 0 rgb(172 152 116);
}

@media (max-width: 768px) {
    .wse-je-table {
        display: block;
        width: 100%;
    }

    .wse-je-table thead,
    .wse-je-table tbody {
        display: block;
        width: 100%;
    }

    .wse-je-table tr {
        display: flex;
        width: 100%;
    }

    .wse-je-table th,
    .wse-je-table td {
        display: block;
        flex: 0 0 auto;
    }

    .wse-je-table th[data-key='rank'],
    .wse-je-table td[data-key='rank'] {
        flex: 0 0 48px;
        width: 48px;
        max-width: 48px;
    }

    .wse-je-table th[data-key='destination'],
    .wse-je-table td[data-key='destination'] {
        flex: 0 0 160px;
        max-width: 160px;
    }

    .wse-je-table td[data-key='destination'] {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .wse-je-table th:not([data-key='rank']):not([data-key='destination']),
    .wse-je-table td:not([data-key='rank']):not([data-key='destination']) {
        flex: 0 0 72px;
        max-width: 72px;
    }

    .wse-je-table {
        font-size: 14px;
        min-width: 360px;
        table-layout: auto;
    }

    .wse-je-table th,
    .wse-je-table td {
        padding: 10px;
    }

    .wse-je-table-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .wse-je-table-tabs,
    .wse-je-item-tabs {
        gap: 6px;
    }

    .wse-je-table-tab,
    .wse-je-item-tab {
        font-size: 13px;
        padding: 6px 8px;
    }

    .wse-je-table th {
        white-space: normal;
    }

    .wse-je-table td[data-key='rank'],
    .wse-je-table th[data-key='rank'] {
        width: 44px;
        min-width: unset;
    }

    .wse-je-table td[data-key='destination'],
    .wse-je-table th[data-key='destination'] {
        min-width: 160px;
    }
}

@media (max-width: 480px) {
    .wse-je-table {
        font-size: 13px;
        min-width: 340px;
    }

    .wse-je-table th {
        font-size: 12px;
    }

    .wse-je-table td[data-key='destination'],
    .wse-je-table th[data-key='destination'] {
        min-width: 140px;
    }
}

.wse-je-table th.is-sortable::after {
    content: '';
}

.wse-je-table th.is-sorted.is-asc::after {
    content: '';
}

.wse-je-table th.is-sorted.is-desc::after {
    content: '';
}

.wse-je-table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0 12px;
    flex-direction: row;
}

.wse-je-table-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wse-je-table-tab {
    border: 1px solid #d6d1c7;
    background: #fff;
    color: #333;
    padding: 6px 10px;
    border-radius: 2px;
    cursor: pointer;
    font-size: 14px;
}

.wse-je-table-tab.is-active {
    background: #0a6b73;
    color: #fff;
    border-color: #0a6b73;
}

.wse-je-table-panel {
    display: none;
}

.wse-je-table-panel.is-active {
    display: block;
}

.wse-je-item-panel {
    display: none;
}

.wse-je-item-panel.is-active {
    display: block;
}

.wse-je-item-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.wse-je-item-tab {
    border: 1px solid #d6d1c7;
    background: #fff;
    color: #333;
    padding: 6px 10px;
    border-radius: 2px;
    cursor: pointer;
    font-size: 14px;
}

.wse-je-item-tab.is-active {
    background: #0a6b73;
    color: #fff;
    border-color: #0a6b73;
}

.wse-je-item {
    border: 1px solid #e5e7eb;
    border-radius: 2px;
    padding: 18px 20px;
    background: #fff;
    max-width: 720px;
}

.wse-je-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.wse-je-item-title {
    font-size: 20px;
    font-weight: 600;
}

.wse-je-item-subline {
    font-size: 16px;
    margin: 6px 0 8px;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.wse-je-item-subline-value {
    font-weight: 600;
    color: #111827;
}

.wse-je-item-body {
    display: flex;
    gap: 18px;
}

.wse-je-item-main {
    flex: 1;
    min-width: 0;
}

.wse-je-item-image img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.wse-je-item-image {
    margin-left: auto;
    border-radius: 500px;
    overflow: hidden;
    width: 100px;
    height: 100px;
}

.wse-je-item-rank-big {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    margin: 6px 0 10px;
}

.wse-je-item-primary {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.wse-je-item-description {
    font-size: 14px;
    color: #374151;
    margin-bottom: 12px;
}

.wse-je-item-description-full {
    display: none;
    font-family: inherit;
}

.wse-je-item-description[data-expanded='1'] .wse-je-item-description-full {
    display: inline;
}

.wse-je-item-description[data-expanded='1'] .wse-je-item-description-short {
    display: none;
}

.wse-je-item-description {
    font-family: inherit;
    transition: color 0.2s ease;
    line-height: 1.4;
}

.wse-je-item-description .wse-je-item-description-full {
    animation: wse-je-fade-in 0.2s ease;
}

@keyframes wse-je-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.wse-je-item-more {
    margin-left: 6px;
    border: none;
    background: none;
    color: #0a6b73;
    cursor: pointer;
    font-size: 13px;
    text-decoration: underline;
    padding: 0;
}

.wse-je-item-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.wse-je-item-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 24px;
    font-size: 18px;
}

.wse-je-item-metric-value {
    font-weight: 700;
}

.wse-je-item-metric-label {
    font-size: 16px;
    font-weight: 600;
}

.wse-je-item-metric {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
}

.wse-je-item-link a {
    color: #0a6b73;
    font-weight: 600;
}

.wse-je-item-link {
    margin-top: 16px;
}

@media (max-width: 768px) {
    .wse-je-item {
        padding: 16px;
    }

    .wse-je-item-body {
        flex-direction: column;
        align-items: flex-start;
    }

    .wse-je-item-image {
        margin-left: 0;
    }

    .wse-je-item-image img {
        width: 120px;
        height: 120px;
    }

    .wse-je-item-primary-value {
        font-size: 44px;
    }

    .wse-je-item-metrics {
        font-size: 16px;
        gap: 10px 16px;
    }

    .wse-je-item-metric-label {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .wse-je-item-title {
        font-size: 18px;
    }

    .wse-je-item-primary-value {
        font-size: 38px;
    }

    .wse-je-item-metrics {
        flex-direction: column;
        gap: 8px;
    }
    .wse-je-table-container {
        margin: 0 -20px;
    }
}

.wse-je-item-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    font-size: 14px;
}

.wse-je-item-metric {
    display: inline-flex;
    gap: 6px;
    color: #374151;
}

.wse-je-item-metric-label {
    font-weight: 500;
}

.wse-je-delta {
    font-size: 8px;
    vertical-align: super;
    margin-left: 0;
}

.wse-je-delta.is-up {
    color: #1a7f37;
}

.wse-je-delta.is-down {
    color: #b42318;
}

.wse-je-table-container[data-show-changes='0'] .wse-je-delta {
    display: none;
}

.wse-je-table-toggle {
    font-size: 13px;
    color: #1f2937;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wse-je-table-toggle input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.wse-je-toggle-ui {
    width: 38px;
    height: 22px;
    background: #d1d5db;
    border-radius: 999px;
    position: relative;
    transition: background 0.2s ease;
    display: inline-block;
    flex-shrink: 0;
}

.wse-je-toggle-ui::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease;
}

.wse-je-table-toggle input:checked + .wse-je-toggle-ui {
    background: #0a6b73;
}

.wse-je-table-toggle input:checked + .wse-je-toggle-ui::after {
    transform: translateX(16px);
}

.wse-je-toggle-label {
    user-select: none;
}

.wse-je-tooltip {
    position: relative;
    z-index: 1;
}

.wse-je-tooltip-box {
    position: fixed;
    background: rgba(17, 24, 39, 0.95);
    color: #fff;
    padding: 8px 10px;
    border-radius: 2px;
    font-size: 12px;
    line-height: 1.3;
    max-width: 280px;
    pointer-events: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    z-index: 9999;
}

.wse-je-sort-indicator {
    display: inline-flex;
    margin-left: 2px;
    vertical-align: middle;
}

.wse-je-sort-indicator::before {
    content: '▾';
    font-size: 10px;
    color: rgb(0 0 0 / 85%);
}

.wse-je-table th.is-sorted.is-asc .wse-je-sort-indicator::before {
    content: '▴';
    color: #fff;
}

.wse-je-table th.is-sorted.is-desc .wse-je-sort-indicator::before {
    content: '▾';
    color: #fff;
}
