/* KOMPAKTNE: sinine tööriba ja hele töölaud, rohelised/oranžid/sinised/punased rõhud. */
body.app-page[data-theme=compact]{--accent:#075bb9;--heading:#174475;--button:#075fca;--green:#0c56ad;--surface:#fff;--soft:#edf5ff;--border:#d1e0f2;--text:#172c48;--ink:#172c48;--muted:#5b6b82;--radius:12px;--action-main:#0a63cd;--action-save:#389b35;--action-copy:#1487c0;--action-delete:#ec4148;--action-pdf:#ed981b;--action-send:#0784b6;--action-help:#edf5ff;--action-edge:#1b5995;--chart-income:#147bfa;--chart-expense:#ff8508;--chart-profit:#43a53d;--chart-slice-0:#43a53d;--chart-slice-1:#0879f9;--chart-slice-2:#ff8b17;--chart-slice-3:#ff424b;--chart-slice-4:#37b8ff;--chart-slice-5:#f5b72b;--dashboard-danger:#d92232;background:linear-gradient(120deg,#f7faff,#edf4fc);color:var(--text);font:14px/1.45 'Segoe UI',Arial,sans-serif;color-scheme:light}
body.app-page[data-theme=compact] .page-shell{max-width:1800px;padding:0 14px;background:transparent}
body.app-page[data-theme=compact] .site-header{height:68px;padding:8px 10px}
body.app-page[data-theme=compact] .brand-logo{width:200px}
body.app-page[data-theme=compact] .main-menu{min-height:50px;padding:0 12px;background:linear-gradient(180deg,#1264bc,#084d9f);border:1px solid #0a50a2;border-radius:13px 13px 0 0;box-shadow:0 2px 5px #123f7310;gap:6px}
body.app-page[data-theme=compact] .menu-dropdown>summary{padding:14px 20px;font-size:14px;font-weight:650;color:#fff;transition:background .2s ease}
body.app-page[data-theme=compact] .menu-dropdown>summary:hover,body.app-page[data-theme=compact] .menu-dropdown[open]>summary{background:#ffffff20}
body.app-page[data-theme=compact] .dropdown-panel{top:100%;min-width:225px;padding:6px;background:#fff;border:1px solid var(--border);border-radius:0 0 9px 9px;box-shadow:0 12px 26px #18477626}
body.app-page[data-theme=compact] .dropdown-panel a{padding:10px 13px;color:var(--text);border-radius:5px}
body.app-page[data-theme=compact] .dropdown-panel a:hover{background:#e5f0fe;color:#074fa6}
body.app-page[data-theme=compact] .logout button{background:transparent!important;color:#fff;padding:12px;font-size:13px;font-weight:600}
body.app-page[data-theme=compact] .work-area{gap:22px;padding-top:0;align-items:stretch}
body.app-page[data-theme=compact] .side-menu{width:220px;align-self:stretch;background:linear-gradient(120deg,#f3f8ff,#e8f2ff);border:1px solid #c9dcf2;border-top:0;border-radius:0 0 13px 13px;box-shadow:0 2px 4px #1a416514;padding:12px 0 16px}
body.app-page[data-theme=compact] .side-menu h3{padding:7px 20px;background:linear-gradient(100deg,#bddbfb,#d8eaff);color:#123f78;font-size:15px;font-weight:700;margin:0 0 6px}
body.app-page[data-theme=compact] .side-menu h3:not(:first-child){margin-top:10px;background:linear-gradient(100deg,#0759b1,#1f71c7);color:#fff}
body.app-page[data-theme=compact] .side-menu h3:last-of-type{background:linear-gradient(100deg,#bddbfb,#d8eaff);color:#123f78}
body.app-page[data-theme=compact] .side-menu a{padding:7px 22px;font-size:13px;color:#172c48;line-height:1.35}
body.app-page[data-theme=compact] .side-menu a:hover,body.app-page[data-theme=compact] .side-menu a[aria-current=page]{background:#d5e8fd;color:#074ca2;text-decoration:none}
body.app-page[data-theme=compact] .content{min-width:0;padding:18px 0 0}
body.app-page[data-theme=compact] .page-heading{min-height:58px;height:auto;margin-bottom:16px;padding:10px 15px;background:linear-gradient(110deg,#dcecff,#edf5ff);border:1px solid #cee0f4;border-radius:10px;color:#163f74;gap:8px}
body.app-page[data-theme=compact] .page-heading h1{font-size:25px;font-weight:700;color:#163f74}
body.app-page[data-theme=compact] .page-dashboard>.page-heading{background:transparent;border:0;min-height:60px;padding:0 2px;margin-bottom:16px;align-items:center;gap:12px}
body.app-page[data-theme=compact] .page-dashboard>.page-heading h1{font-size:30px;letter-spacing:-.7px}
body.app-page[data-theme=compact] .page-dashboard>.page-heading>.button{margin-left:auto;background:linear-gradient(180deg,#ff9909,#ff7b00);border:1px solid #ef7e00;color:#fff;font-size:15px;font-weight:650;border-radius:11px;padding:12px 18px;box-shadow:0 2px 4px #da730025}
body.app-page[data-theme=compact] .page-heading .invoice-tool{min-height:54px}
body.app-page[data-theme=compact] .page-heading>.page-help-button{background:#f7fbff;color:#0955ac!important;min-width:70px}
body.app-page[data-theme=compact] .page-dashboard>.page-heading>.page-help-button{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:7px;width:auto;min-height:46px;height:46px;padding:8px 16px;border-radius:10px;border:1px solid #0759b9!important;margin-left:0!important;font-size:15px}
body.app-page[data-theme=compact] .page-dashboard>.page-heading>.page-help-button b{font-size:27px;height:auto;line-height:1}
body.app-page[data-theme=compact] .dashboard-stats{gap:16px;margin:0 0 16px}
body.app-page[data-theme=compact] .dashboard-stats>section{--stat-color:#3b9f37;display:grid;grid-template-columns:92px minmax(0,1fr);grid-template-rows:auto auto 1fr;column-gap:18px;min-height:140px;padding:19px 18px;background:#fff;border:1px solid #d2e1f2;border-top:4px solid var(--stat-color);border-radius:12px;box-shadow:0 2px 3px #21456e13;align-items:center}
body.app-page[data-theme=compact] .dashboard-stats>section:nth-child(2){--stat-color:#ff8000}
body.app-page[data-theme=compact] .dashboard-stats>section:nth-child(3){--stat-color:#fa3945}
body.app-page[data-theme=compact] .compact-stat-icon{grid-column:1;grid-row:1/4;display:flex;align-items:center;justify-content:center;align-self:stretch;border-right:1px solid #d4e0ef;padding-right:18px;color:var(--stat-color)}
body.app-page[data-theme=compact] .compact-stat-icon>svg{width:68px;height:68px;padding:12px;border-radius:14px;background:color-mix(in srgb,var(--stat-color) 8%,white)}
body.app-page[data-theme=compact] .dashboard-stats>section>span{grid-column:2;font-size:15px;color:#172c48;font-weight:650}
body.app-page[data-theme=compact] .dashboard-stats strong{grid-column:2;color:#3b9f37;font-size:32px;line-height:1.3;font-weight:700;margin:4px 0;letter-spacing:-.5px;white-space:nowrap}
body.app-page[data-theme=compact] .dashboard-stats strong small{font-size:17px;color:#546176;font-weight:600;letter-spacing:0;margin-left:8px}
body.app-page[data-theme=compact] .dashboard-stats p{grid-column:2;font-size:12px;color:#5b6b82;margin:0}
body.app-page[data-theme=compact] .dashboard-stats>section:first-child p{color:#df2731;font-weight:600}
body.app-page[data-theme=compact] .quick-actions{gap:16px;margin:0 0 20px}
body.app-page[data-theme=compact] .quick-actions a{--quick-color:#3b9f37;min-height:70px;padding:10px 16px;gap:16px;border:1px solid #cfdef0;border-radius:12px;box-shadow:0 2px 3px #21456e15;background:linear-gradient(150deg,#fff,#fcfdff);color:#172c48;transition:box-shadow .2s ease,border-color .2s ease}
body.app-page[data-theme=compact] .quick-actions a:nth-child(2){--quick-color:#ff8200}
body.app-page[data-theme=compact] .quick-actions a:nth-child(3){--quick-color:#0767ce}
body.app-page[data-theme=compact] .quick-actions a>span{display:flex;align-items:center;justify-content:center;flex:0 0 48px;width:48px;height:48px;border-radius:12px;background:linear-gradient(140deg,var(--quick-color),color-mix(in srgb,var(--quick-color) 83%,black));box-shadow:0 2px 4px #152e4b25;color:white}
body.app-page[data-theme=compact] .quick-actions svg{width:31px;height:31px}
body.app-page[data-theme=compact] .quick-actions a strong{font-size:16px;font-weight:650}
body.app-page[data-theme=compact] .quick-actions a small{display:none}
body.app-page[data-theme=compact] .quick-actions a>b{font-size:28px;color:var(--quick-color)}
body.app-page[data-theme=compact] .quick-actions a:hover{border-color:var(--quick-color);box-shadow:0 3px 12px #21456e22;text-decoration:none}
body.app-page[data-theme=compact] .dashboard-section-title{background:linear-gradient(110deg,#e2efff,#dcecfb);padding:9px 16px;margin:20px 0 14px;border:1px solid white;border-radius:12px;color:#163f74}
body.app-page[data-theme=compact] .dashboard-section-title h2{font-size:23px;letter-spacing:-.4px}
body.app-page[data-theme=compact] .dashboard-section-title>span{color:#164b91;font-size:13px}
body.app-page[data-theme=compact] .dashboard-chart-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}
body.app-page[data-theme=compact] .dashboard-chart-panel,body.app-page[data-theme=compact] .dashboard-debt-panel{padding:22px;border-radius:14px;border:1px solid #cbdcf1;background:#fff;box-shadow:0 2px 4px #21456e0c}
body.app-page[data-theme=compact] .dashboard-chart-panel h2{font-size:22px;font-weight:700}
body.app-page[data-theme=compact] .dashboard-chart-panel .eyebrow{font-size:11px;letter-spacing:1px;font-weight:600;color:#607086}
body.app-page[data-theme=compact] .dashboard-chart-unit{background:#e7f1ff;color:#294f7b;font-size:12px;padding:7px 10px}
body.app-page[data-theme=compact] .dashboard-donut{grid-template-columns:minmax(140px,.8fr) minmax(0,1.2fr);gap:16px;min-height:235px}
body.app-page[data-theme=compact] .dashboard-legend-row{font-size:12px;padding:8px 0}
body.app-page[data-theme=compact] .dashboard-legend-row>i,body.app-page[data-theme=compact] .dashboard-chart-legend i{border-radius:3px;width:13px;height:13px}
body.app-page[data-theme=compact] .dashboard-ring-value{font-size:25px;fill:#172c48}
body.app-page[data-theme=compact] .dashboard-chart-legend{font-size:13px;gap:24px}
body.app-page[data-theme=compact] .dashboard-chart-note{font-size:10px;color:#677b93}
body.app-page[data-theme=compact] .panel{margin-bottom:16px}
body.app-page[data-theme=compact] th{background:#e6f0fc;color:#31577f;border-color:#d1e0f2}
body.app-page[data-theme=compact] tr:nth-child(even){background:#f7faff}
body.app-page[data-theme=compact] .invoice-title{background:linear-gradient(100deg,#d7eaff,#eaf4ff);color:#164475}
body.app-page[data-theme=compact] .invoice-title h1{color:#164475}
.sample-compact .sample-nav{background:#0959b3}.sample-compact .sample-page>i{background:#deedff}.sample-compact .sample-page>span>i:nth-child(1){border-top:3px solid #43a53d}.sample-compact .sample-page>span>i:nth-child(2){border-top:3px solid #ff8508}.sample-compact .sample-page>span>i:nth-child(3){border-top:3px solid #ff424b}
@media(max-width:1350px){body.app-page[data-theme=compact] .menu-dropdown>summary{padding-inline:13px;font-size:13px}body.app-page[data-theme=compact] .side-menu{width:190px}body.app-page[data-theme=compact] .work-area{gap:16px}body.app-page[data-theme=compact] .dashboard-stats>section{grid-template-columns:65px minmax(0,1fr);column-gap:12px;padding:15px 12px}body.app-page[data-theme=compact] .compact-stat-icon{padding-right:12px}body.app-page[data-theme=compact] .compact-stat-icon>svg{width:52px;height:60px;padding:9px}body.app-page[data-theme=compact] .dashboard-stats strong{font-size:27px}body.app-page[data-theme=compact] .dashboard-stats strong small{font-size:13px}body.app-page[data-theme=compact] .quick-actions a{gap:10px;padding-inline:12px}body.app-page[data-theme=compact] .quick-actions a strong{font-size:14px}}
@media(max-width:1100px){body.app-page[data-theme=compact] .dashboard-chart-grid{grid-template-columns:1fr}body.app-page[data-theme=compact] .dashboard-stats{grid-template-columns:1fr}body.app-page[data-theme=compact] .dashboard-stats>section{grid-template-columns:76px minmax(0,1fr);min-height:110px}body.app-page[data-theme=compact] .quick-actions{grid-template-columns:1fr}body.app-page[data-theme=compact] .menu-dropdown>summary{padding:12px 10px;font-size:12px}}
@media(max-width:760px){body.app-page[data-theme=compact] .page-shell{padding:0 8px}body.app-page[data-theme=compact] .site-header{height:auto;min-height:66px;flex-wrap:wrap;gap:8px}body.app-page[data-theme=compact] .brand-logo{width:160px}body.app-page[data-theme=compact] .main-menu{flex-wrap:wrap;padding:3px;gap:0}body.app-page[data-theme=compact] .menu-dropdown>summary{padding:11px 9px}body.app-page[data-theme=compact] .work-area{display:block}body.app-page[data-theme=compact] .side-menu{display:none}body.app-page[data-theme=compact] .page-dashboard>.page-heading{flex-wrap:wrap}body.app-page[data-theme=compact] .page-dashboard>.page-heading>div{flex:1 0 100%}body.app-page[data-theme=compact] .page-dashboard>.page-heading>.button{margin-left:0}body.app-page[data-theme=compact] .page-dashboard>.page-heading h1{font-size:27px}body.app-page[data-theme=compact] .dashboard-section-title{align-items:flex-start}body.app-page[data-theme=compact] .dashboard-section-title h2{font-size:21px}body.app-page[data-theme=compact] .dashboard-chart-panel{padding:16px}body.app-page[data-theme=compact] .dashboard-donut{grid-template-columns:130px minmax(0,1fr)}body.app-page[data-theme=compact] .dashboard-chart-panel h2{font-size:20px}}
@media(prefers-reduced-motion:reduce){body.app-page[data-theme=compact] :is(.quick-actions a,.menu-dropdown>summary){transition:none}}
