/* ============================================
   My Pay Dashboard
   ============================================ */

/* Balance cards row */
.mypay-balance-cards {
    display: flex;
    gap: 0.75rem;
    margin-bottom: var(--spacing-md);
}

.mypay-balance-card {
    flex: 1;
    min-width: 0;
    padding: 1rem 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    text-align: left;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.mypay-balance-card__label {
    font-size: 0.8125rem;
    font-weight: 500;
    opacity: 0.85;
    margin-bottom: 0.25rem;
}

.mypay-balance-card__amount {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.mypay-balance-card__detail {
    font-size: 0.75rem;
    opacity: 0.75;
    margin-top: 0.125rem;
}

.mypay-balance-card__indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
    transition: background 0.2s;
}

.mypay-balance-card--selected .mypay-balance-card__indicator {
    background: currentColor;
}

/* Card variants — use org brand colors + global semantic colors */
.mypay-balance-card--earnings {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    color: #fff;
    border-color: rgba(13, 110, 253, 0.3);
    border-color: color-mix(in srgb, var(--brand-primary) 40%, transparent);
}

.mypay-balance-card--paid {
    background: linear-gradient(135deg, #198754, #20c997);
    color: #fff;
    border-color: rgba(21, 115, 71, 0.3);
}

.mypay-balance-card--outstanding {
    background: #fff;
    color: #1f2937;
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.mypay-balance-card--outstanding.mypay-balance-card--selected {
    border-color: #1f2937;
}

.mypay-balance-card--available {
    background: rgba(13, 110, 253, 0.08);
    background: color-mix(in srgb, var(--brand-primary) 18%, rgba(255, 255, 255, 0.5));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--brand-primary);
    border-color: rgba(13, 110, 253, 0.15);
    border-color: color-mix(in srgb, var(--brand-primary) 20%, rgba(255, 255, 255, 0.3));
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

@media (max-width: 767.98px) {
    .mypay-balance-cards {
        flex-wrap: wrap;
    }
    .mypay-balance-card {
        flex: 1 1 calc(50% - 0.375rem);
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .mypay-balance-card {
        flex: 1 1 100%;
    }
}

/* Copy reference button (inline in cards and details) */
.payment-card__copy-ref {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.125rem;
    margin-left: 0.25rem;
    font-size: 0.75rem;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
    vertical-align: middle;
}

.payment-card__copy-ref:hover {
    color: #374151;
    background: #f3f4f6;
}

/* Payment card (bill row) */
.payment-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1rem;
    border: 1px solid #e5e7eb;
    border-left: 3px solid var(--brand-primary, #0d6efd);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background: #fff;
    cursor: pointer;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.payment-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left-color: var(--brand-primary-dark, #0b5ed7);
}

.payment-card__left {
    min-width: 0;
    flex: 1;
}

.payment-card__role {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #1f2937;
}

.payment-card__opp {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-top: 0.125rem;
}

.payment-card__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    flex-shrink: 0;
    margin-left: 1rem;
}

.payment-card__amount {
    font-weight: 700;
    font-size: 1rem;
    color: #1f2937;
}

.payment-card__amount--paid {
    color: #10b981;
}

/* Deposit card (rich inline) */
.deposit-card {
    border: 1px solid #e5e7eb;
    border-left: 3px solid #9ca3af;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    background: #fff;
    overflow: hidden;
}

.deposit-card--paid { border-left-color: #10b981; background: #fafafa; }
.deposit-card--in_transit { border-left-color: #3b82f6; }
.deposit-card--pending { border-left-color: #f59e0b; }
.deposit-card--failed { border-left-color: #ef4444; }
.deposit-card--canceled { border-left-color: #9ca3af; }

.deposit-card--paid .deposit-card__amount { color: #6b7280; }

.deposit-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.875rem 1rem;
    gap: 0.75rem;
}

.deposit-card__amount-group {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.deposit-card__amount {
    font-weight: 700;
    font-size: 1.125rem;
    color: #1f2937;
    letter-spacing: -0.01em;
}

.deposit-card__time {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 500;
}

.deposit-card__status-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    flex-shrink: 0;
}

.deposit-card__bank {
    font-size: 0.6875rem;
    color: #9ca3af;
    letter-spacing: 0.02em;
}

.deposit-card__error {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #fef2f2;
    border-top: 1px solid #fecaca;
    color: #dc2626;
    font-size: 0.8125rem;
    line-height: 1.4;
}

.deposit-card__error i { flex-shrink: 0; margin-top: 0.125rem; }

.deposit-card__bills {
    border-top: 1px solid #f3f4f6;
}

.deposit-card__bill-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
}

.deposit-card__bill-row + .deposit-card__bill-row {
    border-top: 1px solid #f9fafb;
}

.deposit-card__bill-info {
    display: flex;
    flex-direction: column;
    gap: 0.0625rem;
    min-width: 0;
}

.deposit-card__bill-role {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
}

.deposit-card__bill-opp {
    font-size: 0.75rem;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.deposit-card__bill-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.125rem;
    flex-shrink: 0;
}

.deposit-card__bill-amount {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    font-variant-numeric: tabular-nums;
}

.deposit-card__bill-status {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #9ca3af;
}

.deposit-card__bill-status--paid { color: #10b981; }
.deposit-card__bill-status--approved { color: #3b82f6; }
.deposit-card__bill-status--pending { color: #f59e0b; }

@media (max-width: 767.98px) {
    .deposit-card__header {
        flex-direction: column;
        gap: 0.5rem;
    }
    .deposit-card__status-group {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }
    .deposit-card__bill-opp {
        white-space: normal;
    }
}

/* My Pay info button (in filter bar) */
.mypay-info-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #f9fafb;
    color: #6b7280;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.15s, color 0.15s;
}

.mypay-info-btn:hover {
    border-color: #9ca3af;
    color: #374151;
}

/* My Pay Modal */
.mypay-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1055;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.mypay-modal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    max-width: 520px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 1.5rem;
    position: relative;
}

.mypay-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    border: none;
    background: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
    line-height: 1;
}

.mypay-modal__close:hover {
    color: #1f2937;
}

/* Status guide */
.mypay-status-guide__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.mypay-status-guide__item:last-child {
    border-bottom: none;
}

.mypay-status-guide__item .badge {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.mypay-status-guide__item p {
    margin: 0;
    font-size: 0.875rem;
    color: #4b5563;
}

/* Bill detail modal content */
.bill-detail__header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
}

.bill-detail__title {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.bill-detail__opp {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.bill-detail__section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.bill-detail__items {
    margin-bottom: 1rem;
}

.bill-detail__item {
    display: flex;
    justify-content: space-between;
    padding: 0.375rem 0;
    font-size: 0.875rem;
    color: #4b5563;
}

.bill-detail__item--total {
    border-top: 1px solid #e5e7eb;
    margin-top: 0.25rem;
    padding-top: 0.5rem;
    font-weight: 700;
    color: #1f2937;
}

.bill-detail__item-amount {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* Bill detail timeline */
.bill-detail__timeline {
    margin-bottom: 1rem;
}

.bill-detail__event {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.375rem 0;
    position: relative;
}

.bill-detail__event-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.bill-detail__event:first-child .bill-detail__event-dot {
    background: var(--brand-primary, #0d6efd);
}

.bill-detail__event-content {
    display: flex;
    justify-content: space-between;
    flex: 1;
    gap: 0.5rem;
}

.bill-detail__event-label {
    font-size: 0.875rem;
    color: #374151;
}

.bill-detail__event-date {
    font-size: 0.75rem;
    color: #9ca3af;
    flex-shrink: 0;
}

.bill-detail__meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #9ca3af;
    padding-top: 0.5rem;
    border-top: 1px solid #f3f4f6;
}

/* Payment timeline (step indicators with connecting lines) */
.payment-timeline {
    position: relative;
    padding-left: 24px;
}

.payment-timeline-step {
    position: relative;
    padding-bottom: 20px;
    padding-left: 16px;
}

.payment-timeline-step:last-child {
    padding-bottom: 0;
}

.payment-timeline-step::before {
    content: "";
    position: absolute;
    left: -24px;
    top: 8px;
    bottom: -12px;
    width: 2px;
    background: #dee2e6;
}

.payment-timeline-step:last-child::before {
    display: none;
}

.payment-timeline-dot {
    position: absolute;
    left: -30px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #dee2e6;
    background: #fff;
}

.payment-timeline-step.completed .payment-timeline-dot {
    background: #198754;
    border-color: #198754;
}

.payment-timeline-step.active .payment-timeline-dot {
    background: var(--brand-primary, #0d6efd);
    border-color: var(--brand-primary, #0d6efd);
}

.payment-timeline-step.failed .payment-timeline-dot {
    background: #dc3545;
    border-color: #dc3545;
}

.payment-timeline-step.pending .payment-timeline-dot {
    background: #ffc107;
    border-color: #ffc107;
}

/* ===========================================
   Pipeline indicator (4-stage payment progress)
   =========================================== */
.pipeline-indicator {
    display: flex;
    align-items: flex-start;
    padding: 0.5rem 1rem 0.625rem;
}

.pipeline-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.pipeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    background: #fff;
    position: relative;
    flex-shrink: 0;
}

.pipeline-stage--completed .pipeline-dot {
    background: #198754;
    border-color: #198754;
}

.pipeline-stage--active .pipeline-dot {
    background: var(--brand-primary, #0d6efd);
    border-color: var(--brand-primary, #0d6efd);
    animation: pipeline-pulse 1.5s ease-in-out infinite;
}

.pipeline-stage--failed .pipeline-dot {
    background: #dc3545;
    border-color: #dc3545;
}

.pipeline-stage--failed .pipeline-dot::after {
    content: "\00d7";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.pipeline-label {
    font-size: 0.6875rem;
    color: #9ca3af;
    white-space: nowrap;
}

.pipeline-stage--completed .pipeline-label {
    color: #198754;
    font-weight: 500;
}

.pipeline-stage--active .pipeline-label {
    color: var(--brand-primary, #0d6efd);
    font-weight: 500;
}

.pipeline-stage--failed .pipeline-label {
    color: #dc3545;
    font-weight: 500;
}

.pipeline-connector {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    margin-top: 6px;
    min-width: 16px;
}

.pipeline-connector--completed {
    background: #198754;
}

.pipeline-connector--active {
    background: linear-gradient(90deg, #198754, var(--brand-primary, #0d6efd));
}

@keyframes pipeline-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.4); }
    50% { box-shadow: 0 0 0 4px rgba(13, 110, 253, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .pipeline-stage--active .pipeline-dot {
        animation: none;
    }
}

/* Compact pipeline (dots only, no labels) */
.pipeline-indicator--compact {
    padding: 0.25rem 0.5rem;
}

.pipeline-indicator--compact .pipeline-label {
    display: none;
}

.pipeline-indicator--compact .pipeline-dot {
    width: 10px;
    height: 10px;
}

.pipeline-indicator--compact .pipeline-connector {
    margin-top: 4px;
    min-width: 8px;
}

.pipeline-indicator--compact .pipeline-dot::after {
    display: none;
}

/* Pipeline inside payment card group */
.payment-card-group {
    margin-bottom: 0.5rem;
}

.payment-card-group .payment-card {
    margin-bottom: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: #f3f4f6;
}

.payment-card-group > .pipeline-indicator {
    border: 1px solid #e5e7eb;
    border-top: none;
    border-left: 3px solid var(--brand-primary, #0d6efd);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    background: #f9fafb;
}

@media (max-width: 480px) {
    .pipeline-label {
        font-size: 0.625rem;
    }

    .pipeline-indicator {
        padding: 0.375rem 0.75rem 0.5rem;
    }
}

/* Admin pipeline cell (compact dots in table) */
.admin-pipeline-cell .pipeline-indicator {
    padding: 0;
    min-width: 80px;
}

/* Vertical centering for pipeline/readiness indicators in table cells */
td .pipeline-indicator,
td .readiness-dots {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

/* Admin bills filter widths */
.bills-filter-search { max-width: 220px; }
.bills-filter-status { max-width: 160px; }
.bills-filter-month  { max-width: 140px; }
.bills-filter-year   { max-width: 110px; }

/* ===========================================
   Responsive bills — desktop table / mobile cards
   =========================================== */

/* Mobile cards hidden by default (desktop shows table) */
.bills-mobile {
    display: none;
}

@media (max-width: 767.98px) {
    .bills-desktop {
        display: none;
    }
    .bills-mobile {
        display: block;
    }
}

.bills-mobile__card {
    border: 1px solid #e5e7eb;
    border-left: 3px solid var(--brand-primary, #0d6efd);
    border-radius: 8px;
    background: #fff;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.bills-mobile__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
}

.bills-mobile__info {
    min-width: 0;
    flex: 1;
}

.bills-mobile__ref {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #1f2937;
}

.bills-mobile__worker {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-top: 0.125rem;
}

.bills-mobile__amount {
    font-weight: 700;
    font-size: 1rem;
    color: #1f2937;
    flex-shrink: 0;
}

.bills-mobile__footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-top: 1px solid #f3f4f6;
    background: #f9fafb;
}

.bills-mobile__date {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Compact pipeline inside mobile cards */
.bills-mobile__card > .pipeline-indicator--compact {
    border-top: 1px solid #f3f4f6;
    padding: 0.375rem 1rem;
    background: #f9fafb;
}

/* ===========================================
   Deposit card — linked bills
   =========================================== */
.deposit-card__bills {
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #f3f4f6;
}

.deposit-card__bills-title {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #9ca3af;
    margin-bottom: 0.375rem;
}

.deposit-card__bill-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    font-size: 0.8125rem;
}

.deposit-card__bill-row + .deposit-card__bill-row {
    border-top: 1px solid #e5e7eb;
}

.deposit-card__bill-ref {
    color: #374151;
}

.deposit-card__bill-amount {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #1f2937;
}

/* ===========================================
   Payment utility classes (extracted from inline styles)
   =========================================== */
.payment-filter-input  { max-width: 200px; }
.payment-filter-select { max-width: 200px; }
.payment-filter-narrow { max-width: 150px; }
.payment-filter-year   { max-width: 120px; }
.payment-placeholder-sm { height: 80px; }
.payment-placeholder-lg { height: 200px; }
.payment-coming-soon { cursor: pointer; }
.payment-coming-soon__input { pointer-events: none; }

/* Pay badge (merged from payment-cards.css) */
.pay-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    background: linear-gradient(135deg, #198754, #20c997);
    color: #fff;
    white-space: nowrap;
}

/* ===========================================
   Readiness dots (W/O/B/P status indicators)
   =========================================== */
.readiness-dots {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.readiness-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.readiness-dot--green  { background: #198754; }
.readiness-dot--amber  { background: #ffc107; }
.readiness-dot--gray   { background: #d1d5db; }
.readiness-dot--blue   { background: #0d6efd; }
.readiness-dot--red    { background: #dc3545; }

/* ===========================================
   Bulk action bar (sticky bottom)
   =========================================== */
.bulk-action-bar {
    position: sticky;
    bottom: 0;
    z-index: 10;
    background: #fff;
    border-top: 2px solid var(--brand-primary, #0d6efd);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}

.bulk-action-bar__count {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1f2937;
}

/* Quick action cards in balance section */
.quick-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.quick-action-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s;
}

.quick-action-link--approve {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.quick-action-link--approve:hover {
    background: rgba(25, 135, 84, 0.2);
}

.quick-action-link--pay {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.quick-action-link--pay:hover {
    background: rgba(13, 110, 253, 0.2);
}

.quick-action-link--failed {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.quick-action-link--failed:hover {
    background: rgba(220, 53, 69, 0.2);
}

/* Stat cards: inherits from main.css .stat-card, .stat-card-value, .stat-card-label */

/* ====================================   Next Deposit Hero Card
   =========================================== */
.next-deposit-card {
    background: linear-gradient(135deg, #198754 0%, #20c997 50%, #0d9488 100%);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: var(--spacing-md);
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 24px rgba(25, 135, 84, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.next-deposit-card::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -20%;
    width: 60%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.next-deposit-card__header {
    margin-bottom: 0.75rem;
}

.next-deposit-card__status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.next-deposit-card__label {
    font-size: 0.8125rem;
    font-weight: 500;
    opacity: 0.9;
    letter-spacing: 0.02em;
}

.next-deposit-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.125rem 0.625rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.next-deposit-card__badge--in_transit {
    background: rgba(255, 255, 255, 0.25);
}

.next-deposit-card__pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    animation: next-deposit-pulse 1.5s ease-in-out infinite;
}

@keyframes next-deposit-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    50% { opacity: 0.6; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .next-deposit-card__pulse { animation: none; }
}

.next-deposit-card__arrival {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.85;
}

.next-deposit-card__amount-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.next-deposit-card__amount {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.next-deposit-card__bank {
    font-size: 0.8125rem;
    opacity: 0.75;
    white-space: nowrap;
}

.next-deposit-card__bills {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 8px;
    padding: 0.625rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.next-deposit-card__bills-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.7;
    margin-bottom: 0.375rem;
}

.next-deposit-card__bill-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.25rem 0;
}

.next-deposit-card__bill-row + .next-deposit-card__bill-row {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.next-deposit-card__bill-name {
    font-size: 0.8125rem;
    font-weight: 500;
    min-width: 0;
}

.next-deposit-card__bill-opp {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.7;
    margin-top: 0.0625rem;
}

.next-deposit-card__bill-amount {
    font-size: 0.8125rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

@media (max-width: 767.98px) {
    .next-deposit-card {
        padding: 1rem 1.25rem;
    }
    .next-deposit-card__amount {
        font-size: 1.75rem;
    }
    .next-deposit-card__amount-row {
        flex-direction: column;
        gap: 0.25rem;
    }
}

@media (max-width: 480px) {
    .next-deposit-card__amount {
        font-size: 1.5rem;
    }
}

/* ============================================
   Admin Dashboard — Summary Cards
   ============================================ */

.summary-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    animation: fadeUp 0.4s ease;
}

.summary-card {
    background: var(--color-card-bg, #fff);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 14px;
    padding: 1rem 1.15rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* Colored top accent bar */
.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.summary-card--total::before  { background: var(--brand-primary); }
.summary-card--pending::before { background: var(--status-pending, #f59e0b); }
.summary-card--approved::before { background: var(--status-approved, #3b82f6); }
.summary-card--paid::before { background: var(--status-paid, #10b981); }

.summary-card__value {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.summary-card--total .summary-card__value { color: var(--brand-primary); }
.summary-card--pending .summary-card__value { color: var(--status-pending, #f59e0b); }
.summary-card--approved .summary-card__value { color: var(--status-approved, #3b82f6); }
.summary-card--paid .summary-card__value { color: var(--status-paid, #10b981); }

.summary-card__label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-muted, #9ca3af);
    margin-top: 0.2rem;
}

.summary-card__count {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text-muted, #9ca3af);
    margin-top: 0.1rem;
}

@media (max-width: 767.98px) {
    .summary-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ============================================
   Admin Dashboard — Header Tab Navigation
   ============================================ */

.payment-tab-nav {
    display: flex;
    gap: 4px;
    background: #f1f3f5;
    border-radius: 10px;
    padding: 3px;
}

.payment-tab-nav__btn {
    padding: 0.35rem 0.9rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--color-text-light, #6b7280);
    font-family: var(--font-family);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.payment-tab-nav__btn:hover {
    color: var(--color-text, #232323);
}

.payment-tab-nav__btn--active {
    background: var(--color-card-bg, #fff);
    color: var(--color-text, #232323);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}


/* ============================================
   Admin Dashboard — Booking Groups
   ============================================ */

.booking-groups {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.booking-group {
    background: transparent;
    position: relative;
    animation: fadeUp 0.35s ease both;
}

.booking-group:nth-child(1) { animation-delay: 0s; }
.booking-group:nth-child(2) { animation-delay: .04s; }
.booking-group:nth-child(3) { animation-delay: .08s; }
.booking-group:nth-child(4) { animation-delay: .12s; }
.booking-group:nth-child(5) { animation-delay: .16s; }
.booking-group:nth-child(6) { animation-delay: .2s; }

/* Card background — starts halfway through the header pill */
.booking-group::before {
    content: '';
    position: absolute;
    top: 2.1rem;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    z-index: 0;
}

/* --- Header --- */
.booking-group__header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.875rem 1rem 0.35rem;
}

.booking-group__icon {
    height: 2.05rem;
    min-width: 2.05rem;
    width: 2.05rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #fff;
    background: linear-gradient(135deg, rgba(70, 6, 43, 0.85), rgba(94, 4, 59, 0.75));
    background: linear-gradient(135deg, color-mix(in srgb, var(--brand-primary) 85%, transparent), color-mix(in srgb, var(--brand-accent) 75%, transparent));
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--brand-primary) 30%, transparent);
    flex-shrink: 0;
}

.booking-group__pill {
    background: #111827;
    color: #fff;
    font-weight: 800;
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: clamp(0.95rem, 1.3vw, 1.1rem);
    letter-spacing: 0.15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 40%;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.booking-group__pill:hover {
    background: #1f2937;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.booking-group__date-badge {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--brand-primary);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--brand-highlight, #f5e6ef);
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
}

.booking-group__date-badge i {
    font-size: 0.85rem;
    color: var(--brand-primary);
}

.booking-group__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    flex-shrink: 0;
}

.booking-group__total-value {
    font-weight: 800;
    color: var(--brand-primary);
    background: var(--brand-highlight, #f5e6ef);
    padding: 0.15rem 0.55rem;
    border-radius: 8px;
    font-size: 0.82rem;
}

.booking-group__remaining {
    font-weight: 800;
    font-size: 0.82rem;
    padding: 0.15rem 0.55rem;
    border-radius: 8px;
}

.booking-group__remaining--has {
    color: #92400e;
    background: #fef3c7;
}

.booking-group__remaining--zero {
    color: #065f46;
    background: #d1fae5;
}


/* --- Bill Rows --- */
.bill-row {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 240px 85px 140px 110px;
    align-items: center;
    gap: 0 0.75rem;
    padding: 0.45rem 1rem;
    line-height: 1.2;
    transition: background 0.15s ease;
}

.bill-row:hover {
    background: rgba(0, 0, 0, 0.015);
}

.bill-row + .bill-row {
    border-top: 1px solid #f3f4f6;
}

/* Worker column */
.bill-row__worker {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.bill-row__name-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.bill-row__avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    font-weight: 700;
    color: var(--brand-primary);
    background: var(--brand-highlight, #f5e6ef);
    flex-shrink: 0;
    cursor: default;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

.bill-row__avatar--img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Avatar tooltip */
.bill-row__avatar[data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 10;
}

.bill-row__avatar:hover[data-tip]::after {
    opacity: 1;
}

.bill-row__name {
    font-size: 0.92rem;
    font-weight: 800;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bill-row__role {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--color-text-muted, #9ca3af);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bill-row__referral-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--brand-primary);
    background: var(--brand-highlight, #f5e6ef);
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    margin-left: 0.35rem;
    vertical-align: middle;
}

/* Breakdown column (dots + line items) */
.bill-row__breakdown {
    display: flex;
    align-items: center;
    gap: 2rem;
    min-width: 0;
}

.bill-row__line-items {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.line-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.65rem;
    gap: 0.75rem;
    line-height: 1.5;
}

.line-item__label {
    color: var(--color-text-muted, #9ca3af);
    font-weight: 500;
    white-space: nowrap;
}

.line-item__value {
    color: var(--color-text-light, #6b7280);
    font-weight: 600;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    text-align: right;
    min-width: 65px;
}

/* Amount column */
.bill-row__amount {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.bill-row__amount-value {
    font-size: 0.95rem;
    font-weight: 800;
    color: #1f2937;
}

.bill-row__amount-fee {
    font-size: 0.58rem;
    font-weight: 500;
    color: #b0b0b0;
    font-style: italic;
    text-align: center;
}

/* Progress column */
.bill-row__progress {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: stretch;
}

.bill-row__status-row {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.12rem 0.4rem;
    border-radius: 6px;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-badge--pending { background: #fef3c7; color: #92400e; }
.status-badge--approved { background: #dbeafe; color: #1e40af; }
.status-badge--paid { background: #d1fae5; color: #065f46; }
.status-badge--voided { background: #f3f4f6; color: #374151; }
.status-badge--failed { background: #fef2f2; color: #991b1b; }
.status-badge--unassigned { background: #ede9fe; color: #5b21b6; }
.status-badge--funding_pending { background: #dbeafe; color: #1e40af; }
.status-badge--cancelled { background: #f3f4f6; color: #374151; }

.status-badge i {
    font-size: 0.55rem;
}

/* Action buttons */
.bill-row__actions {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    justify-content: flex-end;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-action--approve { background: #d1fae5; color: #059669; }
.btn-action--approve:hover { background: #10b981; color: #fff; transform: scale(1.1); box-shadow: 0 3px 12px rgba(16, 185, 129, 0.35); }

.btn-action--pay { background: #dbeafe; color: #2563eb; }
.btn-action--pay:hover { background: #3b82f6; color: #fff; transform: scale(1.1); box-shadow: 0 3px 12px rgba(59, 130, 246, 0.35); }

.btn-action--void { background: #fef2f2; color: #dc2626; }
.btn-action--void:hover { background: #ef4444; color: #fff; transform: scale(1.1); box-shadow: 0 3px 12px rgba(239, 68, 68, 0.35); }

.btn-action--view { background: #f3f4f6; color: #6b7280; }
.btn-action--view:hover { background: #e5e7eb; color: #374151; transform: scale(1.1); }

.btn-action--disabled { opacity: 0.35; cursor: default; }
.btn-action--disabled:hover { transform: none; box-shadow: none; }


/* --- Readiness Dots (glow variant for admin dashboard) --- */

.booking-group .readiness-dots {
    display: flex;
    flex-direction: row;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

.booking-group .readiness-dot {
    width: 18px;
    height: 18px;
    min-width: 18px;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.booking-group .readiness-dot:hover {
    transform: scale(1.25);
}

.booking-group .readiness-dot--green {
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.5), 0 0 12px rgba(16, 185, 129, 0.2);
}

.booking-group .readiness-dot--amber,
.booking-group .readiness-dot--yellow {
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.5), 0 0 12px rgba(245, 158, 11, 0.2);
}

.booking-group .readiness-dot--red {
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.5), 0 0 12px rgba(239, 68, 68, 0.2);
}


/* --- Animations --- */

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes statusFlash {
    0% { background-color: #d1fae5; }
    100% { background-color: transparent; }
}

.bill-row--flash {
    animation: statusFlash 1.5s ease-out forwards;
}


/* --- Responsive --- */

@media (max-width: 1024px) {
    .bill-row {
        grid-template-columns: 1fr 200px 85px 120px 100px;
    }
}

@media (max-width: 768px) {
    .booking-group__header {
        flex-wrap: wrap;
    }

    .booking-group__meta {
        display: none;
    }

    .booking-group__date-badge {
        font-size: 0.7rem;
    }

    .bill-row {
        grid-template-columns: 1fr auto;
        gap: 0.25rem 0.5rem;
    }

    .bill-row__worker { grid-column: 1; }
    .bill-row__amount { grid-column: 2; grid-row: 1; }
    .bill-row__breakdown { grid-column: 1 / -1; }
    .bill-row__progress { grid-column: 1 / -1; }
    .bill-row__actions { grid-column: 1 / -1; justify-content: flex-start; }
}


/* ============================================
   Admin Dashboard — Buffer Balance Indicator
   ============================================ */

.buffer-indicator {
    background: var(--color-card-bg, #fff);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 12px;
    padding: 0.875rem 1.15rem;
    margin-bottom: 1.25rem;
    animation: fadeUp 0.4s ease 0.1s both;
}

.buffer-indicator__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.buffer-indicator__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-muted, #6b7280);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.buffer-indicator__label i { font-size: 0.9rem; }

.buffer-indicator__value {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.buffer-indicator--healthy .buffer-indicator__value,
.buffer-indicator--healthy .buffer-indicator__label i { color: var(--status-paid, #10b981); }

.buffer-indicator--low .buffer-indicator__value,
.buffer-indicator--low .buffer-indicator__label i { color: var(--status-pending, #f59e0b); }

.buffer-indicator--low {
    border-color: color-mix(in srgb, var(--status-pending, #f59e0b) 30%, var(--color-border, #e5e7eb));
}

.buffer-indicator--empty .buffer-indicator__value,
.buffer-indicator--empty .buffer-indicator__label i { color: var(--color-text-muted, #9ca3af); }

.buffer-indicator__bar {
    height: 6px;
    background: #f3f4f6;
    border-radius: 3px;
    overflow: hidden;
    display: flex;
}

.buffer-indicator__bar-committed {
    background: var(--status-approved, #3b82f6);
    height: 100%;
    transition: width 0.4s ease;
}

.buffer-indicator__bar-available {
    background: var(--status-paid, #10b981);
    height: 100%;
    transition: width 0.4s ease;
}

.buffer-indicator--low .buffer-indicator__bar-available {
    background: var(--status-pending, #f59e0b);
}

.buffer-indicator__bar-empty {
    background: #e5e7eb;
    height: 100%;
}

.buffer-indicator__detail {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--color-text-muted, #9ca3af);
    margin-top: 0.35rem;
}

/* Fund from Buffer button */
.btn-action--fund-buffer { background: #d1fae5; color: #059669; }
.btn-action--fund-buffer:hover { background: #10b981; color: #fff; transform: scale(1.1); box-shadow: 0 3px 12px rgba(16, 185, 129, 0.35); }

/* ============================================
   Date Filters (dashboard level)
   ============================================ */

.date-filters {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* ============================================
   Bill Detail Sidebar
   ============================================ */

.bill-sidebar {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    justify-content: flex-end;
}

.bill-sidebar__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
}

.bill-sidebar__panel {
    position: relative;
    width: 420px;
    max-width: 90vw;
    height: 100%;
    background: #fff;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.bill-sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.bill-sidebar__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.bill-sidebar__close {
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: #6b7280;
    font-size: 1.1rem;
    line-height: 1;
    border-radius: 4px;
    transition: background 0.15s;
}
.bill-sidebar__close:hover {
    background: #f3f4f6;
    color: #111827;
}

.bill-sidebar__body {
    padding: 1.25rem;
    flex: 1;
}

.bill-sidebar__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 1rem;
}

.bill-sidebar__field {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.bill-sidebar__label {
    font-size: 0.8125rem;

    color: #6b7280;
    font-weight: 500;
}


/* Worker readiness dots (inline in bill cards) */
.mypay-worker-dots {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    padding: 0.25rem 1rem;
}

.mypay-worker-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    cursor: help;
}

.mypay-worker-dot--green { background: #198754; }
.mypay-worker-dot--yellow { background: #ffc107; }
.mypay-worker-dot--gray { background: #d1d5db; }
.mypay-worker-dot--red { background: #dc3545; }
.mypay-worker-dot--empty {
    background: #fff;
    border: 2px solid #d1d5db;
}

/* Inline status guide (replaces modal) */
.mypay-status-guide-inline {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}


.bill-sidebar__value {
    font-size: 0.8125rem;
    color: #111827;
    font-weight: 500;
    text-align: right;
}

.bill-sidebar__section {
    margin-top: 1.25rem;
}

.bill-sidebar__section-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.75rem;
}

.bill-sidebar__table {
    width: 100%;
    font-size: 0.8125rem;
}
.bill-sidebar__table td {
    padding: 0.375rem 0;
    border-bottom: 1px solid #f9fafb;
}
.bill-sidebar__table tfoot td {
    border-top: 1px solid #e5e7eb;
    border-bottom: none;
    padding-top: 0.5rem;
}

.bill-sidebar__actions {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

/* Sidebar transitions (Alpine.js) */
.sidebar-enter { transition: opacity 0.2s ease; }
.sidebar-enter-start { opacity: 0; }
.sidebar-enter-end { opacity: 1; }
.sidebar-leave { transition: opacity 0.15s ease; }
.sidebar-leave-start { opacity: 1; }
.sidebar-leave-end { opacity: 0; }

.bill-sidebar__panel {
    animation: slideInRight 0.2s ease-out;
}
@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }

}


/* Deposit card icon */
.deposit-card__icon {
    width: 36px;
    height: 36px;
    background: #d1fae5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #059669;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Deposit card amount group with icon */
.deposit-card__amount-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

/* Deposit booking count */
.deposit-card__count {
    font-size: 0.6875rem;
    color: #9ca3af;
    font-weight: 500;
    margin-left: 0.375rem;
}

/* Deposit bill reference */
.deposit-card__bill-ref {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #9ca3af;
}

/* Deposit bill amount pill */
.deposit-card__bill-amount-pill {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.8125rem;
    background: #d1fae5;
    color: #059669;
    font-variant-numeric: tabular-nums;
}


/* ===========================================
   My Pay Booking Group
   =========================================== */
.mypay-booking-group {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.mypay-booking-group__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border-bottom: 1px solid #f3f4f6;
}

.mypay-booking-group__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e7ff;
    color: #4f46e5;
    font-size: 1rem;
    flex-shrink: 0;
}

.mypay-booking-group__pill {
    background: #111827;
    color: #fff;
    font-weight: 800;
    border-radius: 999px;
    padding: 0.3rem 0.8rem;
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    letter-spacing: 0.15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 50%;
}

.mypay-booking-group__date-badge {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand-primary, #6d28d9);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--brand-highlight, #f5e6ef);
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
}

.mypay-booking-group__date-badge i {
    font-size: 0.8rem;
    color: var(--brand-primary, #6d28d9);
}


/* ===========================================
   My Pay Bill Row (matches admin bill-row layout)
   =========================================== */
.mypay-bill-row {
    display: grid;
    grid-template-columns: minmax(100px, 1fr) minmax(120px, 1.5fr) 80px minmax(120px, 1fr);
    align-items: center;
    gap: 0 0.75rem;
    padding: 0.5rem 1rem;
    line-height: 1.3;
    transition: background 0.15s ease;
}

.mypay-bill-row:hover {
    background: rgba(0, 0, 0, 0.015);
}

.mypay-bill-row + .mypay-bill-row {
    border-top: 1px solid #f3f4f6;
}

.mypay-bill-row__worker {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mypay-bill-row__role {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mypay-bill-row__breakdown {
    display: flex;
    align-items: center;
    min-width: 0;
}

.mypay-bill-row__line-items {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mypay-line-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.7rem;
    gap: 0.5rem;
    line-height: 1.6;
}

.mypay-line-item__label {
    color: #9ca3af;
    font-weight: 500;
    white-space: nowrap;
}

.mypay-line-item__value {
    color: #6b7280;
    font-weight: 600;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    text-align: right;
    min-width: 55px;
}

.mypay-bill-row__amount {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.mypay-bill-row__amount-value {
    font-size: 0.95rem;
    font-weight: 800;
    color: #1f2937;
}

.mypay-bill-row__progress {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: stretch;
}

/* Status section — compact with dots + label + desc */
.mypay-bill-status {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.mypay-bill-status__dots {
    display: flex;
    align-items: center;
    gap: 3px;
}

.mypay-bill-status__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e5e7eb;
}

.mypay-bill-status__dot--active {
    background: #10b981;
}

.mypay-bill-status__text {
    display: flex;
    flex-direction: column;
}

.mypay-bill-status__label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #374151;
}

.mypay-bill-status__desc {
    font-size: 0.6rem;
    color: #9ca3af;
    line-height: 1.3;
}

.mypay-bill-status--actionable .mypay-bill-status__label {
    color: #92400e;
}

.mypay-bill-status--actionable .mypay-bill-status__desc {
    color: #b45309;
}

/* Mobile: stack bill row vertically */
@media (max-width: 767.98px) {
    .mypay-bill-row {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 0.25rem 0.5rem;
        padding: 0.625rem 1rem;
    }
    .mypay-bill-row__worker {
        grid-column: 1;
    }
    .mypay-bill-row__amount {
        grid-column: 2;
        text-align: right;
    }
    .mypay-bill-row__breakdown {
        grid-column: 1;
    }
    .mypay-bill-row__progress {
        grid-column: 2;
    }
}

/* Bills inside booking group */
.mypay-booking-group .mypay-bill-row:first-child {
    border-top: none;
}
