:root{--navy:#172940;--navy2:#0f2035;--blue:#2658dd;--blue-light:#eaf0ff;--teal:#0e9e89;--bg:#f5f7fb;--white:#fff;--text:#1b2b41;--muted:#708095;--line:#e4e9f2;--bad:#d94c60;--warning:#ec9e24;--radius:14px;--shadow:0 10px 35px rgba(28,49,84,.055);font-family:Inter,"Segoe UI",-apple-system,BlinkMacSystemFont,Arial,sans-serif;color:var(--text);background:var(--bg)}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}input,select,textarea{background:#fff;color:var(--text);border:1px solid #dce3ed;border-radius:10px;padding:11px 12px;min-width:0;outline:none}input:focus,select:focus,textarea:focus{border-color:#6392f5;box-shadow:0 0 0 3px #6392f51c}input[type=checkbox]{width:auto;box-shadow:none}label{font-size:12px;color:#5b6d83;font-weight:700;display:grid;gap:6px}label input,label select,label textarea{font-weight:400;font-size:14px}input[type=number]{font-variant-numeric:tabular-nums}button:disabled{opacity:.42;cursor:not-allowed}h1,h2,h3,p{margin-top:0}h1{font-size:26px;letter-spacing:-.7px;margin-bottom:6px}h2{font-size:19px;letter-spacing:-.3px;margin-bottom:10px}h3{font-size:15px;margin:0}p{line-height:1.55}.small,.muted{color:var(--muted)}.small{font-size:12px}.money{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:700}.row{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.grow{flex:1}.wrap{flex-wrap:wrap}.mt{margin-top:18px}.mb{margin-bottom:18px}.hide{display:none!important}.text-right{text-align:right}.text-center{text-align:center}.text-good{color:#0c8a76}.text-bad{color:var(--bad)}
.btn{display:inline-flex;justify-content:center;align-items:center;gap:8px;border-radius:10px;padding:11px 16px;border:1px solid transparent;font-weight:700;font-size:13px;line-height:1.2;white-space:nowrap;transition:transform .12s ease,background .12s ease}.btn:hover:not(:disabled){transform:translateY(-1px)}.btn.primary{background:var(--blue);color:white}.btn.primary:hover{background:#194bc8}.btn.dark{background:var(--navy);color:#fff}.btn.light{background:#fff;color:var(--text);border-color:var(--line)}.btn.light:hover{background:#f9fbff}.btn.danger{background:#fdebed;color:#bd3e50}.btn.good{background:#e6f8f3;color:#087866}.btn.sm{font-size:12px;padding:7px 11px;border-radius:8px}.btn.full{width:100%}.btn.icon{padding:7px 9px}.buttonbar{display:flex;gap:8px;flex-wrap:wrap}.badge{display:inline-block;border-radius:50px;padding:5px 9px;background:#edf2fa;color:#566c82;font-size:11px;font-weight:800;white-space:nowrap}.badge.good{background:#ddf7ee;color:#06826c}.badge.warn{background:#fff2d7;color:#a46603}.badge.bad{background:#ffebed;color:#b63e50}.badge.blue{background:var(--blue-light);color:var(--blue)}
.auth-bg{min-height:100vh;display:grid;place-items:center;padding:22px;background:radial-gradient(circle at 20% 25%,#2b4b85 0%,transparent 38%),radial-gradient(circle at 80% 80%,#0b5b67 0%,transparent 33%),#14263e}.auth-panel{background:white;box-shadow:0 22px 75px #00132b55;border-radius:22px;padding:34px;width:min(460px,100%)}.auth-panel .brand-mark{margin-bottom:22px}.auth-panel h1{font-size:25px}.auth-panel>p{color:var(--muted);font-size:14px}.auth-panel form{display:grid;gap:15px;margin-top:24px}.auth-panel .notice{background:#f1f5fc;color:#48617c;border-radius:10px;font-size:12px;padding:12px;line-height:1.5}.brand-mark{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(135deg,#3071fa,#06a793);color:white;font-size:22px;font-weight:900;box-shadow:0 8px 18px #0b4cc631}.loading-screen{height:100vh;display:flex;align-items:center;justify-content:center;flex-direction:column;color:var(--navy)}
.shell{display:flex;min-height:100vh}.side{width:236px;background:var(--navy);color:white;display:flex;flex-direction:column;flex-shrink:0;position:sticky;top:0;height:100vh;overflow:auto}.side-brand{padding:22px 18px;display:flex;align-items:center;gap:11px;font-size:17px;font-weight:900;letter-spacing:-.4px;border-bottom:1px solid #ffffff13}.side-brand .brand-mark{width:33px;height:33px;font-size:17px}.side .group-name{font-size:10px;text-transform:uppercase;letter-spacing:1.5px;font-weight:800;color:#839bb5;padding:22px 23px 9px}.side nav{display:grid;gap:3px;padding:0 10px}.side nav button{width:100%;text-align:left;padding:11px 13px;border:0;background:transparent;color:#b2c2d3;border-radius:10px;display:flex;align-items:center;gap:12px;font-size:13px;font-weight:650}.side nav button .ni{width:20px;display:inline-block;text-align:center;font-size:17px}.side nav button:hover{background:#ffffff11;color:white}.side nav button.active{background:#3763a7;color:white}.side-bottom{margin-top:auto;border-top:1px solid #ffffff1c;padding:15px 18px;display:grid;gap:10px}.profile-name{font-size:13px;color:#fff;font-weight:750}.profile-sub{font-size:11px;color:#91a6bf}.side-bottom .btn{background:#29405b;border-color:#ffffff18;color:white;width:100%}.main{min-width:0;flex:1}.topbar{height:74px;background:var(--white);border-bottom:1px solid var(--line);padding:0 29px;display:flex;align-items:center;justify-content:space-between;gap:12px}.topbar .heading{min-width:0}.topbar .heading b{font-size:17px;display:block}.topbar .heading small{font-size:11px;color:var(--muted)}.topbar-right{display:flex;align-items:center;gap:11px}.store-picker{padding:9px 10px;background:#f5f7fc;font-weight:700;font-size:12px;border-color:#e3eaf3;max-width:240px}.page{padding:24px 28px 42px;max-width:1700px;margin:0 auto}.page-title{display:flex;align-items:start;justify-content:space-between;gap:15px;margin-bottom:20px}.page-title p{color:var(--muted);margin-bottom:0;font-size:13px}.card{border-radius:var(--radius);background:white;border:1px solid var(--line);box-shadow:var(--shadow);padding:18px}.card-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.card-title h2{margin:0}.grid{display:grid;gap:17px}.grid.c4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid.c3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid.c2{grid-template-columns:repeat(2,minmax(0,1fr))}.metric{padding:20px 22px}.metric .klabel{font-size:12px;color:var(--muted);font-weight:700}.metric .kvalue{font-size:27px;font-weight:850;letter-spacing:-.6px;margin:10px 0 5px;white-space:nowrap}.metric .kfoot{font-size:11px;color:var(--muted)}.metric .bubble{height:35px;width:35px;border-radius:11px;display:grid;place-items:center;background:#e9effe;font-size:18px}.notice{padding:12px 14px;background:#f0f5ff;border:1px solid #dbe8ff;border-radius:10px;font-size:13px;color:#36527d}.notice.warning{background:#fff5df;border-color:#ffe4ab;color:#7d5515}.notice.danger{background:#ffedf0;border-color:#f8c7cf;color:#a8374b}.subtle{background:#f7f9fc;border:1px solid #e8edf3;border-radius:10px;padding:13px}
.table-scroll{width:100%;overflow:auto}.table{border-collapse:collapse;width:100%;font-size:13px}.table th{background:#f8fafd;text-align:left;color:#7b899b;letter-spacing:.04em;text-transform:uppercase;font-size:10px;padding:12px 14px;border-bottom:1px solid var(--line);white-space:nowrap}.table td{padding:13px 14px;border-bottom:1px solid #edf0f4;vertical-align:middle}.table tr:last-child td{border-bottom:0}.table tbody tr:hover{background:#fafcff}.table td .name{font-weight:700}.table td .sub{font-size:11px;color:var(--muted);margin-top:3px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:14px}.section-head h2{margin:0}.table-actions{display:flex;gap:7px;align-items:center}.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:14px}.toolbar input{min-width:220px;flex:1;max-width:440px}.toolbar select{font-size:13px}.empty{text-align:center;padding:35px 15px;color:var(--muted)}.empty strong{color:var(--navy);display:block;font-size:15px;margin-bottom:8px}.empty .empty-icon{font-size:29px;margin-bottom:8px}.chart-bars{display:flex;gap:7px;align-items:flex-end;height:175px;padding:10px 3px 0}.bar-wrap{flex:1;min-width:20px;display:flex;flex-direction:column;justify-content:end;align-items:center;gap:6px;height:100%}.bar{border-radius:6px 6px 0 0;background:linear-gradient(0deg,#3972e2,#1ba6ad);width:100%;max-width:40px;min-height:3px}.bar-label{font-size:9px;color:var(--muted);white-space:nowrap}.chart-axis{border-top:1px solid var(--line)}.store-line{display:flex;gap:12px;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:11px 0}.store-line:last-child{border:0}.softpill{display:inline-flex;align-items:center;gap:7px;border-radius:24px;padding:7px 11px;color:#167766;background:#dcf7ef;font-size:11px;font-weight:800}
.pos-layout{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:18px;align-items:start}.pos-catalog{min-height:620px}.pos-search{position:relative}.pos-search input{font-size:15px;padding:13px 17px;width:100%;border:1px solid #dce3ed}.pos-filter-help{font-size:11px;color:var(--muted);margin:10px 0 16px}.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px}.product-tile{padding:15px;background:#fff;border:1px solid var(--line);border-radius:12px;display:flex;flex-direction:column;gap:8px;text-align:left;min-height:143px;transition:all .12s;box-shadow:none}.product-tile:hover:not(:disabled){border-color:#71a5ef;box-shadow:0 9px 22px #204fbd0f;transform:translateY(-2px)}.product-tile .tile-symbol{height:28px;width:28px;background:#eaf1fd;color:#3a66c3;display:grid;place-items:center;border-radius:8px;font-size:13px;font-weight:800}.product-tile .tile-name{font-weight:750;line-height:1.35;font-size:13px}.product-tile .tile-detail{font-size:10px;color:var(--muted)}.product-tile .tile-foot{display:flex;gap:8px;align-items:end;justify-content:space-between;margin-top:auto}.product-tile .tile-price{font-weight:850;font-size:14px;color:#1d4ec1}.product-tile .tile-stock{font-size:10px;font-weight:700;color:var(--muted)}.product-tile:disabled{background:#f7f9fb;opacity:.58}.cart-panel{position:sticky;top:92px;display:flex;flex-direction:column;padding:0;overflow:hidden;max-height:calc(100vh - 114px);min-height:390px}.cart-head{padding:19px 19px 15px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.cart-head h2{margin:0}.cart-customer{padding:11px 17px;border-bottom:1px solid var(--line)}.cart-customer select{width:100%;font-size:12px}.cart-items{padding:9px 16px;overflow-y:auto;flex:1;min-height:100px}.cart-item{padding:12px 0;border-bottom:1px dashed #e3e9f0}.cart-item:last-child{border-bottom:0}.cart-item-name{font-size:12px;font-weight:750;line-height:1.35}.cart-item-price{font-size:12px;color:var(--muted)}.qty-control{display:flex;align-items:center;gap:8px;margin-top:9px}.qty-control button{width:25px;height:25px;padding:0;border-radius:7px;background:#f1f4fa;border:0;color:#365479;font-weight:900}.qty-control strong{font-size:12px;min-width:18px;text-align:center}.cart-foot{padding:15px 18px 19px;background:#fafcff;border-top:1px solid var(--line)}.cart-summary{display:grid;gap:11px;margin-bottom:16px}.cart-summary>div{display:flex;justify-content:space-between;font-size:13px}.cart-summary>div.total{border-top:1px solid var(--line);padding-top:13px;font-size:19px;font-weight:850}.cart-summary .discount-input{width:105px;text-align:right;padding:6px 9px;font-size:12px}.cart-customer select{border:0;background:#f7f9fd}.checkout-help{font-size:11px;text-align:center;color:var(--muted);margin-top:9px}.cart-panel .btn.primary{font-size:15px;padding:14px}.preview-row{display:flex;justify-content:space-between;gap:20px;padding:8px 0;border-bottom:1px dashed var(--line);font-size:13px}.preview-row:last-child{border-bottom:0}
.modal{border:0;border-radius:18px;box-shadow:0 25px 100px #071d3b66;padding:0;width:min(640px,calc(100% - 24px));max-height:calc(100vh - 40px);overflow:auto;background:white;color:var(--text)}.modal.large{width:min(820px,calc(100% - 24px))}.modal::backdrop{background:#0c2039a8;backdrop-filter:blur(3px)}.modal-head{padding:20px 24px 16px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:12px}.modal-head h2{margin:0}.modal-close{background:#f1f4f8;border:0;border-radius:10px;height:30px;width:30px;font-weight:800;color:#496079}.modal-body{padding:20px 24px}.modal-foot{display:flex;justify-content:flex-end;gap:8px;margin-top:23px;padding-top:15px;border-top:1px solid var(--line)}.form-grid{display:grid;gap:15px;grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid .wide{grid-column:1/-1}.form-grid select,.form-grid input,.form-grid textarea{width:100%}.item-line{display:grid;grid-template-columns:minmax(120px,1fr) 75px 95px 30px;gap:8px;align-items:center;margin:7px 0}.item-line.transfer{grid-template-columns:minmax(120px,1fr) 100px 30px}.item-line input,.item-line select{font-size:12px;padding:9px}.item-line .remove-line{border:0;background:#ffe9ec;color:var(--bad);width:29px;height:32px;border-radius:8px}.payment-options{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.payment-option{display:grid;gap:5px;justify-content:center;align-items:center;text-align:center;background:#f8faff;border:1px solid var(--line);border-radius:12px;padding:14px 5px;font-size:12px;font-weight:700;cursor:pointer}.payment-option input{margin:auto}.payment-option:has(input:checked){border-color:var(--blue);background:var(--blue-light);color:var(--blue)}.payment-total{border-radius:14px;padding:20px;background:#152b49;color:#fff;text-align:center;font-size:31px;font-weight:900;letter-spacing:-.8px}.payment-total small{display:block;color:#a5bedb;font-size:11px;letter-spacing:.05em;font-weight:700;margin-bottom:8px}.setting-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.stat-big{font-size:22px;font-weight:850}.indicator{height:8px;width:8px;border-radius:50%;display:inline-block;background:#20ae8c}.status-label{text-transform:capitalize}
.toast{position:fixed;right:18px;bottom:20px;z-index:999;background:#173c32;color:white;border-radius:11px;padding:14px 20px;font-size:13px;box-shadow:0 10px 35px #0003;opacity:0;transform:translateY(12px);pointer-events:none;transition:.2s;max-width:410px}.toast.show{opacity:1;transform:translateY(0)}.toast.error{background:#922d3e}.receipt-print{display:none}
@media(max-width:1280px){.side{width:204px}.pos-layout{grid-template-columns:minmax(0,1fr) 330px}.grid.c4{grid-template-columns:repeat(2,1fr)}}
@media(max-width:980px){.side{width:65px}.side-brand{padding:18px 14px}.side-brand .side-title,.side nav button .nav-label,.side .group-name,.side-bottom .profile-name,.side-bottom .profile-sub,.side-bottom .btn span{display:none}.side nav{padding:0 7px}.side nav button{justify-content:center;padding:12px 6px}.side nav button .ni{font-size:19px}.side-bottom{padding:12px 7px}.topbar{padding:0 17px}.page{padding:17px}.grid.c3{grid-template-columns:repeat(2,1fr)}.pos-layout{grid-template-columns:minmax(0,1fr) 320px}}
@media(max-width:760px){.side{position:fixed;bottom:0;top:auto;width:100%;height:62px;z-index:99;flex-direction:row;overflow:auto}.side-brand,.side .group-name,.side-bottom{display:none}.side nav{display:flex;align-items:center;gap:2px;padding:4px;width:max-content}.side nav button{min-width:59px;height:52px;padding:5px 8px}.shell{display:block;padding-bottom:62px}.topbar{height:65px}.topbar .heading small{display:none}.store-picker{max-width:155px}.page-title{align-items:start}.page-title h1{font-size:21px}.pos-layout{grid-template-columns:1fr}.pos-catalog{min-height:0}.cart-panel{position:static;max-height:none;min-height:320px}.cart-items{max-height:310px}.grid.c2,.grid.c3{grid-template-columns:1fr}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.metric .kvalue{font-size:23px}}
@media(max-width:510px){.grid.c4{grid-template-columns:1fr 1fr;gap:10px}.metric{padding:15px}.metric .klabel{font-size:10px}.metric .kvalue{font-size:18px}.topbar-right{gap:4px}.topbar .heading b{font-size:13px}.store-picker{max-width:135px;font-size:11px;padding:8px 5px}.page{padding:12px}.page-title{display:block}.page-title .buttonbar{margin-top:12px}.product-grid{gap:8px}.product-tile{min-height:135px;padding:11px}.item-line{grid-template-columns:1fr 60px 68px 24px}.item-line.transfer{grid-template-columns:1fr 65px 24px}.form-grid,.setting-grid{grid-template-columns:1fr}.modal-body{padding:15px}.modal-head{padding:16px}.payment-total{font-size:25px}}
@media print{body>*:not(#receipt-print){display:none!important}.receipt-print{display:block!important;font-family:Arial,sans-serif!important;color:#000!important;background:#fff!important;padding:0!important;width:72mm;margin:0 auto;font-size:11px}.receipt-print h2{text-align:center;font-size:17px;margin:0 0 5px}.receipt-print .center{text-align:center}.receipt-print .line{display:flex;justify-content:space-between;gap:8px;padding:4px 0}.receipt-print hr{border:0;border-top:1px dashed #000}.receipt-print .rtotal{font-size:15px;font-weight:700}.receipt-print .small{font-size:10px;color:#000!important}@page{margin:3mm;size:80mm auto}}

/* v1.3 importer quick action visible from Store Inventory. */
.build-version{font-size:10px;letter-spacing:.05em;display:inline-block;margin-left:5px;color:#b4c9e6;font-weight:600}.import-notice{display:flex;align-items:center;justify-content:space-between;gap:20px}.import-notice p{margin:5px 0 0;color:#4a6584}.text-link{background:none;border:0;padding:0;font:inherit;color:#2558dc;text-decoration:underline;cursor:pointer;font-weight:750}@media(max-width:650px){.import-notice{display:grid;gap:10px}.build-version{display:none}}
/* MultiStore POS v1.4 · streamlined bill-entry / cashier layout */
.bill-card{padding:0;overflow:visible;border-radius:13px;min-height:540px;box-shadow:0 12px 35px #152b4510;background:white}
.bill-topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 20px 18px;border-bottom:1px solid #eceff2}
.bill-search-group{display:flex;align-items:stretch;gap:10px;flex:1;max-width:710px;min-width:0}
.bill-search-group select{width:112px;min-width:94px;font-size:13px;border:1px solid #d6dce6;border-radius:7px;background:white;padding:10px 11px;box-shadow:none}
.bill-search-wrap{position:relative;flex:1;min-width:0}
.bill-search-wrap input{width:100%;min-height:44px;border-radius:7px;border:1px solid #b1c4e1;font-size:14px;padding:11px 14px}
.bill-search-wrap input:focus{border-color:#2d62e1;box-shadow:0 0 0 2px #2d62e119}
.bill-discard{flex-shrink:0;font-size:13px!important;font-weight:650!important;border-radius:7px!important;padding:12px 16px!important}
.bill-discard span{font-size:11px;color:#8b929b}
.bill-suggestions{position:absolute;top:calc(100% + 5px);left:0;right:0;background:#fff;z-index:20;border:1px solid #cbd6e3;box-shadow:0 13px 35px #1d344330;border-radius:9px;overflow:auto;max-height:340px;display:none}
.bill-suggestions.visible{display:block}.bill-result{width:100%;background:white;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;border:0;border-bottom:1px solid #e7ecf4;text-align:left}
.bill-result:last-child{border-bottom:0}.bill-result:hover:not(:disabled),.bill-result:focus-visible{background:#f1f6ff;outline:0}.bill-result strong{display:block;font-size:13px;color:#1b2b41}.bill-result small{display:block;font-size:11px;color:#758398;margin-top:4px;overflow-wrap:anywhere}
.bill-result-aside{text-align:right;min-width:110px}.bill-result-aside strong{color:#2459b7}.bill-result:disabled{opacity:.52;cursor:not-allowed}
.bill-no-match{font-size:13px;padding:16px;color:#657b92}
.bill-table-scroll{overflow-x:auto;width:100%;min-height:284px}
.bill-table{width:100%;border-collapse:collapse;table-layout:fixed;min-width:650px;color:#222831;font-size:14px}
.bill-table th,.bill-table td{border-bottom:1px solid #ebedf1;vertical-align:middle}
.bill-table thead th{font-weight:600;background:#fdfdfe;color:#27323e;text-align:left;padding:13px 18px;font-size:13px}
.bill-table thead th:nth-child(1){width:35%}.bill-table thead th:nth-child(2){width:25%}.bill-table thead th:nth-child(3){width:24%}.bill-table thead th:nth-child(4){width:16%}
.bill-table .bill-item-row td{padding:13px 18px;min-height:64px}
.bill-item-title{font-size:14px;font-weight:700;color:#243145}.bill-item-sub{font-size:11px;margin-top:4px;color:#8190a1}
.bill-remove{font-size:11px;border:0;color:#a74758;padding:6px 0 0;text-decoration:underline;background:none}
.bill-qty{display:flex;align-items:center;gap:3px}.bill-qty button{height:30px;width:29px;border:1px solid #dce2eb;background:#f8fafc;color:#34516f;border-radius:6px;font-size:17px;font-weight:650;line-height:1}
.bill-qty input{height:30px;width:56px;padding:4px 5px;text-align:center;border-radius:6px;font-size:13px}
.bill-qty input::-webkit-outer-spin-button,.bill-qty input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.bill-qty input{-moz-appearance:textfield;appearance:textfield}
.bill-stock{display:block;margin-top:4px;color:#7b8ca0;font-size:10px}
.bill-price,.bill-line-total,.bill-summary-value{font-variant-numeric:tabular-nums}.bill-price,.bill-line-total{color:#223247;font-weight:650}
.bill-empty-row td{padding:24px 18px;height:75px;color:#94a2b3;text-align:left;font-size:13px}
.bill-summary-row th{font-size:13px;font-weight:650;text-align:left;color:#222;padding:9px 18px}
.bill-summary-row td{padding:7px 18px;height:41px}
.bill-first-summary td,.bill-first-summary th{border-top:1px solid #dce3ec}
.bill-summary-row .bill-summary-value{display:flex;align-items:center;justify-content:space-between;gap:15px;font-weight:630;white-space:nowrap}
.bill-summary-row .bill-summary-value strong{font-weight:800;font-size:17px}
.bill-grand-total th,.bill-grand-total td{font-weight:800;color:#142940;background:#fbfdff}
.bill-edit{border:1px solid #d6dce5;background:#fff;border-radius:6px;width:28px;height:28px;display:grid;place-items:center;flex-shrink:0;padding:4px;color:#2b3c51}
.bill-edit:hover{background:#eff4ff;border-color:#a9c0ec}.bill-edit svg{width:15px;height:15px}
.bill-footer{border-top:1px solid #eff1f4;display:flex;align-items:start;justify-content:space-between;gap:10px;padding:15px 20px 18px}
.bill-tools{display:flex;align-items:start;gap:20px;flex-wrap:wrap}
.bill-tool{border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:5px;padding:0;color:#6f7781;font-size:11px;min-width:45px;max-width:75px}
.bill-tool-icon{display:grid;place-items:center;border:1px solid #dce1e6;width:41px;height:41px;border-radius:50%;color:#243042;background:#fff;transition:.15s}
.bill-tool-label{white-space:nowrap}.bill-tool-detail{font-size:9px;color:#2e6b91;min-height:10px;white-space:nowrap}
.bill-tool:hover .bill-tool-icon{background:#eaf2ff;border-color:#98b7ea}.bill-tool.selected .bill-tool-icon{background:#e2f5eb;border-color:#8bd1aa;color:#128457}
.bill-currency-label{color:#98a3b0;font-size:11px;white-space:nowrap;margin-top:15px}
.bill-checkout-bar{border-top:1px solid #e7edf5;background:#fbfcff;padding:17px 20px;display:flex;align-items:end;justify-content:space-between;gap:15px;border-radius:0 0 13px 13px}
.bill-customer{max-width:340px;flex:1}.bill-customer label{font-size:11px;margin-bottom:5px}.bill-customer select{font-size:13px;padding:10px 13px;width:100%}
.bill-pay{display:flex;gap:13px;align-items:center}.bill-pay span{font-size:12px;color:#8392a2;white-space:nowrap}
.bill-pay .btn{padding:12px 22px;min-width:205px;font-size:14px}.bill-tip{margin-top:10px;font-size:11px;color:#8290a2}
.bill-tip kbd{display:inline-block;border:1px solid #dde3ec;background:white;border-radius:4px;padding:1px 4px;color:#425269;font-size:10px}
@media(max-width:980px){.bill-tools{gap:12px}.bill-topbar{gap:10px}.bill-footer{flex-wrap:wrap}}
@media(max-width:640px){.bill-topbar{flex-wrap:wrap;padding:12px}.bill-search-group{width:100%;max-width:none;order:2}.bill-search-group select{width:82px;min-width:82px}.bill-discard{order:1;margin-left:auto}.bill-table thead th{padding:12px}.bill-table .bill-item-row td,.bill-summary-row td,.bill-summary-row th{padding:10px 12px}.bill-footer{padding:13px}.bill-tools{justify-content:space-between;width:100%;gap:11px}.bill-currency-label{display:none}.bill-checkout-bar{display:grid;gap:14px}.bill-customer{max-width:none}.bill-pay{justify-content:space-between}.bill-pay .btn{min-width:0;flex:1}.bill-tip{padding:0 6px}}
/* Mobile bill: keep quantities, unit prices and totals visible without horizontal scrolling. */
@media(max-width:640px){
  .bill-search-group{flex:0 0 100%;width:100%;order:2}
  .bill-search-group select{flex:0 0 82px;width:82px}
  .bill-search-wrap{flex:1 1 0;width:auto}
  .bill-table-scroll{overflow-x:visible;min-height:180px}
  .bill-table{display:block;min-width:0;width:100%;table-layout:auto}
  .bill-table thead{display:none}
  .bill-table tbody{display:block}
  .bill-table .bill-item-row{display:grid;grid-template-columns:minmax(0,1fr) 135px;gap:4px 10px;padding:12px;border-bottom:1px solid #e6eaf1}
  .bill-table .bill-item-row td{display:block;border:0;padding:4px 0}
  .bill-item-row td:first-child{grid-column:1;grid-row:1 / 3}
  .bill-item-row td:nth-child(2){grid-column:2;grid-row:1 / 3}
  .bill-item-row td:nth-child(3){grid-column:1;grid-row:3}
  .bill-item-row td:nth-child(4){grid-column:2;grid-row:3}
  .bill-item-row td:nth-child(3):before{content:'Unit Price: ';font-size:11px;color:#8a98a8;font-weight:500}
  .bill-item-row td:nth-child(4):before{content:'Total: ';font-size:11px;color:#8a98a8;font-weight:500}
  .bill-qty{gap:2px}.bill-qty button{width:26px}.bill-qty input{width:44px}
  .bill-summary-row{display:grid;grid-template-columns:minmax(0,1fr) 150px;min-height:44px;border-bottom:1px solid #e9edf4;align-items:center;padding:0 12px}
  .bill-summary-row td[colspan]{display:none}
  .bill-summary-row th,.bill-summary-row td.bill-summary-value{border:0;padding:8px 4px;display:flex;align-items:center}
  .bill-summary-row td.bill-summary-value{justify-content:space-between;min-height:43px}
  .bill-first-summary{border-top:1px solid #dae3f1}
  .bill-empty-row{display:block;min-height:70px}.bill-empty-row td{display:block;padding:22px 14px;height:auto}
}

/* v1.5: store assignment controls are genuinely hidden for company-wide roles */
[hidden] { display: none !important; }

/* v1.6: consolidated sales, stock, tax and staff report pages */
.report-tabs{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:6px 0 16px}
.report-tab{font:inherit;font-size:13px;font-weight:700;background:white;color:#49607b;border:1px solid #dce5f3;border-radius:9px;padding:11px 15px;cursor:pointer;min-height:41px}
.report-tab:hover{background:#edf4ff;color:#234a9e}.report-tab.selected{color:white;background:#2b60df;border-color:#2b60df;box-shadow:0 2px 10px #255cdd20}
.report-filters-card{padding:17px 20px}
.report-filter{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.report-filter>label{font-size:12px;font-weight:650;min-width:160px;flex:1;max-width:260px}
.report-filter label input,.report-filter label select{width:100%;min-height:43px;margin-top:5px}
.report-filter .btn{min-height:43px}.report-result{margin-top:5px}.report-result-header{gap:14px;flex-wrap:wrap;margin-bottom:16px}
.report-result-header h2{font-size:19px;margin:0 0 5px}.report-result-header p{margin:0}
.report-metrics{grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:14px}
.report-metrics .metric .kvalue{font-size:clamp(18px,2vw,28px)}
.report-table-card{overflow:hidden}.report-table-card .table-scroll{overflow-x:auto;max-width:100%}
.report-table-card .table{min-width:max-content;width:100%}.report-table-card .table th,.report-table-card .table td{padding:11px 12px;white-space:nowrap;font-size:12px}
.report-table-card .table td.right{text-align:right;font-variant-numeric:tabular-nums}.report-table-card .table thead th{font-size:11px}
.report-note{line-height:1.5;font-size:12px;border-left:3px solid #aec1e8}
.report-live-notice{flex:1;font-size:12px;min-width:250px}
.shift-indicator{font-size:12px;color:#7f91a5;align-self:center;font-weight:650}.shift-indicator.active{color:#087f5b}
@media(max-width:680px){.report-tabs{flex-wrap:nowrap;overflow-x:auto;padding-bottom:8px;scroll-snap-type:x mandatory}.report-tab{flex-shrink:0;scroll-snap-align:start}.report-filter>label{flex:1 1 140px}.report-filter .btn,.report-filter>a{flex:1 1 160px;text-align:center}.shift-indicator{width:100%}}


/* v1.7 Quotations: durable customer estimates, print/PDF, accept and convert */
.quote-stat-grid .metric .kvalue{font-size:25px}
.quote-editor-modal{width:min(1020px,calc(100% - 28px))}
.quote-main-fields{margin:17px 0 20px}
.quote-lines-header{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:15px 0 10px}
.quote-lines-header h3{margin:0;font-size:16px}
.quote-line{display:grid;grid-template-columns:minmax(175px,2fr) 90px 135px 124px 36px;gap:10px;align-items:end;padding:10px 0;border-bottom:1px solid #e8edf4}
.quote-line label{font-size:11px;color:#6a7c91;font-weight:650}
.quote-line label input,.quote-line label select{margin-top:5px;width:100%;min-width:0;padding:10px 8px;font-size:12px}
.quote-line-total{font-weight:800;color:#253d64;font-size:12px;padding:0 0 13px;text-align:right;white-space:nowrap}
.quote-line .quote-remove{height:37px;width:36px;padding:0 6px}
.quote-bottom-grid{display:grid;grid-template-columns:1fr 285px;gap:18px;margin-top:19px}
.quote-notes{display:grid;gap:13px}
.quote-notes textarea{resize:vertical;min-height:72px;width:100%}
.quote-summary{padding:16px;border:1px solid #dce5f2;box-shadow:none;background:#fbfdff;align-self:start}
.quote-summary input{width:100%;margin:6px 0 17px}
.quote-grand{font-size:16px;color:#173c7c;font-weight:850;border-top:2px solid #bdcdeb;margin-top:6px}
.quote-detail-meta{display:grid;grid-template-columns:1fr 1fr;gap:25px;background:#f7faff;border:1px solid #e3ebf8;border-radius:11px;margin-bottom:16px;padding:16px}
.quote-detail-meta div{display:flex;flex-direction:column;gap:5px}
.quote-detail-meta div span{font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:#6b8199;font-weight:750}
.quote-detail-meta strong{color:#1e385e;font-size:15px}
.quote-detail-meta small{color:#6e8094;font-size:12px}
.quote-totals{margin:13px 0 0 auto;max-width:350px}
.quote-action-bar{flex-wrap:wrap;justify-content:flex-end}
@media(max-width:920px){.quote-line{grid-template-columns:minmax(150px,2fr) 72px 105px 92px 30px;gap:6px}.quote-line-total{font-size:10px}.quote-line label input,.quote-line label select{padding:9px 5px}}
@media(max-width:680px){.quote-bottom-grid,.quote-detail-meta{grid-template-columns:1fr}.quote-editor-modal .modal-body{padding:15px}.quote-line{grid-template-columns:1fr 1fr 38px;gap:8px;padding:14px 0}.quote-line-product{grid-column:1/-1}.quote-line-total{grid-column:1/3;padding:3px 0;text-align:left}.quote-line .quote-remove{grid-column:3;grid-row:2}.quote-stat-grid{grid-template-columns:1fr 1fr}.quote-action-bar .btn{flex:1}}
