:root{font-family:"Segoe UI",Arial,sans-serif;color:#1d2925;background:#f5f6f2;font-synthesis:none;text-rendering:optimizeLegibility;--green:#24684f;--green-dark:#174b38;--green-soft:#eaf3ee;--muted:#77817c;--line:#e8ebe7;--panel:#fff;--red:#bc5c4e;--amber:#ac7729}
*{box-sizing:border-box}
body{margin:0;min-width:320px}
button,input,select{font:inherit}
button{cursor:pointer}
.app-shell{min-height:100vh}
.app-shell.saving{pointer-events:none;cursor:wait;opacity:.82}
.auth-screen{min-height:100vh;display:grid;place-items:center;padding:24px;background:#f5f6f2}
.auth-card{width:min(440px,100%);padding:30px;background:#fff;border:1px solid #e6ebe6;border-radius:14px;box-shadow:0 18px 60px #23362b14}
.auth-brand-mark{margin-bottom:22px}
.auth-card h1{margin:0 0 8px}
.auth-card h2{font-size:15px;margin:18px 0 8px}
.auth-description,.auth-card form p{font-size:12px;line-height:1.55;color:#77817c}
.auth-card form{margin-top:18px}
.auth-card label{display:block;margin:0 0 14px;font-size:11px;font-weight:600;color:#526058}
.auth-card input{display:block;width:100%;height:40px;margin-top:6px;padding:0 11px;border:1px solid #dfe5df;border-radius:7px;background:#fff;color:#334038;font-size:13px}
.auth-card input:focus{outline:2px solid #a6cbb2;outline-offset:1px}
.totp-qr{display:block;width:min(220px,100%);height:auto;margin:16px auto;padding:10px;border:1px solid #e6ebe6;border-radius:8px;background:#fff}
.auth-submit{width:100%;height:42px;margin-top:3px}
.auth-footnote{border-top:1px solid #edf0ed;padding-top:14px;margin:20px 0 0;color:#919a94;font-size:10px;line-height:1.5}
.oauth-card{width:min(520px,100%)}
.oauth-card h3{font-size:12px;margin:17px 0 8px}
.oauth-details{margin:16px 0}
.oauth-details div{padding:9px 0;border-bottom:1px solid #edf0ed}
.oauth-details dt{font-size:10px;font-weight:700;color:#526058}
.oauth-details dd{margin:4px 0 0;font-size:11px;line-height:1.5;color:#77817c;overflow-wrap:anywhere}
.oauth-scopes{margin:0;padding-left:20px;color:#526058;font-size:11px;line-height:1.8}
.oauth-warning{margin:16px 0 0;padding:11px 12px;border:1px solid #f0e2c8;border-radius:7px;background:#fffaf0;color:#816431;font-size:10px;line-height:1.55}
.oauth-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}
.oauth-actions .button{min-width:100px}
.auth-notice{padding:10px 12px;border-radius:7px;margin:13px 0;background:#fff0ed;border:1px solid #f1d6d1;color:#a74d40;font-size:11px;line-height:1.5}
.auth-notice.info{background:#f1f6f2;border-color:#deebe1;color:#587264}
.account-control{position:relative}
.account-menu{position:absolute;z-index:5;right:0;top:42px;width:220px;padding:11px;background:var(--panel);border:1px solid var(--line);border-radius:9px;box-shadow:0 12px 30px #1d29251a}
.account-menu>strong{display:block;overflow:hidden;text-overflow:ellipsis;font-size:10px;color:#3c4942}
.account-menu-label{display:block;margin:12px 0 6px;color:#909a93;font-size:9px}
.account-menu-item,.account-menu-signout{display:block;width:100%;text-align:left;border:0;background:transparent;border-radius:6px;padding:8px;font-size:10px;color:#536159}
.account-menu-item:hover,.account-menu-signout:hover{background:#f2f6f2}
.account-menu-item[aria-current="true"]{color:#24684f;font-weight:700}
.account-menu-signout{margin-top:8px;border-top:1px solid var(--line);border-radius:0;color:#a74d40}
.sidebar{width:242px;background:#fff;border-right:1px solid var(--line);position:fixed;inset:0 auto 0 0;padding:25px 17px 19px;display:flex;flex-direction:column;z-index:2}
.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:inherit;padding:0 8px;margin-bottom:49px}
.brand-mark{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:#205b44;color:#fff;font:800 20px "Segoe UI",sans-serif}
.brand strong,.brand small,.site-card strong,.site-card small{display:block}
.brand strong{font:800 17px "Segoe UI",sans-serif;letter-spacing:.5px}
.brand small{font-size:10px;color:var(--muted);margin-top:1px}
.nav-label,.eyebrow{font-size:10px;letter-spacing:1.25px;font-weight:700;color:#99a19c}
.nav-label{padding:0 12px;margin-bottom:11px}
.main-nav{display:grid;gap:5px}
.nav-item{width:100%;border:0;background:transparent;color:#66716b;border-radius:8px;padding:11px 12px;text-align:left;font-size:13px;display:flex;align-items:center;gap:11px}
.nav-item:hover{background:#f5f7f4;color:var(--green)}
.nav-item.active{background:#eaf3ee;color:#205b44;font-weight:700}
.nav-icon{font-size:17px;width:19px;text-align:center}
.sidebar-bottom{margin-top:auto}
.site-card{background:#f7f8f6;border:1px solid #ecefea;border-radius:9px;padding:12px;display:flex;align-items:flex-start;gap:9px;margin:0 2px 13px}
.site-dot,.insight-dot{width:7px;height:7px;border-radius:50%;background:#3c9a6d;flex:none;margin-top:4px}
.site-card strong{font-size:11px;font-weight:600}
.site-card small{font-size:10px;color:var(--muted);margin-top:4px}
.settings-link{margin-bottom:19px}
.sidebar-foot{border-top:1px solid var(--line);padding:16px 9px 0;color:#9da59f;font-size:9px;letter-spacing:.7px;font-weight:700}
.sidebar-foot span{float:right;font-weight:500;letter-spacing:0}
.main-content{margin-left:242px;max-width:1800px;padding:0 42px;min-height:100vh}
.topbar{height:69px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e9ece8;margin-bottom:28px}
.breadcrumb{font-size:11px;color:#919a94;display:flex;gap:10px;align-items:center}
.breadcrumb strong{font-weight:600;color:#34413b}
.crumb-separator{color:#c3c9c4}
.topbar-actions{display:flex;align-items:center;gap:17px}
.today-label{font-size:11px;color:#7e8882}
.icon-button,.avatar{border:1px solid #e7ebe7;background:#fff;width:32px;height:32px;border-radius:9px;color:#5e6a63}
.icon-button{font-size:18px}
.avatar{border:0;background:#e7f0ea;color:#276448;font-size:12px;font-weight:700;border-radius:50%}
.page-section{display:none;padding-bottom:35px}
.page-section.active{display:block}
.page-heading{display:flex;align-items:center;justify-content:space-between;margin:0 0 23px}
.eyebrow{margin:0 0 7px}
h1,h2,p{margin-top:0}
h1{font:700 25px "Segoe UI",sans-serif;letter-spacing:-.6px;margin-bottom:6px;color:#202c26}
.page-subtitle{font-size:12px;color:#849089;margin-bottom:0}
.button{border:1px solid transparent;border-radius:7px;padding:10px 14px;font-size:12px;font-weight:600;transition:background .15s,transform .15s}
.button:hover{transform:translateY(-1px)}
.button-primary{background:#24684f;color:white;box-shadow:0 2px 4px #164b3820}
.button-primary:hover{background:#19543d}
.button-primary span{font-size:16px;vertical-align:-1px}
.button-quiet{background:white;border-color:#e3e8e3;color:#66716b}
.button-small{padding:8px 11px}
.demo-banner{display:flex;gap:10px;align-items:center;background:#f1f6f2;border:1px solid #deebe1;border-radius:8px;padding:11px 13px;margin-bottom:18px;color:#587264;font-size:11px}
.demo-banner strong{color:#315a42}
.demo-icon{width:17px;height:17px;display:grid;place-items:center;border:1px solid #90ae98;border-radius:50%;font-size:10px;font-weight:700;flex:none}
.demo-banner button{margin-left:auto;border:0;background:transparent;color:#708278;font-size:18px}
.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:17px}
.metric-card{background:#fff;border:1px solid #e9ece8;border-radius:9px;padding:16px 17px;min-height:105px}
.metric-top{display:flex;justify-content:space-between;align-items:center;color:#77817b;font-size:10px}
.metric-icon{width:26px;height:26px;border-radius:7px;display:grid;place-items:center;color:#347254;background:#edf5ef;font-size:14px}
.metric-value{font:700 25px "Segoe UI",sans-serif;margin-top:10px;letter-spacing:-.5px}
.metric-note{font-size:10px;color:#98a19b;margin-top:3px}
.content-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(255px,.82fr);gap:15px;margin-bottom:15px}
.panel{background:var(--panel);border:1px solid #e9ece8;border-radius:9px;overflow:hidden}
.panel-heading{padding:17px 19px 15px;display:flex;align-items:flex-start;justify-content:space-between}
.panel-heading h2{font:700 13px "Segoe UI",sans-serif;margin:0 0 4px}
.panel-heading p{font-size:10px;color:#909a93;margin:0}
.text-button{border:0;background:transparent;color:#327152;padding:2px;font-size:10px;font-weight:600;white-space:nowrap}
.text-button span{font-size:14px;margin-left:3px}
.table-wrap{width:100%;overflow-x:auto}
table{width:100%;border-collapse:collapse;white-space:nowrap}
th{font-size:9px;letter-spacing:.6px;color:#97a099;font-weight:600;text-align:left;padding:10px 13px;background:#fafbf9;border-top:1px solid #eff1ee;border-bottom:1px solid #eff1ee}
td{font-size:11px;padding:12px 13px;border-bottom:1px solid #f0f2ef;color:#4d5a53}
tbody tr:last-child td{border-bottom:0}
.model-cell{display:flex;align-items:center;gap:9px;min-width:145px}
.model-thumb{width:29px;height:29px;border-radius:7px;background:#edf4ef;color:#3b7454;display:grid;place-items:center;font-size:11px;font-weight:700;flex:none}
.model-title{font-size:11px;color:#344139;font-weight:600}
.model-code{display:block;font-size:9px;color:#9ba39e;margin-top:3px}
.number-cell{font-weight:600;color:#35433b}
.low-number{color:#bc7251}
.recommend-value{color:#2a704f;font-weight:700}
.status{display:inline-flex;align-items:center;gap:5px;padding:5px 7px;border-radius:20px;background:#edf5ef;color:#397452;font-size:9px}
.status::before{content:"";width:5px;height:5px;background:#58a277;border-radius:50%}
.status.warning{background:#fbf2e8;color:#a06e28}
.status.warning::before{background:#d49a47}
.status.critical{background:#faedeb;color:#b35b4f}
.status.critical::before{background:#cf776a}
.row-actions{display:flex;align-items:center;gap:6px}
.mini-button{border:1px solid #e5eae5;background:white;border-radius:5px;padding:6px 8px;font-size:9px;color:#54715f}
.mini-button:hover{background:#f3f7f3}
.mini-button:disabled{opacity:.45;cursor:not-allowed}
.more-button{border:0;background:none;color:#829087;font-size:16px}
.panel-icon{width:26px;height:26px;border-radius:7px;background:#f1f6f2;color:#437957;display:grid;place-items:center}
.insight-panel{display:flex;flex-direction:column}
.replenish-item{padding:11px 18px;border-top:1px solid #f0f2ef;display:grid;grid-template-columns:1fr auto;gap:5px}
.replenish-name{font-size:11px;font-weight:600;color:#3c4942}
.replenish-meta{font-size:9px;color:#8d9790}
.replenish-amount{text-align:right;font-size:10px;color:#307150;font-weight:700}
.replenish-amount small{display:block;font-weight:400;color:#959e98;margin-top:3px}
.insight-empty{font-size:11px;color:#859089;padding:22px 18px}
.insight-foot{border-top:1px solid #f0f2ef;padding:13px 17px;margin-top:auto;font-size:9px;color:#89938d;display:flex;align-items:center;gap:6px}
.insight-foot strong{color:#496655}
.activity-panel{margin-bottom:10px}
.activity-row{display:grid;grid-template-columns:32px 1fr auto;align-items:center;gap:10px;padding:11px 19px;border-top:1px solid #f0f2ef}
.activity-icon{width:29px;height:29px;border-radius:8px;display:grid;place-items:center;background:#eaf4ed;color:#397456;font-size:14px}
.activity-icon.sale{background:#f7f1e8;color:#ac792d}
.activity-main{font-size:10px;color:#536159}
.activity-main strong{color:#38473e}
.activity-meta{display:block;font-size:9px;color:#9aa29d;margin-top:3px}
.activity-quantity{font-size:10px;font-weight:700;color:#347150}
.toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.search-box{height:36px;border:1px solid #e5e9e4;border-radius:7px;background:#fff;display:flex;align-items:center;gap:9px;padding:0 11px;width:270px;color:#87928a}
.search-box span{font-size:18px}
.search-box input{border:0;outline:0;min-width:0;width:100%;font-size:11px;color:#3c4942}
.search-box input::placeholder{color:#a5ada7}
.result-count{color:#98a19b;font-size:10px}
.inventory-panel{min-height:130px}
.inventory-panel th,.inventory-panel td{padding-left:16px;padding-right:16px}
.compact-metrics{grid-template-columns:repeat(3,minmax(0,1fr));max-width:850px}
.empty-state{padding:30px 20px 34px;display:flex;align-items:center;flex-direction:column;text-align:center;color:#859088}
.empty-state.hidden{display:none}
.empty-icon{width:36px;height:36px;display:grid;place-items:center;background:#f0f5f1;border-radius:10px;color:#4e8061;margin-bottom:11px;font-size:19px}
.empty-state strong{font-size:12px;color:#45534a}
.empty-state p{font-size:10px;margin:6px 0 13px}
.main-footer{display:flex;justify-content:space-between;border-top:1px solid #e8ebe7;padding:16px 0 21px;color:#a0a8a2;font-size:9px}
.app-dialog{width:min(480px,calc(100% - 28px));border:0;border-radius:12px;padding:24px;background:#fff;box-shadow:0 20px 80px #152a1f38;color:#2d3932}
.app-dialog::backdrop{background:#17281f65;backdrop-filter:blur(2px)}
.small-dialog{width:min(420px,calc(100% - 28px))}
.dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:21px}
.dialog-heading h2{font:700 19px "Segoe UI",sans-serif;margin:0}
.dialog-close{border:0;background:#f4f6f3;color:#718077;width:28px;height:28px;border-radius:7px;font-size:18px}
.app-dialog label{display:block;font-size:10px;color:#5f6b63;font-weight:600;margin-bottom:14px}
.app-dialog input,.app-dialog select{display:block;width:100%;height:38px;border:1px solid #e3e8e3;border-radius:6px;background:#fff;padding:0 10px;margin-top:6px;font-size:11px;color:#39463e;outline:none}
.app-dialog input:focus,.app-dialog select:focus{border-color:#70a184;box-shadow:0 0 0 3px #e9f3ec}
.app-dialog label small{display:block;font-size:9px;line-height:1.5;font-weight:400;color:#929c95;margin-top:6px}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.form-hint{align-self:center;font-size:9px;line-height:1.5;color:#87938b;margin:7px 0 14px}
.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:22px}
.available-note{align-self:center;font-size:10px;color:#8b958e;padding-top:9px}
.settings-tools{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:4px 0 0}
.danger-text{color:#b55d53}
.notice{padding:10px 13px;border-radius:7px;font-size:11px;margin:-13px 0 15px}
.notice.success{background:#ebf5ed;color:#397351;border:1px solid #d9eadc}
.notice.error{background:#fff0ed;color:#a74d40;border:1px solid #f1d6d1}
@media(max-width:1150px){.main-content{padding:0 26px}.content-grid{grid-template-columns:minmax(0,1.5fr) minmax(235px,.8fr)}th,td{padding-left:10px;padding-right:10px}}
@media(max-width:900px){.sidebar{width:205px}.main-content{margin-left:205px;padding:0 20px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.content-grid{grid-template-columns:1fr}.insight-panel{min-height:180px}}
.hidden{display:none!important}
.role-switch{display:flex;align-items:center;gap:7px;color:#818b84;font-size:10px}
.role-switch select{height:30px;border:1px solid #e5e9e4;border-radius:7px;background:#fff;padding:0 8px;color:#46544b;font-size:10px}
.nav-badge{margin-left:auto;background:#dcece1;color:#266143;border-radius:20px;padding:2px 6px;font-size:9px;font-weight:700}
.role-info{display:flex;align-items:center;gap:10px;padding:11px 13px;border-radius:8px;background:#f1f6f2;border:1px solid #deebe1;color:#587264;font-size:10px;line-height:1.5;margin:-5px 0 16px}
.role-info strong{color:#315a42}
.notification-banner{display:flex;align-items:center;gap:11px;padding:13px 15px;border:1px solid #d8e9dc;background:#edf6ef;color:#386b4b;border-radius:8px;margin:0 0 14px;font-size:11px}
.notification-symbol{font-size:13px;color:#3a9b65}
.notification-banner strong,.notification-banner span{display:block}
.notification-banner span{font-size:10px;color:#728b79;margin-top:4px}
.order-card{background:#fff;border:1px solid #e9ece8;border-radius:9px;margin:0 15px 12px;overflow:hidden}
.order-card-heading{display:flex;justify-content:space-between;align-items:center;padding:13px 15px;background:#fbfcfa;border-bottom:1px solid #edf0ec}
.order-id{display:block;font:700 12px "Segoe UI",sans-serif;color:#34473a}
.order-date{display:block;font-size:9px;color:#949d97;margin-top:4px}
.order-card-state{display:flex;align-items:center}
.order-items{padding:2px 15px}
.order-item-row{display:grid;grid-template-columns:minmax(130px,1fr) minmax(75px,.35fr) minmax(180px,1.2fr);align-items:center;gap:8px;padding:10px 0;border-bottom:1px solid #f0f2ef;font-size:10px;color:#56635b}
.order-item-row:last-child{border-bottom:0}
.substitution-label{color:#9a6d2c;font-size:9px}
.muted-label{color:#929c95;font-size:9px}
.order-item-note{grid-column:1/-1;color:#88938b;font-size:9px}
.order-note{padding:0 15px 10px;color:#718078;font-size:10px;line-height:1.5;margin:0}
.order-card-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #edf0ec;padding:10px 15px;color:#849087;font-size:9px}
.order-card-footer strong{color:#34473a}
.orders-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 14px}
#request-section{margin-bottom:18px}
.order-status-tabs{display:flex;gap:5px;padding:4px;background:#edf1ed;border:1px solid #e6eae6;border-radius:8px}
.order-status-tab{display:flex;align-items:center;gap:7px;border:0;border-radius:6px;padding:8px 12px;background:transparent;color:#6e7972;font-size:10px;font-weight:600}
.order-status-tab.active{background:#fff;color:#24684f;box-shadow:0 1px 3px #1d292510}
.order-status-tab span{min-width:18px;padding:2px 5px;border-radius:12px;background:#e8eee9;color:#64736a;text-align:center;font-size:9px}
.order-status-tab.active span{background:#eaf3ee;color:#24684f}
.orders-month-filter{display:flex;align-items:center;gap:8px;color:#77817c;font-size:10px}
.orders-month-filter select{height:36px;min-width:150px;border:1px solid #e5eae5;border-radius:7px;background:#fff;color:#46544c;padding:0 10px;font-size:11px}
.order-builder-dialog{width:min(760px,calc(100% - 28px))}
.order-review-dialog{width:min(650px,calc(100% - 28px))}
.dialog-copy{font-size:10px;color:#7d8981;line-height:1.5;margin:-9px 0 15px}
.order-lines-header,.order-line{display:grid;grid-template-columns:minmax(150px,1.2fr) 95px minmax(170px,1fr) 30px;align-items:center;gap:9px}
.order-lines-header{padding:0 0 7px;color:#9aa39d;font-size:8px;font-weight:700;letter-spacing:.5px}
.order-line{margin-bottom:8px}
.order-line select,.order-line input{min-width:0;height:36px;border:1px solid #e3e8e3;border-radius:6px;background:#fff;padding:0 9px;font-size:10px;color:#39463e}
.remove-line-button{width:28px;height:28px;border:0;border-radius:6px;background:#fbefed;color:#b15c4e;font-size:18px}
.add-line-button{padding:8px 10px;font-size:10px}
.order-note-label{margin-top:17px!important}
.order-builder-total{display:flex;justify-content:space-between;align-items:center;padding:12px 2px;border-top:1px solid #e9ede9;color:#77827a;font-size:10px}
.order-builder-total strong{font:700 17px "Segoe UI",sans-serif;color:#2c6447}
.review-order-summary{display:grid;grid-template-columns:1fr 1fr 1fr;gap:9px;margin-bottom:14px}
.review-order-summary>div{padding:10px;border:1px solid #e9ede9;border-radius:7px}
.review-order-summary span,.review-order-summary strong{display:block}
.review-order-summary span{font-size:9px;color:#929b95;margin-bottom:5px}
.review-order-summary strong{font-size:11px;color:#35443a}
.review-lines{border:1px solid #e9ede9;border-radius:8px;padding:12px 13px;margin-bottom:12px}
.review-lines h3{font:700 11px "Segoe UI",sans-serif;margin:0 0 8px;color:#46544b}
.review-line{display:flex;align-items:center;justify-content:space-between;padding:7px 0;border-top:1px solid #f0f2ef;font-size:10px;color:#4d5a53}
.review-line>span small{display:block;color:#a27b3f;font-size:9px;margin-top:3px}
.review-line strong{color:#347150}
.stock-after{font-size:9px;color:#758078;margin:9px 0 0;line-height:1.5}
.stock-after strong{color:#4e5d53}
.review-alert,.substitution-notice,.review-success,.review-info,.order-preview-note{border-radius:7px;padding:11px 12px;margin-bottom:10px;font-size:10px;line-height:1.5}
.review-alert{background:#fff5eb;border:1px solid #f0dfc6;color:#8c622e}
.review-alert>strong,.substitution-notice>strong{display:block;margin-bottom:5px}
.review-alert-row{display:flex;justify-content:space-between;gap:8px;padding:5px 0;border-top:1px solid #f2e6d7;font-size:9px}
.review-alert-row span:last-child{text-align:right}
.review-alert p{margin:6px 0 0;font-size:9px}
.review-success{background:#edf6ef;border:1px solid #d9e9dc;color:#427451}
.substitution-notice{background:#f7f4ed;border:1px solid #eee5d1;color:#806431}
.substitution-notice p{margin:0 0 5px}
.substitution-notice small{font-size:9px;color:#8d8268}
.review-info{background:#f5f6f3;border:1px solid #e8ebe7;color:#7f8982}
.order-preview-note{background:#f3f6f3;color:#627369;margin-bottom:0}
.order-preview-note strong{color:#44584b}
.order-card-footer .button{font-size:9px}
@media(max-width:640px){.sidebar{width:auto;position:static;height:auto;padding:10px 12px;border-right:0;border-bottom:1px solid var(--line);display:block}.brand{margin:0;padding:0 4px}.brand-mark{width:32px;height:32px;border-radius:9px}.brand strong{font-size:14px}.brand small{font-size:9px}.nav-label,.sidebar-bottom{display:none}.main-nav{display:flex;gap:5px;margin-top:11px}.nav-item{padding:8px 10px;justify-content:center;gap:6px;font-size:10px}.nav-icon{font-size:14px;width:auto}.main-content{margin-left:0;padding:0 14px}.topbar{height:52px;margin-bottom:22px}.today-label{display:none}.topbar-actions{gap:9px}.page-heading{align-items:flex-start;gap:12px}.page-heading .button{padding:9px 10px;font-size:10px;white-space:nowrap}.page-heading h1{font-size:21px}.page-subtitle{line-height:1.5;max-width:400px}.demo-banner{align-items:flex-start;font-size:10px;line-height:1.5}.metric-grid{gap:9px}.metric-card{min-height:95px;padding:12px}.metric-value{font-size:22px}.metric-note{line-height:1.4}.panel-heading{padding:14px}.panel-heading h2{font-size:12px}.text-button{font-size:9px}.content-grid{gap:10px}.main-footer{font-size:8px}.compact-metrics{grid-template-columns:1fr 1fr}.compact-metrics .metric-card:last-child{grid-column:span 2}.activity-row{padding:10px 13px}.toolbar{gap:8px}.search-box{width:min(270px,75vw)}.app-dialog{padding:20px}.breadcrumb{font-size:10px}}
@media(max-width:400px){.main-content{padding:0 10px}.nav-item{padding:8px 7px}.page-heading .button{font-size:9px}.page-heading h1{font-size:19px}.form-row{gap:8px}}
@media(max-width:640px){.role-switch{gap:4px;font-size:9px}.role-switch select{max-width:106px;padding:0 4px;font-size:9px}.order-lines-header,.order-line{grid-template-columns:minmax(100px,1fr) 62px minmax(100px,1fr) 25px;gap:5px}.order-lines-header{font-size:7px}.order-line select,.order-line input{padding:0 5px;font-size:9px}.order-card{margin:0 8px 10px}.order-item-row{grid-template-columns:minmax(100px,1fr) 65px minmax(115px,1fr);gap:5px}.order-card-footer{align-items:flex-start;gap:8px;flex-direction:column}.order-card-footer .row-actions{align-self:flex-end}.review-order-summary{gap:5px}.review-order-summary>div{padding:7px}.review-order-summary strong{font-size:9px}.review-alert-row{flex-direction:column;gap:2px}.review-alert-row span:last-child{text-align:left}}
@media(max-width:390px){.order-lines-header,.order-line{grid-template-columns:minmax(90px,1fr) 52px minmax(90px,1fr) 22px;gap:4px}.order-line select,.order-line input{font-size:8px}.order-item-row{grid-template-columns:1fr 58px}.order-item-row>span:nth-child(3){grid-column:1/-1}.topbar-actions{gap:5px}.role-switch select{max-width:90px}}

.image-picker{border:1px solid #e7ebe7;border-radius:8px;padding:12px;margin:2px 0 14px;min-width:0}
.image-picker legend{padding:0 5px;font-size:10px;font-weight:700;color:#56635b}
.image-picker-content{display:grid;grid-template-columns:112px 1fr;gap:13px;align-items:center}
.image-preview{width:112px;height:112px;border:1px solid #e8ece8;border-radius:10px;background:#f8faf8;overflow:hidden;display:grid;place-items:center}
.image-preview img{width:100%;height:100%;object-fit:cover}
.image-picker-controls label{margin-bottom:8px}
.image-picker-controls select{height:34px;margin-top:4px}
.image-picker-controls small{display:block;color:#929c95;font-size:9px;line-height:1.5;margin:5px 0}
.image-upload-button{display:inline-flex;align-items:center;justify-content:center;padding:8px 10px;font-size:9px;cursor:pointer}
.image-remove-button{display:block;margin-top:5px;font-size:9px}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.model-thumb{object-fit:cover}
.role-switch{white-space:nowrap}
#theme-choice{margin-top:6px}
.catalog-toolbar{flex-wrap:wrap}
.catalog-filter-label{display:flex;align-items:center;gap:8px;font-size:10px;color:#77817c}
.catalog-filter-label select{height:36px;max-width:min(260px,45vw);border:1px solid #e5eae5;border-radius:7px;background:#fff;color:#46544c;padding:0 10px;font-size:11px}
.catalog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px}
.catalog-card{min-width:0;background:var(--panel);border:1px solid #e9ece8;border-radius:9px;overflow:hidden;display:flex;flex-direction:column}
.catalog-card-image{display:block;width:100%;height:170px;object-fit:contain;background:#fff;border-bottom:1px solid #eff1ee}
.catalog-card-content{display:flex;flex:1;flex-direction:column;align-items:flex-start;padding:13px}
.catalog-category{font-size:9px;color:#39805a;font-weight:700;letter-spacing:.35px}
.catalog-card h2{font-size:12px;line-height:1.45;margin:6px 0 8px;color:#344139}
.catalog-variants{display:grid;gap:5px;margin-bottom:12px;color:#78837c;font-size:9px;line-height:1.45}
.catalog-variants strong{color:#59675f}
.catalog-add-button{width:100%;margin-top:auto;font-size:10px}
.catalog-image-preview-wrap{display:grid;grid-template-columns:90px 1fr;align-items:center;gap:12px;padding:10px;border:1px solid #e8ece8;border-radius:8px;margin:10px 0 14px}
.catalog-image-preview-wrap img{width:90px;height:72px;object-fit:contain;background:#fff;border:1px solid #eef0ed;border-radius:5px}
.catalog-image-preview-wrap small{font-size:10px;line-height:1.5;color:#849089}

html[data-theme="dark-blue"]{color-scheme:dark;background:#070a11;color:#eef3fb}
html[data-theme="dark-blue"] body{background:#070a11;color:#eef3fb}
html[data-theme="dark-blue"] .sidebar,html[data-theme="dark-blue"] .panel,html[data-theme="dark-blue"] .metric-card,html[data-theme="dark-blue"] .app-dialog{background:#0b101a;color:#eef3fb;border-color:#102040}
html[data-theme="dark-blue"] .topbar{border-color:#0e1c38}
html[data-theme="dark-blue"] .breadcrumb strong,html[data-theme="dark-blue"] h1,html[data-theme="dark-blue"] .panel-heading h2,html[data-theme="dark-blue"] .model-title,html[data-theme="dark-blue"] .brand,html[data-theme="dark-blue"] .number-cell,html[data-theme="dark-blue"] .review-lines h3{color:#eef3fb}
html[data-theme="dark-blue"] .breadcrumb,html[data-theme="dark-blue"] .today-label,html[data-theme="dark-blue"] .page-subtitle,html[data-theme="dark-blue"] .panel-heading p,html[data-theme="dark-blue"] .metric-top,html[data-theme="dark-blue"] .metric-note,html[data-theme="dark-blue"] td,html[data-theme="dark-blue"] .replenish-meta,html[data-theme="dark-blue"] .order-date,html[data-theme="dark-blue"] .main-footer,html[data-theme="dark-blue"] .role-switch{color:#becce0}
html[data-theme="dark-blue"] th{background:#0e1421;color:#c4d2e3;border-color:#102040}
html[data-theme="dark-blue"] td,html[data-theme="dark-blue"] .activity-row,html[data-theme="dark-blue"] .replenish-item,html[data-theme="dark-blue"] .insight-foot,html[data-theme="dark-blue"] .order-card-footer{border-color:#0e1c38}
html[data-theme="dark-blue"] .site-card,html[data-theme="dark-blue"] .order-card,html[data-theme="dark-blue"] .order-card-heading,html[data-theme="dark-blue"] .review-lines,html[data-theme="dark-blue"] .review-order-summary>div,html[data-theme="dark-blue"] .image-picker,html[data-theme="dark-blue"] .image-preview{background:#0f1522;border-color:#102040}
html[data-theme="dark-blue"] .nav-item{color:#b5c6db}
html[data-theme="dark-blue"] .nav-item:hover{background:#0d1b35;color:#bac9de}
html[data-theme="dark-blue"] .nav-item.active{background:#172f5e;color:#d3ddea}
html[data-theme="dark-blue"] .brand small,html[data-theme="dark-blue"] .sidebar-foot{color:#9cb1d0}
html[data-theme="dark-blue"] .icon-button,html[data-theme="dark-blue"] .mini-button,html[data-theme="dark-blue"] .button-quiet,html[data-theme="dark-blue"] .search-box,html[data-theme="dark-blue"] .search-box input,html[data-theme="dark-blue"] .role-switch select,html[data-theme="dark-blue"] .app-dialog input,html[data-theme="dark-blue"] .app-dialog select,html[data-theme="dark-blue"] .order-line select,html[data-theme="dark-blue"] .order-line input{background:#0b172e;color:#eef3fb;border-color:#142850}
html[data-theme="dark-blue"] .search-box input::placeholder{color:#9cb1d0}
html[data-theme="dark-blue"] .avatar{background:#1c376f;color:#dbe3ee}
html[data-theme="dark-blue"] .button-primary{background:#065fe6;color:#fff}
html[data-theme="dark-blue"] .button-primary:hover{background:#1570f9}
html[data-theme="dark-blue"] .model-thumb{background:#142952}
html[data-theme="dark-blue"] .demo-banner,html[data-theme="dark-blue"] .role-info,html[data-theme="dark-blue"] .notification-banner{background:#101f3f;border-color:#193365;color:#c7d3e4}
html[data-theme="dark-blue"] .demo-banner strong,html[data-theme="dark-blue"] .role-info strong{color:#dfe6ef}
html[data-theme="dark-blue"] .order-item-row,html[data-theme="dark-blue"] .review-line{border-color:#102040;color:#dde5ef}
html[data-theme="dark-blue"] .review-order-summary span,html[data-theme="dark-blue"] .review-order-summary strong{color:#d4deea}
html[data-theme="dark-blue"] .form-hint,html[data-theme="dark-blue"] .image-picker-controls small{color:#b6c6dc}
html[data-theme="dark-blue"] .app-dialog label,html[data-theme="dark-blue"] .dialog-copy,html[data-theme="dark-blue"] .available-note{color:#d4deea}
html[data-theme="dark-blue"] .notification-banner span{color:#b6c7dc}
html[data-theme="dark-blue"] .order-card-heading{border-color:#102040}
html[data-theme="dark-blue"] .review-info,html[data-theme="dark-blue"] .order-preview-note{background:#101f3f;border-color:#183061;color:#a6b8d4}
html[data-theme="dark-blue"] .catalog-card{background:#0b101a;border-color:#102040}
html[data-theme="dark-blue"] .catalog-card-image,html[data-theme="dark-blue"] .catalog-image-preview-wrap img{background:#fff}
html[data-theme="dark-blue"] .catalog-card h2{color:#eef3fb}
html[data-theme="dark-blue"] .catalog-variants{color:#becce0}
html[data-theme="dark-blue"] .catalog-variants strong{color:#dde5ef}
html[data-theme="dark-blue"] .catalog-filter-label{color:#becce0}
html[data-theme="dark-blue"] .catalog-filter-label select{background:#0b172e;color:#eef3fb;border-color:#142850}
html[data-theme="dark-blue"] .catalog-image-preview-wrap{background:#0f1522;border-color:#102040}
html[data-theme="dark-blue"] .catalog-image-preview-wrap small{color:#b6c6dc}
html[data-theme="dark-blue"] .auth-screen{background:#070a11}
html[data-theme="dark-blue"] .auth-card{background:#0b101a;border-color:#102040}
html[data-theme="dark-blue"] .auth-card h1,html[data-theme="dark-blue"] .auth-card h2{color:#eef3fb}
html[data-theme="dark-blue"] .auth-description,html[data-theme="dark-blue"] .auth-card form p,html[data-theme="dark-blue"] .auth-footnote{color:#becce0}
html[data-theme="dark-blue"] .auth-card label{color:#d4deea}
html[data-theme="dark-blue"] .auth-card input{background:#0b172e;color:#eef3fb;border-color:#142850}
html[data-theme="dark-blue"] .auth-footnote{border-color:#102040}
html[data-theme="dark-blue"] .account-menu{background:#0b101a;border-color:#102040}
html[data-theme="dark-blue"] .account-menu>strong{color:#eef3fb}
html[data-theme="dark-blue"] .account-menu-item,html[data-theme="dark-blue"] .account-menu-signout{color:#dbe6f5}
html[data-theme="dark-blue"] .account-menu-item:hover,html[data-theme="dark-blue"] .account-menu-signout:hover{background:#12203a}
html[data-theme="dark-blue"] .account-menu-signout{border-color:#12203a;color:#edb2a8}
html[data-theme="dark-blue"] .order-status-tabs{background:#0f1522;border-color:#102040}
html[data-theme="dark-blue"] .order-status-tab{color:#becce0}
html[data-theme="dark-blue"] .order-status-tab.active{background:#152a54;color:#d3ddea}
html[data-theme="dark-blue"] .order-status-tab span{background:#102040;color:#dde5ef}
html[data-theme="dark-blue"] .order-status-tab.active span{background:#172f5e;color:#d3ddea}
html[data-theme="dark-blue"] .orders-month-filter{color:#becce0}
html[data-theme="dark-blue"] .orders-month-filter select{background:#0b172e;color:#eef3fb;border-color:#142850}
html[data-theme="dark-blue"] .review-success{background:#102040;border-color:#193365;color:#bfcde0}
html[data-theme="dark-blue"] .review-alert{background:#3a3023;border-color:#5c4a32;color:#e4c994}
html[data-theme="dark-blue"] .substitution-notice{background:#373329;border-color:#554c37;color:#dfd1a8}
html[data-theme="dark-blue"] .status{background:#142952;color:#c7d4e4}
html[data-theme="dark-blue"] .status.warning{background:#3b3325;color:#e6c485}
html[data-theme="dark-blue"] .status.critical{background:#402c2a;color:#edb2a8}
html[data-theme="dark-blue"] .metric-icon,html[data-theme="dark-blue"] .panel-icon{background:#142952;color:#b4c5db}
html[data-theme="dark-blue"] .dialog-close{background:#13274e;color:#d3ddea}
html[data-theme="dark-blue"] .image-upload-button{background:#112244;border-color:#1a3468;color:#d3ddea}
html[data-theme="dark-blue"] .insight-empty,html[data-theme="dark-blue"] .stock-after,html[data-theme="dark-blue"] .order-item-note{color:#a5b8d4}

.status.cancelled{background:#faedeb;color:#b35b4f}
.status.cancelled::before{background:#cf776a}
.location-cell{min-width:120px}
.location-chip{display:inline-block;margin:0 4px 4px 0;padding:3px 8px;border-radius:12px;background:var(--green-soft);color:var(--green-dark);font-size:11px;white-space:nowrap}
.location-chip.muted{background:#f1f2ef;color:var(--muted)}
.location-row{grid-template-columns:1fr 90px 32px}
.flow{list-style:none;margin:12px 0 4px;padding:0 0 0 4px;display:grid;gap:10px}
.flow-step{display:flex;gap:10px;align-items:flex-start;font-size:12px}
.flow-step small{display:block;color:var(--muted);margin-top:2px}
.flow-dot{width:10px;height:10px;border-radius:50%;margin-top:3px;background:#58a277;flex:none}
.flow-step.wait .flow-dot{background:#fff;border:2px solid #d49a47}
.flow-step.stop .flow-dot{background:#cf776a}
.order-card.flash{animation:flash-card 2.5s ease}
@keyframes flash-card{0%,60%{box-shadow:0 0 0 3px var(--green)}100%{box-shadow:none}}
.notif-control{position:relative}
.notif-control .icon-button{position:relative;font-size:15px}
.notif-count{position:absolute;top:-5px;right:-5px;min-width:16px;height:16px;padding:0 4px;border-radius:8px;background:var(--red);color:#fff;font-size:10px;line-height:16px;text-align:center}
.notif-panel{position:absolute;right:0;top:40px;width:340px;max-height:420px;overflow:auto;background:var(--panel);border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 32px rgba(0,0,0,.14);z-index:30}
.notif-heading{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;border-bottom:1px solid var(--line)}
.notif-item{display:block;width:100%;text-align:left;padding:12px 14px;border:0;border-bottom:1px solid var(--line);background:transparent;color:inherit;font:inherit;font-size:13px;cursor:pointer}
.notif-item:hover{background:#f5f7f4}
.notif-item.unread{background:var(--green-soft)}
.notif-item small{display:block;margin-top:4px;color:var(--muted);font-size:11px}
.top-sales-panel{margin-bottom:18px}
.top-sales-panel .panel-heading{flex-wrap:wrap;gap:10px}
#top-sales-chart{display:grid;gap:10px;padding:6px 20px 20px}
.bar-row{display:grid;grid-template-columns:22px minmax(110px,220px) 1fr 48px;gap:10px;align-items:center;font-size:13px}
.bar-rank{color:var(--muted)}
.bar-track{height:14px;background:#eef1ed;border-radius:7px;overflow:hidden}
.bar-fill{height:100%;background:var(--green);border-radius:7px}
.bar-value{text-align:right}
.ver-button{white-space:nowrap}

.site-select-label{display:block;margin-top:8px;font-size:10px;color:var(--muted)}
.site-select-label select{width:100%;margin-top:3px;padding:6px;border:1px solid var(--line);border-radius:7px;background:var(--panel);color:inherit;font:inherit;font-size:11px}
.site-avatar{width:36px;height:36px;border-radius:50%;object-fit:cover;flex:none;background:#cbd5e1}
.site-avatar.large{width:72px;height:72px}
.site-avatar.placeholder{display:inline-flex;align-items:center;justify-content:center;font-weight:700;color:#334155;font-size:20px}
.site-avatar.large.placeholder{font-size:30px}
.site-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:13px;margin-bottom:17px}
.site-profile{display:flex;flex-wrap:wrap;gap:13px;align-items:flex-start;padding:16px;background:var(--panel);border:1px solid var(--line);border-radius:12px}
.site-profile-body{flex:1;min-width:140px}
.site-profile-body h3{margin:6px 0 3px;font-size:15px}
.site-profile-body p{margin:3px 0;font-size:12px;color:var(--muted);line-height:1.45}
.site-profile-body .site-location{color:inherit}
.site-profile-body details{margin-top:5px;font-size:12px}
.site-profile-body summary{cursor:pointer;color:var(--green)}
.site-long{white-space:pre-wrap}
.site-profile-edit{display:flex;align-items:center;gap:14px;margin-bottom:12px}
.site-profile-edit .image-remove-button{display:block;margin-top:6px}
html[data-theme="dark-blue"] .site-profile{background:#0f1522;border-color:#102040}
.general-hidden{display:none!important}
.site-profile .mini-button{margin-left:6px}

html[data-theme="dark-blue"]{--green:#4990fa;--green-dark:#5698fb;--green-soft:#101f3f;--muted:#9cb1d0;--line:#102040;--panel:#0b101a}
html[data-theme="dark-blue"] .notice.success{background:#102040;color:#c7d4e4;border-color:#193365}
html[data-theme="dark-blue"] .notice.error{background:#432a25;color:#f0b8a8;border-color:#6b3f35}
html[data-theme="dark-blue"] .site-select-label select,html[data-theme="dark-blue"] .app-dialog textarea{background:#0b172e;color:#eef3fb;border-color:#142850}
html[data-theme="dark-blue"] .site-profile-body summary{color:#5698fb}
html[data-theme="dark-blue"] .site-avatar.placeholder{background:#172f5e;color:#d3ddea}
html[data-theme="dark-blue"] .auth-notice{background:#432a25;border-color:#6b3f35;color:#f0b8a8}
html[data-theme="dark-blue"] .auth-notice.info{background:#0f1c36;border-color:#1d3a6e;color:#c7d6ee}

html[data-theme="gray"]{--green:#3d3d3d;--green-dark:#222;--green-soft:#d4d4d4;--muted:#666;--line:#b5b5b5;--panel:#ebebeb;background:#c9c9c9;color:#1e1e1e}
html[data-theme="gray"] body{background:#c9c9c9;color:#1e1e1e}
html[data-theme="gray"] .sidebar{background:#dcdcdc;border-color:#b0b0b0}
html[data-theme="gray"] .panel,html[data-theme="gray"] .metric-card,html[data-theme="gray"] .app-dialog,html[data-theme="gray"] .catalog-card,html[data-theme="gray"] .order-card,html[data-theme="gray"] .site-profile,html[data-theme="gray"] .auth-card,html[data-theme="gray"] .account-menu,html[data-theme="gray"] .notif-panel{background:#ebebeb;border-color:#b5b5b5}
html[data-theme="gray"] th{background:#d2d2d2;color:#333;border-color:#b5b5b5}
html[data-theme="gray"] td{border-color:#c4c4c4}
html[data-theme="gray"] .site-card,html[data-theme="gray"] .order-card-heading,html[data-theme="gray"] .review-lines,html[data-theme="gray"] .review-order-summary>div,html[data-theme="gray"] .order-status-tabs{background:#d8d8d8;border-color:#b5b5b5}
html[data-theme="gray"] .nav-item.active{background:#3d3d3d;color:#f2f2f2}
html[data-theme="gray"] .nav-item:hover{background:#cdcdcd}
html[data-theme="gray"] .button-primary{background:#3d3d3d;color:#fff}
html[data-theme="gray"] .button-primary:hover{background:#262626}
html[data-theme="gray"] .mini-button,html[data-theme="gray"] .button-quiet,html[data-theme="gray"] .search-box,html[data-theme="gray"] .app-dialog input,html[data-theme="gray"] .app-dialog select,html[data-theme="gray"] .app-dialog textarea{background:#f5f5f5;border-color:#aaa;color:#1e1e1e}
html[data-theme="gray"] .metric-icon,html[data-theme="gray"] .panel-icon,html[data-theme="gray"] .avatar{background:#bdbdbd;color:#2a2a2a}
html[data-theme="gray"] .status{background:#cfcfcf;color:#2a2a2a}
html[data-theme="gray"] .status.warning{background:#b8b8b8;color:#1e1e1e}
html[data-theme="gray"] .status.critical,html[data-theme="gray"] .status.cancelled{background:#8c8c8c;color:#fff}
html[data-theme="gray"] .demo-banner,html[data-theme="gray"] .role-info,html[data-theme="gray"] .notification-banner{background:#d6d6d6;border-color:#b0b0b0;color:#2a2a2a}
.dialog-notice .notice{margin:0 0 12px;font-size:12px;position:sticky;top:0;z-index:2}
.sidebar{overflow-y:auto;overflow-x:hidden}
.brand{margin-bottom:clamp(14px,4vh,49px)}
.settings-link{margin-bottom:clamp(6px,2vh,19px)}
.sidebar-bottom{padding-top:10px}
.site-card{margin-bottom:8px}

html[data-theme="dark-blue"]{--green:#5698fb;--green-dark:#5698fb;--green-soft:#0d1a34;--muted:#9cb1d0;--line:#102040;--panel:#0b101a;--red:#e08a7a;--amber:#5698fb}
html[data-theme="dark-blue"] .brand-mark{background:#204182;color:#eef3fb}
html[data-theme="dark-blue"] .nav-label,html[data-theme="dark-blue"] .eyebrow,html[data-theme="dark-blue"] .breadcrumb,html[data-theme="dark-blue"] .crumb-separator,html[data-theme="dark-blue"] .model-code,html[data-theme="dark-blue"] .metric-note,html[data-theme="dark-blue"] .panel-heading p,html[data-theme="dark-blue"] .today-label{color:#9cb1d0}
html[data-theme="dark-blue"] .text-button,html[data-theme="dark-blue"] .account-menu-item[aria-current="true"]{color:#5698fb}
html[data-theme="dark-blue"] .model-thumb{color:#5698fb}
html[data-theme="dark-blue"] .site-dot,html[data-theme="dark-blue"] .insight-dot,html[data-theme="dark-blue"] .status::before,html[data-theme="dark-blue"] .flow-dot{background:#5698fb}
html[data-theme="dark-blue"] .flow-step.wait .flow-dot{background:#0b101a}
html[data-theme="dark-blue"] .flow-step.stop .flow-dot{background:#e08a7a}
html[data-theme="dark-blue"] .status.cancelled{background:#402c2a;color:#edb2a8}
html[data-theme="dark-blue"] .location-chip{background:#0f1e3b;color:#5698fb}
html[data-theme="dark-blue"] .location-chip.muted{background:#0b172e;color:#9cb1d0}
html[data-theme="dark-blue"] .notif-item:hover{background:#0d1b35}
html[data-theme="dark-blue"] .notif-item.unread{background:#0d1a34}
html[data-theme="dark-blue"] .bar-track{background:#0b172e}
html[data-theme="dark-blue"] .bar-fill{background:#3684fa}
html[data-theme="dark-blue"] .icon-button{color:#dde5ef}
html[data-theme="dark-blue"] .nav-item{color:#d4deea}
html[data-theme="dark-blue"] .nav-item.active{background:#162c58;color:#eef3fb}
html[data-theme="dark-blue"] .nav-item:hover{background:#0d1b35;color:#eef3fb}
html[data-theme="dark-blue"] .demo-icon{border-color:#5478ad}
html[data-theme="dark-blue"] .demo-banner button{color:#b6c6dc}
html[data-theme="dark-blue"] td{color:#cfd9e8}
html[data-theme="dark-blue"] .auth-notice{background:#432a25;border-color:#6b3f35;color:#f4c0b2}

html[data-theme="gray"]{--green:#3a3a3a;--green-dark:#1f1f1f;--green-soft:#d4d4d4;--muted:#5f5f5f;--line:#b5b5b5;--panel:#ececec;--red:#555;--amber:#777;color:#1c1c1c}
html[data-theme="gray"] .brand-mark{background:#3a3a3a;color:#f2f2f2}
html[data-theme="gray"] :is(.nav-label,.eyebrow,.breadcrumb,.model-code,.metric-note,.panel-heading p,.today-label,.page-subtitle){color:#5a5a5a}
html[data-theme="gray"] :is(h1,.breadcrumb strong,.model-title,.number-cell,.panel-heading h2){color:#1c1c1c}
html[data-theme="gray"] td{color:#2e2e2e}
html[data-theme="gray"] .text-button,html[data-theme="gray"] .nav-item{color:#3a3a3a}
html[data-theme="gray"] .nav-item.active{color:#f5f5f5}
html[data-theme="gray"] .site-dot,html[data-theme="gray"] .insight-dot,html[data-theme="gray"] .status::before,html[data-theme="gray"] .flow-dot{background:#5a5a5a}
html[data-theme="gray"] .status.warning::before{background:#888}
html[data-theme="gray"] .status.critical::before,html[data-theme="gray"] .status.cancelled::before{background:#444}
html[data-theme="gray"] .status.warning,html[data-theme="gray"] .status.critical,html[data-theme="gray"] .status.cancelled{color:#1c1c1c}
html[data-theme="gray"] .status.critical,html[data-theme="gray"] .status.cancelled{background:#b0b0b0}
html[data-theme="gray"] .location-chip{background:#d0d0d0;color:#2a2a2a}
html[data-theme="gray"] .location-chip.muted{background:#dedede;color:#666}
html[data-theme="gray"] .model-thumb{background:#d0d0d0;color:#333}
html[data-theme="gray"] .notif-item:hover{background:#dcdcdc}
html[data-theme="gray"] .notif-item.unread{background:#d6d6d6}
html[data-theme="gray"] .bar-track{background:#d2d2d2}
html[data-theme="gray"] .bar-fill{background:#6b87a5}
html[data-theme="gray"] .notice.success{background:#dedede;color:#222;border-color:#aaa}
html[data-theme="gray"] .notice.error,html[data-theme="gray"] .auth-notice{background:#d0d0d0;color:#222;border-color:#999}
html[data-theme="gray"] .auth-screen,html[data-theme="gray"] .main-content{background:#c9c9c9}
html[data-theme="gray"] .auth-card input,html[data-theme="gray"] .icon-button{background:#f5f5f5;border-color:#aaa;color:#1e1e1e}
html[data-theme="gray"] .brand,html[data-theme="gray"] .auth-card h1,html[data-theme="gray"] .auth-card h2{color:#1c1c1c}
html[data-theme="dark-blue"] .sidebar,html[data-theme="dark-blue"] .panel,html[data-theme="dark-blue"] .metric-card,html[data-theme="dark-blue"] .app-dialog,html[data-theme="dark-blue"] .site-card,html[data-theme="dark-blue"] .order-card{border-color:#1c3a74}
html[data-theme="dark-blue"] .metric-value{color:#4f93ff}
html[data-theme="dark-blue"] .panel-heading h2{color:#6aa5ff}
html[data-theme="dark-blue"] .main-content{background:linear-gradient(180deg,#060912,#0a1222)}
html[data-theme="dark-blue"] th{background:#0f2147;color:#9fc0f5}
html[data-theme="dark"]{color-scheme:dark;background:#0b0b0b;color:#ccdaec}
html[data-theme="dark"] body{background:#0b0b0b;color:#ccdaec}
html[data-theme="dark"] .sidebar,html[data-theme="dark"] .panel,html[data-theme="dark"] .metric-card,html[data-theme="dark"] .app-dialog{background:#111111;color:#ccdaec;border-color:#242424}
html[data-theme="dark"] .topbar{border-color:#202020}
html[data-theme="dark"] .breadcrumb strong,html[data-theme="dark"] h1,html[data-theme="dark"] .panel-heading h2,html[data-theme="dark"] .model-title,html[data-theme="dark"] .brand,html[data-theme="dark"] .number-cell,html[data-theme="dark"] .review-lines h3{color:#ccdaec}
html[data-theme="dark"] .breadcrumb,html[data-theme="dark"] .today-label,html[data-theme="dark"] .page-subtitle,html[data-theme="dark"] .panel-heading p,html[data-theme="dark"] .metric-top,html[data-theme="dark"] .metric-note,html[data-theme="dark"] td,html[data-theme="dark"] .replenish-meta,html[data-theme="dark"] .order-date,html[data-theme="dark"] .main-footer,html[data-theme="dark"] .role-switch{color:#bababa}
html[data-theme="dark"] th{background:#151515;color:#bebebe;border-color:#242424}
html[data-theme="dark"] td,html[data-theme="dark"] .activity-row,html[data-theme="dark"] .replenish-item,html[data-theme="dark"] .insight-foot,html[data-theme="dark"] .order-card-footer{border-color:#202020}
html[data-theme="dark"] .site-card,html[data-theme="dark"] .order-card,html[data-theme="dark"] .order-card-heading,html[data-theme="dark"] .review-lines,html[data-theme="dark"] .review-order-summary>div,html[data-theme="dark"] .image-picker,html[data-theme="dark"] .image-preview{background:#161616;border-color:#242424}
html[data-theme="dark"] .nav-item{color:#b4b4b4}
html[data-theme="dark"] .nav-item:hover{background:#1e1e1e;color:#b8b8b8}
html[data-theme="dark"] .nav-item.active{background:#1d314c;color:#c8c8c8}
html[data-theme="dark"] .brand small,html[data-theme="dark"] .sidebar-foot{color:#a4a4a4}
html[data-theme="dark"] .icon-button,html[data-theme="dark"] .mini-button,html[data-theme="dark"] .button-quiet,html[data-theme="dark"] .search-box,html[data-theme="dark"] .search-box input,html[data-theme="dark"] .role-switch select,html[data-theme="dark"] .app-dialog input,html[data-theme="dark"] .app-dialog select,html[data-theme="dark"] .order-line select,html[data-theme="dark"] .order-line input{background:#1a1a1a;color:#ccdaec;border-color:#2d2d2d}
html[data-theme="dark"] .search-box input::placeholder{color:#a4a4a4}
html[data-theme="dark"] .avatar{background:#223b5b;color:#cecece}
html[data-theme="dark"] .button-primary{background:#277dee;color:#fff}
html[data-theme="dark"] .button-primary:hover{background:#4790f0}
html[data-theme="dark"] .model-thumb{background:#192b43}
html[data-theme="dark"] .demo-banner,html[data-theme="dark"] .role-info,html[data-theme="dark"] .notification-banner{background:#242424;border-color:#1f3552;color:#c0c0c0}
html[data-theme="dark"] .demo-banner strong,html[data-theme="dark"] .role-info strong{color:#d0d0d0}
html[data-theme="dark"] .order-item-row,html[data-theme="dark"] .review-line{border-color:#242424;color:#cfcfcf}
html[data-theme="dark"] .review-order-summary span,html[data-theme="dark"] .review-order-summary strong{color:#c9c9c9}
html[data-theme="dark"] .form-hint,html[data-theme="dark"] .image-picker-controls small{color:#b5b5b5}
html[data-theme="dark"] .app-dialog label,html[data-theme="dark"] .dialog-copy,html[data-theme="dark"] .available-note{color:#c9c9c9}
html[data-theme="dark"] .notification-banner span{color:#b5b5b5}
html[data-theme="dark"] .order-card-heading{border-color:#242424}
html[data-theme="dark"] .review-info,html[data-theme="dark"] .order-preview-note{background:#242424;border-color:#1e334f;color:#aaaaaa}
html[data-theme="dark"] .catalog-card{background:#111111;border-color:#242424}
html[data-theme="dark"] .catalog-card-image,html[data-theme="dark"] .catalog-image-preview-wrap img{background:#fff}
html[data-theme="dark"] .catalog-card h2{color:#ccdaec}
html[data-theme="dark"] .catalog-variants{color:#bababa}
html[data-theme="dark"] .catalog-variants strong{color:#cfcfcf}
html[data-theme="dark"] .catalog-filter-label{color:#bababa}
html[data-theme="dark"] .catalog-filter-label select{background:#1a1a1a;color:#ccdaec;border-color:#2d2d2d}
html[data-theme="dark"] .catalog-image-preview-wrap{background:#161616;border-color:#242424}
html[data-theme="dark"] .catalog-image-preview-wrap small{color:#b5b5b5}
html[data-theme="dark"] .auth-screen{background:#0b0b0b}
html[data-theme="dark"] .auth-card{background:#111111;border-color:#242424}
html[data-theme="dark"] .auth-card h1,html[data-theme="dark"] .auth-card h2{color:#ccdaec}
html[data-theme="dark"] .auth-description,html[data-theme="dark"] .auth-card form p,html[data-theme="dark"] .auth-footnote{color:#bababa}
html[data-theme="dark"] .auth-card label{color:#c9c9c9}
html[data-theme="dark"] .auth-card input{background:#1a1a1a;color:#ccdaec;border-color:#2d2d2d}
html[data-theme="dark"] .auth-footnote{border-color:#242424}
html[data-theme="dark"] .account-menu{background:#111111;border-color:#242424}
html[data-theme="dark"] .account-menu>strong{color:#ccdaec}
html[data-theme="dark"] .account-menu-item,html[data-theme="dark"] .account-menu-signout{color:#bccee6}
html[data-theme="dark"] .account-menu-item:hover,html[data-theme="dark"] .account-menu-signout:hover{background:#222222}
html[data-theme="dark"] .account-menu-signout{border-color:#222222;color:#edb2a8}
html[data-theme="dark"] .order-status-tabs{background:#161616;border-color:#242424}
html[data-theme="dark"] .order-status-tab{color:#bababa}
html[data-theme="dark"] .order-status-tab.active{background:#1a2d45;color:#c8c8c8}
html[data-theme="dark"] .order-status-tab span{background:#242424;color:#cfcfcf}
html[data-theme="dark"] .order-status-tab.active span{background:#1d314c;color:#c8c8c8}
html[data-theme="dark"] .orders-month-filter{color:#bababa}
html[data-theme="dark"] .orders-month-filter select{background:#1a1a1a;color:#ccdaec;border-color:#2d2d2d}
html[data-theme="dark"] .review-success{background:#242424;border-color:#1f3552;color:#bbbbbb}
html[data-theme="dark"] .review-alert{background:#3a3023;border-color:#5c4a32;color:#e4c994}
html[data-theme="dark"] .substitution-notice{background:#373329;border-color:#554c37;color:#dfd1a8}
html[data-theme="dark"] .status{background:#192b43;color:#c0c0c0}
html[data-theme="dark"] .status.warning{background:#3b3325;color:#e6c485}
html[data-theme="dark"] .status.critical{background:#402c2a;color:#edb2a8}
html[data-theme="dark"] .metric-icon,html[data-theme="dark"] .panel-icon{background:#192b43;color:#b4b4b4}
html[data-theme="dark"] .dialog-close{background:#2c2c2c;color:#c8c8c8}
html[data-theme="dark"] .image-upload-button{background:#262626;border-color:#203755;color:#c8c8c8}
html[data-theme="dark"] .insight-empty,html[data-theme="dark"] .stock-after,html[data-theme="dark"] .order-item-note{color:#aaaaaa}
html[data-theme="dark"] .site-profile{background:#161616;border-color:#242424}
html[data-theme="dark"]{--green:#78aef4;--green-dark:#85b6f5;--green-soft:#242424;--muted:#a4a4a4;--line:#242424;--panel:#111111}
html[data-theme="dark"] .notice.success{background:#242424;color:#c0c0c0;border-color:#1f3552}
html[data-theme="dark"] .notice.error{background:#432a25;color:#f0b8a8;border-color:#6b3f35}
html[data-theme="dark"] .site-select-label select,html[data-theme="dark"] .app-dialog textarea{background:#1a1a1a;color:#ccdaec;border-color:#2d2d2d}
html[data-theme="dark"] .site-profile-body summary{color:#85b6f5}
html[data-theme="dark"] .site-avatar.placeholder{background:#1d314c;color:#c8c8c8}
html[data-theme="dark"] .auth-notice{background:#432a25;border-color:#6b3f35;color:#f0b8a8}
html[data-theme="dark"] .auth-notice.info{background:#1f1f1f;border-color:#223b5b;color:#aac1df}
html[data-theme="dark"]{--green:#85b6f5;--green-dark:#85b6f5;--green-soft:#1d1d1d;--muted:#a4a4a4;--line:#242424;--panel:#111111;--red:#f0786a;--amber:#85b6f5}
html[data-theme="dark"] .brand-mark{background:#28456a;color:#ccdaec}
html[data-theme="dark"] .nav-label,html[data-theme="dark"] .eyebrow,html[data-theme="dark"] .breadcrumb,html[data-theme="dark"] .crumb-separator,html[data-theme="dark"] .model-code,html[data-theme="dark"] .metric-note,html[data-theme="dark"] .panel-heading p,html[data-theme="dark"] .today-label{color:#a4a4a4}
html[data-theme="dark"] .text-button,html[data-theme="dark"] .account-menu-item[aria-current="true"]{color:#85b6f5}
html[data-theme="dark"] .model-thumb{color:#85b6f5}
html[data-theme="dark"] .site-dot,html[data-theme="dark"] .insight-dot,html[data-theme="dark"] .status::before,html[data-theme="dark"] .flow-dot{background:#85b6f5}
html[data-theme="dark"] .flow-step.wait .flow-dot{background:#111111}
html[data-theme="dark"] .flow-step.stop .flow-dot{background:#f0786a}
html[data-theme="dark"] .status.cancelled{background:#402c2a;color:#edb2a8}
html[data-theme="dark"] .location-chip{background:#212121;color:#85b6f5}
html[data-theme="dark"] .location-chip.muted{background:#1a1a1a;color:#a4a4a4}
html[data-theme="dark"] .notif-item:hover{background:#1e1e1e}
html[data-theme="dark"] .notif-item.unread{background:#1d1d1d}
html[data-theme="dark"] .bar-track{background:#1a1a1a}
html[data-theme="dark"] .bar-fill{background:#66a3f3}
html[data-theme="dark"] .icon-button{color:#cfcfcf}
html[data-theme="dark"] .nav-item{color:#c9c9c9}
html[data-theme="dark"] .nav-item.active{background:#1b2e48;color:#ccdaec}
html[data-theme="dark"] .nav-item:hover{background:#1e1e1e;color:#ccdaec}
html[data-theme="dark"] .demo-icon{border-color:#747474}
html[data-theme="dark"] .demo-banner button{color:#b5b5b5}
html[data-theme="dark"] td{color:#c6c6c6}
html[data-theme="dark"] .auth-notice{background:#432a25;border-color:#6b3f35;color:#f4c0b2}
html[data-theme="dark"] .sidebar,html[data-theme="dark"] .panel,html[data-theme="dark"] .metric-card,html[data-theme="dark"] .app-dialog,html[data-theme="dark"] .site-card,html[data-theme="dark"] .order-card{border-color:#243d5e}
html[data-theme="dark"] .metric-value{color:#82b4f5}
html[data-theme="dark"] .panel-heading h2{color:#89b8f5}
html[data-theme="dark"] .main-content{background:linear-gradient(180deg,#0b0b0b,#141414)}
html[data-theme="dark"] th{background:#272727;color:#89b8f5}
html[data-theme="dark"],html[data-theme="dark-blue"]{--blue:#4d9bff;--ok:#34d399;--warn:#f5a524;--bad:#f0645a}
html[data-theme="dark"]{--green:#4d9bff;--green-dark:#7ab6ff;--amber:#f5a524;--red:#f0645a}
html[data-theme="dark"] .button-primary,html[data-theme="dark-blue"] .button-primary{background:linear-gradient(135deg,#3b8bff,#1f5fd6);box-shadow:0 4px 14px rgba(59,139,255,.35);border:0}
html[data-theme="dark"] .button-primary:hover,html[data-theme="dark-blue"] .button-primary:hover{background:linear-gradient(135deg,#5aa0ff,#2a6fe8)}
html[data-theme="dark"] .brand-mark,html[data-theme="dark-blue"] .brand-mark{background:linear-gradient(135deg,#4d9bff,#1f5fd6);color:#fff;box-shadow:0 4px 14px rgba(59,139,255,.35)}
html[data-theme="dark"] .nav-item.active,html[data-theme="dark-blue"] .nav-item.active{background:linear-gradient(90deg,rgba(77,155,255,.28),rgba(77,155,255,.05));color:#fff;box-shadow:inset 3px 0 0 #4d9bff}
html[data-theme="dark"] .bar-fill,html[data-theme="dark-blue"] .bar-fill{background:linear-gradient(90deg,#1f5fd6,#5aa8ff)}
html[data-theme="dark"] .metric-value,html[data-theme="dark-blue"] .metric-value{color:#6db0ff}
html[data-theme="dark"] .status,html[data-theme="dark-blue"] .status{background:rgba(52,211,153,.14);color:#5be0b0}
html[data-theme="dark"] .status::before,html[data-theme="dark-blue"] .status::before{background:#34d399;box-shadow:0 0 8px #34d399}
html[data-theme="dark"] .status.warning,html[data-theme="dark-blue"] .status.warning{background:rgba(245,165,36,.15);color:#f7b955}
html[data-theme="dark"] .status.warning::before,html[data-theme="dark-blue"] .status.warning::before{background:#f5a524;box-shadow:0 0 8px #f5a524}
html[data-theme="dark"] .status.critical,html[data-theme="dark"] .status.cancelled,html[data-theme="dark-blue"] .status.critical,html[data-theme="dark-blue"] .status.cancelled{background:rgba(240,100,90,.15);color:#f78b82}
html[data-theme="dark"] .status.critical::before,html[data-theme="dark"] .status.cancelled::before,html[data-theme="dark-blue"] .status.critical::before,html[data-theme="dark-blue"] .status.cancelled::before{background:#f0645a;box-shadow:0 0 8px #f0645a}
html[data-theme="dark"] .flow-dot,html[data-theme="dark-blue"] .flow-dot{background:#34d399}
html[data-theme="dark"] .flow-step.wait .flow-dot,html[data-theme="dark-blue"] .flow-step.wait .flow-dot{background:#111;border-color:#f5a524}
html[data-theme="dark"] .flow-step.stop .flow-dot,html[data-theme="dark-blue"] .flow-step.stop .flow-dot{background:#f0645a}
html[data-theme="dark"] .panel,html[data-theme="dark"] .metric-card,html[data-theme="dark"] .site-card,html[data-theme="dark"] .order-card,html[data-theme="dark"] .catalog-card{background:linear-gradient(160deg,#181818,#0e0e0e);box-shadow:0 8px 24px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.04);border-color:#262626}
html[data-theme="dark-blue"] .panel,html[data-theme="dark-blue"] .metric-card,html[data-theme="dark-blue"] .site-card,html[data-theme="dark-blue"] .order-card,html[data-theme="dark-blue"] .catalog-card{background:linear-gradient(160deg,#0f1930,#090e1a);box-shadow:0 8px 24px rgba(0,0,0,.45),inset 0 1px 0 rgba(120,170,255,.06)}
html[data-theme="dark"] .sidebar{background:linear-gradient(180deg,#121212,#0a0a0a);border-color:#262626}
html[data-theme="dark-blue"] .sidebar{background:linear-gradient(180deg,#0d1730,#080c18)}
html[data-theme="dark"] .metric-card:hover,html[data-theme="dark-blue"] .metric-card:hover{transform:translateY(-2px);border-color:#2f6fd0}
html[data-theme="dark"] .metric-card,html[data-theme="dark-blue"] .metric-card,html[data-theme="dark"] .button,html[data-theme="dark-blue"] .button{transition:transform .2s,border-color .2s,box-shadow .2s,background .2s}
html[data-theme="dark"] .metric-icon,html[data-theme="dark"] .panel-icon,html[data-theme="dark-blue"] .metric-icon,html[data-theme="dark-blue"] .panel-icon{background:rgba(77,155,255,.15);color:#6db0ff}
html[data-theme="dark"] th,html[data-theme="dark-blue"] th{background:rgba(77,155,255,.08);color:#8fbfff}
html[data-theme="dark"] tbody tr:hover td,html[data-theme="dark-blue"] tbody tr:hover td{background:rgba(77,155,255,.06)}
html[data-theme="dark"] .text-button,html[data-theme="dark-blue"] .text-button{color:#6db0ff}
html[data-theme="dark"] .location-chip,html[data-theme="dark-blue"] .location-chip{background:rgba(77,155,255,.14);color:#8fbfff}
html[data-theme="dark"] .avatar,html[data-theme="dark-blue"] .avatar{background:linear-gradient(135deg,#4d9bff,#1f5fd6);color:#fff}.row-actions{white-space:nowrap;text-align:right}
.row-actions .mini-button{margin-left:6px}
#account-views .account-menu-item{margin-bottom:2px}
.toolbar-end{display:flex;align-items:center;gap:12px}
#theme-cycle{font-size:15px;margin-right:2px}
.order-mode-options{display:grid;gap:10px;margin-top:14px}
.order-mode-card{display:grid;gap:4px;text-align:left;padding:14px;border:1px solid var(--line);border-radius:10px;background:transparent;color:inherit;font:inherit;cursor:pointer;transition:border-color .2s,transform .2s}
.order-mode-card:hover{border-color:var(--green);transform:translateY(-1px)}
.order-mode-card strong{font-size:13px}
.order-mode-card span{font-size:11px;color:var(--muted);line-height:1.5}
.reserve-table-wrap{max-height:300px;overflow:auto;margin-top:12px;border:1px solid var(--line);border-radius:8px}
.cal-weekdays,.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}
.cal-weekdays{margin-top:10px;font-size:10px;color:var(--muted);text-align:center;font-weight:700}
.cal-cell{min-height:92px;border:1px solid var(--line);border-radius:8px;padding:5px;display:flex;flex-direction:column;gap:3px;min-width:0}
.cal-cell.other{opacity:.45}
.cal-cell.today{border-color:var(--green);box-shadow:0 0 0 1px var(--green) inset}
.cal-day{font-size:10px;font-weight:700;color:var(--muted)}
.cal-chip{display:block;font-size:9px;line-height:1.3;padding:2px 5px;border-radius:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cal-chip.ok{background:rgba(46,160,90,.18);color:#2e8f55}
.cal-chip.warn{background:rgba(230,150,30,.2);color:#b86e00}
.cal-chip.blue{background:rgba(60,130,230,.18);color:#2f6fd0}
.cal-chip.bad{background:rgba(220,60,60,.18);color:#c63a3a}
.cal-chip.muted{background:rgba(128,128,128,.15);color:var(--muted)}
.cal-more{font-size:9px;color:var(--muted)}
.cal-legend{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.cal-legend .cal-chip{display:inline-block}
.delivery-row{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:9px 0;border-bottom:1px solid var(--line);font-size:12px}
.delivery-line{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.delivery-warn{color:#c63a3a;font-weight:600}
.leadtime-row{display:grid;grid-template-columns:1.2fr 2fr 120px;gap:12px;align-items:center;padding:9px 0;border-bottom:1px solid var(--line);font-size:12px}
.leadtime-row input{width:100%}
@media(max-width:700px){.cal-cell{min-height:64px}.leadtime-row{grid-template-columns:1fr}}
td.row-actions{display:table-cell;vertical-align:middle;text-align:right;white-space:nowrap}
td.row-actions .mini-button:first-child{margin-left:0}
.table-wrap table{width:100%}
.table-wrap td,.table-wrap th{vertical-align:middle}
.committed-number{color:var(--warn,#b86e00);font-weight:700}
.committed-number{color:#e08a1e !important;font-weight:700}
.after-number{color:#2e9f5a !important;font-weight:700}
/* Espaciado entre bloques */
.page-section>*+*{margin-top:24px}
.page-section>.page-heading{margin-bottom:28px}
.page-section>.metric-grid{margin-bottom:0}
.page-section>.panel+.panel,.page-section>.metric-grid+.panel{margin-top:26px}
.page-section>.role-info,.page-section>.orders-toolbar{margin-top:20px;margin-bottom:0}
.metric-grid{gap:16px}
.metric-card{padding-bottom:16px}
.panel-heading{padding:20px 22px 18px;gap:16px}
.panel-heading p{line-height:1.5}
.order-card{margin:0 18px 18px}
.order-card-heading,.order-card-footer{padding:14px 18px}
.order-card>.order-note{margin:0;padding:10px 18px}
.order-items{padding:6px 0}
.table-wrap th,.table-wrap td{padding-top:14px;padding-bottom:14px}
.delivery-row{padding:12px 22px}
#delivery-list,#leadtime-body{padding:0 0 8px}
#leadtime-body .leadtime-row{padding:12px 22px}
#leadtime-actions{padding:14px 22px 20px;margin:0}
.cal-weekdays,.cal-grid{margin-left:22px;margin-right:22px}
.cal-grid{gap:6px}.cal-cell{padding:7px}
.cal-legend{padding:16px 22px 20px;margin:0}
.toolbar{margin-bottom:18px}
.dashboard-grid,.insight-panel{gap:18px}
.delivery-metrics{grid-template-columns:repeat(4,minmax(0,1fr));max-width:none}
@media(max-width:900px){.delivery-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
.danger-button{background:linear-gradient(135deg,#e25a4f,#b3362d) !important;color:#fff !important;border-color:transparent !important}
#site-delete-button{margin-right:auto}
