/* KUJUNDUSED: eraldi kiht. Klassikaline kasutab muutmata app.css-i; PDF-il on oma dokumendimall. */
.solidne-home{display:none}
.appearance-panel .panel-heading{padding:0 0 16px;background:transparent;align-items:flex-start}
.appearance-panel .panel-heading p{margin:4px 0;color:var(--muted)}
.appearance-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px}
.appearance-choice{position:relative;display:flex;flex-direction:column;gap:7px;padding:12px;border:2px solid #dfe5e7;border-radius:10px;cursor:pointer;background:#fff;color:#36434a;min-width:0}
.appearance-choice:has(input:checked){border-color:#568c32;box-shadow:0 0 0 2px #80b74122}
.appearance-choice:focus-within{outline:2px solid #2574bb;outline-offset:3px}
.appearance-choice>input{position:absolute;top:18px;right:18px;width:16px;height:16px;margin:0;accent-color:#548d31;z-index:1}
.appearance-choice-title{font-size:14px;font-weight:700}.appearance-choice-description{font-size:12px;line-height:1.5;color:#667983}
.appearance-sample{height:112px;display:grid;grid-template-columns:28px 1fr;grid-template-rows:23px 12px 1fr;border-radius:5px;overflow:hidden;background:#f3f6f8;border:1px solid #dbe3e8}
.sample-header{grid-column:1/-1;background:#fff;border-bottom:1px solid #e5eaf0}.sample-nav{grid-column:1/-1;background:#80b741}
.sample-page{grid-column:1/-1;padding:9px;display:flex;flex-direction:column;gap:6px}.sample-page>i{height:12px;background:#78a7ba;border-radius:2px}.sample-page>span{display:flex;gap:5px;height:18px}.sample-page>span>i{background:#fff;border-radius:3px;flex:1}.sample-page>b{height:4px;width:90%;background:#cdd8df;border-radius:3px}.sample-page>b:last-child{width:65%}
.sample-modern{grid-template-rows:23px 12px 1fr}.sample-modern .sample-nav,.sample-aurora .sample-nav{grid-column:1;grid-row:2}.sample-modern .sample-nav{grid-column:1/-1;grid-row:2;background:#bdd5f4}.sample-modern .sample-page{grid-column:1/-1;grid-row:3}.sample-modern .sample-page,.sample-aurora .sample-page{grid-column:1/-1;grid-row:3}.sample-modern .sample-page>i{background:#3875d8}
.sample-compact{grid-template-rows:15px 9px 1fr}.sample-compact .sample-nav{background:#344b61}.sample-compact .sample-page{gap:4px}.sample-compact .sample-page>i{height:8px;background:#607a8d}
.sample-dark{background:#141f2d;border-color:#36485d}.sample-dark .sample-header{background:#202d3d;border-color:#36485d}.sample-dark .sample-nav{background:linear-gradient(110deg,#29465a,#2d7181)}.sample-dark .sample-page>i{background:#7cddd5}.sample-dark .sample-page>span>i{background:#2a4053}.sample-dark .sample-page>b{background:#36485d}
.sample-aurora{grid-template-rows:23px 12px 1fr;background:#f1edfc}.sample-aurora .sample-nav{grid-column:1/-1;grid-row:2;background:linear-gradient(110deg,#4d3b7d,#6b55a1,#476f93)}.sample-aurora .sample-page{grid-column:1/-1;grid-row:3}.sample-aurora .sample-page>i{background:linear-gradient(90deg,#6553c4,#217d95)}
/* Ühised rõhud. :where jätab väikeste otsingu-, abi- ja kustutusnuppude oma stiilid tugevamaks. */
:where(body:not([data-theme=classic]):not([data-theme=fury]):not(:where([data-theme=evo]))){font-family:"Segoe UI",Arial,sans-serif;--radius:12px;--accent:#2565bd;--surface:#fff;--soft:#f1f5f9;--border:#dbe4ed;--text:#25394b;--heading:#244568;--button:#326bb2;background:var(--soft);color:var(--text);--ink:var(--text);--card:var(--surface);--line:var(--border)}
body:not([data-theme=classic]):not([data-theme=fury]):not(:where([data-theme=evo])) .page-shell{background:transparent;border:0;max-width:1680px;padding:0 24px}
body:not([data-theme=classic]):not([data-theme=fury]):not(:where([data-theme=evo])) .brand-logo{object-fit:contain;object-position:left;width:240px;height:auto}
body:not([data-theme=classic]):not([data-theme=fury]):not(:where([data-theme=evo])) .panel,body:not([data-theme=classic]):not([data-theme=fury]):not(:where([data-theme=evo])) .stats section{background:var(--surface);border-color:var(--border);border-radius:var(--radius)}
/* Madal prioriteet lubab iga kujunduse heleda/tumeda pealkirjariba värvidel koos rakenduda. */
:where(body:not([data-theme=classic]):not([data-theme=fury]):not(:where([data-theme=evo]))) .page-heading{background:var(--heading);border-radius:var(--radius);overflow:visible;min-height:72px}
body:not([data-theme=classic]):not([data-theme=fury]):not(:where([data-theme=evo])) .page-heading h1{font-weight:600;font-size:24px}
:where(body:not([data-theme=classic]):not([data-theme=fury]):not(:where([data-theme=evo]))) button,:where(body:not([data-theme=classic]):not([data-theme=fury]):not(:where([data-theme=evo]))) .button{font-family:inherit;border-radius:6px}
:where(body:not([data-theme=classic]):not([data-theme=fury]):not(:where([data-theme=evo]))) button{background-color:var(--button)}
:where(body:not([data-theme=classic]):not([data-theme=fury]):not(:where([data-theme=evo]))) input,:where(body:not([data-theme=classic]):not([data-theme=fury]):not(:where([data-theme=evo]))) select,:where(body:not([data-theme=classic]):not([data-theme=fury]):not(:where([data-theme=evo]))) textarea{border-radius:5px}
body:not([data-theme=classic]):not([data-theme=fury]):not(:where([data-theme=evo])) :is(input,select,textarea,button,a,summary):focus-visible{outline:2px solid var(--accent);outline-offset:2px}
body:not([data-theme=classic]):not([data-theme=fury]):not(:where([data-theme=evo])) .side-menu{background:var(--surface);border:1px solid var(--border);border-radius:10px;overflow:hidden}
body:not([data-theme=classic]):not([data-theme=fury]):not(:where([data-theme=evo])) .side-menu h3{background:var(--soft);font-weight:600;color:var(--text);padding:10px}
body:not([data-theme=classic]):not([data-theme=fury]):not(:where([data-theme=evo])) .side-menu a{padding:9px 12px}
body:not([data-theme=classic]):not([data-theme=fury]):not(:where([data-theme=evo])) .stats strong{font-weight:650;color:var(--accent)}
body:not([data-theme=classic]):not([data-theme=fury]):not(:where([data-theme=evo])) .quick-actions a{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:20px}
body:not([data-theme=classic]):not([data-theme=fury]):not(:where([data-theme=evo])) .quick-actions a strong{font-weight:600;font-size:14px}
body:not([data-theme=classic]):not([data-theme=fury]):not(:where([data-theme=evo])) .invoice-dialog,body:not([data-theme=classic]):not([data-theme=fury]):not(:where([data-theme=evo])) .export-preview-dialog{border-radius:0;box-shadow:0 20px 65px #10273c33;border:1px solid var(--border)}
body:not([data-theme=classic]):not([data-theme=fury]):not(:where([data-theme=evo])) .invoice-title{border-radius:0;background:var(--heading)}
body:not([data-theme=classic]):not([data-theme=fury]):not(:where([data-theme=evo])) .invoice-tool{border-radius:0;flex-shrink:0}
body:not([data-theme=classic]):not([data-theme=fury]):not(:where([data-theme=evo])) .invoice-title>.invoice-tool,body:not([data-theme=classic]):not([data-theme=fury]):not(:where([data-theme=evo])) .page-heading .invoice-tool{border-left:0}
/* MOODNE HELE: avar tööala ja sinakas põhinavigatsioon. */
body[data-theme=modern],body[data-theme=aurora]{--green:#244568}
body[data-theme=modern] .main-menu>details>summary:hover{background:#294c70}
body[data-theme=modern] .page-dashboard .page-heading{background:#e3edfc;color:#244568}
body[data-theme=modern] .stats{gap:20px}.page-profile .appearance-panel{margin-top:0}
/* Moodne hele: avar sinakas ülariba; vasakut navigatsiooni ega seadete tulpa ei kasutata. */
body[data-theme=modern] .page-shell{display:block;max-width:1600px}
body[data-theme=modern] .site-header{height:96px;padding:16px 0}
body[data-theme=modern] .main-menu{position:relative;top:auto;display:flex;flex-direction:row;align-items:center;min-height:48px;padding:4px 12px;border-radius:12px;background:#dfeafa;border:1px solid #c9dcf3}
body[data-theme=modern] .menu-dropdown>summary{padding:11px 18px;color:#244d7b;font-size:13px;letter-spacing:0}
body[data-theme=modern] .main-menu>details>summary:hover{background:#cddff5}
body[data-theme=modern] .dropdown-panel{position:absolute;left:0;top:44px;min-width:220px;background:#fff;border:1px solid #cbdcf0;box-shadow:0 8px 24px #24456820;border-radius:10px;padding:7px 0}
body[data-theme=modern] .dropdown-panel a{padding:11px 16px;color:#294f78}
body[data-theme=modern] .dropdown-panel a:hover{background:#edf4fe}
body[data-theme=modern] .logout{margin:0 0 0 auto;border:0;padding:0}
body[data-theme=modern] .logout button{width:auto;background:transparent!important;color:#244d7b}
body[data-theme=modern] .work-area{padding-top:20px;gap:0}
body[data-theme=modern] .side-menu{display:none}
body[data-theme=modern] .page-heading{background:#e5effc;color:#244d7b;border:1px solid #cfdef0}
body[data-theme=modern] .page-heading h1{color:#244d7b}
body[data-theme=modern] .page-heading .muted{color:#4f6f91}
body[data-theme=modern] .page-heading>.button{background:#356eaf;color:white}
/* Heledal ribal vajavad ka ekspordilingid ja tagasilink tumedat teksti. */
body[data-theme=modern] .page-heading :is(.contact-export-shortcuts a,.back){color:#244d7b}
/* KOMPAKTNE: horisontaalne tööriba, madalad read ja väiksemad vahed. */
body[data-theme=compact]{--radius:4px;--accent:#355e73;--heading:#48677c;--button:#446d83;--green:#344b61;font-size:12px}
body[data-theme=compact] .page-shell{max-width:none;padding:0 12px}
body[data-theme=compact] .site-header{height:60px;padding:6px 0}
body[data-theme=compact] .brand-logo{width:190px}
body[data-theme=compact] .main-menu{border-radius:4px;min-height:32px}
body[data-theme=compact] .menu-dropdown>summary{padding:6px 13px}
body[data-theme=compact] .dropdown-panel{top:30px}
body[data-theme=compact] .work-area{gap:12px;padding-top:8px}
body[data-theme=compact] .page-heading{min-height:48px;margin-bottom:9px;padding:8px 12px}
body[data-theme=compact] .page-heading h1{font-size:20px}
body[data-theme=compact] .smart-list-heading{padding:0 0 0 10px;height:52px}
body[data-theme=compact] .page-heading .invoice-tool{min-height:48px}
body[data-theme=compact] :is(.smart-invoice-list,.contact-import-preview,.email-template-table) td{padding:5px 7px;height:auto}
body[data-theme=compact] :is(.smart-invoice-list,.contact-import-preview,.email-template-table) th{padding:7px;font-size:11px}
body[data-theme=compact] .stats{gap:10px;margin:12px 0}
body[data-theme=compact] .stats section{padding:12px}.stats section{min-width:0}
body[data-theme=compact] .stats strong{font-size:24px;margin:2px 0}
body[data-theme=compact] .quick-actions{gap:10px;margin:12px 0}
body[data-theme=compact] .quick-actions a{padding:12px}
body[data-theme=compact] .panel{margin-bottom:12px}
body[data-theme=compact] .padded{padding:14px}
body[data-theme=compact] .side-menu{width:150px}
body[data-theme=compact] .side-menu a{padding:6px 10px}
/* ÖÖ: tumedad ka vormid, tabelid, otsingutulemused ja modaalaknad. */
body[data-theme=dark]{color-scheme:dark;--surface:#202d3d;--soft:#141f2d;--border:#36485d;--text:#e5edf6;--muted:#adbed0;--accent:#7cddd5;--heading:#29465a;--button:#2d7181;--green:#29465a;background:radial-gradient(ellipse at 15% 0%,#2b536044,transparent 55%),radial-gradient(ellipse at 95% 10%,#43548026,transparent 45%),var(--soft);background-attachment:fixed}
body[data-theme=dark] a{color:#91cef7}
body[data-theme=dark] .site-header{height:100px}
body[data-theme=dark] .brand{padding:8px 12px;background:#fff;border-radius:10px}
body[data-theme=dark] .main-menu{background:#182f43;border:1px solid var(--border);border-radius:12px;padding:5px 8px}
body[data-theme=dark] .menu-dropdown>summary{border-radius:7px}
body[data-theme=dark] .menu-dropdown>summary:hover{background:#28536b}
body[data-theme=dark] .dropdown-panel{background:#1c3045;border-color:var(--border);border-radius:8px}
body[data-theme=dark] .dropdown-panel a,body[data-theme=dark] .side-menu a{color:var(--text)}
body[data-theme=dark] .dropdown-panel a:hover,body[data-theme=dark] .side-menu a:hover{background:#29485c}
body[data-theme=dark] :is(.panel,.panel-heading,.invoice-dialog,.invoice-form,.contact-white,.contact-main,.contact-bottom,.contact-defaults,.contact-ledger,.article-card-grid,.article-main,.article-sale,.article-purchase,.bank-account-body,.bank-account-columns,.email-template-dialog,.email-template-fields,.email-template-name,.export-preview-options,.contact-import-upload,.contact-import-map,.email-send-preview){background:var(--surface);color:var(--text);border-color:var(--border)}
body[data-theme=dark] :is(.invoice-contact-bar,.invoice-bottom,.invoice-bottom section,.invoice-payments,.invoice-pdf-settings,.invoice-files,.invoice-internal,.contact-card-grid,.contact-card-lower,.contact-white,.article-card-grid>section,.article-card-grid>div,.bank-connection-status){background:var(--surface);color:var(--text)}
body[data-theme=dark] :is(input,select,textarea){background:#122031;color:var(--text);border-color:#45607a}
body[data-theme=dark] :is(input,textarea)::placeholder{color:#9aadc2;opacity:1}
body[data-theme=dark] input:disabled,body[data-theme=dark] textarea:disabled{background:#213247;color:#c5d4e3}
body[data-theme=dark] :is(label,.contact-dialog label,.invoice-dialog label,.bank-account-columns label:not(.check),.bank-account-right .check,.email-template-dialog label:not(.check),.email-template-bottom .check,.bank-connection p){color:var(--text)}
body[data-theme=dark] :is(h2,h3,.panel-heading h2,.contact-dialog h2,.bank-connection h2,.email-template-bottom h2){color:#c0dce9}
body[data-theme=dark] :is(table,th,td){border-color:var(--border)}
body[data-theme=dark] :is(th,thead th,.invoice-lines th){background:#263e53;color:#d7e9f7}
body[data-theme=dark] :is(td,.invoice-lines td){background:var(--surface);color:var(--text)}
body[data-theme=dark] tbody tr:nth-child(even)>td{background:var(--surface);color:var(--text)}
body[data-theme=dark] tbody tr:hover>td{background:#2a4053;color:var(--text)}
body[data-theme=dark] .invoice-lines td input,body[data-theme=dark] .invoice-lines td textarea{background:transparent;color:var(--text)}
body[data-theme=dark] :is(.notice,.empty,.bank-card-help){background:#223b45;color:#c1e6d7;border-color:#476c72}
body[data-theme=dark] :is(.notice.error,.contact-import-error td){background:#522d38;color:#ffdae0}
body[data-theme=dark] :is(.secondary,.subtle){background:#293e53;color:#d9e9f5;border-color:#4a6075}
body[data-theme=dark] .page-dashboard .page-heading{background:#204459;color:var(--text)}
body[data-theme=dark] .appearance-choice{background:#1a2c40;color:var(--text);border-color:#40556d}
body[data-theme=dark] .appearance-choice:has(input:checked){border-color:var(--accent)}
body[data-theme=dark] :is(.muted,.account-details,.appearance-choice-description,.bank-auto-ledger){color:var(--muted)}
body[data-theme=dark] :is(.file-drop,.invoice-file-drop){background:#14283a;color:#b5d1e5;border-color:#49627b}
body[data-theme=dark] :is(.registry-results,.registry-result,.ledger-options,.article-picker,.article-picker-results){background:#203449;color:#e0e9f2;border-color:#48627c}
body[data-theme=dark] .company-switch select{background:transparent;color:#8ee0bd}
body[data-theme=dark] .invoice-dialog :is(input,select,textarea){background:#122031;color:var(--text);border-color:#45607a}
body[data-theme=dark] .invoice-dialog :is(input[readonly],input:disabled,textarea:disabled){background:#213247;color:#c5d4e3}
body[data-theme=dark] :is(.counterparty,.invoice-lower,.payment-box,.pdf-options,.contact-card-header,.contact-registry-bar){background:var(--surface);color:var(--text)}
body[data-theme=dark] .counterparty{background:#21364a}
body[data-theme=dark] :is(.counterparty #contact-details,.pdf-options label>span,.invoice-fields label,.invoice-totals,.invoice-total,.invoice-calculations,.unpaid){color:var(--text)}
body[data-theme=dark] .invoice-grid th{background:#263e53;color:#d7e9f7;border-color:var(--border)}
body[data-theme=dark] .invoice-grid td{background:var(--surface);color:var(--text);border-color:var(--border)}
body[data-theme=dark] .invoice-grid td.calculated{background:#293f54}
body[data-theme=dark] .file-drop{outline-color:var(--surface)}
body[data-theme=dark] :is(.smart-totals .grand,.contact-balance,.counterparty .contact-balance){color:#dcebf6}
/* Öö: ühtlased tabeliread, pehme sügavus ja selgelt loetavad olekud. */
body[data-theme=dark] :is(.panel,.stats section,.quick-actions a){box-shadow:0 8px 24px #050c1726,inset 0 1px 0 #ffffff05}
body[data-theme=dark] .panel-heading{background:linear-gradient(110deg,#293e50,#243445);border-bottom:1px solid var(--border)}
body[data-theme=dark] :is(.main-menu,.page-heading,.invoice-title){background-image:linear-gradient(115deg,#ffffff06,transparent 65%)}
body[data-theme=dark] .quick-actions a{color:var(--text)}
body[data-theme=dark] .quick-actions a:hover{background:#293d4f;border-color:#598c98;box-shadow:0 8px 26px #050c1740,inset 0 1px 0 #9de9e812}
body[data-theme=dark] .stats section{border-top:2px solid #5ba7ad}
body[data-theme=dark] .panel td{border-bottom-color:#334457}
body[data-theme=dark] td small{color:var(--muted)}
body[data-theme=dark] .badge{background:#2d4954;color:#c1ece8;border:1px solid #487079;border-radius:5px}
body[data-theme=dark] .badge.draft{background:#4c4430;color:#f2dba4;border-color:#776641}
body[data-theme=dark] .badge.overdue{background:#4b3540;color:#ffc3be;border-color:#7a4e57}
body[data-theme=dark] .badge.paid{background:#28483f;color:#b0e8c9;border-color:#46745f}
body[data-theme=dark] .sample-dark{background:#141f2d;border-color:#486375}
body[data-theme=dark] .panel-heading a:hover{color:#c7f6ee;text-decoration:underline}
@media(prefers-reduced-motion:no-preference){
body[data-theme=dark][data-motion=full] :is(tbody td,.quick-actions a,.menu-dropdown>summary,button,.button){transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease}
}
/* Vormide abikontrollid ja otsingutulemused jäävad taustaga üheks tervikuks. */
body[data-theme=dark] .invoice-grid .article-input button,body[data-theme=dark] .invoice-grid .remove-line{background:transparent;border-radius:0;box-shadow:none}
body[data-theme=dark] .invoice-grid .article-input button{color:#bfd8e9}
body[data-theme=dark] :is(.invoice-corner,.invoice-close,.invoice-help){background:#263e53;color:#dcebf6;border-radius:0}
body[data-theme=dark] .invoice-grid .ledger-combobox input{background:#122031;color:var(--text);border-color:#45607a}
body[data-theme=dark] :is(.article-picker,.ledger-picker){background:var(--surface);border-color:#42617b;color:var(--text)}
body[data-theme=dark] :is(.article-picker-header,.ledger-picker-header){background:#42617b}
body[data-theme=dark] :is(.article-picker-header,.ledger-picker-header)>button{background:transparent;color:white}
body[data-theme=dark] :is(.article-picker-results,.ledger-picker-results){background:var(--surface)}
body[data-theme=dark] :is(.article-picker-results,.ledger-picker-results)>button,body[data-theme=dark] :is(#contact-options,.contact-options)>button{background:var(--surface);color:var(--text);border-color:var(--border)}
body[data-theme=dark] :is(.article-picker-results,.ledger-picker-results)>button:nth-child(even){background:#203449}
body[data-theme=dark] :is(.article-picker-results,.ledger-picker-results)>button:hover,body[data-theme=dark] :is(.article-picker-results,.ledger-picker-results)>button[aria-selected=true],body[data-theme=dark] :is(#contact-options,.contact-options)>button:hover{background:#355976;color:#fff}
body[data-theme=dark] .contact-details-table .remove-contact-detail{background:transparent;color:#ffab70}
body[data-theme=dark] :is(.contact-card-body,.bank-account-fields,.payment-settings-fields){background:var(--surface);color:var(--text)}
body[data-theme=dark] .contact-registry{background:#21364a;color:var(--text)}
body[data-theme=dark] .payment-hint{color:var(--muted)}
/* Loendite summaplokk kasutab sama tumedat pinda kui tabelid. */
body[data-theme=dark] .page-sums{background:var(--surface);color:var(--text);border:1px solid var(--border)}
body[data-theme=dark] .page-sums>span{border-bottom-color:var(--border)}
body[data-theme=dark] :is(.bank-account-right,.email-template-bottom) input[type=checkbox]{background:#3b5269;border:1px solid #8199af}
body[data-theme=dark] :is(.bank-account-right,.email-template-bottom) input[type=checkbox]:checked{background:#4bb883;border-color:#4bb883}
/* AURORA: sügavam külgriba, pehmed kaardid ja liikuvad värviüleminekud. */
body[data-theme=aurora]{--soft:#f3f0fa;--border:#e2ddec;--text:#34334c;--heading:#6553a5;--accent:#6850b7;--button:#6853b1;--radius:16px;background:radial-gradient(ellipse at 95% 5%,#d8eef1 0,transparent 40%),radial-gradient(ellipse at 0 75%,#e6ddfa 0,transparent 45%),#f5f3fb}
body[data-theme=aurora] .page-heading{background:linear-gradient(110deg,#6552a5,#4d6c9f 60%,#297b89);box-shadow:0 8px 24px #66529818}
body[data-theme=aurora] .page-dashboard .page-heading{color:#fff}
body[data-theme=aurora] .main-menu{background:linear-gradient(155deg,#353554,#61518e)}
body[data-theme=aurora] .menu-dropdown>summary:hover{background:#ffffff16}
body[data-theme=aurora] .stats section,body[data-theme=aurora] .quick-actions a{box-shadow:0 7px 25px #5d43830a}
body[data-theme=aurora] .stats strong{font-size:30px}
body[data-theme=aurora] .quick-actions a>span{color:#6e54b6}
body[data-theme=aurora] .content :is(.form-actions>button,form>button,.smart-list-filter>button,.export-filters>button,.bank-upload>button,.bank-import-actions>button,.contact-import-next):not(.secondary):not(.invoice-tool):not(.danger),body[data-theme=aurora] .content>.button{background-image:linear-gradient(110deg,#6e50b2,#487caf,#257c88,#6e50b2);background-size:250% 100%;background-position:0 50%}
body[data-theme=aurora] .appearance-choice:has(input:checked){border-color:#7860ba;box-shadow:0 0 0 3px #7860ba15}
/* Aurora kasutaja soovitud paigutus: lilla ülariba, seadete vasakut tulpa ei kuvata. */
body[data-theme=aurora] .page-shell{display:block}
body[data-theme=aurora] .site-header{height:86px;padding:10px 0}
body[data-theme=aurora] .main-menu{position:relative;top:auto;display:flex;flex-direction:row;align-items:center;min-height:44px;padding:3px 8px;border-radius:10px;background:linear-gradient(105deg,#4d3b7d,#6b55a1 60%,#476f93)}
body[data-theme=aurora] .menu-dropdown>summary{padding:10px 15px}
body[data-theme=aurora] .dropdown-panel{position:absolute;left:0;top:40px;min-width:205px;background:#fff;border:1px solid #dfd8ec;box-shadow:0 10px 30px #3c2f6125;border-radius:9px;padding:6px 0}
body[data-theme=aurora] .dropdown-panel a{color:#423558;padding:10px 15px}
body[data-theme=aurora] .dropdown-panel a:hover{background:#f1ecf8}
body[data-theme=aurora] .logout{margin:0 0 0 auto;border:0;padding:0}
body[data-theme=aurora] .logout button{width:auto;background:transparent!important}
body[data-theme=aurora] .work-area{padding-top:16px;gap:0}
body[data-theme=aurora] .side-menu{display:none}
.appearance-settings-links{display:none}
body:is([data-theme=fury],[data-theme=evo]) .appearance-settings-links{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:20px}
body:is([data-theme=fury],[data-theme=evo]) .appearance-settings-links a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;box-sizing:border-box;background:#fff;border:1px solid #d8e3e9;border-radius:10px;color:#25618a;font-weight:600;text-decoration:none}
body:is([data-theme=fury],[data-theme=evo]) .appearance-settings-links a:hover{border-color:#78a7ba;background:#f0f7fa}
body:is([data-theme=fury],[data-theme=evo]) .appearance-settings-links a:focus-visible{outline:2px solid #25618a;outline-offset:2px}

body:is([data-theme=aurora],[data-theme=modern]) .appearance-settings-links{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:20px}
body:is([data-theme=aurora],[data-theme=modern]) .appearance-settings-links a{display:inline-block;padding:12px 18px;background:#fff;border:1px solid var(--border);border-radius:10px;color:var(--accent);font-weight:600}
body[data-theme=aurora] .appearance-settings-links a:hover{border-color:#9f8dc0;background:#f9f7fd;text-decoration:none}
/* FURY: klassikalised mõõdud, font, külgmenüü ja nuppude tähendusvärvid; Aurora efektid. */
.sample-fury .sample-nav{background:linear-gradient(110deg,#80b741,#4e9c83,#80b741)}
.sample-fury .sample-page>i{background:linear-gradient(110deg,#78a7ba,#548fa7,#78a7ba)}
body:is([data-theme=fury],[data-theme=evo]) .main-menu{background:linear-gradient(110deg,#80b741,#64a76a,#438e98,#80b741);background-size:250% 100%}
body:is([data-theme=fury],[data-theme=evo]) :is(.page-heading,.invoice-title){background-image:linear-gradient(110deg,#78a7ba,#5b95ad,#78a7ba);background-size:250% 100%}
body:is([data-theme=fury],[data-theme=evo]) .page-dashboard .page-heading h1{color:#fff}
body:is([data-theme=fury],[data-theme=evo]) .content :is(.form-actions>button,form>button,.smart-list-filter>button,.export-filters>button,.bank-upload>button,.bank-import-actions>button,.contact-import-next):not(.secondary):not(.invoice-tool):not(.danger),body:is([data-theme=fury],[data-theme=evo]) .content>.button{background-image:linear-gradient(110deg,#689b38,#3d8c94,#568fae,#689b38);background-size:250% 100%;background-position:0 50%}
/* Läige jätab Salvesta, Kustuta ja Muuda tähendusvärvid ning väiksed abikontrollid alles. */
body:is([data-theme=fury],[data-theme=evo]) .invoice-tool{background-image:linear-gradient(110deg,transparent 15%,#ffffff30 50%,transparent 85%);background-size:250% 100%;background-position:0 50%}
@media(prefers-reduced-motion:no-preference){
body:is([data-theme=fury],[data-theme=evo])[data-motion=full] :is(.main-menu,.page-heading,.invoice-title){transition:background-position .85s ease}
body:is([data-theme=fury],[data-theme=evo])[data-motion=full] :is(.main-menu,.page-heading,.invoice-title):hover{background-position:100% 50%}
body:is([data-theme=fury],[data-theme=evo])[data-motion=full] .invoice-tool:hover{background-position:100% 50%}
}
/* Liikumine ei muuda mõõtmeid ega liiguta sisestusvälju. CSS ja JS järgivad mõlemad vähendatud liikumist. */
@media(prefers-reduced-motion:no-preference){
body:is([data-theme=aurora],:is([data-theme=fury],[data-theme=evo]),[data-theme=solidne])[data-motion=full] :is(button[type=submit],.form-actions>button,form>button,.button,.invoice-tool,.quick-actions a,.appearance-choice){transition:background-position .65s ease,box-shadow .25s ease,transform .25s ease,border-color .25s ease}
body:is([data-theme=aurora],:is([data-theme=fury],[data-theme=evo]),[data-theme=solidne])[data-motion=full] :is(button[type=submit],.form-actions>button,form>button,.button):not(.invoice-tool):not(:disabled):hover{background-position:100% 50%;transform:translateY(-2px);box-shadow:0 5px 14px #3b2a6630}
body:is([data-theme=aurora],:is([data-theme=fury],[data-theme=evo]),[data-theme=solidne])[data-motion=full] .quick-actions a:hover{transform:translateY(-3px);box-shadow:0 12px 25px #4934751c}
body:is([data-theme=aurora],:is([data-theme=fury],[data-theme=evo]),[data-theme=solidne])[data-motion=full] .menu-dropdown[open] .dropdown-panel{animation:aurora-drop .25s ease-out both}
body:is([data-theme=aurora],:is([data-theme=fury],[data-theme=evo]),[data-theme=solidne])[data-motion=full] .page-heading h1{animation:aurora-drop .45s ease-out both}
body:is([data-theme=aurora],:is([data-theme=fury],[data-theme=evo]),[data-theme=solidne])[data-motion=full] .aurora-reveal{animation:aurora-drop .5s ease-out both}
@keyframes aurora-drop{from{opacity:0;transform:translateY(-9px)}to{opacity:1;transform:translateY(0)}}
}
@media(prefers-reduced-motion:reduce){body:is([data-theme=aurora],:is([data-theme=fury],[data-theme=evo]),[data-theme=solidne]) *,body:is([data-theme=aurora],:is([data-theme=fury],[data-theme=evo]),[data-theme=solidne]) *::before,body:is([data-theme=aurora],:is([data-theme=fury],[data-theme=evo]),[data-theme=solidne]) *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
body[data-motion=reduced] *,body[data-motion=reduced] *::before,body[data-motion=reduced] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@media(max-width:999px){body:not([data-theme=classic]):not([data-theme=fury]):not(:where([data-theme=evo])) .page-shell{padding:0 12px}body[data-theme=modern] .main-menu{border-radius:8px}body:not([data-theme=classic]):not([data-theme=fury]):not(:where([data-theme=evo])) .site-header{padding-left:0;padding-right:0}}
@media(max-width:650px){.appearance-choices{grid-template-columns:repeat(2,minmax(0,1fr))}body:not([data-theme=classic]):not([data-theme=fury]):not(:where([data-theme=evo])) .brand-logo{width:160px}body:not([data-theme=classic]):not([data-theme=fury]):not(:where([data-theme=evo])) .site-header{height:auto;min-height:86px;gap:10px}body:not([data-theme=classic]):not([data-theme=fury]):not(:where([data-theme=evo])) .header-account{min-width:0}body:not([data-theme=classic]):not([data-theme=fury]):not(:where([data-theme=evo])) .company-switch{flex-wrap:wrap}body:not([data-theme=classic]):not([data-theme=fury]):not(:where([data-theme=evo])) .company-switch select{max-width:160px}body:not([data-theme=classic]):not([data-theme=fury]):not(:where([data-theme=evo])) .page-heading h1{font-size:20px}body:not([data-theme=classic]):not([data-theme=fury]):not(:where([data-theme=evo])) .appearance-panel{padding:12px}.appearance-choice{padding:9px}.appearance-choice-description{font-size:11px}}
@media print{body .page-shell{display:block!important;padding:0!important}body .main-menu,body .side-menu,body .appearance-panel{display:none!important}body[data-theme=dark]{color-scheme:light;background:#fff;color:#111}body:is([data-theme=aurora],:is([data-theme=fury],[data-theme=evo]),[data-theme=solidne]) *{animation:none!important}}

/* Abi-plokk säilitab kõigis kujundustes tööriba kuju ja loetava kontrasti. */
body:not([data-theme=classic]):not([data-theme=fury]):not(:where([data-theme=evo])) .page-heading:has(>.page-help-button){padding:0 0 0 12px;gap:3px;align-items:stretch}body[data-theme=compact] .page-heading>.page-help-button{min-height:48px}body[data-theme=dark] .page-heading>.page-help-button{background:#526b7e;color:#fff!important}body[data-theme=dark] .page-heading>.page-help-button:hover{background:#647f94}
/* SOLIIDNE: oma tööruum — metsaroheline külgnavigatsioon ja soe hele lõuend. */
.sample-solidne{grid-template-columns:30px 1fr;grid-template-rows:20px 1fr;background:#f3f1ec}
.sample-solidne .sample-header{grid-column:1/-1;background:#fffdf9}
.sample-solidne .sample-nav{grid-column:1;grid-row:2;background:#183c38}
.sample-solidne .sample-page{grid-column:2;grid-row:2;padding:9px 6px}
.sample-solidne .sample-page>i{background:#d8e5df;height:8px;width:70%}
.sample-solidne .sample-page>b{background:#c7d5ce}
body.app-page[data-theme=solidne]{--green:#28675b;--accent:#28675b;--button:#28675b;--heading:#243d37;--surface:#fffdf9;--soft:#f3f1ec;--border:#dfe5dd;--text:#293e38;--muted:#65746d;--ink:#293e38;--card:#fffdf9;--line:#e0e5dd;--radius:14px;background:#f3f1ec;color:var(--text);font:14px/1.6 'Segoe UI',Arial,sans-serif}
body.app-page[data-theme=solidne] .page-shell{display:grid;grid-template-columns:218px minmax(0,1fr);grid-template-rows:88px 1fr auto;column-gap:32px;max-width:1800px;min-height:100vh;padding:0 32px 0 0;background:transparent;border:0}
body.app-page[data-theme=solidne] .site-header{grid-column:1/-1;grid-row:1;height:88px;padding:16px 0 16px 24px;gap:24px;border-bottom:1px solid #dce3da}
body.app-page[data-theme=solidne] .brand-logo{width:198px;height:auto;max-width:100%}
body.app-page[data-theme=solidne] .header-account{margin-left:auto}
body.app-page[data-theme=solidne] .company-switch select{color:#244c40;background:#fffdf9;border:1px solid #dce4da;border-radius:8px;padding:5px 12px;font-size:13px}
body.app-page[data-theme=solidne] .account-details{margin-top:4px;font-size:11px}
body.app-page[data-theme=solidne] .account-details a{color:#50665c}
body.app-page[data-theme=solidne] .main-menu{grid-column:1;grid-row:2;display:flex;flex-direction:column;align-items:stretch;align-self:start;position:sticky;top:18px;margin:22px 0 24px 16px;padding:22px 10px 14px;min-height:calc(100vh - 132px);max-height:calc(100vh - 36px);overflow:auto;border:1px solid #28483f;border-radius:18px;background:linear-gradient(155deg,#173c36,#162e2d 65%,#24483e);box-shadow:0 12px 30px #203d3010;gap:5px}
body.app-page[data-theme=solidne] .main-menu::before{content:'SINU TÖÖRUUM';padding:3px 14px 19px;color:#a5bbb0;font-size:10px;letter-spacing:.17em;font-weight:600}
body.app-page[data-theme=solidne] .solidne-home{display:block;margin-bottom:18px;border-bottom:1px solid #5575686b;border-radius:8px 8px 0 0;padding:12px 14px 20px;color:#e6eee6;font-size:14px;font-weight:600}
body.app-page[data-theme=solidne] .solidne-home::before{content:'⌂';margin-right:11px;color:#c8b482;font-size:19px}
body.app-page[data-theme=solidne] .main-menu>a:hover{background:#ffffff0c;color:#fff}
body.app-page[data-theme=solidne] .menu-dropdown{position:relative;width:100%;flex:none}
body.app-page[data-theme=solidne] .menu-dropdown>summary{display:flex;align-items:center;gap:11px;padding:13px 14px;color:#d9e6dc;font-size:11px;font-weight:650;letter-spacing:.07em;border-radius:9px;white-space:nowrap}
body.app-page[data-theme=solidne] .menu-dropdown>summary::before{content:'01';font-size:10px;letter-spacing:0;font-weight:400;color:#9ab5a8}
body.app-page[data-theme=solidne] .menu-dropdown:nth-of-type(2)>summary::before{content:'02'}
body.app-page[data-theme=solidne] .menu-dropdown:nth-of-type(3)>summary::before{content:'03'}
body.app-page[data-theme=solidne] .menu-dropdown:nth-of-type(4)>summary::before{content:'04'}
body.app-page[data-theme=solidne] .menu-dropdown:nth-of-type(5)>summary::before{content:'05'}
body.app-page[data-theme=solidne] .menu-dropdown:nth-of-type(6)>summary::before{content:'06'}
body.app-page[data-theme=solidne] .menu-dropdown:nth-of-type(7)>summary::before{content:'07'}
body.app-page[data-theme=solidne] .menu-dropdown:nth-of-type(8)>summary::before{content:'08'}
body.app-page[data-theme=solidne] .menu-dropdown>summary::after{content:'›';margin-left:auto;font:17px Arial;color:#a5baaa}
body.app-page[data-theme=solidne] .menu-dropdown[open]>summary,body.app-page[data-theme=solidne] .menu-dropdown>summary:hover,body.app-page[data-theme=solidne] .menu-dropdown.has-current>summary{background:#ffffff13;color:#fff}
body.app-page[data-theme=solidne] .menu-dropdown.has-current>summary{box-shadow:inset 3px 0 #c9b787}
body.app-page[data-theme=solidne] .menu-dropdown[open]>summary::after{transform:rotate(90deg)}
body.app-page[data-theme=solidne] .dropdown-panel{position:static;min-width:0;width:100%;padding:6px 0 8px 14px;background:transparent;border:0;border-radius:0;box-shadow:none}
body.app-page[data-theme=solidne] .dropdown-panel a{padding:8px 12px;border-radius:7px;color:#c5d7cb;font-size:12px;white-space:normal}
body.app-page[data-theme=solidne] .dropdown-panel a:hover,body.app-page[data-theme=solidne] .dropdown-panel a.is-current{background:#31544b;color:#fff}
body.app-page[data-theme=solidne] .logout{margin:auto 4px 0;padding-top:26px}
body.app-page[data-theme=solidne] .logout button{justify-content:flex-start;width:100%;padding:12px 10px;background:transparent!important;color:#bdcec2;font-size:10px;letter-spacing:.05em}
body.app-page[data-theme=solidne] .work-area{grid-column:2;grid-row:2;display:block;min-width:0;padding:30px 0 0}
body.app-page[data-theme=solidne] .content{min-width:0;min-height:calc(100vh - 190px)}
body.app-page[data-theme=solidne] .side-menu{display:none}
body.app-page[data-theme=solidne] footer{grid-column:2;padding:18px 0;border-top:1px solid #dce3da;color:#788578;background:transparent}
body.app-page[data-theme=solidne] .appearance-settings-links{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 24px}
body.app-page[data-theme=solidne] .appearance-settings-links a{padding:7px 13px;border:1px solid #dae2d7;border-radius:20px;background:#fffdf9;color:#476153;font-size:12px}
body.app-page[data-theme=solidne] .page-heading,body.app-page[data-theme=solidne] .page-heading:has(>.page-help-button){background:transparent;color:#293e38;min-height:66px;height:auto;border:0;border-bottom:1px solid #dce3da;border-radius:0;padding:0 0 22px;margin-bottom:25px;gap:10px;align-items:center}
body.app-page[data-theme=solidne] .page-heading h1{font:normal 32px/1.25 Georgia,Cambria,serif;letter-spacing:-.6px;color:#243e34}
body.app-page[data-theme=solidne] .page-heading .eyebrow{display:block;margin:0 0 8px;color:#8c744e;letter-spacing:.14em;font-size:10px}
body.app-page[data-theme=solidne] .page-heading :is(.muted,.back){color:#63756a}
body.app-page[data-theme=solidne] .page-heading .report-downloads a,body.app-page[data-theme=solidne] .page-heading .contact-export-shortcuts a{color:#28675b}
body.app-page[data-theme=solidne] .panel,body.app-page[data-theme=solidne] .stats section{border:1px solid #dfe5da;background:#fffdf9;border-radius:14px;box-shadow:0 5px 20px #30442c04}
body.app-page[data-theme=solidne] .panel-heading{background:transparent;border-bottom:1px solid #e4e9df;padding:17px 20px;border-radius:14px 14px 0 0}
body.app-page[data-theme=solidne] .panel-heading h2,body.app-page[data-theme=solidne] .content h2{color:#395447;font-weight:600}
body.app-page[data-theme=solidne] .stats{gap:18px;margin-bottom:28px}
body.app-page[data-theme=solidne] .stats section{padding:22px;border-top:3px solid #719084}
body.app-page[data-theme=solidne] .stats strong{font-size:30px;font-weight:500;letter-spacing:-1px;color:#245d50}
body.app-page[data-theme=solidne] .quick-actions{gap:16px}
body.app-page[data-theme=solidne] .quick-actions a{padding:20px;background:#fffdf9;border:1px solid #dfe5da;border-radius:14px;color:#395c4f}
body.app-page[data-theme=solidne] .smart-list-filter,body.app-page[data-theme=solidne] .export-filters{padding:16px;background:#fffdf9;border:1px solid #dfe5da;border-radius:12px;margin-bottom:20px;gap:10px}
body.app-page[data-theme=solidne] :is(input,select,textarea){background:#fffefa;color:#293e38;border-color:#ced9cc;border-radius:7px}
body.app-page[data-theme=solidne] :is(input,select,textarea):focus{border-color:#578876;box-shadow:0 0 0 3px #477b6012}
body.app-page[data-theme=solidne] :is(button,.button){border-radius:8px;font-family:inherit}
body.app-page[data-theme=solidne] .secondary{background:#eef2e9;border:1px solid #d5dfcf;color:#476448}
body.app-page[data-theme=solidne] .content :is(.form-actions>button,form>button,.smart-list-filter>button,.button):not(.secondary):not(.invoice-tool):not(.danger){background-image:linear-gradient(110deg,#245d50,#407d69,#245d50);background-size:230% 100%;color:#fff}
body.app-page[data-theme=solidne] .table-wrap{border-radius:12px;border:1px solid #dfe5da;background:#fffdf9;overflow-x:auto}
body.app-page[data-theme=solidne] table{background:#fffdf9;color:#293e38}
body.app-page[data-theme=solidne] th{background:#edf1e8;color:#50654f;font-size:10px;font-weight:650;letter-spacing:.06em;padding:13px 12px;border-color:#dce3d6}
body.app-page[data-theme=solidne] td{border-color:#e7ebe2;padding:11px 12px}
body.app-page[data-theme=solidne] tbody tr:nth-child(even){background:#f8f9f3}
body.app-page[data-theme=solidne] tbody tr:hover{background:#edf3e9}
body.app-page[data-theme=solidne] td a{color:#28675b}
body.app-page[data-theme=solidne] .page-heading .invoice-tool,body.app-page[data-theme=solidne] .invoice-title>.invoice-tool{flex:0 0 auto;width:auto;min-width:62px;min-height:48px;align-self:center;display:flex;flex-direction:row;justify-content:center;gap:7px;border:1px solid #d5dfd0;border-radius:9px;padding:10px 12px!important;background:#fffdf9;color:#fff!important;font:12px 'Segoe UI',Arial,sans-serif!important;text-decoration:none}
body.app-page[data-theme=solidne] .page-heading .invoice-tool b,body.app-page[data-theme=solidne] .invoice-title>.invoice-tool b{font-size:18px;line-height:22px}
body.app-page[data-theme=solidne] .page-heading .invoice-tool.new,body.app-page[data-theme=solidne] .invoice-title>.invoice-tool.save{background:#28675b;border-color:#28675b;color:white!important}
body.app-page[data-theme=solidne] .invoice-title>.invoice-tool.delete{background:#fff1e8;border-color:#eed4c0;color:#fff!important}
body.app-page[data-theme=solidne] .invoice-tool svg{stroke:currentColor;width:19px;height:21px}
body.app-page[data-theme=solidne] .invoice-dialog,body.app-page[data-theme=solidne] .export-preview-dialog{border-radius:16px;border:1px solid #d6dfd0;overflow:hidden;box-shadow:0 30px 100px #182f3050}
body.app-page[data-theme=solidne] .invoice-title{height:auto;min-height:82px;padding:14px 16px;gap:7px;background:#fffdf9;border-bottom:1px solid #dfe5da;align-items:center}
body.app-page[data-theme=solidne] .invoice-title .invoice-heading{flex:1;min-width:100px}
body.app-page[data-theme=solidne] .invoice-title h1{font:normal 27px/1.25 Georgia,Cambria,serif;color:#284638;margin:0 0 4px}
body.app-page[data-theme=solidne] .invoice-title small{color:#7b887b;margin-left:0}
body.app-page[data-theme=solidne] .invoice-corner{align-self:stretch;flex:0 0 28px;margin:-5px -5px -5px 0}
body.app-page[data-theme=solidne] .invoice-corner :is(a,button){color:#647664;background:#eef2e9;border-radius:6px}
body.app-page[data-theme=solidne] .invoice-contact-bar,body.app-page[data-theme=solidne] .contact-registry{background:#edf2e8;color:#405d4b}
body.app-page[data-theme=solidne] .invoice-lines td{padding:0 3px}
body.app-page[data-theme=solidne] .invoice-lines .line-remove{color:#a44d2e;background:transparent}
body.app-page[data-theme=solidne] .invoice-lower{background:#f3f4ee}
body.app-page[data-theme=solidne] .report-dialog{border-radius:14px;border:1px solid #d6dfd0}
body.app-page[data-theme=solidne] .report-dialog-heading{background:#244b40;color:#fff}
body.app-page[data-theme=solidne] .report-row-section td{background:#eaf0e5}
body.app-page[data-theme=solidne] .report-tax-controls,body.app-page[data-theme=solidne] .tsd-annex{background:#edf2e7;border-radius:12px}
@media(prefers-reduced-motion:no-preference){
 body.app-page[data-theme=solidne][data-motion=full] .main-menu{background-size:150% 150%;transition:background-position .85s ease}
 body.app-page[data-theme=solidne][data-motion=full] .main-menu:hover{background-position:100% 100%}
 body.app-page[data-theme=solidne][data-motion=full] .invoice-tool{background-image:linear-gradient(110deg,transparent 10%,#ffffff20 50%,transparent 90%);background-size:230% 100%}
 body.app-page[data-theme=solidne][data-motion=full] .invoice-tool:hover{background-position:100% 50%;box-shadow:0 4px 14px #30573e17}
}
@media(max-width:1100px){
 body.app-page[data-theme=solidne] .page-shell{grid-template-columns:184px minmax(0,1fr);column-gap:20px;padding-right:20px}
 body.app-page[data-theme=solidne] .main-menu{margin-left:10px;padding-left:7px;padding-right:7px}
 body.app-page[data-theme=solidne] .menu-dropdown>summary{padding:12px 9px;font-size:10px;gap:8px}
 body.app-page[data-theme=solidne] .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.app-page[data-theme=solidne] .invoice-title>.invoice-tool{flex-direction:column;min-width:48px;gap:0;padding:5px 7px!important}
}
@media(max-width:760px){
 body.app-page[data-theme=solidne] .page-shell{display:block;padding:0 14px;min-width:0}
 body.app-page[data-theme=solidne] .site-header{height:auto;min-height:88px;padding:15px 0;gap:12px;flex-wrap:wrap}
 body.app-page[data-theme=solidne] .brand-logo{width:164px}
 body.app-page[data-theme=solidne] .header-account{min-width:0;max-width:100%}
 body.app-page[data-theme=solidne] .company-switch{flex-wrap:wrap}
 body.app-page[data-theme=solidne] .company-switch select{max-width:210px}
 body.app-page[data-theme=solidne] .main-menu{position:relative;top:auto;display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:3px;margin:14px 0 0;padding:8px;min-height:0;max-height:none;overflow:visible;border-radius:13px}
 body.app-page[data-theme=solidne] .main-menu::before{display:none}
 body.app-page[data-theme=solidne] .solidne-home{border:0;padding:8px 10px;margin:0;font-size:12px}
 body.app-page[data-theme=solidne] .solidne-home::before{font-size:15px;margin-right:6px}
 body.app-page[data-theme=solidne] .menu-dropdown{position:static;width:auto;flex:none}
 body.app-page[data-theme=solidne] .menu-dropdown>summary{padding:10px;font-size:10px;letter-spacing:.02em;gap:6px}
 body.app-page[data-theme=solidne] .menu-dropdown>summary::before{display:none}
 body.app-page[data-theme=solidne] .dropdown-panel{position:absolute;left:8px;right:8px;top:100%;width:auto;padding:8px;z-index:30;border-radius:10px;background:#193e36;box-shadow:0 12px 24px #182f3040}
 body.app-page[data-theme=solidne] .logout{margin:0 0 0 auto;padding:0}
 body.app-page[data-theme=solidne] .logout button{padding:8px;font-size:9px}
 body.app-page[data-theme=solidne] .work-area{padding-top:23px}
 body.app-page[data-theme=solidne] .page-heading h1{font-size:27px}
 body.app-page[data-theme=solidne] .page-heading .invoice-tool{padding:8px 10px!important;min-width:44px;gap:4px;flex-direction:column;font-size:10px!important}
 body.app-page[data-theme=solidne] .page-heading .invoice-tool b{font-size:17px}
 body.app-page[data-theme=solidne] .page-heading .invoice-tool span{max-width:65px;white-space:normal}
 body.app-page[data-theme=solidne] .stats{gap:12px}
 body.app-page[data-theme=solidne] .stats section{padding:17px}
 body.app-page[data-theme=solidne] .stats strong{font-size:25px}
 body.app-page[data-theme=solidne] .invoice-title{padding:12px 9px;flex-wrap:wrap}
 body.app-page[data-theme=solidne] .invoice-title .invoice-heading{flex:1 0 calc(100% - 40px);order:-2}
 body.app-page[data-theme=solidne] .invoice-title .invoice-corner{order:-1;margin:0;align-self:auto}
 body.app-page[data-theme=solidne] .invoice-title>.invoice-tool{min-height:44px;flex:1 0 44px;padding:6px!important;font-size:10px!important}
 body.app-page[data-theme=solidne] .smart-list-filter{padding:12px}
 body.app-page[data-theme=solidne] .smart-list-filter>input,body.app-page[data-theme=solidne] .smart-list-filter>select{flex:1 1 115px;max-width:100%}
}
@media print{
 body.app-page[data-theme=solidne] .page-shell{display:block!important;padding:0!important;background:white}
 body.app-page[data-theme=solidne] .work-area{padding:0}
 body.app-page[data-theme=solidne] .site-header,body.app-page[data-theme=solidne] footer{display:none!important}
}
/* Soliidse arve- ja maksekaartide väiksemad juhtnupud kasutavad sama rõhku. */
body.app-page[data-theme=solidne] .invoice-pdf-tool{flex:0 0 auto;width:auto;align-self:center}
body.app-page[data-theme=solidne] .invoice-pdf-tool .invoice-tool{display:flex;flex-direction:row;justify-content:center;align-items:center;gap:7px;flex:0 0 auto;width:auto;min-height:48px;min-width:62px;padding:10px 12px!important;background:#fffdf9;color:#fff!important;border:1px solid #d5dfd0;border-radius:9px;font:12px 'Segoe UI',Arial,sans-serif!important}
body.app-page[data-theme=solidne] .invoice-pdf-menu{left:0;padding:5px;border:1px solid #d5dfd0;border-radius:8px;background:#fffdf9;box-shadow:0 8px 24px #203d3020}
body.app-page[data-theme=solidne] .invoice-pdf-menu a{background:#edf2e7;color:#395b4b;border-radius:5px;font-size:12px}
body.app-page[data-theme=solidne] .counterparty{background:#edf2e7;color:#3c5a48;padding:14px 16px;margin:0;border-bottom:1px solid #dfe5da}
body.app-page[data-theme=solidne] .counterparty>label{font:14px 'Segoe UI',Arial,sans-serif;color:#3c5a48}
body.app-page[data-theme=solidne] .invoice-grid td{padding:0 2px}
body.app-page[data-theme=solidne] .invoice-grid .remove-line{color:#a04e30;background:transparent}
body.app-page[data-theme=solidne] .invoice-calculations #add-line{background:#eef2e9;color:#28675b;border:1px solid #d5dfcf;border-radius:8px;font:600 11px 'Segoe UI',Arial,sans-serif;margin:12px 4px;padding:9px 15px}
@media(max-width:1100px){body.app-page[data-theme=solidne] .invoice-pdf-tool .invoice-tool{flex-direction:column;min-width:48px;gap:0;padding:5px 7px!important}}
@media(max-width:760px){body.app-page[data-theme=solidne] .invoice-pdf-tool{flex:1 0 44px;align-self:stretch}body.app-page[data-theme=solidne] .invoice-pdf-tool .invoice-tool{width:100%;min-width:0;min-height:44px;padding:6px!important;font-size:10px!important}}
@media(max-width:760px){
 body.app-page[data-theme=solidne] .invoice-title>.invoice-tool,body.app-page[data-theme=solidne] .invoice-title>.invoice-pdf-tool{flex:1 0 calc(25% - 7px)}
}
@media(max-width:600px){
 body.app-page[data-theme=solidne] .invoice-fields{grid-template-columns:minmax(0,1fr);padding:16px;gap:14px}
 body.app-page[data-theme=solidne] .invoice-fields>div{min-width:0;gap:9px}
 body.app-page[data-theme=solidne] .invoice-fields label{min-width:0;gap:12px;color:#395447}
 body.app-page[data-theme=solidne] .invoice-fields label>span{flex:0 0 112px;width:112px}
 body.app-page[data-theme=solidne] .invoice-fields :is(input,select){flex:1;min-width:0;width:100%;max-width:190px;height:34px}
}
body.app-page[data-theme=solidne] .report-dialog-heading{height:auto;min-height:76px;padding:10px 12px;gap:10px;background:#fffdf9;border-bottom:1px solid #dfe5da;color:#284638;align-items:center}
body.app-page[data-theme=solidne] .report-dialog-heading h2{font:normal 26px/1.25 Georgia,Cambria,serif;padding:7px 4px;color:#284638}
body.app-page[data-theme=solidne] .report-dialog-heading>.invoice-tool{flex:0 0 auto;width:auto;min-height:44px;padding:8px 15px!important;display:flex;flex-direction:row;gap:8px;align-items:center;background:#28675b;border:0;border-radius:8px}
body.app-page[data-theme=solidne] .report-dialog-heading>.invoice-tool b{font-size:20px;line-height:22px}
body.app-page[data-theme=solidne] .report-dialog-corner :is(a,button){background:#eef2e9;color:#5d7362;border-radius:5px}
/* Alamvalik avaneb põhinuppude kõrvale ega nihuta neid hiire all. */
body.app-page[data-theme=solidne] .menu-dropdown[open] .dropdown-panel{animation:none}
@media(min-width:761px){
 body.app-page[data-theme=solidne] .main-menu{z-index:40}
 body.app-page[data-theme=solidne] .dropdown-panel{position:fixed;left:226px;top:180px;width:240px;min-width:0;max-width:calc(100vw - 32px);max-height:calc(100vh - 24px);overflow-y:auto;padding:10px;background:#193e36;border:1px solid #45665a;border-radius:12px;box-shadow:0 14px 32px #132d3033;z-index:41}
 body.app-page[data-theme=solidne] .menu-dropdown[open]>summary::after{transform:none}
}
/* Menüü välisraam püsib paigal, vajadusel saab põhinuppe kerida. */
@media(min-width:761px){body.app-page[data-theme=solidne] .main-menu{height:calc(100vh - 132px);max-height:calc(100vh - 132px);scrollbar-width:thin;scrollbar-color:#688677 transparent}body.app-page[data-theme=solidne] .main-menu::-webkit-scrollbar{width:5px}body.app-page[data-theme=solidne] .main-menu::-webkit-scrollbar-thumb{background:#688677;border-radius:8px}body.app-page[data-theme=solidne] .main-menu::-webkit-scrollbar-track{background:transparent}}

/* 2.0: igal uuel kujundusel oma tegevusnuppude palett. Klassikaline ja Fury säilitavad värvid. */
body[data-theme=modern]{--action-main:#326bb2;--action-save:#285c96;--action-copy:#467db3;--action-delete:#a9434e;--action-pdf:#7d602e;--action-send:#246d8c;--action-help:#586f89;--action-edge:#244668}
body[data-theme=compact]{--action-main:#44677b;--action-save:#36565e;--action-copy:#566d80;--action-delete:#924c45;--action-pdf:#756342;--action-send:#3d6b70;--action-help:#5c6875;--action-edge:#283e4a}
body[data-theme=dark]{--action-main:#286577;--action-save:#286958;--action-copy:#455d85;--action-delete:#9b424e;--action-pdf:#7d602d;--action-send:#276f75;--action-help:#465d73;--action-edge:#9ab8c5}
body[data-theme=aurora]{--action-main:#6550a2;--action-save:#65509a;--action-copy:#755496;--action-delete:#a04470;--action-pdf:#826044;--action-send:#396b94;--action-help:#625a7e;--action-edge:#443260}
body[data-theme=solidne]{--action-main:#356854;--action-save:#285741;--action-copy:#4c7161;--action-delete:#97523e;--action-pdf:#79623e;--action-send:#396a67;--action-help:#627365;--action-edge:#274337}
body.app-page:is([data-theme=modern],[data-theme=compact],[data-theme=dark],[data-theme=aurora],[data-theme=solidne]) .invoice-tool{
 --action-current:var(--action-main);background-color:var(--action-current)!important;color:#fff!important;
 border-color:var(--action-edge);box-shadow:inset 0 0 0 1px var(--action-edge);transition:background-color .2s ease,filter .2s ease,box-shadow .2s ease
}
body.app-page:is([data-theme=modern],[data-theme=compact],[data-theme=dark],[data-theme=aurora],[data-theme=solidne]) .invoice-tool:is(.save,.edit){--action-current:var(--action-save)}
body.app-page:is([data-theme=modern],[data-theme=compact],[data-theme=dark],[data-theme=aurora],[data-theme=solidne]) .invoice-tool.copy{--action-current:var(--action-copy)}
body.app-page:is([data-theme=modern],[data-theme=compact],[data-theme=dark],[data-theme=aurora],[data-theme=solidne]) .invoice-tool.delete{--action-current:var(--action-delete)}
body.app-page:is([data-theme=modern],[data-theme=compact],[data-theme=dark],[data-theme=aurora],[data-theme=solidne]) .invoice-tool.pdf{--action-current:var(--action-pdf)}
body.app-page:is([data-theme=modern],[data-theme=compact],[data-theme=dark],[data-theme=aurora],[data-theme=solidne]) .invoice-tool.send{--action-current:var(--action-send)}
body.app-page:is([data-theme=modern],[data-theme=compact],[data-theme=dark],[data-theme=aurora],[data-theme=solidne]) .invoice-tool:is(.more,.page-help-button,.export-help){--action-current:var(--action-help)}
body.app-page:is([data-theme=modern],[data-theme=compact],[data-theme=dark],[data-theme=aurora],[data-theme=solidne]) .invoice-tool:hover{filter:brightness(1.1)}
body.app-page[data-theme=aurora] .invoice-tool{background-image:linear-gradient(115deg,#ffffff0a,transparent 45%,#172b5826)}
body.app-page:is([data-theme=modern],[data-theme=compact],[data-theme=dark],[data-theme=aurora],[data-theme=solidne]) .content :is(.form-actions>button,form>button,.smart-list-filter>button,.export-filters>button,.bank-upload>button,.bank-import-actions>button,.contact-import-next,.button):not(.secondary):not(.subtle):not(.danger):not(.invoice-tool):not(.setup-close){background-color:var(--action-main);color:#fff}
body.app-page:is([data-theme=modern],[data-theme=compact],[data-theme=dark],[data-theme=aurora],[data-theme=solidne]) .content button.danger{background:var(--action-delete);color:#fff}
@media(prefers-reduced-motion:reduce){body.app-page .invoice-tool{transition:none!important}}

body.app-page:is([data-theme=modern],[data-theme=compact],[data-theme=dark],[data-theme=aurora],[data-theme=solidne]) .invoice-tool:not(:focus-visible){outline-color:var(--action-edge)}
body.app-page:is([data-theme=modern],[data-theme=compact],[data-theme=dark],[data-theme=aurora],[data-theme=solidne]) :is(#add-line,.invoice-help){background:var(--action-main);color:#fff}

body:is([data-theme=compact],[data-theme=dark]) .appearance-settings-links{display:flex;margin-bottom:16px}
body:is([data-theme=compact],[data-theme=dark]) .appearance-settings-links a:not([href="?page=about"]){display:none}
body:is([data-theme=compact],[data-theme=dark]) .appearance-settings-links a[href="?page=about"]{padding:10px 16px;border:1px solid var(--border);border-radius:6px;color:var(--text);background:var(--surface)}

/* Seadete kiirvalik: arvutis üks kompaktne rida, telefonis reamurdmine. */
body.app-page .appearance-settings-links{gap:6px;flex-wrap:nowrap;overflow-x:auto}
body.app-page .appearance-settings-links a{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;box-sizing:border-box;min-height:36px;padding:8px 9px;font-size:12px;line-height:1.3;white-space:nowrap;border-radius:7px}
@media(max-width:760px){body.app-page .appearance-settings-links{flex-wrap:wrap;overflow-x:visible}body.app-page .appearance-settings-links a{min-height:44px;padding:10px 12px}}
