/* Theme colors are separate from report/export colors. */
:root{color-scheme:dark}.theme-toggle{flex-shrink:0;white-space:nowrap;min-height:33px;gap:7px}.theme-toggle .icon{width:16px;height:16px}.access-header.has-theme-toggle{gap:14px;flex-wrap:wrap}.access-header.has-theme-toggle>.brand{margin-right:auto}.theme-toggle:focus-visible{outline:2px solid var(--purple);outline-offset:3px}
:root[data-theme=light]{color-scheme:light;--bg:#f4f6fa;--panel:#ffffff;--panel2:#edf0f6;--border:#d6dce7;--text:#202b3d;--muted:#59667a;--purple:#6250b5;--green:#176b50;--amber:#805008;--red:#b62e43;background:var(--bg);color:var(--text)}
html[data-theme=light] body{background:var(--bg)}
html[data-theme=light] .access{background:radial-gradient(ellipse at 25% 25%,#e8e3f8 0,transparent 55%),var(--bg)}
html[data-theme=light] .access-preview{background:#fff;border-color:var(--border);box-shadow:0 24px 70px #26365013}
html[data-theme=light] .brand-icon{background:#a99af7;color:#18191f}
html[data-theme=light] .sidebar,html[data-theme=light] .erp-navigation{background:#fff}
html[data-theme=light] .topbar{background:#fffffff0}
html[data-theme=light] .btn:hover{background:#e2e5ef;border-color:#a5aec1}
html[data-theme=light] .btn.primary{background:#6250b5;border-color:#6250b5;color:#fff}
html[data-theme=light] .btn.primary:hover{background:#51409d;border-color:#51409d}
html[data-theme=light] .btn.danger,html[data-theme=light] .btn.danger:hover{background:#c83245;border-color:#c83245;color:#fff}
html[data-theme=light] .nav-item,html[data-theme=light] .nav-domain,html[data-theme=light] .workspace-tab,html[data-theme=light] .nav-more>summary,html[data-theme=light] .nav-group summary{color:#59667a}
html[data-theme=light] .nav-item.active,html[data-theme=light] .nav-domain.active{background:#ece8fa;color:#51409d}
html[data-theme=light] .nav-domain.active .icon,html[data-theme=light] .nav-group[open] summary{color:#6250b5}
html[data-theme=light] .nav-domain:hover,html[data-theme=light] .nav-item:hover{background:#f0f2f8;color:#26334b}
html[data-theme=light] .workspace-tab.active{color:#51409d;border-bottom-color:#6250b5}
html[data-theme=light] .workspace-tab:hover{color:#51409d}
html[data-theme=light] .nav-label,html[data-theme=light] .nav-section-label{color:#647085}
html[data-theme=light] .nav-more-panel,html[data-theme=light] .lookup-results{background:#fff;box-shadow:0 12px 32px #26365020;color:#202b3d}
html[data-theme=light] .nav-more-panel button,html[data-theme=light] .lookup-results button{color:#26334b}
html[data-theme=light] .nav-more-panel button:hover,html[data-theme=light] .lookup-results button:hover,html[data-theme=light] .lookup-results button:focus{background:#ece8fa;color:#51409d}
html[data-theme=light] .lookup-results button small,html[data-theme=light] .lookup-count{color:#59667a}
html[data-theme=light] .lookup-entry,html[data-theme=light] .filter-search{background:#fff}
html[data-theme=light] .lookup-toggle{background:#f0f2f8;color:#59667a}
html[data-theme=light] .lookup-toggle:hover,html[data-theme=light] .smart-lookup-input[aria-expanded=true]{color:#51409d}
html[data-theme=light] .cell-title,html[data-theme=light] .breadcrumb b{color:#26334b}
html[data-theme=light] thead{background:#f0f2f8}
html[data-theme=light] tbody tr.clickable:hover{background:#f0edf9}
html[data-theme=light] .quick-row button{color:#334158;background:#fff}
html[data-theme=light] .kind.traspaso{color:#6250b5}
html[data-theme=light] .company-option:hover{background:#f3f0fc}
html[data-theme=light] .analysis-filters{background:#fff}
html[data-theme=light] .analysis-filter-grid>label,html[data-theme=light] .analysis-totals,html[data-theme=light] .analysis-footnote,html[data-theme=light] .analysis-empty,html[data-theme=light] .finder-help{color:#59667a}
html[data-theme=light] .analysis-totals b,html[data-theme=light] .analysis-empty h2{color:#26334b}
html[data-theme=light] .filter-chip{background:#fff;color:#59667a}
html[data-theme=light] .filter-chip.active{background:#ece8fa;border-color:#a899db;color:#51409d}
html[data-theme=light] .analysis-notice{background:#fff4d9;color:#805008}
html[data-theme=light] .finder-group h3,html[data-theme=light] .finder-group h3 span{color:#59667a}
html[data-theme=light] .finder-group header button{color:#6250b5}
html[data-theme=light] .accounting-note{background:#edf7f1}
html[data-theme=light] .readonly-value,html[data-theme=light] .company-checks label,html[data-theme=light] .glosa,html[data-theme=light] .notice-item{background:#f4f6fa}
html[data-theme=light] .notice-item.unread{background:#f0ecfb;border-color:#b7a9df}
html[data-theme=light] .pill.green{background:#edf7f1;border-color:#bddfcf}
html[data-theme=light] .pill.amber{background:#fff5e2;border-color:#e6d3ac}
html[data-theme=light] .typed-report .column-groups th{background:#e9e5f5;color:#51409d}
html[data-theme=light] .report-error{color:#b62e43}
html[data-theme=light] .modal::backdrop{background:#202b3d66}
html[data-theme=light] .footer-note{color:#59667a}
@media(max-width:760px){.top-actions .theme-toggle{padding:7px}.top-actions .theme-toggle span{display:none}.top-actions{gap:9px}}
@media print{.theme-toggle{display:none!important}html[data-theme=light] body.print-report{background:white!important}html[data-theme=light] #report-print .typed-report .column-groups th{background:#18576a!important;color:#fff!important}}
html[data-theme=light] .chart text{fill:#59667a}html[data-theme=light] .chart line{stroke:#d6dce7}html[data-theme=light] .chart polyline[stroke="#ad9efb"],html[data-theme=light] .chart circle{stroke:#6250b5}html[data-theme=light] .chart polyline[stroke="#7ad7b5"]{stroke:#176b50}html[data-theme=light] .chart circle{fill:#fff}html[data-theme=light] .modal{border-color:#c9d1df;box-shadow:0 24px 80px #2030472b}

/* Monthly closing and tax workpapers retain the compact ERP controls. */
.monthly-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.monthly-section{margin-top:18px}.monthly-tax-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:18px}.monthly-checks{display:grid;gap:12px;margin:14px 0}.monthly-checks label,.monthly-tax-layout label:has(input[type=checkbox]){display:block;line-height:1.6}.monthly-checks input,.monthly-tax-layout input[type=checkbox],#monthly-declare-form input[type=checkbox]{width:auto;display:inline-block}.monthly-tax-layout details{margin:15px 0}.monthly-tax-layout summary{cursor:pointer;font-weight:600;padding:8px 0}.monthly-utm,.monthly-banner{padding:14px 0}.monthly-warnings{padding-left:18px;font-size:13px;line-height:1.7}.monthly-tax-layout .num{white-space:nowrap}.monthly-tax-layout .table-wrap{overflow:auto}.monthly-tax-layout .details-body{min-width:0}.monthly-error:empty{display:none}@media(max-width:1000px){.monthly-tax-layout{grid-template-columns:1fr}}@media(max-width:650px){.monthly-cards{grid-template-columns:1fr}}
.monthly-cards .details-body,.monthly-tax-layout .details-body,.monthly-section>.details-body{padding:20px}.monthly-cards h2,.monthly-tax-layout h2,.monthly-section h2{margin:0 0 14px;font-size:16px}.monthly-tax-layout table{min-width:0;width:100%;table-layout:auto}.monthly-tax-layout td{white-space:normal;padding:11px 10px}.monthly-tax-layout td.num{white-space:nowrap}.monthly-tax-layout th{padding:10px}.monthly-tax-layout .details-body>.panel{border:0;border-radius:0}.monthly-tax-layout .form-grid{gap:12px;margin:14px 0}.monthly-tax-layout .input,.monthly-tax-layout .select{padding:9px 10px}.monthly-tax-layout textarea,.monthly-section textarea{resize:vertical;min-height:65px}.monthly-section .live-form label:has(input[type=checkbox]){display:block}.monthly-tax-layout form>label,.monthly-section form>label{margin:12px 0}.monthly-tax-layout .table-scroll{overflow-x:auto}.filterbar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:20px 0 0}.filterbar input[type=month]{margin-left:10px;padding:9px;border:1px solid var(--border);border-radius:8px;background:var(--panel2);color:var(--text)}
