:root{--ink:#14243a;--muted:#728093;--line:#e5e9ec;--page:#f7f8f7;--side:#122a33;--teal:#007b72;--teallight:#e5f4f0;--white:#fff;--red:#ab3939;--shadow:0 3px 18px rgba(27,46,60,.045)}*{box-sizing:border-box}body{margin:0;font:14px/1.52 -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;color:var(--ink);background:var(--page)}button,input,select,textarea{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #85d1c9;outline-offset:1px}h1,h2,h3,p{margin:0}h1{letter-spacing:-1.1px;font-size:32px;line-height:1.12}h2{font-size:19px;letter-spacing:-.35px}h3{font-size:16px}p{margin:5px 0 12px}small,.muted,.subtle{color:var(--muted)}.eyebrow{font-size:10px;font-weight:750;letter-spacing:1.5px;color:#7e9a94;text-transform:uppercase}.auth-shell{display:grid;grid-template-columns:minmax(370px,520px) 1fr;min-height:100vh;background:white}.auth-panel{padding:55px 62px;display:flex;flex-direction:column;justify-content:center}.auth-panel .brand{margin-bottom:65px}.brand{display:flex;align-items:center;gap:12px;font-size:21px;font-weight:800;letter-spacing:-.6px;color:#f5fcfb}.brand small{display:block;font-size:8px;letter-spacing:2px;color:#91b6b3}.brand.dark{color:var(--ink)}.brand.dark small{color:#71908d}.brand-mark{height:42px;width:42px;background:#e7f5f2;color:#075b55;border-radius:11px;display:grid;place-items:center;font-family:Georgia,serif;font-weight:900;font-size:28px}.brand .dot{color:#d9a864}.auth-panel h1{font-size:34px;margin-bottom:15px}.auth-panel p{color:var(--muted)}.auth-note{margin-top:40px!important;font-size:11px}.auth-visual{display:flex;align-items:center;justify-content:center;background:#153740;padding:55px;color:white;overflow:hidden}.auth-art{width:min(630px,90%)}.auth-art>p:first-child{font-size:11px;letter-spacing:2px;color:#8dd0c6}.auth-art h1{font-size:clamp(37px,5vw,68px);line-height:1.1;margin:20px 0 60px}.art-chart{height:270px;display:flex;align-items:end;gap:20px;border-bottom:1px solid #70918a}.art-chart span{width:14%;border-radius:10px 10px 0 0;background:linear-gradient(#62c9b8,#228e84);opacity:.85}.art-chart span:nth-child(even){background:linear-gradient(#f0cb81,#b58a45)}.art-footer{margin-top:28px;color:#a3c6c0!important}.sidebar{position:fixed;inset:0 auto 0 0;width:246px;background:var(--side);padding:28px 17px;color:#a9c2c4;display:flex;flex-direction:column;z-index:2}.sidebar .brand{padding-left:5px;margin-bottom:46px}.side-section{font-size:10px;letter-spacing:1.5px;font-weight:800;color:#688c92;margin:0 11px 12px}.picker-label{font-size:11px;margin:0 10px 4px}.company-picker{width:100%;background:#22434a;color:white;border:1px solid #356167;border-radius:8px;padding:11px;font-size:12px;margin-bottom:25px;min-width:0}.navitem{display:flex;align-items:center;gap:11px;padding:10px 13px;color:#a9c2c4;border:0;background:none;width:100%;text-align:left;border-radius:8px;font-size:13px;font-weight:550;margin-bottom:2px}.navitem:hover{background:#24424a;color:white}.navitem.active{background:#dceee8;color:#164840;font-weight:750}.navglyph{font-size:17px;width:20px;text-align:center}.side-bottom{margin-top:auto}.warning-chip{font-size:9px;letter-spacing:1.1px;background:#294b4f;color:#b8d7ca;display:inline-block;padding:7px 10px;border-radius:5px}.sidebar-user{display:flex;justify-content:space-between;gap:8px;border-top:1px solid #365358;padding-top:14px;margin-top:15px;font-size:11px}.sidebar-user button{border:0;background:none;color:#a4d6cf;font-size:11px}.main{margin-left:246px;min-height:100vh}.topbar{height:76px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 40px;color:#778594;font-size:12px}.topbar b{color:#23384a}.top-right{display:flex;gap:19px;align-items:center}.content{padding:36px 40px 80px;max-width:1540px;margin:auto}.pagehead{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:30px}.pagehead h1{margin:7px 0 7px}.pagehead p{color:var(--muted);margin:0}.actions{display:flex;flex-wrap:wrap;gap:9px;align-items:center}.btn{border:1px solid #d8e1e3;background:white;color:var(--ink);padding:10px 14px;border-radius:7px;font-weight:650;font-size:12px;white-space:nowrap}.btn:hover{border-color:#81b6af;background:#f1f7f5}.btn.primary{background:#087a72;border-color:#087a72;color:white}.btn.primary:hover{background:#03685f}.btn.danger{color:#9d3434;border-color:#f4c4c4}.btn.mini{padding:8px 11px}.btn.link{border:0;background:none;padding:4px;color:#007a70;text-decoration:underline}.btn[disabled]{opacity:.5;cursor:not-allowed}.stats{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr));gap:17px;margin-bottom:22px}.stat{background:white;border:1px solid var(--line);border-radius:10px;padding:22px;box-shadow:var(--shadow)}.stat .label{font-size:11px;color:#728091}.stat strong{display:block;font-size:26px;letter-spacing:-1px;margin:12px 0 3px}.stat em{font-style:normal;font-size:11px;color:#83929c}.stat.featured{background:#173f43;border-color:#173f43;color:white}.stat.featured .label,.stat.featured em{color:#b0cfcd}.cards2{display:grid;grid-template-columns:1.2fr .8fr;gap:20px;margin-bottom:20px}.panel{background:white;border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);padding:24px;margin-bottom:20px;min-width:0}.panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;gap:12px}.panel-head h2{font-size:17px}.panel-head span{font-size:11px;color:var(--muted)}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse;font-size:12px}.table th{text-align:left;font-size:10px;color:#81909a;letter-spacing:1.1px;text-transform:uppercase;padding:12px 10px;border-bottom:1px solid var(--line);white-space:nowrap}.table td{padding:13px 10px;border-bottom:1px solid #eff1f2;vertical-align:middle}.table tr:last-child td{border-bottom:0}.table .right{text-align:right;font-variant-numeric:tabular-nums}.table td strong{font-weight:750}.badge{display:inline-flex;align-items:center;background:#edf3f5;color:#355766;padding:4px 8px;border-radius:4px;font-size:10px;font-weight:700;white-space:nowrap}.badge.green{color:#087367;background:#ddf4ec}.badge.amber{color:#886b14;background:#fcf3d9}.badge.red{color:#a13b3b;background:#fff0ef}.empty{padding:48px 20px;text-align:center;color:var(--muted);border:1px dashed #d9e2e2;border-radius:8px;font-size:13px}.empty strong{display:block;font-size:16px;color:var(--ink);margin-bottom:5px}.notice{border-left:3px solid #d4a247;padding:14px 16px;background:#fbf7eb;color:#725b27;border-radius:4px;margin-bottom:24px;font-size:12px}.notice.safe{background:#eaf6f2;border-color:#2b9d86;color:#2b6056}.split{display:grid;grid-template-columns:1fr 1fr;gap:20px}.field{display:flex;flex-direction:column;gap:5px;margin-bottom:15px}.field label{font-size:11px;color:#536979;font-weight:700}.field input,.field select,.field textarea,.login-input,.toolbar select,.toolbar input{border:1px solid #d7e0e3;background:white;padding:11px 12px;border-radius:7px;width:100%;min-width:0;color:#19303e}.field textarea{resize:vertical;min-height:76px}.field input:focus,.field select:focus{border-color:#2ea79d}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px}.form-grid .wide{grid-column:1/-1}.small-grid{display:grid;grid-template-columns:repeat(3,1fr);column-gap:12px}.login-button{width:100%;margin-top:10px;font-size:14px;padding:12px}.login-fields{margin-top:28px}.toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:19px}.toolbar>*{max-width:180px}.toolbar label{font-size:12px;color:#586b76}.kpi-row{display:flex;gap:26px;flex-wrap:wrap;padding:18px 0}.kpi-row strong{font-size:20px;display:block}.kpi-row small{font-size:11px}.progress-chart{height:180px;display:flex;align-items:end;gap:9px;padding:15px 0 0}.progress-chart .bar{flex:1;min-width:8px;border-radius:4px 4px 0 0;background:#b4dfd6}.progress-chart .bar:nth-child(odd){background:#1e9487}.section-title{font-size:12px;color:#83919b;letter-spacing:1.1px;margin-bottom:10px}.hint{font-size:11px;color:var(--muted);line-height:1.6}dialog{border:0;border-radius:13px;box-shadow:0 20px 70px rgba(13,32,42,.25);width:min(620px,calc(100% - 30px));max-height:calc(100vh - 40px);padding:0;overflow:auto}dialog::backdrop{background:rgba(10,31,40,.55)}.dialog-head{display:flex;justify-content:space-between;align-items:center;padding:23px 28px;border-bottom:1px solid var(--line)}.dialog-head h2{font-size:20px}.close-button{border:0;background:none;font-size:30px;color:#78919b;line-height:1}#modal-body{padding:26px 28px 10px}.dialog-actions{padding:18px 28px;display:flex;justify-content:flex-end;gap:10px;background:#f9fbfb;border-top:1px solid var(--line)}#toast{position:fixed;bottom:25px;right:28px;max-width:390px;color:white;background:#143a3b;border-radius:8px;padding:13px 20px;box-shadow:0 12px 30px #0002;opacity:0;pointer-events:none;transition:opacity .18s;z-index:9}#toast.show{opacity:1}#toast.error{background:#9b3939}.invoice-line{display:grid;grid-template-columns:2fr .7fr 1fr .8fr auto;gap:7px;align-items:center;margin-bottom:10px}.invoice-line input,.invoice-line select{width:100%;border:1px solid #d7e0e3;padding:9px;border-radius:5px;font-size:12px;min-width:0}.invoice-line .x{border:0;color:#a13a3a;background:transparent;font-size:20px}.mono{font-family:Consolas,Menlo,monospace;font-size:11px}.callout{background:#f3f7f7;padding:17px;border-radius:7px;margin-bottom:16px}.support-note{margin-top:20px;font-size:12px;color:#7c8991;line-height:1.7}.audit-ok{color:#087267;font-weight:800}.audit-bad{color:#bd3636;font-weight:800}@media(max-width:1040px){.stats{grid-template-columns:repeat(2,1fr)}.cards2{grid-template-columns:1fr}.sidebar{width:205px}.main{margin-left:205px}.content{padding:28px}.topbar{padding:0 28px}}@media(max-width:720px){.auth-shell{display:block}.auth-visual{display:none}.auth-panel{padding:45px 25px;min-height:100vh}.sidebar{position:static;width:100%;min-height:auto;padding:12px 15px}.sidebar .brand{margin:0 0 12px}.sidebar .side-section,.sidebar .picker-label,.sidebar .side-bottom{display:none}.sidebar .company-picker{margin-bottom:9px}.sidebar #side-nav{display:flex;overflow-x:auto;gap:4px}.sidebar .navitem{white-space:nowrap;padding:7px 9px;font-size:11px}.navglyph{display:none}.main{margin-left:0}.topbar{padding:0 16px;height:56px}.top-right #clock{display:none}.content{padding:22px 14px}.stats,.split,.form-grid{grid-template-columns:1fr}.pagehead{align-items:flex-start;flex-direction:column}.small-grid{grid-template-columns:1fr}.invoice-line{grid-template-columns:1.4fr .5fr .7fr .7fr auto}dialog{width:calc(100% - 12px)}}
/* Preserve native hidden-state even when component classes set display. */
#auth[hidden],#app[hidden]{display:none!important}

[hidden]{display:none!important}

/* ----------------------------------------------------------------------
   LBS Boekhouding Pro · huisstijl Lisa Belasting Specialisten · v0.4
   Kleur- en lay-outlaag over de bestaande boekhoud- en formulierschermen.
   Alle afbeeldingen zijn lokaal en afkomstig uit het aangeleverde LBS-logo.
   ---------------------------------------------------------------------- */
:root{
  --ink:#14273a; --muted:#687789; --line:#e4e8ef; --page:#f6f8fb;
  --side:#10283d; --teal:#a71337; --teallight:#f9eaf0; --red:#ae2544;
  --brand:#b22643; --brand-dark:#930f31; --brand-soft:#fbecf1;
  --white:#fff; --shadow:0 2px 9px rgba(18,34,50,.045),0 1px 2px rgba(18,34,50,.035);
}
body{background:var(--page);color:var(--ink);font-size:13.5px;line-height:1.48}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,.navitem:focus-visible{outline:3px solid #e58fa4;outline-offset:2px}
::selection{background:#f1bdca;color:#631127}
h1,h2,h3{color:#172a3c}
h1{font-family:Georgia,'Times New Roman',serif;font-size:31px;letter-spacing:-.8px}
h2{font-family:Georgia,'Times New Roman',serif;letter-spacing:-.25px}
small,.muted,.subtle{color:var(--muted)}
.eyebrow{color:var(--brand);font-size:10px;letter-spacing:1.2px}
/* Login */
.auth-shell{grid-template-columns:minmax(420px,505px) 1fr;background:#fff}
.auth-panel{padding:36px clamp(30px,5vw,68px);justify-content:center}
.auth-logo-block{margin:0 0 45px;display:flex;align-items:center;gap:18px}
.auth-logo{width:128px;height:auto;display:block;object-fit:contain}
.auth-product{font-size:13px;line-height:1.3;color:#182b3e;font-weight:800;letter-spacing:1px;border-left:1px solid #e7d6da;padding:17px 0 17px 18px}
.auth-panel h1{color:var(--ink);font-size:33px;margin:8px 0 12px}
.auth-panel .eyebrow{font-weight:800}
.auth-panel .field label{font-size:12px}
.auth-note{font-size:11px;margin:32px 0 10px!important}
.auth-prototype-note{font-size:10px;line-height:1.5;color:#8a6470;padding:11px 13px;background:var(--brand-soft);border-radius:8px}
.auth-visual{position:relative;background:radial-gradient(circle at 75% 25%,#284459 0%,transparent 45%),linear-gradient(135deg,#0c2032 0%,#173246 64%,#162b3b 100%);padding:66px;overflow:hidden}
.auth-visual:before{content:'⚖';position:absolute;right:-5%;bottom:-28%;font-family:Georgia,serif;font-size:clamp(300px,38vw,600px);font-weight:bold;color:rgba(179,39,73,.23);line-height:1}
.auth-art{position:relative;z-index:1;max-width:630px}
.auth-overline{color:#f4adb9;letter-spacing:2.6px;font-size:11px;font-weight:750}
.auth-art h1{color:#fff;font-size:clamp(39px,4vw,68px);line-height:1.12;margin:27px 0 45px}
.auth-art h1 em{font-style:normal;color:#f2b1c0}
.auth-visual-card{display:flex;gap:15px;align-items:center;padding:23px;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.19);border-radius:13px;max-width:430px;box-shadow:0 14px 45px #0002;backdrop-filter:blur(5px)}
.auth-visual-card strong{color:white;font-size:15px}
.auth-visual-card p{margin:3px 0 0;color:#d6e1e8;font-size:12px}
.auth-card-icon{display:grid;place-items:center;color:#fac4d0;background:rgba(177,29,63,.35);border-radius:12px;width:57px;height:57px;font-size:32px;flex:none}
.auth-visual-lines{height:6px;width:240px;border-radius:99px;background:linear-gradient(90deg,var(--brand),#efb4c1,transparent);margin-top:60px}
.art-footer{color:#d1dce5!important;font-size:12px;margin-top:25px}
/* Header, sidebar and navigation */
.sidebar{width:238px;padding:22px 13px 17px;background:linear-gradient(180deg,#112a3f 0%,#102538 65%,#0b2032 100%);color:#dce7f1;box-shadow:3px 0 15px #0012;z-index:3}
.side-brand{display:flex;align-items:center;gap:10px;padding:5px 9px 24px;margin-bottom:15px;border-bottom:1px solid rgba(255,255,255,.1)}
.side-brand-mark{display:grid;place-items:center;min-width:39px;height:39px;background:linear-gradient(145deg,#c83c5e,#920d31);border:1px solid #e0859a;border-radius:10px;color:white;font:800 15px Georgia,'Times New Roman',serif;letter-spacing:-.3px}
.side-brand-text{font-size:15px;color:white;font-weight:800;letter-spacing:-.3px;line-height:1.2}
.side-brand-text small{display:block;color:#aabfcf;font-size:8px;line-height:1.4;letter-spacing:.7px;margin-top:5px}
.side-section{color:#9cacc0;margin:0 11px 7px;font-size:9px;letter-spacing:1.35px}
.picker-label{color:#afc0ce;font-size:10px;margin:0 11px 4px}
.company-picker{background:#1c384e;border:1px solid #3c5365;color:#fff;border-radius:9px;font-size:12px;font-weight:650;padding:11px 10px;margin-bottom:19px;max-width:100%;overflow:hidden}
#side-nav{overflow:auto;scrollbar-width:thin;min-height:90px;padding:1px 0}
.navitem{display:flex;gap:12px;color:#d3dfeb;padding:11px 12px;margin:3px 0;border-radius:9px;font-size:12px;letter-spacing:.05px;font-weight:580;min-height:40px;transition:background .13s ease}
.navglyph{display:inline-flex;align-items:center;justify-content:center;width:21px;height:21px;flex:none}
.navglyph svg{width:19px;height:19px;stroke-width:1.8;vertical-align:middle}
.navitem:hover{background:rgba(255,255,255,.09);color:#fff}
.navitem.active{color:#fff;background:linear-gradient(100deg,#b53150,#87243f);font-weight:750;box-shadow:0 4px 12px #0002}
.side-bottom{position:relative}
.side-decoration{font:normal 109px/1 Georgia,'Times New Roman',serif;color:rgba(201,42,77,.7);text-align:center;margin:0 auto 12px;user-select:none}
.warning-chip{background:rgba(190,55,82,.17);color:#f6c1cc;border:1px solid rgba(230,96,126,.28);padding:7px 9px;font-size:9px;letter-spacing:.7px;border-radius:7px}
.sidebar-user{display:block;margin-top:12px;border-top:1px solid rgba(255,255,255,.13);padding-top:12px;color:#e7edf3;font-weight:650;line-height:1.7}
.side-user-actions{display:flex;gap:13px;margin-top:7px}
.sidebar-user button{padding:0;color:#f1b4c1;font-weight:650;font-size:11px}
.sidebar-user button:hover{text-decoration:underline}
.main{margin-left:238px;min-width:0}
.topbar{min-height:85px;height:auto;display:flex;gap:20px;justify-content:space-between;padding:11px clamp(19px,2vw,35px);color:var(--ink);box-shadow:0 1px 3px #102a4008;position:relative;z-index:2}
.topbar-identity{display:flex;align-items:center;gap:20px;min-width:260px;flex:none}
.header-logo{display:block;width:86px;height:59px;object-fit:contain}
.topbar-title{border-left:1px solid #d9dde4;padding-left:18px;line-height:1.3}
.topbar-title strong{font:bold 19px Georgia,'Times New Roman',serif;color:#15273a;display:block;white-space:nowrap}
.topbar-title small{display:block;color:#6f7a86;font-size:10px;margin-top:5px;white-space:nowrap}
.topbar-tools{display:flex;gap:12px;align-items:center;min-width:0}
.top-search{display:flex;align-items:center;gap:9px;border:1px solid #d8dee8;background:#fff;min-width:160px;max-width:435px;width:clamp(170px,25vw,430px);height:39px;border-radius:9px;padding:0 11px;font-size:11px;color:#69788a;text-align:left;box-shadow:0 1px 2px #0001}
.top-search span:nth-child(2){min-width:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.top-search:hover{border-color:#b95671;background:#fff7fa}
.top-search-glass{font-size:24px;line-height:1;transform:rotate(-18deg);color:#35485b}
.top-search kbd{font:10px 'Segoe UI',sans-serif;background:#f2f3f6;padding:2px 5px;border-radius:4px;margin-left:auto;flex:none;color:#697687}
.user-indicator{display:flex;align-items:center;gap:9px;border-left:1px solid #e1e4e9;padding-left:13px;margin-left:2px;min-width:105px}
#user-avatar{display:grid;place-items:center;width:37px;height:37px;flex:none;border-radius:50%;background:#a30f35;color:white;font-size:13px;font-weight:800}
.user-details{display:flex;flex-direction:column;min-width:0;line-height:1.3}
.user-details b{overflow:hidden;text-overflow:ellipsis;max-width:100px;white-space:nowrap;font-size:11px}
.user-details small{font-size:10px;margin-top:2px}
.context-strip{height:37px;border-bottom:1px solid #e8ecf1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 clamp(19px,2vw,35px);background:#fff;color:#8996a3;font-size:11px}
.context-strip b{color:#26394c}
#clock{white-space:nowrap}
.content{max-width:1640px;padding:28px clamp(18px,2vw,36px) 65px}
.pagehead{margin-bottom:20px}
.pagehead h1{font-family:Georgia,'Times New Roman',serif;font-weight:750;font-size:29px;margin:6px 0 5px;color:#13283b}
.pagehead p{font-size:12px}
.actions{gap:8px}
.btn{border-radius:8px;background:#fff;color:#25394d;border:1px solid #cdd5df;font-size:11px;font-weight:750;padding:10px 13px;transition:.14s}
.btn:hover{color:var(--brand-dark);background:#fff8fa;border-color:#cf8396}
.btn.primary{background:#a60d33;border-color:#a60d33;color:#fff;box-shadow:0 2px 6px #a90f3321}
.btn.primary:hover{background:#870c2c;border-color:#870c2c;color:#fff}
.btn.mini{padding:7px 10px;font-size:11px}
.btn.link{color:var(--brand-dark);text-decoration:none}
.btn.link:hover{text-decoration:underline}
.btn.danger{color:#a81835;border-color:#eed2d9}
/* Panels, tables and reports */
.stat,.panel{background:white;border:1px solid #e1e5eb;border-radius:12px;box-shadow:var(--shadow)}
.stats{gap:14px;margin-bottom:17px}
.stat{padding:20px 19px;min-height:110px}
.stat .label{color:#4e5c6b;font-size:11px}
.stat strong{margin:10px 0 5px;font-size:24px;font-family:Georgia,'Times New Roman',serif;letter-spacing:-.45px;color:#152b40}
.stat em{color:#768393;font-size:10px}
.stat.featured{background:linear-gradient(120deg,#152d42,#223f55);border-color:#152d42}
.stat.featured strong{color:white}
.stat.featured .label,.stat.featured em{color:#dce6ed}
.panel{padding:19px 21px;margin-bottom:17px}
.panel-head{border-bottom:1px solid #edf0f4;padding-bottom:12px;margin-bottom:12px}
.panel-head h2{font-size:18px}
.panel-head span{font-size:11px}
.table{font-size:11.5px}
.table th{text-transform:none;letter-spacing:0;color:#5d6877;font-weight:800;font-size:10px;padding:11px 9px}
.table td{padding:11px 9px;border-color:#edf0f4}
.table tr:hover td{background:#faf7f9}
.table td strong{font-weight:750}
.badge{border-radius:99px;background:#eef1f5;color:#566879;font-size:10px;padding:3px 9px}
.badge.green{background:#e7f4ea;color:#245e36}
.badge.amber{background:#fff0f3;color:#ad264b}
.badge.red{background:#ffe8ea;color:#a51733}
.empty{background:#fafbfc;border-color:#e5e9ed}
.notice{border-left:3px solid #b32648;background:#fff7f8;color:#79515c;margin-top:14px}
.notice.safe{background:#edf8f1;color:#285d43;border-color:#40a16d}
.field label{color:#42546a}
.field input,.field select,.field textarea,.login-input,.toolbar select,.toolbar input{border-color:#d8dee7;border-radius:8px;color:#1c3044}
.field input:focus,.field select:focus,.field textarea:focus{border-color:#aa1740}
.progress-chart .bar{background:#f0bdcc}
.progress-chart .bar:nth-child(odd){background:#b62c51}
.kpi-row strong{color:#20364c}
.hint{color:#69788a}
#modal{border-radius:14px;box-shadow:0 22px 70px #0d233842}
dialog::backdrop{background:#0c203bc2}
.dialog-head{background:#fdfbfc}
.dialog-actions{background:#faf7f8}
#toast{background:#183348;color:white}
#toast.error{background:#a62243}
.callout{background:#fcf5f7}
.audit-ok{color:#217647}
/* New dashboard view, all values from the current authorized administration. */
.dashboard-head{margin-bottom:21px}
.dashboard-head h1{font-size:33px}
.dashboard-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.dashboard-stat{min-height:123px;display:flex;align-items:flex-start;gap:13px;padding:19px 17px;background:#fff}
.dashboard-stat .stat-icon{width:41px;height:41px;border-radius:10px;flex:none;display:grid;place-items:center;background:#f9e7ed;color:#b02647}
.dashboard-stat .stat-icon svg{width:23px;height:23px;stroke-width:2}
.dashboard-stat-content{min-width:0;overflow:hidden}
.dashboard-stat .label{display:block;color:#3c4d60;font-size:11px;line-height:1.4;white-space:normal}
.dashboard-stat strong{font-size:23px;white-space:nowrap;letter-spacing:-.65px;margin:8px 0 5px;color:#18283c}
.dashboard-stat em{display:block;line-height:1.35}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.38fr) minmax(300px,.82fr);gap:16px;margin-bottom:15px}
.dashboard-grid > .panel{margin-bottom:0}
.dashboard-chart-panel{padding-bottom:17px}
.dashboard-chart-frame{padding-top:11px;position:relative}
.dashboard-chart{display:block;width:100%;height:auto;overflow:visible}
.dashboard-chart .gridline{stroke:#e9edf1;stroke-width:1}
.dashboard-chart .area{fill:#f6d6e0;opacity:.75}
.dashboard-chart .plotline{fill:none;stroke:#af1841;stroke-width:3.2;stroke-linejoin:round;stroke-linecap:round}
.dashboard-chart .point{fill:#a81039;stroke:#fff;stroke-width:2}
.dashboard-chart text{fill:#778394;font-size:10px;font-family:'Segoe UI',Arial,sans-serif}
.dashboard-chart-subtext{font-size:10px;color:#7d8796;margin:7px 0 0}
.dashboard-analysis{border:1px solid #f0e2e7;border-radius:9px;background:#fff9fb;padding:14px;margin-top:13px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.dashboard-analysis strong{font-size:13px}
.dashboard-analysis small{display:block;font-size:10px;margin:3px 0 0;color:#806a72}
.dashboard-analysis button{font-weight:750}
.dashboard-mini-summary{display:grid;gap:0}
.dashboard-mini-summary .summary-row{display:flex;justify-content:space-between;gap:18px;padding:14px 2px;border-bottom:1px solid #edf0f4;font-size:12px}
.dashboard-mini-summary .summary-row strong{font-size:14px;white-space:nowrap}
.dashboard-mini-summary .summary-row small{display:block;margin-top:3px}
.dashboard-mini-summary .summary-row:last-child{border-bottom:0}
.dashboard-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
.dashboard-shortcuts{display:flex;gap:9px;flex-wrap:wrap;margin:0 0 14px}
.dashboard-shortcuts button{display:flex;align-items:center;gap:7px}
.dashboard-shortcuts .mini-icon svg{width:16px;height:16px}
.dashboard-table .table td{padding:10px 8px}
.dashboard-table .panel-head{margin-bottom:7px}
.dashboard-table .link-button{border:0;background:transparent;padding:3px 0;color:var(--brand-dark);font-weight:750;text-decoration:none;cursor:pointer;font-size:11px}
.dashboard-table .link-button:hover{text-decoration:underline}
.dashboard-subheading{font-size:10px;letter-spacing:.6px;text-transform:uppercase;color:#a2274c;font-weight:800}
.dashboard-due{color:#b12346;font-weight:750}
/* Modal search */
.search-dialog-input{width:100%;height:44px;border:1px solid #d8dfe8;border-radius:9px;padding:11px 12px;font-size:13px}
.search-results{max-height:350px;overflow:auto;margin-top:13px}
.search-result{width:100%;border:1px solid #e9eaf0;background:#fff;padding:12px;margin:6px 0;text-align:left;border-radius:8px;display:flex;justify-content:space-between;gap:12px}
.search-result:hover{border-color:#c56e85;background:#fff7fa}
.search-result strong{font-size:12px}
.search-result small{font-size:10px;color:#748092}
/* Smaller screens, including a resized Windows browser */
@media(max-width:1550px){.top-search{width:clamp(150px,20vw,300px)}.topbar-title small{display:none}}
@media(max-width:1290px){.top-search{display:none}.topbar-identity{min-width:235px;gap:12px}.topbar-title{padding-left:12px}.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid{grid-template-columns:1.2fr .8fr}}
@media(max-width:1040px){.sidebar{width:205px}.main{margin-left:205px}.topbar{padding:11px 18px}.content{padding:25px 18px}.header-logo{width:75px;height:52px}.topbar-title strong{font-size:17px}.side-brand-text{font-size:13px}.side-brand-text small{font-size:7px}.dashboard-grid{grid-template-columns:1fr}.user-details{display:none}.user-indicator{min-width:auto}.side-decoration{font-size:70px}}
@media(max-width:720px){.sidebar{position:relative;width:100%;min-height:0;padding:12px}.side-brand{padding:2px 2px 10px;margin:0 0 8px}.sidebar .picker-label{display:block}.sidebar .company-picker{margin:4px 0 10px}.sidebar #side-nav{display:flex;overflow-x:auto;padding:2px 0 7px}.sidebar .navitem{padding:8px 10px;font-size:11px;white-space:nowrap}.sidebar .navglyph{display:inline-flex;width:16px}.sidebar .navglyph svg{width:15px;height:15px}.sidebar .side-section,.sidebar .side-bottom{display:none}.main{margin-left:0}.topbar{height:auto;min-height:63px;padding:6px 12px}.header-logo{width:64px;height:48px}.topbar-identity{min-width:0}.topbar-title strong{font-size:14px}.topbar-tools #new-company,.topbar-tools .user-indicator{display:none}.topbar-tools #new-invoice-top{padding:8px;font-size:10px}.context-strip{padding:0 12px}.context-strip #clock{display:none}.content{padding:20px 12px}.pagehead h1{font-size:26px}.dashboard-head h1{font-size:28px}.dashboard-grid{grid-template-columns:1fr}.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-stat{padding:14px 11px;gap:9px;min-height:109px}.dashboard-stat .stat-icon{height:31px;width:31px}.dashboard-stat .stat-icon svg{height:18px;width:18px}.dashboard-stat strong{font-size:18px}.stats{grid-template-columns:1fr 1fr}.panel{padding:15px}.auth-shell{display:block}.auth-panel{padding:35px 25px}.auth-visual{display:none}}
@media(max-width:435px){.topbar-tools #new-invoice-top{font-size:0;min-width:35px}.topbar-tools #new-invoice-top::after{content:'+';font-size:19px}.topbar-title{display:none}.dashboard-stats{grid-template-columns:1fr}.stats{grid-template-columns:1fr}.dashboard-stat strong{font-size:23px}}
@media(prefers-reduced-motion:reduce){.navitem,.btn,.top-search,#toast{transition:none}}
/* Respect native hidden state for all components, including topbar shortcuts. */
[hidden]{display:none!important}

/* Hosted mode: never expose the Windows server-shutdown action. */
[hidden] {display:none !important;}

.hosted-demo-warning{position:fixed;bottom:0;left:0;right:0;z-index:9999;text-align:center;padding:6px 10px;background:#7e1137;color:#fff;font-size:12px;font-weight:800;letter-spacing:.1em;pointer-events:none}
