/* Shared layout and component finish for the entire ERP. */
:root{--surface:#fff;--page:#faf7f3;--text:#382c25;--secondary:#7d6b5e;--border:#e9dfd5;--radius:14px;font-size:14px;line-height:1.55}
body{color:var(--text);background:radial-gradient(ellipse at 10% 0%,#fae7d750,transparent 40%),var(--page)}
header{padding:16px max(28px,calc((100% - 1464px)/2));gap:20px;flex-wrap:wrap;min-height:78px}
header b{font-size:19px;letter-spacing:.2px;white-space:nowrap}header small{font-size:12px;display:block;margin:3px 0 0;letter-spacing:1px}
nav{gap:5px}nav>a{padding:8px 12px;border-radius:8px;white-space:nowrap;font-weight:500}nav>a:hover{background:#ffffff10}nav>a[aria-current=page]{color:#fff;background:#ffffff20;box-shadow:inset 0 -2px #ffbd82}nav .link{padding:8px 10px;border-radius:8px;min-height:36px}.nav-account{margin-left:8px;font-size:12px}
.broadcast-toggle{min-height:34px;padding:7px 10px;border:1px solid #ffffff35;background:#ffffff12;color:#fff;box-shadow:none;font-size:12px}.broadcast-toggle:hover{background:#ffffff20}.broadcast-toggle.on{color:#fff7de;border-color:#ffcf91;background:#c84920}
.order-broadcasts{position:fixed;right:24px;bottom:24px;z-index:1200;display:grid;gap:10px;width:min(360px,calc(100vw - 32px));pointer-events:none}.order-broadcast-toast{pointer-events:auto;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:16px 18px;border:1px solid #f1c6a7;border-left:5px solid #e64b20;border-radius:12px;background:#fffaf5;box-shadow:0 14px 40px #4b21172b;animation:broadcast-in .22s ease-out}.order-broadcast-toast strong{display:block;color:#7e2817;font-size:14px}.order-broadcast-toast p{margin:3px 0 1px;color:#382c25;font-size:14px;font-weight:600}.order-broadcast-toast small{color:#9a806f;font-size:11px}.broadcast-close{min-height:28px;width:28px;padding:0;border:0;background:transparent;color:#9a806f;box-shadow:none;font-size:22px}.broadcast-close:hover{color:#682819;background:#f7e9de}@keyframes broadcast-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
main{width:100%;max-width:1520px;padding:0 28px;margin:30px auto 48px}.title{gap:18px;align-items:center;margin-bottom:24px}.title>div{min-width:0}h1{font-size:27px;line-height:1.35;letter-spacing:-.3px;margin:0 0 8px;overflow-wrap:anywhere}h2{font-size:17px;line-height:1.4;margin:0 0 16px}p{line-height:1.65}.title p{margin:0;font-size:13px}
.card{padding:24px;margin-bottom:22px;border-radius:var(--radius);border:1px solid var(--border);box-shadow:0 4px 20px #4d301405;overflow:visible}.section-title{gap:14px;flex-wrap:wrap;margin-bottom:16px}.section-title h2{margin:0}
label{font-size:13px;gap:8px;min-width:0;font-weight:500}input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select{min-height:42px;width:100%;font-size:14px}textarea{width:100%;line-height:1.55}input[type=file]{padding:7px;max-width:100%;font-size:13px}input[type=file]::file-selector-button{border:0;border-radius:6px;background:#f4e9de;color:#805237;padding:6px 10px;margin-right:10px;cursor:pointer}input[type=checkbox],input[type=radio]{width:17px;min-width:17px;height:17px;accent-color:#d64b22;padding:0}
.button,button{min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:6px;line-height:1.3;font-size:13px;white-space:nowrap;border-radius:8px;vertical-align:middle}.small-button{min-height:33px;padding:7px 11px;font-size:12px}.button.secondary,.secondary-button{border:1px solid #f0dccb}button:disabled{cursor:not-allowed;filter:none}.gridform{gap:18px;grid-template-columns:repeat(3,minmax(0,1fr))}.gridform button,.gridform select{height:42px}.form-actions{gap:10px;flex-wrap:wrap;align-items:center;padding-top:6px}.inventory-search{gap:12px;align-items:end}.inventory-search label{min-width:0}.receipt-footer{margin-top:22px;padding-top:20px;border-top:1px solid var(--border)}
.table-scroll{width:100%;overflow-x:auto;overscroll-behavior-x:contain;border-radius:8px;scrollbar-width:thin;scrollbar-color:#d7bca6 #fbf6f1}.table-scroll:focus-visible{outline:2px solid #de9057;outline-offset:4px}table{font-size:13px;line-height:1.55;width:100%;min-width:760px}th{font-size:12px;white-space:nowrap;background:#fcfaf7;padding:13px 12px;color:#8b7563;font-weight:600}td{padding:14px 12px}td .button{white-space:nowrap}td .small{font-size:11px;line-height:1.65;overflow-wrap:anywhere}table input:not([type=checkbox]){min-width:90px}.pill{font-size:12px;line-height:1.4;white-space:nowrap;padding:5px 10px}.code-list code{font-family:inherit;font-size:12px}.thumb{width:52px;height:66px;border-radius:8px;flex-shrink:0}.empty{padding:44px 16px;color:#a28e7e}.order-meta{gap:24px}.order-meta span{font-size:12px;color:#a28a76}.order-meta strong{font-size:14px;overflow-wrap:anywhere}
.status-filters{gap:14px;margin-bottom:24px}.status-filter{padding:18px 20px;border-radius:12px;transition:box-shadow .15s,transform .15s}.status-filter:hover{box-shadow:0 5px 18px #b24a1710;transform:translateY(-1px)}.status-filter strong{font-size:29px;font-variant-numeric:tabular-nums}.stats{gap:18px}.stats>div{padding:22px}.stats strong{font-size:32px;font-variant-numeric:tabular-nums}
.live-sales{padding:26px}.live-sales-heading{align-items:flex-start}.live-sales-heading h2{margin-bottom:4px}.live-sales-heading p{margin:0;font-size:12px}.live-indicator{display:inline-flex;align-items:center;gap:7px;padding:6px 10px;border-radius:99px;background:#f2f7ed;color:#52713e;font-size:11px;white-space:nowrap}.live-indicator i{width:7px;height:7px;border-radius:50%;background:#62a23e;box-shadow:0 0 0 4px #74a95018}.sales-store-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:20px 0 26px}.sales-store{min-width:0;padding:16px;border:1px solid #eadfd6;border-radius:12px;background:linear-gradient(145deg,#fff,#fff9f3)}.sales-store-head{display:flex;align-items:center;gap:8px;min-width:0}.sales-store-head>span,.store-number{display:inline-flex;width:max-content;padding:3px 8px;border-radius:99px;background:#fff0e3;color:#b44c24;font-size:11px;font-weight:700;white-space:nowrap}.sales-store-head strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.sales-store-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:15px 0 9px}.sales-store-metrics div{min-width:0}.sales-store-metrics b{display:block;font-size:24px;line-height:1.15;font-variant-numeric:tabular-nums}.sales-store-metrics small{display:block;color:#948174;font-size:10px;white-space:nowrap}.sales-top{margin:0;padding-top:9px;border-top:1px solid #f0e6dd;color:#8d715e;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sales-products-heading{margin:0 0 10px;padding-top:2px}.sales-products-heading h2{font-size:15px}.sales-products-heading .muted{font-size:11px}.sales-products-table{min-width:880px}.sales-products-table td:first-child small{display:block;max-width:150px;margin-top:5px;color:#8f7b6d;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sales-thumb{display:block;width:42px;height:52px;object-fit:cover;border-radius:7px;border:1px solid #eadfd6;background:#f8f3ee}.sales-no-image{display:grid;place-items:center;width:42px;height:52px;border-radius:7px;background:#f6f1ec;color:#b5a69a}.sales-product-name{max-width:440px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.order-search-form{gap:18px}.search-heading{margin-bottom:20px}.search-actions{gap:16px}.search-footer{line-height:1.6}.search-badge{font-size:11px}.sync-details{font-size:12px;margin:10px 0}.order-heading{gap:16px}.order-heading>.muted{font-size:12px}.receipt-batch{gap:12px;padding:16px}.receipt-check{white-space:nowrap;flex-direction:row}.account-actions{gap:12px}.password-reset{gap:8px}.login{max-width:440px;margin:9vh auto;padding:32px}.login .brand-ember{margin-bottom:22px}.login h1{font-size:23px}.login button{min-height:44px}.flash{font-size:14px;padding:14px 18px;border:1px solid #dce6d6;line-height:1.6}.flash.error{border-color:#f1d7cd}.document-notes{font-size:13px;padding-top:16px}
@media(min-width:1100px){#batch-outbound-form table{min-width:1220px}.inventory-table table{min-width:1250px}}
@media(max-width:1100px){header{padding:16px 24px;gap:14px}nav{width:100%}.order-meta{grid-template-columns:repeat(2,minmax(0,1fr))}.gridform{grid-template-columns:repeat(2,minmax(0,1fr))}.status-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.sales-store-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){main{padding:0 16px;margin-top:22px}header{padding:16px;align-items:stretch}header b{font-size:16px;white-space:normal}header small{display:none}nav{gap:2px}nav>a{padding:7px 9px;font-size:13px}.broadcast-toggle{order:3}.nav-account{margin-left:0}.order-broadcasts{right:16px;bottom:16px}.card{padding:18px;overflow:visible}.title{align-items:flex-start;gap:12px}h1{font-size:23px}.gridform{grid-template-columns:1fr}.stats{grid-template-columns:1fr}.status-filters{gap:8px}.status-filter{padding:12px}.status-filter strong{font-size:24px}.status-filter span{font-size:12px}.sales-store-grid{grid-template-columns:1fr 1fr}.live-sales-heading{gap:12px}.live-indicator{align-self:flex-start}.table-scroll table{min-width:820px}.order-meta{gap:18px}.import-card{gap:16px}.import-actions{width:100%;flex-wrap:wrap}.import-actions form{flex-wrap:wrap}.form-actions{justify-content:flex-end}.login{padding:24px;margin-top:6vh}.order-search-form{grid-template-columns:1fr 1fr}.order-search-form .search-keyword{grid-column:1/-1}.search-actions{grid-column:1/-1}}
@media(max-width:440px){.order-search-form{grid-template-columns:1fr}.order-meta{grid-template-columns:1fr}.search-actions{justify-content:space-between}nav>a{font-size:12px}.status-filter strong{font-size:22px}.sales-store-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}.status-filter:hover{transform:none}}

/* Compact merged order notice */
.order-broadcast-toast{align-items:center;gap:10px;padding:10px 12px;border-left-width:3px}.broadcast-copy{min-width:0;flex:1}.order-broadcast-toast p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:400}.broadcast-copy>a{font-size:12px}.broadcast-close{flex-shrink:0;min-height:36px;width:36px}
@media(max-width:760px){.order-broadcasts{right:12px;bottom:calc(12px + env(safe-area-inset-bottom));width:calc(100vw - 24px)}.order-broadcast-toast{padding:8px 10px;gap:8px}.order-broadcast-toast strong{font-size:13px}}
@media(prefers-reduced-motion:reduce){.order-broadcast-toast{animation:none}}
