:root{font-family:Inter,"Microsoft YaHei",system-ui,sans-serif;color:#18212f;background:#f4f6f8}*{box-sizing:border-box}body{margin:0}header{min-height:68px;background:#10243e;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:10px max(24px,calc((100% - 1180px)/2));box-shadow:0 2px 12px #10243e33}header b{font-size:18px}header small{margin-left:12px;color:#a9bed8}nav{display:flex;align-items:center;gap:20px;flex-wrap:wrap}nav a,.link{color:#dce8f5;text-decoration:none;background:none;border:0;padding:0;font-size:14px}nav form{margin:0}main{max-width:1180px;margin:32px auto;padding:0 20px}.title,.section-title{display:flex;align-items:center;justify-content:space-between}.title{margin-bottom:22px}h1{font-size:28px;margin:0 0 6px}h2{font-size:18px;margin:0 0 16px}.spaced-heading{margin-top:26px}p{color:#657387;margin:6px 0 12px}a{color:#1766bd}.button,button{display:inline-block;border:0;border-radius:8px;background:#1677ff;color:white;padding:10px 17px;font-weight:600;cursor:pointer;text-decoration:none}.button.secondary,.secondary-button{background:#eaf2fc;color:#1766bd}.small-button{padding:7px 10px;font-size:12px}.card{background:#fff;border:1px solid #e5e9ef;border-radius:12px;padding:22px;margin-bottom:20px;box-shadow:0 3px 12px #15283d0a}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.stats span{display:block;color:#667386}.stats strong{display:block;font-size:34px;margin-top:10px}.stats .warn strong{color:#c86e20}table{width:100%;border-collapse:collapse;font-size:14px}th{text-align:left;color:#697587;font-weight:600;border-bottom:1px solid #e8ecf1;padding:11px 9px}td{border-bottom:1px solid #edf0f3;padding:13px 9px;vertical-align:middle}.item-entry input,table input{width:100%;min-width:105px}.pill{display:inline-block;background:#edf4ff;color:#1766bd;border-radius:99px;padding:4px 9px}.pill.danger{background:#fff0e6;color:#b95010}.pill.good-pill{background:#eaf8f0;color:#177a49}.empty{text-align:center;color:#8a95a4;padding:35px}.muted{color:#8a95a4}.small{font-size:12px;margin-top:5px}.thumb{width:54px;height:68px;object-fit:cover;border-radius:7px;border:1px solid #e1e6ed;background:#f4f6f8}.thumbs{display:flex;gap:5px;max-width:185px;overflow:hidden}.code-list{display:flex;flex-direction:column;gap:4px}.code-list code{white-space:nowrap;color:#29445f}.in-transit{color:#1766bd}.good{color:#177a49}.bad,.flash.error{color:#ad2e24}.flash{padding:12px 16px;border-radius:9px;margin-bottom:18px;background:#eaf8f0}.flash.error{background:#fff0ee}.blockers{background:#fff4ed;border:1px solid #ffd7bd;border-radius:8px;padding:10px 14px}.blockers p{color:#a54810}.order-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.order-meta span{display:block;color:#788596;font-size:13px}.order-meta strong{display:block;margin-top:7px}.action-card{border-color:#b9d5f7}.purchase-head{margin-bottom:12px}.notes-field{margin-top:20px}textarea{border:1px solid #ccd3dc;border-radius:7px;padding:10px;font:inherit;resize:vertical}.form-actions{display:flex;justify-content:flex-end;margin-top:18px}.document-notes{margin-top:20px;padding-top:15px;border-top:1px solid #edf0f3;white-space:pre-wrap}.receipt-footer{margin-top:18px}.import-card{display:flex;justify-content:space-between;align-items:center;gap:24px}.import-card h2{margin-bottom:6px}.import-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.import-actions form{display:flex;align-items:center;gap:8px}.import-actions input[type=file]{max-width:230px}.login{max-width:430px;margin:12vh auto}.login h1{margin-bottom:10px}label{display:flex;flex-direction:column;gap:7px;color:#586577;font-size:13px}input{border:1px solid #ccd3dc;border-radius:7px;padding:10px;font-size:15px}.login button{width:100%;margin-top:16px}.gridform{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;align-items:end}.gridform button{height:41px}@media(max-width:760px){header{padding:12px 16px;align-items:flex-start;gap:12px;flex-direction:column}header small{display:none}nav{gap:14px}.stats,.gridform,.order-meta{grid-template-columns:1fr}.card{overflow-x:auto}main{margin-top:20px}.title,.import-card{align-items:flex-start;gap:15px;flex-direction:column}table{min-width:800px}}
.status-filters{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:0 0 20px}.status-filter{display:block;background:#fff;border:1px solid #e1e7ef;border-radius:12px;padding:15px 14px;color:#526174;text-decoration:none;box-shadow:0 3px 12px #15283d0a}.status-filter span{display:block;font-size:13px;white-space:nowrap}.status-filter strong{display:inline-block;color:#17243a;font-size:26px;margin-top:7px}.status-filter small{color:#8793a3;margin-left:4px}.status-filter.active{background:#1677ff;border-color:#1677ff;color:#fff}.status-filter.active strong,.status-filter.active small{color:#fff}@media(max-width:900px){.status-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:520px){.status-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
.inventory-search{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.inventory-search label{flex:1;min-width:250px}.inventory-search input{width:100%}.review-check{display:flex;flex-direction:row;align-items:center;margin-top:16px;font-size:14px}.review-check input{width:auto;min-width:0}
.row-stocktake{display:flex;align-items:center;gap:6px;min-width:285px}.row-stocktake input[type=number]{width:72px;min-width:72px}.row-stocktake input[name=note]{width:120px;min-width:120px}.row-stocktake button{white-space:nowrap}
.inventory-table{overflow-x:auto}
.single-receipt{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:320px}.single-receipt input[type=number]{width:74px;min-width:74px}.single-receipt input[name=receiver]{width:90px;min-width:90px}.single-receipt button{white-space:nowrap}.single-receipt .small{width:100%;margin:0}.card:has(.single-receipt){overflow-x:auto}

.order-heading{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.sync-details{margin:8px 0;color:#60748b}.sync-details summary{cursor:pointer}.sync-details div{margin-top:6px}
.order-search-card{padding:24px;border:1px solid #dfe7f1;border-radius:16px;box-shadow:0 6px 22px #16345606}.search-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.search-heading h2{font-size:18px;margin:0 0 5px;color:#172b45}.search-heading p{font-size:13px;margin:0;color:#8491a3}.search-badge{font-size:12px;color:#3779c9;background:#edf5ff;padding:6px 12px;border-radius:20px}.order-search-form{display:grid;grid-template-columns:1.1fr 1.8fr 1.1fr;gap:18px 16px;align-items:end}.order-search-form label{font-size:12px;font-weight:600;color:#68798e;gap:8px;min-width:0}.order-search-form input,.order-search-form select{width:100%;height:44px;min-width:0;border:1px solid #dce4ee;border-radius:9px;background:#f9fbfe;padding:0 12px;font:inherit;font-size:14px;font-weight:400;color:#233b56;transition:border-color .15s,box-shadow .15s}.order-search-form input::placeholder{color:#98a5b6}.order-search-form input:focus,.order-search-form select:focus{outline:none;border-color:#428df5;box-shadow:0 0 0 3px #1677ff14;background:#fff}.search-actions{grid-column:2/4;display:flex;align-items:center;justify-content:flex-end;gap:20px;height:44px}.search-actions button{height:44px;padding:0 28px;border-radius:9px;font-size:14px;box-shadow:0 4px 10px #1677ff22}.search-actions button:hover{background:#0965e5}.search-actions button span{font-size:22px;vertical-align:-2px;margin-right:5px}.search-reset{font-size:13px;color:#73839a;text-decoration:none;padding:10px 0}.search-reset:hover{color:#1677ff}.search-footer{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;border-top:1px solid #edf1f6;padding-top:15px;margin-top:20px;font-size:12px;color:#8997a9}@media(max-width:760px){.order-search-form{grid-template-columns:1fr 1fr}.search-keyword{grid-column:1/-1;grid-row:1}.search-actions{grid-column:1/-1}.order-search-card{padding:18px}.search-heading{margin-bottom:18px}.search-footer{line-height:1.6}}@media(max-width:440px){.order-search-form{grid-template-columns:1fr}.search-actions{justify-content:space-between}.search-badge{display:none}}
/* Ember theme: warm accents with neutral surfaces for long inventory sessions. */
:root{color:#332923;background:#faf7f3;--ember:#d64b22;--ember-dark:#ad3416;--ember-soft:#fff0e5;--line:#eadfd6}body{background:radial-gradient(ellipse at 15% 0%,#ffe8d766,transparent 45%),#faf7f3}header{background:linear-gradient(110deg,#321d1b,#65281d 65%,#a63b1e);box-shadow:0 3px 16px #68321c22;border-bottom:2px solid #ee8749}header small{color:#eec6ae}nav{gap:16px}nav a,.link{color:#ffede2}nav a:hover{color:#ffbc7d}.nav-account{font-size:12px;color:#ffcfad;border-left:1px solid #ffffff35;padding-left:14px;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}h1,h2,.search-heading h2{color:#422c24}a{color:#b84420}.button,button{background:linear-gradient(135deg,#e7632c,#cf421f);box-shadow:0 3px 8px #d54b1815}.button:hover,button:hover{filter:brightness(.96)}.button.secondary,.secondary-button{background:#fff0e5;color:#a33a1c;box-shadow:none}.card{border-color:var(--line);border-radius:14px;box-shadow:0 4px 18px #59362006}.action-card{border-color:#edb89b}p,label{color:#78685e}.muted{color:#8c7d71}.pill{background:#fff0e3;color:#ad431b}.pill.danger{background:#fff0ed;color:#bb3c24}.pill.good-pill{background:#edf5e9;color:#476b36}.good{color:#416a35}.bad,.flash.error{color:#b82e23}.in-transit{color:#b85b1d}.code-list code{color:#684c3a}th{color:#897363;border-bottom-color:#eadfd5}td{border-bottom-color:#f1e9e2}tbody tr:hover{background:#fffbf6}.flash{background:#f0f6eb}.flash.error{background:#fff0ea}input,select,textarea{border:1px solid #dfd2c7;border-radius:8px;background:#fffdfb;color:#43342b;font:inherit;padding:10px;min-width:0}input:focus,select:focus,textarea:focus{outline:none;border-color:#df8657;box-shadow:0 0 0 3px #ec8c3d15}.gridform select{width:100%;height:41px}.status-filter{border-color:#eadfd6}.status-filter span{color:#8b7362}.status-filter.active{background:linear-gradient(125deg,#ec742e,#d24321);border-color:#d95426;box-shadow:0 6px 16px #cf4f2225}.status-filter.active span,.status-filter.active strong,.status-filter.active small{color:#fff}.status-filter:hover{border-color:#e7a681}.order-search-card{border-color:#eadfd6;background:linear-gradient(120deg,#fff,#fffcf8)}.search-badge{color:#b75926;background:#fff0df}.search-heading p,.search-footer{color:#998371}.order-search-form label{color:#896f5d}.order-search-form input,.order-search-form select{background:#fffdf9;border-color:#e6d9cc;color:#584334}.order-search-form input:focus,.order-search-form select:focus{border-color:#df8750;box-shadow:0 0 0 3px #e8792415}.search-actions button{box-shadow:0 4px 12px #d9512020}.search-actions button:hover{background:#bc401d}.search-reset{color:#9c7158}.search-reset:hover{color:#b6431f}.search-footer{border-top-color:#eee2d7}.sync-details{color:#9a7660}.login{border-top:4px solid #e5652d}.login h1{font-size:24px}.login form label{margin-top:16px}.brand-ember{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:linear-gradient(140deg,#ffae55,#dd4c22);color:white;font-size:32px;margin-bottom:20px;box-shadow:0 6px 18px #dc57172a}.login .small{margin-top:18px;line-height:1.6}.account-actions{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.account-actions summary{cursor:pointer;font-size:13px;color:#a64521}.password-reset{display:flex;gap:8px;margin-top:10px;align-items:center}.password-reset input{max-width:220px}.link{background:none;box-shadow:none}a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #eb9754;outline-offset:3px}@media(max-width:760px){.nav-account{border-left:0;padding-left:0}header{border-bottom-width:2px}.password-reset{flex-wrap:wrap}}
.receipt-batch{display:flex;flex-wrap:wrap;gap:12px;align-items:end;background:#fff8f1;border:1px solid #efdfd0;border-radius:10px;padding:16px}.receipt-batch label{max-width:190px}.receipt-check{flex-direction:row;align-items:center;padding:10px 0}.receipt-pending input[type=checkbox],.receipt-check input{width:18px;min-width:18px;accent-color:#d64b22}.receipt-pending:has(.row-select:checked){background:#fff8ef}input:disabled{background:#f3f1ee;color:#998e84}button:disabled{opacity:.45;cursor:not-allowed}
