/**
 * Accounts Module
 * ===============
 * Styles for the Accounts navigation group:
 *   - End of Day cash-on-hand report
 *   - (future) operational expense views, ledger drilldowns, etc.
 *
 * All classes use the `is-` prefix and include `.dark` variants.
 */

/* ==========================================================================
   End of Day Report
   ========================================================================== */

.is-eod-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid rgb(229 231 235);
    padding: 28px;
    margin-top: 20px;
}

.dark .is-eod-card {
    background: rgb(17 24 39);
    border-color: rgba(255, 255, 255, 0.08);
}

.is-eod-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgb(229 231 235);
}

.dark .is-eod-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.is-eod-title {
    font-size: 20px;
    font-weight: 700;
    color: rgb(15 23 42);
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.dark .is-eod-title {
    color: rgb(243 244 246);
}

.is-eod-subtitle {
    font-size: 13px;
    color: rgb(100 116 139);
    margin: 0;
}

.dark .is-eod-subtitle {
    color: rgb(148 163 184);
}

.is-eod-headline-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.is-eod-headline {
    text-align: right;
    min-width: 180px;
    padding: 10px 18px;
    background: rgb(240 253 250);
    border: 1px solid rgb(153 246 228);
    border-left: 4px solid rgb(15 118 110);
    border-radius: 6px;
}

.dark .is-eod-headline {
    background: rgba(15, 118, 110, 0.12);
    border-color: rgba(15, 118, 110, 0.35);
    border-left-color: rgb(45 212 191);
}

.is-eod-headline-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgb(15 118 110);
    margin-bottom: 2px;
}

.dark .is-eod-headline-label {
    color: rgb(153 246 228);
}

.is-eod-headline-amount {
    font-size: 22px;
    font-weight: 700;
    color: rgb(13 93 86);
    font-variant-numeric: tabular-nums;
}

.dark .is-eod-headline-amount {
    color: rgb(204 251 241);
}

/* EOD table cell variants */
.is-eod-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.is-eod-account {
    font-weight: 600;
    color: rgb(15 23 42);
}

.dark .is-eod-account {
    color: rgb(243 244 246);
}

.is-eod-type {
    color: rgb(100 116 139);
    font-size: 13px;
}

.dark .is-eod-type {
    color: rgb(148 163 184);
}

.is-eod-pos {
    color: rgb(4 120 87);
    font-weight: 500;
}

.dark .is-eod-pos {
    color: rgb(52 211 153);
}

.is-eod-neg {
    color: rgb(185 28 28);
    font-weight: 500;
}

.dark .is-eod-neg {
    color: rgb(248 113 113);
}

.is-eod-closing {
    font-weight: 700;
    color: rgb(15 23 42);
}

.dark .is-eod-closing {
    color: rgb(243 244 246);
}

.is-eod-totals-label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 11px;
    color: rgb(15 23 42);
}

.dark .is-eod-totals-label {
    color: rgb(243 244 246);
}

.is-eod-totals-val {
    font-weight: 700;
}

@media (max-width: 768px) {
    .is-eod-header {
        flex-direction: column;
    }

    .is-eod-headline {
        align-self: stretch;
        text-align: left;
    }
}

/* ==========================================================================
   Petty Cash — Empty State
   ========================================================================== */

.is-petty-empty {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid rgb(229 231 235);
    padding: 48px 32px;
    margin-top: 20px;
    text-align: center;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.dark .is-petty-empty {
    background: rgb(17 24 39);
    border-color: rgba(255, 255, 255, 0.08);
}

.is-petty-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px auto;
    padding: 14px;
    background: rgb(240 253 250);
    border: 2px dashed rgb(94 211 192);
    border-radius: 50%;
    color: rgb(15 118 110);
}

.dark .is-petty-empty-icon {
    background: rgba(15, 118, 110, 0.12);
    border-color: rgba(94, 211, 192, 0.5);
    color: rgb(153 246 228);
}

.is-petty-empty-icon svg {
    width: 100%;
    height: 100%;
}

.is-petty-empty-title {
    font-size: 20px;
    font-weight: 700;
    color: rgb(15 23 42);
    margin: 0 0 10px 0;
}

.dark .is-petty-empty-title {
    color: rgb(243 244 246);
}

.is-petty-empty-text {
    font-size: 14px;
    color: rgb(100 116 139);
    margin: 0 auto 24px auto;
    max-width: 480px;
    line-height: 1.6;
}

.dark .is-petty-empty-text {
    color: rgb(148 163 184);
}

.is-petty-empty-steps {
    list-style: none;
    padding: 20px 28px;
    margin: 0 auto 28px auto;
    max-width: 520px;
    background: rgb(248 250 252);
    border: 1px solid rgb(226 232 240);
    border-radius: 10px;
    text-align: left;
    font-size: 13.5px;
    color: rgb(51 65 85);
    line-height: 1.9;
}

.dark .is-petty-empty-steps {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    color: rgb(203 213 225);
}

.is-petty-empty-steps li {
    padding: 4px 0;
}

.is-petty-empty-steps strong {
    color: rgb(15 118 110);
    margin-right: 6px;
}

.dark .is-petty-empty-steps strong {
    color: rgb(94 211 192);
}

.is-petty-empty-path {
    display: inline-block;
    font-family: ui-monospace, monospace;
    font-size: 12px;
    padding: 2px 8px;
    background: white;
    border: 1px solid rgb(203 213 225);
    border-radius: 4px;
    color: rgb(15 23 42);
}

.dark .is-petty-empty-path {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgb(226 232 240);
}

.is-petty-empty-chip {
    display: inline-block;
    padding: 2px 10px;
    background: rgb(15 118 110);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 9999px;
}

.is-petty-empty-btn {
    display: inline-block;
    padding: 11px 22px;
    background: rgb(15 118 110);
    color: white;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(15, 118, 110, 0.2);
}

.is-petty-empty-btn:hover {
    background: rgb(13 93 86);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(15, 118, 110, 0.25);
}
