:root{--ink:#1B1F1D;--muted:#5A635F;--soft:#3F4743;--line:#E1E4DF;--line2:#CDD3CC;--bg:#F4F5F2;--card:#FFFFFF;
  --green:#0F6B4F;--green-dk:#094A37;--tint:#EEF3F0;--blue:#1F5FA8;--blue-bg:#E6EEF8;--orange:#A84B12;--orange-bg:#FBE9DC;
  --nav:#0F6B4F;--nav2:#0B5A41;--mono:'IBM Plex Mono',ui-monospace,Consolas,monospace}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;background:var(--bg);font-family:'IBM Plex Sans',system-ui,'Segoe UI',sans-serif;color:var(--ink);font-size:15px}
a{color:var(--green)}a:hover{color:var(--green-dk)}
.num{font-family:var(--mono);font-variant-numeric:tabular-nums}
.shell{display:flex;flex-wrap:wrap;min-height:100vh}
nav.side{flex:1 1 232px;max-width:250px;background:var(--nav);padding:22px 14px;display:flex;flex-direction:column;gap:3px}
.brand{display:flex;align-items:center;gap:10px;padding:0 10px 20px;color:#fff;font-weight:600;font-size:18px;text-decoration:none}
.brand span{width:32px;height:32px;border-radius:8px;background:var(--green);display:flex;align-items:center;justify-content:center}
.nav{display:flex;align-items:center;gap:12px;min-height:44px;padding:0 12px;border-radius:8px;color:#C9D3CE;text-decoration:none}
.nav:hover,.nav.on{background:var(--nav2);color:#fff}
.side .biz{margin-top:auto;padding:12px;border-top:1px solid #2C3833;color:#9FB0A8;font-size:13px;line-height:1.5}
.side .biz a{color:#C9D3CE}
main{flex:999 1 560px;min-width:0;padding:28px 36px 48px;display:flex;flex-direction:column;gap:20px}
.head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:14px}
.head h1{margin:0;font-size:26px;font-weight:600}
.sub{font-size:13px;color:var(--muted)}
.actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border-radius:8px;
  border:1px solid var(--green);background:var(--card);color:var(--green);font:inherit;font-size:14px;font-weight:600;
  text-decoration:none;cursor:pointer}
.btn:hover{background:#F2F8F5;color:var(--green-dk)}
.btn.primary{background:var(--green);color:#fff;border-color:var(--green)}
.btn.primary:hover{background:var(--green-dk);color:#fff}
.btn.plain{border-color:var(--line2);color:var(--ink)}
.btn.danger{border-color:#C9A08A;color:var(--orange)}
.btn.small{min-height:36px;padding:0 12px;font-size:13px}
.card{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:20px}
.card.flush{padding:0;overflow:hidden}
.card h2{margin:0 0 12px;font-size:16px;font-weight:600}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.row2{display:flex;flex-wrap:wrap;gap:20px;align-items:flex-start}
.row2>.grow{flex:999 1 560px;min-width:0;display:flex;flex-direction:column;gap:20px}
.row2>.side-col{flex:1 1 300px;display:flex;flex-direction:column;gap:16px}
.kpi .label{font-size:13px;color:var(--muted)}.kpi .val{font-family:var(--mono);font-size:26px;font-weight:600;margin-top:8px}
.kpi .note{font-size:13px;color:var(--muted);margin-top:6px}
label.f{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--muted);font-weight:500}
.in,select.in,textarea.in{min-height:44px;padding:0 12px;border:1px solid var(--line2);border-radius:8px;font:inherit;
  font-size:15px;color:var(--ink);background:var(--card);width:100%}
textarea.in{padding:10px 12px;min-height:80px;line-height:1.5}
.in:focus{outline:2px solid #9BC7B4;outline-offset:0;border-color:var(--green)}
.check{display:flex;align-items:center;gap:10px;min-height:44px;font-size:15px;cursor:pointer}
.check input{width:20px;height:20px;flex:none}
.check.remember{align-items:flex-start;line-height:1.4;font-size:14px}.check.remember input{margin-top:2px}
.tablewrap{overflow-x:auto}
table.t{width:100%;border-collapse:collapse}
table.t th{text-align:left;font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);
  padding:10px 14px;border-bottom:1px solid #DDE1DC;white-space:nowrap;background:#FAFBF9}
table.t td{padding:12px 14px;border-bottom:1px solid #ECEEEA;vertical-align:middle}
table.t tr:last-child td{border-bottom:none}
table.t .r{text-align:right}
table.t tr.link{cursor:pointer}table.t tr.link:hover td{background:#F7FAF8}
.pill{display:inline-block;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap}
.pill.posted,.pill.paid{background:#E3F1EA;color:#0B5A41}.pill.draft{background:#EEF0EC;color:#4A524E}
.pill.due{background:var(--blue-bg);color:#1F4E8A}.pill.overdue{background:var(--orange-bg);color:#8A3B0C}
.pill.credit{background:#F1ECF8;color:#5B3D8A}
.flash{padding:12px 16px;border-radius:8px;font-size:14px}
.flash.ok{background:#E3F1EA;color:#0B5A41}.flash.error{background:var(--orange-bg);color:#7A3410}
.empty{padding:28px;text-align:center;color:var(--muted)}
.kv{display:grid;grid-template-columns:auto 1fr;gap:6px 16px;font-size:14px}.kv dt{color:var(--muted)}.kv dd{margin:0;font-weight:500}
.sumrow{display:flex;justify-content:space-between;gap:12px;font-size:14px;padding:3px 0}
.sumrow.total{border-top:1px solid #DDE1DC;margin-top:8px;padding-top:12px;font-weight:600;font-size:16px}
.sumrow.total .num{font-size:24px}
.hint{font-size:13px;color:var(--muted);line-height:1.5}
.tabs{display:flex;flex-wrap:wrap;gap:4px;padding:4px;background:#E9ECE7;border-radius:10px;align-self:flex-start}
.tabs a{min-height:40px;display:flex;align-items:center;padding:0 14px;border-radius:7px;text-decoration:none;color:#4A524E;font-size:14px}
.tabs a.on{background:var(--card);color:var(--green);font-weight:600;box-shadow:0 1px 2px rgba(0,0,0,.12)}
.seg{display:flex;gap:6px;padding:4px;background:#EEF0EC;border-radius:10px;max-width:420px}
.seg label{flex:1;display:flex}.seg input{position:absolute;opacity:0}
.seg span{flex:1;min-height:44px;display:flex;align-items:center;justify-content:center;border-radius:7px;cursor:pointer;color:#4A524E;font-weight:500}
.seg input:checked+span{background:var(--card);color:var(--green);font-weight:600;box-shadow:0 1px 2px rgba(0,0,0,.12)}
.seg input:focus-visible+span{outline:2px solid #9BC7B4}
.lines td{padding:8px}.lines .in{min-height:40px;font-size:14px;padding:0 8px}
.addr{border:1px solid var(--line);border-radius:10px;padding:14px;display:flex;flex-direction:column;gap:6px}
.addr.def{border:2px solid var(--green);background:#F7FBF9}
.login{max-width:400px;margin:10vh auto;padding:0 16px}
.ac-list{position:fixed;z-index:50;margin:0;padding:4px;list-style:none;background:var(--card);border:1px solid var(--line2);
  border-radius:10px;box-shadow:0 10px 28px rgba(20,30,25,.16);max-height:340px;overflow-y:auto}
.ac-list li{display:grid;grid-template-columns:1fr auto;column-gap:12px;padding:8px 10px;border-radius:7px;cursor:pointer;line-height:1.35}
.ac-list li[aria-selected=true]{background:#E7F1EC}
.ac-main{font-weight:500;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ac-right{font-family:var(--mono);font-size:13px;color:var(--soft);white-space:nowrap;align-self:center;grid-row:1 / span 2;grid-column:2}
.ac-sub{font-size:12px;color:var(--muted);grid-column:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ac-list mark{background:#FCE9A8;color:inherit;border-radius:2px;padding:0 1px}
.ac-footer{color:var(--green)!important;font-weight:600;border-top:1px solid var(--line);margin-top:4px;padding-top:10px!important}
.ac-empty{color:var(--muted);cursor:default!important;font-size:14px}
input.upper{text-transform:uppercase}
input.desc-edit{cursor:pointer;text-overflow:ellipsis;background:#FBFCFA}
input.desc-edit:hover{border-color:var(--green)}
dialog::backdrop{background:rgba(20,30,25,.45)}
.lines td.calc{background:#FAFBF9}
.gstin-msg{font-size:12px;min-height:16px;color:var(--muted);font-weight:400}
.gstin-msg.ok{color:#0B5A41}.gstin-msg.warn{color:#8A3B0C}
button:disabled,.btn:disabled{opacity:.45;cursor:not-allowed}
.btn.primary:disabled:hover{background:var(--green)}
.dirty-note{font-size:13px;color:#8A3B0C}
.ac-error{display:block!important;color:#7A3410;background:var(--orange-bg);cursor:default!important;font-size:14px;line-height:1.45}
.in.picked{border-color:#9BC7B4;background:#F7FBF9}
.in.unpicked{border-color:#D9772F;background:#FFF8F3}
.rowerr{color:#8A3B0C;font-size:12px;margin-top:4px}
.search{position:relative}.search .in{padding-left:38px}
.search svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--muted);pointer-events:none}

/* document page: one column, items full width, totals under the table */
.stack{display:flex;flex-direction:column;gap:20px;min-width:0}
.totals{margin-left:auto;width:min(360px,100%);padding:14px 16px 16px;border-top:1px solid var(--line,#E4E2DC)}
.card>.totals:only-child{border-top:0;padding:0}
.cards2{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px;align-items:start}
.cards2:empty,.cards2:not(:has(*)){display:none}
.stack .t td:first-child{min-width:220px}
/* sign-up, setup and other logged-out pages */
.login.wide{max-width:760px;margin-top:5vh}
.auth-brand{display:flex;align-items:center;gap:10px;margin-bottom:22px;font-size:22px;font-weight:600}
.auth-brand>span:first-child{width:38px;height:38px;border-radius:9px;background:var(--green);color:#fff;display:flex;align-items:center;justify-content:center}
.auth-who{margin-left:auto;font-size:13px;font-weight:400;color:var(--muted)}
.flash.verify{background:#FFF6E0;color:#6B4A00;margin-bottom:16px;display:flex;flex-wrap:wrap;gap:6px;align-items:baseline}
.linkbtn{background:none;border:0;padding:0;color:inherit;font:inherit;text-decoration:underline;cursor:pointer}
.pw-msg{font-size:13px;color:#7A3410}
.side .biz a[title]{color:#E7EEEA}
.getting-started{margin-bottom:20px}
.getting-started ol{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:8px}
.getting-started li.done>a{color:var(--muted)}
.getting-started .done-tag{display:inline-block;margin-left:6px;padding:1px 8px;border-radius:10px;font-size:12px;font-weight:600;
  background:#E3F1EA;color:#0B5A41;vertical-align:middle}
.dup-box{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;margin-top:6px;padding:10px 12px;border-radius:8px;background:var(--orange-bg);color:#7A3410;font-size:13px}
.dup-box[hidden]{display:none}
.dup-actions{display:flex;gap:6px}
.btn.sm{padding:5px 10px;font-size:13px}
.num-msg{font-size:12.5px;color:var(--muted);min-height:1em}.num-msg.ok{color:var(--muted)}.num-msg.bad{color:#A33A0B}
.advance-tick{margin-top:12px;padding:10px 12px;border-radius:8px;background:var(--tint);align-items:flex-start;line-height:1.45}
fieldset.choice{border:1px solid var(--line);border-radius:10px;padding:10px 14px 12px;margin:0;display:flex;flex-direction:column;gap:6px}
fieldset.choice legend{font-size:13px;color:var(--muted);padding:0 6px}
fieldset.choice[hidden]{display:none}
.open-card{background:var(--tint);border-color:#D5E3DC}
.adv-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 0;border-top:1px solid #D5E3DC}
.adv-row .sub{display:block}
/* automatic voucher number: locked until clicked */
.in[data-locked][readonly]{background:var(--bg);color:var(--soft);cursor:pointer}
.in[data-locked][readonly]:hover{border-color:var(--line2)}
/* sidebar stays put with its own scrollbar; only the page on the right scrolls */
@media (min-width:701px){
  nav.side{position:sticky;top:0;height:100vh;overflow-y:auto;overscroll-behavior:contain;align-self:flex-start;box-sizing:border-box}
}
/* date range with quick choices (statements, item history, GST returns) */
.period{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end}
.period .f{width:170px}
.chips{display:flex;flex-wrap:wrap;gap:6px;margin-left:auto}
.chip{padding:6px 12px;border:1px solid var(--line2);border-radius:999px;font-size:13px;color:var(--ink);text-decoration:none;background:var(--card)}
.chip:hover{border-color:var(--green)}.chip.on{background:var(--green);border-color:var(--green);color:#fff}
.emailbox{display:flex;flex-direction:column;gap:14px;margin-bottom:20px}
table.t tfoot td{border-top:1.5px solid var(--ink);background:var(--tint)}
.gst .card{display:flex;flex-direction:column;gap:10px}
#card-gstr1{grid-column:1/-1}
.gsthead{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.gsthead h2{margin:0}
.dl{display:flex;gap:6px}
table.t.compact td,table.t.compact th{padding:7px 8px;font-size:13.5px}
table.t tr.total td{border-top:1.5px solid var(--ink)}

/* ================================================================ phone (Vyapar-style shell)
   top bar with the business name; menu slides in from the left; bottom tabs with a big "+" */
.topbar,.tabbar,.scrim,.menu-x{display:none}
dialog.sheet{border:0;padding:0;border-radius:16px;max-width:520px;width:100%}
.sheet-head{display:flex;justify-content:space-between;align-items:center;padding:14px 16px 6px;font-size:16px}
.sheet-head .menu-x{display:flex;position:static;color:var(--muted)}
.sheet-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:8px 12px 16px}
.sheet-grid a{display:flex;flex-direction:column;gap:2px;justify-content:center;min-height:72px;padding:10px;border-radius:12px;
  background:var(--bg);text-decoration:none;color:var(--ink);font-size:14px;line-height:1.25}
.sheet-grid a span{font-size:12px;color:var(--muted)}
.sheet-grid a.big{background:var(--green);color:#fff}.sheet-grid a.big span{color:#CFE5DA}
.formbar-total,.ph-show,.more-btn{display:none}
.c-itc label{display:inline-flex;align-items:center;gap:8px}
@media (max-width:700px){
  body{font-size:15px;-webkit-tap-highlight-color:transparent}
  .shell{display:block}
  .topbar{display:flex;align-items:center;gap:10px;position:sticky;top:0;z-index:40;background:var(--nav);color:#fff;
    padding:8px 12px;padding-top:max(8px,env(safe-area-inset-top));min-height:54px}
  .topbar .brand{padding:0;font-size:0;gap:0}.topbar .brand span{font-size:17px;width:34px;height:34px}
  .topbiz{flex:1;min-width:0;font-weight:600;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .topacct{width:34px;height:34px;border-radius:50%;background:var(--nav2);color:#fff;display:flex;align-items:center;
    justify-content:center;text-decoration:none;font-weight:600;font-size:14px}
  .topacct:hover{color:#fff}
  nav.side{position:fixed;z-index:60;top:0;bottom:0;left:0;width:min(300px,86vw);max-width:none;transform:translateX(-105%);
    transition:transform .2s ease;overflow-y:auto;overscroll-behavior:contain;padding:18px 12px;padding-top:max(18px,env(safe-area-inset-top))}
  body.menu-open nav.side{transform:none;box-shadow:8px 0 30px rgba(0,0,0,.3)}
  body.menu-open{overflow:hidden}
  .scrim{display:block;position:fixed;inset:0;z-index:55;background:rgba(10,20,15,.45)}
  .scrim[hidden]{display:none}
  .menu-x{display:flex;position:absolute;right:10px;top:max(14px,env(safe-area-inset-top));width:40px;height:40px;align-items:center;
    justify-content:center;border:0;border-radius:8px;background:transparent;color:#C9D3CE;font-size:18px;cursor:pointer}
  .side .biz{display:block;margin-top:16px}
  main{padding:16px 14px calc(96px + env(safe-area-inset-bottom));gap:16px}
  .head{gap:10px}.head h1{font-size:22px}
  .head .actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%}
  .head .actions>*{min-width:0}
  .head .actions .btn,.head .actions form .btn{width:100%;padding:0 10px}
  .head .actions>.btn.primary,.head .actions>form:has(.btn.primary){grid-column:1/-1;order:-1}
  .card{padding:16px;border-radius:12px}
  .tabbar{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;z-index:45;left:0;right:0;bottom:0;background:var(--card);
    border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom);box-shadow:0 -2px 12px rgba(0,0,0,.05)}
  .tabbar>a,.tabbar>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:60px;
    font:inherit;font-size:11.5px;color:var(--muted);text-decoration:none;background:none;border:0;cursor:pointer;padding:0}
  .tabbar svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .tabbar .on{color:var(--green);font-weight:600}
  .tabbar .tab-new span{width:54px;height:54px;margin-top:-22px;border-radius:50%;background:var(--green);color:#fff;font-size:32px;
    line-height:1;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 14px rgba(15,107,79,.45);border:4px solid var(--card)}
  dialog.sheet{margin:auto 0 0;max-width:none;border-radius:18px 18px 0 0;padding-bottom:env(safe-area-inset-bottom)}
  /* forms with a save bar: the bar replaces the tabs */
  body:has(.formbar) .tabbar{display:none}
  .formbar{position:fixed;z-index:46;left:0;right:0;bottom:0;background:var(--card);border-top:1px solid var(--line);
    box-shadow:0 -2px 12px rgba(0,0,0,.08);padding:8px 12px calc(8px + env(safe-area-inset-bottom));
    display:grid!important;grid-template-columns:1fr auto auto;align-items:center;gap:8px!important;flex-direction:row!important}
  .formbar .btn{min-height:46px;padding:0 14px}
  .formbar .btn.plain{order:1}
  .formbar .btn.primary{order:2}
  .formbar-total{display:flex;flex-direction:column;line-height:1.15;font-size:12px;color:var(--muted);order:0}
  .formbar-total .num{font-size:19px;font-weight:600;color:var(--ink)}
  .formbar.single{grid-template-columns:1fr}
  .desk-only{display:none!important}
  form:not(.more-open) .opt{display:none}
  form:not(.more-open) .more-btn{display:block;align-self:flex-start;color:var(--green);font-size:14px;text-decoration:none;
    font-weight:600;min-height:40px;text-align:left}
  .ph-hide{display:none}.ph-show{display:inline}
  form .grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
  /* invoice / bill lines: each line a card */
  .tablewrap:has(> table.lines){overflow:visible}
  table.t.lines{min-width:0!important;display:block}
  table.t.lines thead{display:none}
  table.t.lines tbody{display:block}
  table.t.lines tbody tr{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px 8px;padding:14px 12px;position:relative;
    border-bottom:8px solid var(--bg)}
  table.t.lines td{display:block;padding:0!important;border:0!important;min-width:0;background:none!important}
  table.t.lines td[data-label]::before{content:attr(data-label);display:block;font-size:11.5px;color:var(--muted);margin-bottom:3px;
    font-family:'IBM Plex Sans',system-ui,sans-serif;font-weight:500;text-align:left}
  table.t.lines .in{min-height:44px;font-size:15px}
  .lines td.c-item{grid-column:1/-1;padding-right:52px!important}
  .lines td.c-desc{grid-column:1/-1}
  .lines td.c-qty,.lines td.c-rate,.lines td.c-disc,.lines td.c-gst{grid-column:span 2}
  .lines td.c-amt{grid-column:span 4;align-self:end;text-align:right;font-size:18px;font-weight:600;padding-bottom:8px!important}
  .lines td.c-amount,.lines td.c-total{grid-column:span 3}
  .lines td.c-itc{grid-column:1/-1;text-align:left!important;font-size:14px}
  .lines td.c-del{position:absolute;top:14px;right:12px}
  .lines td.c-del .btn{min-height:44px;width:44px}
  .addrow{width:100%;min-height:48px!important;font-size:15px!important}
  /* lists: each row a compact card — name and amount on top, number/status/date below */
  table.t.cards,table.t.cards tbody{display:block}
  table.t.cards thead{display:none}
  table.t.cards tr{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"a b" "c d" "e f";
    gap:3px 12px;padding:12px 14px;border-bottom:1px solid #ECEEEA;align-items:center}
  table.t.cards td{display:block;padding:0;border:0;text-align:left;min-width:0}
  table.t.cards .ka{grid-area:a;font-weight:600;overflow:hidden;text-overflow:ellipsis}
  table.t.cards .kb{grid-area:b;text-align:right;font-weight:600}
  table.t.cards .kc{grid-area:c;font-size:13px;color:var(--muted)}
  table.t.cards .kc .sub{display:inline}table.t.cards .kc .sub::before{content:' · '}
  table.t.cards .kd{grid-area:d;text-align:right;font-size:13px}
  table.t.cards .ke{grid-area:e;font-size:13px;color:var(--muted)}
  table.t.cards .kf{grid-area:f;text-align:right;font-size:13px;color:var(--blue)}
  table.t.cards .kd .sub,table.t.cards .kb .sub{display:inline;margin-left:4px}
  table.t.cards .khide{display:none}
  table.t.cards .ka:empty{display:none}
  table.t.cards td.kd .btn{min-height:34px}
  .grid:has(> .kpi){grid-template-columns:1fr 1fr;gap:10px}
  .kpi .val[style]{font-size:17px!important}
  table.t.cards td{min-width:0!important}
  table.t.cards .ka .sub{font-weight:400}
  .kpi{padding:14px}.kpi .label{font-size:12px}.kpi .val{font-size:18px;margin-top:6px;word-break:break-all}.kpi .note{font-size:12px}
  .tabs{flex-wrap:nowrap;overflow-x:auto;max-width:100%;align-self:stretch;scrollbar-width:none}
  .tabs a{white-space:nowrap}
}
.planform{display:flex;gap:6px;align-items:center}.planform .in{min-height:36px;font-size:14px;width:auto}
/* Users page */
.plan-card{display:flex;flex-wrap:wrap;gap:16px 32px;align-items:center}
.plan-name{font-size:18px;font-weight:600;margin-top:2px}
.seats{flex:1 1 240px;display:flex;flex-direction:column;gap:6px;font-size:14px}
.seat-bar{height:8px;border-radius:99px;background:#E4E8E3;overflow:hidden}
.seat-bar span{display:block;height:100%;background:var(--green);border-radius:99px}
.plan-more{flex-basis:100%}
.member-form{display:inline-flex;gap:6px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.member-form .in{min-height:36px;width:auto;font-size:14px}
#members td{vertical-align:top}
.biz-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid #ECEEEA}
.biz-row:last-child{border-bottom:0}
.warn-text{color:#8A3B0C}
.emailbox{scroll-margin-top:72px}
/* dashboard: grouped "new" buttons that open a small panel */
.quick{gap:8px}
.dd{position:relative}
.dd>summary{list-style:none;gap:8px}
.dd>summary::-webkit-details-marker{display:none}
.dd .caret{width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);
  margin:-4px 0 0 2px}
.dd[open] .caret{transform:rotate(225deg);margin-top:3px}
.dd[open]>summary{border-color:var(--green);color:var(--green);background:#F2F8F5}
.dd-panel{position:absolute;right:0;top:calc(100% + 6px);z-index:30;width:300px;background:var(--card);border:1px solid var(--line2);
  border-radius:12px;box-shadow:0 12px 30px rgba(20,30,25,.16);padding:6px;display:flex;flex-direction:column;gap:2px}
.dd-panel a{display:flex;flex-direction:column;gap:1px;padding:10px 12px;border-radius:8px;text-decoration:none;color:var(--ink);font-size:14px}
.dd-panel a span{font-size:12.5px;color:var(--muted);line-height:1.35}
.dd-panel a:hover,.dd-panel a:focus-visible{background:#EEF5F1;outline:none}
.dd-panel a.in b::before{content:'↓ ';color:var(--green)}
.dd-panel a.out b::before{content:'↑ ';color:var(--orange)}
/* keyboard shortcuts */
kbd{display:inline-block;font-family:var(--mono);font-size:11px;font-weight:500;line-height:1;padding:3px 5px;border-radius:4px;
  border:1px solid var(--line2);border-bottom-width:2px;background:var(--card);color:var(--soft);vertical-align:1px;white-space:nowrap}
kbd.on-dark{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.35);color:#fff;margin-left:6px}
.dd-panel a b{display:flex;justify-content:space-between;align-items:center;gap:8px}
.dd-panel a b kbd{font-weight:500}
.keys-link{color:#9FB0A8;font-size:12.5px;text-decoration:none;margin-top:4px}
.keys-link:hover{color:#fff}
.keys-link kbd{background:transparent;color:inherit;border-color:#3B4A44}
dialog.keyhelp{max-width:440px}
.keys td{border:0!important;padding:7px 16px!important}
.keys td:first-child{width:110px}
@media (max-width:700px){ .keys-link, kbd.on-dark, .dd-panel kbd{display:none} }
.keyhelp .menu-x:focus:not(:focus-visible){outline:none}dialog.keyhelp:focus{outline:none}
.price-f{gap:2px}
.check.small{min-height:32px;font-size:13.5px;color:var(--soft);gap:8px}
.check.small input{width:17px;height:17px}
/* document headers: party with a "+" button, then one line of details; second line under it */
.party-f{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--muted);font-weight:500}
.party-pick{display:flex;gap:6px}
.party-pick .in{flex:1;min-width:0}
.btn.plus{width:44px;flex:none;padding:0;font-size:22px;font-weight:500;line-height:1}
.party-only{max-width:540px}
@media (min-width:1100px){ .grid.hdr5{grid-template-columns:minmax(240px,1.7fr) repeat(4,minmax(120px,1fr))} }
@media (max-width:700px){ .grid.hdr5 .party-f{grid-column:1/-1} }
/* item lines: a darker header strip */
table.t.lines thead th{background:#2B3833;color:#EEF3F0;border-bottom-color:#2B3833}
/* private link to a document */
.linkbox{display:flex;flex-direction:column;gap:6px}
.linkrow{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.linkrow .in{flex:1 1 260px;min-height:36px;font-size:13px;color:var(--soft);background:var(--bg)}
.linkrow form{display:contents}
.btn.wa{border-color:#1E8E57;color:#14774A}
.opened{color:#0B5A41}
/* private link to a document */
.linkbox{display:flex;flex-direction:column;gap:6px}
.linkrow{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.linkrow .in{flex:1 1 260px;min-height:36px;font-size:13px;color:var(--soft);background:var(--bg)}
.linkrow form{display:contents}
.btn.wa{border-color:#1E8E57;color:#14774A}
.opened{color:#0B5A41}
.ob-row{display:flex;gap:8px}
.ob-row .in:first-child{flex:1 1 120px;min-width:0}
.ob-row select{flex:0 1 190px}
/* credit limit */
.flash.warn{background:#FFF6E0;color:#6B4A00}
.credit-box{margin-top:12px;padding:10px 12px;border-radius:8px;background:var(--bg);border:1px solid var(--line)}
.credit-box.over{background:var(--orange-bg);border-color:#E8B897}
.credit-over{margin-top:8px;display:flex;flex-direction:column;gap:4px;font-size:13.5px;color:#7A3410;line-height:1.4}
.post-form{display:flex;align-items:center;gap:10px}
div.f{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--muted);font-weight:500}
.del-card{padding:14px 20px}.del-card form{display:flex;gap:12px;align-items:center;flex-wrap:wrap}

/* inactive customers / vendors / items */
.pill.inactive{background:#EEF0EC;color:#6B726E;font-size:11px;vertical-align:middle}
h1 .pill.inactive{font-size:12px}
tr.inactive td{color:var(--muted,#6B726E)} tr.inactive td a{color:inherit}
.inactive-toggle{margin:0 0 10px}

/* dashboard: sales vs purchases bar graph */
.chart-card{display:flex;flex-direction:column;gap:10px}
.chart-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px}
.seg{display:inline-flex;border:1px solid var(--line2);border-radius:8px;overflow:hidden;padding:0;gap:0;background:var(--card)}
.seg button{font:inherit;font-size:13px;min-height:36px;margin:0;padding:0 12px;border:0;border-radius:0;box-shadow:none;border-left:1px solid var(--line2);background:var(--card);color:var(--soft);cursor:pointer}
.seg button:hover{background:var(--tint)}.seg button.on:hover{background:var(--green)}
.seg button:first-child{border-left:0}
.seg button.on{background:var(--green);color:#fff;font-weight:600}
.chart-legend{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:13px;color:var(--muted)}
.chart-legend b{color:var(--ink);font-weight:600;margin-left:4px}
.sw{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:6px;vertical-align:baseline}
.sw.s{background:var(--blue)}.sw.p{background:var(--orange)}.sw.e{background:#E3A06F}
.chart-legend{align-items:center}
.chart-legend .chart-exp{min-height:32px;margin-left:auto;font-size:13px;color:var(--soft);gap:8px}
.chart-legend .chart-exp input{width:18px;height:18px}
.chart-box{width:100%;min-height:220px}
.chart-box svg{display:block;width:100%;height:240px}
.chart-box .bar{cursor:pointer}.chart-box .bar.dim{opacity:.35}
.chart-box text{font-family:'IBM Plex Sans',system-ui,sans-serif;font-size:11px;fill:var(--muted)}
.chart-tip{min-height:18px;font-size:13px}
@media (max-width:640px){.seg button{padding:0 9px;font-size:12px}.chart-box svg{height:200px}}

/* expenses */
.exp-form{display:flex;flex-direction:column;gap:16px}
.month-nav{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.month-nav strong{font-size:16px;min-width:120px;text-align:center}
a.catrow{color:inherit;text-decoration:none;border-radius:6px;padding-left:6px;padding-right:6px;margin:0 -6px}
a.catrow:hover,a.catrow.on{background:var(--tint)}
.paidbox{display:flex;flex-wrap:wrap;gap:12px;align-items:end}
.paid-tick{display:flex;flex-direction:column;gap:8px;margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}

/* blank GSTIN check */
.check.noreg{min-height:32px;font-size:14px;margin-top:4px}
dialog.gstin-ask{max-width:460px}
.gstin-ask-body{padding:4px 16px 16px;display:flex;flex-direction:column;gap:8px}
.gstin-ask-body p{margin:0}
.gstin-ask-actions{display:flex;flex-direction:column;gap:8px;margin-top:8px}
.gstin-why{display:flex;flex-direction:column;gap:4px;margin-top:4px}
.gstin-why span{font-size:13px;color:#8A3B0C;background:var(--orange-bg);border-radius:6px;padding:3px 8px;width:fit-content}
.check-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
@media (max-width:640px){table.t.cards.gc tr{grid-template-areas:"a a" "c c" "d d"}table.t.cards.gc .kc{margin-top:6px}table.t.cards.gc .kd{margin-top:8px}table.t.cards.gc .check-actions{justify-content:flex-start}}

/* capital goods tick on purchase lines */
.c-itc .cap-tick{display:inline-flex;align-items:center;gap:4px;font-size:11px;color:var(--muted);margin-top:4px}
.c-itc .cap-tick input{width:16px;height:16px}
@media (max-width:640px){.c-itc .cap-tick{font-size:14px;color:var(--ink);gap:8px;margin:6px 0 0}.c-itc .cap-tick input{width:20px;height:20px}
  .c-itc .cap-tick > span:first-of-type{display:none}}
.pill.asset{background:var(--blue-bg);color:#1F4E8A}

/* print button with its copies panel */
.print-wrap{position:relative;display:inline-block}
.print-pop{position:absolute;left:0;top:calc(100% + 6px);z-index:30;min-width:270px;display:flex;flex-direction:column;gap:6px;
  box-shadow:0 8px 24px rgba(0,0,0,.14);padding:14px}
.print-pop .check{min-height:34px;font-size:14px}
@media (max-width:640px){.print-pop{position:fixed;left:12px;right:12px;top:auto;bottom:90px}}
iframe.print-frame{position:fixed;right:0;bottom:0;width:1px;height:1px;border:0;opacity:0}

/* shipping labels form */
.label-form{display:flex;flex-direction:column;gap:16px;max-width:860px}
.label-form textarea.in{min-height:84px;resize:vertical}

.print-note{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:60;background:#1F2A26;color:#fff;
  padding:10px 16px;border-radius:10px;font-size:14px;box-shadow:0 6px 20px rgba(0,0,0,.2);max-width:calc(100vw - 32px)}
@media (max-width:640px){.print-note{bottom:96px}}

/* backups */
.backup-banner{display:flex;flex-wrap:wrap;gap:10px;align-items:center;background:#FFF4E5;border:1px solid #F1C88A;color:#6B4300;
  border-radius:10px;padding:10px 14px;margin:0 0 16px;font-size:14px}
.backup-banner[hidden]{display:none}
.backup-banner[data-kind=error]{background:#FDECEC;border-color:#F2B8B5;color:#8A1C14}
.backup-banner a{margin-left:auto}
.backup-unlock{display:flex;gap:8px;align-items:center}
.backup-unlock .in{min-width:200px}
.bk-steps{display:flex;flex-direction:column;gap:18px}
.bk-step{display:grid;grid-template-columns:34px 1fr;gap:12px;align-items:start}
.bk-num{width:30px;height:30px;border-radius:50%;background:#E6F0EB;color:var(--green);font-weight:700;display:flex;align-items:center;justify-content:center}
.bk-num.done{background:var(--green);color:#fff}
.bk-step .row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:8px}
.bk-msg{font-size:14px;margin-top:6px}
.bk-msg.err{color:#B3261E}.bk-msg.ok{color:var(--green)}

/* reports: profit & loss, balance sheet */
.report-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}
.report-card{display:flex;flex-direction:column;gap:6px;text-decoration:none;color:inherit}
.report-card:hover{border-color:var(--green)}
.report-card strong{color:var(--green);font-size:16px}
.fin-top{display:flex;justify-content:space-between;gap:12px;padding:10px 16px;border-bottom:1px solid var(--line)}
table.fin td{padding-top:7px;padding-bottom:7px}
table.fin td a{color:inherit;text-decoration:none;border-bottom:1px dotted #9AA49F}
table.fin td a:hover{color:var(--green);border-bottom-color:var(--green)}
.fin-section td{background:#EEF3F0;font-weight:700;color:var(--green);text-transform:uppercase;font-size:12.5px;letter-spacing:.04em}
.fin-head td{font-weight:600;padding-top:14px!important}
.fin-sub td{font-weight:600;border-top:1px solid var(--line)}
.fin-total td{font-weight:700;background:#F6F8F6}
.fin-grand td{font-weight:800;font-size:15.5px;background:#E6F0EB;border-top:2px solid var(--green)}
.fin-warn td{color:#B3261E}
td.muted{color:var(--muted)}
.kpi .val.neg{color:#B3261E}

/* item types */
.types-f{display:flex;flex-direction:column;gap:6px;font-size:14px}
.types-box{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.type-chip{display:inline-flex;align-items:center;gap:4px;background:#E6F0EB;color:var(--green);border-radius:999px;padding:4px 4px 4px 12px;font-weight:500}
.type-x{border:0;background:transparent;color:inherit;font-size:16px;line-height:1;cursor:pointer;padding:2px 6px;border-radius:50%}
.type-x:hover{background:#cfe2d8}
.type-new{max-width:220px}
select.variant{margin-top:6px}
select.variant[hidden]{display:none}

.field-err{color:#B3261E;font-size:12.5px;margin-top:4px}
.field-err[hidden]{display:none}
.in.invalid{border-color:#B3261E;box-shadow:0 0 0 1px #B3261E}

/* document page: PDF and More drop-downs (same look as the dashboard's) */
.dd-panel.dd-left{right:auto;left:0}
.doc-menu .dd-panel{width:auto;min-width:220px}
.dd-panel form{margin:0;display:block}
.dd-panel>button,.dd-panel form>button{display:block;width:100%;text-align:left;padding:10px 12px;border:0;border-radius:8px;background:none;
  font:inherit;font-size:14px;color:var(--ink);cursor:pointer}
.doc-menu .dd-panel a{white-space:nowrap}
.dd-panel>button:hover,.dd-panel form>button:hover,.dd-panel>button:focus-visible,.dd-panel form>button:focus-visible{background:#EEF5F1;outline:none}
.dd-panel .danger{color:#B42318}
.dd-panel .danger:hover,.dd-panel .danger:focus-visible{background:#FDECEA}
.dd-panel>[hidden]{display:none}
@media (max-width:640px){
  .doc-menu .dd-panel,.doc-menu .dd-panel.dd-left{position:fixed;left:12px;right:12px;top:auto;bottom:90px;min-width:0}
  .doc-menu .dd-panel a,.doc-menu .dd-panel button{padding:14px 12px;font-size:15px}
  .head .actions>.doc-menu>summary{width:100%;justify-content:center}
}

/* build number under the logo */
.brand small.build{display:block;font-size:11.5px;font-weight:400;color:rgba(255,255,255,.62);letter-spacing:.2px;margin-top:2px;white-space:nowrap}
.brand>div{display:flex;flex-direction:column;line-height:1.15}
.auth-build{text-align:center;font-size:12px;color:var(--muted);margin-top:18px}

/* sidebar Help link */
.nav-help{display:flex;align-items:center}
.nav-help .q{width:20px;height:20px;border-radius:50%;border:1.5px solid currentColor;font-size:12px;font-weight:600;
  display:inline-flex;align-items:center;justify-content:center;opacity:.75}

/* user guide */
.help{display:grid;grid-template-columns:270px minmax(0,1fr);gap:24px;align-items:start}
.help-side{position:sticky;top:16px;max-height:calc(100vh - 32px);display:flex;flex-direction:column;gap:12px}
.help-search .in{width:100%;font-size:15px}
.help-search .hint{margin-top:4px;min-height:18px}
.help-index{background:var(--card);border:1px solid var(--line);border-radius:12px;overflow:auto;min-height:0}
.help-index>summary{padding:12px 14px;font-weight:600;cursor:pointer;list-style:none}
.help-index>summary::-webkit-details-marker{display:none}
.help-index nav{padding:0 8px 10px;display:flex;flex-direction:column}
.hi-group{font-size:11.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);padding:12px 8px 4px}
.help-index nav a{padding:6px 8px;border-radius:6px;text-decoration:none;color:var(--ink);font-size:14px;line-height:1.3}
.help-index nav a:hover{background:#EEF5F1}
.help-index nav a.on{background:#E3F0EA;color:var(--green);font-weight:500}
.help-index nav [hidden]{display:none}
.help-body{padding:8px 32px 32px;line-height:1.6;font-size:15px}
.hgroup>h1.hg-title{font-size:13px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--green);
  margin:34px 0 0;padding-top:18px;border-top:2px solid var(--line)}
.hgroup.first>h1.hg-title{border-top:0;margin-top:10px}
.topic{padding:4px 0 22px;border-bottom:1px solid var(--line);scroll-margin-top:16px}
.topic:last-child{border-bottom:0}
.topic h2{font-size:20px;margin:18px 0 6px}
.topic h3{font-size:15.5px;margin:16px 0 4px}
.topic p{margin:8px 0}
.topic .lead{color:var(--soft);font-size:15.5px}
.topic ol,.topic ul{padding-left:22px;margin:8px 0}
.topic li{margin:4px 0}
.topic ol.steps{counter-reset:s;list-style:none;padding-left:0}
.topic ol.steps>li{counter-increment:s;position:relative;padding-left:36px;margin:8px 0}
.topic ol.steps>li::before{content:counter(s);position:absolute;left:0;top:1px;width:24px;height:24px;border-radius:50%;
  background:var(--green);color:#fff;font-size:13px;font-weight:600;display:flex;align-items:center;justify-content:center}
.topic figure{margin:14px 0;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--card);max-width:900px}
.topic figure img{display:block;width:100%;height:auto}
.topic figcaption{font-size:13px;color:var(--muted);padding:8px 12px;border-top:1px solid var(--line);background:#FAFBF9}
.topic .tip,.topic .note{border-radius:8px;padding:10px 14px;margin:12px 0;font-size:14.5px}
.topic .tip{background:#EEF6F1;border-left:3px solid var(--green)}
.topic .note{background:#FFF6E8;border-left:3px solid #D48A1E}
.topic .tip::before{content:'Tip  ';font-weight:600;color:var(--green)}
.topic .note::before{content:'Note  ';font-weight:600;color:#9A5B07}
.topic kbd,.help kbd{font-family:'IBM Plex Mono',monospace;font-size:12.5px;background:#F1F2EF;border:1px solid var(--line2);
  border-bottom-width:2px;border-radius:4px;padding:0 5px}
.topic b.ui{font-weight:600;color:var(--ink);background:#F1F2EF;border-radius:4px;padding:0 4px;white-space:nowrap}
.topic table{border-collapse:collapse;margin:10px 0;font-size:14px}
.topic td,.topic th{border:1px solid var(--line);padding:6px 10px;text-align:left;vertical-align:top}
.topic th{background:#F6F7F4}
.topic:target h2{color:var(--green)}
.help-top{display:inline-block;margin-top:10px;font-size:13px;color:var(--muted)}
mark.hm{background:#FFE58A;color:inherit;border-radius:2px;padding:0 1px}
.help-none{padding:30px 0;color:var(--soft)}
[hidden].topic,.hgroup[hidden]{display:none}
@media (max-width:900px){
  .help{grid-template-columns:1fr;gap:12px}
  .help-side{position:static;max-height:none}
  .help-index{max-height:60vh}
  .help-body{padding:4px 16px 24px}
  .topic h2{font-size:18px}
}

/* purchase bill: optional round off */
.sumrow .round-tick{min-height:0;gap:6px;font-size:inherit;color:inherit}
.sumrow .round-tick input{width:16px;height:16px;margin:0}

/* menu: groups that fold open (Sales, Purchases, Reports, Settings) */
nav.side .ni{width:19px;height:19px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;opacity:.85}
nav.side .nav{min-height:40px}
.navgrp>summary{list-style:none;cursor:pointer;user-select:none}
.navgrp>summary::-webkit-details-marker{display:none}
.navgrp>summary .chev{margin-left:auto;width:7px;height:7px;border-right:1.8px solid currentColor;border-bottom:1.8px solid currentColor;
  transform:rotate(-45deg);opacity:.6;transition:transform .15s}
.navgrp[open]>summary .chev{transform:rotate(45deg);margin-top:-4px}
.navgrp>summary.grp-on{color:#fff}
.navsub{display:flex;flex-direction:column;gap:1px;margin:1px 0 6px 21px;padding-left:10px;border-left:1px solid rgba(255,255,255,.12)}
.nav.nsub{min-height:34px;font-size:14px;padding:0 10px}
nav.side kbd.fk{margin-left:auto;font-family:'IBM Plex Mono',monospace;font-size:11px;line-height:1;padding:3px 5px;border-radius:4px;
  background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18);color:rgba(255,255,255,.7)}
/* F-keys on "+ New ..." buttons: computer only */
.btn kbd.fk{margin-left:8px;font-family:'IBM Plex Mono',monospace;font-size:11.5px;font-weight:500;padding:2px 5px;border-radius:4px;
  border:1px solid currentColor;opacity:.75;line-height:1}
.btn.primary kbd.fk{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.4);color:#fff;opacity:1}
@media (max-width:700px), (hover:none){ kbd.fk{display:none!important} }

/* sortable list headings */
th.sort-th{padding:0}
.th-sort{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:5px;width:100%;padding:inherit;cursor:pointer;
  font:inherit;color:inherit;letter-spacing:inherit;text-transform:inherit;padding:10px 14px}
th.r .th-sort{justify-content:flex-end}
.th-sort:hover{color:var(--ink)}
.th-sort:focus-visible{outline:2px solid var(--green);outline-offset:-2px;border-radius:4px}
th.sorted{color:var(--green)}
.sort-arrow{font-size:9px;line-height:1;min-width:9px}

/* customer / vendor list: Statement + Invoice / Enter bill on each row */
.row-acts{display:inline-flex;gap:6px;justify-content:flex-end;flex-wrap:nowrap}

/* purchase bill: vendor's bill no. as prefix + number + suffix */
.billno{display:flex;flex-direction:column;gap:6px}
.billno>label{font:inherit;color:inherit}
.billno-parts{display:grid;grid-template-columns:minmax(52px,.8fr) minmax(70px,1.4fr) minmax(52px,.8fr);gap:4px}
.billno-parts .in{min-width:0;padding-left:8px;padding-right:8px}
.billno-parts .in::placeholder{font-size:12px}
@media (min-width:1100px){ .grid.hdr5.pb-hdr{grid-template-columns:minmax(220px,1.4fr) minmax(260px,1.7fr) repeat(3,minmax(120px,1fr))} }
@media (max-width:700px){ .grid.hdr5 .billno{grid-column:1/-1} }

/* item page: HSN suggestions and the GST rate they point to */
.hsn-panel{border:1px solid var(--line);border-radius:10px;background:#FAFBF9;padding:12px 14px;display:flex;flex-direction:column;gap:10px;font-size:14px}
.hsn-chips{display:flex;flex-direction:column;gap:4px;margin-top:6px}
.hsn-chip{all:unset;box-sizing:border-box;display:flex;gap:10px;align-items:baseline;padding:7px 10px;border-radius:8px;cursor:pointer;
  border:1px solid var(--line);background:var(--card);line-height:1.35}
.hsn-chip:hover,.hsn-chip:focus-visible{border-color:var(--green);background:#EEF5F1}
.hsn-chip b{min-width:72px;color:var(--green)}
.hsn-chip span{color:var(--soft)}
.rate-choices{list-style:none;padding:0;margin:6px 0 0;display:flex;flex-direction:column;gap:5px}
.rate-choices li{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}
.hsn-links{display:flex;gap:18px;flex-wrap:wrap;font-size:13px}
.rate-others{margin-top:6px;font-size:13px}.rate-others summary{cursor:pointer;color:var(--soft)}

/* item page: Goods / Service / Equipment first */
.kind-pick{border:0;padding:0;margin:0;display:flex;flex-direction:column;gap:8px}
.kind-pick legend{font-weight:600;font-size:15px;margin-bottom:8px;padding:0}
.kind-opts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.kind-opt{display:flex;gap:10px;align-items:flex-start;border:1.5px solid var(--line2);border-radius:10px;padding:12px 14px;cursor:pointer;background:var(--card)}
.kind-opt:hover{border-color:var(--green)}
.kind-opt:has(input:checked){border-color:var(--green);background:#EEF5F1;box-shadow:0 0 0 1px var(--green) inset}
.kind-opt input{margin-top:3px;accent-color:var(--green)}
.kind-opt span{display:flex;flex-direction:column;gap:3px}
.kind-opt small{color:var(--muted);font-size:12.5px;line-height:1.35}
.item-rest{border:0;padding:0;margin:0;min-width:0;display:flex;flex-direction:column;gap:16px}
.item-rest:disabled{opacity:.45}
.item-rest:disabled *{cursor:not-allowed}
@media (max-width:700px){ .kind-opts{grid-template-columns:1fr} }

/* Check GST rates */
.gst-sum{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:16px}
.card-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px 6px}
.card-head h2{margin:0;font-size:16px}
#gstform{display:flex;flex-direction:column;gap:16px}
@media (max-width:700px){ .gst-sum{grid-template-columns:1fr 1fr} }
#gstform td.ka{min-width:200px}

/* item page: quantity price slabs */
.slabs-f{border:1px solid var(--line);border-radius:10px;padding:12px 14px;display:flex;flex-direction:column;gap:8px}
.slabs-f[hidden]{display:none}
table.slabs{max-width:620px}
table.slabs td,table.slabs th{padding:6px 8px}
table.slabs .in{width:110px}
table.slabs .s-from{width:90px}
.pct-in{display:inline-flex;align-items:center;gap:4px}
.pct-in .in{width:80px}
.slabs-foot{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.s-eff{font-size:12px}
.slab-note{font-size:11.5px;text-align:right;white-space:nowrap;margin-top:2px;color:var(--green)}
.slab-use{display:block;font-size:11.5px;margin-top:2px;white-space:nowrap}

/* voucher lines: every other row a shade darker, easier to follow across (screen only; PDFs are separate) */
#rows > tr:nth-child(even) > td, table.zebra > tbody > tr:nth-child(even) > td{background:#F3F5F1}
#rows > tr:nth-child(even) > td .in:not(:focus){background:var(--card)}
@media print{ #rows > tr > td, table.zebra > tbody > tr > td{background:none!important} }
.gst-verify{align-self:flex-start;font-size:12.5px;margin-top:2px}
.gst-verify:disabled{color:var(--muted);text-decoration:none;cursor:default;opacity:.6}

/* GST records shown under a GSTIN */
.gstin-info{border:1px solid var(--line);border-radius:8px;padding:8px 10px;font-size:13px;line-height:1.45;display:flex;flex-direction:column;gap:2px;background:#FAFBF9;color:var(--ink);font-weight:400}
.gstin-info.good{border-color:#BFDCCD;background:#F2F8F5}
.gstin-info.bad{border-color:#F0C2B4;background:#FDF1EC}
.gstin-info .gi-status{font-weight:600}
.gstin-info.good .gi-status{color:var(--green)}
.gstin-info.bad .gi-status,.gstin-info .gi-warn{color:#B42318}
.gstin-info .gi-addr{color:var(--soft)}
.gstin-info .gi-foot{display:flex;gap:10px;flex-wrap:wrap;align-items:baseline;margin-top:2px}
.gstin-info .linkbtn{font-size:12.5px}
.pill.warn{background:#FDE7E1;color:#B42318;font-size:11px;vertical-align:middle}
/* the record is wider than the GSTIN box: let it use the empty space beside it (the row's other boxes sit at the top) */
@media (min-width:900px){ .gstin-info{width:max-content;max-width:min(720px,62vw);position:relative;z-index:1} }

/* GSTIN / PAN / IFSC boxes always show capitals (the script also stores them in capitals) */
input.upper,input[data-gstin],input[name=gstin]{text-transform:uppercase}
input.upper::placeholder,input[data-gstin]::placeholder,input[name=gstin]::placeholder{text-transform:none}
input.secret{-webkit-text-security:disc;text-security:disc;font-family:monospace}

/* Admin: sections, subscription states, a business's Manage panel */
.admin-nav{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 18px}
.admin-nav a{padding:6px 12px;border:1px solid var(--line);border-radius:999px;font-size:13px;color:inherit;text-decoration:none;background:var(--card)}
.admin-nav a:hover,.admin-nav a:focus-visible{border-color:var(--green,#0F6B4F);color:var(--green,#0F6B4F)}
.pill.sub-active{background:#E3F1EA;color:#0B5A41}.pill.sub-none{background:#EEF0EC;color:#4A524E}
.pill.sub-due{background:var(--blue-bg);color:#1F4E8A}.pill.sub-grace{background:#FFF6E0;color:#6B4A00}
.pill.sub-blocked,.pill.sub-removal{background:var(--orange-bg);color:#8A3B0C}
tr.manage>td{background:var(--tint,#F4F8F5)}
.manage-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px;padding:6px 0;white-space:normal}
.mform{display:flex;flex-direction:column;gap:10px}.mform h3{margin:0;font-size:15px}
.pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.danger-box{margin-top:16px;padding:12px;border:1px solid #E5B9A8;border-radius:10px;background:#FFF8F5;display:flex;flex-direction:column;gap:10px}
.terms-text{white-space:pre-wrap;line-height:1.6;max-width:72ch}
@media (max-width:600px){.pair{grid-template-columns:1fr}}
@media (max-width:900px){
  #bizlist thead{display:none}
  #bizlist,#bizlist tbody,#bizlist tr,#bizlist td{display:block;width:auto}
  #bizlist tr{border-bottom:1px solid var(--line);padding:8px 0}
  #bizlist td{border:0;padding:4px 16px;text-align:left!important}
  #bizlist td[data-label]:not([data-label="Business"])::before{content:attr(data-label);display:block;font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
  #bizlist tr.manage>td{padding:12px 16px}
}

/* Save & New: beside the main Save button of a new document */
.btn.save-new{border-color:var(--green);color:var(--green);background:var(--card)}
@media (max-width:900px){.formbar .btn.save-new{order:3}}

/* report period: typed dates (with their button) and quick quarter picks, as two separate groups */
.period-bar{display:flex;flex-wrap:wrap;align-items:center;gap:14px 24px}
.period-group{display:flex;flex-direction:column;gap:6px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--tint)}
.period-row{display:flex;flex-wrap:nowrap;align-items:end;gap:8px 10px}
.period-group .period-label{font-size:12px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.period-or{color:var(--muted);font-size:13px}
@media (max-width:600px){.period-or{display:none}.period-group{width:100%}.period-row{flex-wrap:wrap}}
.period-group .f{width:150px}.period-group .f .in{min-width:0;width:100%}

/* tagline under the name */
.brand small.tagline{display:block;font-size:11px;font-weight:500;color:#9FD3BC;letter-spacing:.2px;margin-top:1px;white-space:nowrap}
.auth-name{display:flex;flex-direction:column;line-height:1.1}
.auth-name small{font-size:12px;font-weight:500;color:var(--green);letter-spacing:.2px;margin-top:2px}

/* invoice / proforma header, line 2: ship to, place of supply, P/O no. & date, your ref., reverse charge */
@media (min-width:1100px){ .grid.hdr5.hdr6{grid-template-columns:minmax(200px,1.45fr) minmax(170px,1.15fr) repeat(4,minmax(96px,1fr))} }



/* sidebar in the brand green (light & soft themes): its own lighter text, white logo tile */
.side .biz{border-top-color:rgba(255,255,255,.2);color:rgba(255,255,255,.78)}
.nav{color:#E4F1EB}
.navsub{border-left-color:rgba(255,255,255,.22)}
.brand span{background:#fff;color:var(--green)}
.brand small.tagline{color:#CFEBDD}
nav.side kbd.fk{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.35);color:#fff}
.theme-pick button{border-color:rgba(255,255,255,.35);color:rgba(255,255,255,.85)}


/* column headers in the brand green (light & soft themes) */
table.t th, table.t.lines thead th{background:var(--green);color:#fff;border-bottom-color:var(--green)}
table.t th.sorted{color:#fff;background:var(--green-dk)}
.th-sort:hover{color:#DDF2E8}
.th-sort:focus-visible{outline-color:#fff}
.topic th{background:var(--tint)}

/* ================= themes: light (default) · soft · dark · auto (follows the device) =================
   Chosen in the menu (bottom) / account page, kept per device. PDFs and printing always stay light. */
[data-theme=soft]{--ink:#2A2824;--muted:#6A665E;--soft:#4A4740;--line:#DDD8CE;--line2:#CBC5B8;--bg:#E8E4DB;--card:#F5F2EA;--tint:#E6ECE5;
  --blue-bg:#E4EAF1;--orange-bg:#F4E4D6}
[data-theme=soft] body{background:var(--bg)}
[data-theme=dark]{--ink:#E2E7E4;--muted:#A0AAA5;--soft:#C6CEC9;--line:#2D3833;--line2:#3C4943;--bg:#111714;--card:#19211D;
  --green:#45B488;--green-dk:#2F9A70;--tint:#1C2823;--blue:#8DB8EC;--blue-bg:#1B2838;--orange:#EBA06A;--orange-bg:#3A2518;
  --nav:#0B100E;--nav2:#1A2420;color-scheme:dark}
[data-theme=dark] .btn:hover{background:#1E2A24}
[data-theme=dark] .btn.danger{border-color:#6D574B}
[data-theme=dark] .in:focus{outline:2px solid #4D665B}
[data-theme=dark] table.t th{border-bottom:1px solid #4A4F49;background:#21251E}
[data-theme=dark] table.t td{border-bottom:1px solid #484C44}
[data-theme=dark] table.t tr.link:hover td{background:#1E2721}
[data-theme=dark] .pill.posted, [data-theme=dark] .pill.paid{background:#22322A;color:#8EEBCE}
[data-theme=dark] .pill.draft{background:#282B25;color:#C4CAC7}
[data-theme=dark] .pill.due{color:#8FB7EB}
[data-theme=dark] .pill.overdue{color:#EBB18E}
[data-theme=dark] .pill.credit{background:#241C2F;color:#B6A0D9}
[data-theme=dark] .flash.ok{background:#22322A;color:#8EEBCE}
[data-theme=dark] .flash.error{color:#EBAE8E}
[data-theme=dark] .sumrow.total{border-top:1px solid #4A4F49}
[data-theme=dark] .tabs{background:#2A2D28}
[data-theme=dark] .tabs a{color:#C4CAC7}
[data-theme=dark] .seg{background:#282B25}
[data-theme=dark] .seg span{color:#C4CAC7}
[data-theme=dark] .seg input:focus-visible+span{outline:2px solid #4D665B}
[data-theme=dark] .addr.def{background:#1C2822}
[data-theme=dark] .ac-list li[aria-selected=true]{background:#232F29}
[data-theme=dark] .ac-list mark{background:#474028}
[data-theme=dark] input.desc-edit{background:#21251C}
[data-theme=dark] .lines td.calc{background:#21251E}
[data-theme=dark] .gstin-msg.ok{color:#8EEBCE}
[data-theme=dark] .gstin-msg.warn{color:#EBB18E}
[data-theme=dark] .dirty-note{color:#EBB18E}
[data-theme=dark] .ac-error{color:#EBAE8E}
[data-theme=dark] .in.picked{border-color:#4D665B;background:#1C2822}
[data-theme=dark] .in.unpicked{border-color:#7C6453;background:#2B2019}
[data-theme=dark] .rowerr{color:#EBB18E}
[data-theme=dark] .totals{border-top:1px solid var(--line,#504E47)}
[data-theme=dark] .flash.verify{background:#322C1C;color:#EBCE8E}
[data-theme=dark] .pw-msg{color:#EBAE8E}
[data-theme=dark] .getting-started .done-tag{background:#22322A;color:#8EEBCE}
[data-theme=dark] .dup-box{color:#EBAE8E}
[data-theme=dark] .num-msg.bad{color:#EBAB8E}
[data-theme=dark] .open-card{border-color:#45544D}
[data-theme=dark] .adv-row{border-top:1px solid #45544D}
[data-theme=dark] table.t.cards tr{border-bottom:1px solid #484C44}
[data-theme=dark] .seat-bar{background:#2B2F2A}
[data-theme=dark] .biz-row{border-bottom:1px solid #484C44}
[data-theme=dark] .warn-text{color:#EBB18E}
[data-theme=dark] .dd[open]>summary{background:#1E2A24}
[data-theme=dark] .dd-panel a:hover, [data-theme=dark] .dd-panel a:focus-visible{background:#212B25}
[data-theme=dark] .btn.wa{color:#8EEBC1}
[data-theme=dark] .opened{color:#8EEBCE}
[data-theme=dark] .btn.wa{color:#8EEBC1}
[data-theme=dark] .opened{color:#8EEBCE}
[data-theme=dark] /* credit limit */
.flash.warn{background:#322C1C;color:#EBCE8E}
[data-theme=dark] .credit-box.over{border-color:#665244}
[data-theme=dark] .credit-over{color:#EBAE8E}
[data-theme=dark] /* inactive customers / vendors / items */
.pill.inactive{background:#282B25;color:#C5C9C7}
[data-theme=dark] tr.inactive td{color:var(--muted,#C5C9C7)}
[data-theme=dark] .sw.e{background:#634B38}
[data-theme=dark] .gstin-why span{color:#EBB18E}
[data-theme=dark] .pill.asset{color:#8FB7EB}
[data-theme=dark] /* backups */
.backup-banner{background:#30271B;border:1px solid #675945;color:#EBC88E}
[data-theme=dark] .backup-banner[data-kind=error]{background:#2E1A1A;border-color:#5F413F;color:#EB958E}
[data-theme=dark] .bk-num{background:#242F2A}
[data-theme=dark] .bk-msg.err{color:#EB938E}
[data-theme=dark] table.fin td a{border-bottom:1px dotted #5D625F}
[data-theme=dark] .fin-section td{background:#232A26}
[data-theme=dark] .fin-total td{background:#212521}
[data-theme=dark] .fin-grand td{background:#242F2A}
[data-theme=dark] .fin-warn td{color:#EB938E}
[data-theme=dark] .kpi .val.neg{color:#EB938E}
[data-theme=dark] .type-chip{background:#242F2A}
[data-theme=dark] .type-x:hover{background:#2D3B33}
[data-theme=dark] .field-err{color:#EB938E}
[data-theme=dark] .dd-panel>button:hover, [data-theme=dark] .dd-panel form>button:hover, [data-theme=dark] .dd-panel>button:focus-visible, [data-theme=dark] .dd-panel form>button:focus-visible{background:#212B25}
[data-theme=dark] .dd-panel .danger{color:#EB958E}
[data-theme=dark] .dd-panel .danger:hover, [data-theme=dark] .dd-panel .danger:focus-visible{background:#2F1D1B}
[data-theme=dark] .help-index nav a:hover{background:#212B25}
[data-theme=dark] .help-index nav a.on{background:#23312B}
[data-theme=dark] .topic figcaption{background:#21251E}
[data-theme=dark] .topic .tip{background:#1F2C24}
[data-theme=dark] .topic .note{background:#2F271B}
[data-theme=dark] .topic .note::before{color:#EBC38E}
[data-theme=dark] .topic kbd, [data-theme=dark] .help kbd{background:#272924}
[data-theme=dark] .topic b.ui{background:#272924}
[data-theme=dark] .topic th{background:#252721}
[data-theme=dark] mark.hm{background:#50482E}
[data-theme=dark] /* item page: HSN suggestions and the GST rate they point to */
.hsn-panel{background:#21251E}
[data-theme=dark] .hsn-chip:hover, [data-theme=dark] .hsn-chip:focus-visible{background:#212B25}
[data-theme=dark] .kind-opt:has(input:checked){background:#212B25}
[data-theme=dark] /* voucher lines: every other row a shade darker, [data-theme=dark] easier to follow across (screen only; PDFs are separate) */
#rows > tr:nth-child(even) > td, [data-theme=dark] table.zebra > tbody > tr:nth-child(even) > td{background:#252922}
[data-theme=dark] /* GST records shown under a GSTIN */
.gstin-info{background:#21251E}
[data-theme=dark] .gstin-info.good{border-color:#455D51;background:#1E2A24}
[data-theme=dark] .gstin-info.bad{border-color:#604740;background:#2E201A}
[data-theme=dark] .gstin-info.bad .gi-status, [data-theme=dark] .gstin-info .gi-warn{color:#EB958E}
[data-theme=dark] .pill.warn{background:#32211D;color:#EB958E}
[data-theme=dark] .admin-nav a:hover, [data-theme=dark] .admin-nav a:focus-visible{color:var(--green,#8EEBCF)}
[data-theme=dark] .pill.sub-active{background:#22322A;color:#8EEBCE}
[data-theme=dark] .pill.sub-none{background:#282B25;color:#C4CAC7}
[data-theme=dark] .pill.sub-due{color:#8FB7EB}
[data-theme=dark] .pill.sub-grace{background:#322C1C;color:#EBCE8E}
[data-theme=dark] .pill.sub-blocked, [data-theme=dark] .pill.sub-removal{color:#EBB18E}
[data-theme=dark] tr.manage>td{background:var(--tint,#1F2821)}
[data-theme=dark] .danger-box{border:1px solid #644C43;background:#2B1E18}
[data-theme=dark] .pill.due, [data-theme=dark] .pill.sub-due{background:#1B2838}
[data-theme=dark] .pill.overdue, [data-theme=dark] .pill.sub-blocked, [data-theme=dark] .pill.sub-removal, [data-theme=dark] .flash.error{background:#3A2518}
[data-theme=dark] .flash.warn, [data-theme=dark] .pill.sub-grace{background:#3A3016;color:#EBCB7A}
[data-theme=dark] .pill.sub-active{background:#1E3A2D;color:#8FE0BE}
[data-theme=dark] .pill.sub-none{background:#262E2A;color:#C4CAC7}
[data-theme=dark] .btn.primary, [data-theme=dark] .chip.on, [data-theme=dark] .seg button.on, [data-theme=dark] .bk-num.done, [data-theme=dark] .sheet-grid a.big{color:#0B100E}
[data-theme=dark] .btn.primary:hover{color:#0B100E}
[data-theme=dark] .btn.primary kbd.fk{color:#0B100E;border-color:rgba(0,0,0,.35);background:rgba(0,0,0,.12)}
[data-theme=dark] input[type=date], [data-theme=dark] input[type=number], [data-theme=dark] select{color-scheme:dark}
[data-theme=dark] img.logo-prev, [data-theme=dark] .topic figure img{filter:brightness(.92)}
[data-theme=dark] .danger-box{background:#2A1C16;border-color:#5A3A2A}
[data-theme=dark] tr.manage>td{background:#1C2823}
@media (prefers-color-scheme: dark){
[data-theme=auto]{--ink:#E2E7E4;--muted:#A0AAA5;--soft:#C6CEC9;--line:#2D3833;--line2:#3C4943;--bg:#111714;--card:#19211D;
  --green:#45B488;--green-dk:#2F9A70;--tint:#1C2823;--blue:#8DB8EC;--blue-bg:#1B2838;--orange:#EBA06A;--orange-bg:#3A2518;
  --nav:#0B100E;--nav2:#1A2420;color-scheme:dark}
[data-theme=auto] .btn:hover{background:#1E2A24}
[data-theme=auto] .btn.danger{border-color:#6D574B}
[data-theme=auto] .in:focus{outline:2px solid #4D665B}
[data-theme=auto] table.t th{border-bottom:1px solid #4A4F49;background:#21251E}
[data-theme=auto] table.t td{border-bottom:1px solid #484C44}
[data-theme=auto] table.t tr.link:hover td{background:#1E2721}
[data-theme=auto] .pill.posted, [data-theme=auto] .pill.paid{background:#22322A;color:#8EEBCE}
[data-theme=auto] .pill.draft{background:#282B25;color:#C4CAC7}
[data-theme=auto] .pill.due{color:#8FB7EB}
[data-theme=auto] .pill.overdue{color:#EBB18E}
[data-theme=auto] .pill.credit{background:#241C2F;color:#B6A0D9}
[data-theme=auto] .flash.ok{background:#22322A;color:#8EEBCE}
[data-theme=auto] .flash.error{color:#EBAE8E}
[data-theme=auto] .sumrow.total{border-top:1px solid #4A4F49}
[data-theme=auto] .tabs{background:#2A2D28}
[data-theme=auto] .tabs a{color:#C4CAC7}
[data-theme=auto] .seg{background:#282B25}
[data-theme=auto] .seg span{color:#C4CAC7}
[data-theme=auto] .seg input:focus-visible+span{outline:2px solid #4D665B}
[data-theme=auto] .addr.def{background:#1C2822}
[data-theme=auto] .ac-list li[aria-selected=true]{background:#232F29}
[data-theme=auto] .ac-list mark{background:#474028}
[data-theme=auto] input.desc-edit{background:#21251C}
[data-theme=auto] .lines td.calc{background:#21251E}
[data-theme=auto] .gstin-msg.ok{color:#8EEBCE}
[data-theme=auto] .gstin-msg.warn{color:#EBB18E}
[data-theme=auto] .dirty-note{color:#EBB18E}
[data-theme=auto] .ac-error{color:#EBAE8E}
[data-theme=auto] .in.picked{border-color:#4D665B;background:#1C2822}
[data-theme=auto] .in.unpicked{border-color:#7C6453;background:#2B2019}
[data-theme=auto] .rowerr{color:#EBB18E}
[data-theme=auto] .totals{border-top:1px solid var(--line,#504E47)}
[data-theme=auto] .flash.verify{background:#322C1C;color:#EBCE8E}
[data-theme=auto] .pw-msg{color:#EBAE8E}
[data-theme=auto] .getting-started .done-tag{background:#22322A;color:#8EEBCE}
[data-theme=auto] .dup-box{color:#EBAE8E}
[data-theme=auto] .num-msg.bad{color:#EBAB8E}
[data-theme=auto] .open-card{border-color:#45544D}
[data-theme=auto] .adv-row{border-top:1px solid #45544D}
[data-theme=auto] table.t.cards tr{border-bottom:1px solid #484C44}
[data-theme=auto] .seat-bar{background:#2B2F2A}
[data-theme=auto] .biz-row{border-bottom:1px solid #484C44}
[data-theme=auto] .warn-text{color:#EBB18E}
[data-theme=auto] .dd[open]>summary{background:#1E2A24}
[data-theme=auto] .dd-panel a:hover, [data-theme=auto] .dd-panel a:focus-visible{background:#212B25}
[data-theme=auto] .btn.wa{color:#8EEBC1}
[data-theme=auto] .opened{color:#8EEBCE}
[data-theme=auto] .btn.wa{color:#8EEBC1}
[data-theme=auto] .opened{color:#8EEBCE}
[data-theme=auto] /* credit limit */
.flash.warn{background:#322C1C;color:#EBCE8E}
[data-theme=auto] .credit-box.over{border-color:#665244}
[data-theme=auto] .credit-over{color:#EBAE8E}
[data-theme=auto] /* inactive customers / vendors / items */
.pill.inactive{background:#282B25;color:#C5C9C7}
[data-theme=auto] tr.inactive td{color:var(--muted,#C5C9C7)}
[data-theme=auto] .sw.e{background:#634B38}
[data-theme=auto] .gstin-why span{color:#EBB18E}
[data-theme=auto] .pill.asset{color:#8FB7EB}
[data-theme=auto] /* backups */
.backup-banner{background:#30271B;border:1px solid #675945;color:#EBC88E}
[data-theme=auto] .backup-banner[data-kind=error]{background:#2E1A1A;border-color:#5F413F;color:#EB958E}
[data-theme=auto] .bk-num{background:#242F2A}
[data-theme=auto] .bk-msg.err{color:#EB938E}
[data-theme=auto] table.fin td a{border-bottom:1px dotted #5D625F}
[data-theme=auto] .fin-section td{background:#232A26}
[data-theme=auto] .fin-total td{background:#212521}
[data-theme=auto] .fin-grand td{background:#242F2A}
[data-theme=auto] .fin-warn td{color:#EB938E}
[data-theme=auto] .kpi .val.neg{color:#EB938E}
[data-theme=auto] .type-chip{background:#242F2A}
[data-theme=auto] .type-x:hover{background:#2D3B33}
[data-theme=auto] .field-err{color:#EB938E}
[data-theme=auto] .dd-panel>button:hover, [data-theme=auto] .dd-panel form>button:hover, [data-theme=auto] .dd-panel>button:focus-visible, [data-theme=auto] .dd-panel form>button:focus-visible{background:#212B25}
[data-theme=auto] .dd-panel .danger{color:#EB958E}
[data-theme=auto] .dd-panel .danger:hover, [data-theme=auto] .dd-panel .danger:focus-visible{background:#2F1D1B}
[data-theme=auto] .help-index nav a:hover{background:#212B25}
[data-theme=auto] .help-index nav a.on{background:#23312B}
[data-theme=auto] .topic figcaption{background:#21251E}
[data-theme=auto] .topic .tip{background:#1F2C24}
[data-theme=auto] .topic .note{background:#2F271B}
[data-theme=auto] .topic .note::before{color:#EBC38E}
[data-theme=auto] .topic kbd, [data-theme=auto] .help kbd{background:#272924}
[data-theme=auto] .topic b.ui{background:#272924}
[data-theme=auto] .topic th{background:#252721}
[data-theme=auto] mark.hm{background:#50482E}
[data-theme=auto] /* item page: HSN suggestions and the GST rate they point to */
.hsn-panel{background:#21251E}
[data-theme=auto] .hsn-chip:hover, [data-theme=auto] .hsn-chip:focus-visible{background:#212B25}
[data-theme=auto] .kind-opt:has(input:checked){background:#212B25}
[data-theme=auto] /* voucher lines: every other row a shade darker, [data-theme=auto] easier to follow across (screen only; PDFs are separate) */
#rows > tr:nth-child(even) > td, [data-theme=auto] table.zebra > tbody > tr:nth-child(even) > td{background:#252922}
[data-theme=auto] /* GST records shown under a GSTIN */
.gstin-info{background:#21251E}
[data-theme=auto] .gstin-info.good{border-color:#455D51;background:#1E2A24}
[data-theme=auto] .gstin-info.bad{border-color:#604740;background:#2E201A}
[data-theme=auto] .gstin-info.bad .gi-status, [data-theme=auto] .gstin-info .gi-warn{color:#EB958E}
[data-theme=auto] .pill.warn{background:#32211D;color:#EB958E}
[data-theme=auto] .admin-nav a:hover, [data-theme=auto] .admin-nav a:focus-visible{color:var(--green,#8EEBCF)}
[data-theme=auto] .pill.sub-active{background:#22322A;color:#8EEBCE}
[data-theme=auto] .pill.sub-none{background:#282B25;color:#C4CAC7}
[data-theme=auto] .pill.sub-due{color:#8FB7EB}
[data-theme=auto] .pill.sub-grace{background:#322C1C;color:#EBCE8E}
[data-theme=auto] .pill.sub-blocked, [data-theme=auto] .pill.sub-removal{color:#EBB18E}
[data-theme=auto] tr.manage>td{background:var(--tint,#1F2821)}
[data-theme=auto] .danger-box{border:1px solid #644C43;background:#2B1E18}
[data-theme=auto] .pill.due, [data-theme=auto] .pill.sub-due{background:#1B2838}
[data-theme=auto] .pill.overdue, [data-theme=auto] .pill.sub-blocked, [data-theme=auto] .pill.sub-removal, [data-theme=auto] .flash.error{background:#3A2518}
[data-theme=auto] .flash.warn, [data-theme=auto] .pill.sub-grace{background:#3A3016;color:#EBCB7A}
[data-theme=auto] .pill.sub-active{background:#1E3A2D;color:#8FE0BE}
[data-theme=auto] .pill.sub-none{background:#262E2A;color:#C4CAC7}
[data-theme=auto] .btn.primary, [data-theme=auto] .chip.on, [data-theme=auto] .seg button.on, [data-theme=auto] .bk-num.done, [data-theme=auto] .sheet-grid a.big{color:#0B100E}
[data-theme=auto] .btn.primary:hover{color:#0B100E}
[data-theme=auto] .btn.primary kbd.fk{color:#0B100E;border-color:rgba(0,0,0,.35);background:rgba(0,0,0,.12)}
[data-theme=auto] input[type=date], [data-theme=auto] input[type=number], [data-theme=auto] select{color-scheme:dark}
[data-theme=auto] img.logo-prev, [data-theme=auto] .topic figure img{filter:brightness(.92)}
[data-theme=auto] .danger-box{background:#2A1C16;border-color:#5A3A2A}
[data-theme=auto] tr.manage>td{background:#1C2823}
}
@media print{[data-theme]{--ink:#1B1F1D;--muted:#5A635F;--line:#E1E4DF;--bg:#fff;--card:#fff}}
.theme-pick{display:flex;gap:4px;margin-top:8px;flex-wrap:wrap}
.theme-pick button{font:inherit;font-size:11.5px;padding:3px 8px;border-radius:999px;border:1px solid rgba(255,255,255,.25);background:transparent;color:rgba(255,255,255,.75);cursor:pointer}
.theme-pick button[aria-pressed=true]{background:rgba(255,255,255,.16);color:#fff;border-color:rgba(255,255,255,.5)}

/* dark theme: the near-black sidebar of before */
[data-theme=dark] .side .biz{border-top-color:#2C3833;color:#9FB0A8}
[data-theme=dark] .nav{color:#C9D3CE}
[data-theme=dark] .navsub{border-left-color:rgba(255,255,255,.12)}
[data-theme=dark] .brand span{background:var(--green);color:#0B100E}
[data-theme=dark] .brand small.tagline{color:#9FD3BC}
@media (prefers-color-scheme: dark){
[data-theme=auto] .side .biz{border-top-color:#2C3833;color:#9FB0A8}
[data-theme=auto] .nav{color:#C9D3CE}
[data-theme=auto] .navsub{border-left-color:rgba(255,255,255,.12)}
[data-theme=auto] .brand span{background:var(--green);color:#0B100E}
[data-theme=auto] .brand small.tagline{color:#9FD3BC}
}

/* dark theme: quiet column headers */
[data-theme=dark] table.t th, [data-theme=dark] table.t.lines thead th{background:#21251E;color:var(--muted);border-bottom-color:#4A4F49}
[data-theme=dark] table.t th.sorted{color:var(--green);background:#21251E}
[data-theme=dark] .th-sort:hover{color:var(--ink)}
[data-theme=dark] .th-sort:focus-visible{outline-color:var(--green)}
@media (prefers-color-scheme: dark){
[data-theme=auto] table.t th, [data-theme=auto] table.t.lines thead th{background:#21251E;color:var(--muted);border-bottom-color:#4A4F49}
[data-theme=auto] table.t th.sorted{color:var(--green);background:#21251E}
[data-theme=auto] .th-sort:hover{color:var(--ink)}
[data-theme=auto] .th-sort:focus-visible{outline-color:var(--green)}
}

/* "Did You Know?" tip after logging in */
dialog.tipbox{max-width:460px;width:calc(100% - 32px);border:0;border-radius:14px;padding:22px 22px 18px;background:var(--card);color:var(--ink);
  box-shadow:0 20px 50px rgba(0,0,0,.25)}
dialog.tipbox::backdrop{background:rgba(10,20,15,.45)}
.tip-head{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.tip-head h2{margin:0;font-size:19px;color:var(--green)}
.tip-ico{font-size:22px}
.tip-text{margin:0 0 10px;line-height:1.55;font-size:15px}
.tip-more{font-size:14px;color:var(--green)}
.tip-foot{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-top:18px;flex-wrap:wrap}
.tip-foot .hint{display:block;font-size:12px}
/* an on / off switch made from a checkbox */
.switch-row{display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer}
input.switch{appearance:none;-webkit-appearance:none;flex:none;width:46px;height:26px;border-radius:999px;background:var(--line2);position:relative;cursor:pointer;
  transition:background .15s;margin:0}
input.switch::after{content:'';position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.3);transition:left .15s}
input.switch:checked{background:var(--green)}
input.switch:checked::after{left:23px}
input.switch:focus-visible{outline:2px solid var(--green);outline-offset:2px}
/* logo tile (Build 26): the picture fills the rounded tile in every theme */
.brand span, [data-theme] .brand span, .auth-brand>span:first-child{background:none!important;overflow:hidden;padding:0}
.brand span img, .auth-brand>span:first-child img{width:100%;height:100%;display:block;border-radius:inherit}
/* logo as tall as the name + tagline (+ build) beside it */
.brand span{width:50px;height:50px;flex:none;border-radius:11px}
.auth-brand>span:first-child{width:46px;height:46px;flex:none;border-radius:11px}
nav.side .brand{padding-left:0;padding-right:0}   /* logo lines up with the left edge of the menu tabs */
/* documents: keyword search within the tab */
.docsearch{display:flex;gap:8px;align-items:center;max-width:640px;margin:0 0 12px}
.docsearch .in{flex:1;min-width:0}
.docsearch-n{margin:-4px 0 10px}
/* period column heading: sort button on top, period picker under it */
th.per-th{white-space:normal;min-width:118px;max-width:150px}
th.per-th .th-sort{display:inline-flex}
th.per-th .per-pick{display:block;margin:4px 0 0 auto;font:inherit;font-size:11.5px;font-weight:500;text-transform:none;letter-spacing:0;
  color:#fff;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.35);border-radius:6px;padding:2px 4px;max-width:140px;cursor:pointer}
th.per-th .per-pick option{color:#1B1F1D;background:#fff}
td .unit{color:var(--muted);font-size:.9em}
.per-dlg{border:0;border-radius:14px;padding:22px;max-width:380px;width:calc(100% - 32px);background:var(--card,#fff);color:inherit}
.per-dlg h2{margin:0 0 14px;font-size:18px}
.per-dlg .row2{display:flex;gap:12px}.per-dlg .row2 .f{flex:1}
.per-dlg .formbar{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}
.per-dlg::backdrop{background:rgba(0,0,0,.35)}
/* phones: the table headings are hidden, so the period picker sits under the search box */
.per-phone{display:none}
@media (max-width:700px){
  .per-phone{display:flex;align-items:center;gap:8px;margin:0 0 10px;font-size:14px;color:var(--muted)}
  .per-phone select{font:inherit;color:var(--ink);background:var(--card);border:1px solid var(--line2);border-radius:8px;padding:6px 8px}
}
/* Challans to invoice: remark box on each line */
.remark-cell{min-width:200px}
.remark-form{display:flex;align-items:center;gap:6px}
.remark-form .in{width:100%;min-width:0;padding:6px 9px;font-size:13.5px}
.remark-ok{font-size:12px;color:var(--green);opacity:0;transition:opacity .2s;white-space:nowrap}
.remark-ok.on, .remark-ok.err{opacity:1}.remark-ok.err{color:var(--orange)}
/* challan with sale and returnable lines: a small heading where each kind starts */
table.t tr.grp-row td{padding:10px 12px 4px;border-bottom:0;background:transparent}
table.t.cards tr.grp-row{display:block;border:0;background:transparent;padding:4px 0 0}
/* invoice / proforma header: related boxes in one framed group (Shipping: ship to + place of supply; Customer P/O: no. + date) */
.fgrp{grid-column:span 2;display:flex;flex-direction:column;gap:6px;padding:8px 10px 10px;border:1px solid var(--line);border-radius:10px;background:var(--tint);min-width:0}
.fgrp-label{font-size:11.5px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.fgrp-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:start}
.fgrp-row .f{min-width:0}.fgrp-row .in{min-width:0;width:100%}
@media (min-width:1100px){ .grid.hdr5.hdr6{grid-template-columns:minmax(250px,2.4fr) minmax(200px,1.8fr) minmax(90px,1.1fr) minmax(112px,.6fr)} .grid.hdr5.hdr6 .fgrp{grid-column:span 1} }
@media (max-width:700px){ .fgrp{grid-column:1/-1} .fgrp-row{grid-template-columns:1fr} }
[data-theme=dark] .fgrp{background:#1E221C;border-color:#3A3F38}
@media (prefers-color-scheme:dark){ [data-theme=auto] .fgrp{background:#1E221C;border-color:#3A3F38} }
/* invoice header, line 1: challan no. and e-way bill are short, so the customer box gets the room */
@media (min-width:1100px){ .grid.hdr5.inv-r1{grid-template-columns:minmax(220px,2fr) minmax(130px,1.05fr) minmax(130px,1fr) minmax(100px,.8fr) minmax(112px,.85fr)} }
/* party ledger, Tally style */
table.t.tally td{padding-top:6px;padding-bottom:6px}
table.t.tally td.vt{font-size:12.5px;font-weight:600}
table.t.tally td.c{text-align:center}
table.t.tally tr.sum td.num{border-top:1px solid var(--ink)}
table.t.tally tr.grand td.num{border-top:1px solid var(--ink);border-bottom:3px double var(--ink)}
table.t.tally tr.gap td{padding:6px;border:0}
