/* ========================================
   PAYOUT PAGE - WMB Design System
   ======================================== */

/* Page Hero with Info Header */
.payout-hero {
    position: relative;
    background: #24272a;
    border-left: 4px solid #0072bc;
    margin-bottom: 2rem;
    padding: 1.25rem;
}

.payout-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payout-title {
    font-family: ''Oswald'', sans-serif;
    text-transform: uppercase;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: 1px;
}

.payout-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.payout-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.payout-info-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
    font-family: ''Oswald'', sans-serif;
}

.payout-info-value {
    font-size: 1rem;
    font-weight: 700;
    color: #0072bc;
}

.payout-notes {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
    padding: 1rem;
    background: rgba(0, 114, 188, 0.05);
    border-left: 2px solid #0072bc;
}

/* Tab Navigation */
.payout-tabs {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #191b1d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    margin-bottom: 2rem;
}

.payout-tabs-nav {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.payout-tabs-nav::-webkit-scrollbar {
    display: none;
}

.payout-tab-btn {
    flex: 1;
    min-width: 120px;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 4px solid transparent;
    color: rgba(255, 255, 255, 0.6);
    font-family: ''Oswald'', sans-serif;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payout-tab-btn:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 114, 188, 0.05);
}

.payout-tab-btn.active {
    color: #0072bc;
    border-bottom-color: #0072bc;
    background: rgba(0, 114, 188, 0.1);
}

.payout-tab-content {
    display: none;
}

.payout-tab-content.active {
    display: block;
}

/* Boat Range Quick Jump */
.payout-range-nav {
    position: sticky;
    top: 60px;
    z-index: 99;
    background: #24272a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: thin;
}

.payout-range-btn {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    background: rgba(0, 114, 188, 0.15);
    border: 1px solid rgba(0, 114, 188, 0.3);
    color: #0072bc;
    font-family: ''Oswald'', sans-serif;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payout-range-btn:hover {
    background: rgba(0, 114, 188, 0.25);
    border-color: #0072bc;
}

.payout-range-btn.active {
    background: #0072bc;
    border-color: #0072bc;
    color: #fff;
}

/* Desktop Table */
.payout-table-wrapper {
    background: #24272a;
    border-left: 4px solid #0072bc;
    overflow-x: auto;
    position: relative;
    max-height: calc(100vh - 250px); /* Adjust this value based on header/footer height */
}

.payout-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 100%;
}

.payout-table thead th {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    background: #191b1d;
    color: #fff;
    font-family: ''Oswald'', sans-serif;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    z-index: 10;
    text-align: center;
}

.payout-table thead th:first-child {
    position: -webkit-sticky;
    position: sticky;
    left: 0;
    top: 0;
    z-index: 11;
    background: #191b1d;
    text-align: left;
    padding-left: 1rem;
}

.payout-table tbody tr {
    transition: all 0.2s ease;
}

.payout-table tbody tr:hover {
    background: rgba(0, 114, 188, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 114, 188, 0.1);
}

.payout-table tbody td {
    padding: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    text-align: center;
}

.payout-table tbody td:first-child {
    position: sticky;
    left: 0;
    background: #24272a;
    font-weight: 700;
    color: #0072bc;
    z-index: 5;
    text-align: left;
    padding-left: 1rem;
}

.payout-table tbody tr:hover td:first-child {
    background: rgba(0, 114, 188, 0.1);
}

/* Empty payout indicator - only custom style needed */
.payout-amount.empty {
    color: rgba(255, 255, 255, 0.3);
}


/* Mobile: Card Layout with Scrollable Blocks */
@media (max-width: 991px) {
    .payout-hero {
        padding: 1.5rem;
    }

    .payout-title {
        font-size: 1.75rem;
    }

    .payout-info-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .payout-tabs {
        top: 70px;
    }

    .payout-range-nav {
        top: 55px;
    }

    .payout-table-wrapper {
        display: none;
    }

    .payout-mobile-cards {
        display: block;
    }

    .payout-card {
        background: #24272a;
        border-left: 4px solid #0072bc;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 1rem;
    }

    .payout-card-header {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem;
        background: rgba(0, 114, 188, 0.05);
    }

    .payout-card-boats {
        font-family: ''Oswald'', sans-serif;
        font-size: 1.5rem;
        font-weight: 700;
        color: #0072bc;
        min-width: 30px;
        flex-shrink: 0;
    }

    .payout-card-positions {
        flex: 1;
        overflow: hidden;
    }

    .payout-positions-scroller {
        display: flex;
        gap: 0.5rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        scroll-behavior: smooth;
        padding-right: 1rem;
    }

    .payout-positions-scroller::-webkit-scrollbar {
        display: none;
    }

    .payout-position-block {
        flex-shrink: 0;
        display: flex;
        gap: 0.5rem;
        scroll-snap-align: start;
        min-width: 85%;
    }

    .payout-position-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        padding: 0.5rem;
        background: rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .payout-position-label {
        font-size: 0.625rem;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.6);
        font-family: ''Oswald'', sans-serif;
        letter-spacing: 0.5px;
    }

    .payout-position-value {
        font-size: 0.875rem;
        font-weight: 700;
    }

    .payout-block-indicators {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .payout-block-dot {
        width: 8px;
        height: 8px;
        background: rgba(255, 255, 255, 0.3);
        transition: all 0.2s ease;
    }

    .payout-block-dot.active {
        background: #0072bc;
        width: 24px;
    }
}

@media (min-width: 992px) {
    .payout-mobile-cards {
        display: none;
    }

    .payout-table-wrapper {
        display: block;
        max-height:60vh;
    }
}

/* Style for condensed table */
.payout-table-condensed {
    width: auto;
    min-width: 0;
}

.payout-table-condensed th,
.payout-table-condensed td {
    white-space: nowrap;
}

/* Scroll Shadow Indicators */
.payout-table-wrapper::before,
.payout-table-wrapper::after {
    content: '''';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30px;
    pointer-events: none;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.payout-table-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #24272a, transparent);
}

.payout-table-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #24272a, transparent);
}

.payout-table-wrapper.has-scroll-left::before {
    opacity: 1;
}

.payout-table-wrapper.has-scroll-right::after {
    opacity: 1;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    background: #191b1d;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-item a {
    color: #0072bc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: #00aacb;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.9);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "";
    color: rgba(255, 255, 255, 0.4);
}
