:root{
  --orange:#a63a00;
  --orange2:#fff1df;
  --ink:#171a18;
  --muted:#414942;
  --line:#e2e9e3;
  --bg:#f7f9f6;
  --green:#1b6748;
  --shadow:0 5px 18px #2345350a;
}
body{font:16px/1.52 system-ui,"Noto Sans Devanagari","Nirmala UI",Arial,sans-serif}
.side{box-shadow:3px 0 20px #24433207}
.brand{display:flex;align-items:center;gap:10px;padding:10px 4px 23px;margin-bottom:21px}
.brand-mark{flex:0 0 42px;height:42px;display:grid;place-items:center;border-radius:11px 11px 11px 3px;background:linear-gradient(140deg,#bc4a00,#903000);color:#fff;font-size:17px;letter-spacing:.05em;font-weight:850;box-shadow:0 4px 10px #b14e252e}
.brand .brand-name b{font-size:22px;letter-spacing:-.035em;color:#a63a00;font-weight:850;line-height:1.16}
.brand .brand-name span{display:block;margin-top:4px;font-size:13px;letter-spacing:0;font-weight:700;color:#242724}
.nav button{font-size:15px}
.nav button.active,.nav button:hover{color:#913200}.nav button.active{box-shadow:inset 3px 0 #d8660c}
.headtitle{color:#24533d;font-weight:720}
.badge{background:#e6f4ec;color:#245e44;border-color:#cce5d6}
h1{letter-spacing:-.042em;font-size:clamp(1.8rem,3vw,2.6rem);line-height:1.13;color:#171a18}
h2{color:#202720;letter-spacing:-.025em}
.subtitle{font-size:15px}
.btn:not(.primary):hover{color:#175e40;background:#edf7f0;border-color:#91bea5}
.btn.primary:hover{background:#8e3705;border-color:#8e3705}
.stat{--stat-color:#913200;--stat-accent:#e46a12;--stat-bg:#fff3e5;--stat-border:#eed9bd;position:relative;min-width:0;padding:17px 17px 20px;border:1px solid var(--stat-border);border-top:5px solid var(--stat-accent);background:var(--stat-bg);overflow:hidden}
.stat-invoices{--stat-color:#1b5238;--stat-accent:#2e845b;--stat-bg:#f1f8f2;--stat-border:#d3e5d7}
.stat-billed{--stat-color:#155037;--stat-accent:#26734d;--stat-bg:#e8f5ec;--stat-border:#cce4d2}
.stat-due{--stat-color:#913200;--stat-accent:#cc5309;--stat-bg:#ffe9d3;--stat-border:#f0d1ac}
.stat label{color:#222522;font-size:15px;font-weight:735}
.stat strong{color:var(--stat-color);font-size:clamp(1.25rem,2.35vw,2rem);font-variant-numeric:tabular-nums;letter-spacing:-.025em;overflow-wrap:anywhere}
.tablewrap th{color:#343e37;font-weight:750}
.company-card{border-left:3px solid #6b9f82}
input:focus,select:focus,textarea:focus{outline:2px solid #abcfb8;outline-offset:1px}
::selection{background:#fce3cc;color:#4c2c13}
@media(max-width:700px){.stat{padding:13px}.title-row{align-items:flex-start;flex-wrap:wrap}}
@media print{body{background:#fff}}

.cloud-status{display:flex;align-items:center;justify-content:flex-end;gap:7px}
.cloud-status .badge{white-space:normal}
.cloud-status [data-tone="error"]{background:#fff0da;color:#812c00;border-color:#edc9a5}
.cloud-status [data-tone="working"]{background:#fff5e8;color:#753902;border-color:#edc9a5}
@media(max-width:700px){.cloud-status{gap:4px}.cloud-status .badge{max-width:150px;line-height:1.2}}
