/* SL-1446: shared "sheet" look for the accounting reports (Profit & Loss now; Balance Sheet and Trial
   Balance reuse these classes). Presentation only. Dark sheet, colours as Mazhar specified (11-16). */

.rs-wrap {
    --rs-page: #0f141a;
    --rs-sheet: #151b23;
    --rs-band: #1d2733;
    --rs-total: #19222c;
    --rs-hair: #28323f;
    --rs-rule: #4a5869;
    --rs-text: #e9eef4;
    --rs-muted: #a3afbd;
    --rs-code: #93a0b0;
    --rs-final: #14283d;
    --rs-red: #ff9488;
    --rs-green: #6fd3a0;
    margin: 24px 0;
}

.rs-sheet {
    max-width: 920px;
    margin: 0 auto;
    background: var(--rs-sheet);
    color: var(--rs-text);
    border: 1px solid var(--rs-hair);
    border-radius: 12px;
    overflow: hidden;
    font-variant-numeric: tabular-nums;
}

.rs-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    padding: 22px 24px 18px;
}

.rs-title { font-size: 24px; font-weight: 700; line-height: 1.2; }
.rs-date { font-size: 14px; color: var(--rs-muted); margin-top: 4px; }
.rs-units { font-size: 13px; color: var(--rs-muted); white-space: nowrap; }

.rs-strip {
    display: flex;
    border-top: 1px solid var(--rs-hair);
}

.rs-cell {
    flex: 1 1 0;
    min-width: 0;
    padding: 14px 24px;
}

.rs-cell + .rs-cell { border-left: 1px solid var(--rs-hair); }

.rs-cell-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--rs-muted);
}

.rs-cell-value { font-size: 24px; font-weight: 700; line-height: 1.3; }
.rs-cell-sub { font-size: 13px; color: var(--rs-muted); min-height: 1.2em; }

.rs-scroll { overflow-x: auto; }

.rs-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    table-layout: fixed;
}

.rs-table td, .rs-table th {
    border: 0;
    border-top: 1px solid var(--rs-hair);
    padding: 0 24px 0 0;
    text-align: right;
    font-size: 15px;
    font-weight: 400;
    height: 36px;
    vertical-align: middle;
}

.rs-table td:first-child, .rs-table th:first-child {
    text-align: left;
    padding-left: 24px;
}

.rs-table th:last-child, .rs-table td:last-child { padding-right: 24px; }
.rs-table td.rs-num, .rs-table th.rs-num { padding-right: 16px; }

.rs-table thead th {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--rs-muted);
}

.rs-code {
    display: inline-block;
    width: 28px;
    font-size: 13px;
    color: var(--rs-code);
}

.rs-table td.rs-pct { font-size: 13px; font-weight: 400; color: var(--rs-muted); }

.rs-band td {
    background: var(--rs-band);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.rs-total td {
    height: 38px;
    background: var(--rs-total);
    font-weight: 600;
    border-top: 1px solid var(--rs-rule);
}

.rs-key td {
    height: 48px;
    font-size: 16px;
    font-weight: 700;
    border-top: 1px solid var(--rs-rule);
}

.rs-key td.rs-pct { font-size: 13px; font-weight: 400; }

.rs-final td {
    height: 58px;
    font-size: 18px;
    font-weight: 700;
    background: var(--rs-final);
    border-top: 2px solid var(--rs-text);
    border-bottom: 4px double var(--rs-text);
}

.rs-final td.rs-pct { font-size: 13px; font-weight: 400; }
.rs-neg { color: var(--rs-red); }
.rs-pos { color: var(--rs-green); }
