:root {
    --bg: #f4f7f5;
    --panel: #ffffff;
    --ink: #172033;
    --muted: #667085;
    --line: #d9e2df;
    --primary: #0f766e;
    --primary-dark: #115e59;
    --sidebar: #10231f;
    --green: #15803d;
    --red: #b42318;
    --amber: #b7791f;
}

.theme-blue {
    --bg: #f3f7fb;
    --primary: #1769aa;
    --primary-dark: #0f4c81;
    --sidebar: #0f2238;
}

.theme-maroon {
    --bg: #faf6f6;
    --primary: #8f1d2c;
    --primary-dark: #6f1722;
    --sidebar: #2c1116;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Tahoma, Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
}

a { color: inherit; text-decoration: none; }

html {
    scrollbar-color: var(--primary) #e5eef0;
    scrollbar-width: thin;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #e5eef0; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 999px; }

.sidebar {
    position: fixed;
    inset: 0 0 0 auto;
    width: 300px;
    background: var(--sidebar);
    color: white;
    padding: 22px;
    overflow-y: auto;
    scrollbar-gutter: stable;
    border-left: 1px solid rgba(255,255,255,.08);
}

.brand, .login-top {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 22px;
}

.brand-mark, .login-mark, .brand-logo, .login-logo {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #a7f3d0;
    color: #063b2d;
    font-weight: 800;
    object-fit: cover;
}

.brand small { display: block; color: #b8c7c0; margin-top: 5px; }

nav { display: grid; gap: 6px; }

nav a, .nav-button {
    color: #edf7f3;
    background: transparent;
    border: 0;
    width: 100%;
    text-align: right;
    padding: 10px 12px;
    border-radius: 7px;
    font: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 9px;
}

nav a:hover, .nav-button:hover { background: rgba(255,255,255,.09); }
nav span {
    width: 24px;
    text-align: center;
    flex: 0 0 24px;
}

.content {
    margin-right: 300px;
    padding: 28px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
}

.welcome {
    display: inline-block;
    color: var(--primary);
    background: #e8f7f2;
    padding: 8px 12px;
    border-radius: 7px;
    margin-bottom: 8px;
}

h1, h2 { margin: 0 0 10px; }

.top-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.contact-chip, .badge, .summary-line, .sync-button {
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--primary-dark);
    padding: 10px 13px;
    border-radius: 7px;
}

.sync-button {
    background: #d1fae5;
    color: #065f46;
    font-weight: 800;
}

.contact-chip span, .admin-mail span { font-weight: 900; color: var(--primary); }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.report-stats .stat {
    border-top: 5px solid var(--primary);
}
.report-stats .income { background: #ecfdf3; }
.report-stats .danger { background: #fef3f2; }
.report-stats .balance { background: #eff6ff; }

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 16px;
}

.chart-card { display: grid; gap: 14px; }
.chart-row {
    display: grid;
    grid-template-columns: 130px 1fr 110px;
    gap: 10px;
    align-items: center;
}
.chart-row div {
    height: 13px;
    background: #e7eef0;
    border-radius: 999px;
    overflow: hidden;
}
.chart-row b {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #34d399);
}

.rent-shell {
    background: linear-gradient(180deg, #f7fffb, #ffffff);
    border-radius: 24px;
    padding: 22px;
    box-shadow: inset 0 0 0 1px #dff5ec;
}

.rent-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 26px;
    box-shadow: 0 20px 55px rgba(16, 24, 40, .08);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.mini-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 16px 0 24px;
}

.mini-stats div {
    background: #f3f4f6;
    border-radius: 7px;
    padding: 16px;
    text-align: center;
}

.mini-stats span { display: block; color: var(--muted); margin-bottom: 6px; }
.mini-stats strong { font-size: 21px; }
.soft-green { background: #dcfce7 !important; }
.soft-blue { background: #dbeafe !important; }
.closed-row { background: #ecfdf3; }
.status-pill {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e8f7f2;
    color: #065f46;
    font-weight: 700;
}
.complete-banner {
    background: #dcfce7;
    color: #166534;
    padding: 13px;
    border-radius: 7px;
    margin-bottom: 18px;
    font-weight: 800;
}
.payment-form {
    background: #f8fafc;
    border-radius: 8px;
    padding: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}
.payment-form p { margin: 0; }
.compact { padding: 7px 10px; }
.print-only { display: none; }

.stat, .panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(16, 24, 40, .07);
}

.stat { padding: 18px; }
.stat span { color: var(--muted); display: block; margin-bottom: 8px; }
.stat strong { font-size: 26px; }
.income strong { color: var(--green); }
.danger strong, .danger-link, .danger-text { color: var(--red); }
.balance strong { color: var(--primary); }
.warn strong { color: var(--amber); }
.panel { padding: 18px; margin-bottom: 18px; }
.soft-text { color: var(--muted); }

.section-shell,
.section-card,
.summary-line {
    position: relative;
}

.section-shell {
    background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(248,250,252,.72));
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .06);
}

.section-card {
    border-top: 5px solid var(--section-color, var(--primary));
    overflow: hidden;
}

.section-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 64px;
    background: linear-gradient(90deg, var(--section-soft, #ecfdf3), transparent);
    pointer-events: none;
}

.summary-line {
    border-right: 5px solid var(--section-color, var(--primary));
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
    margin-bottom: 14px;
}

.accent-general { --section-color: #64748b; --section-soft: #f1f5f9; }
.accent-farmer { --section-color: #16a34a; --section-soft: #dcfce7; }
.accent-garden { --section-color: #65a30d; --section-soft: #ecfccb; }
.accent-fuel { --section-color: #f97316; --section-soft: #ffedd5; }
.accent-salary { --section-color: #7c3aed; --section-soft: #ede9fe; }
.accent-sarai { --section-color: #0f766e; --section-soft: #ccfbf1; }
.accent-house { --section-color: #2563eb; --section-soft: #dbeafe; }
.accent-service { --section-color: #0891b2; --section-soft: #cffafe; }
.accent-default { --section-color: var(--primary); --section-soft: #ecfdf3; }

.section-shell.accent-fuel .primary-button,
.section-shell.accent-fuel .filter-form button { background: #f97316; }
.section-shell.accent-farmer .primary-button,
.section-shell.accent-farmer .filter-form button { background: #16a34a; }
.section-shell.accent-garden .primary-button,
.section-shell.accent-garden .filter-form button { background: #65a30d; }
.section-shell.accent-salary .primary-button,
.section-shell.accent-salary .filter-form button { background: #7c3aed; }

.topbar h1 {
    padding: 8px 0;
    background: linear-gradient(90deg, var(--primary), #0ea5e9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.quick-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.primary-button, .secondary-button, .danger-button, .primary-link, .filter-form button, .solar-picker button {
    border: 0;
    border-radius: 7px;
    padding: 10px 14px;
    font: inherit;
    cursor: pointer;
    display: inline-block;
}

.primary-button, .primary-link, .solar-picker button { background: var(--primary); color: white; }
.primary-button:hover, .primary-link:hover, .solar-picker button:hover { background: var(--primary-dark); }
.secondary-button, .filter-form button { background: #edf2f7; color: #1f2937; }
.secondary-button.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, .18);
}
.danger-button { background: var(--red); color: white; }

.filter-form, .solar-picker {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

select, .form-control, input, textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    padding: 10px;
    font: inherit;
    background: white;
}

.filter-form select { width: 150px; }
.solar-picker { margin-top: 7px; }
.solar-picker select { width: auto; min-width: 90px; }

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 14px 18px;
    align-items: start;
}

.form-grid p { margin: 0; }
.form-grid label { display: block; margin-bottom: 6px; color: #344054; }
.form-grid input[type="checkbox"],
.payment-form input[type="checkbox"] {
    width: auto;
    transform: scale(1.2);
    margin-left: 8px;
}
.form-actions { display: flex; gap: 10px; align-items: center; }
.form-card { display: grid; gap: 10px; }
.narrow { max-width: 640px; }
.table-wrap { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th, td {
    border: 1px solid var(--line);
    padding: 11px;
    text-align: right;
    vertical-align: top;
}

th {
    background: linear-gradient(135deg, #0f172a, #334155);
    color: #fff;
    font-weight: 700;
}
tbody tr:nth-child(even) { background: #fbfdfc; }
tbody tr:hover { background: var(--section-soft, #f8fafc); }
tfoot th { background: #e8f7f2; }
.actions { display: flex; gap: 12px; }

.messages { margin-bottom: 14px; }
.message {
    padding: 11px 13px;
    border-radius: 7px;
    background: #ecfdf3;
    color: #05603a;
    margin-bottom: 8px;
    transition: opacity .3s ease, transform .3s ease;
}
.message.error { background: #fef3f2; color: var(--red); }
.message.warning { background: #fffbeb; color: #92400e; }
.message-hide { opacity: 0; transform: translateY(-8px); }

nav a:nth-child(6n+1) { border-right: 4px solid #22c55e; }
nav a:nth-child(6n+2) { border-right: 4px solid #3b82f6; }
nav a:nth-child(6n+3) { border-right: 4px solid #f59e0b; }
nav a:nth-child(6n+4) { border-right: 4px solid #ef4444; }
nav a:nth-child(6n+5) { border-right: 4px solid #8b5cf6; }
nav a:nth-child(6n+6) { border-right: 4px solid #14b8a6; }

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: #063844;
}

.login-shell { width: min(520px, calc(100% - 28px)); }
.login-card {
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 28px 80px rgba(0,0,0,.28);
}
.login-top h1 { margin-bottom: 4px; }
.login-top p, .designer, .admin-mail { color: var(--muted); }
.designer {
    color: var(--primary-dark);
    background: #e8f7f2;
    padding: 10px;
    border-radius: 7px;
}

.dark-login-card {
    width: min(375px, calc(100vw - 28px));
    margin: 0 auto;
    background: #074657;
    color: white;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 14px;
    padding: 42px;
    box-shadow: 0 28px 80px rgba(0,0,0,.22);
}

.login-title {
    text-align: center;
    margin-bottom: 26px;
}

.login-title h1 {
    color: #14f0f5;
    font-size: 29px;
    margin-bottom: 8px;
}

.login-title p {
    color: white;
    margin: 0;
}

.login-form label {
    color: white;
    text-align: right;
}

.login-form input {
    background: #e8f1ff;
    border: 1px solid #42e8ef;
    color: #061b24;
}

.login-form .primary-button {
    margin-top: 10px;
    background: #14b8b5;
    font-weight: 800;
}

.login-footer {
    display: grid;
    gap: 12px;
    text-align: center;
    margin-top: 30px;
}

.login-footer span { color: white; }
.login-footer strong { color: white; }
.login-footer a { color: #04efff; }

.action-panel { display: grid; gap: 10px; align-content: start; }

.chat-panel { display: grid; gap: 18px; }
.chat-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
}
.chat-thread {
    display: grid;
    gap: 12px;
    max-height: 520px;
    overflow-y: auto;
    padding: 6px;
}
.chat-bubble {
    max-width: 72%;
    border-radius: 8px;
    padding: 12px 14px;
    border: 1px solid var(--line);
}
.chat-bubble span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 6px;
}
.chat-bubble p { margin: 0; }
.chat-bubble.mine {
    justify-self: end;
    background: #dcfce7;
}
.chat-bubble.other {
    justify-self: start;
    background: #eff6ff;
}
.chat-bubble.system {
    justify-self: center;
    background: #fffbeb;
}
.chat-form {
    display: grid;
    gap: 10px;
}

.report-toolbar {
    align-items: center;
    background: linear-gradient(135deg, #ffffff, #f0fdfa);
    border: 1px solid #d8eee8;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15, 118, 110, .08);
    padding: 14px;
}

.report-dashboard {
    display: grid;
    gap: 18px;
}

.report-hero {
    align-items: center;
    background:
        radial-gradient(circle at 14% 20%, rgba(45, 212, 191, .22), transparent 30%),
        linear-gradient(135deg, #0f766e, #0f172a);
    border: 0;
    border-radius: 24px;
    box-shadow: 0 22px 45px rgba(15, 23, 42, .18);
    color: white;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0;
    padding: 26px;
    text-align: right;
}

.report-hero h2 {
    font-size: clamp(24px, 3vw, 38px);
    margin: 8px 0;
}

.report-hero p {
    color: #d7fffb;
    margin: 0;
}

.report-badge {
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 20px;
    display: grid;
    font-size: 46px;
    height: 92px;
    place-items: center;
    width: 92px;
}

.eyebrow {
    color: #5eead4;
    display: inline-block;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .02em;
}

.report-metric-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.report-metric {
    border: 1px solid rgba(15, 23, 42, .06);
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
    overflow: hidden;
    padding: 18px;
    position: relative;
}

.report-metric::after {
    border-radius: 999px;
    content: "";
    height: 70px;
    left: -18px;
    opacity: .18;
    position: absolute;
    top: -18px;
    width: 70px;
}

.report-metric span {
    color: #334155;
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

.report-metric strong {
    color: #0f172a;
    display: block;
    font-size: clamp(20px, 2.2vw, 30px);
}

.report-metric.income {
    background: linear-gradient(135deg, #ecfdf5, #ffffff);
}

.report-metric.income::after { background: #22c55e; }

.report-metric.expense {
    background: linear-gradient(135deg, #fff1f2, #ffffff);
}

.report-metric.expense::after { background: #f43f5e; }

.report-metric.balance {
    background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.report-metric.balance::after { background: #3b82f6; }

.report-overview,
.month-report-card {
    background: rgba(255,255,255,.94);
    border: 1px solid #e6edf0;
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
    padding: 20px;
}

.section-title {
    align-items: center;
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.section-title h3,
.section-title h4 {
    margin: 0;
}

.month-bars {
    display: grid;
    gap: 12px;
}

.month-bar {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px;
}

.month-bar-label {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 10px;
}

.month-bar-label span {
    color: var(--muted);
    font-size: 13px;
}

.month-bar-track {
    background: #e2e8f0;
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
}

.month-bar-track span {
    background: linear-gradient(90deg, #14b8a6, #60a5fa, #a855f7);
    border-radius: inherit;
    display: block;
    height: 100%;
    min-width: 5%;
}

.report-card-header {
    align-items: center;
    border-bottom: 1px solid #e5edf0;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 14px;
}

.report-card-header h3 {
    font-size: 26px;
    margin: 4px 0 0;
}

.month-status {
    border-radius: 999px;
    padding: 10px 14px;
    white-space: nowrap;
}

.month-status.success {
    background: #dcfce7;
    color: #166534;
}

.month-status.danger {
    background: #ffe4e6;
    color: #9f1239;
}

.report-columns {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
    margin-top: 16px;
}

.report-table-card,
.breakdown-card {
    background: #ffffff;
    border: 1px solid #e6edf0;
    border-radius: 18px;
    padding: 16px;
}

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

.report-table th {
    background: #0f766e;
    color: white;
}

.report-table th:first-child { border-radius: 0 12px 12px 0; }
.report-table th:last-child { border-radius: 12px 0 0 12px; }

.report-table td {
    background: #ffffff;
    border-bottom: 1px solid #e9eef2;
}

.report-table tbody tr:nth-child(even) td {
    background: #f8fafc;
}

.breakdown-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.breakdown-list span {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 9px 12px;
}

.report-note {
    background: linear-gradient(135deg, #fefce8, #ecfeff);
    border: 1px solid #fde68a;
    border-radius: 16px;
    color: #374151;
    font-weight: 700;
    line-height: 1.9;
    margin: 16px 0 0;
    padding: 14px 16px;
}

.empty-report {
    text-align: center;
}

@media (max-width: 980px) {
    .sidebar {
        position: static;
        width: auto;
        max-height: none;
        border-left: 0;
    }
    nav {
        grid-template-columns: repeat(2, minmax(130px, 1fr));
    }
    .content { margin-right: 0; padding: 16px; }
    .stats-grid, .form-grid, .dashboard-grid, .payment-form, .mini-stats, .report-metric-grid { grid-template-columns: 1fr; }
    .topbar { align-items: flex-start; flex-direction: column; }
    .report-hero,
    .report-card-header,
    .month-bar-label {
        align-items: flex-start;
        flex-direction: column;
    }
    .report-badge { display: none; }
}

.force-mobile .sidebar {
    position: static;
    width: auto;
}
.force-mobile .content { margin-right: 0; padding: 16px; }
.force-mobile .stats-grid,
.force-mobile .form-grid,
.force-mobile .dashboard-grid,
.force-mobile .payment-form,
.force-mobile .mini-stats,
.force-mobile .report-metric-grid { grid-template-columns: 1fr; }

.force-desktop .sidebar {
    position: fixed;
    inset: 0 0 0 auto;
    width: 300px;
}
.force-desktop .content { margin-right: 300px; }
.force-desktop nav { grid-template-columns: 1fr; }
.force-desktop .topbar { flex-direction: row; align-items: center; }
.force-desktop .stats-grid { grid-template-columns: repeat(3, minmax(180px, 1fr)); }
.force-desktop .report-metric-grid { grid-template-columns: repeat(3, minmax(180px, 1fr)); }
.force-desktop .dashboard-grid { grid-template-columns: 1.2fr .8fr; }
.force-desktop .form-grid,
.force-desktop .payment-form { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
.force-desktop .mini-stats { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 560px) {
    nav { grid-template-columns: 1fr; }
    .toolbar, .filter-form { align-items: stretch; flex-direction: column; }
    .filter-form select, .filter-form button, .toolbar a, .toolbar button { width: 100%; }
    .login-card { padding: 20px; }
    th, td { padding: 9px; font-size: 13px; }
}

.force-desktop .toolbar,
.force-desktop .filter-form {
    align-items: center;
    flex-direction: row;
}

.force-desktop .filter-form select,
.force-desktop .filter-form button,
.force-desktop .toolbar a,
.force-desktop .toolbar button {
    width: auto;
}

@media print {
    @page { size: A4; margin: 10mm; }
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    html,
    body {
        background: white !important;
        height: auto !important;
        margin: 0 !important;
        overflow: visible !important;
        width: 100% !important;
    }
    body * { visibility: hidden; }
    .sidebar,
    .topbar,
    .toolbar,
    .no-print {
        display: none !important;
    }
    .content {
        margin: 0 !important;
        max-width: none !important;
        padding: 0 !important;
        visibility: visible !important;
        width: 100% !important;
    }
    .printable-table, .printable-table *, .printable-report, .printable-report * { visibility: visible; }
    .printable-table {
        position: absolute;
        inset: 0;
        width: 100%;
        box-shadow: none;
        border: 0;
        background: white;
    }
    .printable-report {
        background: white;
        border: 0;
        box-shadow: none;
        display: block;
        margin: 0 !important;
        max-width: none !important;
        padding: 0 !important;
        position: relative;
        width: 100% !important;
    }
    .printable-report .report-metric-grid,
    .printable-report .stats-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .printable-report .panel,
    .printable-report .month-report-card,
    .printable-report .report-table-card,
    .printable-report .breakdown-card {
        border: 1px solid #dbe7e4;
        border-radius: 10px;
        box-shadow: none;
        margin-bottom: 12px;
        padding: 10px;
    }
    .printable-report .month-report-card {
        break-inside: auto;
        page-break-inside: auto;
    }
    .printable-report .report-table {
        border-collapse: collapse;
        font-size: 10px;
        min-width: 0;
        table-layout: fixed;
        width: 100%;
    }
    .printable-report .table-wrap {
        overflow: visible !important;
    }
    .printable-report th,
    .printable-report td {
        padding: 6px;
        white-space: normal;
        word-break: break-word;
    }
    .printable-report .report-card-header,
    .printable-report .report-hero,
    .printable-report .month-bar-label {
        align-items: center;
        flex-direction: row;
    }
    .printable-report .report-card-header h3,
    .printable-report .report-hero h2 {
        font-size: 20px;
    }
    .printable-report .report-metric {
        border-radius: 10px;
        box-shadow: none;
        padding: 10px;
    }
    .printable-report .report-metric strong {
        font-size: 16px;
    }
    .printable-report .report-overview {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    .printable-report .month-bars {
        gap: 6px;
    }
    .printable-report .month-bar {
        border-radius: 8px;
        padding: 8px;
    }
    .printable-report .report-columns {
        gap: 10px;
        grid-template-columns: 1fr;
    }
    .printable-report .report-hero,
    .print-heading {
        border: 2px solid var(--primary);
        border-radius: 8px;
        color: var(--ink);
        padding: 12px;
        margin-bottom: 12px;
        background: #f0fdfa;
        text-align: center;
    }
    .printable-report .report-note {
        border-radius: 8px;
        font-size: 11px;
        line-height: 1.7;
        padding: 8px;
    }
    .printable-report .breakdown-list {
        gap: 6px;
    }
    .printable-report .breakdown-list span {
        border-radius: 8px;
        padding: 6px 8px;
    }
    .printable-report .report-badge {
        display: none;
    }
    .no-print { display: none !important; }
    .print-only { display: block; }
}
