/* GRD ERP - UI prototype. Look : teal bars, cream panels, keyboard first. */
:root{
  --teal:#4d7a6f; --teal-d:#2f5148; --teal-l:#6f9a8f;
  --cream:#ece8d9; --cream-d:#ddd7c2; --paper:#f6f4ec;
  --sky:#e3eff7; --sky-d:#cfe1ee;
  --ink:#16211f; --mut:#5c6b68; --line:#b9c4c0;
  --hi:#ffdc73; --hi-t:#000;
  --ok:#2e7d32; --ok-bg:#d9efd9; --warn:#8a6d00; --warn-bg:#fff3bf; --bad:#b3261e; --bad-bg:#fbd9d6;
  --blue:#1f5fbf;
}
*{box-sizing:border-box}
html,body{height:100%;margin:0}
body{font-family:"Segoe UI",Tahoma,Arial,sans-serif;font-variant-numeric:tabular-nums;font-size:13px;color:var(--ink);background:#c9cfcb;overflow:hidden}
button{font:inherit;cursor:pointer}
input,select{font:inherit}
.num{text-align:right;font-variant-numeric:tabular-nums}

/* ---------- frame ---------- */
#app{display:grid;grid-template-rows:auto auto 1fr auto auto;height:100vh;background:var(--cream)}
#titlebar{background:#fff;border-bottom:1px solid var(--line);padding:3px 10px;font-size:12px;color:#333;display:flex;gap:10px;align-items:center;white-space:nowrap;overflow:hidden}
#titlebar b{color:var(--bad)}
#titlebar .sp{flex:1}
body.tcopy #titlebar,body.dark.tcopy #titlebar{background:#c62828;color:#fff;border-bottom-color:#8e1b1b}
body.tcopy #titlebar .sw i,body.tcopy #titlebar .sw b{color:#fff}
#tcl{font-weight:700;letter-spacing:.04em;background:#fff;color:#c62828;padding:0 10px;margin-left:10px;border-radius:9px}
body.tcopy #titlebar .user{color:#333}body.tcopy #bell{color:#fff}
.net{padding:1px 9px;border-radius:10px;font-weight:600;font-size:11px;cursor:pointer;border:1px solid transparent}
.net.fsb{background:#fff;color:#2f5148;border-color:#9bb0a8}
.net.on{background:var(--ok-bg);color:var(--ok);border-color:#9ccc9c}
.net.off{background:var(--warn-bg);color:var(--warn);border-color:#e0c96a}
.user{background:var(--sky);border:1px solid var(--sky-d);border-radius:10px;padding:1px 9px;font-size:11px}

#menubar{background:var(--paper);border-bottom:1px solid var(--line);display:flex;align-items:stretch;padding:0 4px;position:relative;z-index:30}
.mtop{padding:5px 11px;cursor:pointer;border-radius:3px 3px 0 0;user-select:none;position:relative}
.mtop u{text-decoration:underline}
.mtop:hover,.mtop.open{background:var(--teal);color:#fff}
.mdrop{display:none;position:absolute;left:0;top:100%;background:#fff;border:1px solid #8a9692;box-shadow:3px 4px 10px rgba(0,0,0,.25);min-width:250px;padding:3px 0;color:var(--ink)}
.mtop.open .mdrop{display:block}
.mi{padding:4px 26px 4px 22px;white-space:nowrap;display:flex;gap:18px;justify-content:space-between}
.mi:hover{background:var(--blue);color:#fff}
.mi small{opacity:.65;font-size:11px}
.mi.nb{color:#8a8f8d}
.msep{border-top:1px solid #d5dad8;margin:3px 0}
.mhead{padding:4px 22px 2px;font-weight:700;font-size:11px;color:var(--teal-d);text-transform:uppercase;letter-spacing:.04em}
#findbox{margin-left:auto;align-self:center;display:flex;gap:6px;align-items:center;padding-right:6px;color:var(--mut);font-size:12px}
#findbox input{width:230px;padding:3px 7px;border:1px solid var(--line);border-radius:3px;background:#fff}
#findres{display:none;position:absolute;right:6px;top:100%;background:#fff;border:1px solid #8a9692;box-shadow:3px 4px 10px rgba(0,0,0,.25);min-width:300px;max-height:320px;overflow:auto;z-index:40}
#findres div{padding:5px 12px;cursor:pointer;display:flex;justify-content:space-between;gap:20px}
#findres div.sel,#findres div:hover{background:var(--blue);color:#fff}
#findres small{opacity:.7}

#main{overflow:hidden;position:relative;background:var(--cream)}
#statusbar{background:var(--teal);color:#fff;padding:4px 10px;font-size:12px;display:flex;gap:16px;white-space:nowrap;overflow:hidden}
#statusbar b{font-weight:600}
#statusbar .sp{flex:1}
#statusbar.sbk-on{gap:9px}#statusbar.sbk-on #st-screen{display:none}#statusbar .sbk-box{display:flex;gap:9px;overflow:hidden;min-width:0;flex:0 1 auto}#statusbar .exb{flex-shrink:0}#statusbar .sbk-box.sbk-sm{font-size:11px;gap:8px}#statusbar .sbk{cursor:pointer}#statusbar .sbk:hover{text-decoration:underline}#statusbar .sbk-s{color:#ffe58a}#statusbar .sbk-s b{color:#fff}      /* GREEN BAR = the keys of the screen (owner 12-11, A) */
#footer{background:var(--paper);border-top:1px solid var(--line);padding:5px 12px;display:flex;gap:26px;align-items:center;font-size:12px}
#footer .co{font-weight:700;font-size:14px}
#footer .clock{margin-left:auto;text-align:right;line-height:1.35}
#footer .clock b{font-size:13px}
/* THE BOTTOM BARS (owner 10-11 : date / time in the green bar, the licence on the left, the live logo on the right - the same height) */
#statusbar{position:relative;padding-right:190px}#statusbar .sbclk{position:absolute;right:0;top:0;bottom:0;display:flex;align-items:center;padding:0 12px;background:var(--teal);border-left:1px solid #8fb1a7}      /* the time stays in sight on a narrow window */
#footer{padding:0 0 0 12px;min-height:44px}
#footer .lic{display:flex;flex-direction:column;justify-content:center;min-width:0;line-height:1.35;white-space:nowrap;overflow:hidden}
#footer .lic1,#footer .lic2{overflow:hidden;text-overflow:ellipsis}
#footer .lic2{color:#5c6b68}
#footer .flogo{margin-left:auto;position:relative;overflow:hidden;display:flex;align-items:center;gap:8px;padding:0 14px;height:44px;flex:0 0 auto}
#footer .flogo svg{width:30px;height:30px;animation:flz 2.4s infinite;transform-origin:50% 50%}
#footer .fl-n{display:flex;flex-direction:column;line-height:1}
#footer .fl-w{white-space:nowrap}
#footer .fl-w i{font-family:"Monotype Corsiva","Lucida Calligraphy","Segoe Script",cursive;font-style:italic;font-size:24px;color:#2f5148}
#footer .fl-w b{font-size:20px;color:#b3261e;margin-left:4px}
#footer .fl-n small{font-size:9px;color:#5c6b68;letter-spacing:.06em;margin-top:2px}
#footer .flogo:after{content:"";position:absolute;top:0;bottom:0;width:30%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.75),transparent);animation:fls 3s infinite}
@keyframes flz{0%,70%,100%{opacity:1;transform:scale(1)}78%{opacity:.35;transform:scale(.9)}86%{opacity:1;transform:scale(1.1)}}
@keyframes fls{0%{left:-40%}60%,100%{left:120%}}
@media (prefers-reduced-motion:reduce){#footer .flogo svg,#footer .flogo:after{animation:none}}
body.dark #footer .lic2,body.dark #footer .fl-n small{color:#9fb0b7}
body.dark #footer .fl-w i{color:#8fd0bf}body.dark #footer .fl-w b{color:#ff9d94}
body.dark #footer .flogo:after{background:linear-gradient(90deg,transparent,rgba(255,255,255,.18),transparent)}

/* ---------- home ---------- */
.home{display:grid;grid-template-columns:230px 1fr 250px;height:100%}
.home .col{overflow:auto;padding:8px}
.home .left{background:var(--cream);border-right:1px solid var(--line)}
.home .right{background:var(--cream);border-left:1px solid var(--line)}
.home .mid{background:#eef1ef;padding:14px 18px}
.side-h{color:var(--blue);font-size:12px;margin:8px 0 3px;font-weight:600}
.side-i{padding:2px 8px 2px 16px;cursor:pointer;border-radius:2px}
.side-i:hover{background:var(--teal);color:#fff}
.rbtn{display:block;width:100%;margin:0 0 4px;padding:6px 8px;background:linear-gradient(#f4f1e6,#dcd6c2);border:1px solid #9c9a8a;border-radius:2px;font-size:14px;text-align:center}
.rbtn:hover{background:var(--teal);color:#fff;border-color:var(--teal-d)}
.rbtn small{float:right;font-size:10px;opacity:.6;margin-top:3px}
.h-title{font-size:19px;font-weight:700;color:var(--teal-d);margin:0 0 2px}
.h-sub{color:var(--mut);margin:0 0 12px}
.flow{display:grid;grid-template-columns:repeat(5,1fr);gap:8px 22px;margin-bottom:14px}
.fbox{background:var(--teal);color:#fff;border-radius:6px;padding:7px 9px 8px;cursor:pointer;position:relative;min-height:74px;border:2px solid transparent}
.fbox:hover{border-color:#ffd54a}
.fbox.soft{background:var(--teal-l)}
.fbox .n{font-size:10px;opacity:.85}
.fbox .a{font-weight:700;font-size:13px;line-height:1.2;margin:1px 0 3px}
.fbox .c{font-size:11px;opacity:.95}
.fbox .c b{font-size:15px}
.fbox:not(.last)::after{content:"\279C";position:absolute;right:-18px;top:26px;color:var(--teal-d);font-size:14px}
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.card{background:#fff;border:1px solid var(--line);border-radius:6px;padding:9px 11px}
.card .k{color:var(--mut);font-size:11px;text-transform:uppercase;letter-spacing:.04em}
.card .v{font-size:22px;font-weight:700;color:var(--teal-d)}
.card .s{font-size:11px;color:var(--mut)}
.card.warn .v{color:var(--bad)}
.note{background:var(--warn-bg);border-left:4px solid #c9a227;padding:6px 10px;margin:12px 0 0;font-size:12px}

/* ---------- a work screen (window inside the main area) ---------- */
.win{position:absolute;inset:8px;background:#f2f7fa;border:1px solid #6d7f7a;box-shadow:4px 5px 14px rgba(0,0,0,.28);display:grid;grid-template-rows:auto auto 1fr auto;overflow:hidden}
.win-t{background:var(--teal);color:#fff;padding:5px 10px;font-weight:600;letter-spacing:.03em;display:flex;align-items:center;gap:10px}
.win-t .x{margin-left:auto;background:#c0392b;border:0;color:#fff;border-radius:3px;width:26px;height:20px;line-height:18px;font-weight:700}
.win-t small{font-weight:400;opacity:.85}
.bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:7px 10px;background:#e6f0f6;border-bottom:1px solid var(--sky-d)}
.bar label{color:#234;font-size:12px}
.bar input,.bar select{padding:3px 6px;border:1px solid #9fb2bd;border-radius:2px;background:#fff}
.bar .sp{flex:1}
.btn{padding:4px 12px;background:linear-gradient(#fafafa,#dfe3e2);border:1px solid #8e9a97;border-radius:3px}
.btn:hover{background:#fff}
.btn.go{background:var(--ok);border-color:#1e5a22;color:#fff;font-weight:700;padding:7px 18px}
.btn.go:hover{background:#256b29}
.btn.big{padding:7px 18px}
.chips{display:flex;flex-wrap:wrap;gap:6px;padding:6px 10px;background:#edf3f6;border-bottom:1px solid var(--sky-d)}
.chip{border:1px solid #8e9a97;background:#eee;padding:2px 12px;font-weight:700;font-size:12px;cursor:default}
.chip.b{background:#d2e1f0}.chip.g{background:#bfe6bf}.chip.y{background:#ffe16e}.chip.r{background:#c82828;color:#fff}
.body{overflow:auto;position:relative}
.foot{display:flex;gap:10px;align-items:center;padding:7px 10px;background:#e6f0f6;border-top:1px solid var(--sky-d)}
.foot .msg{color:#1e5a50;font-size:12px;flex:1}
.split{display:grid;grid-template-columns:minmax(360px,40%) 1fr;height:100%}
.split>div{overflow:auto}
.split>div+div{border-left:2px solid var(--teal)}
.vsplit{display:grid;grid-template-rows:58% 42%;height:100%}
.vsplit>div{overflow:auto}
.vsplit>div+div{border-top:2px solid var(--teal)}

table.g{border-collapse:collapse;width:100%;background:#fff}
table.g th{position:sticky;top:0;background:var(--teal);color:#fff;font-weight:600;padding:6px 7px;border-right:1px solid #7fa69b;text-align:left;white-space:nowrap;z-index:2}
table.g td{padding:4px 7px;border-bottom:1px solid #d6e1e7;border-right:1px solid #e3ebef;white-space:nowrap}
/* FROZEN COLUMNS of a wide list (owner 17-11) : .gzN = the first N stay ; a teal line at the edge */
.gz1 tr>:nth-child(-n+1),.gz2 tr>:nth-child(-n+2),.gz3 tr>:nth-child(-n+3),.gz4 tr>:nth-child(-n+4),.gz5 tr>:nth-child(-n+5),.gz6 tr>:nth-child(-n+6),.gz7 tr>:nth-child(-n+7),.gz8 tr>:nth-child(-n+8){position:sticky;z-index:1}
:where(.gz1 tr>td:nth-child(-n+1),.gz2 tr>td:nth-child(-n+2),.gz3 tr>td:nth-child(-n+3),.gz4 tr>td:nth-child(-n+4),.gz5 tr>td:nth-child(-n+5),.gz6 tr>td:nth-child(-n+6),.gz7 tr>td:nth-child(-n+7),.gz8 tr>td:nth-child(-n+8)){background:#fff}
body.dark :where(.gz1 tr>td:nth-child(-n+1),.gz2 tr>td:nth-child(-n+2),.gz3 tr>td:nth-child(-n+3),.gz4 tr>td:nth-child(-n+4),.gz5 tr>td:nth-child(-n+5),.gz6 tr>td:nth-child(-n+6),.gz7 tr>td:nth-child(-n+7),.gz8 tr>td:nth-child(-n+8)){background:#151b1f}
.gz1 thead tr>:nth-child(-n+1),.gz2 thead tr>:nth-child(-n+2),.gz3 thead tr>:nth-child(-n+3),.gz4 thead tr>:nth-child(-n+4),.gz5 thead tr>:nth-child(-n+5),.gz6 thead tr>:nth-child(-n+6),.gz7 thead tr>:nth-child(-n+7),.gz8 thead tr>:nth-child(-n+8){z-index:3}
.gz1 tr>:nth-child(1),.gz2 tr>:nth-child(2),.gz3 tr>:nth-child(3),.gz4 tr>:nth-child(4),.gz5 tr>:nth-child(5),.gz6 tr>:nth-child(6),.gz7 tr>:nth-child(7),.gz8 tr>:nth-child(8){box-shadow:inset -2px 0 0 #2e6b57}
:is(.gz1,.gz2,.gz3,.gz4,.gz5,.gz6,.gz7,.gz8) tr>:nth-child(1){left:var(--fz1,0)}
:is(.gz1,.gz2,.gz3,.gz4,.gz5,.gz6,.gz7,.gz8) tr>:nth-child(2){left:var(--fz2,0)}
:is(.gz1,.gz2,.gz3,.gz4,.gz5,.gz6,.gz7,.gz8) tr>:nth-child(3){left:var(--fz3,0)}
:is(.gz1,.gz2,.gz3,.gz4,.gz5,.gz6,.gz7,.gz8) tr>:nth-child(4){left:var(--fz4,0)}
:is(.gz1,.gz2,.gz3,.gz4,.gz5,.gz6,.gz7,.gz8) tr>:nth-child(5){left:var(--fz5,0)}
:is(.gz1,.gz2,.gz3,.gz4,.gz5,.gz6,.gz7,.gz8) tr>:nth-child(6){left:var(--fz6,0)}
:is(.gz1,.gz2,.gz3,.gz4,.gz5,.gz6,.gz7,.gz8) tr>:nth-child(7){left:var(--fz7,0)}
:is(.gz1,.gz2,.gz3,.gz4,.gz5,.gz6,.gz7,.gz8) tr>:nth-child(8){left:var(--fz8,0)}
.fzb .fz-l{display:flex;flex-direction:column;gap:4px;margin:8px 0;max-height:50vh;overflow:auto}
.fzb .fz-l button{text-align:left;padding:6px 10px;border:1px solid #b9cbc4;border-radius:6px;background:#fff;font:inherit;cursor:pointer}
.fzb .fz-l button:focus{background:var(--teal);color:#fff;outline:0}
body.dark .fzb .fz-l button{background:#1b2328;color:#dfe7e4;border-color:#33433d}
table.g tr.sel td{background:var(--hi)!important;color:var(--hi-t)}
body:not(.dark) .ccm-i.sel{font-weight:600}      /* a real semi-bold, not a smeared one (crisp letters, owner 04-11) */
/* every list (owner 01-11, like Marg) : a dark green line, the light green heading of the bill lines, the list ; the line under the bar dark green, white, bold, bigger. The items of the bill keep their own look */
body:not(.dark) .win-t,body:not(.dark) .pick-t,body:not(.dark) .pick.pop .pick-t{background:#2c4a36;color:#fff}
body:not(.dark) .win-t small{color:#fff}
body:not(.dark) :not(#ln)>table.g th{background:var(--ok-bg);color:#000;border-right:1px solid #b9dcb9;font-weight:700}
/* the line under the bar (owner 04-11 chose F : 'crisp, not hazy') : not bold, a darker bar, whole pixels - no half-pixel line, no made-bold letters */
body:not(.dark) :not(#ln)>table.g tr.sel td,body:not(.dark) .lpv tr.mrow.sel td{background:var(--teal)!important;color:#fff!important;font-weight:400;font-size:var(--lsf);line-height:var(--lsh);text-shadow:none}
body:not(.dark) :not(#ln)>table.g tr.sel td *:not(input):not(select):not(textarea):not(button){color:#fff!important;border-color:#fff}
body:not(.dark) :not(#ln)>table.g tr.sel small.chr{background:transparent}
body:not(.dark) .two>div:not(:focus-within) :not(#ln)>table.g tr.sel td{background:#fff!important;color:var(--ink)!important;font-weight:400;font-size:inherit;line-height:inherit}
body:not(.dark) .two>div:not(:focus-within) :not(#ln)>table.g tr.sel td *:not(input):not(select):not(textarea):not(button){color:inherit!important}
table.g.fx td{overflow:hidden;text-overflow:ellipsis}
.pick.itl table.g td{font-size:var(--lf)}      /* the item list : one size bigger (owner 01-11) - at least 14 */
.billwin .pick.pop.itl .pick-t{padding-top:5px;padding-bottom:5px}.billwin .pick.pop.itl .pick-f{padding-top:3px;padding-bottom:3px}.billwin .pick.pop.itl .pick-i{padding-top:2px;padding-bottom:1px}      /* one line more in the list (owner 01-11) */
body:not(.dark) .pick.itl :not(#ln)>table.g tr.sel td{font-size:var(--lsf);line-height:var(--lsh)}

table.g tr.sel td .st{color:var(--hi-t);background:transparent;border-color:var(--hi-t)}
table.g tr:hover td{background:#eef6fb}
table.g tr.grp td{background:#d7e8e2;font-weight:700}
table.g tr.done td{background:#e3f3e3}
table.g tr.bad td{background:#fde5e3}
table.g tr.warn td{background:#fff7d1}
table.g td input{width:100%;padding:2px 4px;border:1px solid #9fb2bd}
.st{display:inline-block;padding:0 8px;border-radius:9px;font-size:11px;font-weight:600;border:1px solid transparent}
.st.ok{background:var(--ok-bg);color:var(--ok);border-color:#a5d6a7}
.st.warn{background:var(--warn-bg);color:var(--warn);border-color:#e6cf73}
.st.bad{background:var(--bad-bg);color:var(--bad);border-color:#f0a8a2}
.st.info{background:var(--sky);color:#1b4f72;border-color:#a9cce3}

/* entry form (bill / master) */
.form{background:var(--sky);height:100%;display:grid;grid-template-rows:auto 1fr auto}
.fhead{display:grid;grid-template-columns:repeat(4,auto 1fr);gap:5px 10px;padding:9px 12px;border-bottom:1px solid #9fb2bd;align-items:center}
.fhead label{color:var(--blue);font-family:inherit;font-size:13px}
.fhead input,.fhead select{padding:3px 6px;border:1px solid #9fb2bd;background:#fff;min-width:0;width:100%}
.fhead .w2{grid-column:span 3}
.ftot{display:flex;gap:26px;justify-content:flex-end;padding:8px 14px;border-top:1px solid #9fb2bd;font-family:inherit}
.ftot b{font-size:16px}
.keys{display:flex;flex-wrap:wrap;gap:4px}
.key{background:var(--teal-d);color:#fff;font-size:11px;padding:1px 7px;border:1px solid #9fc0b6}
.kv{display:grid;grid-template-columns:150px 1fr;gap:6px 12px;padding:14px 18px;max-width:760px}
.kv label{color:var(--blue);font-family:inherit}
.kv input,.kv select{padding:3px 6px;border:1px solid #9fb2bd;background:#fff}
.pad{padding:14px 18px}
.soon{display:grid;place-items:center;height:100%;color:var(--mut);text-align:center;padding:30px}
.soon h3{color:var(--teal-d);margin:0 0 6px}
.modal{position:absolute;inset:0;background:rgba(20,30,28,.35);display:grid;place-items:center;z-index:50}
.modal>div{background:#fff;border:1px solid #6d7f7a;box-shadow:4px 6px 18px rgba(0,0,0,.35);min-width:380px;max-width:640px}
.modal h4{margin:0;background:var(--teal);color:#fff;padding:6px 12px;font-size:13px}
.modal p{margin:0;padding:14px 16px;line-height:1.5;white-space:pre-line}
.modal .acts{display:flex;gap:8px;justify-content:flex-end;padding:8px 12px;background:#eef1ef}
.matrix td,.matrix th{text-align:center}
.matrix td:first-child,.matrix th:first-child{text-align:left}

/* ---------- phone ---------- */
@media (max-width:820px){
  body{overflow:auto}
  #app{height:auto;min-height:100vh}
  #menubar{flex-wrap:wrap}
  #findbox{width:100%;margin:4px 0}#findbox input{flex:1;width:auto}
  .home{grid-template-columns:1fr;height:auto}
  .home .left{display:none}
  .flow{grid-template-columns:repeat(2,1fr)}
  .fbox::after{display:none}
  .cards{grid-template-columns:repeat(2,1fr)}
  .win{position:static;margin:6px;min-height:70vh}
  .split,.vsplit{grid-template-columns:1fr;grid-template-rows:auto auto;height:auto}
  .fhead{grid-template-columns:auto 1fr}
  .fhead .w2{grid-column:auto}
  #statusbar{flex-wrap:wrap}
}

/* keyboard : where the cursor is */
.mi.kb{background:var(--blue);color:#fff}
.side-i:focus,.rbtn:focus{background:var(--teal);color:#fff;border-color:var(--teal-d);outline:none}
.fbox:focus{outline:3px solid #f0b400;outline-offset:2px}
.btn:focus,.st[data-r]:focus{outline:2px solid #f0b400;outline-offset:1px}
.win div[tabindex]:focus{outline:2px solid var(--blue);outline-offset:-2px}
.win input:focus,.win select:focus{outline:2px solid #f0b400;outline-offset:0;background:#fffbe0}
/* side menus hang out of the drop-down, so it must not clip */
.mi.has{position:relative}
.mi.has>small{opacity:.85;font-size:14px;line-height:1}
.msub{display:none;position:absolute;left:100%;top:-4px;background:#fff;border:1px solid #8a9692;box-shadow:3px 4px 10px rgba(0,0,0,.25);min-width:190px;padding:3px 0;color:var(--ink);z-index:2;cursor:pointer}
.mi.has:hover>.msub,.mi.so>.msub{display:block}
.msub .mi.nb{color:#8a8f8d}
.msub .mi:hover,.msub .mi.kb{color:#fff}
.mhead{position:static}

/* sale entry : choose-lists and the three boxes at the bottom */
.pick{position:absolute;left:0;right:0;bottom:0;background:var(--sky);display:grid;grid-template-rows:auto 1fr auto auto;z-index:20;border-top:2px solid var(--teal)}
.pick-t{background:var(--teal);color:#fff;padding:3px 10px;font-weight:600;letter-spacing:.03em}
.pick-g{overflow:auto;background:#fff}
.pick-f{display:flex;gap:8px;align-items:center;padding:5px 10px;border-top:1px solid #9fb2bd;line-height:1.2;color:var(--blue)}
.pick-f input{width:280px;padding:3px 6px;border:1px solid #9fb2bd;border-radius:6px}
.pick-n{color:var(--mut);font-size:12px}
.pick-i{display:flex;flex-wrap:wrap;gap:4px 26px;padding:6px 12px;min-height:30px;border-top:1px solid #9fb2bd;line-height:1.2;font-size:12px;color:var(--blue)}
.pick-i b{color:var(--ink)}
table.g tr.nostk:not(.sel) td{color:#8a8f8d}
.sbot{display:grid;grid-template-columns:1.3fr 1fr 1.1fr;border-top:1px solid #9fb2bd;font-family:inherit;font-size:13px}
.sbot>div{padding:6px 12px}
.sbot>div+div{border-left:1px solid #9fb2bd}
.sbot>div>div{display:grid;grid-template-columns:130px 12px 1fr;line-height:1.45}
.sbot>div>div>span:first-child{color:var(--blue)}
.sbot #b2>div>:last-child,.sbot #b3>div>:last-child{text-align:right}
.sbot b{font-size:15px}
.sbot #b1 p.cal{margin:5px 0 0;padding-top:4px;border-top:1px solid #dfe6e3;font-size:12px;line-height:16px;color:#2f5148;white-space:pre-wrap}      /* THE CALCULATION LINE (owner 09-11) */
.sbot #b1 p.cal b{font-size:12px;font-weight:600}.sbot #b1 p.cal{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}      /* at most 2 lines : the band never grows (owner 10-11 : did the item area lose a line ?) */
body.dark .sbot #b1 p.cal{color:#9fd3c4;border-color:#33414b}
/* window = column : the body always takes the free height (also when the bar is hidden) */
.win{display:flex;flex-direction:column}
.win>.body{flex:1 1 auto;min-height:0}
.win>.win-t,.win>.bar,.win>.chips,.win>.partial,.win>.foot{flex:0 0 auto}
.win>.partial{background:#fdecea;color:#a12a1f;border-bottom:1px solid #e3b4ae;padding:5px 10px;font-weight:600;font-size:13px}
.srvwait{padding:24px;color:#5b6b70;font-style:italic}
body.dark .win>.partial{background:#3a1f1c;color:#ffb4a8;border-color:#6b3a33}
#menubar{flex-wrap:nowrap}
.mtop{padding-left:7px;padding-right:7px;white-space:nowrap}      /* 14 menus (Sales, Purchase, TDS / TCS, Modules, Settings of their own) + Find + the dashboard switch on ONE line at 1366 */
/* masters : list with the info boxes below, and the forms */
.ml{display:grid;grid-template-rows:1fr auto;height:100%}
.ml-g{overflow:auto;min-height:0;background:#fff}
.ml-i{display:grid;grid-template-columns:1.3fr 1fr;border-top:2px solid var(--teal);background:var(--sky);line-height:1.2;color:var(--blue);min-height:128px}
.ml-i.three{grid-template-columns:1fr 1fr 1.4fr}
.ml-b{padding:5px 14px 8px;border-right:1px solid #9fb2bd;overflow:hidden}
.ml-b h5{margin:0 0 3px;font-size:12px;font-weight:400;color:var(--teal-d)}
.ml-b b{color:var(--ink);font-weight:400}
.kv2{display:grid;grid-template-columns:auto 1fr auto 1fr;gap:1px 10px;white-space:nowrap}
.kv2.one{grid-template-columns:auto 1fr}
.kv2.one b{text-align:right;max-width:340px;overflow:hidden;text-overflow:ellipsis}
.ml-i.three .kv2.one b{text-align:left}
.mf{padding:10px 18px 16px;max-width:1180px}
.mf-h{margin:9px 0 4px;padding:2px 8px;background:var(--teal);color:#fff;font-size:12px;letter-spacing:.05em}
.mf-r{display:grid;gap:0 22px;margin:2px 0}
.mf1 .mf-r{grid-template-columns:minmax(0,560px)}
.mf2 .mf-r{grid-template-columns:repeat(2,minmax(0,1fr))}
.mf3 .mf-r{grid-template-columns:repeat(3,minmax(0,1fr))}
.mf-c{display:flex;align-items:center;gap:6px;min-width:0}
.mf-c.sp2{grid-column:span 2}.mf-c.sp3{grid-column:span 3}
.mf-c label{flex:0 0 170px;color:var(--blue);white-space:pre}
.mf3 .mf-c label{flex-basis:150px}
.mf-c i{font-style:normal;color:var(--blue)}
.mf-c input,.mf-c select{flex:1 1 auto;min-width:0;padding:2px 6px;border:1px solid #9fb2bd;background:#fff;font-family:inherit;font-size:13px}
.mf-c input{text-transform:uppercase}
.mf-c input.asis{text-transform:none}
.mf-c input.fbad{border-color:#d93025;background:#fde5e3;box-shadow:0 0 0 1px #d93025}      /* old data that breaks the field's rule : fix it before saving */
.mf-c input.num{text-align:right}
.mf-c input[readonly]{background:#e8eef0;color:#555}
.mf-c small{color:var(--mut);font-size:11px;white-space:nowrap}
/* voucher entry */
.vch{display:grid;grid-template-rows:auto 1fr auto;height:100%;background:var(--sky);font-family:inherit;font-size:15px;color:var(--blue)}
.vch-h{display:grid;grid-template-columns:1fr auto;gap:2px 30px;padding:10px 22px;border-bottom:1px solid #6d7f7a}
.vch-h b{color:#8b1a1a;font-weight:400}
.vch-h input{width:120px;font:inherit;padding:1px 5px;border:1px solid #9fb2bd}
.vch-g{overflow:auto;min-height:0;padding:0 22px}
.vch-g table{width:100%;border-collapse:collapse}
.vch-g th{font-weight:400;text-align:right;padding:4px 6px;color:var(--blue);border-bottom:1px solid #6d7f7a}
.vch-g th:nth-child(-n+2){text-align:left}
.vch-g td{padding:3px 6px;color:var(--ink)}
.vch-g td.num{text-align:right;color:var(--blue)}
.vch-g td input{width:130px;font:inherit;text-align:right;padding:1px 5px;border:1px solid #9fb2bd}
.vch-n{display:grid;grid-template-columns:auto 1fr 150px 150px;gap:10px;align-items:center;padding:8px 22px;border-top:1px solid #6d7f7a}
.vch-n input{font:inherit;padding:1px 5px;border:1px solid #9fb2bd;text-transform:uppercase}
.vch-n span.t{text-align:right;color:#8b1a1a}
/* start : logo, then the list of companies. locked = no company chosen yet */
#splash{position:fixed;inset:0;background:#e9edf0;display:grid;place-items:center;z-index:200;transition:opacity .4s}
#splash.hide{opacity:0}
#splash>div{width:min(640px,90vw);background:#fff;border:1px solid #9aa7a3;box-shadow:6px 8px 24px rgba(0,0,0,.3);text-align:center;overflow:hidden}
/* the start banner (owner 31-10) : the hexagon, the bolt strikes it, Swift from the left and ERP from the right letter by letter, the slogan from below */
.spx-t{display:flex;align-items:center;justify-content:center;gap:18px;padding:36px 12px 24px;overflow:hidden}
.spx-l{flex:none;width:92px;height:104px;overflow:visible}
.spx-n{display:flex;flex-direction:column}
.spx-w{display:flex;align-items:baseline;gap:14px}
.spx-w i{font:italic 400 76px/1 "Monotype Corsiva","Lucida Calligraphy","Segoe Script",cursive;color:#2f5148}
.spx-w b{font:700 62px/1 Arial,Helvetica,sans-serif;color:#b3261e;letter-spacing:3px}
.spx-w span{display:inline-block;animation:spxL .32s ease-out both}
.spx-w b span{animation-name:spxR}
.spx-w i span:nth-child(1){animation-delay:.95s}.spx-w i span:nth-child(2){animation-delay:1.08s}.spx-w i span:nth-child(3){animation-delay:1.21s}.spx-w i span:nth-child(4){animation-delay:1.34s}.spx-w i span:nth-child(5){animation-delay:1.47s}
.spx-w b span:nth-child(3){animation-delay:.95s}.spx-w b span:nth-child(2){animation-delay:1.08s}.spx-w b span:nth-child(1){animation-delay:1.21s}
.spx-s{font:600 21px/1.2 "Segoe UI",Tahoma,Arial,sans-serif;color:#2f5148;text-align:right;margin-top:6px;animation:spxU .42s ease-out 1.75s both}
.spx-y{padding:9px 0 11px;border-top:1px solid #e3e8e6;font-size:13px;color:#5f6f6a;letter-spacing:.04em;animation:spxO .42s ease-out 2.15s both}
.spx-h{fill:#4d7a6f;transform-box:fill-box;transform-origin:center;animation:spxH .4s ease-out both}
.spx-b{fill:#fff;transform-box:fill-box;transform-origin:center;animation:spxB .32s cubic-bezier(.3,0,.7,1) .4s both,spxK .34s linear .72s both}
.spx-f{fill:#ffe9a8;transform-box:fill-box;transform-origin:center;animation:spxF .34s ease-out .7s both}
@keyframes spxH{from{opacity:0;transform:scale(.6)}to{opacity:1;transform:none}}
@keyframes spxB{from{opacity:0;transform:translate(26px,-150px)}to{opacity:1;transform:none}}
@keyframes spxK{0%{fill:#ffe9a8}30%{fill:#fff}55%{fill:#ffe9a8}100%{fill:#fff}}
@keyframes spxF{0%{opacity:.85;transform:scale(.7)}100%{opacity:0;transform:scale(1.45)}}
@keyframes spxL{from{opacity:0;transform:translateX(-260px)}to{opacity:1;transform:none}}
@keyframes spxR{from{opacity:0;transform:translateX(260px)}to{opacity:1;transform:none}}
@keyframes spxU{from{opacity:0;transform:translateY(40px)}to{opacity:1;transform:none}}
@keyframes spxO{from{opacity:0}to{opacity:1}}
#app.locked #menubar{visibility:hidden}
#app.locked #statusbar span:not(#st-screen):not(.sp){visibility:hidden}
#app.locked #titlebar .user{visibility:hidden}
#upd{display:none;position:fixed;top:2px;left:50%;transform:translateX(-50%);z-index:150;background:#f0b400;color:#222;font-weight:700;padding:3px 18px;border:1px solid #9a7400;border-radius:12px;cursor:pointer;box-shadow:2px 3px 8px rgba(0,0,0,.3)}
/* bill : all the top fields in one line ; lists : three info boxes below */
.fhead.one{gap:5px 8px}
.fhead.one label{white-space:nowrap}
.pinfo{flex:1 1 100%;display:grid;grid-template-columns:1fr 1fr 1.7fr}
.pinfo>div{display:grid;grid-template-columns:76px 10px 1fr;align-content:start;gap:0 2px;padding:0 14px;min-height:96px}
.pinfo>div+div{border-left:1px solid #9fb2bd}
.pinfo span{color:var(--blue);white-space:nowrap}
.pinfo b{color:var(--ink);font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lgn{max-width:620px;margin:6vh auto 0}
.lgn p{margin:14px 18px;color:var(--mut);line-height:1.5}
.mf1 .mf-c label{flex-basis:200px}
/* login card */
.lg-wrap{height:100%;display:flex;background:linear-gradient(160deg,#f6f4ec 0%,#e6ebe8 55%,#d5e2dd 100%);overflow:auto;padding:16px}
.lg-card{margin:auto;flex:0 0 auto;width:410px;max-width:94vw;background:#fff;border:1px solid #d3dbd8;border-radius:14px;box-shadow:0 14px 40px rgba(47,81,72,.22),0 2px 6px rgba(0,0,0,.08);padding:0 30px 20px;overflow:hidden}
.lg-top{display:flex;align-items:center;justify-content:center;gap:12px;padding:22px 0 12px}
.lg-hex{flex:none;width:62px;height:70px}
.lg-w{display:flex;align-items:baseline;gap:9px}
.lg-w i{font:italic 400 52px/1 "Monotype Corsiva","Lucida Calligraphy","Segoe Script",cursive;color:#2f5148}
.lg-w b{font:700 42px/1 Arial,Helvetica,sans-serif;color:#b3261e;letter-spacing:2px}
.lg-sl{margin-top:4px;text-align:right;font-size:15px;font-weight:600;color:#2f5148}
.lg-by{margin:0 -30px 14px;padding:0 0 9px;text-align:center;font-size:12px;letter-spacing:.04em;color:#5f6f6a;border-bottom:1px solid #e3e8e6}
.lg-card h2{margin:0;text-align:center;font-size:21px;color:var(--teal-d);letter-spacing:.02em}
.lg-card p{margin:4px 0 16px;text-align:center;color:var(--mut);font-size:13px}
.lg-card label{display:block;margin:11px 0 5px;font-weight:600;font-size:13px;color:#33423f}
.lg-in{position:relative}
.lg-in input{width:100%;height:40px;padding:0 12px;font-size:15px;border:1px solid #c3cdca;border-radius:9px;background:#f4f7f6;outline:none;transition:border-color .15s,box-shadow .15s,background .15s}
.lg-in input.up{text-transform:uppercase}
.lg-in input:focus{border-color:var(--teal);background:#fff;box-shadow:0 0 0 3px rgba(77,122,111,.22)}
.lg-eye{position:absolute;right:10px;top:9px;cursor:pointer;opacity:.55;font-size:16px;user-select:none}
.lg-eye:hover{opacity:1}
.lg-btn{width:100%;height:44px;margin-top:20px;border:0;border-radius:9px;background:linear-gradient(#5b8c80,#3d6a5f);color:#fff;font-size:15px;font-weight:700;letter-spacing:.03em;cursor:pointer;box-shadow:0 3px 8px rgba(47,81,72,.3)}
.lg-btn:hover{background:linear-gradient(#659a8d,#447568)}
.lg-btn:focus{outline:3px solid rgba(240,180,0,.7);outline-offset:2px}
.lg-note{margin-top:14px;padding:8px 10px;background:var(--warn-bg);border-radius:8px;font-size:12px;line-height:1.45;color:#5c4a00}
.lg-foot{margin-top:16px;text-align:center;color:#9aa7a3;font-size:11px;letter-spacing:.05em}
.bye{height:100vh;display:grid;place-items:center;text-align:center;line-height:1.9;color:#2f5148;font-size:16px;background:#f6f4ec}
/* Swift ERP : "Swift" in Monotype Corsiva, "ERP" in Arial capitals */
.sw{white-space:nowrap}
.sw i{font-family:"Monotype Corsiva","Lucida Calligraphy","Segoe Script",cursive;font-style:italic;font-weight:400;font-size:1.45em;line-height:1;color:var(--teal-d);margin-right:.18em}
.sw b{font-family:Arial,Helvetica,sans-serif;font-weight:700;letter-spacing:.08em;color:#b3261e}
#titlebar .sw i{font-size:1.5em;vertical-align:-1px}
.lg-card h2{display:flex;align-items:center;justify-content:center;gap:10px;font-size:22px}
.lg-card h2 .sw i{font-size:1.75em}
.sw-logo{width:44px;height:44px;flex:0 0 auto}
.lg-link{display:block;margin-top:12px;text-align:center;color:var(--teal);font-size:13px;cursor:pointer;text-decoration:underline}
.lg-link:hover,.lg-link:focus{color:var(--teal-d);outline:none;font-weight:600}
.modal>div{max-width:760px}
/* welcome after the login */
#welcome{display:none;position:fixed;inset:0;z-index:180;place-items:center;background:#4d7a6f;text-align:center}
#welcome.on{display:grid;animation:wfade .35s ease-out}
#welcome.out{animation:wout .45s ease-in forwards}
#welcome .wc{background:#fff;border-radius:16px;padding:30px 64px 26px;max-width:90%;box-shadow:0 12px 34px rgba(20,50,42,.28);animation:wup .5s ease-out both}
#welcome .sw{font-size:22px}
#welcome small{display:block;font-size:17px;color:#55665f;margin-top:16px;opacity:0;animation:wup .6s .15s ease-out forwards}
#welcome #wname{display:block;font-family:Arial,Helvetica,sans-serif;font-size:38px;font-weight:700;letter-spacing:.04em;color:var(--teal-d);margin-top:2px;opacity:0;animation:wup .7s .35s ease-out forwards}
#welcome .wl{display:block;height:3px;width:0;margin:14px auto 12px;background:#f0b400;border-radius:2px;animation:wline .9s .6s ease-out forwards}
#welcome #wdate{display:block;font-size:14px;color:#55665f;opacity:0;animation:wup .6s .8s ease-out forwards}
@keyframes wfade{from{opacity:0}to{opacity:1}}
@keyframes wout{to{opacity:0}}
@keyframes wup{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
@keyframes wline{to{width:260px}}
/* profit & loss / balance sheet : two sides */
.two{display:grid;grid-template-columns:1fr 1fr;height:100%}
.two>div{overflow:auto;min-height:0;background:#fff}
.two>div+div{border-left:2px solid var(--teal)}
.vch-g select{font:inherit;padding:0 2px;border:1px solid #9fb2bd;background:#fff}
.vch-g small{display:block;color:var(--blue);font-size:12px}
/* printing a voucher : only the voucher goes to the paper */
#prt{display:none}
.pv{font-family:Arial,Helvetica,sans-serif;color:#000;padding:26px;max-width:720px;margin:auto;font-size:13px}
.pv h2,.pv h3{text-align:center;margin:0 0 4px}
.pv h3{font-weight:400;letter-spacing:.08em;border-bottom:1px solid #000;padding-bottom:8px}
.pv-h{display:flex;justify-content:space-between;margin:14px 0 8px}
.pv table{width:100%;border-collapse:collapse}
.pv th,.pv td{border:1px solid #000;padding:6px 9px;text-align:left;vertical-align:top}
.pv .n,.pv th:nth-child(n+2),.pv tfoot td:nth-child(n+2){text-align:right;width:130px}
.pv tfoot td{font-weight:700}
.pv small{display:block;font-size:11px;margin-top:2px}
.pv-s{display:flex;justify-content:space-between;margin-top:70px;font-size:12px}
@media print{body>*:not(#prt){display:none!important}#prt{display:block}}
.lg-card label.lg-rem{display:flex;align-items:center;gap:7px;margin:14px 0 0;font-weight:400;color:var(--mut);cursor:pointer}
.lg-rem input{width:15px;height:15px;accent-color:var(--teal)}
/* designers : settings on the left, the paper / the report on the right */
.ds{display:grid;grid-template-columns:440px 1fr;height:100%}
.ds-l{overflow:auto;padding:6px 14px 18px;background:var(--sky);border-right:2px solid var(--teal);display:grid;grid-template-columns:170px 1fr;gap:5px 8px;align-content:start;align-items:center}
.ds-l h5{grid-column:1/-1;margin:9px 0 2px;padding:2px 8px;background:var(--teal);color:#fff;font-size:12px;letter-spacing:.05em}
.ds-l h5 small{font-weight:400;opacity:.85;letter-spacing:0}
.ds-l>label{color:var(--blue)}
.ds-l input,.ds-l select,.ds-l textarea{padding:3px 6px;border:1px solid #9fb2bd;background:#fff;font:inherit;min-width:0;width:100%}
.ds-l input[type=checkbox]{width:auto}
.ds-l textarea{grid-column:1/-1;resize:vertical}
.ds-k{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:2px 10px}
.ds-k label{display:flex;gap:6px;align-items:center;cursor:pointer}
#dc{grid-column:1/-1}
.ds-c{width:100%;border-collapse:collapse}
.ds-c td{padding:1px 3px}
.ds-c td:first-child{width:22px}
.ds-c input[data-w]{width:54px}
.ds-c .btn{padding:0 6px;margin-right:2px}
.ds-c .k{color:var(--mut);font-size:11px;white-space:nowrap}
.ds-c tr.off td{color:var(--mut)}
.ds-f{grid-column:1/-1;display:grid;grid-template-columns:1.2fr .9fr 1.2fr;gap:5px}
.ds-r{overflow:auto;background:#8d9794;padding:12px}
.ds-pg{background:#fff;box-shadow:0 3px 14px rgba(0,0,0,.4);transform-origin:top left;padding:8mm;min-height:120mm}
.ds-rp{background:#fff;height:100%;display:grid;grid-template-rows:1fr auto}
.ds-rp #pv{overflow:auto;min-height:0}
.ds-m{padding:6px 10px;background:#e6f0f6;border-top:1px solid var(--sky-d);font-size:12px;color:#1e5a50}
/* the printed bill */
.bp{font-family:Arial,Helvetica,sans-serif;color:#000;line-height:1.35}
.bp-t{text-align:center;font-weight:700;letter-spacing:.12em;border-bottom:1px solid #000;padding-bottom:3px;margin-bottom:5px;font-size:1.15em}
.bp-h{display:flex;justify-content:space-between;gap:16px;border-bottom:1px solid #000;padding-bottom:5px}
.bp-h>div:first-child b{font-size:1.4em;display:block}
.bp-h span,.bp-p span{display:block}
.bp-h img{height:44px;display:block;margin-bottom:3px}
.bp-h table td{padding:0 4px 0 0;white-space:nowrap}
.bp-p{padding:5px 0;border-bottom:1px solid #000}
.bp-p i{font-style:normal}
.bp-i{width:100%;border-collapse:collapse;table-layout:fixed}
.bp-i th{border-bottom:1px solid #000;padding:3px 4px;font-size:.92em}
.bp-i td{padding:2px 4px;overflow:hidden;white-space:nowrap}
.bp-i td.l{white-space:normal}
.bp-i.ln td{border-bottom:1px solid #bbb}
.bp-i .l{text-align:left}.bp-i .r{text-align:right}.bp-i .c{text-align:center}
.bp-i tr.fill td{height:14px;border-bottom:1px solid #000}
.bp-i tr.net td{border-top:1px solid #000}
.bp-f{display:flex;justify-content:space-between;gap:18px;padding-top:6px}
.bp-f>div:first-child{flex:1}
.bp-f p{margin:6px 0 0}
.bp-f p.sm{font-size:.88em}
.bp-x{border-collapse:collapse;font-size:.9em}
.bp-x th,.bp-x td{border:1px solid #000;padding:1px 8px;text-align:right}
.bp-n{border-collapse:collapse;min-width:210px}
.bp-n td{padding:1px 4px}
.bp-n td:last-child{text-align:right}
.bp-n tr.net td{border-top:1px solid #000;border-bottom:1px solid #000;font-weight:700;font-size:1.15em;padding:3px 4px}
.bp-s{text-align:right;margin-top:14px}
.bp-e{text-align:center;border-top:1px solid #000;margin-top:8px;padding-top:3px;font-size:.9em}
.kv2.t6{grid-template-columns:auto 1fr auto;gap:1px 18px}
.kv2.t6 b:last-child{text-align:right}
.modal p.ldp{font-family:inherit;font-size:15px;color:var(--blue);padding:18px 20px}
.ldp input{width:120px;font:inherit;padding:2px 6px;border:1px solid #9fb2bd;margin:0 10px 0 6px}
table.g tr.lc-RED:not(.sel) td{color:#c62828;font-weight:600}
table.g tr.lc-GREEN:not(.sel) td{color:#1b7a3a;font-weight:600}
table.g tr.lc-BLUE:not(.sel) td{color:#1553b5;font-weight:600}
table.g tr.lc-MAGENTA:not(.sel) td{color:#a3158f;font-weight:600}
table.g tr.lc-BROWN:not(.sel) td{color:#7a4a1d;font-weight:600}
table.g tr.lc-ORANGE:not(.sel) td{color:#c96a00;font-weight:600}
/* dashboard on the right (Control Center) : the work area takes what is left, every screen fits itself */
#titlebar,#menubar,#statusbar,#footer{grid-column:1/-1}
#main{grid-column:1;grid-row:3;min-width:0}
#dash{display:none;grid-column:2;grid-row:3;overflow:auto;background:#fff;border-left:1px solid #6d7f7a;font-size:12px}
/* FULL VIEW (owner 05-11) : a report on the whole screen ; the button shows only on a window with a list */
.win-t .fvb{display:none;margin-left:auto;margin-right:8px;border:1px solid rgba(255,255,255,.7);background:transparent;color:#fff;border-radius:3px;padding:1px 10px;font:inherit;font-size:12px;cursor:pointer}
.win.rep .win-t .fvb{display:inline-block}
.win.rep .win-t .fvb~.x{margin-left:0}
.win.rep .win-t .fvb:hover{background:rgba(255,255,255,.15)}
/* SAVED VIEWS : the button beside Full View and the box (Alt+V) */
.win-t .svb{display:none;margin-left:auto;margin-right:6px;border:1px solid rgba(255,255,255,.7);background:transparent;color:#fff;border-radius:3px;padding:1px 10px;font:inherit;font-size:12px;cursor:pointer;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.win.rep .win-t .svb{display:inline-block}
.win.rep .win-t .svb~.fvb{margin-left:0}
.win.rep .win-t .svb:hover{background:rgba(255,255,255,.15)}
.win-t .pvkb{margin-left:auto;margin-right:6px;border:1px solid rgba(255,255,255,.7);background:transparent;color:#fff;border-radius:3px;padding:1px 10px;font:inherit;font-size:12px;cursor:pointer}
.win-t .pvkb:hover{background:rgba(255,255,255,.15)}
.win-t .pvkb~.svb,.win-t .pvkb~.fvb{margin-left:0}
.modal>div.svbox{width:640px}
.sv-cl label.sv-cs{background:#dfeae6;outline:1px solid #2e6b57}
.svbox .sv-g{max-height:180px;overflow:auto;margin:8px 12px;border:1px solid #cfd8d5;outline:none}
.svbox .sv-g:focus{border-color:var(--teal)}
.svbox .sv-0{padding:12px;color:#5b6b67}
.svbox .sv-c{margin:4px 12px}
.svbox .sv-cl{display:flex;flex-wrap:wrap;gap:2px 14px;max-height:96px;overflow:auto;padding:4px 0}
.svbox .sv-cl label{white-space:nowrap}
.svbox .sv-cl .sv-w{margin-left:5px;color:#6b7a76;font-size:12px}
.svbox .sv-cl .sv-w.set{color:#1f6b52;font-weight:600}
.svbox .sv-c #svWR{margin-left:14px}
.svbox .sv-r{display:flex;align-items:center;gap:8px;margin:6px 12px}
.svbox .sv-r>label:first-child{width:70px}
.svbox .sv-e{color:#c62828;min-height:16px;margin:2px 12px}
.svbox .sv-k{color:#5b6b67;font-size:12px;margin:2px 12px 6px}
#app.fullv:has(#main .win.rep) #menubar,#app.fullv:has(#main .win.rep) #footer,#app.fullv:has(#main .win.rep) #dash{display:none!important}
#app.fullv:has(#main .win.rep){grid-template-columns:minmax(0,1fr)!important}
@media (min-width:1000px){
  #app.dash-on:not(.locked){grid-template-columns:minmax(0,1fr) 286px}
  #app.dash-on:not(.locked) #dash{display:block}
}
#dash h5{margin:0;padding:4px 8px;background:var(--teal);color:#fff;font-size:12px;font-weight:600;letter-spacing:.3px}
#dash .ds-n{padding:5px 8px 2px;font-weight:700;color:#1553b5}
/* RECENT (owner 17-11) : the card above TODAY - number, type, name (a new one), the chip (that very one), time ago */
#dash h5.rcx,.rcm h4.rcx{display:flex;align-items:center;gap:6px}
.rcx .k{margin-left:auto;display:flex;gap:3px;align-items:center;font-weight:400;font-size:10px;white-space:nowrap;min-width:0;overflow:hidden}
.rck{padding:0 8px 5px 27px;font-size:10px;color:#8a9a95;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rck b{margin:0 3px;opacity:.6}
.rck kbd{font:600 9px/13px inherit;padding:0 3px;border:1px solid #b8c7c1;border-bottom-width:2px;border-radius:3px;background:#fff;color:#1d2b27}
body.dark .rck{color:#94a3b8}body.dark .rck kbd{background:#1f282e;color:#e3ebe8;border-color:#4a5f58}
.rcx .k b{opacity:.7;margin:0 2px}
.rcx kbd{font:600 9px/13px inherit;padding:0 3px;border:1px solid rgba(255,255,255,.55);border-bottom-width:2px;border-radius:3px;background:rgba(255,255,255,.12);color:#fff}
.rcl{padding:2px 0 4px;font-size:12px}
.rcl .rcr{display:grid;grid-template-columns:14px 50px minmax(0,1fr) auto auto;gap:5px;align-items:center;padding:1px 8px;line-height:17px;cursor:pointer;outline:0}
.rcl .rcr:hover{background:#eef6fb}.rcl .rcr:focus{background:var(--teal);color:#fff}.rcl .rcr:focus span,.rcl .rcr:focus i{color:#fff}
.rcl i{font-style:normal;font-weight:700;color:#2f5148;text-align:center;font-size:11px}
.rcl em{font-style:normal;font-size:9px;font-weight:700;color:#fff;border-radius:3px;text-align:center;line-height:14px}
.rcl b{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rcl .rcc{max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;padding:0 5px;border:1px solid #9fc3b7;border-radius:8px;background:#f0f7f4;color:#1e5245;line-height:15px;text-decoration:none}
.rcl .rcc:hover{background:#d8ece4}
.rcl span{color:#8a9a95;font-size:11px;white-space:nowrap;text-align:right;min-width:34px}.rcl .pin{color:#c2410c;min-width:0}
.rcl .rce{padding:4px 8px;color:#8a9a95}
.modal.rcm>div{width:460px;max-width:calc(100vw - 32px);min-width:0}.rcm h4.rcx{padding:6px 10px}
body.dark .rcl i{color:#cfe0da}body.dark .rcl span{color:#94a3b8}body.dark .rcl .rcr:hover{background:#1f2a32}
body.dark .rcl .rcc{background:#1d2a26;border-color:#3f5c52;color:#cfe8df}
#dash .ds-kv{display:grid;grid-template-columns:auto 1fr;gap:1px 8px;padding:3px 8px 6px;font-family:inherit}
#dash .ds-kv span{color:#455}
#dash .ds-kv b{text-align:right;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#dash .ds-kv b.l{text-align:left}
#dash table{width:100%;border-collapse:collapse;font-family:inherit}
#dash th{background:#e3eeea;font-weight:600;padding:2px 6px;text-align:right}
#dash td{padding:1px 6px;text-align:right}
#dash th:first-child,#dash td:first-child{text-align:left}
#dash .red{color:#c62828}
#dash .ds-m{padding:4px 8px;color:#777}
/* ---------- forms as cards (sample C) : a white card per section, the label above its box, round boxes ---------- */
.win>.body:has(>.mf){background:#f3f6f5}
.mf{padding:12px 16px 18px}
.mf-s{background:#fff;border:1px solid #dfe6e3;border-radius:8px;padding:10px 14px 4px;margin:0 0 10px}
.mf-h{margin:0 0 8px;padding:0;background:none;color:var(--teal-d);font-size:12px;font-weight:600;letter-spacing:.05em}
.mf-r{gap:0 14px;margin:0 0 8px;align-items:end}
.mf-c{flex-direction:column;align-items:stretch;gap:3px}
.mf-c label,.mf1 .mf-c label,.mf3 .mf-c label{flex:0 0 auto;color:#5b6b66;font-size:12px;white-space:normal}
.mf-c label:empty{display:none}
.mf-c i{display:none}
.mf-c input,.mf-c select{flex:0 0 auto;min-height:30px;padding:4px 9px;border:1px solid #cfd8d4;border-radius:6px}
.mf-c small{white-space:normal}
.win input:focus,.win select:focus{outline:none;border-color:#2f7d6b;box-shadow:0 0 0 3px #bfe3d8;background:#f6fcfa}
.btn{border-radius:6px}
.bar input,.bar select,.fhead input,.fhead select,.kv input,.kv select{border-radius:5px;border-color:#b9c7c2}

/* ---------- dark mode (Control Center : Dark mode) ---------- */
body.dark{color-scheme:dark;background:#0f1417;
  --teal:#2f6b5e; --teal-d:#8fd0bf; --teal-l:#3f7f71;
  --cream:#171d21; --cream-d:#232c32; --paper:#1c2429;
  --sky:#1b242a; --sky-d:#33414b;
  --ink:#e4eaed; --mut:#9aa9b0; --line:#38464f;
  --hi:#ffe9a8; --hi-t:#3b2f00;
  --ok:#7fd48a; --ok-bg:#1d3a23; --warn:#e8c95a; --warn-bg:#3b3310; --bad:#ff8f85; --bad-bg:#44201d;
  --blue:#86b6ff}
body.dark #titlebar{background:#12181c;color:#c9d3d8}
body.dark .net.fsb{background:#1c2429;color:#8fd0bf;border-color:#3d5a52}
/* DARK SWITCH (owner 09-11) : beside Ask AI, on / off, the user's own */
.net.dksw{background:#fff;color:#2f5148;border-color:#9bb0a8;display:inline-flex;align-items:center;gap:5px;user-select:none}
.net.dksw i{width:24px;height:12px;border-radius:6px;background:#b9c4c0;position:relative;display:inline-block}
.net.dksw i:after{content:"";position:absolute;left:2px;top:2px;width:8px;height:8px;border-radius:4px;background:#fff}
.net.dksw.on i{background:#2e7d32}
.net.dksw.on i:after{left:14px}
body.dark .net.dksw{background:#1c2429;color:#8fd0bf;border-color:#3d5a52}
body.dark .net.dksw.on i{background:#3f9b6a}
body.dark .mdrop,body.dark .msub,body.dark #findres{background:#1f282e;border-color:#46565f;color:var(--ink)}
body.dark .mi:hover,body.dark .mi.kb,body.dark #findres div.sel,body.dark #findres div:hover{background:#2f6b5e;color:#fff}
body.dark .msep{border-color:#33414b}
body.dark .home .mid{background:#12181c}
body.dark .rbtn{background:#263038;border-color:#46565f;color:var(--ink)}
body.dark .card{background:#1f282e}
body.dark .fbox:not(.last)::after{color:#8fd0bf}
body.dark .win{background:#171d21;border-color:#46565f}
body.dark .bar,body.dark .foot,body.dark .chips,body.dark .ds-m{background:#1f282e;border-color:#33414b}
body.dark .bar label,body.dark .foot .msg{color:#b7c6cc}
body.dark .btn{background:#2a353c;border-color:#4a5a64;color:var(--ink)}
body.dark .btn:hover{background:#34414a}
body.dark .btn.go{background:#2e7d32;border-color:#1e5a22;color:#fff}
body.dark input,body.dark select,body.dark textarea{background:#11171a;color:var(--ink);border-color:#44545e}
body.dark .win input:focus,body.dark .win select:focus{border-color:#5dcaa5;box-shadow:0 0 0 3px #1f4d43;background:#0d1214}
body.dark .mf-c input[readonly]{background:#222b31;color:#9aa9b0}
body.dark table.g,body.dark .pick-g,body.dark .ml-g,body.dark .two>div,body.dark #ln{background:#151b1f!important}
body.dark table.g th{border-right-color:#3d7d6f}
body.dark table.g td{border-bottom-color:#27323a;border-right-color:#222c33}
body.dark table.g tr:hover td{background:#1f2a32}
body.dark table.g tr.grp td{background:#213a35}
body.dark table.g tr.done td{background:#1b3220}
body.dark table.g tr.bad td{background:#3a1f1d}
body.dark table.g tr.warn td{background:#353010}
body.dark table.g tr.nostk:not(.sel) td{color:#73838b}
body.dark table.g tr.lc-RED:not(.sel) td{color:#ff8a80}
body.dark table.g tr.lc-GREEN:not(.sel) td{color:#7fd48a}
body.dark table.g tr.lc-BLUE:not(.sel) td{color:#86b6ff}
body.dark table.g tr.lc-MAGENTA:not(.sel) td{color:#f090e0}
body.dark table.g tr.lc-BROWN:not(.sel) td{color:#d9a878}
body.dark table.g tr.lc-ORANGE:not(.sel) td{color:#ffb155}
body.dark .chip{background:#2a353c;color:var(--ink);border-color:#4a5a64}
body.dark .modal>div{background:#1f282e;border-color:#4a5a64}
body.dark .modal .acts{background:#182025}
body.dark .key{background:#24443c;border-color:#3d7d6f}
body.dark .fhead,body.dark .ftot,body.dark .sbot,body.dark .sbot>div+div,body.dark .pick-f,body.dark .pick-i,body.dark .pinfo>div+div,body.dark .ml-b,body.dark .vch-h,body.dark .vch-n,body.dark .vch-g th{border-color:#38464f}
body.dark .vch-h b,body.dark .vch-n span.t{color:#ff9d94}
body.dark .win>.body:has(>.mf){background:#12181c}
body.dark .mf-s{background:#1c2429;border-color:#33414b}
body.dark .mf-c label{color:#9fb0b7}
body.dark .mf-c input,body.dark .mf-c select{border-color:#44545e}
body.dark #dash{background:#151b1f;border-left-color:#46565f}
body.dark #dash th{background:#213a35}
body.dark #dash .ds-kv span{color:#9aa9b0}
body.dark #dash .ds-n{color:#86b6ff}
body.dark #dash .red{color:#ff8a80}
body.dark .ds-r{background:#0b0f11}
body.dark .ds-pg,body.dark .ds-pg *{color-scheme:light}
body.dark .ds-pg{background:#fff;color:#000}
body.dark .soon h3,body.dark .h-title{color:#8fd0bf}
body.dark .sw b{color:#ff8f85}
@media print{body.dark{background:#fff;color:#000}}
/* a field : label (and its short note) above, the box below */
.mf4 .mf-r{grid-template-columns:repeat(4,minmax(0,1fr))}
.mf-c.sp4{grid-column:span 4}
.mf-c{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"l n" "f f";gap:3px 8px;align-items:end}
.mf-c label{grid-area:l}
.mf-c small{grid-area:n;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mf-c input,.mf-c select{grid-area:f;width:100%;justify-self:start}
.mf1 .mf-c{grid-template-columns:minmax(0,1fr);grid-template-areas:"l" "f" "n"}
.mf1 .mf-c small{text-align:left;white-space:normal}
@media (max-width:1100px){.mf4 .mf-r{grid-template-columns:repeat(2,minmax(0,1fr))}.mf-c.sp4{grid-column:span 2}}
/* product form : the fields of a card run four in a line */
.flow4 .mf-s{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 14px;padding-bottom:12px}
.flow4 .mf-h{grid-column:1/-1;margin:0}
.flow4 .mf-r{display:contents}
.flow4 .mf-r>div:empty{display:none}
.flow4 .mf-c.sp3{grid-column:span 3}
.flow4 .mf-c input,.flow4 .mf-c select{width:100%!important}
@media (max-width:1100px){.flow4 .mf-s{grid-template-columns:repeat(2,minmax(0,1fr))}}
body.dark #findbox input{background:#11171a;border-color:#44545e;color:var(--ink)}
/* >>> CARDS-2 : home columns narrower ; bill entry + voucher entry as cards.  Undo = the files of backup_before_bill_voucher_cards */
.home{grid-template-columns:172px 1fr 176px}
.home .col{padding:6px}
.side-i{padding:2px 6px 2px 12px}
.rbtn{font-size:13px;padding:5px 6px}
.form{background:#f3f6f5;padding:8px 10px 0;gap:8px}
.form>div:first-child{background:#fff;border:1px solid #dfe6e3;border-radius:8px}
.fhead{border-bottom:0;padding:8px 12px}
.fhead.one{grid-auto-flow:column;grid-template-rows:auto auto;gap:3px 12px}
.fhead.one+.fhead.one{padding-top:0}
.fhead label{font-family:inherit;font-size:12px;color:#5b6b66}
.fhead input,.fhead select{min-height:30px;padding:4px 9px;border:1px solid #cfd8d4;border-radius:6px}
.form #ln{border:1px solid #dfe6e3;border-radius:8px}
.sbot{border-top:0;gap:8px;padding-bottom:8px;font-family:inherit;font-variant-numeric:tabular-nums}
.sbot>div{background:#fff;border:1px solid #dfe6e3!important;border-radius:8px;padding:8px 12px}
.sbot>div>div>span:first-child{color:#5b6b66}
.vch{background:#f3f6f5;font-family:inherit;font-size:14px;color:var(--ink);padding:8px 10px;gap:8px;font-variant-numeric:tabular-nums}
.vch-h,.vch-g,.vch-n{background:#fff;border:1px solid #dfe6e3;border-radius:8px}
.vch-h{padding:10px 16px;color:#5b6b66}
.vch-h b{color:#b3261e;font-weight:600}
.vch-g{padding:0 16px}
.vch-g th{color:#5b6b66;border-bottom-color:#dfe6e3;font-size:12px}
.vch-g td.num{color:var(--ink)}
.vch-g small{color:#5b6b66}
.vch-n{padding:8px 16px;color:#5b6b66}
.vch input,.vch select{border:1px solid #cfd8d4;border-radius:6px;padding:3px 8px}
body.dark .form,body.dark .vch{background:#12181c}
body.dark .form>div:first-child,body.dark .sbot>div,body.dark .vch-h,body.dark .vch-g,body.dark .vch-n{background:#1c2429;border-color:#33414b!important}
body.dark .form #ln{border-color:#33414b}
body.dark .fhead label,body.dark .sbot>div>div>span:first-child,body.dark .vch-h,body.dark .vch-n,body.dark .vch-g th,body.dark .vch-g small{color:#9fb0b7}
body.dark .fhead input,body.dark .fhead select,body.dark .vch input,body.dark .vch select{border-color:#44545e}
body.dark .vch-h b{color:#ff9d94}
.form #ln table.g td:first-child{max-width:0;width:34%;overflow:hidden;text-overflow:ellipsis}
/* <<< CARDS-2 */
/* >>> ITEM-COMPACT : the product form takes less room - as many fields in a line as fit, low boxes ; the small window of a master over it */
.flow4 .mf{padding:8px 10px 10px;max-width:none}
.flow4 .mf-s{grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:4px 10px;padding:6px 10px 8px;margin-bottom:6px}
.flow4 .mf-h{font-size:11px}
.flow4 .mf-c{gap:1px 6px}
.flow4 .mf-c label{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.flow4 .mf-c input,.flow4 .mf-c select{min-height:25px;padding:2px 7px}
.flow4 .mf-c small{display:none}
.flow4 .mf-c.sp2,.flow4 .mf-c.sp3{grid-column:span 2}
.mqb>div{width:min(760px,94%);max-width:none}
.mqb .mq{max-height:62vh;overflow:auto;background:#f3f6f5}
body.dark .mqb .mq{background:#12181c}
/* <<< ITEM-COMPACT */
/* two-sided reports (P & L, balance sheet, cash flow) : the bar shows only on the side the cursor is on */
.two>div:not(:focus-within) table.g tr.sel td{background:#fff!important;color:var(--ink)}
.two>div:not(:focus-within) table.g tr.sel.grp td{background:#d7e8e2!important}
body.dark .two>div:not(:focus-within) table.g tr.sel td{background:#151b1f!important}
body.dark .two>div:not(:focus-within) table.g tr.sel.grp td{background:#213a35!important}
/* ledger monthly summary : the list above, the bars of the months below */
.lm{display:grid;grid-template-rows:1fr auto;height:100%}
#lmg{overflow:auto;min-height:0;background:#fff}
#lmc{display:flex;gap:8px;height:118px;padding:8px 16px 4px;border-top:2px solid var(--teal);background:#fff}
.lmb{flex:1;display:grid;grid-template-rows:1fr auto;justify-items:center;min-width:0}
.lmb i{align-self:end;width:70%;max-width:54px;background:var(--teal);border-radius:3px 3px 0 0;min-height:1px}
.lmb i.neg{background:#c62828}
.lmb span{font-size:11px;color:var(--mut);padding-top:2px}
body.dark #lmg,body.dark #lmc{background:#151b1f}
/* ledger : other detail - three groups of three fields in a line, low boxes */
.dense3 .mf{padding:8px 10px;max-width:none}
.dense3 .mf-s{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 18px;padding:7px 10px 3px}
.dense3 .mf-r{gap:0 8px;margin:0 0 5px}
.dense3 .mf-c{gap:1px 6px}
.dense3 .mf-c label{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dense3 .mf-c input,.dense3 .mf-c select{min-height:25px;padding:2px 6px;width:100%!important}
.dense3 .mf-c small{display:none}
@media (max-width:1100px){.dense3 .mf-s{grid-template-columns:minmax(0,1fr)}}
/* a form with fixed places : 12 parts a line (cell option c = parts), compact boxes */
.mf12 .mf-r{grid-template-columns:repeat(12,minmax(0,1fr))}
.mf-c.c1{grid-column:span 1}.mf-c.c2{grid-column:span 2}.mf-c.c3{grid-column:span 3}.mf-c.c4{grid-column:span 4}.mf-c.c5{grid-column:span 5}.mf-c.c6{grid-column:span 6}.mf-c.c8{grid-column:span 8}.mf-c.c12{grid-column:span 12}
.tight .mf{padding:8px 10px 2px;max-width:none}
.tight .mf-s{padding:7px 12px 4px;margin-bottom:7px}
.tight .mf-h{font-size:11px;margin-bottom:5px}
.tight .mf-r{gap:0 10px;margin:0 0 5px}
.tight .mf-c{gap:1px 6px}
.tight .mf-c label{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tight .mf-c input,.tight .mf-c select{min-height:25px;padding:2px 7px;width:100%!important}
.tight .mf-c small{display:none}
@media (max-width:1100px){.mf12 .mf-r{grid-template-columns:repeat(4,minmax(0,1fr))}.mf12 .mf-c{grid-column:span 2!important}}
/* a full master form in the window over an entry (the ledger form from a bill) */
.mqb.wide>div{width:98%;max-height:97%;display:flex;flex-direction:column}
.mqb.wide .mq{max-height:none;flex:1 1 auto;min-height:0;overflow:auto}
/* party history over a bill */
.phb{outline:none}
.phb>div{background:transparent;border:0;box-shadow:none;min-width:0;max-width:none;width:min(1000px,97%);display:grid;grid-template-columns:1.55fr 1fr;gap:12px;align-items:start}
.phb .ph-l,.phb .ph-r{background:#fff;border:1px solid #6d7f7a;border-radius:8px;overflow:hidden;box-shadow:4px 6px 18px rgba(0,0,0,.3)}
.phb h4{margin:0;background:var(--teal);color:#fff;padding:6px 12px;font-size:13px}
.ph-kv{display:grid;grid-template-columns:auto 1fr;gap:3px 12px;padding:10px 14px 12px;font-variant-numeric:tabular-nums}
.ph-kv span{color:#5b6b66;white-space:nowrap}
.ph-kv b{font-weight:600;white-space:pre-wrap}
.ph-t{max-height:300px;overflow:auto}
.ph-r table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.ph-r th{background:#e3eeea;padding:4px 10px;text-align:right;font-weight:600}
.ph-r td{padding:3px 10px;text-align:right}
.ph-r th:first-child,.ph-r td:first-child{text-align:left}
.ph-r tr.red td{color:#c62828;font-weight:600}
.ph-r p{margin:0;padding:6px 12px;border-top:1px solid #dfe6e3;color:#5b6b66;font-size:12px;white-space:pre-wrap}
body.dark .phb .ph-l,body.dark .phb .ph-r{background:#1c2429;border-color:#46565f}
body.dark .ph-kv span,body.dark .ph-r p{color:#9fb0b7}
body.dark .ph-r th{background:#213a35}
body.dark .ph-r tr.red td{color:#ff8a80}
/* a list that opens as a box over the entry (the ledger list of a bill / voucher) : the entry behind goes dim */
.pick.pop{left:10px;right:10px;top:8px!important;bottom:8px;border:1px solid #4f6a62;border-radius:9px;overflow:hidden;box-shadow:0 0 0 3000px rgba(20,30,28,.42),0 12px 34px rgba(0,0,0,.45);z-index:40}
.pick.pop .pick-t{padding:7px 12px;font-size:13px}
.pick.pop .pick-f{padding:7px 12px}
.pick.pop .pick-i:empty:not(.lk){display:none}      /* .lk : the box keeps its height when nothing is found (owner 06-11) */
.ph-n{padding:9px 14px 7px;border-bottom:1px solid #dfe6e3;background:#f3f8f6}
.ph-n b{font-size:15px;color:var(--teal-d)}
.ph-n i{font-style:normal;margin-left:10px;color:#5b6b66;font-size:12px}
.ph-n span{display:block;color:#33423f;margin-top:1px}
body.dark .ph-n{background:#182025;border-color:#33414b}
body.dark .ph-n span{color:#c9d3d8}
/* two-sided reports, detailed : the parts of a group - a little in, slanted ; the last inner amount underlined */
table.g tr.sub td{font-style:italic;border-bottom-color:transparent}
table.g tr.sub td:first-child{padding-left:24px}
table.g td .inl{border-bottom:1px solid currentColor;padding-bottom:1px}
table.g tr.sub.sg td{font-style:normal}
table.g tr.it td{font-style:italic}
/* highlights in the colour of the software (not the blue of the browser) : selected text, the frame of the list the cursor is in, the bar of the menus */
::selection{background:#2f6b5e;color:#fff}
.win div[tabindex]:focus{outline-color:#2f7d6b}
.mi:hover,.mi.kb,#findres div.sel,#findres div:hover{background:#3d6a5f;color:#fff}
body.dark ::selection{background:#5dcaa5;color:#06231c}
table.g tbody tr{scroll-margin-top:var(--gh,30px)}
.addh{color:#7d8a86;font-style:italic}
table.g tr.sel .addh{color:#6b5a14}
/* popup list : a line under its title, and a bigger info part at the bottom */
.pick.pop .pick-t{border-bottom:2px solid #dfece7}
.pick.pop .pick-i{font-size:14px;padding:10px 14px;gap:6px 30px}
.pick.pop .pinfo>div{grid-template-columns:96px 12px 1fr;gap:3px 2px;min-height:138px;padding:0 18px}
/* the three fields of the NEW BATCH window (negative stock) */
.nbf{display:grid;grid-template-columns:90px 190px;gap:8px 10px;align-items:center;margin:4px 0 14px}
.nbf label{font-weight:600;color:#3c4a46}
.nbf input{padding:6px 8px;border:1px solid #9fb2ac;border-radius:6px;font:inherit}
.nbf input:focus{outline:2px solid #2f7d6b;border-color:#2f7d6b}
body.dark .nbf label{color:#cfe0da}
body.dark .nbf input{background:#1d2a27;color:#e8f2ee;border-color:#4a5f58}
/* sale bill : the last deals of the item with this party, under the bill */
.ld:empty{display:none}
.ld{background:#fff;border:1px solid #dfe6e3;border-radius:8px;margin-bottom:8px;overflow:hidden;font-variant-numeric:tabular-nums}
.ld-t{background:#3d6a5f;color:#fff;font-weight:600;font-size:12px;letter-spacing:.04em;padding:3px 12px}
.ld-t span{font-weight:400;letter-spacing:0;margin-left:22px;opacity:.92}
.ld table{width:100%;border-collapse:collapse;font-size:13px}
.ld th{text-align:left;font-weight:600;color:#3c4a46;background:#eef3f1;padding:2px 10px;border-bottom:1px solid #dfe6e3;white-space:nowrap}
.ld td{padding:1px 10px;border-bottom:1px solid #f0f3f2;white-space:nowrap}
.ld .num{text-align:right}
.ld tr:first-child td{font-weight:600;color:#1f5a4b}
.ld-n{padding:6px 12px;color:#6b7773;font-size:13px}
body.dark .ld{background:#1f2b28;border-color:#33414b;color:#dfeae6}
body.dark .ld th{background:#26332f;color:#cfe0da;border-color:#33414b}
body.dark .ld td{border-color:#2a3733}
body.dark .ld tr:first-child td{color:#7fd9bd}
body.dark .ld-n{color:#9fb0ab}
/* >>> BILL-FULL : the entry window of a bill goes down to the end of the screen (the key bar and the company line make room) ; Save line, then the last deals as the last part */
#app:has(.billwin) #footer{display:none}      /* the green bar stays : the keys of the bill (owner 12-11 : 'isi screen me hari patti dikhni chaiye thi full screen me bhi') */
.win-t .wt-r{margin-left:auto;display:flex;gap:18px;align-items:baseline;font-weight:400;font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums}
.win-t .wt-r b{font-weight:600;letter-spacing:.03em}
.win-t .wt-r+.x{margin-left:12px}
.billwin .ld{flex:0 0 auto;height:132px;margin:8px 10px 8px;display:flex;flex-direction:column}
.billwin .ld-b{flex:1;overflow:auto}
.billwin .ld thead th{position:sticky;top:0}
.billwin .ld-n{padding:10px 14px;font-style:italic}
.ld tr.me td{font-weight:600}
.ld td.sn{max-width:260px;overflow:hidden;text-overflow:ellipsis}
/* <<< BILL-FULL */
/* bill entry : the last deals only while a line is under the cursor ; the invoice value at the right end of the Save line */
.billwin .ld:empty{display:none}
/* >>> BILL-TIGHT : room for the items in the bill entry - no menu bar there, the top line in one row (label beside the field), every part a little lower.  Undo = take this block out */
#app:has(.win):not(.menu-peek) #menubar{display:none}      /* every screen but the main one ; Alt + letter / Ctrl+K show it while it is used */
.billwin.win{inset:4px}
.billwin .win-t{padding:3px 10px}
.billwin .form{padding:5px 8px 0;gap:5px}
.billwin .fhead.one{display:flex;flex-wrap:nowrap;align-items:center;gap:6px 8px;padding:5px 10px}
.billwin .fhead.one+.fhead.one{padding-top:0}
.billwin .fhead.one label{flex:0 0 auto;margin-left:10px;font-weight:600}
.billwin .fhead.one label:first-child{margin-left:0}
.billwin .fhead.one input,.billwin .fhead.one select{flex:0 1 118px;width:auto;min-width:60px;min-height:26px;padding:2px 8px}
.billwin .fhead.one #pn{flex:1 1 300px}
.billwin .fhead.one #eno{flex:0 1 150px}
.billwin .fhead.one #rs{flex:0 1 180px}
.billwin .fhead.one #bg{flex:0 1 60px}
.billwin .fhead.one [id^=xf_]{flex:0 1 230px}
.billwin .fhead.one>span{display:none}
.billwin #ln table.g th{padding:4px 7px}
.billwin #ln table.g td{padding:2px 7px}
.billwin #ln table.g td input{height:23px;padding:1px 6px}
.billwin .sbot{gap:5px;padding-bottom:5px}
.billwin .sbot>div{padding:4px 12px}
.billwin .sbot>div>div{line-height:1.32}
.billwin .sbot>div>div>*{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.billwin .foot{padding:4px 10px}
.billwin .foot .btn.go,.billwin .foot .btn.big{padding:5px 18px}
.billwin .ld{height:143px;margin:5px 8px}      /* room for 5 deals ; more of them scroll inside */
.billwin .ld-b{min-height:0}
.billwin .ld-t{padding:2px 12px}
.billwin .ld th{padding:1px 10px}
.billwin .ld td{padding:0 10px;line-height:1.5}
.billwin .ld-n{padding:5px 14px}
/* <<< BILL-TIGHT */
/* ledger list of a bill : the address box is the wide one */
.pinfo.led{grid-template-columns:1.7fr 1fr 1fr}
/* Control Centre : the list of the categories, in the middle of the window */
.ccm{height:100%;display:flex;align-items:flex-start;justify-content:center;padding-top:26px;overflow:auto}
.ccm-b{width:460px;max-width:92%;background:#fff;border:1px solid #6d8a81;border-radius:10px;box-shadow:8px 10px 0 rgba(40,60,54,.22);overflow:hidden;outline:none}
.ccm-t{background:#3d6a5f;color:#fff;font-weight:600;letter-spacing:.06em;padding:7px 16px}
.ccm-i{display:flex;align-items:center;gap:16px;padding:7px 18px;cursor:pointer;font-size:15px;letter-spacing:.04em}
.ccm-i b{width:18px;font-weight:700;color:#2f6b5e}
.ccm-i span{flex:1}
.ccm-i small{font-size:12px;color:#7a8884;letter-spacing:0}
.ccm-i.sel{background:#2b4a42;color:#fff}
.ccm-i.sel b,.ccm-i.sel small{color:#d9efe7}
.ccm-s{display:flex;align-items:center;gap:10px;padding:10px 18px 12px;border-top:1px solid #dfe6e3;background:#f1f6f4}
.ccm-s label{font-weight:600;color:#3c4a46;white-space:nowrap}
.ccm-s input{flex:1;padding:6px 9px;border:1px solid #9fb2ac;border-radius:6px;font:inherit}
.ccm-s input:focus{outline:2px solid #2f7d6b;border-color:#2f7d6b}
body.dark .ccm-b{background:#1f2b28;border-color:#3d5049;box-shadow:8px 10px 0 rgba(0,0,0,.35)}
body.dark .ccm-i{color:#e3efea}
body.dark .ccm-i b{color:#7fd9bd}
body.dark .ccm-i.sel{background:#3d6a5f}
body.dark .ccm-s{background:#25322e;border-color:#33414b}
body.dark .ccm-s label{color:#cfe0da}
body.dark .ccm-s input{background:#1d2a27;color:#e8f2ee;border-color:#4a5f58}
/* the bars keep their own rows also when the menu bar is hidden */
#titlebar{grid-row:1}
#menubar{grid-row:2}
#statusbar{grid-row:4}
#footer{grid-row:5}
/* Control Centre : a narrow window in the middle of the screen, not the full width */
.ccwin.win{left:50%;right:auto;width:640px;max-width:calc(100% - 16px);transform:translateX(-50%)}
.ccwin.ccwin-m.win{width:430px;top:26px;bottom:auto;height:auto}
.ccwin-m .ccm{padding:0;display:block;height:auto}
.ccwin-m .ccm-b{width:100%;max-width:none;border:0;border-radius:0;box-shadow:none}
.ccwin-m .ccm-t{display:none}
.ccwin .foot .msg{font-size:12px}
.ccwin.win{top:18px;bottom:auto;height:auto;max-height:calc(100% - 26px)}
.ccwin .body{overflow:auto}
/* the bill form never grows wider than its window (the one-row top line of a purchase has 6 fields : they shrink instead) */
.billwin .form{grid-template-columns:minmax(0,1fr)}
.billwin .fhead.one input,.billwin .fhead.one select{min-width:44px}
.billwin .fhead.one #pn{flex:1 0.15 320px}
.billwin .fhead.one #dt,.billwin .fhead.one #rd{flex-basis:98px}
.billwin .fhead.one #ty{flex-basis:98px}
.billwin .fhead.one #eno{flex-basis:120px}
.billwin .fhead.one label{margin-left:6px}
/* top line of a bill in one row : date and type keep their width, the name gives way first */
.billwin .fhead.one input,.billwin .fhead.one select{padding:2px 6px}
.billwin .fhead.one #dt,.billwin .fhead.one #rd{flex:0 0 90px}
.billwin .fhead.one #ty{flex:0 0 88px}
.billwin .fhead.one #eno{flex:0 1 112px;min-width:92px}
.billwin .fhead.one #rf{flex:0 1 112px;min-width:84px}
.billwin .fhead.one #pn{flex:1 1 320px;min-width:170px}
/* menu lists : only as wide as their longest line ; little room around the arrow */
.mdrop{min-width:150px}
.msub{min-width:120px}
.mi{padding:4px 9px 4px 14px;gap:14px}
.mi.has>small{margin-right:-1px}
/* Control Centre : the category list slim */
.ccwin.ccwin-m.win{width:292px}
.ccwin-m .ccm-i{padding:4px 12px;gap:12px;font-size:14px;letter-spacing:.02em}
.ccwin-m .ccm-i b{width:14px}
.ccwin-m .ccm-i small{display:none}
.ccwin-m .ccm-s{padding:7px 12px 8px;gap:8px}
.ccwin-m .ccm-s input{min-width:0;padding:4px 7px}
.ccwin-m .foot{padding:4px 10px}
.ccwin-m .win-t small{display:none}
/* party history : right under the top line of the bill, no empty room above it */
.modal.phb{align-items:flex-start;padding-top:72px}
/* GST returns as Tally shows them : the box of the vouchers on top, the tables of the return under it */
.body.gst-b{display:flex;flex-direction:column;overflow:hidden}
.gst-top{flex:0 0 auto;padding:8px 14px;border-bottom:1px solid #cfdcd7;background:#f4f8f6}
.gst-top table{border-collapse:collapse;font-size:13px}
.gst-top td{padding:1px 0}
.gst-top td+td{text-align:right;padding-left:40px;font-weight:600;font-variant-numeric:tabular-nums}
.gst-top tr.in td:first-child{padding-left:22px;color:#4f615b}
.gst-top tr.bad td{color:#b3261e}
.gst-g{flex:1;min-height:0;overflow:auto;outline:none}
.g2s{display:inline-block;min-width:104px;padding:0 8px;border-radius:9px;font-size:12px;font-weight:600;text-align:center}
.g2-OK{background:#dff3e6;color:#1f6b3f}.g2-MIS{background:#fde2df;color:#a3241b}.g2-BOOK{background:#fff0cf;color:#7a5600}.g2-PORTAL{background:#e2e9fb;color:#234a9c}
.g2-LEFT{background:#ececec;color:#4f5753}.g2one table.g th{white-space:normal;line-height:1.15;vertical-align:bottom}tr.g2mk td{background:#fff3c4}tr.g2r-SUMT td{font-weight:700;background:#eef5f2}.win .bar.g2bar{gap:5px;flex-wrap:nowrap}.win .bar.g2bar .btn{padding-left:7px;padding-right:7px}.win .bar.g2bar input{width:88px!important}tr.g2mk td:first-child::before{content:"¹3  ";color:#0a7a3d;font-weight:700}.g2-FWD{background:#ebe4fa;color:#4b2e9c}.g2-STOP{background:#f3e6d9;color:#7a4a1c}
table.g td small{color:#6b7773}
table.g tr.sel .g2s{outline:1px solid var(--hi-t)}
body.dark .gst-top{background:#1f2b28;border-color:#33414b}
body.dark .gst-top tr.in td:first-child{color:#a9bcb5}
.gst-g.g3b table.g td:nth-child(2){white-space:normal;min-width:360px;max-width:560px}
/* Import data from Marg */
.ccwin.mgwin.win{width:820px}
.mg{padding:12px 16px;font-size:13px;line-height:1.45}
.mg-s{margin:8px 0 6px}
.mg-f{display:flex;gap:10px;margin:6px 0 10px}
.mg-f input{flex:1;padding:6px 9px;border:1px solid #9fb2ac;border-radius:6px;font:inherit}
.mg-h{background:#3d6a5f;color:#fff;font-weight:600;padding:4px 10px;border-radius:6px 6px 0 0;font-size:12px}
.mg table{width:100%;border-collapse:collapse;margin-bottom:8px;border:1px solid #dfe6e3}
.mg td{padding:3px 10px;border-bottom:1px solid #eef2f0;vertical-align:top}
.mg td.num{text-align:right;white-space:nowrap}
.mg td:last-child{color:#5b6b66;font-size:12px}
.mg-c{display:grid;gap:6px;margin:4px 0 10px}
.mg-c label{display:block;cursor:pointer}
.mg-c i{color:#8a6d00;font-style:normal;font-size:12px}
.scn-t{margin-left:14px;color:#ffe08a;font-weight:700;letter-spacing:.4px}
.vxm{color:#a3241b;font-weight:700;margin:0 12px;letter-spacing:.5px}.vxm:empty{display:none}.vupw{margin-left:12px}.vupw input{width:100px}#vt2{margin-right:10px;max-width:230px;font:inherit}#vmno{margin-right:10px}
.tlx{display:flex;gap:8px;align-items:center;margin:8px 0 10px}.tlx input{width:110px;padding:5px 8px;border:1px solid #9fb2ac;border-radius:6px;font:inherit}.tlx select{padding:5px;font:inherit}
.tl-bar{height:8px;background:#e3ebe8;border-radius:4px;margin-top:5px;overflow:hidden}.tl-bar i{display:block;height:100%;width:0;background:#3d6a5f}
.tl-tb{border-collapse:collapse;width:100%}.tl-tb td,.tl-tb th{padding:2px 8px;border-bottom:1px solid #e3ebe8;text-align:left}.tl-tb .num{text-align:right}.tl-tb tr.tl-off td{background:#fde2df;color:#a3241b;font-weight:600}
.mg-e{background:#fde2df;color:#a3241b;padding:8px 12px;border-radius:6px;font-weight:600}
.mg-r{border:1px solid #dfe6e3;border-top:0;padding:8px 12px;display:grid;gap:5px}
body.dark .mg table,body.dark .mg td,body.dark .mg-r{border-color:#33414b}
body.dark .mg td:last-child{color:#a9bcb5}
/* bill entry : the line of buttons under the bill */
.bbar{flex-wrap:nowrap;gap:3px}
.bbar .key{cursor:pointer;padding:2px 6px;font-size:11px;letter-spacing:.03em;border-radius:3px;user-select:none}
.bbar .key:hover{background:#3d6a5f}
.bbar .key.nb{opacity:.42}
.bbar .key.sv{background:#8a1f1f;border-color:#d9a3a3}
/* the Save line (owner 28-10) : the party panel on the right makes the bill narrower - the keys go to two rows, the INVOICE VALUE box always in full */
.billwin .foot>*{flex-shrink:0}
.billwin .foot>.bbar{flex-shrink:1;flex-wrap:wrap;min-width:0;row-gap:3px}
.billwin .foot>.msg{flex-shrink:1}
/* the bill lines (owner 28-10 : "ITEM K LIYE JGH BHT KAM HAI") : every other column only as wide as its box, the PRODUCT gets all the rest */
.billwin #ln table.g th:not(:first-child),.billwin #ln table.g td:not(:first-child){width:1%;white-space:nowrap}
.billwin #ln table.g th:first-child,.billwin #ln table.g td:first-child{width:auto}
.billwin #ln table.g th:not(:first-child){padding-left:4px;padding-right:4px}
.billwin #ln table.g td:not(:first-child){padding-left:4px;padding-right:4px}
.billwin .sbot #b2>div:first-child b{color:#1553b5}
/* bill discount in amount, beside Save */
.billwin .foot .msg{min-width:0}
.billwin .foot{gap:7px}
.bbar{gap:2px}
.bbar .key{padding:2px 5px}

/* >>> PUR-TWO : purchase entry - the top fields in two lines (Date + Name / Entry No., Party No., Bill Date, Type) ; room for more fields on the second line.  Undo = take this block out */
.billwin .fhead.one.two{flex-wrap:wrap;gap:4px 10px;padding:7px 14px;height:auto;align-content:flex-start}      /* height : an older class .two (height:100%) has the same name */
.billwin .fhead.one.two .brk{flex:0 0 100%;height:0;margin:0}
.billwin .fhead.one.two label{margin-left:14px}
.billwin .fhead.one.two>label:first-child,.billwin .fhead.one.two>.brk+label{flex:0 0 66px;margin-left:0}
.billwin .fhead.one.two input,.billwin .fhead.one.two select{min-height:28px}
.billwin .fhead.one.two #dt,.billwin .fhead.one.two #rd{flex:0 0 112px}
.billwin .fhead.one.two #eno{flex:0 0 132px}
.billwin .fhead.one.two #rf{flex:0 0 170px}
.billwin .fhead.one.two #ty{flex:0 0 112px}
.billwin .fhead.one.two #pn{flex:1 1 320px}
/* ledger list of a bill : a window that has come up - lower and narrower than the bill ; the bill behind it stays sharp (owner 28-10 : no blur) */
.pick.pop.led{top:38px!important;right:10%;bottom:14px}
/* all ledgers : a ledger with a balance is no longer bold (owner 04-11 : 'jisme balance hai wo bold wala concept bhi nhi chaye') - every line the same, crisp */
.pick .lt-o{color:#8a4b00}body.dark .pick .lt-o{color:#ffc27a}      /* All ledgers : a row of the other side */
.pick.pop.led .pick-i{padding:10px 8px;gap:6px 8px}
.pick.pop.led .pinfo>div{grid-template-columns:70px 10px 1fr;padding:0 10px}
/* item / batch list of a bill : starts under the top fields (party name and all stay in view), no blur ; the details under the list take only the room they need */
.billwin .pick.pop:not(.led){top:max(8px,calc(var(--pt,8px) - 2px))!important;bottom:4px;box-shadow:0 -3px 12px rgba(0,0,0,.28)}      /* no dark veil : the top fields stay readable */
.pick.pop .pick-i{padding-top:5px;padding-bottom:3px}
.pick.pop .pinfo>div{min-height:0;row-gap:1px}
.pick.pop .pick-f{padding-top:5px;padding-bottom:5px}
/* <<< PUR-TWO */

/* >>> FOCUS-HI : the field the cursor stands in is plain to see (every screen) ; the next step of the party history too.  Undo = take this block out */
#app input:not([type=checkbox]):not([type=radio]):focus,#app select:focus,#app textarea:focus{background:#4d7a6f!important;color:#fff!important;caret-color:#fff;border-color:#4d7a6f!important;outline:none!important;outline-offset:0;box-shadow:none!important}      /* TRIAL R (owner 07-11 : 'sample r and p ek ek baar dikhao') : green fill, white letters */
#app input:focus::placeholder,#app textarea:focus::placeholder{color:#d6e6e0}
#app select:focus option{background:#fff;color:#111}      /* owner 06-11-2026 : 'baaki khaane bhi same karo' - as the Find box C : white, side panel green border, light green ring (was yellow / orange) */
.billwin .fhead.one label:has(+input:focus),.billwin .fhead.one label:has(+select:focus){color:#2f6b5e;text-decoration:underline;text-underline-offset:3px}
.ph-go{display:inline-block;margin-left:18px;padding:3px 12px;border-radius:5px;background:#ffd54a;color:#1c1c1c;font-weight:700;letter-spacing:.02em;animation:phgo 1.1s ease-in-out infinite}
@keyframes phgo{50%{background:#ff9f1a}}
.billwin .fhead.one.two:has(#cm) label{margin-left:6px}
.billwin .fhead.one.two:has(#cm)>label:first-child,.billwin .fhead.one.two:has(#cm)>.brk+label{margin-left:0}
.billwin .fhead.one.two:has(#cm) #eno{flex:0 1 112px}
.billwin .fhead.one.two:has(#cm) #rf{flex:0 1 140px}
.billwin .fhead.one.two:has(#cm) #rd{flex:0 0 104px}
.billwin .fhead.one.two:has(#cm) #ty{flex:0 0 100px}
.billwin .fhead.one.two #cm{flex:0 0 100px}
/* <<< FOCUS-HI */

/* >>> EXP-BOX : red box = stopped (batch expired), yellow box = a warning that asks (short expiry) */
.modal.mred>div{border:2px solid #b71c1c;background:#fff0ef;box-shadow:0 0 0 5px rgba(183,28,28,.22),4px 8px 22px rgba(0,0,0,.4)}
.modal.mred h4{background:#c62828;color:#fff;font-size:14px;letter-spacing:.05em}
.modal.mred p{color:#7f1010;font-weight:600}
.modal.myel>div{border:2px solid #d99a00;background:#fffbe3;box-shadow:0 0 0 5px rgba(240,180,0,.25),4px 8px 22px rgba(0,0,0,.4)}
.modal.myel h4{background:#f5bd00;color:#2b2200;font-size:14px;letter-spacing:.05em}
.modal.myel p{color:#4a3a00;font-weight:600}
/* <<< EXP-BOX */

/* >>> EXP-SPLIT : expiry of a purchase line in two boxes (month / year) */
.expc{display:inline-flex;align-items:center;gap:0;white-space:nowrap}
.expc input{width:30px!important;text-align:right;padding-left:1px!important;padding-right:1px!important}
.expc input[data-p=y]{width:38px!important;text-align:left}      /* 16-10 (owner) : '12/27' close together, not '12 / 27' */
.expc i{padding:0 1px}
.expc i{font-style:normal;color:#5b6b66;font-weight:700}
/* <<< EXP-SPLIT */


/* >>> LINE-BOX : the boxes of a line (batch, expiry, qty, rate ...) are seen only while the cursor is IN that line ; a finished line, also under the bar, is plain grid text.  Undo = take this block out */
.billwin #ln table.g tr:not(:focus-within) td input,#bl table.g tr:not(:focus-within) td input{border-color:transparent!important;background:transparent!important;box-shadow:none!important;outline:none!important;color:inherit!important;cursor:default}
.billwin #ln table.g tr:not(:focus-within) td input::placeholder{color:transparent}
.billwin #ln table.g tr:not(:focus-within) .expc input:placeholder-shown+i{visibility:hidden}
.billwin #ln table.g tr:not(:focus-within) .expc i{color:inherit}
/* <<< LINE-BOX */

/* challan to bill : the tick in the list, the small form */
table.g td b.tk{color:#1f7a4d;font-size:15px}
table.g tr.sel td b.tk{color:#1f7a4d}
.nbf.c2b{margin-left:16px}.nbf.c2b select{padding:5px 8px;border:1px solid #9fb2ac;border-radius:6px;font:inherit}

/* challan -> bill : the challan no. on a bill line, the state of a challan in its list */
small.chr{display:inline-block;margin-left:8px;padding:0 6px;border-radius:4px;background:#e3f1ec;color:#1f5a4b;font-size:11px;font-weight:600;letter-spacing:.02em}
tr.sel small.chr{background:#cfeee2;color:#143f35}
b.chs{font-size:12px;letter-spacing:.04em}
b.chs.pending{color:#b45f00} b.chs.part{color:#8a6400} b.chs.billed{color:#1f7a4d}
tr.sel b.chs{color:var(--hi-t)}

/* backup screen */
.bkp{max-width:860px;margin:18px auto;padding:0 18px;font-size:14px}
.bkp h5{margin:18px 0 8px;font-size:13px;letter-spacing:.05em;color:#2b4a42;border-bottom:2px solid #cfe0da;padding-bottom:4px}
.bkp>div{display:flex;align-items:center;gap:12px;padding:4px 0}
.bkp>div>span{flex:0 0 150px;color:#55665f}
.bkp input{padding:6px 9px;border:1px solid #9fb2ac;border-radius:6px;font:inherit}
.bkp p{margin:8px 0;color:#55665f;font-size:13px}
.bkp p.bk-bad{color:#b3261e;font-weight:600;background:#fff0ef;border:1px solid #f0b8b3;border-radius:6px;padding:8px 12px}

/* backup screen : the list to restore from, the restore button */
#bkl{max-height:230px;overflow:auto;border:1px solid #cfdcd7;border-radius:6px;background:#fff;display:block!important;padding:0!important}
.btn.bk-res{background:#fff0ef;border-color:#d9a09a;color:#8a1c14}

/* YEAR-END : New Year Creation */
.yend h5.yr{color:#b3261e;text-align:center;border:0;font-size:15px;letter-spacing:.08em}
.yend h5.yn{color:#8b0000;text-align:center;border:0;font-size:15px;letter-spacing:.08em}
.yend>div>b{min-width:110px}
.yend p.y-ok{color:#1d6b3a;font-weight:600;background:#eefaf1;border:1px solid #b6dfc2;border-radius:6px;padding:8px 12px}
.yq{max-width:520px}
.yq{margin-top:4px}.yq h5{margin:6px 0 2px}.yq>div{padding:0}
.yq>div>span{flex:0 0 230px;font-family:inherit;font-size:14px;color:#1f2d29}
.yq>div>b{min-width:0}
.yq select{width:72px;padding:1px 6px;border:1px solid #9fb2ac;border-radius:5px;font:inherit}
.yq select:disabled{background:#eef1f0;color:#8a9692}
.yq i{font-size:11px;color:#8a9692}

/* ABOUT SWIFT ERP : a hero band with the logo, four cards */
.abt-win .body{overflow:auto;background:linear-gradient(180deg,#eef4f2 0,#e3ece9 100%)}
.abt{max-width:980px;margin:0 auto;padding:18px 22px 10px;font-family:"Segoe UI",Tahoma,Arial,sans-serif;color:#1f2d29}
.abt-hero{display:flex;align-items:center;gap:22px;padding:22px 28px;border-radius:14px;color:#fff;
  background:radial-gradient(circle at 85% 20%,rgba(255,255,255,.16) 0,rgba(255,255,255,0) 40%),linear-gradient(120deg,#2f5148 0%,#4b7a6e 60%,#6f9a8f 100%);box-shadow:0 6px 18px rgba(31,61,54,.25)}
.abt-hero .sw-logo{width:84px;height:84px;flex:0 0 84px;filter:drop-shadow(0 3px 6px rgba(0,0,0,.25))}
.abt-hero .sw-logo path:first-child{fill:#fff;opacity:.16}
.abt-name{font-size:30px;line-height:1.1}
.abt-hero .sw i{color:#fff}
.abt-hero .sw b{color:#ffd9d4}
.abt-tag{margin-top:6px;font-size:13px;letter-spacing:.18em;text-transform:uppercase;opacity:.9}
.abt-ver{margin-top:12px;display:flex;gap:8px;flex-wrap:wrap}
.abt-chip{display:inline-block;padding:3px 11px;border-radius:999px;font-size:12px;font-weight:600;letter-spacing:.03em;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.35)}
.abt-card .abt-chip{background:#e3eeea;border-color:#c3d6cf;color:#2f5148}
.abt-chip.warn{background:#fff3c4;border-color:#e8c76a;color:#7a5800}
.abt-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}
.abt-card{background:#fff;border:1px solid #d3e0db;border-radius:12px;padding:16px 18px 14px;box-shadow:0 2px 6px rgba(31,61,54,.07);border-top:4px solid #4b7a6e}
.abt-k{font-size:11px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:#6b8a81}
.abt-big{margin-top:6px;font-size:19px;font-weight:700;color:#23423a;letter-spacing:.01em}
.abt-sub{margin-top:3px;font-size:13px;color:#55665f;min-height:16px}
.abt-card ul{list-style:none;margin:10px 0 0;padding:0}
.abt-card li{display:flex;align-items:flex-start;gap:9px;padding:4px 0;font-size:13px;border-top:1px dashed #e1e9e6}
.abt-card li:first-child{border-top:0}
.abt-ic{flex:0 0 18px;width:18px;height:18px;margin-top:1px}
.abt-ic svg,.abt-badge svg{width:100%;height:100%;fill:#4b7a6e}
.abt-badge{display:inline-flex;align-items:center;gap:7px;padding:4px 12px 4px 9px;border-radius:8px;font-size:15px}
.abt-badge svg{width:18px;height:18px}
.abt-badge.on{background:#e3f3e3;color:#1d6b3a}.abt-badge.on svg{fill:#1d6b3a}
.abt-badge.off{background:#eef1f0;color:#6b7a75}.abt-badge.off svg{fill:#8a9692}
.abt-badge.soon{background:#fff3c4;color:#7a5800}.abt-badge.soon svg{fill:#a07400}
.abt-foot{margin:16px 0 4px;text-align:center;font-size:12px;color:#7a8a85;letter-spacing:.05em}
body.dark .abt-win .body{background:#17201d}
body.dark .abt{color:#d6e2dd}
body.dark .abt-card{background:#1f2a26;border-color:#2f3d38;border-top-color:#6f9a8f}
body.dark .abt-big{color:#e3eeea}
body.dark .abt-sub,body.dark .abt-card li{color:#a9bab4}
body.dark .abt-card li{border-top-color:#2f3d38}
body.dark .abt-card .abt-chip{background:#2a3833;border-color:#3d4f48;color:#cfe0da}
@media (max-width:820px){.abt-grid{grid-template-columns:1fr}.abt-hero{flex-direction:column;text-align:center}.abt-ver{justify-content:center}}

/* item form : LABEL : field on one line, compact */
.lblf .mf-s{padding:6px 12px 2px}
.lblf .mf-r{margin:0 0 3px;gap:0 14px;align-items:center}
.lblf .mf-c{display:grid;grid-template-columns:132px 8px minmax(0,1fr);grid-template-areas:"l i f";align-items:center;gap:0 4px}
.lblf .mf-c.c2{grid-template-columns:auto 8px minmax(0,1fr)}
.lblf .mf-c label{grid-area:l;font-size:12px;color:var(--blue);letter-spacing:.02em}
.lblf .mf-c label:empty{display:block}
.lblf .mf-c i{display:block;grid-area:i;color:var(--blue)}
.lblf .mf-c input,.lblf .mf-c select{grid-area:f;min-height:23px;padding:1px 7px}
.lblf .mf-c small{display:none}
.lblf .mf{padding:4px 8px 0}.lblf .mf-s{padding:3px 10px 1px;margin-bottom:4px}.lblf .mf-h{margin:0 0 2px}.lblf .mf-r{margin:0 0 2px}.lblf .mf-c input,.lblf .mf-c select{min-height:20px;height:21px;padding:0 6px;font-size:13px}.lblf .mf-c label{font-size:12px}

.lblf .mf-r{margin:0 0 1px}.lblf .mf-c input,.lblf .mf-c select{min-height:19px;height:20px}.lblf .mf-h{font-size:11px;margin:0 0 1px}.lblf .mf-s{padding:2px 10px 1px;margin-bottom:3px}


/* item form : soft colours, firmer letters (owner : 'too white, fonts too thin') */
.lblf{background:#e7eee4}
.lblf .mf-s{background:#f3f7ee;border:1px solid #c5d3bf;border-radius:6px}
.lblf .mf-h{color:#2f5148;font-weight:700;font-size:12px;letter-spacing:.08em}
.lblf .mf-c label{font-size:13px;font-weight:600;color:#24477a;letter-spacing:.01em}
.lblf .mf-c i{font-weight:700;color:#24477a}
.lblf .mf-c input,.lblf .mf-c select{font-size:14px;font-weight:600;color:#1d2b4f;background:#fff;border:1px solid #9fb39a;border-radius:3px;height:22px;min-height:22px}
.lblf .mf-c input[readonly]{background:#e3eadf;color:#4d5a55}
.lblf .mf-c input:focus,.lblf .mf-c select:focus{background:#fffbe2}
body.dark .lblf{background:#151c19}
body.dark .lblf .mf-s{background:#1d2622;border-color:#33433c}
body.dark .lblf .mf-c label,body.dark .lblf .mf-c i{color:#a9c4e6}
body.dark .lblf .mf-c input,body.dark .lblf .mf-c select{background:#222c28;color:#e3eadf;border-color:#41544b}
.lblf .mf-c{grid-template-columns:152px 8px minmax(0,1fr)}.lblf .mf-c.c2{grid-template-columns:auto 8px minmax(0,1fr)}.lblf .mf-c label{white-space:nowrap}
.lblf .mf-c input,.lblf .mf-c select{height:20px;min-height:20px}.lblf .mf-r{margin:0 0 1px}

/* the item form opens as a form : narrower, a gap above and below, the screen behind darkened a little */
.win.pform{inset:24px max(18px, calc((100% - 1060px) / 2)) 24px;border-radius:8px;box-shadow:0 10px 34px rgba(0,0,0,.35),0 0 0 100vmax rgba(30,45,40,.18)}
.mqb.pitem>div{width:min(1060px,96%);max-height:94%}
.win.pform{inset:20px max(18px, calc((100% - 900px) / 2)) 20px}.mqb.pitem>div{width:min(900px,96%)}.pform .lblf .mf-r{margin:0}.pform .lblf .mf-c{grid-template-columns:138px 8px minmax(0,1fr)}.pform .lblf .mf-c.c2{grid-template-columns:auto 8px minmax(0,1fr)}


/* item form in the Swift ERP look (owner : the old green did not match the rest - dull) ; size and LABEL : field kept */
.lblf{background:transparent}
.lblf .mf-s{background:#fff;border:1px solid #dfe6e3;border-radius:8px;padding:5px 14px 3px;margin-bottom:6px}
.lblf .mf-h{color:var(--teal-d);font-weight:600;font-size:12px;letter-spacing:.05em;margin:0 0 3px}
.lblf .mf-c label{color:#5b6b66;font-size:12px;font-weight:600;letter-spacing:0}
.lblf .mf-c i{color:#a3b0ab;font-weight:400}
.lblf .mf-c input,.lblf .mf-c select{border:1px solid #cfd8d4;border-radius:5px;background:#fff;color:var(--ink);font-size:13px;font-weight:500;height:20px;min-height:20px}
.lblf .mf-c input[readonly]{background:#eef2f1;color:#5b6b66}
.lblf .mf-c input:focus,.lblf .mf-c select:focus{background:#f6fcfa}
body.dark .lblf .mf-s{background:#1c2429;border-color:#33414b}
body.dark .lblf .mf-c label{color:#9fb0b7}
body.dark .lblf .mf-c i{color:#5f6f77}
body.dark .lblf .mf-c input,body.dark .lblf .mf-c select{background:#161d21;color:#dfe8ec;border-color:#44545e}
body.dark .lblf .mf-c input[readonly]{background:#222b31;color:#9aa9b0}
.lblf .mf-s{padding:4px 14px 2px;margin-bottom:4px}


/* the item form uses the whole height it gets : the spare space goes between the lines (owner : boxes too close, empty space under NARCOTIC) */
.pform .body.lblf{display:flex;flex-direction:column}
.pform .lblf>.mf{flex:1 0 auto;display:flex;flex-direction:column}
.pform .lblf .mf-s{display:flex;flex-direction:column;justify-content:space-evenly;flex:1 0 auto}
.pform .lblf .mf-s:nth-of-type(1){flex-grow:9}
.pform .lblf .mf-s:nth-of-type(2){flex-grow:13}
.pform .lblf .mf-h{flex:0 0 auto}
.win.pform{bottom:auto;top:max(20px, calc((100% - 660px) / 2));height:min(calc(100% - 40px), 660px)}

/* item form a little lower (owner : smaller from top and bottom) : at most 590 px high, centred */
.win.pform{top:max(20px, calc((100% - 590px) / 2));height:min(calc(100% - 40px), 590px)}

/* item form a little wider (owner : stretch right to left, not much) */
.win.pform{left:max(18px, calc((100% - 980px) / 2));right:max(18px, calc((100% - 980px) / 2))}.mqb.pitem>div{width:min(980px,96%)}

/* item list : starts a little lower (owner : like the item list of a bill, but less) */
.win.plist{top:34px}


/* bill print : UPI QR of the bill */
.bp-q{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;gap:2px;padding:2px 0 0 6px}
.bp-q svg{width:30mm;height:30mm}
.bp-q span{font-weight:700;font-size:.95em}
.bp-q small{font-size:.8em}

/* item form : crisp, as every other Swift window (owner : 'not distinct, hazy, does not look part of the software') -
   no dimmed screen behind, the normal window frame, darker labels and values */
.win.pform{border-radius:0;box-shadow:4px 5px 14px rgba(0,0,0,.28);border:1px solid #6d7f7a}
.pform .lblf .mf-c label{color:#2e3d39;font-weight:600}
.pform .lblf .mf-c i{color:#6b7a75}
.pform .lblf .mf-c input,.pform .lblf .mf-c select{border-color:#aebcb7;color:#13201c;font-weight:600}
.pform .lblf .mf-c input[readonly]{background:#e8eeec;color:#3f4f4a}
.pform .lblf .mf-h{color:#fff;background:var(--teal);margin:-4px -14px 4px;padding:3px 14px;border-radius:7px 7px 0 0;letter-spacing:.06em}
body.dark .pform .lblf .mf-c label{color:#c6d4da}
body.dark .pform .lblf .mf-c input,body.dark .pform .lblf .mf-c select{color:#eef4f6;border-color:#55666f}
/* Sale Order / Purchase Order entry (orders.js) : the item name keeps its room, the company gives way */
.ordwin #ln td:first-child{min-width:300px}
.ordwin #ln td:nth-child(2){max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* item form, less dense (owner 15-10) : the window takes the free room on every side ; taller boxes, more room between lines and columns */
.win.pform{left:max(14px, calc((100% - 1120px) / 2));right:max(14px, calc((100% - 1120px) / 2));top:8px;height:calc(100% - 16px);max-height:720px}
.mqb.pitem>div{width:min(1120px,97%)}
.pform .lblf>.mf{padding:6px 14px 0}
.pform .lblf .mf-s{padding:3px 20px 4px;margin-bottom:6px}
.pform .lblf .mf-h{margin:-3px -20px 4px;padding:3px 20px}
.pform .lblf .mf-r{margin:0 0 2px;gap:0 30px}
.pform .lblf .mf-c{grid-template-columns:142px 10px minmax(0,1fr);gap:0 6px}
.pform .lblf .mf-c.c2{grid-template-columns:auto 10px minmax(0,1fr)}
.pform .lblf .mf-c input,.pform .lblf .mf-c select{height:21px;min-height:21px;padding:0 8px}
/* a master list over a form (company / salt / category / HSN / alternate group) : a small window in the middle, find box at the bottom */
.pick.pop.mini{left:50%!important;right:auto;top:44px!important;bottom:auto;width:min(620px,92%);height:min(440px,calc(100% - 70px));transform:translateX(-50%)}
.pick.pop.mini .pick-t{font-size:12px}
.pick.pop.mini .pick-i{display:none}
/* credit / debit note with Goods (SALEABLE / BRK/EXP) : the second line keeps Type on it (owner 15-10) */
.billwin .fhead.one.two #gs{flex:0 0 116px}
.billwin .fhead.one.two #rs{flex:1 1 140px;min-width:90px}
.billwin .fhead.one.two #ag{flex:0 1 140px;min-width:90px}
.billwin .fhead.one.two:has(#gs) label{margin-left:10px}
.billwin .fhead.one.two:has(#gs)>label:first-child,.billwin .fhead.one.two:has(#gs)>.brk+label{margin-left:0}
/* the lists that open over an entry (ledger / item / batch / master) : the heading keeps its teal colour ; a thin white line parts the title from the
   heading and the heading from the first line, so they do not run into one dark band (owner 15-10) */
.pick .pick-t{border-bottom:2px solid #fff!important}
/* owner 15-10 : the column heading in the colour of the ONLINE box (light green), the line under the bar in the old heading colour (teal) */
.pick table.g th{background:var(--ok-bg);color:#000;border-right:1px solid #b9dcb9;border-bottom:1px solid #9ccc9c;font-weight:700}
.pick table.g tr.sel td{background:var(--hi)!important;color:var(--hi-t)}
body.dark .pick .pick-t{border-bottom-color:#0f1513!important}
body.dark .pick table.g th{color:#fff;border-right-color:#2c5233;border-bottom-color:#3c6b45}
/* BATCH DETAIL WINDOW of a purchase line */
.modal.bdw>div{width:min(980px,96%);max-width:none;padding:0 0 10px}
.modal.bdw h4{margin:0;padding:8px 16px;background:var(--teal);color:#fff;border-radius:8px 8px 0 0}
.bdw-t{display:flex;justify-content:space-between;padding:10px 18px 6px;font-size:16px;border-bottom:1px solid #d5e2dd}
.bdw-g{display:grid;grid-template-columns:110px 1fr 110px 1fr 90px 1fr;gap:6px 10px;padding:10px 18px;align-items:center;border-bottom:1px solid #d5e2dd}
.bdw-g label{color:#5b6b66;font-weight:600;font-size:13px}
.bdw-g span{font-weight:600;font-size:14px}
.bdw-g input{width:100%;box-sizing:border-box;height:26px;padding:0 8px;border:1px solid #b9cbc4;border-radius:5px;font:inherit;font-weight:600}
.bdw-g input:focus{background:#fffbe6;outline:2px solid #e3a008}
.bdw-d{display:flex;gap:6px;align-items:center}.bdw-d input{width:70px}.bdw-d i{font-style:normal}
.bdw-m{width:calc(100% - 36px);margin:10px 18px 4px;border-collapse:collapse;font-size:13px}
.bdw-m th{background:#e2efea;color:#1d4a40;padding:5px 6px;border-bottom:2px solid var(--teal);white-space:nowrap}
.bdw-m td{padding:5px 6px;border-bottom:1px solid #e3ebe8}
.modal.bdw .acts{padding:6px 18px 0}
body.dark .bdw-t,body.dark .bdw-g{border-color:#33463f}
body.dark .bdw-m th{background:#24332f;color:#bfe0d6}
/* bill entry lines (owner 15-10) : as the lists over an entry - the heading light green (the ONLINE box) with black letters, the bar line teal ; bigger letters, a taller heading */
.billwin #ln table.g{font-size:var(--lf)}      /* TRIAL 06-11-2026 (owner : 'is me jo item hai wo bhi same size kro and bold hatao') : the lines as the lists (13 px), no bold */
.billwin #ln table.g td b{font-weight:400}
.billwin #ln table.g th{background:var(--ok-bg);color:#000;border-right:1px solid #b9dcb9;border-bottom:1px solid #9ccc9c;font-weight:700;padding:8px 8px;font-size:14px;letter-spacing:.02em}
body.dark .billwin #ln table.g th{color:#fff;border-right-color:#2c5233;border-bottom-color:#3c6b45}
.billwin #ln table.g tr.sel td{background:var(--teal)!important;color:#fff}
.billwin #ln table.g td{padding:0 8px}      /* 10 whole lines in view (owner 16-10) : the line height comes from fitLines() */
.billwin #ln table.g tbody tr{height:var(--lnh,25px)}
.billwin #ln table.g td input{height:22px;padding:0 6px;font-size:var(--lf)}
.billwin #ln .addh{font-size:var(--lf);font-weight:400}
/* WANT'S TO CHECK before saving a bill + its check boxes : the figures in columns */
.modal.mwant .acts{flex-wrap:wrap;justify-content:flex-start;gap:8px}
.modal.mwant .acts .btn{min-width:110px}
/* THE VOUCHER window : Tally's layout, our colours (owner 02-11) */
.modal.vchm>div{width:min(1200px,96%);max-width:none;height:90%;display:flex;flex-direction:column;background:var(--paper);font-family:Arial,Helvetica,sans-serif}
.modal.vchm h4{display:flex;justify-content:space-between;gap:16px;font-size:13px;white-space:pre-wrap}.modal.vchm h4 em{font-style:normal}
.vchb{flex:1;min-height:0;display:flex;flex-direction:column;color:#16211f;font-size:14px}
.vh{display:grid;grid-template-columns:auto 1fr auto;column-gap:10px;align-items:start;padding:6px 8px 8px;border-bottom:2px solid #2f5148}
.vty{background:var(--teal);color:#fff;font-weight:700;padding:1px 30px}.vdt{grid-row:1 / span 2;grid-column:3;display:flex;flex-direction:column;align-items:flex-end}.vdt b{background:#2f5148;color:#fff;padding:1px 6px}.vdt small{font-size:14px}
.vh2{grid-column:1 / span 2}
.vl{display:grid;grid-template-columns:30px minmax(0,1fr) 150px 150px;column-gap:6px;padding:1px 8px}.vl b{font-weight:700}.vn{text-align:right;font-weight:700}
.vth{font-weight:700;border-bottom:1px solid #2f5148;padding:3px 8px}.vth>span:nth-child(2){padding-left:18px}
.vls{flex:1;min-height:0;overflow:auto;padding:10px 0}.vb{grid-column:2;font-size:13px;padding-left:22px}.vb b{font-style:italic}.vnone{padding:14px;color:#5c6b68}
.vft{display:grid;grid-template-columns:minmax(0,1fr) 150px 150px;column-gap:6px;padding:4px 8px 8px;align-items:start}.vnr{font-size:13px}.vnr small{display:block;color:#5c6b68;margin-top:3px}.vnr pre{margin:3px 0 0;font:inherit;white-space:pre-wrap}
.vt{border-top:1px solid #2f5148;border-bottom:3px double #2f5148;padding:2px 0}.vbad{color:#b3261e;font-weight:700;padding:0 8px 6px}
body.dark .vchb{color:#dfeae6}body.dark .modal.vchm>div{background:#171d21}
/* the entry of Receipt, Payment, Contra, Journal : the look of the voucher window (owner 02-11) */
.vch.vcht{background:var(--paper);font-family:Arial,Helvetica,sans-serif;font-size:14px;color:#16211f;padding:0;gap:0}
.vcht .vch-h,.vcht .vch-g,.vcht .vch-n{background:transparent;border:0;border-radius:0}
.vcht .vch-h{display:grid;grid-template-columns:auto 1fr auto;column-gap:10px;align-items:start;padding:6px 8px 8px;border-bottom:2px solid #2f5148;color:inherit}
.vcht .vch-h b{color:inherit;font-weight:700}.vcht .vnoh select{font:inherit;height:22px;padding:0 3px;margin-left:6px}
.vcht .vdte{display:flex;flex-direction:column;align-items:flex-end}.vcht .vdte input{width:108px;text-align:center;font:inherit;font-weight:700;padding:1px 4px;border-radius:0;background:#2f5148!important;color:#fff!important;-webkit-text-fill-color:#fff;opacity:1;border:1px solid #2f5148}.vcht .vdte input:focus{background:#fff8d6!important;color:#16211f!important;-webkit-text-fill-color:#16211f}.vcht .vdte small{font-size:14px}
.vcht .vch-g{padding:0}.vcht .vch-g table{table-layout:fixed}
.vcht .vch-g th{color:inherit;font-size:14px;font-weight:700;padding:3px 8px;border-bottom:1px solid #2f5148;background:var(--paper);position:sticky;top:0;z-index:1}
.vcht .vch-g th:nth-child(1){width:52px}.vcht .vch-g th:nth-child(3),.vcht .vch-g th:nth-child(4){width:150px;text-align:right}
.vcht .vch-g td{padding:2px 8px;vertical-align:top}.vcht .vch-g tbody tr:first-child td{padding-top:10px}.vcht .vch-g td b{font-weight:700}
.vcht .vch-g td.num input{width:128px;font-weight:700;padding:1px 4px;border-radius:0}.vcht .vch-g select{width:44px;height:22px;padding:0;border-radius:0}
.vcht .vch-g small{font-size:12px;color:#5c6b68}.vcht .vb{display:block;font-size:13px;padding-left:22px}
.vcht .vch-n{grid-template-columns:minmax(0,1fr) 150px 150px;column-gap:6px;padding:4px 8px 8px;align-items:start;color:inherit}
.vcht .vnw{display:flex;flex-direction:column;gap:2px;font-size:13px}.vcht .vnw input{width:min(620px,100%);border-radius:0}
.vcht .vch-n span.t{color:inherit;font-weight:700;border-top:1px solid #2f5148;border-bottom:3px double #2f5148;padding:2px 8px 2px 0;align-self:start}
body.dark .vch.vcht{background:#171d21;color:#dfeae6}body.dark .vcht .vch-g th{background:#171d21}
body.dark .vcht input,body.dark .vcht select{background:#141c18!important;color:#dfeae6!important;-webkit-text-fill-color:#dfeae6;border-color:#44545e}
body.dark .vcht .vch-h b,body.dark .vcht .vch-n span.t{color:#dfeae6}body.dark .vcht .vch-g td,body.dark .vcht .vch-g th,body.dark .vcht .vch-h,body.dark .vcht .vch-n{color:#dfeae6}body.dark .vcht .vch-g small,body.dark .vcht .vnw{color:#a9b8b3}
/* a note against a bill ; a note adjusted in a bill (owner 02-11) */
.cnbh{display:flex;flex-wrap:wrap;gap:26px;padding:3px 12px;background:#eef6f0;border:1px solid #cfdcd7;margin-top:4px;font-size:13px}
.modal.cnm>div{min-width:680px}.cnl{width:calc(100% - 20px);margin:10px;border-collapse:collapse;font-size:13px}.cnl th{background:#dcebd9;text-align:left;padding:5px 8px}.cnl td{padding:5px 8px;border-bottom:1px solid #d7e0dc}.cnl .num{text-align:right}.modal p.sm.cnh{padding:4px 12px 8px;font-size:12px;color:#5c6b68;white-space:normal}
.billwin .sbot #b3>.t3.cnr{color:#a9651a;font-weight:600}.bband .biv .fxn{display:block;font-size:12px;font-weight:700;margin-top:3px;white-space:nowrap;line-height:1.2;color:#fff}.bband .biv .cnn{display:block;font-size:12px;font-weight:700;letter-spacing:0;margin-top:3px;white-space:nowrap;line-height:1.2;color:#fff}
.bp-cnh{margin:6px 0 2px;font-size:.92em}.bp-cn td,.bp-cn th{border:1px solid #999;padding:1px 4px}.bp-cn .r{text-align:right}
body.dark .cnbh{background:#1c2a26;border-color:#33414b}body.dark .cnl th{background:#1f3029;color:#dfeae6}
.modal.mmono>div{max-width:min(980px,96%)}
.modal.mmono p{font-family:Consolas,"Courier New",monospace;font-size:13px;white-space:pre;overflow:auto;max-height:60vh;text-align:left}
/* the empty room under the lines of a bill : a very light green, lighter than the ONLINE box (owner 16-10) */
.billwin #ln{background:#f4fbf4!important}
body.dark .billwin #ln{background:#141c18!important}
/* Bill Disc. % box beside Save : as small as the Rs box, the invoice value stays on the screen */
/* both bill discount boxes : the Save line still holds the invoice value */
/* typing a bill line (owner 16-10) : no teal bar on the line - only the box under the cursor : teal border + yellow ;
   the full teal bar stays for moving up / down the lines once an item is complete */
.billwin #ln table.g tr.sel:focus-within td{background:transparent!important;color:var(--ink)!important}
.billwin #ln table.g tr:focus-within td input:not(:focus){background:transparent!important;border-color:transparent!important;box-shadow:none!important;outline:none!important}
.billwin #ln table.g tr:focus-within td input:focus{background:#4d7a6f!important;color:#fff!important;caret-color:#fff;border:1px solid #4d7a6f!important;border-radius:6px!important;outline:none!important;outline-offset:0;box-shadow:none!important}      /* as the Name box of the head (owner 16-10) */
/* the bill head : the party name bold (owner 16-10) ; the size as before */
.billwin .fhead.one.two #pn{font-weight:700}
/* VIEW of a saved entry (opened from a book / ledger) : a bar below : Next / Modify / Print / Delete / Exit / Previous */
.win>.vbar{flex:0 0 auto;display:flex;align-items:center;gap:6px;padding:6px 10px;background:#e8f1ee;border-top:2px solid #2f7d6b}
.win>.vbar .vb-t{font-weight:700;color:#fff;background:#2f7d6b;border-radius:4px;padding:3px 10px;letter-spacing:.08em;margin-right:6px}
.win>.vbar .btn{min-width:92px;font-size:14px}
.win>.vbar .btn u{text-decoration:underline;text-underline-offset:2px;font-weight:700}
.win>.vbar .btn:focus{outline:2px solid #f0b400;outline-offset:1px}
.win>.vbar .vb-n{margin-left:auto;color:#5b6b70;font-size:13px;font-style:italic}
.win.viewmode .body input,.win.viewmode .body select{background:#f4f6f5 !important;cursor:default}
.win.viewmode .body .vcht .vdte input{background:#2f5148!important}body.dark .win.viewmode .body .vcht input,body.dark .win.viewmode .body .vcht select{background:#141c18!important}
body.dark .win>.vbar{background:#1d2a27;border-color:#3f9c86}
/* Filtered Stock / Batch Stock : the box, the tick list, the info line under the list */
.fsbox{max-width:430px;margin:40px auto;background:#fff;border:1px solid #9fb8b0;border-radius:6px;box-shadow:0 4px 14px rgba(0,0,0,.15);padding:14px 18px;display:grid;grid-template-columns:170px 1fr;gap:9px 12px;align-items:center}
.fsbox .fs-t{grid-column:1/-1;font-weight:700;color:#fff;background:#2f7d6b;margin:-14px -18px 6px;padding:8px 14px;border-radius:6px 6px 0 0;letter-spacing:.06em}
.fsbox label{font-weight:600;color:#33504a}
.fsbox input,.fsbox select{font-size:14px;padding:4px 6px;width:150px}
.fsbox .fs-b{grid-column:1/-1;display:flex;gap:10px;justify-content:center;margin-top:8px}
.cklist{background:#fff;border-radius:6px;width:440px;max-height:78vh;display:flex;flex-direction:column;padding:12px;box-shadow:0 6px 24px rgba(0,0,0,.3)}
.cklist h4{margin:-12px -12px 8px;color:#fff;background:#2f7d6b;padding:8px 12px;border-radius:6px 6px 0 0}
.cklist input{padding:5px 7px;margin-bottom:6px}
.cklist .ck-l{flex:1 1 auto;overflow:auto;border:1px solid #cfdcd8;min-height:200px;font-family:inherit;font-size:14px}
.cklist .ck-l div{padding:2px 8px;cursor:pointer;white-space:nowrap}
.cklist .ck-l div.sel{background:#2f7d6b;color:#fff}
.cklist .ck-k{font-size:12px;color:#5b6b70;margin-top:6px}
.win>.fs-inf{flex:0 0 auto;display:flex;flex-wrap:wrap;gap:4px 18px;padding:5px 10px;background:#f1f6f4;border-top:1px solid #cfdcd8;font-size:13px}
.win>.fs-inf i{font-style:normal;color:#5b6b70;margin-right:6px}
body.dark .fsbox,body.dark .cklist{background:#1d2428;color:#dde}

/* >>> MOD-DETAIL (16-10) : a Modify list - the entry under the bar : party + amounts below the list ; CENTRAL entries coloured */
.modw{display:flex;flex-direction:column;overflow:hidden!important;padding:0!important}
.modw>.mod-g{flex:1 1 auto;min-height:0;overflow:auto}
.modw>.mod-g.chg table.g td:nth-child(4),.modw>.mod-g.blg table.g td:nth-child(3){width:100%;max-width:0;overflow:hidden;text-overflow:ellipsis}
.modw>.mod-g.blg table.g td:nth-child(4){max-width:150px;overflow:hidden;text-overflow:ellipsis}
.crp table.g td:nth-child(4),.crp table.g td:nth-child(5),.crp2 table.g td:nth-child(5),.crp2 table.g td:nth-child(6){width:50%;max-width:0;overflow:hidden;text-overflow:ellipsis}
.modw>.mod-d{flex:0 0 168px;display:grid;grid-template-columns:1fr 1fr;border-top:2px solid var(--teal);background:#f7faf9;font-size:13px;overflow:hidden}
.modw>.mod-d>div{padding:6px 14px;line-height:1.5;min-width:0;overflow:auto}
.modw>.mod-d>#md2{overflow:hidden}
.modw>.mod-d>div+div{border-left:1px solid #cfdcd7}
.modw .md-n{font-weight:700;color:#14463a}
.md-kv{display:grid;grid-template-columns:auto 1fr;gap:0 10px;margin-top:2px}
.md-kv.two{grid-template-columns:auto 1fr auto 1fr;gap:1px 12px}
.md-kv span{color:#5b6b66}
.md-kv b{font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.md-kv b.big{color:#14463a;font-size:14px}
table.g tr.ctr:not(.sel) td{background:#eef6fb}
b.ctr-t{color:#1d5fa8;font-weight:700}
table.g tr.sel b.ctr-t{color:inherit}
.billwin #ty.ctr{background:#eef6fb;color:#1d5fa8;font-weight:700;border-color:#9cc3e6}
#dash td.it{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}
body.dark .modw>.mod-d{background:#1c2429;border-color:#33414b}
body.dark .modw .md-n,body.dark .md-kv b.big{color:#8fe0c6}
body.dark table.g tr.ctr:not(.sel) td{background:#1f2a32}
/* <<< MOD-DETAIL */

/* >>> SBOT-HL (16-10) : M.R.P. and GST% in the box under the bill lines - bold and marked, seen even without their columns */
.sbot b.hl{font-size:13px;background:#fff3bf;color:#5a3d00;padding:0 5px;border-radius:3px}
body.dark .sbot b.hl{background:#4a3d10;color:#ffe08a}
/* <<< SBOT-HL */

/* >>> MOD-DETAIL-2 (17-10) : the item table of the dashboard stays inside it (it ran out to the right) ; B2B / CASH marks */
#dash{overflow-x:hidden}
#dash table.ds-it{table-layout:fixed;width:100%}
#dash table.ds-it th:nth-child(2),#dash table.ds-it td:nth-child(2){width:66px}
#dash table.ds-it th:nth-child(3),#dash table.ds-it td:nth-child(3){width:80px;text-align:right}
#dash table.ds-it td{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#dash table.ds-ch th:nth-child(n+2),#dash table.ds-ch td:nth-child(n+2){width:46px;text-align:right}
#dash table.ds-ch th:nth-child(5),#dash table.ds-ch td:nth-child(5){width:60px}
#dash table.ds-it td.it{max-width:none}
b.b2b{color:#6a3fb0;font-weight:700}
b.cash{color:#c0392b;font-weight:700}
table.g tr.sel b.b2b,table.g tr.sel b.cash{color:inherit}
body.dark b.b2b{color:#c4a8ff}
body.dark b.cash{color:#ff8a7a}
/* <<< MOD-DETAIL-2 */

/* >>> LEDGER-MARK-PRINT (17-10) : a marked entry of a ledger is pink ; the print options box ; the ledger paper (as Tally's ledger account) */
table.g tr.mk:not(.sel) td{background:#ffd9e8}
table.g tr.mk.sel td{background:#b8336a!important;color:#fff}
body.dark table.g tr.mk:not(.sel) td{background:#5a2740}
.lpm .lpbox{background:#fff;min-width:520px;border-radius:8px;overflow:hidden}
.lpm h4{margin:0;padding:8px 14px;background:var(--teal);color:#fff;font-size:14px}
.lpf{display:grid;grid-template-columns:auto 1fr;gap:5px 12px;padding:12px 16px;align-items:center}
.lpf label{color:#3d5550;font-size:13px}
.lpf input,.lpf select{padding:3px 6px;border:1px solid #b9c7c2;border-radius:5px;font:inherit;max-width:240px}
.lpm .acts{padding:8px 16px;display:flex;gap:8px;justify-content:flex-end;border-top:1px solid #dfe6e3}
.lp-n{padding:0 16px 10px;font-size:12px;color:#6b7b76}
.lpv>div{background:#fff;width:min(96vw,900px);max-height:94vh;display:flex;flex-direction:column;border-radius:8px;overflow:hidden}
.lpv h4{margin:0;padding:8px 14px;background:var(--teal);color:#fff}
.lpv-p{flex:1;overflow:auto;padding:18px 26px;background:#fff;color:#000}
.lpv .acts{padding:8px 14px;display:flex;gap:8px;justify-content:flex-end;border-top:1px solid #dfe6e3}
.lpr{font:10.5pt Arial,Helvetica,sans-serif;color:#000}
.lpr.small{font-size:8.5pt}
.lpr-h{text-align:center;margin-bottom:8px;line-height:1.35}
.lpr-h .co{font-size:1.35em}
.lpr-h .ln{font-weight:700;font-size:1.15em;margin-top:6px}
.lpr-h .lt{font-style:italic}
.lpr-h .pd{margin-top:4px;font-weight:600}
.lpr table{width:100%;border-collapse:collapse}
.lpr thead th{border-top:1px solid #000;border-bottom:1px solid #000;padding:3px 4px;text-align:left;font-weight:700}
.lpr th.n,.lpr td.n{text-align:right;white-space:nowrap}
.lpr td{padding:2px 4px;vertical-align:top}
.lpr td.d,.lpr td.t{white-space:nowrap}
.lpr th.d{width:62px}
.lpr tr.s td{padding-top:0;font-size:.88em;color:#222}
.lpr tr.s .it{font-weight:600}
.lpr td.r{text-align:right;white-space:nowrap}
.lpr tbody.ft tr.ct td.n{border-top:1px solid #000}
.lpr tbody.ft tr.gt td.n{border-top:1px solid #000;border-bottom:3px double #000}
.lpr tr.e{break-inside:avoid}
.lpr-m{margin-top:6px;font-style:italic;font-size:.9em}
.lpr-o{margin-top:14px;break-inside:avoid}
.lpr-o table{width:auto;min-width:50%}
.lpr-o th,.lpr-o td{padding:2px 10px 2px 0}
.lpr-f{margin-top:10px;font-size:.8em;color:#444}
/* <<< LEDGER-MARK-PRINT */
.ledg table.g td:nth-child(2){max-width:520px;overflow:hidden;text-overflow:ellipsis}
/* ledger reconcile (owner 28-10) : a hidden line shown grey ; the totals under the Debit / Credit / Balance columns, bold */
.ledg table.g tr.hid td{color:#9aa6a2!important;font-style:italic}
.win>.ldtot{flex:0 0 auto;overflow:hidden;border-top:2px solid var(--teal);background:#eef6f2}
.ldtot table{table-layout:fixed;border-collapse:collapse;font-weight:700;font-size:14px}
.ldtot td{padding:2px 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ldtot td.num{text-align:right}
.ldtot td:nth-child(2){overflow:visible}      /* the label + the yellow modes may run over the empty Vch Type / No. cells */
.ldtot td small{font-weight:600;color:#8a5a00;margin-left:10px}
.ldtot tr.cl td{border-top:1px solid #9cbcb1;color:#0f3f33}
body.dark .win>.ldtot{background:#16201d}
body.dark .ldtot tr.cl td{color:#8fe0c6}
.win .bar .lhb{padding-left:9px;padding-right:9px}
.win .bar #lhm{max-width:92px}
.ledg table.g th:nth-child(n+5){min-width:120px}      /* Debit / Credit / Balance : room for the bold totals under them */
.ledg table.g td:nth-child(2){max-width:400px}      /* with the wider amounts the whole ledger still fits a 1366 screen */
.win:has(>.ledg)>.bar{gap:5px;flex-wrap:nowrap}      /* one row : a long ledger name gets shorter (...) instead */
.win:has(>.ledg)>.bar .btn{padding-left:7px;padding-right:7px;white-space:nowrap;flex-shrink:0}
.win:has(>.ledg)>.bar select{flex-shrink:0}
.win:has(>.ledg)>.bar>b{max-width:230px;min-width:60px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.win:has(>.ledg)>.bar>label{white-space:nowrap;flex-shrink:0}
.win:has(>.ledg)>.bar #lsh{max-width:96px}
.win .bar #lhm{max-width:84px}
.ldtot .lhmode{margin-left:10px;background:#ffe27a;color:#5a3d00;border:1px solid #d9a400;border-radius:4px;padding:0 6px;font-weight:700;font-size:11px;cursor:pointer;white-space:nowrap}      /* ledger : a long particulars line does not push Debit / Credit / Balance out of the screen */
.btg table.g td:nth-child(4){max-width:280px;overflow:hidden;text-overflow:ellipsis}      /* batch trace : party / station / phone give way, the In / Out / Stock columns stay on the screen */
.btg table.g td:nth-child(5),.btg table.g td:nth-child(6){max-width:130px;overflow:hidden;text-overflow:ellipsis}
.lpr .nw{white-space:nowrap}

/* >>> AUDIT (17-10) : the audit trail - NEW / MODIFY / DELETE and the old / new values */
b.au-new{color:#1f7a4d}
b.au-modify{color:#a15c00}
b.au-delete{color:#c0392b}
table.g tr.sel b.au-new,table.g tr.sel b.au-modify,table.g tr.sel b.au-delete{color:inherit}
.au-h{margin-bottom:8px;font-weight:600;color:#3d5550}
.au-t{width:100%;border-collapse:collapse;font-size:13px}
.au-t th{background:#eef3f1;text-align:left;padding:4px 8px;border-bottom:1px solid #cfdcd7}
.au-t td{padding:4px 8px;border-bottom:1px solid #e5ece9;vertical-align:top;word-break:break-word}
.au-t td.o{color:#b03a2e;background:#fff4f2}
.au-t td.n2{color:#1f6b45;background:#f1fbf5}
/* <<< AUDIT */
b.ex-0{color:#c0392b}
b.ex-1{color:#b9770e}
b.ex-3{color:#1d5fa8}
table.g tr.sel b.ex-0,table.g tr.sel b.ex-1,table.g tr.sel b.ex-3{color:inherit}
.nxg table.g td:nth-child(2){max-width:250px;overflow:hidden;text-overflow:ellipsis}      /* near expiry : item / company / supplier give way, the numbers stay on the screen */
.nxg table.g td:nth-child(4),.nxg table.g td:nth-child(11){max-width:170px;overflow:hidden;text-overflow:ellipsis}
.rog table.g td:nth-child(2){max-width:200px;overflow:hidden;text-overflow:ellipsis}      /* reorder planning : names give way to the numbers */
.rog table.g td:nth-child(4),.rog table.g td:nth-child(14),.rog table.g td:nth-child(15){max-width:115px;overflow:hidden;text-overflow:ellipsis}
.rc-lo{color:#1e8449;font-weight:700}.rc-hi{color:#b3261e;font-weight:700}table.g tr.sel .rc-lo{color:#1e8449}table.g tr.sel .rc-hi{color:#b3261e}body.dark .rc-lo{color:#7ddf98}body.dark .rc-hi{color:#ff8f85}      /* RATE COMPARISON : cheapest / costliest */
.srm>div{width:min(980px,96vw)!important;max-width:96vw!important}.srm .ph-t td{white-space:nowrap}.srm .ph-t td:first-child{max-width:300px;overflow:hidden;text-overflow:ellipsis}.srm .au-h{white-space:pre-wrap}      /* the purchase order's F7 : suppliers' rates */
.ibw{display:flex;flex-direction:column}.ib-c{flex:0 0 auto;max-height:46%;overflow:auto;border-bottom:2px solid #9fb3c8;background:#f6f9fc}.ib-l{flex:1 1 auto;min-height:0;overflow:auto}
.ib-ch{padding:6px 8px;font-size:12px}.ib-ch .btn{margin-left:8px}.ib-ct{overflow:auto}.ib-t{border-collapse:collapse;font-size:12px}.ib-t td,.ib-t th{border:1px solid #d5dde6;padding:2px 5px;white-space:nowrap;max-width:220px;overflow:hidden;text-overflow:ellipsis}
.ib-t select{font-size:11px;max-width:110px}.ib-t tr[data-r]{cursor:pointer}.ib-t tr.ib-hr td{background:#fff3bf;font-weight:700}.ib-fn{font-size:12px;color:#456;margin:0 8px;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ib-cd{color:#678;font-size:11px}.ib-h{font-size:11px;font-weight:700;color:#8a6d00}.ib-h.ok{color:#1e8449}.ib-l table.g td:nth-child(2),.ib-l table.g td:nth-child(11){max-width:220px;overflow:hidden;text-overflow:ellipsis}
body.dark .ib-c{background:#1f2630}body.dark .ib-t tr.ib-hr td{background:#5a4a10}      /* PURCHASE BILL FROM THE SUPPLIER'S FILE */
.rcg table.g tr.rc-first td{border-top:1px solid #9fb3c8}.rcg table.g td:nth-child(1){max-width:230px;overflow:hidden;text-overflow:ellipsis}.rcg table.g td:nth-child(2),.rcg table.g td:nth-child(3){max-width:150px;overflow:hidden;text-overflow:ellipsis}
small.lotr{background:#e6f4ea;color:#1e6b3a;border:1px solid #b9dcc4;border-radius:4px;padding:0 4px;font-weight:600;margin-left:4px}      /* a LOT RATE line (owner 10-11) */
.modal.lotm .lotg{display:grid;grid-template-columns:110px auto;gap:8px 12px;align-items:center;padding:4px 20px 6px}
.modal.lotm .lotg span{display:flex;gap:6px;align-items:center}.modal.lotm .lotg input{width:80px;height:27px;box-sizing:border-box}.modal.lotm .lotg i{font-style:normal}
.modal.lotm .lotg input.fbad{border-color:#c0392b;outline:1px solid #c0392b}
.modal.lotm .lotn{padding:2px 20px 10px;color:#2f5148;font-size:13px;min-height:18px}
small.plr{background:#f3e8ff;color:#6a3fb0;border:1px solid #d9c2f5;border-radius:4px;padding:0 4px;font-weight:600;margin-left:4px}      /* a line that took a price list / scheme */
.lpf input[list]{max-width:320px}
#dash h5.ds-apv{background:#c0392b;cursor:pointer}      /* approvals waiting for the Owner : on top of the dashboard */
.apv-why{margin:6px 0 10px;padding:6px 10px;background:#fff4e5;border:1px solid #f0c48a;border-radius:6px;color:#7a4300;font-weight:600}

/* >>> ATTACH (17-10) : the files of an entry */
.attb .att-l{min-height:140px;border:1px solid #dfe6e3;border-radius:6px;outline:none}
.attb .att-r{display:grid;grid-template-columns:1fr 90px 200px;gap:10px;padding:6px 10px;border-bottom:1px solid #eef2f0;cursor:pointer}
.attb .att-r.sel{background:var(--teal);color:#fff}
.attb .att-e{padding:30px;text-align:center;color:#7a8a85}
.attb .att-n{margin-top:8px;font-size:12px;color:#6b7b76}
.attb.drop>div{outline:3px dashed var(--teal);outline-offset:-6px}
b.atn{color:#1d5fa8}
table.g tr.sel b.atn{color:inherit}
/* <<< ATTACH */
.lcm .lcr{display:flex;gap:6px}
.lcm .lcr .cn{flex:1}
.lcm .lcr .ca{width:110px}
.lcm .lcp{margin-top:10px}
b.gr-A{color:#1f7a4d}b.gr-B{color:#1d5fa8}b.gr-C{color:#b9770e}b.gr-D{color:#c0392b}
table.g tr.sel b.gr-A,table.g tr.sel b.gr-B,table.g tr.sel b.gr-C,table.g tr.sel b.gr-D{color:inherit}
.srg table.g td:first-child{max-width:300px;overflow:hidden;text-overflow:ellipsis}
.lpv-p h5{margin:12px 0 4px;color:#2f5148}
b.dl-1{color:#1d5fa8}b.dl-2{color:#b9770e}b.dl-3{color:#c0392b}
table.g tr.sel b.dl-1,table.g tr.sel b.dl-2,table.g tr.sel b.dl-3{color:inherit}
/* bank statement match */
.bmx>div{width:96%;max-width:1240px;max-height:96%}
.bmx .au-t td{white-space:nowrap}
.lpv tr.mrow{cursor:pointer}
.lpv tr.mrow.sel td{background:var(--hi);color:var(--hi-t)}
/* cash flow forecast */
b.cf-neg{color:#c0392b}
b.cf-pos{color:#1e7b4f}
table.g tr.sel b.cf-neg,table.g tr.sel b.cf-pos{color:inherit}
/* godown transfer */
.gtm>div{width:min(96%,980px);max-width:none}
.gtm .au-t input{padding:2px 5px;border:1px solid #b9c7c2;border-radius:4px;font:inherit}
.gtm .au-t input.ti{cursor:pointer}
.gtm .lpv-p{position:relative}
/* consolidation */
.cs-cos{display:inline-flex;gap:10px;margin-left:12px;flex-wrap:wrap}
.cs-cos label{white-space:nowrap}
.cs-cos small{color:#6b7f79}
/* salesman mobile orders : the address screen */
.mob-h{display:flex;gap:28px;padding:22px 26px;align-items:flex-start}
.mob-h h3{margin:0 0 10px}
.mob-h p{margin:0 0 10px;max-width:640px;line-height:1.45}
.mob-a{font-size:18px}
#mq svg{background:#fff;border:1px solid #dfe6e3;border-radius:8px}
.mob-w{background:#fdecea;color:#c0392b;padding:8px 12px;border-radius:6px}
/* role centre (home) */
.rolec{margin-top:10px}
.rc-h{display:flex;align-items:center;gap:6px;font-weight:700;font-size:12px;letter-spacing:.04em;color:#2f6b5e;margin-bottom:6px}
.rc-q{border:1px solid #b9c7c2;background:#fff;color:#2f6b5e;border-radius:5px;padding:2px 8px;font:inherit;font-size:12px;font-weight:600;cursor:pointer}
.rc-q:hover{background:#e7f1ee}
.rc-c{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:6px}
.rc{background:#fff;border:1px solid #dfe6e3;border-radius:6px;padding:5px 9px;cursor:pointer}
.rc:hover,.rc:focus{border-color:#2f6b5e;outline:none}
.rc .k{font-size:11px;color:#6b7f79;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rc .v{font-size:16px;font-weight:700;color:#1d2b28}
.rc .s{font-size:11px;color:#6b7f79;min-height:13px}
.rc.rc-on{border-color:#e0a63a;background:#fff8e8}
.rc.rc-on .v{color:#b0640f}
body.dark .rc,body.dark .rc-q{background:#1c2428;border-color:#33413f;color:#d8e4e0}
body.dark .rc .v{color:#e8f0ed}
/* excel edit */
.xl-f{white-space:nowrap;font-size:12px}
/* HOME FITS WITHOUT SCROLLING (owner 17-10-2026 : 'scroll nahi, cubes chhote') : smaller boxes and cards, only on the Home screen */
.home .mid{padding:8px 14px}
.home .h-title{font-size:16px;margin:0}
.home .h-sub{margin:0 0 6px;font-size:12px}
.home .flow{gap:6px 18px;margin-bottom:8px}
.home .fbox{min-height:46px;padding:4px 8px 5px;border-radius:5px}
.home .fbox .a{font-size:12px;margin:0 0 1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home .fbox .c{font-size:10px}
.home .fbox .c b{font-size:13px}
.home .fbox:not(.last)::after{right:-15px;top:14px;font-size:12px}
.home .cards{gap:6px}
.home .cards+.cards{margin-top:6px!important}
.home .card{padding:4px 9px}
.home .card .k{font-size:10px}
.home .card .v{font-size:17px;line-height:1.2}
.home .card .s{font-size:10px}
.home .rolec{margin-top:6px}
.home .rc-h{margin-bottom:4px}
.home .rc-c{grid-template-columns:repeat(auto-fill,minmax(124px,1fr));gap:5px}
.home .rc .v{white-space:nowrap}
.home .rc{padding:3px 7px}
.home .rc .v{font-size:14px}
.home .note{margin-top:6px;padding:4px 10px}
/* a window over a screen never taller than the work area : its buttons (Save / Cancel) always seen */
.modal.lpv>div{max-height:calc(100% - 14px)}
.modal.pdcb>div:first-child{max-height:calc(100% - 10px);display:flex;flex-direction:column}.modal.pdcb>div:first-child>*{flex:0 0 auto}.modal.pdcb>div:first-child>table.grid{display:block;flex:0 1 auto;min-height:84px;overflow-y:auto}.modal.pdcb>div:first-child>p.sm{flex:0 1 auto;min-height:0;overflow-y:auto}.modal.pdcb>div:first-child>table.grid thead th{position:sticky;top:0;z-index:1;background:#fff}body.dark .modal.pdcb>div:first-child>table.grid thead th{background:#1f282e}      /* a long form box (BOM, production ...) - only the box itself (:first-child), never a list opened over it - stays inside the screen : its lines / note scroll, the title and Save stay (owner 12-11 : 'screen ghus gya') */
.lcm input.lc-pick{cursor:pointer;background:#fffdf3}
.lcm .lpv-p{position:relative}
/* find menu : the option, and under it the whole way to it */
#findres{min-width:420px;max-height:380px}
#findres div{display:block;padding:5px 12px}
#findres div span{display:block;font-weight:600}
#findres div small{display:block;font-size:11px;opacity:.75;margin-top:1px}
#findres div.nb span{opacity:.55;font-weight:400}
/* print list (Ctrl+P) + the export buttons at the bottom */
.exb{display:inline-flex;gap:4px;align-items:center}
.exb button{border:1px solid #ffffff66;background:#ffffff1f;color:#fff;border-radius:4px;height:19px;min-width:22px;padding:0 5px;font:700 10px/17px Calibri,Arial,sans-serif;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.exb button:hover{background:#fff;color:#2f6b5e}
.exb svg{width:12px;height:12px}
.exb .x-x{background:#1e7b4f}.exb .x-w{background:#2b5797}.exb .x-p{background:#c0392b}.exb .x-h{background:#6b7f79}
.plm>div{width:min(96%,560px)}
.plm .lpf select{min-width:90px}
.plm .pl-b{justify-content:center;flex-wrap:wrap}
.plm .pl-b .btn{min-width:62px}
.plv .pl-f{width:100%;height:100%;min-height:60vh;border:0;background:#fff;display:block}
.plv>div{height:96%}
.plv .lpv-p{display:flex}
.plm>div{position:relative}
.pl-w{position:absolute;inset:0;background:#ffffffd9;display:flex;align-items:center;justify-content:center;gap:12px;font-weight:700;color:#2f6b5e;font-size:15px;border-radius:8px;z-index:3}
.pl-sp{width:22px;height:22px;border:3px solid #cfe1db;border-top-color:#2f6b5e;border-radius:50%;animation:plspin .8s linear infinite}
@keyframes plspin{to{transform:rotate(360deg)}}
.sy{padding:14px 18px;display:flex;flex-direction:column;gap:12px;max-width:980px}
.sy-h{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.sy .pill{font:700 12px/1 "Segoe UI",Tahoma,Arial,sans-serif;padding:6px 10px;border-radius:999px;background:#e3efea;color:#2f6b5e}
.sy .pill.ok{background:#e2f2e8;color:#2e7d4f}.sy .pill.bad{background:#fbe4e2;color:#b3261e}.sy .pill.off{background:#eceeed;color:#5b6b66}.sy .pill.hub{background:#fbefd9;color:#9a5b00}
.sy-t{border-collapse:collapse;font-size:13px}.sy-t td,.sy-t th{padding:5px 10px;border-bottom:1px solid #d5e1dc;text-align:left;vertical-align:top}.sy-t td:first-child{color:#5b6b66}
.sy-t td.bad{color:#b3261e}
.sy h4{margin:6px 0 0;font-size:13px;letter-spacing:.06em;color:#2f6b5e}
.sy-f{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.sy-n{color:#5b6b66;font-size:12px;margin:0}
/* Control Centre : one full screen - categories left, their options right (label, value, full note, last change), the change history under them */
.win.ccf>.body{display:grid;grid-template-columns:236px minmax(0,1fr);grid-template-rows:minmax(0,1fr) 150px;overflow:hidden;background:#f3f6f5}
.ccf-l{border-right:1px solid #cfdcd7;overflow:auto;padding:4px 0;outline:none;background:#eef4f1}
.ccf-l .ccm-i{padding:5px 12px;gap:10px;font-size:14px;letter-spacing:.02em}
.ccf-l .ccm-i b{width:14px}
.ccf-l .ccm-i small{font-size:11px}
.ccf-l .ccm-i.sel{background:#8aa59d;color:#fff}
.ccf-l:focus .ccm-i.sel{background:#2b4a42}
.ccf-l .ccm-i.sel b,.ccf-l .ccm-i.sel small{color:#e6f4ee}
.ccf-r{display:flex;flex-direction:column;min-height:0;min-width:0}
.ccf-h{display:flex;align-items:center;gap:18px;padding:5px 14px;background:#3d6a5f;color:#fff;font-weight:600;letter-spacing:.05em;white-space:pre}
.ccf-h label{display:flex;align-items:center;gap:8px;flex:1;font-weight:500;letter-spacing:0}
.ccf-h input{flex:1;max-width:420px;padding:3px 8px;border:1px solid #9fb2ac;border-radius:5px;font:inherit;color:#1d2b27}
.ccf-o{flex:1;min-height:0;overflow:auto;padding:4px 10px 10px}
.ccf-o .mf-s{margin-bottom:6px}
.ccf-o .mf1 .mf-c{grid-template-columns:250px 170px minmax(0,1fr);grid-template-areas:"l f n";align-items:start;gap:2px 12px;padding:3px 0;border-bottom:1px dotted #d5dfdb}
.ccf-o .mf-c>i{display:none}
.ccf-o .mf-c label{padding-top:3px;font-weight:600}
.ccf-o .mf-c input,.ccf-o .mf-c select{width:100% !important;max-width:170px}
.ccf-o .mf-c input.asis[readonly]{max-width:none}
.ccf-o .mf-c:has(input.asis[readonly]){grid-template-columns:250px minmax(0,1fr) !important;grid-template-areas:"l f" !important}
.ccf .foot .msg{white-space:pre}
.ccf-o .mf1 .mf-c small{white-space:pre-line;font-size:12px;line-height:1.35;color:#4f615b;padding-top:2px}
.ccf-o .mf{max-width:none;padding:0}
.ccf-o .mf1 .mf-r,.ccf-o .mf-r[style]{grid-template-columns:minmax(0,1fr) !important;margin:0}
.ccf-o .mf-s{padding:2px 12px;margin:0 0 6px}
.ccf-lc{grid-column:3;font-style:normal;font-size:11px;color:#9a5d00}
.ccf-n{padding:18px;color:#4f615b;font-size:13px}
.ccf-off>*{opacity:.42}.ccf-off>em.ccf-wh{opacity:1;color:#8a5a00;font-style:normal;font-size:11px;grid-column:1 / -1}
body.dark .ccf-off>em.ccf-wh{color:#f0b65a}
.ccf-go{display:flex;gap:8px;align-items:center;padding:8px 12px;background:#fff8dc;border-bottom:1px solid #eadfae;font-size:13px}      /* SEARCH : a category whose name holds the word */
.ccf-go .btn{font-weight:600}
.ccf-hs{grid-column:1 / 3;display:flex;flex-direction:column;min-height:0;border-top:2px solid #3d6a5f}
.ccf-ht{display:flex;justify-content:space-between;padding:3px 12px;background:#dfeae5;font-weight:600;font-size:12px;color:#2f4d45;white-space:pre}
.ccf-hg{flex:1;min-height:0;overflow:auto;outline:none;background:#fff}
.ccf-hg:focus{box-shadow:inset 0 0 0 2px #2f7d6b}
body.dark .win.ccf>.body{background:#12181c}
body.dark .ccf-l{background:#182124;border-color:#33414b}
body.dark .ccf-l .ccm-i{color:#e3efea}
body.dark .ccf-l .ccm-i b{color:#7fd9bd}
body.dark .ccf-l:focus .ccm-i.sel{background:#3d6a5f}
body.dark .ccf-o .mf1 .mf-c{border-color:#2b383d}
body.dark .ccf-o .mf1 .mf-c small,body.dark .ccf-n{color:#a9bcb5}
body.dark .ccf-lc{color:#f0b65a}
body.dark .ccf-ht{background:#1f2b28;color:#cfe0da}
body.dark .ccf-hg{background:#12181c}
/* Control Centre > Overdue Billing : the window of the party's overdue bills */
.modal.odw>div{min-width:640px;max-width:860px}
.modal.odw h4{background:#b26a00}
.modal.odw.stop h4{background:#b3261e}
.odw-s{display:flex;justify-content:space-between;gap:20px;padding:8px 16px 4px;font-size:13px}
.odw-s b{color:#b3261e}
.odw-s span{color:#4f615b}
.modal.odw table{margin:4px 16px;border-collapse:collapse;font-size:13px;width:calc(100% - 32px)}
.modal.odw th{background:#eef1ef;text-align:left;padding:3px 8px;font-size:12px}
.modal.odw td{padding:2px 8px;border-bottom:1px solid #e3e9e6}
.modal.odw td:nth-child(n+3),.modal.odw th:nth-child(n+3){text-align:right}
.modal.odw p{padding:10px 16px;font-weight:600}
.modal.odw.stop p{color:#b3261e}
body.dark .modal.odw th{background:#25322e}
body.dark .modal.odw td{border-color:#33414b}
body.dark .odw-s span{color:#a9bcb5}
/* List of Companies : bold rows on the left, the logo and the whole detail of the company on the right */
.win.colist>.body{display:grid;grid-template-columns:minmax(0,1fr) 360px;overflow:hidden}
.col-l{overflow:auto;min-height:0;outline:none}
.colist table.g td{font-weight:600;font-size:14px;padding-top:7px;padding-bottom:7px}
.colist table.g td:first-child{font-weight:700;letter-spacing:.02em}
.pick-10.on{background:#fff3c4;color:#6b4e00;padding:1px 6px;border-radius:4px;font-weight:600}      /* F10 : the list shows only the items with stock / ledgers with a balance */
.modal.codel>div{width:560px;max-width:94vw}
.coform .mf{max-width:1100px}.coform .mf-c label{font-weight:700;color:#2f5148;font-size:12px}.coform .mf-h{font-weight:700;letter-spacing:.4px}      /* COMPANY form : compact, the headings bold */
.bp-dup{text-align:right;font-weight:700;letter-spacing:2px;border:1.5px solid #222;display:inline-block;float:right;padding:1px 8px;margin-bottom:2px}.bp-sv{text-align:right;font-weight:700;margin-top:3px}.bp-ph{text-align:right;margin-top:6px;font-size:.95em}      /* the bill print : DUPLICATE, saving, pharmacist */
.fam-m{max-height:30%;overflow:auto;border-bottom:2px solid #cfdcd6}.fam-l{height:68%;overflow:auto}      /* FAMILY : the members over their medicines */
.modal.rxb>div{width:560px;max-width:94vw}.rxb-g{display:grid;grid-template-columns:150px 1fr;gap:8px 12px;align-items:center;margin:10px 16px}.rxb-g label{color:#4f615b;font-size:13px}      /* PRESCRIPTION window */
input.ro-over{background:#fde2e2;color:#b00020;border-color:#d33;font-weight:600}      /* a R/Off over the limit of the Control Centre */
.svq{padding:8px 12px;overflow:auto;height:100%}      /* QUOTATION / PROFORMA of services */
.svq-r{display:flex;align-items:center;gap:8px;margin:4px 0;flex-wrap:wrap}.svq-r label{font-size:12px;color:#4f615b}
.svq fieldset{border:1px solid #cfdcd6;border-radius:6px;margin:8px 0;padding:6px 10px}.svq legend{font-size:12px;color:#2f5148;font-weight:600;padding:0 4px}
.svq fieldset>input{display:block;width:100%;margin:3px 0}.svq textarea{width:100%;font:inherit;font-size:13px;resize:vertical}
.svq-t{width:100%;border-collapse:collapse}.svq-t th{font-size:11px;text-align:left;color:#4f615b;padding:3px}.svq-t td{padding:2px 3px;vertical-align:top}.svq-t td input[data-f="head"]{width:100%}
.svq-t td:nth-child(2){width:32%}.svq-t td:nth-child(3){width:34%}.svq-tot{text-align:right;margin-top:6px;font-size:13px}
.svq-a{border-top:1px dashed #cfdcd6;padding:6px 0}.svq-a>div{display:flex;gap:6px}.svq-a>div input{flex:1}      /* DELETE A COMPANY : Branch Code + password */
.codel .cd-f{display:grid;grid-template-columns:200px 1fr;gap:8px 10px;align-items:center;margin:12px 0 4px;padding:0 14px}
.codel .cd-f input{padding:5px 8px;font-size:14px}
.codel .cd-r{color:#b3261e;font-weight:600}
.codel .cd-e{color:#b3261e;min-height:18px;margin:4px 14px}
.modal.chqbk>div{width:820px}.chqbk .cd-f{grid-template-columns:165px minmax(0,1fr) 165px minmax(0,1fr);max-height:62vh;overflow-y:auto;overflow-x:hidden}.chqbk .cd-f input,.chqbk .cd-f select{padding:3px 6px;font-size:13px;width:100%;box-sizing:border-box;min-width:0}
.btn.go.red{background:#b3261e;border-color:#b3261e}
.colist table.g th{font-size:13px;padding-top:6px;padding-bottom:6px}
.mqb.fypick>div{width:min(620px,94%)}
/* the first page and the year window : the selected line yellow, less dark behind the window (owner 30-10 chose it from 5 colours) */
.colist table.g tr.sel td,.fypick table.g tr.sel td{background:var(--hi)!important;color:var(--hi-t)}
.modal.fypick{background:rgba(20,30,28,.2)}
.fypick .mq div[tabindex]:focus,.fypick .mq:focus{outline:none}
.fypick .fyh{padding:10px 14px 9px;border-bottom:1px solid #dfe6e3;background:#fff}
.fypick .fyh b{display:block;font-size:17px;color:var(--teal-d);letter-spacing:.02em}
.fypick .fyh span{font-size:12px;color:#55665f}
.fypick table.g td{font-size:14px;padding-top:9px;padding-bottom:9px}
.fypick table.g td:first-child{font-weight:700}
.fypick .fyc{background:#dff3ea;color:#0f6e56;font-size:11px;font-weight:700;padding:2px 8px;border-radius:4px;letter-spacing:.04em}
body.dark .fypick .fyh{background:#1a2227}
body.dark .fypick .fyh b{color:#cfe3dc}
.col-r{border-left:1px solid #cfdcd7;background:#f4f8f6;overflow:auto;padding:14px 18px}
.col-logo{height:124px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;background:#fff;border:1px solid #dfe6e3;border-radius:8px;margin-bottom:12px;overflow:hidden}
.col-logo img{max-height:110px;max-width:92%;object-fit:contain}
.col-ini{width:62px;height:62px;border-radius:50%;background:#3d6a5f;color:#fff;font-size:23px;font-weight:700;display:flex;align-items:center;justify-content:center;letter-spacing:.04em}
.col-logo small{color:#7a8884;font-size:11px}
.col-r h3{margin:0 0 4px;font-size:17px;color:#1f3b34;line-height:1.25}
.col-ad{color:#3c4a46;font-size:13px;margin-bottom:10px;line-height:1.45}
.col-r table{width:100%;border-collapse:collapse;font-size:13px}
.col-r td{padding:4px 0;border-bottom:1px dotted #d5dfdb;vertical-align:top}
.col-r td:first-child{color:#5b6b66;width:118px}
.col-r td+td{font-weight:600;word-break:break-word}
.col-n{padding:30px 10px;text-align:center;color:#5b6b66;line-height:1.6}
.co-lg{display:flex;gap:18px;align-items:center;margin:0 16px 16px;padding:12px 14px;border:1px solid #dfe6e3;border-radius:8px;background:#fff}
.co-lg-p{flex:0 0 220px;height:96px;display:flex;align-items:center;justify-content:center;border:1px dashed #9fb2ac;border-radius:6px;overflow:hidden;background:#fff}
.co-lg-p img{max-width:96%;max-height:90px;object-fit:contain}
.co-lg-t p{margin:4px 0 8px;font-size:12px;color:#4f615b}
body.dark .col-r{background:#182124;border-color:#33414b}
body.dark .col-logo,body.dark .co-lg{background:#1f2b28;border-color:#33414b}
body.dark .col-r h3{color:#cfe0da}
body.dark .col-ad,body.dark .col-r td:first-child,body.dark .co-lg-t p,body.dark .col-n{color:#a9bcb5}
body.dark .col-r td{border-color:#2b383d}
/* Stop Server */
.ssv{padding:14px 18px;font-size:13px;line-height:1.5}
.ssv p{margin:0 0 12px;color:#3c4a46;max-width:900px}
.ssv h5{margin:8px 0 6px;color:#2f4d45}
.ssg{max-height:340px;overflow:auto;outline:none;background:#fff;border:1px solid #dfe6e3}
body.dark .ssv p{color:#a9bcb5}
body.dark .ssg{background:#12181c;border-color:#33414b}
/* Control Centre > PRINT / REPORTS : the company's logo in the heading of the printed reports and vouchers */
.rp-logo{display:block;object-fit:contain}
.rp-s-small .rp-logo{max-height:12mm;max-width:40mm}
.rp-s-medium .rp-logo{max-height:18mm;max-width:60mm}
.rp-s-large .rp-logo{max-height:25mm;max-width:80mm}
.lpr-h.rp-l-left .rp-logo{float:left;margin:0 12px 4px 0}
.lpr-h.rp-l-right .rp-logo{float:right;margin:0 0 4px 12px}
.rp-l-centre .rp-logo{margin:0 auto 6px}
.pv.rp-l-left .rp-logo{margin:0 0 6px 0}
.pv.rp-l-right .rp-logo{margin:0 0 6px auto}
.lpr-h.rp-l-left::after,.lpr-h.rp-l-right::after{content:"";display:block;clear:both}
/* MY SHORTCUTS : the buttons on the right of the main page keep their size ; MORE of them fill the side down to the bottom (it scrolls when there are more) ; the last one changes them */
.home .col.right{display:flex;flex-direction:column;gap:4px;overflow:hidden}
.home .rb-l{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;gap:4px;overflow:auto}
.home .rb-l .rbtn{flex:0 0 auto;margin:0}
.home .rbtn.rb-ch{flex:0 0 auto;margin:2px 0 0;font-size:12px;font-weight:400;background:#fff;border-style:dashed;color:var(--teal-d)}
.win.scw>.body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);overflow:hidden}
.sc-l,.sc-r{display:flex;flex-direction:column;min-height:0;padding:8px 10px}
.sc-l{border-right:1px solid #cfdcd7}
.sc-h{display:flex;align-items:center;gap:10px;font-weight:700;color:#2f4d45;padding:2px 0 6px;font-size:13px}
.sc-h small{font-weight:400;color:#5b6b66}
.sc-h span{margin-left:auto;font-weight:600;color:#5b6b66}
.sc-h label{margin-left:auto;display:flex;align-items:center;gap:6px;font-weight:600}
.sc-h input{width:230px;padding:3px 7px;border:1px solid #9fb2ac;border-radius:5px;font:inherit;font-weight:400}
.sc-g{flex:1;min-height:0;overflow:auto;background:#fff;border:1px solid #dfe6e3;outline:none}
.sc-g:focus{box-shadow:inset 0 0 0 2px #2f7d6b}
.sc-b{display:flex;gap:6px;align-items:center;padding-top:6px;flex-wrap:wrap}
.sc-t{font-size:12px;color:#5b6b66}
.sc-in{color:#2f7d6b;font-size:12px}
body.dark .home .rbtn.rb-ch{background:#1f2b28;color:#8fd0bf}
body.dark .sc-g{background:#12181c;border-color:#33414b}
body.dark .sc-h{color:#cfe0da}
/* Purchase Rate Rise */
.rr-up{color:#b3261e}
table.g tr.sel .rr-up{color:#b3261e}
body.dark .rr-up{color:#ff8f85}
/* Sales Analysis */
.sa-neg{color:#b3261e;font-weight:600}
table.g tr.sel .sa-neg{color:#b3261e}
.sa-bar{display:inline-block;height:10px;background:#3d8f7b;border-radius:2px;vertical-align:middle}
body.dark .sa-neg{color:#ff8f85}
/* RECENT parties / items on top of the lists of a bill */
table.g tr.rcn td:first-child::before{content:"\2605  ";color:#c88a00}
.lbd{display:flex;gap:14px;height:100%;min-height:0}.lbd-l{flex:0 0 260px;overflow:auto;padding:6px}.lbd-r1{display:flex;align-items:center;gap:6px;margin:4px 0}.lbd-r1 label{flex:0 0 130px;font-size:12px}.lbd-r1 input,.lbd-r1 select{width:100px}
.lbd-m{flex:1;display:flex;flex-direction:column;min-width:0;min-height:0}.lbd-pv{flex:0 0 auto;background:#c9ced1;padding:20px;overflow:auto;outline:none;min-height:150px;display:flex;align-items:flex-start;justify-content:center}.lbd-pv:focus{box-shadow:inset 0 0 0 2px var(--acc,#2e7d6b)}
.lbd-lab{position:relative;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.35)}.lbd-f{position:absolute;white-space:nowrap;overflow:hidden;color:#000;cursor:move;outline:1px dashed rgba(0,0,0,.15)}.lbd-f.sel{outline:1.5px dashed #c0392b;background:rgba(192,57,43,.06)}
.lbd-tw{flex:1;overflow:auto;margin-top:8px}.lbd-t{border-collapse:collapse;font-size:12px}.lbd-t th,.lbd-t td{padding:2px 5px;border-bottom:1px solid var(--line,#ddd);text-align:left}.lbd-t tr.sel td{background:var(--sel-bg,#fff3cd)}      /* LABEL DESIGN */
.phm>div{width:min(1100px,96vw)}.phm .lpv-p{max-height:70vh;overflow:auto}.phm h5{margin:12px 0 4px}.ph-t td.n,.ph-t th.n{text-align:right}.ph-t td.ph-up{color:#c0392b;font-weight:700}.ph-t td.ph-dn{color:#1e8449;font-weight:700}.ph-e{color:var(--mut,#777)}      /* PRICE HISTORY */
small.dos{background:#e8f4fd;color:#1f5f8b;border-radius:3px;padding:0 4px;margin-left:4px}      /* the dosage of a bill line */
table.ocq td,table.ocq th{padding:3px 6px;text-align:left}table.ocq select{width:240px}      /* OTHER CHARGES box */
.bp-dlv{border:1.5px solid #222;padding:3px 6px;margin:4px 0;font-size:.95em}      /* HOME DELIVERY on the bill */
.btn.go2{background:#fff3cd;border-color:#e0b94a}
.bp-i tr.bp-cold td{font-style:italic;font-size:.9em;padding-top:0;border-top:0}
.bp-i tr.bp-rmk td{font-style:normal}
.bp-brm{margin:4px 0;font-size:.95em}
small.lrm{background:#eef2ff;color:#3730a3;border-radius:6px;padding:0 5px;margin-left:4px;font-weight:600;white-space:nowrap}
.dark small.lrm{background:#312e81;color:#e0e7ff}
/* LINE DETAIL box (F2 on the Qty) : 2 columns (label 90px | its boxes), the same look as the other boxes, light and dark */
.modal.ldb>div{width:560px;min-width:0;max-width:calc(100vw - 32px);box-sizing:border-box}
.modal.ldb h4{display:flex;align-items:baseline;gap:10px;font-size:13px;letter-spacing:.3px}
.ldb .ld-it{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.ldb .ld-it i{font-style:normal;font-weight:400;opacity:.75}
.ldb .ld-g{display:grid;grid-template-columns:90px minmax(0,1fr);gap:10px 12px;align-items:start;padding:14px 16px 6px}
.ldb .ld-g>label{font-weight:600;font-size:13px;color:#4f615b;line-height:28px}
.ldb .ld-r{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.ldb .ld-r select,.ldb .ld-r input{height:28px;box-sizing:border-box;font:inherit;font-size:14px;padding:0 8px;border:1px solid #b9cbc4;border-radius:4px;background:#fff;color:#1d2b27}
.ldb #ldM{width:110px}.ldb #ldV{width:100px}.ldb #ldS,.ldb #ldC,.ldb #ldI{width:76px}
.ldb .ld-r input:focus,.ldb .ld-r select:focus,.ldb .rmk-l input:focus{outline:2px solid #e3a008;outline-offset:0;background:#fffbe6}
.ldb .ld-l2{font-weight:600;font-size:13px;color:#4f615b;margin-left:8px}
.ldb .ld-mu{color:#64748b;font-size:12px;font-weight:400}
.ldb .ld-h{margin-top:4px}
.ldb .ld-mg{line-height:20px;padding-top:4px;min-width:0;overflow-wrap:anywhere;font-size:14px}
.ldb .ld-mg b{font-size:15px;margin-right:6px}.ldb .ld-mg.neg b{color:#c62828}
.ldb .rmk-l{display:flex;flex-direction:column;gap:6px;max-height:156px;overflow-y:auto;overflow-x:hidden;min-width:0;padding:1px 2px 1px 0}
.ldb .rmk-l>div{display:flex;align-items:center;gap:8px;min-width:0}
.ldb .ld-n1{flex:0 0 22px;height:22px;line-height:22px;border-radius:11px;background:#e3ece8;color:#2f5148;font-size:11px;font-weight:700;text-align:center}
.ldb .rmk-l input{flex:1;min-width:0;width:auto;height:28px;box-sizing:border-box;font:inherit;font-size:14px;padding:0 8px;border:1px solid #b9cbc4;border-radius:4px;text-transform:uppercase;background:#fff;color:#1d2b27}
.ldb .ld-n{padding:2px 16px 10px 118px}
.modal.ldb .acts{align-items:center}
.ldb .ld-keys{flex:1;min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:4px;font-size:12px;color:#4f6a62}
.ldb .ld-keys b{margin:0 6px;color:#9fb8ae}
.ldb kbd{font-family:inherit;font-size:11px;font-weight:600;line-height:16px;padding:0 5px;border:1px solid #b8c7c1;border-bottom-width:2px;border-radius:3px;background:#fff;color:#1d2b27}
.modal.ldb .acts .btn[data-kl]::before{display:none}
.modal.ldb .acts .btn{min-width:72px}
body.dark .modal.ldb .ld-g>label,body.dark .modal.ldb .ld-l2{color:#c4d6d0}
body.dark .modal.ldb>div{background:#1f282e;color:#e3ebe8;border-color:#4a5a64}body.dark .modal.ldb .acts{background:#182025;border-top-color:#2c3a36}
body.dark .modal.ldb .ld-mu{color:#a3b1c2}
body.dark .ldb .ld-r select,body.dark .ldb .ld-r input,body.dark .ldb .rmk-l input{background:#151b1f;color:#e3ebe8;border-color:#3f524b}
body.dark .ldb .ld-r input:focus,body.dark .ldb .ld-r select:focus,body.dark .ldb .rmk-l input:focus{background:#2a2614}
body.dark .ldb .ld-n1{background:#2c3a36;color:#cfe0da}
body.dark .modal.ldb .ld-keys{color:#cfdcd8}body.dark .modal.ldb .ld-keys b{color:#5f7a72}
body.dark .ldb kbd{background:#1f282e;color:#e3ebe8;border-color:#4a5f58}
body.dark .ldb .ld-mg.neg b{color:#ef8a8a}
@media (max-width:600px){.ldb .ld-n{padding-left:16px}}
.rmkb .rmk-l{display:flex;flex-direction:column;gap:4px;max-height:52vh;overflow:auto;margin:6px 0}
.rmkb .rmk-l div{display:flex;align-items:center;gap:6px}
.rmkb .rmk-l span{width:22px;text-align:right;color:#64748b;font-size:12px}
.rmkb .rmk-l input{width:560px;text-transform:uppercase}      /* KEEP IN FRIDGE under a cold-chain line of the bill */
table.g tr.fz td:first-child::before{content:"~  ";color:#b5651d;font-weight:bold}      /* found by a spelling mistake */
table.g tr.rcn.sel td:first-child::before{color:#8a5a00}
/* MULTI UNIT BILLING : STRIP : PCS in one cell of a bill line */
.mup{display:inline-flex;align-items:center;gap:2px}
.mup i{font-style:normal;font-weight:700;opacity:.7}
.mup input::placeholder{font-size:10px}
input[data-ph]::placeholder{color:#a9b0ba;font-style:normal;opacity:1}      /* the format in an empty box (owner 05-11) : light grey, gone when typed */
/* ITEM VARIANTS : the size / colour of a bill line ; the purchase MATRIX */
.vrt{color:#2f5148;font-weight:700;margin-left:6px}
table.g tr.sel .vrt{color:inherit}
body.dark .vrt{color:#9fd3c4}
.mx{max-width:92vw}
.mx-t{max-height:46vh;overflow:auto;margin:6px 0 8px}
.mx-t table{border-collapse:collapse}
.mx-t th,.mx-t td{border:1px solid #c9d6d1;padding:2px 5px;font-size:12px;text-align:center}
.mx-t input{width:56px}
.mx .acts{display:flex;align-items:center;gap:8px}
.mx-n{margin-right:auto;font-weight:600}
/* TABS (Control Centre) : several screens open at once - the tab bar on top of the work area, each tab its own pane */
#main.tabs-on #tabbar{position:absolute;top:0;left:0;right:0;height:25px;display:flex;align-items:flex-end;gap:2px;padding:0 6px;background:#d9e5e0;border-bottom:1px solid #6d7f7a;overflow:hidden;z-index:5}
#tabbar .tb{display:flex;align-items:center;gap:6px;max-width:220px;height:21px;padding:0 6px 0 4px;background:#eef3f1;border:1px solid #9fb3ac;border-bottom:none;border-radius:5px 5px 0 0;font-size:12px;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#29413a}
#tabbar .tb b{font-size:10px;background:#9fb3ac;color:#fff;border-radius:3px;padding:0 4px}
#tabbar .tb.on{background:#fff;height:23px;font-weight:700;border-color:#6d7f7a}
#tabbar .tb.on b{background:#2f5148}
#tabbar .tb.dirty::after{content:"*";color:#c0392b;font-weight:700}
#tabbar .tb i{font-style:normal;font-weight:700;padding:0 3px;border-radius:3px;color:#6b7d77}
#tabbar .tb i:hover{background:#c0392b;color:#fff}
#tabbar .tb-k{margin-left:auto;align-self:center;font-size:11px;color:#5c6f69;white-space:nowrap}
#main.tabs-on .tabpane{position:absolute;left:0;right:0;bottom:0;top:25px;display:none}
#main.tabs-on .tabpane.on{display:block}
body.dark #main.tabs-on #tabbar{background:#1d2a2e;border-color:#33414b}
body.dark #tabbar .tb{background:#23323a;color:#cfe0da;border-color:#33414b}
body.dark #tabbar .tb.on{background:#12181c}
/* RULES (Masters > RULES) : the rule form */
.rlbox{min-width:760px}
.rl-on{display:flex;flex-wrap:wrap;gap:4px 14px}
.rl-on label{font-size:13px;color:#29413a;white-space:nowrap}
.rl-on input{margin:0 3px 0 0}
.rl-c{display:flex;gap:6px;align-items:center}
.rl-c .rf{max-width:280px}
.rl-c .ro{max-width:110px}
.rl-c .rv{max-width:220px}
.billwin .fhead.one #btp{flex:0 1 150px;min-width:90px}
.billwin .fhead.one.two [id^=xf_]{flex:1 1 70px;min-width:70px;max-width:230px}.billwin .fhead.one.two:has([id^=xf_]){column-gap:8px}.billwin .fhead.one.two:has(#cm):has([id^=xf_]) #rf{flex:0 1 112px}      /* M.R. / Area / Route on the second line after Cash / Credit (owner 09-11) : they share its room, no third line */      /* BILL TYPE (Control Centre) : it must not push Cash / Credit to a third line */
/* LEDGER A/C from the server : while it loads / when it fails */
.ldw { padding: 24px; color: #555; font-size: 14px; }
/* OUTSTANDINGS - ageing : the party name short, every slab and the total on the screen */
.osag table.g td:first-child{max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.osag table.g th,.osag table.g td.num{white-space:nowrap}
/* HOME without its left panel (Control Centre > SCREEN > Home : left panel = No) */
.home.noleft{grid-template-columns:1fr 176px}      /* the shortcuts on the right keep their width (as with the left panel : 172px 1fr 176px) */
@media (max-width:820px){.home.noleft{grid-template-columns:1fr}}      /* the same width as the phone layout of the home screen */
/* EXCEPTION REPORTS : the nine lists as buttons that wrap */
#xt{display:flex;flex-wrap:wrap;gap:4px;justify-content:flex-end}#xt .btn{font-size:12px;padding:3px 8px}
/* PARTY ADDRESS FIX : the address of one ledger under the list */
.af-ed:empty{display:none}
.af-ed{border-top:2px solid var(--teal);background:var(--paper);padding:6px 10px 8px}
.af-h{font-size:13px;margin-bottom:4px}.af-h small{color:var(--mut)}
.af-f{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:flex-end}
.af-f label{display:flex;flex-direction:column;font-size:11px;color:var(--mut)}
.af-f input,.af-f select{font-size:13px;padding:2px 5px;border:1px solid var(--line);border-radius:3px;background:#fff;color:var(--ink)}
.af-f input:focus,.af-f select:focus{outline:2px solid var(--sky);background:#fffbe6}
/* TRANSPORT of a bill (F10) */
.tr-f{display:grid;grid-template-columns:repeat(4,auto);gap:6px 12px;margin:6px 0}
.tr-f label{display:flex;flex-direction:column;font-size:11px;color:var(--mut)}
.tr-f input,.tr-f select{font-size:13px;padding:2px 5px;border:1px solid var(--line);border-radius:3px;background:#fff;color:var(--ink)}
.tr-f input:focus,.tr-f select:focus{outline:2px solid var(--sky);background:#fffbe6}
/* the e-Invoice (QR + IRN + Ack) and the e-Way Bill on a bill's print */
.bp-irn{display:flex;gap:10px;align-items:center;border:1px solid #888;padding:4px 6px;margin:4px 0;font-size:.85em;word-break:break-all}
.bp-irn .bp-qr svg{width:96px;height:96px;display:block}
/* GST CONNECT popups (type by hand, cancel noted) : the bill on top, label | field */
.modal.gcm>div{width:620px;max-width:96vw}
.gcm-i{display:flex;gap:14px;align-items:baseline;padding:8px 16px;background:#eef3f1;border-bottom:1px solid #d5dfdb;font-size:13px;color:var(--ink)}
.gcm-i span:nth-child(2){flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--mut)}
.gcm-i .gcm-a{font-weight:700;font-variant-numeric:tabular-nums}
.gcm-w{margin:10px 16px 0;padding:6px 10px;background:#fff4e5;border-left:3px solid #d98b00;color:#6b4300;font-size:12px}
.gcm-f{display:grid;grid-template-columns:130px 1fr;gap:9px 12px;align-items:center;padding:14px 16px 6px}
.gcm-f label{text-align:right;font-size:12px;color:var(--mut);font-weight:600}
.gcm-f input,.gcm-f select,.gcm-f textarea{width:100%;box-sizing:border-box;font-size:13px;padding:4px 7px;border:1px solid var(--line);border-radius:3px;background:#fff;color:var(--ink)}
.gcm-f textarea{resize:vertical;font-family:Consolas,"Courier New",monospace;font-size:12px;line-height:1.35}
.gcm-f .gcm-m{font-family:Consolas,"Courier New",monospace;letter-spacing:.02em}
.gcm-f input:focus,.gcm-f select:focus,.gcm-f textarea:focus{outline:2px solid var(--sky);background:#fffbe6}
.gcm-n{padding:2px 16px 10px 158px;font-size:12px;color:var(--mut)}
/* ASK AI : the box on the menu bar and the panel on the right (Ctrl+J) */
/* INTERACTIVE DASHBOARD (owner 04-11) : the switch in the menubar, the side panel's figures, the drill window beside it */
#ddsw{align-self:center;display:flex;align-items:center;gap:8px;margin-right:6px;padding:3px 10px;border:1px solid #9fb2bd;border-radius:12px;background:#fff;cursor:pointer;font-size:12px;font-weight:600;color:#1e3a29;user-select:none}
#ddsw .sw-t{width:30px;height:16px;border-radius:8px;background:#9aaea7;position:relative}
#ddsw .sw-t i{position:absolute;top:2px;left:2px;width:12px;height:12px;border-radius:6px;background:#fff}
#ddsw.on .sw-t{background:#2f9e6f}#ddsw.on .sw-t i{left:16px}
#dash.ds-live [data-d]{cursor:pointer}
#dash.ds-live b[data-d]{color:#0f6e56;text-decoration:underline dotted}
#dash.ds-live span[data-d]:hover,#dash.ds-live b[data-d]:hover,#dash.ds-live tr[data-d]:hover td{background:#e3f1ec}
#dash.ds-live h5[data-d]:hover{background:#3d6b5d}
.ddw{position:fixed;z-index:60;display:flex;flex-direction:column;background:#fff;border:1px solid #2c4a36;box-shadow:-4px 4px 16px rgba(0,0,0,.25)}
.ddw-h{display:flex;align-items:center;gap:8px;background:#1e3a29;color:#fff;padding:6px 10px;font-size:13px;font-weight:600}
.ddw-p{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ddw-p a{cursor:pointer;text-decoration:underline}.ddw-p a:last-child{text-decoration:none}
.ddw-p b{font-weight:400;opacity:.8}
.ddw-x{border:0;background:transparent;color:#fff;font-size:14px;cursor:pointer}
.ddw .mq{flex:1 1 auto;min-height:0;overflow:auto;background:#fff}
.ddw-f{padding:5px 10px;font-size:12px;color:#3c5a50;border-top:1px solid #cfe3dc;background:#f6faf8}
.ddw-w{padding:16px;color:#55706a}
body.dark #ddsw{background:#151b1f;color:#e6efe9}body.dark .ddw,body.dark .ddw .mq{background:#12181c}body.dark .ddw-f{background:#151b1f;color:#c9d6d1}
#aibox{align-self:center;padding-right:6px}
#aibox button{width:190px;padding:3px 8px;border:1px solid #8f7cc8;border-radius:12px;background:#faf8ff;color:#4b3d8f;text-align:left;cursor:pointer;font:inherit;font-size:13px}
#aibox button:hover,#aibox button:focus{outline:2px solid #b7a6ec;background:#fff}
.net.aib{background:#efeaff;color:#4b3d8f;border-color:#b7a6ec}      /* the title bar : Ask AI on every screen */
#aip{position:fixed;right:16px;top:70px;width:440px;height:72vh;min-width:300px;min-height:240px;max-width:96vw;max-height:94vh;resize:both;overflow:hidden;display:flex;flex-direction:column;background:#fff;
  border:2px solid #6c5bb5;border-radius:8px;box-shadow:0 8px 28px rgba(0,0,0,.3);z-index:45}      /* FLOATING : drag by the title, size at the corner */
.aip-h{display:flex;align-items:center;gap:8px;padding:7px 10px;background:#4b3d8f;color:#fff;font-size:13px;cursor:move;user-select:none}
.aip-m{background:none;border:1px solid #ffffff66;color:#fff;border-radius:4px;font-size:11px;line-height:1;padding:3px 6px;cursor:pointer}
.aip-m:hover{background:#ffffff22}
.aip-h .aip-pv{flex:1;font-size:12px;opacity:.85}
.aip-x{background:none;border:0;color:#fff;font-size:18px;cursor:pointer;line-height:1}
.aip-log{flex:1;overflow:auto;padding:10px;background:#f6f5fb;font-size:13px}
.aim-u{margin:6px 0 6px 50px;padding:7px 10px;background:#e6e0fa;border-radius:10px 10px 2px 10px;white-space:pre-wrap}
.aim-a{margin:6px 30px 10px 0;padding:8px 10px;background:#fff;border:1px solid #d9d4ee;border-radius:10px 10px 10px 2px;line-height:1.45}
.aim-a .btn{margin:6px 6px 0 0}
.aim-w{color:var(--mut);font-style:italic}
.aim-e{background:#fff0ef;border-color:#e5a5a0;color:#8b1a12}
.aim-m{margin-top:6px;font-size:11px;color:var(--mut)}
.aim-li{padding-left:8px}.aim-sp{height:6px}
.aim-t{border-collapse:collapse;margin:6px 0;font-size:12px}.aim-t td,.aim-t th{border:1px solid #d9d4ee;padding:2px 6px;text-align:left}.aim-t th{background:#efecfa}
.aip-f{display:flex;gap:6px;padding:8px;border-top:1px solid #d9d4ee}
.aip-f textarea{flex:1;resize:none;font:13px inherit;padding:5px 7px;border:1px solid #b9b0dc;border-radius:4px}
.aip-n{padding:0 10px 6px;font-size:11px;color:var(--mut)}
.aip-qq{display:flex;flex-direction:column;gap:6px;padding:4px}      /* ASK AI : ready questions, what it found, the tools of an answer */
.aip-qt{font-size:12px;color:var(--mut);margin:2px 0}
.aip-q{text-align:left;padding:7px 10px;border:1px solid #c9bff0;border-radius:8px;background:#fff;color:#3a2f7a;cursor:pointer;font:inherit;font-size:13px}
.aip-q:hover,.aip-q:focus,.aip-ch:hover,.aip-ch:focus{background:#efeaff;outline:2px solid #b7a6ec}
.aip-pk{margin-top:8px;border-top:1px dashed #d9d4ee;padding-top:6px}
.aip-pr{display:flex;flex-wrap:wrap;gap:4px;align-items:center;margin:4px 0}
.aip-ch{flex:1 1 180px;text-align:left;padding:5px 8px;border:1px solid #c9bff0;border-radius:6px;background:#fff;color:#3a2f7a;cursor:pointer;font:inherit;font-size:12px;font-weight:600}
.aip-ch small{font-weight:400;color:var(--mut)}
.aip-nm{flex:1 1 180px;font-weight:600;font-size:12px;color:#3a2f7a}
.aip-a{padding:3px 8px;border:1px solid #b9b0dc;border-radius:5px;background:#f6f4ff;color:#4b3d8f;cursor:pointer;font:inherit;font-size:12px}
.aip-a:hover,.aip-a:focus{background:#e6e0fa;outline:2px solid #b7a6ec}
.aip-tools{display:flex;gap:4px;margin-top:8px}
body.dark #aip,body.dark .aim-a{background:#1f282e;color:var(--ink)}body.dark .aip-log{background:#182024}body.dark .aim-u{background:#3a3363}
.gcm>.acts,div.gcm .acts{display:flex;gap:8px;justify-content:flex-end;padding:8px 12px;background:#eef1ef}
/* ORDER BOOK : an entry whose stock has come ; the PO window */
table.g tr.grn:not(.sel) td{color:var(--ok);font-weight:600}
table.obt{border-collapse:collapse;width:100%;margin:6px 0}
table.obt th,table.obt td{border-bottom:1px solid #ddd;padding:3px 6px;text-align:left;font-size:13px}
table.obt td.num{text-align:right}
.ds-ob{background:var(--warn-bg);color:var(--warn)}
/* DAILY SALE SUMMARY */
.dsum{display:flex;gap:28px;padding:12px 18px;align-items:flex-start}
.dsum>table{width:420px;border-collapse:collapse;font-size:max(14px,var(--lf))}
.dsum td{padding:2px 6px}
.dsum td.num{text-align:right}
.dsum tr.dh td{font-weight:700;border-bottom:1px solid var(--line,#bbb);padding-top:9px;color:var(--ok)}
.dsum tr.db td{font-weight:700}
.dtop table{border-collapse:collapse;font-size:13px;margin-top:4px}
/* CASH CLOSING */
.ccl{display:flex;gap:26px;padding:12px 18px;align-items:flex-start}
.cct{border-collapse:collapse;font-size:max(14px,var(--lf))}
.cct th,.cct td{padding:3px 8px;text-align:left}
.cct td.num{text-align:right;min-width:90px}
.cct tr.cc-s td{font-weight:700;border-top:1px solid #bbb}
.cc-ok{color:var(--ok)}
.cc-bad{color:var(--bad)}
.ccl-r{flex:1;min-width:420px}
/* SALES ANALYSIS : margin below the low margin % */
table.g tr.sa-low:not(.sel) td{background:var(--bad-bg)}
/* ABC ANALYSIS classes */
.abc-A{color:var(--ok)}
.abc-B{color:#1f5fa8}
.abc-C{color:var(--warn)}
.abc-N{color:var(--bad)}
/* EXPENSES : a group line */
table.g tr.ex-hd:not(.sel) td{background:var(--ok-bg)}
/* the bill screen, Marg's arrangement in Swift's fonts (owner 31-10) : the lines, the totals with 3 charge lines, one thin line of keys, a band with the last deals and the Invoice Value */
.billwin .foot{flex-wrap:nowrap}
.billwin .foot>.msg{flex:1 1 0}
/* ADD CHARGES of a bill : Before GST / After GST (owner 02-11) */
.ctg{display:inline-block;width:15px;height:15px;line-height:15px;text-align:center;font-style:normal;font-size:10px;font-weight:700;border-radius:3px;margin-right:5px;color:#fff}
.ctg.bf{background:#2f6f4f}.ctg.af{background:#a9651a}
.modal.chm>div{min-width:560px;outline:0}
.chq{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:14px}
.chb{display:flex;flex-direction:column;gap:3px;text-align:left;padding:12px;border:1px solid #9fb2ac;border-radius:6px;background:#fff;cursor:pointer;font:inherit}
.chb b{font-size:15px;color:#2c4a36;margin-bottom:3px}.chb small{color:#4e5e5a;font-size:12px}
.chb:focus,.chb:hover{outline:2px solid #2c4a36;background:#eef6f0}
.chl2{width:calc(100% - 28px);margin:0 14px 4px;border-collapse:collapse;font-size:12px}
.chl2 th,.chl2 td{border-bottom:1px solid #d7e0dc;padding:3px 5px;text-align:left}.chl2 .num{text-align:right}
.chl2 tr.on td{background:#2c4a36;color:#fff}
.modal p.sm.chn{padding:0 14px 8px;font-size:12px;color:#5c6b68}
.chf{display:grid;grid-template-columns:130px 230px 1fr;gap:6px 10px;align-items:center;padding:14px}
.chf label{font-weight:600}.chf em{font-style:normal;font-size:12px;color:#5c6b68}
.chf input,.chf select{height:26px;font:inherit;width:100%}.chf b{font-weight:600}
.modal p.cher{padding:0 14px 8px;color:#b3261e;font-weight:600;min-height:18px}
body.dark .chb{background:#141c18;color:#dfeae6}body.dark .chb b{color:#9fe1cb}body.dark .chb small{color:#a9b8b3}
.billwin .sbot #b3>.chl{grid-template-columns:130px 12px 1fr;align-items:center;margin:1px 0}
.billwin .sbot #b3>.chl select{height:20px;padding:0 2px;font:inherit;font-size:12px;border:1px solid #9fb2ac;border-radius:4px;background:#fff;width:100%}
.billwin .sbot #b3>.chl input{justify-self:end;width:96px;height:20px;padding:0 5px;font:inherit;text-align:right;border:1px solid #9fb2ac;border-radius:4px}
.billwin .sbot #b3>#r3d,.billwin .sbot #b3>#r3r{grid-template-columns:130px 12px 1fr 86px;align-items:center}
.billwin .sbot #b3 .k3i{display:flex;align-items:center;justify-content:flex-end;gap:4px;overflow:visible}
.billwin .sbot #b3 .bdl{font-size:11px;color:#5b6b66;white-space:nowrap}
.billwin .sbot #b3 .k3i input{width:58px;height:19px;padding:0 4px;border:1px solid #9fb2ac;border-radius:4px;font:inherit;font-size:12px;text-align:right}
body.dark .billwin .sbot #b3 .bdl{color:#cfe0da}
.billwin .form{gap:0}
.billwin .fhead{margin:0;padding:3px 12px;border:0;border-radius:0;box-shadow:none}
.billwin #ln{margin:0;border:0;border-top:1px solid #cfdcd7;border-radius:0;box-shadow:none}
.billwin #ln table.g th{padding:6px 8px}
.billwin #ln table.g td{border-bottom:1px solid #e6ecea}
.billwin #ln table.g tr.sel td,.billwin #ln table.g tr.sel td input,.billwin #ln table.g tr.sel td i,.billwin #ln table.g tbody tr:focus-within td,.billwin #ln table.g tbody tr.sel:focus-within td{background:#ffe9a8!important;color:#3b2f00!important}
.billwin #ln table.g tbody tr:focus-within td input:focus{background:#fff!important;color:#000!important}
.billwin #ln table.g tr.sel .addh{color:#6b5a14}
/* the lines of a bill and an order (owner 01-11) : a line being entered stays white, only the box of the cursor is dark green ; a complete line under the bar is all dark green, white, bold ; the font stays */
body:not(.dark) .ordwin #ln table.g th{background:var(--ok-bg);color:#000;border-right:1px solid #b9dcb9}
body:not(.dark) :is(.billwin,.ordwin) #ln table.g tbody tr.sel td,body:not(.dark) :is(.billwin,.ordwin) #ln table.g tbody tr:focus-within td{background:#fff!important;color:#000!important}
body:not(.dark) :is(.billwin,.ordwin) #ln table.g tbody tr.sel td input,body:not(.dark) :is(.billwin,.ordwin) #ln table.g tbody tr:focus-within td input,body:not(.dark) :is(.billwin,.ordwin) #ln table.g tbody tr.sel td i,body:not(.dark) :is(.billwin,.ordwin) #ln table.g tbody tr:focus-within td i{background:transparent!important;color:#000!important}
body:not(.dark) :is(.billwin,.ordwin) #ln table.g tbody tr.sel:not(:focus-within):not(.lninc) td{background:#2c4a36!important;color:#fff!important;font-weight:400}
body:not(.dark) :is(.billwin,.ordwin) #ln table.g tbody tr.sel:not(:focus-within):not(.lninc) td *{color:#fff!important}
body:not(.dark) :is(.billwin,.ordwin) #ln table.g tbody tr.sel:not(:focus-within):not(.lninc) td b{font-weight:400}
body:not(.dark) :is(.billwin,.ordwin) #ln table.g tbody tr.sel:not(:focus-within):not(.lninc) td input{background:transparent!important;color:#fff!important;border-color:transparent!important;font-weight:400}
body:not(.dark) :is(.billwin,.ordwin) #ln table.g tbody tr.sel:not(:focus-within):not(.lninc) td i,body:not(.dark) :is(.billwin,.ordwin) #ln table.g tbody tr.sel:not(:focus-within):not(.lninc) .expc{background:transparent!important;border-color:transparent!important}
body:not(.dark) :is(.billwin,.ordwin) #ln table.g tbody tr.sel.lninc:not(:focus-within) td:first-child,body:not(.dark) :is(.billwin,.ordwin) #ln table.g tbody tr.sel.lninc:not(:focus-within) td:first-child *{background:#2c4a36!important;color:#fff!important}
html body:not(.dark) :is(.billwin,.ordwin) #ln table.g tbody tr.sel:focus-within td input:focus,html body:not(.dark) :is(.billwin,.ordwin) #ln table.g tbody tr:focus-within td input:focus,html body:not(.dark) :is(.billwin,.ordwin) #ln table.g tbody tr.sel:focus-within td .pcl:focus,html body:not(.dark) :is(.billwin,.ordwin) #ln table.g tbody tr.sel:focus-within td .pcl:focus *{background:#2c4a36!important;color:#fff!important;font-weight:400;border:1px solid #2c4a36!important;outline:none!important;box-shadow:none!important}
body:not(.dark) :is(.billwin,.ordwin) #ln table.g input:focus::selection{background:#2c4a36;color:#fff}
.pcl{display:block;outline:none}
body.dark #ln .pcl:focus{outline:2px solid #e0b000}
#ln table.g tr.lngone td{color:#8a8a8a;text-decoration:line-through}
#ln table.g tr.lngone td *{text-decoration:line-through}
#ln table.g tr.lngone .lntag,body:not(.dark) :is(.billwin,.ordwin) #ln table.g tbody tr.lngone.sel:not(:focus-within) td .lntag{display:inline-block;padding:0 6px;border-radius:3px;background:#c0392b;color:#fff!important;font-size:11px;font-weight:700;text-decoration:none}
/* the item list of a bill : a little further up and down ; the band with the Invoice Value stays (owner 02-11) */
.billwin .pick.pop.itl.wide{top:var(--pt)!important;bottom:var(--pb,4px)}
/* while the item list is open the Invoice Value is one small line under it ; the band comes back when the list closes */
.billwin:has(>.pick.itl.wide) .bband .ld{visibility:hidden}
.billwin:has(>.pick.itl.wide) .bband{align-items:flex-end}
.billwin:has(>.pick.itl.wide) .bband .biv{align-self:flex-end;height:48px;min-height:0;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;padding:0 14px;border-radius:8px}
.billwin:has(>.pick.itl.wide) .bband .biv small{margin:0;font-size:12px;white-space:nowrap}
.billwin:has(>.pick.itl.wide) .bband .biv b{font-size:26px;line-height:1;margin:0}
.bband .biv{min-width:0}
.bband .biv b{display:block;max-width:100%;min-width:0;overflow:hidden}
.bband .biv b::before{content:"\20B9\00A0"}
/* the lower part of the item list : the light green of the headings, more air (owner 02-11) */
body:not(.dark) .pick.pop.itl.wide .pick-f,body:not(.dark) .pick.pop.itl.wide .pick-i{background:var(--ok-bg);color:#2c4a36;border-top-color:#b9dcb9}
body:not(.dark) .pick.pop.itl.wide .pick-f label,body:not(.dark) .pick.pop.itl.wide .pick-n,body:not(.dark) .pick.pop.itl.wide .pinfo span{color:#2c4a36}
body:not(.dark) .pick.pop.itl.wide .pinfo>div+div{border-left-color:#b9dcb9}
.pick.pop.itl.wide .pick-i{padding-top:6px;padding-bottom:6px}
.pick.pop.itl.wide .pinfo>div{row-gap:0;line-height:20px}
.billwin .sbot{gap:0;padding:0;border-top:1px solid #cfdcd7;grid-template-columns:1.45fr .85fr 1.3fr}
.billwin .sbot>div{margin:0;border:0!important;border-right:1px solid #cfdcd7!important;border-radius:0;box-shadow:none;background:#f7faf9;padding:3px 12px}
.billwin .sbot>div:last-child{border-right:0!important}
.billwin .sbot>div>div{line-height:21px}
.billwin .foot{padding:2px 8px;gap:6px;border-top:1px solid #cfdcd7;border-bottom:1px solid #cfdcd7;background:#eef4f1}
.billwin .foot .btn{height:22px;padding:0 10px;font-size:12px;line-height:20px}
.billwin .foot .btn.go,.billwin .foot .btn.big{padding:0 14px}
.bband{flex:0 0 138px;height:138px;display:grid;grid-template-columns:1fr 340px;gap:8px;padding:6px 8px;background:#f7faf9}
.bill9 .bband{flex-basis:128px;height:128px;grid-template-columns:1fr 250px}      /* purchase and sale : one more line in the bill, a smaller Invoice Value, so Last Deals needs no side bar (owner 31-10) */
.bill9 .bband .biv b{font-size:30px}
.bill9 .bband .biv small{font-size:12px;letter-spacing:.12em}
.bill9 .bband .ldp th,.bill9 .bband .ldp td{padding:0 3px}
.bill9 .bband .ldp th:nth-child(3),.bill9 .bband .ldp td:nth-child(3){max-width:174px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bband .ld{height:auto;margin:0;min-height:0;background:#fff;border:1px solid #cfdcd7;border-radius:8px;overflow:hidden}
.bband .ld:empty{display:block;background:transparent;border:0}
.bband .ld-b{min-height:0}
.bband .ld th,.bband .ld td{padding:0 5px;font-size:12px;line-height:18px}
.bband .biv{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;padding:0 12px;background:linear-gradient(135deg,#14463a,#2e7d5b);border-radius:10px;box-shadow:0 2px 6px rgba(20,70,58,.35);font-variant-numeric:tabular-nums}
.bband .biv small{font-size:13px;font-weight:600;letter-spacing:.16em;color:#cfe8df}
.bband .biv b{font-size:40px;line-height:1.1;font-weight:700;color:#fff;white-space:nowrap}
.bband .ld-t{display:flex;align-items:center}
.bband .ld-t span{flex:1 1 0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bband .ld-all{flex:none;margin-left:8px;padding:1px 10px;font:inherit;font-size:12px;font-weight:600;color:#14463a;background:#ffe9a8;border:0;border-radius:4px;cursor:pointer}
.bband .ld-all:hover{background:#ffdb70}
body.dark .billwin .sbot>div,body.dark .bband{background:#1c2429}
body.dark .billwin .foot{background:#1d2a27}
body.dark .billwin .sbot #b3>.chl select,body.dark .billwin .sbot #b3>.chl input,body.dark .billwin .sbot #b3 .k3i input{background:#141c18;color:#dfeae6;border-color:#3a4a45}
body.dark .bband .ld{background:#1d2a27;border-color:#3a4a45}
/* every selection of the software : the same yellow (owner 31-10 : 'HAR JAGAH KA SELECTION YELLOW KRO') */
.mi:hover,.mi.kb,.msub .mi:hover,.msub .mi.kb,#findres div.sel,#findres div:hover,.ccm-i.sel,.ccf-l:focus .ccm-i.sel,.cklist .ck-l div.sel,.attb .att-r.sel,body.dark .mi:hover,body.dark .mi.kb,body.dark #findres div.sel,body.dark #findres div:hover,body.dark .ccm-i.sel,body.dark .ccf-l:focus .ccm-i.sel{background:var(--hi);color:var(--hi-t)}
.ccm-i.sel b,.ccm-i.sel small,.ccf-l .ccm-i.sel b,.ccf-l .ccm-i.sel small{color:var(--hi-t)}
.ccf-l .ccm-i.sel{background:#fff3cf;color:var(--hi-t)}      /* the list of the Control Centre while the cursor is in the options */
/* item register (zzzz274) : the label / qty / value lines under the register */
.irtt { display: grid; grid-template-columns: 120px 90px 1fr; gap: 2px 12px; align-items: baseline; }
.irtt i { font-style: normal; color: #55706a; }
.irtt b, .irtt span { text-align: right; }
.modal.irw { grid-template-rows: minmax(0, 1fr); }      /* the item register windows : a long list scrolls inside, the heading and the totals stay on the screen */
.irw tr.ir2t td { border-top: 1px solid #4f7d6e; }      /* item register Monthly / Daily / Summary : the total line (not bold) */
.modal.irw ~ .pick.pop { z-index: 60; }      /* a list opened from the item register (F5 party) : over the register */
/* STOCK & SALE ANALYSIS */
table.g tr.ssa-co td { background: #dcefe6; font-weight: 700; }
table.g tr.ssa-dv td { background: #eef5f2; font-weight: 600; }
table.g tr.ssa-st td { background: #f6faf8; font-style: italic; border-top: 1px solid #9fc2b6; }
table.g tr.ssa-ct td { background: #e4f1ec; font-weight: 700; border-top: 1px solid #4f7d6e; }
table.g tr.ssa-gt td { background: #cfe6dc; font-weight: 700; border-top: 2px solid #2c4a36; }
.ssa-low { color: #b42318; } .ssa-slow { color: #b54708; } .ssa-dead { color: #b42318; } .ssa-abc { color: #1d6b4f; }
table.g tr.sel .ssa-low, table.g tr.sel .ssa-slow, table.g tr.sel .ssa-dead, table.g tr.sel .ssa-abc { color: inherit; }
.ssa-tr { display: flex; align-items: flex-end; gap: 6px; height: 190px; padding: 12px 16px 6px; background: #fff; }
.ssa-tr > div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; font-size: 11px; }
.ssa-tr i { display: block; width: 100%; background: #7fb3a3; }
.ssa-tr b { font-weight: 400; margin-bottom: 2px; } .ssa-tr span { margin-top: 3px; color: #55706a; text-align: center; }
body.dark .ssa-tr { background: #12181c; }
.bdet .bdf { display: flex; gap: 28px; align-items: center; padding: 5px 14px; background: #fff; border-top: 1px solid #cfe3dc; font-size: 13px; }
.bdet .bdf b { font-weight: 600; }
.bdet .bdq { width: 120px; border: 0; border-bottom: 1px solid #9fb2bd; padding: 0 4px; font: inherit; text-transform: uppercase; background: transparent; }
.bdet .bdb { margin-left: auto; font-weight: 600; }
.bdet .bdi { background: #fff; border-top: 1px solid #4f7d6e; padding: 6px 0; font-size: 13px; }
.bdet .bdi .pinfo > div { min-height: 0; row-gap: 2px; grid-template-columns: 82px 10px 1fr; }
.bdet .bdsf { font-size: 11px; padding: 0 5px; border: 1px solid currentColor; border-radius: 3px; margin-left: 6px; color: #1d6b4f; }
.bdet tr.sel .bdsf { color: inherit; }
/* BATCH TRACE (RECALL) (owner 11-11-2026) : the BLOCKED mark in the batch lists, the trace box (two lists, the yellow stock line) */
.btblk { font-size: 11px; padding: 0 5px; border: 1px solid currentColor; border-radius: 3px; margin-left: 6px; color: #b42318; font-weight: 400; }
tr.sel .btblk { color: inherit; }
.btr .btr-p { display: flex; gap: 10px; align-items: center; padding: 6px 14px; background: #fff; border-bottom: 1px solid #cfe3dc; font-size: 13px; }
.btr .btr-p input { width: 104px; }
.btr .btr-n { color: #55706a; font-size: 12px; margin-left: 8px; }
.btr .btr-i { display: flex; flex-wrap: wrap; gap: 4px 26px; padding: 6px 14px; background: #fff; font-size: 13px; }
.btr .btr-i i { font-style: normal; color: #55706a; margin-right: 6px; }
.btr .btr-i b { font-weight: 600; }
.btr .btr-r { color: #b42318; margin-left: 6px; }
.btr .btr-h { padding: 4px 14px; background: #e8f1ee; color: #1f4f43; font-size: 13px; border-top: 1px solid #cfe3dc; }
.mqb.wide.btr .btr-in { flex: 0 1 auto; max-height: 26vh; min-height: 52px; }
.mqb.wide.btr .btr-out { flex: 1 1 auto; min-height: 90px; }
.btr .btr-y { padding: 6px 14px; background: #fff3bf; color: #5c4700; font-size: 13px; border-top: 1px solid #e6d27a; white-space: pre-wrap; }
.btrt .btr-ta { display: block; width: calc(100% - 28px); height: 240px; margin: 10px 14px; font: 13px/1.4 inherit; resize: none; white-space: pre; }
.modal.btrt > div { width: 720px; }
.btrk .btr-q, .btrt p { white-space: pre-wrap; padding: 0 14px; }
.btr-lt { margin: 12px 0; line-height: 1.5; }
body.dark .btr .btr-p, body.dark .btr .btr-i { background: #12181c; border-color: #38464f; }
body.dark .btr .btr-h { background: #1b2a27; color: #cfe3dc; border-color: #38464f; }
body.dark .btr .btr-y { background: #3a3210; color: #f3e3a0; border-color: #5c4f1c; }
.bdet tr.bdx:not(.sel) td { color: #b42318; }
.bdet tr.bdn:not(.sel) td { color: #b54708; }
.bdet tr.bdz:not(.sel) td { color: #8a9a95; }
body.dark .bdet .bdf, body.dark .bdet .bdi { background: #12181c; border-color: #38464f; }
/* STOCK OVERVIEW (owner 11-11-2026) : the item line, the + / - sign of a tree line, an expired batch's expiry, the lines not in the stock */
.sov .sov-i { display: flex; flex-wrap: wrap; gap: 4px 26px; padding: 6px 14px; background: #fff; font-size: 13px; border-bottom: 1px solid #cfe3dc; }
.sov .sov-i i { font-style: normal; color: #55706a; margin-right: 6px; }
.sov .sov-i b { font-weight: 600; }
.sov .sovt { display: inline-block; width: 14px; height: 14px; line-height: 13px; margin-right: 7px; border: 1px solid #7fa79a; border-radius: 3px; text-align: center; font-size: 13px; cursor: pointer; vertical-align: 1px; }
.sov .sovt.sov0 { border-color: transparent; cursor: default; }
.sov tr:not(.sel) .sov-xp { color: #b42318; }
.sov tr.sov-out:not(.sel) td { color: #55706a; }
.sov tr.sov-h td { background: #e8f1ee; color: #1f4f43; border-top: 1px solid #4f7d6e; }
body.dark .sov .sov-i { background: #12181c; border-color: #38464f; }
body.dark .sov tr.sov-h td { background: #1b2a27; color: #cfe3dc; }

/* messages (owner 04-11 : A + C) - A : done / a note = a white card at the bottom right (Dynamics 365) ; C : something wrong = a strip over the title of the window in use (SAP) */
#toasts{position:fixed;right:16px;bottom:64px;z-index:300;display:flex;flex-direction:column;gap:8px;align-items:flex-end;pointer-events:none}
#toast,.toastc{position:relative;display:none;width:360px;max-width:calc(100vw - 32px);box-sizing:border-box;background:#fff;color:#1d2b27;border:1px solid #d6e1e7;border-left:4px solid #107c41;border-radius:6px;
  box-shadow:0 6px 18px rgba(0,0,0,.14);padding:10px 32px 12px 42px;font-size:13px;line-height:18px;font-weight:400;white-space:pre-wrap;overflow:hidden;pointer-events:auto;animation:toastIn .18s ease-out}
#toast .tc-i,.toastc .tc-i{position:absolute;left:12px;top:10px;width:20px;height:20px;border-radius:10px;background:#107c41;color:#fff;font-size:12px;font-weight:700;line-height:20px;text-align:center}
#toast .tc-h,.toastc .tc-h{display:block;font-weight:600;font-size:13px;line-height:18px;margin-bottom:2px}
#toast .tc-x,.toastc .tc-x{position:absolute;right:10px;top:8px;color:#7a8a85;font-size:13px;line-height:18px;cursor:pointer}
#toast .tc-x:hover,.toastc .tc-x:hover{color:#1d2b27}
#toast .tc-p,.toastc .tc-p{position:absolute;left:0;bottom:0;height:2px;width:100%;background:#107c41;opacity:.45;transform-origin:left}
#toast.note,.toastc.note{border-left-color:#0f6cbd}
#toast.note .tc-i,#toast.note .tc-p,.toastc.note .tc-i,.toastc.note .tc-p{background:#0f6cbd}
#toast.warn,.toastc.warn{border-left-color:#c42b1c}
#toast.warn .tc-i,#toast.warn .tc-p,.toastc.warn .tc-i,.toastc.warn .tc-p{background:#c42b1c}
@keyframes toastIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes toastBar{from{transform:scaleX(1)}to{transform:scaleX(0)}}
#mstrip{position:fixed;display:none;z-index:299;box-sizing:border-box;background:#fdf3f2;color:#8a1c12;border:1px solid #f1c4bf;border-left:4px solid #c42b1c;
  padding:4px 32px 4px 36px;font-size:13px;line-height:18px;font-weight:400;white-space:pre-wrap;box-shadow:0 2px 6px rgba(0,0,0,.10);animation:stripIn .14s ease-out}
#mstrip .ms-i{position:absolute;left:10px;top:50%;margin-top:-8px;width:16px;height:16px;border-radius:8px;background:#c42b1c;color:#fff;font-size:11px;font-weight:700;line-height:16px;text-align:center}
#mstrip .ms-x{position:absolute;right:10px;top:50%;margin-top:-9px;color:#8a1c12;opacity:.65;cursor:pointer;line-height:18px}
#mstrip .ms-x:hover{opacity:1}
@keyframes stripIn{from{opacity:0}to{opacity:1}}
body.dark #toast,body.dark .toastc{background:#1b2428;color:#e3ebe8;border-color:#38464f;box-shadow:0 6px 18px rgba(0,0,0,.45)}
body.dark #toast.ok,body.dark .toastc.ok{border-left-color:#3fb37a}
body.dark #toast.note,body.dark .toastc.note{border-left-color:#4a9be0}
body.dark #toast.warn,body.dark .toastc.warn{border-left-color:#e0574a}
body.dark #toast .tc-x,body.dark .toastc .tc-x{color:#9aaaa5}
body.dark #mstrip{background:#3a1f1c;color:#ffd2cb;border-color:#6b3a33;border-left-color:#e0574a}
body.dark #mstrip .ms-x{color:#ffd2cb}

/* D : the bell (title bar) and its list */
#bell{position:relative;display:inline-flex;align-items:center;justify-content:center;width:26px;height:20px;margin-right:6px;border-radius:10px;color:#2f5148;cursor:pointer}
#bell:hover{background:rgba(47,81,72,.12)}
#bellc{position:absolute;right:-4px;top:-5px;min-width:15px;height:15px;padding:0 3px;box-sizing:border-box;border-radius:8px;background:#0f6cbd;color:#fff;font-size:10px;font-style:normal;font-weight:600;line-height:15px;text-align:center}
#bellc.bc-r{background:#c42b1c}
#bellp{position:fixed;right:12px;top:24px;width:420px;max-width:calc(100vw - 24px);max-height:70vh;display:flex;flex-direction:column;z-index:320;background:#fff;color:#1d2b27;border:1px solid #d6e1e7;border-radius:6px;box-shadow:0 10px 28px rgba(0,0,0,.18);font-size:13px;line-height:18px;outline:none}
#bellp .bl-h{display:flex;align-items:center;gap:8px;padding:8px 12px;border-bottom:1px solid #e3eaee}
#bellp .bl-h b{font-weight:600;font-size:12px;letter-spacing:.04em;color:#2f6b5e}
#bellp .bl-h .sp{flex:1}
#bellp .bl-c{font:inherit;font-size:12px;border:1px solid #c9d6d1;background:#fff;border-radius:4px;padding:1px 8px;cursor:pointer;color:#2f5148}
#bellp .bl-x{cursor:pointer;color:#7a8a85}
#bellp .bl-l{overflow:auto}
#bellp .bl-i{display:grid;grid-template-columns:8px 40px 1fr;gap:8px;align-items:start;padding:7px 12px;border-bottom:1px solid #f0f3f5;white-space:pre-wrap}
#bellp .bl-i i{width:8px;height:8px;border-radius:4px;margin-top:5px;background:#107c41}
#bellp .bl-i.bk-warn i{background:#c42b1c}
#bellp .bl-i.bk-note i{background:#0f6cbd}
#bellp .bl-i.new{background:#f5f9fc}
#bellp .bl-t{color:#7a8a85}
#bellp .bl-e{padding:22px 12px;text-align:center;color:#7a8a85}
#bellp .bl-f{padding:5px 12px;border-top:1px solid #e3eaee;color:#7a8a85;font-size:11px}
/* E : n messages + their list */
#mstrip .ms-n{float:right;margin:0 10px 0 8px;padding:0 7px;border:1px solid #e3a49c;border-radius:9px;background:#fff;color:#8a1c12;font-size:12px;font-weight:600;line-height:16px;cursor:pointer}
#mlist{position:fixed;z-index:310;box-sizing:border-box;background:#fff;border:1px solid #f1c4bf;border-top:0;box-shadow:0 8px 20px rgba(0,0,0,.14);font-size:13px;line-height:18px;outline:none;max-height:50vh;overflow:auto}
#mlist .mle-i{display:grid;grid-template-columns:16px 1fr auto;gap:8px;padding:6px 10px;border-bottom:1px solid #f6e3e0;cursor:pointer;color:#5a1a12;white-space:pre-wrap}
#mlist .mle-i i{width:16px;height:16px;border-radius:8px;background:#c42b1c;color:#fff;font-size:11px;font-style:normal;font-weight:700;line-height:16px;text-align:center}
#mlist .mle-i small{color:#9a6b65;font-size:11px}
#mlist .mle-i.sel,#mlist .mle-i:hover{background:#fdf3f2}
#mlist .mle-f{padding:4px 10px;color:#9a6b65;font-size:11px}
/* F : the buttons of a message */
#toast .tc-a,.toastc .tc-a{display:flex;gap:6px;margin-top:8px}
#toast .tc-a button{font:inherit;font-size:12px;font-weight:600;padding:2px 10px;border:1px solid #c9d6d1;border-radius:4px;background:#fff;color:#1d5b45;cursor:pointer}
#toast .tc-a button:hover{background:#eef6f2}
#mstrip .tc-a{float:right;display:flex;gap:6px;margin-left:8px}
#mstrip .tc-a button{font:inherit;font-size:12px;font-weight:600;padding:0 8px;line-height:16px;border:1px solid #e3a49c;border-radius:4px;background:#fff;color:#8a1c12;cursor:pointer}
/* point 3 : the key bar at the foot of a screen */
.foot.kb-on>.msg{display:none}
.foot>.kbar{display:flex;align-items:center;gap:12px;flex:1;min-width:0;overflow:hidden;font-size:12px;line-height:18px;color:#1e5a50;white-space:nowrap}
.kbar .kb-k{flex:0 0 auto;display:inline-flex;align-items:center;gap:4px}
.kbar kbd,#kbhelp kbd,.ge-h kbd{font-family:inherit;font-size:11px;font-weight:600;line-height:16px;padding:0 5px;border:1px solid #b8c7c1;border-bottom-width:2px;border-radius:3px;background:#fff;color:#1d2b27}
.kbar .kb-r{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;color:#55665f}
.kbar .kb-h{cursor:pointer;color:#55665f}
#kbhelp{position:fixed;left:50%;top:14%;transform:translateX(-50%);width:560px;max-width:calc(100vw - 32px);max-height:72vh;display:flex;flex-direction:column;z-index:330;background:#fff;color:#1d2b27;border:1px solid #d6e1e7;border-radius:6px;box-shadow:0 12px 32px rgba(0,0,0,.22);font-size:13px;line-height:18px;outline:none}
#kbhelp .kh-h{display:flex;align-items:center;padding:8px 12px;border-bottom:1px solid #e3eaee}
#kbhelp .kh-h b{flex:1;font-weight:600;font-size:12px;letter-spacing:.04em;color:#2f6b5e}
#kbhelp .kh-x{cursor:pointer;color:#7a8a85}
#kbhelp .kh-b{overflow:auto;padding:10px 12px}
#kbhelp table{border-collapse:collapse;margin-bottom:8px}
#kbhelp td{padding:3px 12px 3px 0;vertical-align:top}
#kbhelp .kh-t{white-space:pre-wrap;color:#3c4a46;margin-bottom:10px}
#kbhelp .kh-g{border-top:1px solid #e3eaee;padding-top:8px;color:#55665f;font-size:12px;line-height:22px}
/* point 7 : an empty list */
table.g tr.g-empty td{padding:26px 12px;text-align:center;background:transparent}
table.g tr.g-empty .ge{display:inline-flex;flex-direction:column;gap:4px;padding:12px 22px;border:1px dashed #b8c7c1;border-radius:6px;background:#fff;color:#55665f;font-size:13px;line-height:18px}
table.g tr.g-empty .ge b{font-weight:600;color:#1d2b27}
table.g tr.g-empty .ge-h:empty{display:none}
/* point 4 : on the home screen a figure that the side panel shows is not shown again */
#app.dash-on:has(#dash [data-d="items"]) .home .dup-items,
#app.dash-on:has(#dash [data-d="sale"]):has(#dash [data-d="pay"]) .home .dup-today,
#app.dash-on:has(#dash [data-d="cash"]) .home .rcd-cash,
#app.dash-on:has(#dash [data-d="sale"]) .home .rcd-sale,
#app.dash-on:has(#dash [data-d="recv"]) .home .rcd-rec,
#app.dash-on:has(#dash [data-d="low"]) .home .rcd-low{display:none}
/* point 6 : one spacing on the home screen - 8px between, 8 / 10px inside, one border */
.home .cards{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px}
.home .cards+.cards{margin-top:8px!important}
.home .card{padding:8px 10px;border-color:#dbe4e0}
.home .flow{gap:8px 18px;margin-bottom:8px}
.rolec{margin-top:8px}
.rc-c{gap:8px}
.rc{padding:8px 10px;border-color:#dbe4e0}
body.dark #bell{color:#8fd0bf}
body.dark #bellp,body.dark #kbhelp,body.dark #mlist{background:#1b2428;color:#e3ebe8;border-color:#38464f}
body.dark #bellp .bl-i{border-color:#26323a}
body.dark #bellp .bl-i.new{background:#202c31}
body.dark #bellp .bl-c,body.dark #toast .tc-a button{background:#1f282e;color:#d8e4e0;border-color:#38464f}
body.dark .kbar,body.dark .kbar .kb-r{color:#b7c6cc}
body.dark .kbar kbd,body.dark #kbhelp kbd,body.dark .ge-h kbd{background:#1f282e;color:#e3ebe8;border-color:#4a5f58}
body.dark table.g tr.g-empty .ge{background:#1b2428;border-color:#38464f;color:#b7c6cc}
body.dark table.g tr.g-empty .ge b{color:#e3ebe8}
body.dark #mlist .mle-i{color:#ffd2cb;border-color:#3a2a28}
body.dark #mlist .mle-i.sel,body.dark #mlist .mle-i:hover{background:#3a1f1c}

/* A : the bell - days, only wrong things, open */
#bellp .bl-sg,.msset .ms-sg{display:inline-flex;border:1px solid #c9d6d1;border-radius:4px;overflow:hidden}
#bellp .bl-sg span,.msset .ms-sg span{padding:0 9px;font-size:12px;line-height:20px;cursor:pointer;border-left:1px solid #c9d6d1;color:#2f5148;background:#fff}
#bellp .bl-sg span:first-child,.msset .ms-sg span:first-child{border-left:0}
#bellp .bl-sg span.on,.msset .ms-sg span.on{background:#1e3a29;color:#fff}
#bellp .bl-fl{display:flex;gap:6px;padding:6px 12px;border-bottom:1px solid #f0f3f5}
#bellp .bl-fl span{font-size:12px;line-height:18px;padding:0 8px;border-radius:9px;border:1px solid #d6e1e7;cursor:pointer}
#bellp .bl-fl span.on{background:#eef6f2;border-color:#107c41;color:#107c41}
#bellp .bl-d{padding:3px 12px;background:#f5f8f7;color:#6b7a75;font-size:11px;font-weight:600;letter-spacing:.04em}
#bellp .bl-i{grid-template-columns:8px 40px 1fr auto;cursor:default}
#bellp .bl-i.sel{background:#eef4f1}
#bellp .bl-o{color:#0f6cbd;font-size:12px;cursor:pointer;white-space:nowrap}
#bellp .bl-o:hover{text-decoration:underline}
/* C : my message settings */
#toasts.tp-bl{right:auto;left:16px;align-items:flex-start}
#toasts.tp-tr{bottom:auto;top:56px}
.msset>div{min-width:560px}
.msset .ms-b{padding:4px 0}
.msset .ms-r{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;padding:8px 16px;border-bottom:1px solid #eef2f0;cursor:pointer}
.msset .ms-r small{display:block;color:#7a8a85;font-size:11px;line-height:15px}
.msset .ms-r.sel{background:#f2f7f5;box-shadow:inset 3px 0 0 #2f6b5e}
/* B : the reason under a wrong box */
.mf-c:has(>.fvs){flex-wrap:wrap;row-gap:0}
.mf-c .fvs{flex:0 0 auto;order:9;box-sizing:border-box;display:flex;align-items:center;gap:5px;margin-top:2px;color:#a4262c;font-size:12px;line-height:16px;font-weight:400;white-space:normal}
.mf-c .fvs b{flex:0 0 14px;width:14px;height:14px;border-radius:7px;background:#c42b1c;color:#fff;font-size:10px;line-height:14px;text-align:center}
.mf-c .fvs.w{color:#8a5a00}
.mf-c .fvs{grid-column:1/-1;grid-row:3}      /* a form with the label above the box : the reason in a line of its own under the box */
.mf-r:has(.fvs){align-items:start}      /* the boxes of that line stay on one level ; only the wrong one grows below */
.mf-c .fvs.w b{background:#c98a00}
.mf-c input.fwarn{border-color:#c98a00!important;box-shadow:0 0 0 1px #c98a00 inset}
body.dark #bellp .bl-d{background:#202c31;color:#9aaaa5}
body.dark #bellp .bl-i.sel,body.dark .msset .ms-r.sel{background:#22302b}
body.dark #bellp .bl-sg span,body.dark .msset .ms-sg span{background:#1f282e;color:#d8e4e0;border-color:#38464f}
body.dark #bellp .bl-sg span.on,body.dark .msset .ms-sg span.on{background:#2f6b5e;color:#fff}
body.dark .mf-c .fvs{color:#ff9a90}
body.dark .mf-c .fvs.w{color:#f0c060}

/* A : an alert card (amber) ; who did it */
#toast.al,.toastc.al{border-left-color:#c98a00}
#toast.al .tc-i,#toast.al .tc-p,.toastc.al .tc-i,.toastc.al .tc-p{background:#c98a00}
#toast .tc-by,.toastc .tc-by{display:block;margin-top:3px;color:#7a8a85;font-size:11px;line-height:15px}
#bellp .bl-i.bk-al i{background:#c98a00}
#bellp .bl-hd{display:block;font-weight:600;color:#8a5a00}
#bellp .bl-by{font-weight:600;margin-right:6px;color:#1e5a50}
#bellp .bl-fl .sp{flex:1;border:0;padding:0;cursor:default}
#bellp{width:500px}
#bellp .bl-h button,#bellp .bl-sg span{white-space:nowrap}
/* A : the alert rules screen */
.alr{display:grid;grid-template-rows:auto auto;gap:12px;padding:10px}
.alr-g{outline:none;border:1px solid #c9d6d1;background:#fff}
.alr-g:focus{border-color:#2f6b5e}
.alr td{vertical-align:middle}
.alsw{display:inline-block;width:30px;height:16px;border-radius:8px;background:#b8c7c1;position:relative;cursor:pointer;vertical-align:middle}
.alsw::after{content:"";position:absolute;left:2px;top:2px;width:12px;height:12px;border-radius:6px;background:#fff}
.alsw.on{background:#107c41}
.alsw.on::after{left:16px}
.alf{display:grid;grid-template-columns:120px minmax(0,420px);gap:8px 12px;align-items:center;padding:10px 12px;background:#fff;border:1px solid #c9d6d1;max-width:620px}
.alf-h{grid-column:1/-1;font-weight:600;color:#2f6b5e}
.alf label{color:#1e5a50}
.alf input:not([type=checkbox]){padding:3px 7px;border:1px solid #9fb2bd;font:inherit;font-size:13px}
.alf small{grid-column:2;color:#7a8a85;font-size:11px;line-height:15px}
.alto{display:flex;flex-wrap:wrap;gap:4px 14px}
.alck{display:inline-flex;align-items:center;gap:4px;color:#1d2b27!important}
/* C : F1 on a box */
#fhelp{position:fixed;z-index:330;background:#fff;color:#1d2b27;border:1px solid #d6e1e7;border-radius:6px;box-shadow:0 10px 28px rgba(0,0,0,.2);font-size:12px;line-height:17px}
#fhelp .fh-h{display:flex;align-items:center;gap:8px;padding:6px 10px;background:#f2f7f5;border-bottom:1px solid #e3eaee;border-radius:6px 6px 0 0}
#fhelp .fh-h span{flex:1;font-weight:600;color:#2f6b5e}
#fhelp .fh-h small{color:#7a8a85;font-size:11px}
#fhelp .fh-b{padding:8px 10px}
#fhelp .fh-w{margin-bottom:6px}
#fhelp .fh-r{display:grid;grid-template-columns:76px 1fr;gap:6px;margin-bottom:4px}
#fhelp .fh-r i{font-style:normal;color:#7a8a85}
#fhelp .fh-ok{color:#107c41}
#fhelp .fh-no{color:#a4262c}
body.dark #fhelp,body.dark .alf,body.dark .alr-g{background:#1b2428;color:#e3ebe8;border-color:#38464f}
body.dark #fhelp .fh-h{background:#202c31;border-color:#38464f}
body.dark .alck{color:#e3ebe8!important}

/* C : UNUSUAL - TODAY on the Owner's home ; in the bell */
.rc-in{margin-top:8px}
.rc-in .rc-h small{font-weight:400;color:#7a8a85;letter-spacing:0}
.in-r{display:grid;grid-template-columns:18px 1fr auto;gap:8px;align-items:start;background:#fff;border:1px solid #dbe4e0;border-left:4px solid #7a4ab8;border-radius:6px;padding:6px 10px;margin-bottom:6px}
.in-r[data-go]{cursor:pointer}
.in-r[data-go]:hover,.in-r[data-go]:focus{border-color:#7a4ab8;outline:none;background:#faf8ff}
.in-r i{font-style:normal;width:18px;height:18px;border-radius:9px;background:#7a4ab8;color:#fff;font-size:11px;font-weight:700;line-height:18px;text-align:center}
.in-r b{display:block;font-weight:600;font-size:13px;line-height:18px}
.in-r small{display:block;color:#6b7f79;font-size:11px;line-height:15px}
.in-r span{color:#0f6cbd;font-size:12px;white-space:nowrap}
.in-more{font-size:11px;color:#7a8a85}
#bellp .bl-i.bk-in i{background:#7a4ab8}
body.dark .in-r{background:#1c2428;border-color:#33413f;border-left-color:#9a74d8}

/* AI REPORTS */
#airep{display:inline-flex;align-items:center;height:20px;padding:0 10px;margin-right:8px;border:1px solid #b7a6ec;border-radius:10px;background:#faf8ff;color:#4b3d8f;font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap}
#airep:hover{background:#f1ecff}
.rd-w{display:flex;flex-direction:column;gap:8px;padding:10px;height:100%;box-sizing:border-box;min-height:0;outline:none}
.rd-h{display:flex;align-items:center;gap:10px}
.rd-h b{font-weight:600;color:#2f6b5e;letter-spacing:.04em}
.rd-h small{color:#7a8a85}
.rd-h .sp{flex:1}
.rd-l,.rd-g{flex:1;min-height:0;overflow:auto;border:1px solid #c9d6d1;background:#fff;outline:none}
.rd-l:focus,.rd-g:focus{border-color:#2f6b5e}
.rd-e{display:flex;flex-direction:column;align-items:center;gap:4px;padding:30px;color:#55665f}
.rd-e b{color:#1d2b27;font-weight:600}
.rd-q{width:100%;box-sizing:border-box;min-height:84px;padding:8px 10px;border:1px solid #8f7cc8;border-radius:6px;font:inherit;font-size:14px;line-height:20px;resize:vertical;outline:none}
.rd-q:focus{box-shadow:0 0 0 3px #e6defc}
.rd-hint{font-size:12px;color:#7a8a85}
.rd-ex{font-size:12px;color:#55665f;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.rd-ex span{border:1px solid #d9d0f5;background:#faf8ff;border-radius:10px;padding:0 8px;cursor:pointer;color:#4b3d8f}
.rd-busy{color:#4b3d8f;font-size:13px;display:flex;align-items:center;gap:8px;min-height:20px}
.rd-spin{width:14px;height:14px;border:2px solid #d9d0f5;border-top-color:#8f7cc8;border-radius:50%;animation:rdspin .8s linear infinite}
@keyframes rdspin{to{transform:rotate(360deg)}}
.rd-t{display:grid;grid-template-columns:110px 1fr;gap:8px 12px;align-items:center;background:#fff;border:1px solid #c9d6d1;border-radius:6px;padding:10px 12px}
.rd-t>label{color:#1e5a50;font-weight:600;font-size:12px}
.rd-t select,.rd-t input{font:inherit;font-size:13px;padding:2px 6px;border:1px solid #9fb2bd}
.rd-t input#rda,.rd-t input#rdz{width:96px}
.rd-t input#rdl{width:60px}
.rd-c{display:inline-flex;align-items:center;gap:4px;border:1px solid #b7a6ec;background:#faf8ff;border-radius:10px;padding:0 8px;margin:0 4px 3px 0;font-size:12px;line-height:20px;outline:none}
.rd-c:focus{box-shadow:0 0 0 2px #f0b400}
.rd-c i{font-style:normal;color:#a4262c;cursor:pointer}
.rd-add{font-size:12px!important;color:#0f6cbd;border:1px dashed #9fb2bd!important;background:#fff}
.rd-ad{color:#0f6cbd;font-size:12px;cursor:pointer;outline:none}
.rd-ad:focus{text-decoration:underline}
.rd-oi{width:min(520px,100%);font:inherit;font-size:13px;padding:2px 6px;border:1px solid #8f7cc8}
.rd-und{background:#faf8ff;border-left:4px solid #8f7cc8;padding:6px 10px;color:#4b3d8f;font-size:12px;line-height:17px}
.rd-not{background:#fff8e8;border-left:4px solid #c98a00;padding:6px 10px;color:#8a5a00;font-size:12px;line-height:17px}
.rd-res table.g tr.rd-sub td{font-weight:600;background:#eef4f1}
.rd-res table.g tr.rd-tot td{font-weight:600;background:#dfeee7;border-top:2px solid #2f6b5e}
.rd-chk{font-size:12px;padding:4px 10px;border-radius:4px}
.rd-chk.ok{background:#eef8f2;color:#0b5a2f}
.rd-chk.no{background:#fdf3f2;color:#8a1c12}
.rdsv>div{min-width:440px}
.rdsv-b{display:grid;grid-template-columns:100px 1fr;gap:10px 12px;align-items:center;padding:14px 16px}
.rdsv-b input#rdsn{font:inherit;font-size:13px;padding:3px 7px;border:1px solid #9fb2bd}
body.dark #airep{background:#2a2440;color:#d9ccff;border-color:#5b4a99}
body.dark .rd-t,body.dark .rd-l,body.dark .rd-g,body.dark .rd-q{background:#1b2428;color:#e3ebe8;border-color:#38464f}

/* B : AI SUMMARY */
#aisb{position:fixed;z-index:325;width:440px;max-width:calc(100vw - 16px);background:#fff;color:#1d2b27;border:1px solid #d9d0f5;border-top:3px solid #8f7cc8;border-radius:6px;box-shadow:0 12px 30px rgba(0,0,0,.2);font-size:13px;line-height:19px;outline:none}
#aisb .ais-h{display:flex;align-items:center;gap:8px;padding:7px 12px;border-bottom:1px solid #eee8fb}
#aisb .ais-h b{font-weight:600;color:#4b3d8f;font-size:12px;letter-spacing:.04em;white-space:nowrap}
#aisb .ais-h span{flex:1;color:#7a8a85;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#aisb .ais-h .ais-x{flex:0 0 auto;cursor:pointer}
#aisb .ais-b{padding:8px 12px 10px}
#aisb ul{margin:0;padding-left:18px}
#aisb li{margin:3px 0}
#aisb .ais-f{display:flex;align-items:center;gap:8px;margin-top:8px;color:#7a8a85;font-size:11px;line-height:15px}
#aisb .ais-f span{flex:1}
#aisb .ais-l{font:inherit;font-size:12px;border:1px solid #d9d0f5;background:#faf8ff;color:#4b3d8f;border-radius:4px;padding:1px 9px;cursor:pointer}
#aisb .ais-e{color:#a4262c}
.ais-btn{border-color:#b7a6ec!important;color:#4b3d8f!important;background:#faf8ff!important}
body.dark #aisb{background:#1b2428;color:#e3ebe8;border-color:#5b4a99}

/* AI REPORTS - interactive : the talk with the AI, the rows that open */
.rd-talk{max-height:260px;overflow:auto;display:flex;flex-direction:column;gap:6px;padding:4px 2px}
.rd-tu{align-self:flex-end;max-width:75%;background:#e8f2ee;border:1px solid #c9d6d1;border-radius:10px 10px 2px 10px;padding:5px 10px;white-space:pre-wrap}
.rd-ta{align-self:flex-start;max-width:80%;background:#faf8ff;border:1px solid #d9d0f5;border-radius:10px 10px 10px 2px;padding:5px 10px;color:#2d2560}
.rd-ta b{color:#8f7cc8}
.rd-tc{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.rd-tc span{border:1px solid #b7a6ec;background:#fff;color:#4b3d8f;border-radius:10px;padding:0 9px;font-size:12px;line-height:20px;cursor:pointer}
.rd-tc span:hover{background:#f1ecff}
.rd-path{font-size:12px;color:#4b3d8f}
.rd-path span{background:#faf8ff;border:1px solid #d9d0f5;border-radius:10px;padding:0 8px}
.rd-path small{color:#7a8a85}
.rd-res td.rd-go{color:#0f5a8a;cursor:pointer;text-decoration:underline;text-decoration-color:#9fc4dc;text-underline-offset:2px}
.rd-res tr.sel td.rd-go{color:#fff;text-decoration-color:#9fc4dc}
body.dark .rd-tu{background:#22302b;border-color:#38464f}
body.dark .rd-ta{background:#2a2440;border-color:#5b4a99;color:#e3dcff}
/* LIST LETTERS (owner 05-11 : 'saari lines 15px, badi screen pe 16px') : every line of every list 15 px (a row 28), a screen wider than 1600 16 px ;
   Compact (Control Centre > Screen > List letters, or each user's My settings) = 13 px as before, more lines. The bill window stays as it is (zzzz219).
   TRIAL 06-11-2026 (owner : 'font 13 karo ek baar') : every list 13 px, the selected line too (it no longer grows), the item list as well ; wider than 1600 : 14 px. */
:root{--lf:14px;--lh:18px;--lsf:14.5px;--lsh:18px}      /* TRIAL 07-11 (owner : 'item list and all ki ek pxl size bada kro, dekhta hu') : 13 -> 14 */      /* owner 06-11 : 'side screen wala green do patti me, and .5 size bada krna selection pr' */
@media (min-width:1601px){:root{--lf:15px;--lh:19px;--lsf:15.5px;--lsh:19px}}
body.lcompact,.billwin{--lf:14px;--lh:normal;--lsf:14.5px;--lsh:18px}
:where(:not(#ln))>table.g td,.ordwin #ln>table.g td{font-size:var(--lf);line-height:var(--lh)}
.gunc table.g td:last-child{white-space:normal}      /* GST Uncertain Transactions : the reason in 2 lines, the list fits the window */

/* PREMIUM BOX + TICK LIST (owner 06-11-2026 : 'box premium nhi lga, curved hona chaiye, har jgh same colour, font crisp, length bada') :
   one green (#2f5148), round corners, whole-pixel fonts, a smaller box ; the own dropdown (fsDrop) instead of the browser's blue list.
   Used by Stock Openings, Filtered Stock, Batch Stock ; the tick list everywhere (checkList). */
.fsbox{width:360px;max-width:none;margin:40px auto;background:#fff;border:0;border-radius:14px;box-shadow:0 8px 24px rgba(22,33,31,.16);padding:12px 16px 14px;grid-template-columns:1fr 150px;gap:6px 12px}
.fsbox .fs-t{font-size:14px;font-weight:600;letter-spacing:.04em;background:#2f5148;margin:-12px -16px 6px;padding:11px 16px;border-radius:14px 14px 0 0}
.fsbox label{font-size:13px;font-weight:400;color:#33504a;line-height:30px;white-space:nowrap}
.fsbox input,.fsbox select{width:150px;height:30px;font-size:13px;font-family:inherit;color:#16211f;border:1px solid #c9d6d1;border-radius:8px;padding:0 10px;background:#fff}
.fsbox select{appearance:none;-webkit-appearance:none;padding-right:26px;cursor:pointer;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%234d7a6f'/%3E%3C/svg%3E") no-repeat right 10px center}
#app .fsbox select:focus,#app .fsbox input:not([type=checkbox]):not([type=radio]):focus{outline:0!important;border-color:#2f5148!important;box-shadow:0 0 0 3px #d6e6e0!important;background-color:#fff!important;color:#16211f!important}
#app .fsbox select:focus{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%232f5148'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 10px center!important}
.fsbox .fs-b{justify-content:flex-end;gap:8px;margin-top:8px}
.fsbox .fs-b .btn,.cklist .btn{border-radius:8px;font-size:13px;font-weight:600;padding:6px 18px;background:#fff;border:1px solid #c9d6d1;color:#2f5148}
.fsbox .fs-b .btn.go,.cklist .btn.go{background:#2f5148;border-color:#2f5148;color:#fff}
.fsbox .fs-b .btn:focus,.cklist .btn:focus{outline:0;box-shadow:0 0 0 3px #d6e6e0}
.fsw{position:relative;display:inline-block}
.fsdd{position:absolute;left:0;top:32px;width:150px;background:#fff;border:1px solid #c9d6d1;border-radius:8px;box-shadow:0 6px 16px rgba(0,0,0,.12);z-index:60;overflow:hidden;padding:2px 0}
.fsdd div{padding:0 10px;height:28px;line-height:28px;font-size:13px;color:#16211f;cursor:pointer;white-space:nowrap}
.fsdd div.s{color:#1e3a29;font-weight:600}
.fsdd div.k,.fsdd div:hover{background:#dcebe5}
.cklist{width:440px;padding:0;border-radius:14px;overflow:hidden;box-shadow:0 8px 24px rgba(22,33,31,.22)}
.modal>.cklist{border:0;min-width:0;box-shadow:0 8px 24px rgba(22,33,31,.22)}
.cklist h4{margin:0;padding:11px 16px;background:#2f5148;color:#fff;font-size:14px;font-weight:600;letter-spacing:.03em;border-radius:0;display:flex;justify-content:space-between;align-items:center;gap:12px}
.cklist h4 em{font-style:normal;background:#fff;color:#2f5148;border-radius:10px;padding:1px 9px;font-size:12px;font-weight:600;white-space:nowrap}
.cklist input{margin:12px 16px 8px;height:32px;border:1px solid #c9d6d1;border-radius:8px;font-size:13px;padding:0 10px 0 30px;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Ccircle cx='6' cy='6' r='4.5' fill='none' stroke='%235c6b68' stroke-width='1.6'/%3E%3Cpath d='M9.5 9.5l3.5 3.5' stroke='%235c6b68' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat 10px center}
#app .cklist input:not([type=checkbox]):not([type=radio]):focus{outline:0!important;border-color:#2f5148!important;box-shadow:0 0 0 3px #d6e6e0!important;background-color:#fff!important;color:#16211f!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Ccircle cx='6' cy='6' r='4.5' fill='none' stroke='%232f5148' stroke-width='1.6'/%3E%3Cpath d='M9.5 9.5l3.5 3.5' stroke='%232f5148' stroke-width='1.6'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:10px center!important}
.cklist .ck-l{margin:0 16px;border:1px solid #e1e8e5;border-radius:10px;font-size:13px;min-height:200px}
.cklist .ck-l:focus{outline:0}
.cklist .ck-l div{display:flex;align-items:center;gap:10px;padding:0 10px;height:30px;line-height:30px;border-bottom:1px solid #eef2f0;color:#16211f}
.cklist .ck-l div .c{flex:0 0 16px;width:16px;height:16px;border-radius:4px;border:1.5px solid #9fb3ac;display:grid;place-items:center;font-size:11px;line-height:1;color:#fff}
.cklist .ck-l div.t .c{background:#2f5148;border-color:#2f5148}
.cklist .ck-l div.none{color:#5c6b68}
.cklist .ck-k{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 16px 12px;margin:0;font-size:12px;color:#5c6b68}
.cklist .ck-k span{flex:1 1 auto;line-height:16px}.cklist .ck-k .btn{flex:0 0 auto;white-space:nowrap}
body.dark .fsbox,body.dark .cklist,body.dark .fsdd{background:#1d2428;color:#dde}
body.dark .fsbox label{color:#b9c8c3}
body.dark .fsbox input,body.dark .fsbox select,body.dark .cklist input{background-color:#11181b;color:#dde;border-color:#3a4a50}
body.dark .fsdd div{color:#dde}body.dark .fsdd div.k,body.dark .fsdd div:hover{background:#2a3a35}
body.dark .cklist .ck-l{border-color:#3a4a50}body.dark .cklist .ck-l div{color:#dde;border-color:#2a353c}
.mc-cl td:nth-child(2),.mc-cl td:nth-child(4){color:#2e7d32}      /* MONTH CLOSE : a closed month */
#app .cklist input#mc_why:focus{background-image:none!important}      /* MONTH CLOSE : the reason box (no find icon) */
/* FIND BOX OF EVERY LIST (owner 06-11-2026 chose sample C : 'Search box C lagao') : a white round box with a search sign, a soft grey border and a light green ring - no orange / yellow */
body:not(.dark) #app .pick .pick-f input.pick-q,body:not(.dark) #app .pick .pick-f input.pick-q:focus{width:280px;height:28px;padding:0 10px 0 30px;border:1px solid #9fb8ae!important;border-radius:14px;outline:none!important;box-shadow:0 0 0 2px #c8e0d6!important;color:#1d2b27!important;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234d7a6f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='10' r='7'/%3E%3Cpath d='M21 21l-6-6'/%3E%3C/svg%3E") no-repeat 10px center!important}

/* BATCH DETAIL WINDOW - sample B (owner 07-11-2026 : 'sab me gap bht jyada hai', 'cost with deal wala line baahr nkl gya', 'REFER MARG WINDOW') :
   Marg way - label : value close together, thin boxes, small rows ; the heading of the margins in 2 lines so it stays inside the window */
.modal.bdw>div{width:min(940px,96%);padding:0 0 4px;background:#eef6f2}      /* owner 07-11 : 'ye thora jyada compact ho gya' - opened up to the size of the sample */
.modal.bdw h4{padding:7px 16px;font-size:13px;border-radius:6px 6px 0 0}
.modal.bdw .bdw-t{padding:8px 16px 7px;font-size:16px;border-bottom:1px solid #c5d8d0}
.modal.bdw .bdw-t b{font-weight:600}
.modal.bdw .bdw-g{grid-template-columns:96px minmax(0,1fr) 96px minmax(0,1fr) 96px minmax(0,1fr);gap:6px 14px;padding:9px 16px;border-bottom:1px solid #c5d8d0}
.modal.bdw .bdw-g label{display:flex;justify-content:space-between;color:#2f5148;font-weight:400;font-size:14px;white-space:nowrap}
.modal.bdw .bdw-g label:not(:empty)::after{content:":";padding-left:4px}
.modal.bdw .bdw-g span{font-weight:400;font-size:14px;text-align:right;padding-right:8px}
.modal.bdw .bdw-g span.bdw-d{padding-right:0;justify-content:flex-end}
.modal.bdw .bdw-g input{height:27px;padding:0 8px;border:1px solid #b9cbc4;border-radius:4px;font-weight:400;font-size:14px;background:#fff}
.modal.bdw .bdw-d input{width:64px}
.modal.bdw .bdw-m{width:100%;margin:0;font-size:14px}
.modal.bdw .bdw-m th{background:#4d7a6f;color:#fff;font-weight:400;font-size:13px;line-height:1.2;padding:5px 8px;border-bottom:0;white-space:nowrap}
.modal.bdw .bdw-m td{padding:5px 8px;background:#fff}
.modal.bdw .acts{padding:7px 16px;background:#eef6f2}
.modal.bdw .acts .msg{font-size:13px}

/* MARGIN ALERT of the Batch Detail Window (owner 07-11-2026, as Dynamics 365) : the NEW line red when its sales margin is under the minimum */
.modal.bdw .bdw-m tr.mlow td{background:#fbe4e4!important;color:#a32d2d}
.modal.bdw .bdw-al{display:none;padding:5px 16px;color:#a32d2d;font-size:13px;background:#fbe4e4;border-top:1px solid #f0c4c4}
.modal.bdw .bdw-al.on{display:block}
/* EXTRA FIELDS (owner 07-11-2026) : Masters > Extra Fields ; a list field in the Batch Detail Window */
.xfw{max-width:1000px;margin:14px auto;background:#fff;border:1px solid var(--line)}
.xf-top{display:flex;gap:12px;align-items:center;padding:10px 14px;background:#eef6f2;border-bottom:1px solid #c5d8d0}
.xf-top label{color:#2f5148}.xf-top select{height:28px;min-width:300px}
.xf-n{font-size:12px;color:#5b6b66}
.xf-t{width:100%}.xf-t td{padding:4px 8px}.xf-t td:first-child{width:40px;text-align:center}
.xf-t input,.xf-t select{width:100%;height:27px;box-sizing:border-box;padding:0 8px;border:1px solid #b9cbc4;border-radius:4px;background:#fff}
.xf-t input:disabled{background:#f1f4f3;border-color:#e0e6e4}
.xfw .acts{display:flex;align-items:center;gap:10px;padding:8px 14px;background:#eef6f2}.xfw .acts .msg{flex:1;font-size:12px;color:#2f5148}
.modal.bdw .bdw-g select{width:100%;height:27px;padding:0 6px;border:1px solid #b9cbc4;border-radius:4px;font-size:14px;background:#fff}
.modal.bdw .bdw-g input.fbad{border-color:#c0392b!important}
.modal.bdw .bdw-g span.bdw-mg{grid-column:span 3;text-align:left;color:#2f5148}      /* the margin box : what it makes (owner 10-11) */

/* POPUP BOXES = sample B + the side border of C (owner 07-11-2026 : 'Popup sample B lagao, BUT SIDE ME BORDER LGAO LIKE C') :
   a white card, rounded, the title dark on white, a soft line over the buttons, the side panel green on the left ; red / yellow ones keep only their colour on the side */
.modal:not(.bdw):not(.vchm)>div{border:1px solid #d5e2dd;border-left:5px solid #4d7a6f;border-radius:12px;box-shadow:0 10px 30px rgba(20,40,34,.22);overflow:hidden;background:#fff}
.modal:not(.bdw):not(.vchm) h4{background:#fff;color:#1d2b27;font-size:16px;font-weight:600;padding:14px 20px 6px;letter-spacing:0}
.modal:not(.bdw):not(.vchm) p{padding:4px 20px 16px;color:#3d4d48;font-size:14px;line-height:1.6}
.modal:not(.bdw):not(.vchm) .acts{background:#fff;border-top:1px solid #edf2f0;padding:10px 16px;gap:8px}
.modal:not(.bdw):not(.vchm) .acts .btn{border-radius:8px;min-height:32px;padding:4px 16px;font-size:14px}
.modal:not(.bdw):not(.vchm) .acts .btn.go{background:#2f6b5e;border-color:#2f6b5e;color:#fff}
.modal.mred:not(.bdw)>div{border-left-color:#c62828;background:#fff;box-shadow:0 10px 30px rgba(120,20,20,.25)}
.modal.mred:not(.bdw) h4{background:#fff;color:#b71c1c}
.modal.mred:not(.bdw) p{color:#7f1010;font-weight:400}
.modal.myel:not(.bdw)>div{border-left-color:#4d7a6f;background:#fff;box-shadow:0 10px 30px rgba(20,40,34,.22)}
.modal.myel:not(.bdw) h4{background:#fff;color:#1d2b27}
.modal.myel:not(.bdw) p{color:#3d4d48;font-weight:400}
.modal .mtb{padding:4px 20px 14px;max-height:60vh;overflow:auto}
.mtab{border-collapse:collapse;width:100%;font-size:14px;min-width:420px}
.mtab th{font-weight:500;color:#5b6b66;font-size:12px;text-align:left;padding:4px 10px;border-bottom:1px solid #e3ebe8}
.mtab td{padding:4px 10px;color:#1d2b27}
.mtab .num{text-align:right}
.mtab tr.msep td{border-top:1px solid #e3ebe8}
.mtab tr.mtot td{border-top:1px solid #c5d8d0;font-weight:600}
.mtab tr.mbad td{color:#a32d2d}
.modal.mwant:not(.bdw)>div{min-width:720px}.modal.mwant:not(.bdw) .acts{flex-wrap:nowrap}.modal.mwant:not(.bdw) .acts .btn{min-width:96px}
/* POPUP BOXES = sample A (owner 07-11-2026 : 'Popup sample A lagao' - after B was seen) : the Marg way - the green bar on top with the title,
   a thin green frame, the light green foot, the key letter on every button. These rules come after sample B and take its place. */
.modal:not(.bdw):not(.vchm)>div{border:1px solid #4d7a6f;border-left:1px solid #4d7a6f;border-radius:6px;box-shadow:0 8px 24px rgba(20,40,34,.28);overflow:hidden;background:#fff}
.modal:not(.bdw):not(.vchm) h4{background:#4d7a6f;color:#fff;font-size:13px;font-weight:600;padding:7px 14px;letter-spacing:.04em;text-transform:uppercase}
.modal:not(.bdw):not(.vchm) p{padding:12px 16px 14px;color:#1d2b27;font-size:14px;line-height:1.6}
.modal:not(.bdw):not(.vchm) .acts{background:#eef6f2;border-top:1px solid #c5d8d0;padding:8px 12px;gap:6px}
.modal:not(.bdw):not(.vchm) .acts .btn{border-radius:4px;min-height:30px;padding:3px 12px;font-size:14px;border:1px solid #9fb8ae;background:#fff;color:#1d2b27}
.modal:not(.bdw):not(.vchm) .acts .btn.go{background:#4d7a6f;border-color:#4d7a6f;color:#fff}
.modal .acts .btn[data-kl]::before{content:attr(data-kl);display:inline-block;min-width:16px;padding:0 4px;margin-right:6px;border:1px solid #9fb8ae;border-radius:3px;background:#f4f8f6;color:#2f5148;font-size:11px;line-height:16px;text-align:center;font-weight:600}
.modal .acts .btn.go[data-kl]::before{background:#fff;border-color:#fff;color:#2f5148}
.modal.mred:not(.bdw)>div{border-color:#c62828}
.modal.mred:not(.bdw) h4{background:#c62828;color:#fff}
.modal.myel:not(.bdw)>div{border-color:#4d7a6f}
.modal.myel:not(.bdw) h4{background:#4d7a6f;color:#fff}
.modal .mtb{padding:8px 16px 12px}
.modal .acts .btn[data-kl]{white-space:nowrap}.modal.mwant:not(.bdw)>div{min-width:860px}
/* BOXES IN A LIST OF A WINDOW (Challan Loading LOAD QTY / FREE ...) (owner 07-11-2026 : 'iska box search ka jaise curved bnao, and fonts item jitna kro') :
   round as the Find box, soft border + light green ring ; the lines in the letter size of the item list */
.modal table.g td,.modal table.g td input{font-size:var(--lf)}
.modal table.g td input{height:24px;padding:0 10px;border:1px solid #9fb8ae;border-radius:12px;background:#fff;box-shadow:0 0 0 2px #e3f0ea;box-sizing:border-box}
.modal table.g td input:disabled{background:#f1f4f3;box-shadow:none;border-color:#dde5e2}

/* FAST & SLOW MOVING ITEMS / DEAD STOCK (owner 07-11-2026) : the class of a line */
.fsn-b{display:inline-block;border-radius:3px;padding:0 6px;font-size:12px;font-weight:600}
.fsn-F{background:#e2f2e6;color:#27500a}.fsn-S{background:#faeeda;color:#633806}.fsn-N{background:#fbe4e4;color:#791f1f}.fsn-D{background:#444441;color:#fff}
table.g tr.sel .fsn-b{background:#fff}
body:not(.dark) :not(#ln)>table.g tr.sel td b.fsn-b{background:#fff;color:#2c4a36!important}

/* INVENTORY TURNOVER (owner 07-11-2026) */
.tv-hi{color:#27500a}.tv-lo{color:#a32d2d}.tv-o{color:#2f5148;font-weight:600}
body:not(.dark) :not(#ln)>table.g tr.sel td .tv-hi,body:not(.dark) :not(#ln)>table.g tr.sel td .tv-lo{color:#fff!important}

/* LOST / INACTIVE CUSTOMERS (owner 07-11-2026) */
.lc-b{display:inline-block;border-radius:3px;padding:0 6px;font-size:12px;font-weight:600}
.lc-lo{background:#fbe4e4;color:#791f1f}.lc-sl{background:#faeeda;color:#633806}.lc-dr{background:#e6f1fb;color:#0c447c}
body:not(.dark) :not(#ln)>table.g tr.sel td b.lc-b{background:#fff;color:#2c4a36!important}
.modal h4.lc-h2{border-radius:0}

/* DISCOUNT ANALYSIS (owner 07-11-2026) : a red line */
table.g tr.dc-red:not(.sel) td{color:#a32d2d}

/* TARGETS / TARGET ANALYSIS (owner 07-11-2026) */
.tgw{margin:10px auto;background:#fff;border:1px solid var(--line);max-width:100%}
.tg-s{overflow:auto;max-height:calc(100vh - 290px)}
.tg-t{width:100%}.tg-t td{padding:2px 4px}.tg-t td:first-child{white-space:nowrap;max-width:260px;overflow:hidden;text-overflow:ellipsis}
.tg-t input{width:84px;height:24px;padding:0 8px;border:1px solid #9fb8ae;border-radius:12px;box-sizing:border-box;text-align:right;font-size:var(--lf)}
.tgw .acts{display:flex;align-items:center;gap:10px;padding:8px 14px;background:#eef6f2}.tgw .acts .msg{flex:1;font-size:12px;color:#2f5148}
.ta-bar{display:inline-block;width:90px;height:8px;border-radius:4px;background:#d5e2dd;position:relative;vertical-align:middle;overflow:hidden}
.ta-bar i{position:absolute;left:0;top:0;bottom:0;background:#4d7a6f;border-radius:4px}
table.g tr.sel .ta-bar i{background:#fff}
.tg-t{table-layout:fixed}.tg-t th:first-child,.tg-t td:first-child{width:210px}.tg-t th:last-child,.tg-t td:last-child{width:96px}
.tg-t input{width:100%;padding:0 6px}
.tg-t th:first-child,.tg-t td:first-child{width:170px}.tg-t th:last-child,.tg-t td:last-child{width:90px}.tg-t td{padding:1px 2px}.tg-t input{padding:0 4px}

/* DAY / HOUR-WISE SALE (owner 07-11-2026) : the map */
.hr-w{padding:10px 12px;overflow:auto;outline:none}
.hr-t{border-collapse:separate;border-spacing:3px;font-size:13px}
.hr-t th{font-weight:500;color:#5b6b66;padding:2px 6px;font-size:12px;white-space:nowrap}
.hr-t td{min-width:52px;height:28px;text-align:center;border-radius:4px;cursor:pointer}
.hr-l0{background:#f1f4f3;color:#8a9893}.hr-l1{background:#d8ece1}.hr-l2{background:#a9d4bd}.hr-l3{background:#6fb18e;color:#fff}.hr-l4{background:#2f6448;color:#fff}
.hr-t td.hr-on{outline:3px solid #2c4a36;outline-offset:-1px}
.hr-t td.hr-s,.hr-t tr.hr-all td{background:#eef6f2;color:#1d2b27;font-weight:600;cursor:default}

/* LIST OF COMPANIES : an INACTIVE company (owner 07-11, as SAP) - grey, at the end */
.colist .co-off td { color: #8b9590; }
.colist tr.sel.co-off td, .colist .co-off.sel td { color: #e8efec; }
.colist .col-off { margin: 6px 0 10px; padding: 6px 10px; border: 1px solid #d8c9a8; background: #fbf6ea; color: #6b5420; font-size: 13px; }
.note.co-offn { background: #fbf6ea; border-color: #d8c9a8; color: #6b5420; }

/* MENU GROUPS (owner 07-11) : a small heading over each group of a menu */
.mdrop .mhd, .msub .mhd { padding: 3px 14px 0; font-size: 11px; line-height: 13px; letter-spacing: .4px; color: #6b7d76; cursor: default; pointer-events: none; white-space: nowrap; }
.mdrop .mhd.ln, .msub .mhd.ln { border-top: 1px solid #d5dad8; margin-top: 3px; padding-top: 4px; }
body.dark .mdrop .mhd.ln, body.dark .msub .mhd.ln { border-color: #33414b; }
.mdrop:has(> .mhd) > .mi { padding-top: 3px; padding-bottom: 3px; }      /* a menu of groups : one pixel less a line, so it fits a 768 screen */

/* BEAT MASTER (SFA, owner 07-11) : the days and the parties of a beat */
.bt-days { display: flex; align-items: center; gap: 14px; padding: 6px 10px; margin: 4px 0; border: 1px solid #d6e2dd; border-radius: 6px; background: #f6faf8; font-size: 13px; }
.bt-days label { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.bt-days .sp { flex: 1; }
.bt-grid { flex: 1; min-height: 200px; display: flex; flex-direction: column; }

/* SFA LIVE (owner 07-11) : the tiles of the team */
.sfa-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 8px 10px; }
.sfa-tiles div { background: #eef3f1; border-radius: 6px; padding: 6px 10px; }
.sfa-tiles small { display: block; color: #55665f; font-size: 12px; }
.sfa-tiles b { font-weight: 600; font-size: 18px; }
.sfa-g { flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* MODULES (owner 08-11) : the strip on the home + the module page */
.home .modrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 0; }
.home .modrow .modh { font-size: 11px; letter-spacing: .4px; color: #6b7d76; margin-right: 4px; }
.home .modb { font: inherit; font-size: 13px; padding: 4px 11px; border: 1px solid #b9c9c3; border-radius: 14px; background: #fff; color: #2f5148; cursor: pointer; }
.home .modb:hover, .home .modb:focus { background: var(--hi); color: var(--hi-t); border-color: var(--hi); outline: none; }
.home .modb.off { color: #8a8f8d; border-style: dashed; }
.modhub { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; padding: 14px 16px; align-content: start; }
.modg { border: 1px solid #d5dad8; border-radius: 6px; background: #fff; padding: 6px 0 8px; }
.modgh { font-size: 11px; letter-spacing: .4px; color: #6b7d76; padding: 2px 14px 6px; border-bottom: 1px solid #e3ebe8; margin-bottom: 4px; }
.modi { padding: 5px 14px; font-size: 14px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; outline: none; }
.modi small { color: #a05a2c; font-size: 11px; }
.modi.nb { color: #8a8f8d; cursor: default; }
.modi.off { color: #8a8f8d; }
.modi small:has(.ccsw) { white-space: nowrap; flex: none; }
.ccsw { display: inline-block; width: 26px; height: 14px; border-radius: 7px; background: #b4b2a9; position: relative; vertical-align: middle; margin-left: 8px; cursor: pointer; }
.ccsw:after { content: ""; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.ccsw:hover { background: #3b6d11; }
.modi[data-s]:hover, .modi[data-s]:focus { background: var(--hi); color: var(--hi-t); }
.modi[data-s]:hover small, .modi[data-s]:focus small { color: inherit; }
body.dark .modg { background: #1f282e; border-color: #33414b; }
body.dark .home .modb { background: #1f282e; color: var(--ink); border-color: #46565f; }

/* MULTI BRANCH : the working branch at the bottom, beside the company */
#footer .brw { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; }
#footer .brw label { font-size: 11px; opacity: .8; }
#footer .brw select { font-size: 11px; height: 18px; padding: 0 2px; }
/* NO BIG LETTERS IN A REPORT (owner 10-11 : 'EVEN KISI BHI REPORT ME BADA FONT NA HO') : nothing on a report screen above the item list's size (14 px) -
   found by opening all 364 screens : the totals line (.ftot 16), the ticks in a list (15), the SFA tiles (18), the heading of a report on paper as seen
   on the screen (company 18.9 / title 16.1 ; the printout keeps its own sizes), the plain headings of the info pages (15.2). The bill's Invoice Value,
   the home cards, About and the label designer (the real label size) are not reports and stay as they are. */
.ftot b{font-size:14px}
table.g td b.tk{font-size:14px}
.sfa-tiles b{font-size:14px}
@media screen{#main .lpr-h .co,#main .lpr-h .ln{font-size:14px}}
:where(.win) h3{font-size:14px}
/* VOUCHER IN THE BILL'S COLOURS (owner 10-11 : 'YE BG COLOUR MERE SWIFT KE JAISE DO' - picked A) : the page of the bill, the head a white box, the
   Particulars heading the bill's light green, the lines its light mint, narration / totals a light box ; only the colours change (light screens) */
body:not(.dark) .vch.vcht{background:#f3f6f5;padding:6px 8px;gap:6px}
body:not(.dark) .vcht .vch-h{background:#fff;border:1px solid #dfe6e3;border-radius:8px}
body:not(.dark) .vcht .vch-g{background:#f4fbf4;border:1px solid #dfe6e3;border-radius:8px}
body:not(.dark) .vcht .vch-g th{background:#d9efd9;border-bottom:1px solid #b9dcb9}
body:not(.dark) .vcht .vch-n{background:#f7faf9;border:1px solid #dfe6e3;border-radius:8px;padding:6px 8px 8px}
body:not(.dark) .modal.vchm>div{background:#f3f6f5}
/* RATE GENERATION - the list at purchase save (owner 10-11-2026) : the bill's colours - white boxes, the light green heading, rows ; many lines scroll inside */
.modal.rgl>div{width:min(1240px,97%);max-width:none;padding:0;background:#f3f6f5}
.modal.rgl h4{margin:0;padding:7px 16px;font-size:13px;background:var(--teal);color:#fff;border-radius:6px 6px 0 0}
.rgl-h,.rgl-a{display:flex;flex-wrap:wrap;align-items:center;gap:6px 22px;margin:6px 10px 0;padding:6px 12px;background:#fff;border:1px solid #dfe6e3;border-radius:8px;font-size:13px;color:#2f5148}
.rgl-h b{color:#000;font-weight:600}
.rgl-a label{font-weight:600;color:#000}
.rgl-a input{width:74px;height:26px;padding:0 8px;border:1px solid #b9cbc4;border-radius:4px;font-size:14px;background:#fff}
.rgl-a em{margin-left:auto;font-style:normal}
.rgl-t{margin:6px 10px;max-height:calc(100vh - 290px);overflow:auto;background:#f4fbf4;border:1px solid #dfe6e3;border-radius:8px}
.rgl-t table.g{width:100%;font-size:13px}
.rgl-t table.g th{background:#d9efd9;color:#000;border-bottom:1px solid #b9dcb9}
.rgl-t table.g td{padding:3px 7px;background:#fff;border-bottom:1px solid #e3ebe8;white-space:nowrap}
.rgl-t table.g td:first-child{white-space:normal;max-width:330px}
.rgl-t input.rgp{width:64px;height:24px;padding:0 6px;border:1px solid #b9cbc4;border-radius:4px;font-size:13px;text-align:right;background:#fff}
.rgl-t input:focus,.rgl-a input:focus{background:#fffbe6;outline:2px solid #e3a008}
.modal.rgl input.fbad{border-color:#c0392b!important;background:#fbe4e4}
.rgl-t td.rgn{font-weight:600}
.rgl-t td.rgk{color:#8a9893;font-weight:400}
.modal.rgl .acts{padding:7px 14px;background:#eef6f2;border-radius:0 0 6px 6px}
.modal.rgl .acts .msg{flex:1;font-size:12px;color:#2f5148}
body.dark .rgl-h,body.dark .rgl-a,body.dark .rgl-t table.g td{background:#1d2624;color:#d6e4df;border-color:#33463f}
/* COLUMN WIDTHS (owner 11-11-2026) : the line at the right of a column title = drag ; a title cut with ... when made narrow */
table.g.cw>thead>tr>th.cw-h{cursor:col-resize;box-shadow:inset -3px 0 0 #2e6b57}
body.cw-drag,body.cw-drag *{cursor:col-resize!important;user-select:none}
table.g.cwx>thead>tr>th.cwf{overflow:hidden;text-overflow:ellipsis}
/* PICK LISTS : the colours of the header and the bar swapped (owner 13-11 : 'dark header ka colour selection me do, aur header me light wala jo abhi selection me hai') */
body:not(.dark) .pick .pick-t,body:not(.dark) .pick.pop .pick-t{background:var(--teal)}
body:not(.dark) .pick :not(#ln)>table.g tr.sel td{background:#2c4a36!important}
/* the ledger list of a bill : longer and narrower (owner 13-11 : 'MARG ME 12 LEDGER DIKH RHE, MERE ME SRF 8' ; 'THORA PATLA KR DO ...') */
.billwin .body:has(> .pick.pop.led){overflow:visible;z-index:6}
.billwin .body > .pick.pop.led{bottom:-98px}      /* as wide as before (owner 13-11 : 'PHLE JITNA, SIDE DIKHEGA'), down to the small Invoice Value as the item list */
.billwin:has(.pick.pop.led) .bband .ld{visibility:hidden}
.billwin:has(.pick.pop.led) .bband{align-items:flex-end}
.billwin:has(.pick.pop.led) .bband .biv{align-self:flex-end;height:48px;min-height:0;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;padding:0 14px;border-radius:8px}
.billwin:has(.pick.pop.led) .bband .biv small{margin:0;font-size:12px;white-space:nowrap}
.billwin:has(.pick.pop.led) .bband .biv b{font-size:26px;line-height:1;margin:0}
/* THE BOX UNDER A LEDGER LIST (owner 13-11 : 'BOX JAISE HI BNAO', 'COLON MT DENA NICHE', 'BABA PRO BNAO') : three cards, a small title, label grey / value ink, a thin line between rows */
.pick-i .lx{display:grid;grid-template-columns:1.7fr 1fr 1fr;gap:10px;width:100%}
.pick-i .lx .lc{border:1px solid #c6d6cf;border-radius:7px;background:#fff;overflow:hidden;display:flex;flex-direction:column}
.pick-i .lx h6{margin:0;padding:3px 10px;font-size:11px;font-weight:600;letter-spacing:.08em;color:#4f6a62;background:#eef5f2;border-bottom:1px solid #d6e3de}
.pick-i .lx .lr{display:grid;grid-template-columns:72px 1fr;align-items:center;column-gap:8px;padding:0 10px;min-height:23px;border-bottom:1px solid #edf3f0}
.pick-i .lx .lr:last-child{border-bottom:0}
.pick-i .lx .lr span{font-size:12px;color:#6d7f79}
.pick-i .lx .lr b{font-size:14px;font-weight:400;color:#1d2b27;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pick-i .lx .lr.ad{min-height:40px}
.pick-i .lx .lr.ad b{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:17px}
body.dark .pick-i .lx .lc{background:#151b1f;border-color:#2c3a36}
body.dark .pick-i .lx h6{background:#1b2622;color:#9fc4b8;border-bottom-color:#2c3a36}
body.dark .pick-i .lx .lr{border-bottom-color:#222d2a}
body.dark .pick-i .lx .lr span{color:#8aa39b}
body.dark .pick-i .lx .lr b{color:#dfe9e5}
.pick.pop.led .pick-i{padding:6px 10px}

/* the box under the bill's ledger list : as the item list's (owner 14-11 : 'LEDGER ME NICHE KA ITEM JAISA STYLE KR DO') - light green, dark green labels, thin green lines */
body:not(.dark) .billwin .pick.pop.led .pick-f,body:not(.dark) .billwin .pick.pop.led .pick-i{background:var(--ok-bg);color:#2c4a36;border-top-color:#b9dcb9}
body:not(.dark) .billwin .pick.pop.led .pick-f label,body:not(.dark) .billwin .pick.pop.led .pick-n,body:not(.dark) .billwin .pick.pop.led .pinfo span{color:#2c4a36}
body:not(.dark) .billwin .pick.pop.led .pinfo>div+div{border-left-color:#b9dcb9}
.billwin .pick.pop.led .pinfo{grid-template-columns:1.6fr 1fr 1fr}
.billwin .pick.pop.led .pinfo>div{grid-template-columns:96px 12px 1fr;row-gap:0;line-height:20px;padding:0 18px}
.billwin .pick.pop.led .pick-i{height:134px;box-sizing:border-box;padding:6px 0;overflow:hidden}      /* always 6 rows high : the list above never changes its height */

/* THE BOTTOM OF THE BILL (owner 14-11 : sample 12) : no key row ; LAST DEALS line with the bill's buttons at its right ; Save / Close over a smaller Invoice Value */
.billwin.bb2 .foot{display:none!important}
.billwin.bb2 .bband{grid-template-rows:auto minmax(0,1fr);row-gap:0;column-gap:8px;grid-template-columns:minmax(0,1fr) 300px}
.billwin.bb2 .bband .ldbar{grid-column:1;grid-row:1;display:flex;align-items:center;gap:6px;border-radius:8px 8px 0 0;padding:2px 6px 2px 12px;min-width:0}
.billwin.bb2 .bband .ldbar .ldb-t{font-weight:600;white-space:nowrap}
.billwin.bb2 .bband .ldbar .ldb-s{flex:0 1 auto;margin-left:18px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400;opacity:.92}
.billwin.bb2 .bband .ldbar .ldb-g{flex:1}
.billwin.bb2 .bband .ldbar .btn{height:20px;padding:0 9px;font-size:12px;margin:0;white-space:nowrap;line-height:18px}
.billwin.bb2 .bband .ldbar .ld-all{margin-left:2px}
.billwin.bb2 .bband .ld{grid-column:1;grid-row:2;border-top:0;border-radius:0 0 8px 8px}
.billwin.bb2 #ld .ld-t{display:none}
.billwin.bb2 .bband .bsc{grid-column:2;grid-row:1;display:grid;grid-template-columns:1fr 1fr;gap:8px;padding-bottom:5px}
.billwin.bb2 .bband .bsc .btn{height:26px;margin:0;padding:0;font-size:13px;font-weight:600;border-radius:6px;transition:background .12s,box-shadow .12s,transform .05s;cursor:pointer}
.billwin.bb2 .bband .bsc #sv{background:#1f9254;border:1px solid #17784a;color:#fff}
.billwin.bb2 .bband .bsc #sv:hover,.billwin.bb2 .bband .bsc #sv:focus-visible{background:#167a43;box-shadow:0 0 0 3px rgba(31,146,84,.28)}
.billwin.bb2 .bband .bsc #cl{background:#fff;border:1px solid #9fb3ac;color:#2c4a36}
.billwin.bb2 .bband .bsc #cl:hover,.billwin.bb2 .bband .bsc #cl:focus-visible{background:#eef4f1;border-color:#5e7f75;box-shadow:0 0 0 3px rgba(94,127,117,.22)}
.billwin.bb2 .bband .bsc .btn:active{transform:translateY(1px)}
.billwin.bb2 .bband .biv{grid-column:2;grid-row:2}
.billwin.bb2 .bband .biv b{font-size:28px}
#statusbar .bkeys{display:flex;align-items:center;gap:3px;margin:0 10px 0 8px;flex:none}
#statusbar .bkeys .key{font-size:11px;line-height:16px;padding:1px 6px;background:#fff;color:#2c4a36;border-radius:3px;font-weight:600;cursor:pointer}
#statusbar .bkeys .key.nb{opacity:.55}
body.dark .billwin.bb2 .bband .bsc #cl{background:#1b2622;color:#dfe9e5;border-color:#3c4d48}

/* THIN SCROLL BARS in the bill (owner 14-11 : 'PATLA THREAD JAISE ... BUT VISIBLE HONA CHAIYE' - 4 px picked) : the item lines and the last deals */
.billwin #ln::-webkit-scrollbar,.billwin .bband ::-webkit-scrollbar,.billwin .bband::-webkit-scrollbar{width:4px;height:4px}
.billwin #ln::-webkit-scrollbar-track,.billwin .bband ::-webkit-scrollbar-track{background:#e3ece8;border-radius:2px}
.billwin #ln::-webkit-scrollbar-thumb,.billwin .bband ::-webkit-scrollbar-thumb{background:#6f8f85;border-radius:2px}
.billwin #ln::-webkit-scrollbar-thumb:hover,.billwin .bband ::-webkit-scrollbar-thumb:hover{background:#3d6a5f}
.billwin #ln::-webkit-scrollbar-button,.billwin .bband ::-webkit-scrollbar-button{display:none}
body.dark .billwin #ln::-webkit-scrollbar-track,body.dark .billwin .bband ::-webkit-scrollbar-track{background:#1e2a27}
body.dark .billwin #ln::-webkit-scrollbar-thumb,body.dark .billwin .bband ::-webkit-scrollbar-thumb{background:#5f8d80}
/* THIN SCROLL BARS EVERYWHERE (owner 14-11 : 'SAB LIST ME BHI AISA HI KR DO') : the 4 px green bar of the bill on every list, report, box and the page */
::-webkit-scrollbar{width:4px;height:4px}
::-webkit-scrollbar-track{background:#e3ece8;border-radius:2px}
::-webkit-scrollbar-thumb{background:#6f8f85;border-radius:2px}
::-webkit-scrollbar-thumb:hover{background:#3d6a5f}
::-webkit-scrollbar-button{display:none}
::-webkit-scrollbar-corner{background:transparent}
body.dark ::-webkit-scrollbar-track{background:#1e2a27}
body.dark ::-webkit-scrollbar-thumb{background:#5f8d80}
/* LAST DEALS : 5 deals (owner 14-11 : 'NICHE KA LAST DEAL 5 DETAIL AANE K LIYE ... WITHOUT NO OF ITEM LOSSING' - view C picked) : no gap over LAST DEALS, Save / Close 22 px,
   the middle box's lines 19 px (font the same) - its 18 px go to the last deals ; the item lines stay as many */
.billwin.bb2 .bband{padding-top:2px;padding-bottom:3px}
.billwin.bb2 .bband .bsc{padding-bottom:3px}
.billwin.bb2 .bband .bsc .btn{height:22px}
.billwin.bb2 .sbot>div>div{line-height:19px}
.billwin.bb2 .sbot>div{padding:2px 12px}
.billwin.bb2 .sbot #b1 p.cal{margin-top:2px;padding-top:2px}
.billwin.bill9.bb2 .bband{flex-basis:150px;height:150px}      /* +4 px : the 5th deal whole in a window too (owner 14-11 : "4 px bhi de do") */
/* NO BAR BEFORE THE CURSOR IS THERE (owner 14-11 : 'JAB TAK MAI SELECT NA KRU, PRESELECT NA RHE') : a line list without the cursor (class nosel, app.js selMark) shows no dark bar */
#main .nosel table.g tbody tr.sel:not(#z1):not(#z2) td{background:transparent!important;color:inherit!important;font-weight:inherit;text-shadow:none}
#main .nosel table.g tbody tr.sel:not(#z1):not(#z2) td *:not(input):not(select):not(textarea):not(button){color:inherit!important}
#main .nosel table.g tbody tr.sel:not(#z1):not(#z2) td input,#main .nosel table.g tbody tr.sel:not(#z1):not(#z2) td i{background:transparent!important;color:inherit!important}
/* ITEM BOX EMPTY TILL A LINE IS CHOSEN (owner 14-11 : 'item box bhi khaali rakho jab tak select na karu' - 'haan laga do') : while the lines show no bar (nosel),
   the Item box values, its line (Line 1 | ...), the last deals and their item name stay empty ; the bill's totals stay */
.billwin.lnnosel .sbot #b1>div>:nth-child(n+3){visibility:hidden}      /* SPEED 14-11 : a class (app.js selMark), not :has(#ln.nosel) - that made every key restyle the whole bill (4x the style time) */
.billwin.lnnosel .sbot #b1 p.cal .cl1{display:none}      /* No. of items / Total qty stay (owner 14-11) */
.billwin.lnnosel #ld tbody,.billwin.lnnosel .bband .ldbar .ldb-s{visibility:hidden}
/* SCROLL BAR THICKER UNDER THE MOUSE (owner 14-11 : 'SCROLL BAR PATLI LINE PR JAB MOUSE LE JAU TAB MOTA HO JAYE THORA') : the bar's place is 10 px, the line in it
   still shows 4 px (a clear border round it) ; the mouse on the line = 8 px, darker */
::-webkit-scrollbar,.billwin #ln::-webkit-scrollbar,.billwin .bband ::-webkit-scrollbar,.billwin .bband::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-track,.billwin #ln::-webkit-scrollbar-track,.billwin .bband ::-webkit-scrollbar-track{border:3px solid transparent;background-clip:padding-box;border-radius:5px}
::-webkit-scrollbar-thumb,.billwin #ln::-webkit-scrollbar-thumb,.billwin .bband ::-webkit-scrollbar-thumb{border:3px solid transparent;background-clip:padding-box;border-radius:5px;min-height:24px}
::-webkit-scrollbar-thumb:hover,::-webkit-scrollbar-thumb:active,.billwin #ln::-webkit-scrollbar-thumb:hover,.billwin #ln::-webkit-scrollbar-thumb:active,.billwin .bband ::-webkit-scrollbar-thumb:hover,.billwin .bband ::-webkit-scrollbar-thumb:active{border-width:1px;background-color:#3d6a5f}
body.dark ::-webkit-scrollbar-thumb:hover,body.dark ::-webkit-scrollbar-thumb:active{background-color:#8fc1b3}
/* BILL DETAIL (owner 14-11 : Detail (T) in the bill's view, our own style) : three cards + a line, F3 = Modify */
.modal.bdm>div{width:960px;max-width:96vw;padding:0!important;border-radius:10px;overflow:hidden}
.modal.bdm h4{margin:0;padding:10px 16px;display:flex;justify-content:space-between;align-items:center;gap:16px}
.modal.bdm h4 small{font-weight:400;font-size:13px;opacity:.92;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.modal.bdm .g{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;padding:12px 14px 6px}
.modal.bdm .g2{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:12px 14px 6px}
.modal.bdm .c{border:1px solid #c6d6cf;border-radius:8px;background:#fff;overflow:hidden;padding-bottom:2px}
.modal.bdm .c h6{margin:0 0 2px;padding:4px 10px;font-size:11px;font-weight:600;letter-spacing:.08em;color:#4f6a62;background:#eef5f2;border-bottom:1px solid #d6e3de;display:flex;justify-content:space-between;align-items:center}
.modal.bdm .c h6 i{font-style:normal;letter-spacing:0;color:#8a5a00;background:#fff3cd;border:1px solid #f0d58a;border-radius:4px;padding:0 6px}
.modal.bdm .r{display:grid;grid-template-columns:118px minmax(0,1fr);padding:0 10px;min-height:24px;align-items:center;border-bottom:1px solid #edf3f0;font-size:13px}
.modal.bdm .r:last-child{border-bottom:0}
.modal.bdm .r span{color:#6d7f79;font-size:12px}
.modal.bdm .r b{font-weight:400;color:#1d2b27;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.modal.bdm .r.l b{text-align:left}.modal.bdm .r.big b{font-weight:600;font-size:14px}.modal.bdm .r.red b{color:#b3261e;font-weight:600}.modal.bdm .r.grn b{color:#1f7a4d}
.modal.bdm .w{margin:4px 14px 0;border:1px solid #c6d6cf;border-radius:8px;background:#fff;padding:2px 0}
.modal.bdm .f{display:grid;grid-template-columns:118px minmax(0,1fr);align-items:center;padding:2px 10px;font-size:13px}
.modal.bdm .f label{color:#4f6a62;font-size:12px}
.modal.bdm .f input,.modal.bdm .f select{height:26px;border:1px solid #b9cbc4;border-radius:5px;padding:0 8px;font:inherit;font-size:13px;width:100%;box-sizing:border-box;background:#fff}
.modal.bdm .f input.lk,.modal.bdm .f select:disabled{background:#f1f4f3;color:#55655f;border-style:dashed}
.modal.bdm .f input:focus,.modal.bdm .f select:focus{outline:0;border:2px solid #2e7d5b}
.modal.bdm>div p.bd-n{line-height:15px;margin:2px 10px 4px;font-size:11px;color:#6d7f79}
.modal.bdm>div p.bd-y{line-height:17px;margin:6px 14px 0;padding:4px 10px;font-size:12px;color:#8a5a00;background:#fff8e1;border:1px solid #f0d58a;border-radius:6px}
.modal.bdm>div p.bd-ok{line-height:17px;margin:6px 14px 0;font-size:12px;color:#1f7a4d;font-weight:600}
.modal.bdm .ft{display:flex;align-items:center;gap:8px;padding:10px 14px;margin-top:10px;border-top:1px solid #d6e3de;background:#f4f8f6}
.modal.bdm .ft .k{flex:1;font-size:12px;color:#4f6a62}
.modal.bdm .ft .btn{height:28px;padding:0 16px;margin:0}
body.dark .modal.bdm .c,body.dark .modal.bdm .w{background:#151b1f;border-color:#2c3a36}
body.dark .modal.bdm .c h6{background:#1b2622;color:#9fc4b8;border-bottom-color:#2c3a36}
body.dark .modal.bdm .r{border-bottom-color:#222d2a}body.dark .modal.bdm .r span,body.dark .modal.bdm .f label{color:#8aa39b}body.dark .modal.bdm .r b{color:#dfe9e5}
body.dark .modal.bdm .f input,body.dark .modal.bdm .f select{background:#141c18;color:#dfeae6;border-color:#3a4a45}
body.dark .modal.bdm .f input.lk,body.dark .modal.bdm .f select:disabled{background:#1b2622;color:#9fb0b7}
body.dark .modal.bdm .ft{background:#1b2622;border-top-color:#2c3a36}
/* CANCEL A BILL (owner 14-11 : 'CANCEL WALA BHI THIK KRO, AS PER U') : the reason box, the red line over a cancelled bill, CANCELLED in the lists */
.modal.cnm>div{width:560px;max-width:94vw;padding:0!important;border-radius:10px;overflow:hidden;border-left:4px solid #c62828}
#main .modal.cnm>div h4{background:#c62828!important;color:#fff;padding:9px 16px;font-size:14px;letter-spacing:.03em}
.modal.cnm>div p.cn-w{padding:10px 16px 0;font-weight:600;color:#1d2b27}
.modal.cnm>div p.cn-t{padding:6px 16px 10px;font-size:13px;color:#55665f;line-height:1.45}
.modal.cnm label{display:block;padding:0 16px 4px;font-weight:600;font-size:13px}
#main .modal.cnm>div input#cnr{background:#fff!important;color:#1d2b27!important;display:block;width:calc(100% - 32px);margin:0 16px;padding:6px 9px;font-size:14px;border:1px solid #b9cbc5;border-radius:6px;box-sizing:border-box}
#main .modal.cnm>div input#cnr:focus{outline:2px solid #c62828;outline-offset:0;border-color:#c62828}
.modal.cnm>div p.cn-e{padding:4px 16px 0;min-height:18px;color:#b71c1c;font-size:13px;font-weight:600}
.modal.cnm .ft{display:flex;gap:8px;justify-content:flex-end;padding:8px 16px 12px}
.modal.cnm .btn.red{background:#c62828;border-color:#c62828;color:#fff}
.modal.cnm .btn.red:focus,.modal.cnm .btn.red:hover{background:#a51f1f}
.cnbar{display:flex;align-items:center;gap:14px;background:#fdecea;border:1px solid #e3a59f;border-left:4px solid #c62828;border-radius:6px;padding:4px 12px;margin:0 0 4px;color:#7f1010;font-size:13px;min-width:0}
.cnbar b{font-size:14px;letter-spacing:.08em;color:#c62828}
.cnbar span{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.cnbar small{margin-left:auto;white-space:nowrap;font-size:12px;color:#8a4a45}
b.cnx{color:#c62828;letter-spacing:.04em}
body.dark .modal.cnm>div p.cn-w{color:#e6efec}
body.dark .modal.cnm>div p.cn-t{color:#a9bbb5}
body.dark #main .modal.cnm>div input#cnr{background:#1e2a27!important;color:#e6efec!important;background:#1e2a27;color:#e6efec;border-color:#456158}
body.dark .cnbar{background:#3a1f1d;border-color:#7a3b35;color:#f2c4bf}
body.dark .cnbar small{color:#d9a19b}
body.dark b.cnx{color:#ff8a80}
@media (max-width:700px){.cnbar{flex-wrap:wrap;gap:4px 10px}.cnbar small{margin-left:0;white-space:normal}}
/* SPEED (owner 14-11 : 'most important speed - kyuki marg superfast hai') : a key in the bill repaints only its own part - the item lines on a layer of
   their own (opaque white : letters stay crisp), the totals / Last Deals / dashboard boxes paint inside themselves (paint 10 -> 4.5 ms a key) */
.billwin #ln{will-change:transform}
.billwin .sbot>div,.billwin .bband,#dash{contain:paint}
/* BILL FROM A FILE : + New item on a line not found (owner 16-11) */
.ib-l .btn.ib-new{height:22px;padding:0 10px;font-size:12px;font-weight:600;background:#e7f4ee;color:#1d6b4f;border:1px solid #6fb596;border-radius:5px;cursor:pointer;white-space:nowrap}
.ib-l .btn.ib-new:hover{background:#2f7d6b;color:#fff}
body.dark .ib-l .btn.ib-new{background:#1e3a31;color:#9fe0c4;border-color:#3f8a70}
/* BILL FROM A FILE : the company not in the master is ASKED (owner 16-11) - a question, not a danger : teal */
#main .modal.cnm.ibco>div{border-left-color:#2f7d6b}
#main .modal.cnm.ibco>div h4{background:#2f7d6b!important}
#main .modal.cnm.ibco>div input#ibcn{display:block;width:calc(100% - 32px);margin:0 16px;padding:6px 9px;font-size:14px;border:1px solid #b9cbc5;border-radius:6px;box-sizing:border-box;background:#fff;color:#1d2b27}
body.dark #main .modal.cnm.ibco>div input#ibcn{background:#1e2a27;color:#e6efec;border-color:#456158}
/* a button of a list, in the list's own find bar (o.btns) - owner 16-11 : the Statement's All parties */
.pick .pick-f .btn.pick-b{margin-left:10px;height:28px;padding:0 12px;font-size:13px;font-weight:600;background:#fff;border:1px solid #6fb596;color:#1d6b4f;border-radius:6px}
.pick .pick-f .btn.pick-b:hover{background:#2f7d6b;color:#fff}
/* STATEMENTS - ALL : the list to tick (owner 16-11) */
.modal.stall .stf{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 12px}
.modal.stall .stf input#stQ{width:240px}
.modal.stall .acts .stn{margin-right:auto;color:#4a5a55;font-size:13px}
.modal.stall b.tk{color:#1e8449;font-size:15px}.modal.stall .tk0{color:#b0bcb8}
/* COMPANY FORM : MORE folded (owner 16-11) */
.coform .co-more>.mf-h{cursor:pointer;user-select:none}
.coform .co-more>.mf-h::before{content:"\25BE  ";color:#2f7d6b}
.coform .co-more.co-more-shut>.mf-h::before{content:"\25B8  "}
.coform .co-more.co-more-shut>:not(.mf-h){display:none}
/* MULTI LEDGER PRINTING (owner 16-11) */
.ml-o{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:6px 10px;background:#f2f7f5;border-bottom:1px solid #c5d6d0}
.ml-o .ml-c{margin-left:auto;font-weight:600;color:#2f6b5e}
.ml-g{overflow:auto;flex:1;min-height:0}
#main .win .body.mlb{display:flex;flex-direction:column}
.ml-g b.tk,.mlwa b.tk{color:#1e8449;font-size:15px}.ml-g .tk0{color:#b0bcb8}
/* NO HSN / NO TAX / NO DL (owner 17-11) : a small red mark */
.tagcap{display:inline-block;vertical-align:middle;margin:-1px 0 0 6px;padding:0 7px;border:1px solid;border-radius:999px;font:700 11px/16px Arial,Helvetica,sans-serif;letter-spacing:.03em;text-transform:uppercase;font-style:normal;white-space:nowrap}
.tc-red{background:#fde8e6;color:#9b1c13;border-color:#e8a29b}.tc-amb{background:#fff3d6;color:#7a4b00;border-color:#e5c07a}
body.dark .tc-red{background:#4a1f1b;color:#ffb4ab;border-color:#8a3a33}body.dark .tc-amb{background:#3d2f10;color:#ffd58a;border-color:#7a5d22}

/* LICENCE (licence.js) : Settings > Licence + the line in the top bar */
#licl{margin-left:8px;padding:1px 10px;border-radius:9px;font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:260px}
#licl.lic-i{background:#e8f4fb;color:#1b4f72}
#licl.lic-w{background:#fff3cd;color:#7a5a00}
#licl.lic-r{background:#fff;color:#b3261e}
.lic-top{padding:10px 14px 0}
.lic-strip{display:block;font-size:13px;padding:5px 12px;margin-bottom:8px;border-radius:5px;white-space:normal}
.lic-kv{grid-template-columns:130px 1fr 130px 1fr;max-width:none;padding:10px 14px}
.lic-m{color:var(--mut);font-weight:400}
.lic-h{padding:0 14px 4px;color:var(--blue);font-weight:600}
table.g.lic-g{width:calc(100% - 28px);margin:0 14px}
