@font-face{font-family:system;src:local('Segoe UI')}*{box-sizing:border-box}body{margin:0;background:#f4f6f5;color:#20332e;font:15px system,'Segoe UI',sans-serif}button,input,select,textarea{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer;border:0;border-radius:9px;padding:11px 17px;background:#e9eeeb;color:#24463b;font-weight:600}button:hover{filter:brightness(.96)}button:disabled{opacity:.5;cursor:wait}button.primary{background:#1e5144;color:white}button.outline{border:1px solid #cbd7d0;background:white}aside{position:fixed;inset:0 auto 0 0;width:250px;background:#153a32;color:#fff;padding:32px 20px;display:flex;flex-direction:column}.brand{font-size:30px;letter-spacing:3px;color:#fff;text-decoration:none;font-weight:750;padding:0 14px}.brand span{display:block;font-size:12px;font-weight:400;letter-spacing:.2px;color:#bed0c7;margin-top:8px}nav{margin-top:44px;display:grid;gap:7px}nav button{text-align:left;color:#d2dfd8;background:transparent;padding:14px}nav button.active{background:#31564b;color:#fff}nav button span{float:right}.identity{margin-top:auto;display:flex;gap:12px;align-items:center;padding:16px 10px 0;border-top:1px solid #426054}.avatar{width:36px;height:36px;background:#b4c9a7;color:#18372b;display:grid;place-items:center;border-radius:50%;font-weight:700}.identity small{display:block;color:#b7cbbf;margin-top:4px}main{margin-left:250px;max-width:1540px;padding:35px 42px 60px}header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}h1{font-size:30px;letter-spacing:-.7px;margin:6px 0}h2{font-size:21px;margin:0 0 16px}h3{font-size:16px;margin:0 0 10px}.eyebrow{font-size:10px;letter-spacing:1.6px;color:#6b8176;margin:0;font-weight:750}.pilot{display:flex;align-items:center;gap:13px;background:#eef1e7;border:1px solid #e0e6d7;padding:14px 18px;border-radius:10px;color:#536148;font-size:13px;line-height:1.5}.dot{width:8px;height:8px;flex-shrink:0;border-radius:50%;background:#a1ae73}.caption{font-size:12px;color:#718278;margin:14px 0 25px}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:25px}.card,.panel{background:#fff;border:1px solid #e0e6e1;border-radius:13px;padding:22px}.card .value{font-size:34px;letter-spacing:-1px;font-weight:650;margin:12px 0 6px}.muted{color:#718278;font-size:13px;line-height:1.6}.two{display:grid;grid-template-columns:1.2fr 1fr;gap:22px}.panel{margin-bottom:20px}.panel-title{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:16px}.panel-title h2{margin:0}.store,.row{display:flex;align-items:center;justify-content:space-between;padding:15px 0;border-bottom:1px solid #eef1ee;gap:16px}.store:last-child,.row:last-child{border:0}.store-icon{width:40px;height:40px;border-radius:10px;background:#f1f4ef;display:grid;place-items:center;color:#627860;margin-right:12px}.store-name{display:flex;align-items:center}.badge{font-size:12px;white-space:nowrap;border-radius:20px;padding:6px 10px;background:#eaf2ee;color:#386957}.badge.amber{background:#fff8e8;color:#836824}.badge.gray{background:#f0f2f0;color:#6a766e}.empty{text-align:center;padding:40px 20px}.empty .symbol{display:block;font-size:30px;color:#90a392;margin-bottom:15px}.empty p{color:#738278;max-width:470px;margin:12px auto 20px;line-height:1.6}.toolbar{display:flex;gap:12px;margin-bottom:18px;align-items:center}.toolbar input{flex:1}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left}th{font-size:11px;text-transform:uppercase;letter-spacing:.5px;color:#7c8c81;font-weight:600;padding:14px 12px;background:#f7f9f7}td{padding:15px 12px;border-bottom:1px solid #edf0ec;font-size:14px}td small{display:block;color:#849087;font-size:11px;margin-top:5px}label{display:block;font-size:13px;font-weight:600;color:#53675c;margin-bottom:14px}input,select,textarea{display:block;width:100%;padding:12px;border:1px solid #cfd9d2;border-radius:8px;background:white;color:#213e31;margin-top:6px}input:focus,select:focus,textarea:focus{outline:2px solid #81a493;outline-offset:1px}input[type=checkbox]{width:18px;height:18px;margin:0;accent-color:#255640}.check{display:flex;gap:10px;align-items:center;font-weight:400}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.warning{padding:12px 16px;border-radius:8px;background:#fff9eb;color:#836622;font-size:13px;line-height:1.6;margin:15px 0}.error{background:#fff0ed;color:#a24431}dialog{width:min(760px,94vw);border:1px solid #dce4dd;border-radius:16px;padding:25px;max-height:90vh;color:#20332e;box-shadow:0 20px 90px #102a2730}dialog::backdrop{background:#142a2666}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.dialog-head h2{margin:0}.icon{font-size:23px;padding:3px 12px;background:transparent;color:#60766a}.line-item{display:grid;grid-template-columns:1fr 95px 40px;gap:10px;align-items:center;margin-bottom:10px}.line-item input,.line-item select{margin-top:0}.qr{display:flex;gap:24px;align-items:center;margin:20px 0;flex-wrap:wrap}.qr svg{width:150px;height:150px}code{word-break:break-all;font-size:12px}.timeline{padding-left:16px;border-left:2px solid #d6e5db;margin:20px 0}.timeline p{margin:0 0 17px;font-size:14px}.timeline small{display:block;color:#819184;margin-top:4px}#toast{position:fixed;bottom:25px;right:25px;max-width:500px;background:#21483b;color:#fff;padding:16px 23px;border-radius:10px;box-shadow:0 8px 32px #173b3025;z-index:20}#toast.error{background:#a14636}.subnote{background:#f7f9f7;border-radius:8px;padding:14px;line-height:1.6;font-size:13px}.link{color:#2a6a54;background:transparent;padding:6px}.date{font-size:12px;color:#718278}.width-small{max-width:480px}
@media(max-width:1100px){aside{width:210px}main{margin-left:210px;padding:25px}.cards{grid-template-columns:repeat(2,1fr)}.two{grid-template-columns:1fr}}@media(max-width:720px){aside{position:static;width:auto;padding:16px}.brand{font-size:23px;padding:0}.brand span,.identity{display:none}nav{margin-top:15px;display:flex;overflow:auto;gap:4px}nav button{white-space:nowrap;padding:10px 12px;font-size:13px}main{margin:0;padding:20px 16px}header{align-items:flex-start}h1{font-size:25px}header button{font-size:12px;max-width:140px}.card,.panel{padding:17px}.cards{gap:10px}.card .value{font-size:29px}.form-grid{grid-template-columns:1fr;gap:0}.line-item{grid-template-columns:1fr 65px 30px;gap:5px}.toolbar{flex-wrap:wrap}.pilot{font-size:12px}.panel-title{flex-wrap:wrap}#toast{left:15px;right:15px;bottom:15px}.qr{gap:10px}}
.catalog-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:20px}.folder-panel{padding:18px;align-self:start;max-height:75vh;overflow:auto}.folder-panel h2{font-size:17px}.folder-tree,.folder-tree ul{list-style:none;padding:0;margin:4px 0}.folder-tree ul{padding-left:15px;border-left:1px solid #e4ebe6;margin-left:9px}.folder-row{display:flex;align-items:center;border-radius:7px;margin:2px 0}.folder-row.selected,.folder-root.selected{background:#e1eee6;color:#20563e}.folder-toggle{padding:8px 3px;width:22px;flex-shrink:0;background:transparent}.folder-spacer{width:22px;flex-shrink:0}.folder-choice{display:flex;justify-content:space-between;gap:8px;text-align:left;min-width:0;flex:1;background:transparent;padding:9px 5px;font-size:13px;font-weight:500}.folder-choice span{overflow-wrap:anywhere}.folder-choice small,.folder-root small{color:#839289;font-weight:400}.folder-root{display:flex;justify-content:space-between;width:100%;background:transparent;text-align:left;padding:10px;font-size:13px;margin-bottom:4px}.catalog-main{min-width:0}.breadcrumbs{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin-bottom:16px;font-size:12px;color:#819187}.breadcrumbs button{background:transparent;font-size:12px;padding:3px;color:#32674d}.catalog-pagination{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:15px}.catalog-pagination .caption{margin:0;text-align:center}.catalog-pagination button{font-size:12px}.catalog-main .toolbar select{max-width:200px}@media(max-width:1100px){.catalog-layout{grid-template-columns:210px minmax(0,1fr)}}@media(max-width:850px){.catalog-layout{grid-template-columns:1fr}.folder-panel{max-height:280px}.catalog-main .toolbar select{max-width:none}}
.locked aside,.locked .pilot,.locked #syncInfo,.locked #sync{display:none}.locked main{margin:0 auto;max-width:560px}.auth-panel{margin-top:30px}.logout{color:#c6dfd1;padding:5px 0}
.product-result{display:block;width:100%;text-align:left;margin:5px 0;background:#f2f6f3}.product-result small{display:block;color:#6f8074;font-weight:400}.scanner-video{width:100%;max-height:55vh;object-fit:contain;background:#111}.line-item strong{font-size:13px}

.finance-day-heading td{background:#eef4f2;border-top:2px solid #d4e2dc;padding:14px 16px;color:#173d36}.finance-day-heading strong{font-size:16px}.finance-day-heading small{margin-top:4px;font-weight:400}

.store-detail{display:grid;gap:18px}.store-summary{margin:0;gap:12px}.store-summary .card{background:#f0f6f3;border:1px solid #dde9e2;border-radius:16px;padding:20px}.store-summary .value{font-size:26px;margin:10px 0}.store-section{background:#fff;border:1px solid #e2e9e5;border-radius:16px;padding:20px}.store-section h3{margin:0 0 16px;font-size:17px}.store-section .row{gap:16px}.store-section small{color:#65786e}.store-staff{display:flex;gap:10px;flex-wrap:wrap}.staff-chip{display:flex;align-items:center;gap:10px;background:#f3f6f4;padding:10px 16px 10px 10px;border-radius:12px}.staff-avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#dfece5;color:#245849;font-weight:700}.store-section summary{cursor:pointer;display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;list-style:none}.store-section summary:after{content:'⌄'}.store-section summary span{font-size:13px;color:#65786e}.store-section details[open] summary{margin-bottom:18px}.store-section .card{margin-bottom:12px;box-shadow:none;background:#f8faf9;border:1px solid #e8eeea;border-radius:12px}.store-section .muted{font-size:13px;line-height:1.5}@media(max-width:600px){.store-section{padding:16px}.store-summary .value{font-size:22px}.store-section .row{flex-wrap:wrap}}

.analysis-filters{display:grid;grid-template-columns:minmax(180px,240px) minmax(0,1fr) auto;align-items:stretch;gap:12px}.analysis-filters select,.analysis-filters input,.analysis-filters button{height:46px;margin:0;min-width:0}.analysis-filters button{white-space:nowrap}@media(max-width:720px){.analysis-filters{grid-template-columns:minmax(0,1fr) auto}.analysis-filters select{grid-column:1/-1}}

#purchaseExclusions{margin:0 0 20px;padding:14px;border:1px solid #dce4dd;border-radius:10px}#purchaseExclusions summary{cursor:pointer;font-weight:600}.purchase-exclusions{max-height:260px;overflow:auto;margin:12px 0}.purchase-exclusions .check{padding:4px 0}

#purchaseGroups{position:relative;min-width:0}#purchaseGroups summary{height:46px;padding:12px;border:1px solid #cfd9d2;border-radius:8px;cursor:pointer;background:white}.purchase-group-options{position:absolute;z-index:5;top:50px;left:0;width:min(520px,80vw);max-height:360px;overflow:auto;background:white;border:1px solid #cfd9d2;border-radius:10px;padding:16px;box-shadow:0 8px 24px #173b3025}.purchase-group-options input[type=checkbox]{width:18px;height:18px;flex-shrink:0}.purchase-group-options button{height:auto}

.purchase-group-options .check{display:flex;justify-content:flex-start;align-items:flex-start;text-align:left;gap:10px;margin:0;padding:9px 0;line-height:1.4}.analysis-filters .purchase-group-options input[type=checkbox]{flex:0 0 18px;width:18px;min-width:18px;height:18px;margin:1px 0 0}.purchase-group-options .check:hover{background:#f4f7f5}

.purchase-group-options .check.group-depth-1{padding-left:22px}
.purchase-group-options .check.group-depth-2{padding-left:44px}
.purchase-group-options .check.group-depth-3{padding-left:66px}
.purchase-group-options .check.group-depth-4{padding-left:88px}
.purchase-group-options .check.group-depth-5{padding-left:110px}
.purchase-group-options .check.group-depth-6{padding-left:132px}
.purchase-group-options .check.group-depth-7{padding-left:154px}
.purchase-group-options .check.group-depth-8{padding-left:176px}
.rebalance-compact{display:grid;grid-template-columns:minmax(200px,1fr) minmax(240px,1fr) auto;gap:18px;align-items:center;padding:13px 0;border-bottom:1px solid #e6ece8}.rebalance-compact>div:first-child{display:flex;align-items:center;gap:12px}.rebalance-compact button{padding:9px 13px}@media(max-width:850px){.rebalance-compact{grid-template-columns:1fr auto}.rebalance-compact>div:first-child{grid-column:1/-1}}

.rebalance-compact{grid-template-columns:minmax(240px,1fr) minmax(240px,1fr)}.rebalance-compact input[type=checkbox]{flex:0 0 18px}@media(max-width:850px){.rebalance-compact{grid-template-columns:1fr}}

#rebalanceGroups{position:relative;min-width:0}#rebalanceGroups summary{height:46px;padding:12px;border:1px solid #cfd9d2;border-radius:8px;cursor:pointer;background:white}

.rebalance-compact input[data-manual-qty]{width:85px;flex:0 0 85px;margin:0}

.rebalance-add-dropdown{position:relative}.rebalance-add-dropdown label{margin-bottom:0}#rebalanceListMatches:not(:empty){position:absolute;z-index:8;left:14px;right:14px;bottom:calc(100% - 38px);max-height:280px;overflow-y:auto;background:white;border:1px solid #cfd9d2;border-radius:9px;box-shadow:0 8px 24px #173b3025;padding:6px 12px}#rebalanceListMatches .row{padding:9px 0;gap:12px;font-size:13px}#rebalanceListMatches button{padding:7px 12px;flex-shrink:0}

#rebalanceListMatches .rebalance-product-option{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;padding:12px 10px;text-align:left;background:white;border-radius:5px;border-bottom:1px solid #edf0ec;font-weight:400}#rebalanceListMatches .rebalance-product-option:hover{background:#edf4ef}#rebalanceListMatches .rebalance-product-option small{flex-shrink:0;color:#718278}

.rebalance-compact{grid-template-columns:minmax(240px,1fr) minmax(240px,1fr) auto}.rebalance-compact>[data-manual-remove]{justify-self:end}@media(max-width:850px){.rebalance-compact{grid-template-columns:minmax(0,1fr) auto}.rebalance-compact>div:first-child{grid-column:1/-1}.rebalance-compact>[data-manual-remove]{grid-column:2}}

.catalog-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 22px}.catalog-actions button{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:72px;margin:0;padding:16px 18px;text-align:left;line-height:1.4;font-size:14px;font-weight:600;color:#173d36;background:#f5f8f6;border:1px solid #dce5df;border-radius:12px;white-space:normal;transition:background .15s,border-color .15s}.catalog-actions button::after{content:"→";flex-shrink:0;color:#688078;font-size:18px}.catalog-actions button:hover{background:#eaf2ed;border-color:#99b5a7}.catalog-actions button:focus-visible{outline:2px solid #286b57;outline-offset:3px}@media(max-width:650px){.catalog-actions{grid-template-columns:1fr}.catalog-actions button{min-height:60px}}

.catalog-product-link{text-align:left;white-space:normal;font-weight:600;line-height:1.4}

#ruleForm .rule-section td{padding:20px 14px 12px;background:#edf3ef;border-bottom:1px solid #ccdcd2}#ruleForm .rule-section strong{display:block;color:#173d36;font-size:15px}#ruleForm .rule-section small{display:block;margin-top:4px;font-weight:400;color:#62756c}#ruleForm .rule-warehouse td{background:#f7faf8;border-bottom:12px solid white}#ruleForm .rule-enabled-label{margin:0;font-size:13px;white-space:normal}

.order-summary{padding:16px 0;border-bottom:1px solid #e5e7eb}.order-summary:last-child{border-bottom:0}.order-summary-heading{display:flex;justify-content:space-between;align-items:baseline;gap:16px}.order-summary-heading .link{text-align:left}.order-summary-heading strong{white-space:nowrap}.order-statuses{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.order-status{font-size:12px;line-height:1.5;padding:4px 9px;border-radius:7px;background:#f1f3f5;color:#55606d}.order-status.ok{background:#e5f5eb;color:#246b40}.order-status.wait{background:#fff1d6;color:#855400}.order-status.info{background:#e8f0fc;color:#355e98}@media(max-width:600px){.order-summary-heading{align-items:flex-start;flex-direction:column;gap:5px}}

.order-table-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:end}.order-table-filters label{flex:1 1 160px;min-width:140px;margin:0}.order-table-filters button{margin:0 0 1px}.order-table-scroll{overflow-x:auto}.order-table{width:100%;min-width:1000px}.order-table th{background:#f3f7f4}.order-table th button{background:transparent;color:#25483c;padding:8px 0;border:0;text-align:left;white-space:nowrap;font-weight:600}.order-table th button:focus-visible{outline:2px solid #286b57}.order-table td{vertical-align:top;padding:13px 10px}.order-table .link{text-align:left;white-space:normal;min-width:150px}.order-table .order-status{display:inline-block}.order-table .order-amount{white-space:nowrap}.order-table tbody tr:hover{background:#f7faf8}

dialog.supplier-dialog{width: min(1280px, 96vw);max-width:96vw} .supplier-orders-table{width:100%;min-width:780px} .supplier-orders-table td{vertical-align:top;padding:16px 12px} .supplier-orders-table th{padding:12px;text-align:left} .supplier-orders-table td:first-child{width:28%} .supplier-orders-table td:nth-child(2){white-space:nowrap} .supplier-orders-table td:nth-child(3){min-width:230px} .supplier-orders-table .order-status{display:table;margin:0 0 6px} .supplier-dialog details{margin:20px 0;padding:14px;background:#f7f9f7;border-radius:10px}
/* Compact cash and bank summaries inside the store card. */
.store-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:16px}
.store-summary>.card{padding:14px 16px;border-radius:12px;min-width:0}
.store-summary>.card>span{font-size:13px;font-weight:600;color:#60766a}
.store-summary .value{font-size:25px;line-height:1.2;margin:6px 0 10px;letter-spacing:-.4px}
.store-summary .row{padding:6px 0;gap:10px;align-items:baseline;font-size:13px;border-bottom:1px solid #edf1ee}
.store-summary .row:last-child{border-bottom:0}
.store-summary .row>span{min-width:0;overflow-wrap:anywhere}
.store-summary .row>strong{white-space:nowrap;font-size:13px}
.store-summary small{font-size:11px;line-height:1.4;margin:4px 0}
.store-summary details{margin-top:8px;font-size:12px}
.store-summary summary{cursor:pointer;color:#60766a}
@media(max-width:600px){.store-summary{grid-template-columns:1fr}.store-summary .value{font-size:23px}}

.shift-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.shift-detail-amount{padding:12px;background:#f4f7f5;border-radius:10px;display:grid;gap:5px}.shift-detail-amount span{font-size:12px;color:#60766a}.shift-detail-amount strong{font-size:18px}

.shift-history-row{cursor:pointer}.shift-history-row:hover{background:#edf4ef}.shift-history-row:focus-visible{outline:2px solid #2a6a54;outline-offset:-2px}

.shift-receipt section{padding:14px 0;border-bottom:1px solid #e1e8e3}.shift-receipt h3{font-size:15px;margin:0 0 10px}.receipt-line{display:flex;justify-content:space-between;gap:20px;padding:6px 0;font-size:14px}.receipt-line strong{white-space:nowrap}.receipt-main{font-size:16px}.receipt-note{white-space:pre-wrap;font-size:13px;line-height:1.7;margin:8px 0;color:#52665e}.receipt-result{background:#f2f7f3;padding:14px!important;border-radius:10px}.receipt-difference{font-weight:700}

.receipt-block{border:1px solid #dce5df;border-radius:12px;padding:16px;margin:14px 0}.receipt-block>h2{font-size:19px;margin:0 0 10px;color:#244c3e}.receipt-block section:last-child{border-bottom:0}.receipt-day-total{background:#eef5f0;border-color:#bfd3c5}

.shift-receipt{font-size:13px;line-height:1.4}
.shift-receipt>p{margin:0 0 8px}
.shift-receipt .receipt-block{padding:10px 12px;margin:8px 0;border-radius:9px}
.shift-receipt .receipt-block>h2{font-size:16px;margin:0 0 6px}
.shift-receipt section{padding:7px 0}
.shift-receipt h3{font-size:13px;margin:0 0 4px}
.shift-receipt .receipt-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:3px 0;font-size:13px}
.shift-receipt .receipt-line strong{text-align:right;font-variant-numeric:tabular-nums}
.shift-receipt .receipt-main{font-size:14px}
.shift-receipt .receipt-note{font-size:12px;line-height:1.4;margin:4px 0;padding-left:8px;border-left:2px solid #dce5df}
.shift-receipt .receipt-result{padding:8px!important;border-radius:6px;margin-top:5px}
.shift-receipt .muted,.shift-receipt small{font-size:11px}

dialog.receipt-dialog{width:520px;max-width:94vw;padding:22px 26px;border-radius:14px}
.receipt-dialog .dialog-head h2{font-size:18px}
.receipt-paper h2{font-size:12px;text-transform:uppercase;letter-spacing:1px;color:#60766a;border-top:1px solid #dce5df;margin:18px 0 8px;padding-top:12px}
.receipt-paper .receipt-person{font-size:14px;margin:0 0 12px;color:#60766a}
.receipt-paper .receipt-line{font-size:14px;padding:5px 0;gap:16px}
.receipt-paper .receipt-note{margin:0 0 6px 12px;border:0;padding:0;color:#6b776f;font-size:12px}
.receipt-rule{border-top:1px dashed #ccd7cf;margin:9px 0}
.receipt-paper .receipt-grand{font-size:18px;font-weight:700;padding:8px 0}
.receipt-paper .receipt-alert{color:#a14636;font-weight:700}
.receipt-source{margin-top:16px;color:#7b8880;font-size:11px}

.receipt-root{font-weight:600}.receipt-tree{margin-left:10px;padding-left:14px;border-left:1px solid #dce5df}.receipt-children{margin-left:14px;padding-left:12px;border-left:1px solid #e0e7e2;color:#64736a}.receipt-children:empty{display:none}.receipt-items{list-style:none;padding:0;margin:2px 0 8px;font-size:12px;line-height:1.6}.receipt-items li{padding:2px 0;white-space:pre-wrap}.receipt-children .receipt-line{font-size:12px;padding:3px 0}

.receipt-totals{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:10px 0}.receipt-total{display:flex;flex-direction:column;gap:6px;background:#f3f5f4;border-radius:10px;padding:14px 12px}.receipt-total>span{font-size:12px;color:#52665e}.receipt-total>strong{font-size:23px;letter-spacing:-.5px;font-variant-numeric:tabular-nums}.receipt-cash-total{background:#eaf3ed}.receipt-total small{font-size:11px}@media(max-width:440px){.receipt-totals{grid-template-columns:1fr}}

.receipt-noncash-title{display:flex;justify-content:space-between;gap:12px}.receipt-noncash-title strong{font-size:15px;letter-spacing:0;white-space:nowrap}.receipt-bank-line{padding:4px 0 8px}.receipt-bank-details{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:11px;color:#63756a}.receipt-bank-details strong{font-weight:600;white-space:nowrap}

/* Compact mobile goods issue picker. */
.goods-dialog{width:min(620px,calc(100vw - 20px));max-width:calc(100vw - 20px)}
.goods-dialog .dialog-head h2{font-size:20px}
.goods-dialog #dialogBody{font-size:14px}
.goods-dialog #dialogBody>p{margin:8px 0}
.goods-dialog label{font-size:13px;margin:8px 0}
.goods-dialog input{font-size:16px;padding:9px 10px;min-height:42px}
.goods-item{padding:12px 0;border-bottom:1px solid #e3e8e5}
.goods-item-name{font-size:14px;line-height:1.35;overflow-wrap:anywhere}
.goods-item-controls{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-top:5px}
.goods-item-controls label{display:flex;align-items:center;gap:10px;margin:0}
.goods-item-controls input{width:85px;margin:0}
.goods-item-controls button{min-height:42px;padding:8px}
.goods-match{margin:4px 0}
.goods-match button{width:100%;text-align:left;font-size:14px;line-height:1.35;padding:10px 12px}
.goods-dialog #goodsSelected h3{font-size:15px;margin:16px 0 4px}
.goods-dialog #goodsQR{width:100%;margin-top:14px;min-height:44px}

.receipt-success{position:fixed;inset:0;z-index:10000;background:rgba(242,255,246,.98);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;text-align:center;padding:24px;pointer-events:auto;color:#166534;opacity:1;transition:opacity .25s ease}
.receipt-success-mark{width:150px;height:150px;border-radius:50%;background:#168342;color:white;font-size:108px;line-height:150px;box-shadow:0 0 0 16px #dcfce7;margin-bottom:20px}
.receipt-success strong{font-size:24px;line-height:1.25}
.receipt-success span{font-size:20px}
.receipt-success-leaving{opacity:0;pointer-events:none}
@media(prefers-reduced-motion:reduce){.receipt-success{transition:none}}

.revision-item{padding:12px 0;border-bottom:1px solid #e3e8e5;font-size:14px;line-height:1.4}
.revision-quantities{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 20px;margin-top:6px}
.revision-before{font-size:12px;color:#68736d}
.revision-after{font-size:14px;color:#173d36}
.revision-after strong{font-size:20px;font-weight:750}
.revision-unchanged{font-size:12px;color:#68736d}

.form-error:not(:empty),[id$="Error"]:not(:empty),#toast.error{color:#991b1b;background:#fff1f2;border:1px solid #fda4af;border-left:4px solid #dc2626;border-radius:8px;padding:12px 14px;font-size:14px;line-height:1.45;font-weight:600}
.form-error:empty{padding:0;border:0;background:none}
input[aria-invalid="true"],select[aria-invalid="true"],textarea[aria-invalid="true"]{border-color:#dc2626;box-shadow:0 0 0 2px #fee2e2}

.payout-canvas{display:block;width:100%;height:180px;background:white;border:2px solid #64756d;border-radius:8px;touch-action:none}.payout-signature{display:block;max-width:100%;max-height:180px;border:1px solid #ddd}

.shift-receipt{max-width:760px;margin:0 auto 16px}
.shift-receipt h2{margin:4px 0;font-size:22px}.shift-receipt h3{font-size:15px;margin:0 0 10px}.shift-receipt h4{font-size:15px;margin:0 0 10px}
.shift-receipt>section{border-top:1px solid #dce3de;padding:14px 0;margin:0}
.shift-receipt-row{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:5px 0;font-size:14px}
.shift-receipt-row strong{white-space:nowrap;text-align:right}
.shift-receipt-total{border-top:1px solid #b9c9bf;padding:13px 0;font-weight:650}.shift-receipt-total strong{font-size:21px}
.shift-receipt-children{margin:3px 0 10px 12px;padding-left:12px;border-left:2px solid #dce5df;color:#53645a}
.shift-receipt-operation{display:flex;width:100%;justify-content:space-between;text-align:left;align-items:baseline;gap:12px;background:transparent;border:0;border-radius:4px;padding:7px 0;font-size:13px;box-shadow:none;color:inherit}
.shift-receipt-operation strong{white-space:nowrap}.shift-receipt-operation small{display:block;font-size:11px;font-weight:400}
.shift-receipt-actions{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 14px}.shift-receipt-actions button{font-size:13px;min-height:42px}

.delivery-entry{padding:12px 0;border-bottom:1px solid #dce3de}.delivery-entry summary{cursor:pointer;font-size:14px}.delivery-entry summary .badge{margin-left:8px}.delivery-entry summary small{display:block;margin:5px 0;color:#647068}

.courier-stops{padding-left:24px}.courier-stops li{padding:10px 0;border-bottom:1px solid #dce3de}.courier-stops p{font-size:13px;margin:4px 0}

.box-labels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.box-label{border:1px dashed #777;padding:12px;text-align:center;break-inside:avoid}.box-label svg{display:block;max-width:180px;margin:8px auto}.box-label small{display:block}
@media print{body:has(.box-print-dialog[open])>*:not(.box-print-dialog){display:none!important}.box-print-dialog[open]{position:static!important;width:100%!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;overflow:visible!important}.box-print-dialog .dialog-head,.box-print-dialog .no-print{display:none!important}.box-print-dialog::backdrop{display:none}.box-labels{grid-template-columns:repeat(3,1fr)}}

.document-row{cursor:pointer}.document-row:hover{background:#f1f6f4}.document-row:focus-visible{outline:2px solid #28765f;outline-offset:-2px}

@media(max-width:640px){
.transfer-list{overflow:visible;min-width:0;max-width:100%}
.transfer-list table,.transfer-list tbody{display:block;width:100%;min-width:0;max-width:100%}
.transfer-list thead{display:none}
.transfer-list .document-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;padding:12px 0;border-bottom:1px solid #dce5e1;width:100%;box-sizing:border-box}
.transfer-list .document-row td{display:block;min-width:0;padding:0;border:0;white-space:normal;overflow-wrap:anywhere}
.transfer-list .document-row td:first-child{grid-column:1/-1;font-size:14px;line-height:1.4}
.transfer-list .document-row td:nth-child(2){font-size:12px;color:#63736d}
.transfer-list .document-row td:nth-child(3){font-size:12px;text-align:right}
.transfer-list .document-row td:nth-child(3)::after{content:' поз.'}
.transfer-list .document-row td:nth-child(4){grid-column:1/-1}
.transfer-list .badge{max-width:100%;white-space:normal;box-sizing:border-box}
}

.courier-scan-bar{position:sticky;top:0;z-index:10;background:white;padding:10px 0 14px;margin-bottom:12px}.courier-scan-bar button{width:100%;min-height:52px;font-size:17px}

.box-product-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:10px 0;border-bottom:1px solid #dce5e1;align-items:start}
.box-product-row span{min-width:0;overflow-wrap:anywhere;white-space:normal;line-height:1.4}.box-product-row strong{white-space:nowrap}
.box-check-label{display:flex;align-items:flex-start;gap:10px;margin:18px 0 12px;white-space:normal;line-height:1.4}
.box-check-label input[type=checkbox]{width:22px;height:22px;min-width:22px;flex:0 0 22px;margin:0;padding:0}.box-check-label span{min-width:0;overflow-wrap:anywhere}
@media(max-width:640px){.box-product-row{font-size:14px}#boxPickup,#boxReport{display:block;width:100%;margin-top:8px}}

.box-count-row{display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:10px;align-items:start;padding:12px 6px;margin:0;border-bottom:1px solid #dce5e1;line-height:1.4}
.box-count-row input[type=checkbox]{width:22px;height:22px;margin:0;padding:0}.box-count-row span{min-width:0;overflow-wrap:anywhere;white-space:normal}.box-count-row strong{white-space:nowrap}.box-count-row.counted{background:#edf7ef}.box-count-row.counted span{color:#43684b}

.receipt-grid{display:grid;grid-template-columns:minmax(0,1fr) 42px 46px;gap:8px;width:100%;text-align:left;padding:9px 4px;border-radius:0;border-bottom:1px solid #dce5e1;background:white;font-size:13px;line-height:1.35;font-weight:400}.receipt-grid span:first-child{overflow-wrap:anywhere;min-width:0}.receipt-grid span:nth-child(2),.receipt-grid strong{text-align:right}.receipt-grid-head{color:#64776e;font-size:12px}.receipt-grid.counted{background:#f0f7f2}

.receipt-grid input{min-width:0;width:100%;padding:6px 2px;margin:0;text-align:right;font-size:16px}.receipt-grid.count-mismatch{background:#fff0ed}.receipt-grid:focus-within{outline:2px solid #28765f;outline-offset:-2px}

.box-count-row.barcode-highlight{outline:2px solid #28765f;outline-offset:-2px;background:#e4f1ff}

.route-stop-done{color:#337448;font-size:13px}.courier-stops li:has(.route-stop-done)>strong{color:#728379;text-decoration:line-through}

.route-visited{color:#6c7f73;font-size:13px}.route-visited p{text-decoration:line-through;margin:6px 0}.courier-stops [data-courier-arrived]{padding:4px 10px;margin-left:8px}

.courier-next-stop{padding:14px;background:#e8f3ed;border-radius:10px;margin:12px 0}.courier-next-stop strong{display:block;font-size:19px;margin-top:5px}

.courier-screen nav{display:none}.courier-screen aside{width:200px}.courier-screen main{margin-left:200px}@media(max-width:850px){.courier-screen aside{width:100%}.courier-screen main{margin-left:0}.courier-screen nav{display:none}}

/* Ugol brand: light working surfaces, charcoal structure, ember actions. */
:root{--coal:#191919;--ember:#f47a20;--ember-pressed:#d95f0b;--paper:#f5f3ef;--muted:#68635e;--line:#dedad4;--soft-ember:#fff0e3}
body{background:var(--paper);color:var(--coal)}
aside{background:var(--coal)}.brand{color:#fff;font-weight:850;letter-spacing:2px}.brand span,.identity small{color:#c7c3be}.identity{border-color:#45413d}.avatar{background:var(--ember);color:var(--coal)}.logout{color:#e5e1dc}
nav button{color:#d8d4cf}nav button.active{background:#33302d;color:#ffab69;box-shadow:inset 3px 0 var(--ember)}
button{background:#eeebe6;color:var(--coal)}button.primary{background:var(--ember);color:var(--coal)}button.primary:hover{background:#ff8b36;filter:none}button.primary:active{background:var(--ember-pressed)}button.outline{background:#fff;border-color:var(--line);color:var(--coal)}button:focus-visible,a:focus-visible{outline:2px solid var(--ember);outline-offset:3px}
.link,.breadcrumbs button{color:#994000}.muted,.caption,.date,.eyebrow,.timeline small,td small,.empty p{color:var(--muted)}
.card,.panel{border-color:var(--line);box-shadow:0 2px 8px #19191903}.store,.row,td{border-color:#ebe7e1}.store-icon{background:var(--soft-ember);color:#994000}
th{background:#f4f1ec;color:var(--muted)}label{color:#49443f}input,select,textarea{border-color:#cbc5be;color:var(--coal);background:#fff}input:focus,select:focus,textarea:focus{outline-color:var(--ember)}input[type=checkbox]{accent-color:#34764a}
.badge.gray{background:#eeebe6;color:var(--muted)}.pilot{background:#eeeae3;border-color:var(--line);color:#59534c}.pilot .dot{background:var(--ember)}
dialog{color:var(--coal);border-color:var(--line);box-shadow:0 20px 90px #19191930}dialog::backdrop{background:#19191966}.icon{color:var(--muted)}.timeline{border-color:var(--line)}.subnote{background:#f6f3ef}#toast:not(.error){background:var(--coal);color:#fff}
.folder-row.selected,.folder-root.selected{background:var(--soft-ember);color:#994000}.folder-choice small,.folder-root small,.breadcrumbs{color:var(--muted)}.folder-tree ul{border-color:var(--line)}.product-result{background:#f7f4ef}.product-result small{color:var(--muted)}
.shift-receipt-operation{color:var(--coal);border-color:var(--line)}.courier-next-stop{background:var(--soft-ember);border:1px solid #f5d4b8}.courier-next-stop small{color:#8e4310}.courier-next-stop strong{color:var(--coal)}.courier-scan-bar{background:#fff}.document-row:hover{background:#fff5ec}.document-row:focus-visible,.receipt-grid:focus-within{outline-color:var(--ember)}
.receipt-grid-head{color:var(--muted)}.receipt-grid,.box-product-row,.box-count-row{border-color:var(--line)}
.form-error,input[aria-invalid=true],textarea[aria-invalid=true]{border-color:#bf3d2c}.form-error{background:#fff0ed;color:#a32b1d}
@media(max-width:720px){aside{padding:18px 16px}.brand{font-size:25px}main{padding:20px 14px}.panel,.card{border-radius:12px}.courier-screen aside{position:static;width:100%}.courier-screen main{margin-left:0}.courier-screen .panel{padding:16px}.courier-screen .courier-scan-bar button{min-height:54px}.courier-screen [data-courier-deliveries-qr]{width:100%;background:white;border:1px solid #49443f;margin-bottom:20px}.courier-next-stop{padding:16px}.courier-stops{padding-left:22px}}

@media(max-width:720px){.identity{display:flex;margin-top:14px;padding:12px 0 0;gap:10px}.identity>div{flex:1;min-width:0;overflow-wrap:anywhere}.identity small{font-size:12px}.identity .logout{margin-top:4px;min-height:36px}}

.account-menu{position:relative;width:100%}.account-menu summary{cursor:pointer;list-style:none;padding:6px 0}.account-menu summary::-webkit-details-marker{display:none}.account-menu summary:focus-visible{outline:2px solid var(--ember);outline-offset:3px}.account-actions{padding:6px 0}.account-menu strong{font-size:14px}
@media(max-width:720px){aside{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:0 12px}aside>.brand{grid-column:1;grid-row:1}aside>.identity{grid-column:2;grid-row:1;margin:0;padding:0;border:0;min-width:0;text-align:right}aside>nav{grid-column:1/-1;grid-row:2}.account-menu summary{padding:0}.account-menu small{margin-top:3px}.account-actions{position:absolute;right:0;top:100%;min-width:120px;background:var(--coal);border:1px solid #45413d;border-radius:9px;padding:8px 14px;z-index:30}.account-actions .logout{width:100%;text-align:right}}

body.booting>aside,body.booting>main,body.booting>dialog{display:none}body.booting::before{content:"Загрузка…";display:block;padding:40px 20px;text-align:center;color:#68635e}

.courier-screen #syncInfo{display:none}

.scan-view{position:relative;overflow:hidden;border-radius:12px;background:#191919}.scan-view[hidden]{display:none}.scan-view .scanner-video{display:block;width:100%;margin:0}.scan-guide{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:65%;aspect-ratio:1;border:3px solid #f47a20;border-radius:12px;box-shadow:0 0 0 100vmax #0005;pointer-events:none}.scan-barcode .scan-guide{width:82%;aspect-ratio:2.8;border-radius:6px}.scan-barcode .scan-guide span{position:absolute;left:4%;right:4%;height:2px;background:#f47a20;animation:scan-sweep 1.8s ease-in-out infinite}.scan-success .scan-guide{border-color:#36cc75}.scan-success .scan-guide span{background:#36cc75;animation:none;top:50%}@keyframes scan-sweep{0%,100%{top:12%}50%{top:86%}}@media(prefers-reduced-motion:reduce){.scan-barcode .scan-guide span{animation:none;top:50%}}

/* Receipt quantities share column widths and alignment with their headings. */
.receipt-grid{grid-template-columns:minmax(0,1fr) 48px 68px;align-items:center;gap:10px;padding:10px 8px;min-height:60px}.receipt-grid>span:first-child{line-height:1.4}.receipt-grid>span:nth-child(2),.receipt-grid>span:nth-child(3){text-align:center;font-variant-numeric:tabular-nums}.receipt-grid input{height:42px;padding:8px 4px;text-align:center;font-variant-numeric:tabular-nums;appearance:textfield;-moz-appearance:textfield}.receipt-grid input::-webkit-inner-spin-button,.receipt-grid input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.receipt-grid-head{min-height:0;padding-top:8px;padding-bottom:8px}.receipt-grid-head>span{font-weight:600}@media(max-width:380px){.receipt-grid{grid-template-columns:minmax(0,1fr) 40px 60px;gap:6px;padding-left:5px;padding-right:5px}}

.item-search-wrap{position:relative}.item-search-wrap #itemResults{position:absolute;left:0;right:0;top:100%;max-height:min(260px,35dvh);overflow-y:auto;overscroll-behavior:contain;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 24px #0002;z-index:40}.item-search-wrap #itemResults[hidden]{display:none}.item-search-wrap .product-result{display:block;width:100%;text-align:left;white-space:normal;border-radius:0;border-bottom:1px solid var(--line)}

.item-search-wrap #itemResults{box-sizing:border-box;scrollbar-gutter:stable}.item-search-wrap .toolbar{margin-bottom:0}

button.danger-outline{color:#a32222;background:#fff2f0;border:1px solid #d58d88;margin-top:14px}button.danger-button{background:#b42323;color:#fff;border:1px solid #b42323}

.transfer-qr-header .dialog-head{align-items:flex-start;gap:12px}.transfer-qr-header #dialogTitle{flex:1;min-width:0;overflow-wrap:anywhere}.transfer-qr-header .dialog-head>#qrCode{display:block;flex:0 0 160px;margin:0;text-align:center}.transfer-qr-header #qrCode .qr{margin:0;display:block}.transfer-qr-header #qrCode svg{width:150px;height:150px}.transfer-qr-header #qrCode p{font-size:11px;line-height:1.35;margin:6px 0}.transfer-qr-header #qrCode button{font-size:12px;padding:7px 10px}@media(max-width:420px){.transfer-qr-header .dialog-head{gap:6px}.transfer-qr-header #dialogTitle{font-size:17px}.transfer-qr-header .dialog-head>#qrCode{flex-basis:128px}.transfer-qr-header #qrCode svg{width:128px;height:128px}.transfer-qr-header #closeDialog{padding:2px 5px}}

.transfer-header-info{flex:1;min-width:0}.transfer-header-info>p{margin:12px 0 8px;line-height:1.4}.transfer-header-info #dialogTitle{margin:0}

.assembly-qty{width:80px;text-align:center}.assembly-qty small{display:block;font-size:11px}.assembly-qty input{width:100%;margin:3px 0 0;padding:7px;text-align:center}

.box-count-row:has([data-assembly-count]){display:grid;grid-template-columns:22px minmax(0,1fr) 88px;align-items:center;gap:12px;padding:12px 8px}.box-count-row:has([data-assembly-count])>input[type=checkbox]{width:20px;height:20px;margin:0}.box-count-row:has([data-assembly-count])>span:not(.assembly-qty){min-width:0;overflow-wrap:anywhere;line-height:1.4}.box-count-row .assembly-qty{width:100%;align-self:center}.box-count-row .assembly-qty input{height:42px;font-size:16px;font-variant-numeric:tabular-nums}.box-count-row .assembly-qty small{line-height:1.3;color:var(--muted)}@media(max-width:420px){.box-count-row:has([data-assembly-count]){grid-template-columns:20px minmax(0,1fr) 76px;gap:8px;padding:10px 5px}}

.assembly-columns{display:grid;grid-template-columns:22px minmax(0,1fr) 88px;gap:12px;padding:8px;color:var(--muted);font-size:12px}.assembly-columns>span:last-child{text-align:center}.box-count-row .assembly-qty input{margin:0;box-sizing:border-box}.box-count-row:has([data-assembly-count]){min-height:64px}.box-count-row:has([data-assembly-count])>span{align-self:center}@media(max-width:420px){.assembly-columns{grid-template-columns:20px minmax(0,1fr) 76px;gap:8px;padding:8px 5px}}

.store-location-settings>summary{cursor:pointer;font-size:13px;color:var(--muted);padding:6px 0;list-style:none}.store-location-settings>summary::-webkit-details-marker{display:none}.store-location-settings[open]>summary{margin-bottom:12px}.store-location-settings button{font-size:13px;padding:8px 10px}

.delivery-entry{margin:12px 0;padding:14px;border:1px solid var(--line);border-radius:10px;background:#fff}.delivery-entry>summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 12px;align-items:center;list-style:none}.delivery-entry>summary::-webkit-details-marker{display:none}.delivery-entry>summary strong{line-height:1.4;overflow-wrap:anywhere}.delivery-entry>summary .badge{margin:0;font-size:12px}.delivery-entry>summary small{grid-column:1/-1;margin:0}.delivery-entry[open]>summary{padding-bottom:10px;border-bottom:1px solid var(--line);margin-bottom:8px}.delivery-history{margin-top:26px;padding-top:18px;border-top:2px solid var(--line)}.delivery-history>summary{cursor:pointer;font-weight:600;color:var(--muted);padding:10px 0}.delivery-history-count{display:inline-block;margin-left:10px;padding:2px 9px;border-radius:12px;background:#eae7e2;color:var(--coal);font-size:12px}.delivery-history .delivery-entry{background:#f7f6f3}

.cashier-screen #syncInfo{display:none}.cashier-screen .pilot{display:inline-flex;padding:5px 10px;font-size:11px;margin:0 0 14px}.cashier-screen header{margin-bottom:10px}

.test-environment .pilot{display:none}.account-test-badge{display:inline-block;font-size:10px;font-weight:400;line-height:1.4;padding:2px 6px;margin-top:5px;border:1px solid #75614c;border-radius:5px;color:#e5c6a7;letter-spacing:0}.brand span{display:block;font-size:11px;letter-spacing:0;margin-top:4px}@media(max-width:720px){.brand span{display:block;font-size:10px;line-height:1.3}}

.deliveries-view main>header{display:flex;align-items:center;justify-content:space-between;gap:12px}.deliveries-view main>header>div{min-width:0}.deliveries-view main>header [data-delivery-scan]{flex:0 0 auto;max-width:145px}.deliveries-view main>header h1{overflow-wrap:normal}@media(max-width:420px){.deliveries-view main>header h1{font-size:21px}.deliveries-view main>header [data-delivery-scan]{max-width:125px;padding:10px;font-size:12px}}

.deliveries-view main>header [data-delivery-scan].delivery-qr-button{display:grid;place-items:center;width:44px;height:44px;min-width:44px;max-width:44px;padding:8px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--coal)}.deliveries-view main>header h1{white-space:nowrap;font-size:clamp(17px,5.1vw,30px);letter-spacing:-.5px}.deliveries-view main>header{gap:8px}

#deliveryStoreSubtitle{margin:4px 0 0;font-size:14px;font-weight:500;color:var(--muted);line-height:1.4}

.deliveries-view #content>.panel{padding:0;border:0;border-radius:0;background:transparent}.deliveries-view .delivery-entry{margin:0;padding:14px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent}.deliveries-view .delivery-history{margin-top:18px;padding-top:10px}.deliveries-view .delivery-history .delivery-entry{background:transparent}.deliveries-view .delivery-entry .shift-receipt-children{margin-left:0;padding-left:10px}

.receipt-extra-alert{margin:8px 0;padding:12px;border:1px solid #edbdb8;border-radius:10px;background:#fff0ee;color:#702b26}.receipt-extra-alert>strong{display:block;line-height:1.3;margin:4px 0;overflow-wrap:anywhere}.receipt-extra-label{font-size:12px;font-weight:700;color:#a7372c}.receipt-extra-alert p{margin:6px 0 10px;font-size:13px;line-height:1.35}.receipt-extra-actions{display:flex;gap:8px;flex-wrap:wrap}.receipt-extra-actions button{margin:0;min-height:44px;padding:8px 14px}.receipt-extra-actions #receiptAddExtra{background:#a7372c;color:white;border-color:#a7372c}.receipt-extra-actions #receiptSkipExtra{background:transparent;color:#702b26;border:1px solid #d9aaa4}

.delivery-entry-discrepancy>summary>.badge{border:1px solid #c94a40}

.receipt-item-changed{ text-decoration-line:underline;text-decoration-color:#c94a40;text-decoration-thickness:2px;text-underline-offset:4px}.receipt-item-changed strong,.receipt-item-changed td:last-child{color:#a7372c}

.badge.receipt-status-discrepancy{border:1px solid #c94a40}

.transfer-totals{border-top:1px solid #ded9d3;padding-top:10px;margin:12px 0 0;font-weight:600}

.item-row-number{color:#777;white-space:nowrap;font-variant-numeric:tabular-nums}td.item-row-number{width:30px;padding-right:8px}

#dialog .invoice-items{width:100%;border-collapse:collapse;margin:8px 0;font-size:13px}#dialog .invoice-items td{padding:6px 8px;line-height:1.3;vertical-align:middle;border-bottom:1px solid #e5e1dc}#dialog .invoice-items td.item-row-number{width:22px;padding-left:0;padding-right:4px;text-align:right;font-size:11px}#dialog .invoice-items td:last-child{width:1%;white-space:nowrap;text-align:right;padding-right:0;font-variant-numeric:tabular-nums}#dialog .invoice-items td:nth-child(2){overflow-wrap:anywhere}#dialog .invoice-items+.transfer-totals{margin-top:6px;padding-top:6px;font-size:13px}

@media(max-width:720px){.cashier-screen aside>nav{display:flex;gap:3px;width:100%;min-width:0;overflow:visible}.cashier-screen aside>nav button:not([hidden]){flex:1 1 auto;min-width:0;padding:10px 4px;font-size:clamp(10px,2.9vw,12px);white-space:nowrap;text-align:center;min-height:44px}.cashier-screen aside>nav button[hidden]{display:none}.cashier-screen aside>nav button span{float:none}}

.courier-deferred{margin-top:16px;padding-top:12px;border-top:1px solid #d7cfc5}.courier-deferred small{display:block;color:#786448;margin-top:4px}

.staff-working{color:#287347;font-weight:800;margin-left:6px}

.work-mode-tabs{display:flex;gap:8px;margin:0 0 16px}.work-mode-tabs button{flex:1;min-width:0;font-size:13px;padding:10px}

.dual-work-role aside>nav{display:flex;gap:6px}.dual-work-role aside>nav button[hidden]{display:none}.dual-work-role aside>nav [data-mode-tab]{flex:1;white-space:normal;min-width:0;font-size:13px;text-align:center;padding:10px 8px}@media(min-width:721px){.dual-work-role aside>nav{flex-direction:column}}

.sales-loading{text-align:center;padding:24px 12px}.sales-spinner{display:inline-block;width:28px;height:28px;border:3px solid #d6ded9;border-top-color:#245846;border-radius:50%;animation:sales-spin .8s linear infinite;vertical-align:middle;margin:8px}@keyframes sales-spin{to{transform:rotate(360deg)}}

.shift-photo-thumbnail{width:100px;height:130px;max-width:100%;object-fit:contain;border:1px solid #ddd;border-radius:8px}
.shift-photo-viewer{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;padding:16px;border:0;background:#171717;color:white;box-sizing:border-box}.shift-photo-viewer-close{position:absolute;top:16px;right:16px;z-index:1}.shift-photo-full{width:100%;height:100%;object-fit:contain}

/* Keep mobile inputs readable without browser focus zoom. */
@media (max-width:900px),(pointer:coarse){input,select,textarea{font-size:16px!important}}

/* Cash direction in shift reports. */
.shift-receipt .receipt-line>span{min-width:0;text-align:left}
.shift-receipt .receipt-line>span>button{display:inline-block;text-align:left;white-space:normal;padding:3px 0;background:transparent;line-height:1.45;color:inherit}
.shift-receipt .cash-out>strong{color:#b42318}
.shift-receipt .cash-in>strong{color:#23733f}

.store-monitor-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-top:1px solid var(--line)}.store-monitor-row p{margin:8px 0}.store-monitor-row small{color:var(--muted)}@media(max-width:600px){.store-monitor-row{align-items:flex-start;flex-direction:column}}

/* Compact owner store monitor. */
#storeMonitor{padding:12px 16px}
#storeMonitor .panel-title{margin-bottom:5px;gap:8px}
#storeMonitor h2{font-size:16px;margin:0}
#storeMonitor .panel-title button{padding:5px 9px;font-size:12px}
#storeMonitor>p{font-size:12px;margin:5px 0;line-height:1.35}
#storeMonitor>.muted{font-size:10px}
#storeMonitor .store-monitor-row{padding:7px 0;gap:8px;flex-direction:row;align-items:center}
#storeMonitor .store-monitor-row>div{display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px;min-width:0}
#storeMonitor .store-monitor-row>div>strong{font-size:13px;min-width:105px}
#storeMonitor .store-monitor-row p{margin:0;font-size:11px}
#storeMonitor .store-monitor-row small{font-size:10px}
#storeMonitor .badge{padding:3px 6px;font-size:10px;white-space:normal;display:inline-block}
#storeMonitor .store-monitor-row>button{padding:5px 8px;font-size:11px;flex-shrink:0}
#storeMonitor [data-monitor-error]:empty{display:none}
#storeMonitor .warning{padding:3px 6px;font-size:11px}
@media(max-width:600px){#storeMonitor .store-monitor-row>div{gap:3px 6px}#storeMonitor .store-monitor-row>div>strong{min-width:0;width:100%}#storeMonitor .store-monitor-row small{width:100%}}

/* Store cards: dynamic count, open stores first, horizontal paging on phones. */
#storeMonitor.store-monitor{padding:0;margin:0 0 22px}
#storeMonitor .panel-title{margin:0 0 10px;justify-content:space-between;flex-wrap:wrap}
#storeMonitor .panel-title small{color:var(--muted);font-size:12px}
.store-monitor-track{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 48px)/4);gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;padding:2px 0 10px}
.store-status-card{scroll-snap-align:start;min-width:0;display:flex;flex-direction:column;gap:8px;padding:20px}
.store-status-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:14px}
.store-status-dot{width:8px;height:8px;border-radius:50%;background:#aaa;flex-shrink:0}
.store-status-dot.is-open{background:#27834a}
.store-status-value{font-size:27px;font-weight:650;color:var(--muted);line-height:1.15}
.store-status-value.is-open{color:#23733f}
.store-status-report{font-size:12px;line-height:1.4}
.store-status-card>small{font-size:11px;color:var(--muted);line-height:1.4}
.store-status-card>.store-status-warning{color:#a14636}
.store-status-card>button{margin-top:auto;align-self:flex-start;text-align:left;font-size:12px;padding:4px 0}
@media(max-width:1100px){.store-monitor-track{grid-auto-columns:calc((100% - 32px)/3)}}
@media(max-width:700px){.store-monitor-track{grid-auto-columns:82%;gap:12px}.store-status-card{padding:18px}.store-status-value{font-size:26px}}

.store-active-revenue{display:flex;flex-direction:column;gap:3px}.store-active-revenue strong{font-size:21px;font-variant-numeric:tabular-nums}.store-active-revenue small{font-size:10px;color:var(--muted)}

.warehouse-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;flex-wrap:wrap}.warehouse-entry{display:flex;align-items:center;text-align:left;gap:14px;width:100%;padding:16px;border:1px solid var(--line);background:#fff;border-radius:10px;margin-top:10px}.warehouse-entry-icon{font-size:23px;border-radius:9px;padding:8px 12px;background:var(--soft-ember);color:var(--ember)}.warehouse-entry strong{display:block;font-size:15px;color:var(--coal)}.warehouse-entry small{display:block;margin-top:4px;font-weight:400;color:var(--muted)}.warehouse-entry-arrow{margin-left:auto;color:var(--ember);font-size:21px}

.warehouse-filters{display:grid;grid-template-columns:2fr 2fr 1fr;gap:12px}.warehouse-filters label{min-width:0}.warehouse-filters select{width:100%}@media(max-width:650px){.warehouse-filters{grid-template-columns:1fr}}

/* Installed mobile app: consistent system-area background and notch spacing. */
html{background:#191919}
@media(max-width:720px){
 body{min-height:100dvh}
 aside{background:#191919;padding-top:calc(16px + env(safe-area-inset-top,0px));padding-left:calc(16px + env(safe-area-inset-left,0px));padding-right:calc(16px + env(safe-area-inset-right,0px))}
 main{padding-bottom:calc(20px + env(safe-area-inset-bottom,0px));padding-left:calc(16px + env(safe-area-inset-left,0px));padding-right:calc(16px + env(safe-area-inset-right,0px))}
 #toast{bottom:calc(15px + env(safe-area-inset-bottom,0px))}
}

@media(display-mode:standalone){
 html{background:#191919}
 body::before{content:"";position:fixed;top:0;left:0;right:0;height:env(safe-area-inset-top,0px);background:#191919;z-index:1000;pointer-events:none}
}

/* Real top-edge element for installed-app status-bar background sampling. */
.system-bar-background{display:none}
@media(display-mode:standalone){
 body::before{content:none}
 .system-bar-background{display:block;position:fixed;top:0;left:0;right:0;height:max(1px,env(safe-area-inset-top,0px));background-color:#191919;z-index:1000;pointer-events:none}
}

@media(max-width:720px){
 .cashier-screen aside>nav{overflow-x:auto;overflow-y:hidden;gap:6px;scrollbar-width:thin}
 .cashier-screen aside>nav button:not([hidden]){flex:0 0 auto;min-width:max-content;padding:10px 12px;font-size:13px;white-space:nowrap}
}

/* Login hides the navigation that normally supplies the top safe-area inset. */
@media(max-width:720px){body.locked main{padding-top:calc(24px + env(safe-area-inset-top,0px))}}

