:root{
  --green:#173f2d;--green2:#245a42;--cream:#fbf7ed;--gold:#c99b2e;--gold2:#e6c66d;
  --ink:#1f2b26;--muted:#6d776f;--line:#ded8c9;--card:rgba(255,255,255,.94);--danger:#9e2d2d;
  --shadow:0 10px 26px rgba(21,48,35,.09);--radius:18px;
}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,"Noto Sans Telugu","Noto Sans Kannada",Arial,sans-serif;color:var(--ink);background:linear-gradient(180deg,#f8f1e2,#fff 45%,#f7f3e9)}
button,input,select,textarea{font:inherit}button{cursor:pointer}.hidden{display:none!important}.muted{color:var(--muted)}.tiny{font-size:12px}.small{font-size:13px}.center{text-align:center}.right{text-align:right}.nowrap{white-space:nowrap}.grow{flex:1}
.dk-watermark{position:fixed;inset:0;pointer-events:none;z-index:0;display:grid;place-items:center;overflow:hidden}.dk-watermark img{width:min(72vw,620px);opacity:.035;filter:grayscale(.1)}#app{position:relative;z-index:1;min-height:100vh}
.splash{min-height:100vh;display:grid;place-items:center;padding:24px}.splash-card{text-align:center}.splash-card img{width:min(82vw,440px);max-height:210px;object-fit:contain}.splash-card h1{color:var(--green);font-size:30px;margin:8px 0 4px}.splash-card p{margin:0;color:#4e6b59}.pulse{width:38px;height:38px;margin:24px auto;border-radius:50%;border:4px solid #ddd0ae;border-top-color:var(--green);animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.shell{max-width:1180px;margin:0 auto;padding:max(12px,env(safe-area-inset-top)) 16px max(26px,env(safe-area-inset-bottom))}.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:12px;padding:10px 12px;background:rgba(251,247,237,.96);backdrop-filter:blur(10px);border:1px solid rgba(202,183,132,.45);border-radius:0 0 18px 18px;box-shadow:0 6px 20px rgba(20,55,38,.08)}.brand-mini{display:flex;align-items:center;gap:10px;min-width:0}.brand-mini img{width:128px;height:52px;object-fit:contain}.brand-text{min-width:0}.brand-title{font-weight:800;color:var(--green);font-size:17px}.brand-sub{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:300px}.top-actions{display:flex;align-items:center;gap:8px}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:700;background:#eaf1ec;color:var(--green)}.badge.gold{background:#fff4d4;color:#7d5b00}.badge.red{background:#ffe6e6;color:#8e2929}
.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin:20px 2px 12px}.page-head h1{font-size:25px;margin:0;color:var(--green)}.page-head p{margin:4px 0 0;color:var(--muted);font-size:13px}.card{background:var(--card);border:1px solid rgba(211,199,166,.7);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px;margin:12px 0}.card h2,.card h3{color:var(--green);margin:0 0 12px}.card.flat{box-shadow:none;background:rgba(255,255,255,.74)}
.grid{display:grid;gap:12px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.grid.auto{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}.stat{background:linear-gradient(145deg,#fff,#fbf5e7);border:1px solid #e7ddc5;border-radius:16px;padding:15px}.stat .label{font-size:12px;color:var(--muted)}.stat .value{font-size:24px;color:var(--green);font-weight:800;margin-top:5px}.stat .sub{font-size:12px;color:var(--muted);margin-top:4px}
.btn{border:0;border-radius:12px;padding:11px 14px;font-weight:750;background:var(--green);color:#fff;box-shadow:none;min-height:43px}.btn:hover{background:var(--green2)}.btn:disabled{opacity:.45;cursor:not-allowed}.btn.secondary{background:#ece8dc;color:var(--green)}.btn.gold{background:var(--gold);color:#fff}.btn.danger{background:var(--danger);color:#fff}.btn.outline{background:#fff;color:var(--green);border:1px solid #9bb6a5}.btn.ghost{background:transparent;color:var(--green);border:1px solid transparent}.btn.small{min-height:34px;padding:7px 10px;font-size:12px}.icon-btn{width:42px;height:42px;border-radius:12px;border:1px solid #d6cfbd;background:#fff;color:var(--green);font-size:18px}.btn-row{display:flex;gap:9px;flex-wrap:wrap;align-items:center}.actions-right{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
.field{display:flex;flex-direction:column;gap:6px;margin:9px 0}.field label{font-size:12px;font-weight:700;color:#526459}.field input,.field select,.field textarea{width:100%;padding:11px 12px;border-radius:11px;border:1px solid #cfc7b5;background:#fff;color:var(--ink);outline:none}.field input:focus,.field select:focus,.field textarea:focus{border-color:#69917a;box-shadow:0 0 0 3px rgba(37,90,66,.09)}.field textarea{min-height:80px;resize:vertical}.check{display:flex;align-items:center;gap:8px;font-size:13px}.check input{width:18px;height:18px}.segmented{display:flex;gap:6px;padding:5px;border:1px solid #d8d0bd;background:#f4efe3;border-radius:14px;overflow:auto}.segmented button{border:0;border-radius:10px;padding:9px 14px;background:transparent;color:var(--green);font-weight:750;white-space:nowrap}.segmented button.active{background:var(--green);color:#fff}
.nav-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:11px}.nav-card{border:1px solid #dfd6c0;border-radius:16px;background:#fff;padding:15px;text-align:left;min-height:104px;display:flex;flex-direction:column;justify-content:space-between}.nav-card:hover{border-color:#bda75f;transform:translateY(-1px)}.nav-card .ico{font-size:25px}.nav-card b{color:var(--green);font-size:15px}.nav-card small{color:var(--muted)}
.table-wrap{overflow:auto;border-radius:14px;border:1px solid #e1dac8}.table{width:100%;border-collapse:collapse;background:#fff;min-width:720px}.table th,.table td{padding:10px 11px;border-bottom:1px solid #eee8db;text-align:left;font-size:13px}.table th{background:#f5efe1;color:#506052;position:sticky;top:0}.table tr:last-child td{border-bottom:0}.table .money{text-align:right;font-variant-numeric:tabular-nums}.table .center{text-align:center}
.product-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px}.product-card{background:#fff;border:1px solid #e0d7c3;border-radius:15px;padding:13px;display:flex;flex-direction:column;gap:8px}.product-card h4{margin:0;color:var(--green);font-size:15px}.product-card .meta{font-size:12px;color:var(--muted)}.price-line{display:flex;justify-content:space-between;align-items:flex-end;gap:8px}.price{font-weight:850;color:var(--green);font-size:20px}.mrp{font-size:12px;color:var(--muted);text-decoration:line-through}.cart-line{display:grid;grid-template-columns:1fr auto auto auto;align-items:center;gap:8px;padding:9px 0;border-bottom:1px dashed #ddd4bf}.qty-box{display:flex;align-items:center;gap:5px}.qty-box button{width:30px;height:30px;border-radius:9px;border:1px solid #d2c9b6;background:#fff}.qty-num{min-width:28px;text-align:center;font-weight:700}.cart-total{font-size:24px;font-weight:850;color:var(--green);text-align:right;margin-top:12px}
.receipt{max-width:680px;margin:0 auto;background:#fff;border:1px solid #ddd3bc;border-radius:18px;padding:18px}.receipt-head{text-align:center}.receipt-head img{width:240px;max-width:82%;height:95px;object-fit:contain}.receipt-head h2{margin:4px 0;color:var(--green)}.receipt-lines{margin-top:14px}.receipt-row{display:grid;grid-template-columns:1fr 55px 86px 92px;gap:6px;padding:7px 0;border-bottom:1px dashed #ddd}.receipt-total{text-align:right;font-size:22px;font-weight:850;color:var(--green);padding-top:14px}.qr-panel{display:grid;place-items:center;text-align:center;padding:14px}.qr-panel canvas{max-width:280px;width:100%;height:auto;background:#fff;border-radius:14px;border:10px solid #fff;box-shadow:0 4px 18px rgba(0,0,0,.08)}
.modal-back{position:fixed;inset:0;z-index:100;background:rgba(15,31,22,.62);display:grid;place-items:center;padding:15px}.modal{width:min(860px,100%);max-height:94vh;overflow:auto;background:var(--cream);border-radius:20px;padding:16px;box-shadow:0 30px 90px rgba(0,0,0,.28)}.modal-head{display:flex;align-items:center;gap:10px;position:sticky;top:0;background:rgba(251,247,237,.96);padding:5px 0 10px;z-index:2}
.social{display:flex;gap:10px;flex-wrap:wrap}.social a{display:inline-flex;align-items:center;gap:7px;padding:9px 12px;border-radius:12px;background:#fff;border:1px solid #ddd2ba;text-decoration:none;color:var(--green);font-weight:700;font-size:13px}.sync-state{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.dot{width:9px;height:9px;border-radius:50%;background:#58a66f}.dot.stale{background:#c65050}
.toast{position:fixed;z-index:300;left:50%;bottom:calc(22px + env(safe-area-inset-bottom));transform:translateX(-50%);background:#173f2d;color:#fff;padding:11px 15px;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.25);max-width:min(92vw,560px);text-align:center}.notice{border-left:4px solid var(--gold);background:#fff8df;padding:11px 13px;border-radius:10px;font-size:13px}.error{border-left-color:#b13939;background:#ffeded}.success{border-left-color:#3f8a58;background:#ecf8ef}
.user-card{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:start;border:1px solid #dfd5bd;border-radius:14px;padding:12px;background:#fff}.user-card h4{margin:0 0 4px;color:var(--green)}.user-card p{margin:2px 0;font-size:12px;color:var(--muted)}
.label-preview{display:grid;place-items:center;padding:18px;background:#eee8da;border-radius:14px;overflow:auto}.label-sheet{background:#fff;color:#111;display:grid;gap:2mm;padding:2mm}.label-item{border:1px dashed #999;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:1mm;overflow:hidden;font-family:Arial,sans-serif}.label-item .lname{font-weight:700;line-height:1.05}.label-item .lmrp,.label-item .lsp{line-height:1.05}.label-item .lbrand{font-size:7px;font-weight:700}.print-only{display:none}
@media(max-width:760px){.shell{padding-left:10px;padding-right:10px}.brand-mini img{width:105px;height:44px}.brand-title{font-size:14px}.brand-sub{max-width:150px}.page-head{align-items:flex-start;flex-direction:column}.grid.two,.grid.three,.grid.four{grid-template-columns:1fr}.stat .value{font-size:21px}.product-list{grid-template-columns:1fr}.receipt-row{grid-template-columns:1fr 36px 70px 78px;font-size:12px}.top-actions .badge{display:none}.cart-line{grid-template-columns:1fr auto;}.cart-line .line-money{grid-column:2}.table{min-width:640px}}
@media print{body{background:#fff}.dk-watermark,.no-print,.topbar,.page-head,.footer-note{display:none!important}.print-only{display:block}.shell{max-width:none;padding:0}.card{border:0;box-shadow:none;margin:0;padding:0}.receipt{border:0;box-shadow:none;padding:0}.label-preview{background:#fff;padding:0}.label-sheet{margin:0}.modal-back{position:static;background:#fff;padding:0}.modal{max-height:none;box-shadow:none;padding:0;width:auto}.modal-head{display:none}}

/* v1.0.5 quick-sale workspace */
.sale-toolbar{padding:14px 16px}.sale-toolbar-top{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,300px);gap:12px;align-items:end}.sale-toolbar .field{margin:0}.sale-filter-row{display:grid;grid-template-columns:minmax(160px,210px) minmax(0,1fr) auto;gap:12px;align-items:end;margin-top:10px}.sale-mode-filter select{min-height:42px}.sale-category-wrap{display:flex;flex-direction:column;gap:6px;min-width:0}.sale-category-wrap>label{font-size:12px;font-weight:700;color:#526459}.category-tabs{display:flex;gap:6px;flex-wrap:wrap;align-items:center}.category-tabs button{border:1px solid #d8d0bd;border-radius:10px;padding:9px 12px;background:#fff;color:var(--green);font-weight:750;white-space:nowrap}.category-tabs button:hover{border-color:#9eb5a5}.category-tabs button.active{background:var(--green);border-color:var(--green);color:#fff}.sale-count{align-self:center;justify-self:end;font-size:12px;color:var(--muted);padding:10px 2px;white-space:nowrap}.sale-workspace{display:grid;grid-template-columns:minmax(0,1.68fr) minmax(330px,.92fr);gap:12px;align-items:start}.sale-products-pane{min-width:0;padding:0;overflow:hidden}.sale-products-pane .sale-pane-title{padding:14px 15px 10px}.sale-pane-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.sale-pane-title h3{margin:0}.packed-head,.packed-row{display:grid;grid-template-columns:minmax(190px,1fr) 110px 125px 84px;gap:8px;align-items:center}.packed-head{padding:9px 14px;background:#f5efe1;color:#506052;font-size:12px;font-weight:800;border-top:1px solid #e8dfcc;border-bottom:1px solid #e8dfcc}.packed-list{max-height:calc(100vh - 330px);min-height:390px;overflow:auto;background:#fff}.packed-row{padding:9px 14px;border-bottom:1px solid #eee8db;min-height:52px}.packed-row:last-child{border-bottom:0}.packed-row:hover{background:#fdfaf3}.packed-name{font-weight:750;color:var(--green);line-height:1.2}.packed-pack{color:var(--muted);font-size:13px}.packed-sp{font-weight:850;color:var(--green);font-variant-numeric:tabular-nums}.packed-action{text-align:right}.packed-action .btn{min-width:62px}.sale-empty{padding:24px;text-align:center;color:var(--muted)}.sale-cart-pane{position:sticky;top:82px;align-self:start}.sale-cart-card{margin:0;max-height:calc(100vh - 105px);overflow:auto}.sale-cart-card .cart-total{position:sticky;bottom:0;background:linear-gradient(180deg,rgba(255,255,255,.86),#fff 34%);padding:16px 0 8px;z-index:1}.sale-save{width:100%;margin-top:4px}.sale-search input{font-size:15px}
@media(max-width:900px){.sale-workspace{grid-template-columns:1fr}.sale-cart-pane{position:static}.sale-cart-card{max-height:none}.packed-list{max-height:none;min-height:0}.sale-toolbar-top{grid-template-columns:1fr minmax(180px,240px)}}
@media(max-width:620px){.sale-toolbar-top,.sale-filter-row{grid-template-columns:1fr}.sale-count{justify-self:start;padding:0}.packed-head,.packed-row{grid-template-columns:minmax(0,1fr) 78px 92px 64px;gap:5px}.packed-head{padding:8px 9px}.packed-row{padding:8px 9px}.packed-name{font-size:13px}.packed-pack,.packed-sp{font-size:12px}.packed-action .btn{min-width:54px;padding:6px 7px}.sale-products-pane .sale-pane-title{padding:12px 10px}.sale-cart-card{margin-top:0}}


/* v1.0.6 — Loose Sale compact Layout 4 */
.loose-head,.loose-row{display:grid;grid-template-columns:minmax(190px,1fr) 120px 112px 118px 92px;gap:8px;align-items:center}
.loose-head{padding:9px 14px;background:#f5efe1;color:#506052;font-size:12px;font-weight:800;border-top:1px solid #e8dfcc;border-bottom:1px solid #e8dfcc}
.loose-list{max-height:calc(100vh - 330px);min-height:390px;overflow:auto;background:#fff}
.loose-row{padding:8px 14px;border-bottom:1px solid #eee8db;min-height:58px}
.loose-row:last-child{border-bottom:0}.loose-row:hover{background:#fdfaf3}
.loose-product{display:flex;flex-direction:column;gap:2px;color:var(--green);line-height:1.2}
.loose-kg,.loose-amount{font-weight:800;color:var(--green);font-variant-numeric:tabular-nums}
.loose-kg .tiny{font-weight:500;margin-left:2px}.loose-weight input{width:100%;min-height:38px;padding:7px 9px}
.loose-action{text-align:right}.loose-action .btn{min-width:78px}
@media(max-width:900px){.loose-list{max-height:none;min-height:0}}
@media(max-width:620px){.loose-head,.loose-row{grid-template-columns:minmax(130px,1fr) 86px 88px 82px 66px;gap:5px}.loose-head{padding:8px 9px;font-size:10px}.loose-row{padding:8px 9px}.loose-product b{font-size:12px}.loose-product .tiny{font-size:10px}.loose-kg,.loose-amount{font-size:11px}.loose-weight input{font-size:12px;padding:6px;min-height:34px}.loose-action .btn{min-width:58px;padding:6px 5px;font-size:11px}}
/* v1.0.7 — Loose calculated price is editable before Add (Owner/Admin only). */
.loose-amount input{width:100%;min-height:38px;padding:7px 9px;font-weight:800;color:var(--green);font-variant-numeric:tabular-nums}
.loose-amount input:disabled{background:#f6f3eb;color:#8a8a82;cursor:not-allowed}
.loose-amount input.manual-price{border-color:#c8951e;box-shadow:0 0 0 2px rgba(200,149,30,.12);background:#fffaf0}
@media(max-width:620px){.loose-amount input{font-size:11px;padding:6px;min-height:34px}}

/* v1.0.8 — Loose quote action visibly changes from Get price to Add after successful quote. */

/* v1.0.9 — Google Play account deletion discoverability */
.footer-delete-link{color:#315c4a;text-decoration:underline;text-underline-offset:2px;font-weight:700}
.account-delete-card{border-color:#e6cf9b}

/* v1.0.11 simple retail receipt lock */
.simple-retail-receipt{max-width:680px}.receipt-brand{text-align:center;border-bottom:1px dashed #c9bea4;padding-bottom:10px}.receipt-brand-name{font-size:28px;font-weight:900;color:var(--green)}.receipt-tagline{font-size:13px;color:#52665d}.receipt-title{margin-top:5px;font-weight:850;letter-spacing:.6px}.receipt-meta{display:grid;gap:4px;margin:12px 0;font-size:13px}.simple-lines .receipt-row{grid-template-columns:minmax(0,1fr) 70px 80px 88px}.simple-head{border-bottom:1px solid #999}.receipt-summary{margin-left:auto;max-width:270px;padding-top:12px}.receipt-summary>div{display:flex;justify-content:space-between;gap:18px;padding:3px 0}.receipt-summary .grand{border-top:1px solid #888;margin-top:3px;padding-top:7px;font-size:19px;color:var(--green)}.receipt-payment{text-align:right;margin-top:8px;font-size:13px}.receipt-thanks{text-align:center;margin-top:16px;font-size:12px;color:#52665d}


/* v1.0.12 SHOT 1 — mixed Owner/Admin retail bill + discreet internal bill check */
.user-profit-tools{position:relative;display:flex;align-items:center;gap:7px;margin-left:auto}
.profit-peek{width:29px;height:29px;min-width:29px;border-radius:50%;border:1.5px solid #b9993d;background:#fffaf0;color:#6f5310;font-weight:900;font-size:15px;line-height:1;display:grid;place-items:center;padding:0;box-shadow:0 2px 7px rgba(68,49,8,.08)}
.profit-peek:hover,.profit-peek:focus{background:#fff1c7;border-color:#9f7815;outline:none}
.bill-check-popover{position:absolute;z-index:80;right:0;top:38px;width:min(430px,calc(100vw - 32px));background:#fff;border:1px solid #d7c89e;border-radius:14px;box-shadow:0 18px 48px rgba(20,41,29,.20);padding:13px;color:var(--ink)}
.bill-check-title{font-weight:850;color:var(--green);margin-bottom:9px;font-size:14px}
.bill-check-grid{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 15px;align-items:center;font-size:12.5px}
.bill-check-grid span{color:var(--muted)}.bill-check-grid b{text-align:right;font-variant-numeric:tabular-nums;color:var(--green)}
.bill-check-note{margin-top:9px;padding-top:8px;border-top:1px dashed #ded5bf;color:var(--muted);font-size:10.5px;line-height:1.35}
.bill-check-before{display:flex;justify-content:space-between;gap:12px;margin-top:9px;padding-top:8px;border-top:1px dashed #ded5bf;font-size:11px}.bill-check-before span{color:var(--muted)}.bill-check-before b{color:var(--green);text-align:right;font-variant-numeric:tabular-nums}
.bill-check-warning{margin-top:9px;padding:9px 10px;border:1px solid #e5b7b2;background:#fff6f4;border-radius:10px;color:#9e2d27;font-size:11px;line-height:1.35}.bill-check-warning b,.bill-check-warning span{display:block}.bill-check-warning b{margin-bottom:2px}.bill-check-danger{color:#a82d26!important}

.line-mode-chip{display:inline-flex;margin-left:5px;padding:2px 6px;border-radius:999px;font-size:9px;font-weight:800;vertical-align:1px;background:#eef3ef;color:var(--green);text-transform:none}
.line-mode-chip.offline{background:#fff2d0;color:#7c5a00}.line-mode-chip.loose{background:#e9f1ff;color:#315f91}.line-mode-chip.online{background:#eaf4ed;color:#27603d}
.loose-qty{min-width:72px;justify-content:center;font-size:12px;font-weight:750;color:#526459}
.discount-box{margin:11px 0 4px;padding:10px 11px;border:1px solid #e4dac2;border-radius:13px;background:#fdfaf3}
.discount-box .field{margin:4px 0}.discount-error{min-height:14px;margin-top:5px;color:#9e2d2d;font-size:11px;line-height:1.25}
.cart-money-summary{border-top:1px dashed #d8cfba;margin-top:11px;padding-top:9px}
.cart-money-summary>div{display:flex;justify-content:space-between;gap:14px;padding:3px 0;font-size:13px}
.cart-money-summary>div b{font-variant-numeric:tabular-nums}.cart-money-summary .cart-total{font-size:21px;margin:5px 0 0;padding-top:7px;border-top:1px solid #d7cfbc;text-align:left;display:flex;justify-content:space-between;align-items:center}
.sale-branch select:disabled{background:#f4f0e7;color:#657168;cursor:not-allowed}
@media(max-width:760px){.page-head{position:relative}.user-profit-tools{align-self:flex-end;margin-top:-2px}.bill-check-popover{position:fixed;right:12px;top:calc(max(12px,env(safe-area-inset-top)) + 130px);width:min(330px,calc(100vw - 24px))}}

/* SHOT 1 FIX3 — margin bulb guide + private per-item profitability */
.discount-margin-guide{margin-top:8px;padding-top:8px;border-top:1px dashed #ded5bf}
.margin-guide-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:6px;font-size:11px;color:var(--muted)}
.margin-guide-head b{font-size:12px;color:var(--green);font-variant-numeric:tabular-nums}
.margin-guide{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;align-items:start}
.margin-bulb{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0;color:#7a817b;font-size:9px;text-align:center}
.margin-bulb i{display:block;width:15px;height:15px;border-radius:50%;opacity:.30;box-shadow:inset 0 0 0 1px rgba(0,0,0,.10)}
.margin-bulb small{font-size:8.5px;white-space:nowrap}
.margin-bulb.band-0 i{background:#a8201a}.margin-bulb.band-1 i{background:#cf4942}.margin-bulb.band-2 i{background:#ed8d84}.margin-bulb.band-3 i{background:#b8daba}.margin-bulb.band-4 i{background:#58a96a}.margin-bulb.band-5 i{background:#0d6b34}
.margin-bulb.active i{opacity:1;transform:scale(1.14);box-shadow:0 0 0 3px rgba(23,63,45,.10),0 2px 5px rgba(0,0,0,.16)}
.margin-bulb.active small{font-weight:850;color:var(--ink)}
.margin-guide.compact{gap:7px;margin-top:5px}.margin-guide.compact .margin-bulb i{width:13px;height:13px}.margin-guide.compact .margin-bulb small{display:none}
.bill-check-margin{margin-top:9px;padding-top:8px;border-top:1px dashed #ded5bf}
.bill-item-profit{margin-top:10px;padding-top:8px;border-top:1px dashed #ded5bf;max-height:230px;overflow:auto}
.bill-item-profit-title{font-size:11px;font-weight:850;color:var(--green);margin-bottom:4px}
.bill-item-profit-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:7px 0;border-bottom:1px solid #f0eadc;align-items:center}
.bill-item-profit-row:last-child{border-bottom:0}
.bill-item-name{min-width:0}.bill-item-name>b{display:block;font-size:11.5px;color:var(--ink);white-space:normal;line-height:1.2}.bill-item-name>small{display:block;margin-top:2px;color:var(--muted);font-size:9.5px}
.bill-item-values{text-align:right;white-space:nowrap}.bill-item-values>span{display:block;font-weight:850;color:var(--green);font-size:11.5px;font-variant-numeric:tabular-nums}.bill-item-values>span em{font-style:normal}.bill-item-values>small{display:block;color:var(--muted);font-size:9px;margin-top:2px;font-variant-numeric:tabular-nums}
@media(max-width:760px){.bill-check-popover{width:min(390px,calc(100vw - 24px))}.margin-bulb small{font-size:7.5px}.bill-item-profit{max-height:190px}}
\n\n/* SHOT 1 FIX4 — private margin lamps under Owner/Admin + desktop viewport fit */
.user-profit-tools{flex-direction:column;align-items:flex-end;gap:4px}
.user-profit-row{display:flex;align-items:center;justify-content:flex-end;gap:7px}
.header-margin-bulbs{width:132px;min-height:17px;display:flex;justify-content:flex-end;align-items:center;padding-right:2px}
.header-margin-bulbs .margin-guide{width:132px;display:grid;grid-template-columns:repeat(6,1fr);gap:7px;margin:0;align-items:center}
.header-margin-bulbs .margin-bulb{display:grid;place-items:center;min-width:0}
.header-margin-bulbs .margin-bulb i{width:12px;height:12px;border-radius:50%;background:#d7d8d3;opacity:.42;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08);transform:none}
.header-margin-bulbs .margin-bulb.active i{opacity:1;transform:scale(1.16);box-shadow:0 0 0 3px rgba(23,63,45,.08),0 2px 5px rgba(0,0,0,.18)}
.header-margin-bulbs .margin-bulb.active.band-0 i{background:#a8201a}
.header-margin-bulbs .margin-bulb.active.band-1 i{background:#cf4942}
.header-margin-bulbs .margin-bulb.active.band-2 i{background:#ed8d84}
.header-margin-bulbs .margin-bulb.active.band-3 i{background:#b8daba}
.header-margin-bulbs .margin-bulb.active.band-4 i{background:#58a96a}
.header-margin-bulbs .margin-bulb.active.band-5 i{background:#0d6b34}
.header-margin-bulbs .margin-bulb small{display:none!important}
.bill-check-popover{top:60px}

/* No margin/profit indicator is rendered inside the customer-facing cart. */
.discount-margin-guide,.discount-error{display:none!important}

/* SHOT 1 FIX5 — restore comfortable centered desktop width while preserving FIX4 viewport height */
@media(min-width:901px){
  .sale-shell{width:min(1180px,calc(100% - 24px));max-width:1180px;margin:0 auto;height:100vh;overflow:hidden;display:flex;flex-direction:column;padding:8px 12px 10px}
  .sale-shell .topbar{flex:0 0 auto;padding:8px 12px}
  .sale-shell .brand-mini img{width:112px;height:46px}
  .sale-shell .page-head{flex:0 0 auto;margin:8px 2px 7px;align-items:center}
  .sale-shell .page-head h1{font-size:22px}
  .sale-shell .page-head p{margin-top:2px;font-size:12px}
  .sale-shell .sale-toolbar{flex:0 0 auto;margin:4px 0 8px;padding:9px 14px}
  .sale-shell .sale-toolbar-top{gap:10px}
  .sale-shell .sale-filter-row{margin-top:7px;gap:10px}
  .sale-shell .field{margin:5px 0}
  .sale-shell .field input,.sale-shell .field select{padding:9px 11px;min-height:40px}
  .sale-shell .category-tabs button{padding:8px 11px}
  .sale-shell .sale-workspace{flex:1 1 auto;min-height:0;height:auto;max-height:80vh;overflow:hidden;margin:0;align-items:stretch}
  .sale-shell .sale-products-pane{height:100%;min-height:0;margin:0;display:flex;flex-direction:column;overflow:hidden}
  .sale-shell .packed-list,.sale-shell .loose-list{flex:1 1 auto;min-height:0;max-height:none;overflow:auto}
  .sale-shell .sale-cart-pane{height:100%;min-height:0;position:static;overflow:hidden}
  .sale-shell .sale-cart-card{height:100%;min-height:0;max-height:none;margin:0;overflow:auto}
  .sale-shell .footer-note{display:none}
}
@media(max-width:900px){
  .sale-shell{max-width:none;width:100%}
  .header-margin-bulbs{width:118px}
  .header-margin-bulbs .margin-guide{width:118px;gap:6px}
  .bill-check-popover{top:58px}
}

/* v1.1.0 SHOT 2 — shipping controls + complete Owner/Admin profit management */
.shipping-box{margin:11px 0 7px;padding:10px 11px;border:1px solid #d8e1d8;border-radius:13px;background:#f8fbf7}
.toggle-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.toggle-row b{color:var(--green);font-size:12.5px}.shipping-bill-toggle{margin:8px 0 3px;padding-top:8px;border-top:1px dashed #d9dfd5}
.switch{position:relative;display:inline-flex;width:42px;height:23px;flex:0 0 42px}.switch input{opacity:0;width:0;height:0}.switch span{position:absolute;inset:0;border-radius:999px;background:#c9ccc8;cursor:pointer;transition:.18s}.switch span:before{content:"";position:absolute;width:17px;height:17px;left:3px;top:3px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.22);transition:.18s}.switch input:checked+span{background:var(--green)}.switch input:checked+span:before{transform:translateX(19px)}
.profit-filter-card{margin-bottom:10px}.profit-presets{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:7px}.profit-tabs{display:flex;gap:6px;overflow:auto;margin:0 0 10px;padding:4px;background:#eee8d9;border-radius:12px}.profit-tabs button{border:0;background:transparent;padding:9px 13px;border-radius:9px;font-weight:800;color:#526459;white-space:nowrap}.profit-tabs button.active{background:#fff;color:var(--green);box-shadow:0 2px 7px rgba(35,55,42,.10)}
.profit-summary-grid{margin-bottom:10px}.highlight-profit{border:1px solid #a7c9ae;background:#f3faf4}.profit-kpi{font-size:27px;font-weight:900;color:var(--green);font-variant-numeric:tabular-nums}.profit-small-value{font-size:17px!important;line-height:1.2;word-break:break-word}.profit-detail-modal{width:min(920px,96vw)}.profit-detail-grid{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 18px;padding:12px 2px 14px;font-size:13px}.profit-detail-grid span{color:var(--muted)}.profit-detail-grid b{text-align:right;color:var(--green);font-variant-numeric:tabular-nums}.profit-bills-table td,.profit-bills-table th{font-size:11.5px}.profit-bills-table .money{white-space:nowrap}
@media(max-width:760px){.profit-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profit-kpi{font-size:23px}.profit-tabs{position:sticky;top:0;z-index:5}.profit-bills-table{min-width:980px}}

/* v1.1.1 — Owner/Admin fixed-price Combo billing */
.line-mode-chip.combo{background:#f4ead0;color:#74570d;border:1px solid #e7d59e}
.combo-fixed-note{align-self:center;font-size:12px;color:#665b3d;background:#fff8e4;border:1px solid #ead9a7;border-radius:10px;padding:8px 10px}
.combo-list{flex:1 1 auto;min-height:0;max-height:calc(100vh - 330px);overflow:auto;background:#fff}
.combo-row{display:grid;grid-template-columns:minmax(0,1fr) 150px 82px;gap:12px;align-items:center;padding:12px 14px;border-bottom:1px solid #eee8db;min-height:78px}
.combo-row:hover{background:#fdfaf3}.combo-row:last-child{border-bottom:0}.combo-main{display:flex;min-width:0;flex-direction:column;gap:3px}.combo-main>b{color:var(--green);font-size:14px}.combo-main>small{color:var(--muted);font-size:11px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.combo-price{display:flex;flex-direction:column;align-items:flex-end}.combo-price span{font-size:10px;color:var(--muted)}.combo-price b{font-size:18px;color:var(--green);font-variant-numeric:tabular-nums}.combo-edit-link{border:0;background:transparent;color:var(--green);font-size:11px;font-weight:800;padding:3px 0;text-decoration:underline;text-underline-offset:2px}.combo-cart-line{align-items:start}.combo-price-lock{display:flex;flex-direction:column;gap:3px;padding:11px 12px;border:1px solid #dfcb8e;background:#fff7db;border-radius:12px;margin:7px 0 10px}.combo-price-lock b{color:#6e5208}.combo-price-lock span{font-size:12px;color:#6e644a}.combo-edit-list{display:grid;gap:8px;margin:8px 0 12px}.combo-edit-row{display:grid;grid-template-columns:minmax(170px,.8fr) minmax(240px,1.2fr);gap:12px;align-items:center;padding:9px 10px;background:#fff;border:1px solid #e4dcc7;border-radius:12px}.combo-edit-row>div:first-child{display:flex;flex-direction:column;gap:3px}.combo-edit-row small{color:var(--muted)}.combo-edit-row .field{margin:0}.combo-master-safe{font-size:12px;color:var(--green);font-weight:700;background:#edf6ef;border:1px solid #cee0d1;border-radius:10px;padding:9px 10px;margin:8px 0 12px}.combo-edit-modal{width:min(900px,96vw)}
@media(min-width:901px){.sale-shell .combo-list{flex:1 1 auto;min-height:0;max-height:none;overflow:auto}}
@media(max-width:620px){.combo-row{grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:10px}.combo-row>div:last-child{grid-column:2;grid-row:1 / span 2}.combo-price{align-items:flex-start}.combo-main>small{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.combo-edit-row{grid-template-columns:1fr}.combo-fixed-note{font-size:11px}.combo-list{max-height:none}}

/* v1.1.2 — BillDesk branch-wise product consolidation export */
.billdesk-filter-card{margin-bottom:10px}.billdesk-presets{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:7px}.billdesk-summary-grid{margin-bottom:10px}.billdesk-export-table{min-width:1450px}.billdesk-batch-table{min-width:1080px}.billdesk-export-table td,.billdesk-export-table th,.billdesk-batch-table td,.billdesk-batch-table th{font-size:11.5px}.billdesk-export-table .money,.billdesk-batch-table .money{white-space:nowrap}.billdesk-export-table small{font-size:9.5px}.billdesk-filter-card .tiny{line-height:1.45}.billdesk-filter-card .btn-row{margin-top:4px}
@media(max-width:760px){.billdesk-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.billdesk-export-table{min-width:1400px}.billdesk-batch-table{min-width:1000px}}
.simple-qty-table .product-total-row td{background:#f7f1df;border-top:1px solid #d7c491}
.simple-qty-table .grand-total-row td{background:#173f2d;color:#fff;font-size:1.02rem}
.simple-qty-table td,.simple-qty-table th{vertical-align:middle}
