.ops-page{max-width:1680px;margin:0 auto}.ops-page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.ops-page-head h2{margin:0;font-size:22px}.ops-page-head p{margin:7px 0 0;color:#8b95a6;font-size:12px}.ops-actions{display:flex;align-items:center;gap:9px}.ops-actions button{margin:0}.secondary-btn{border:1px solid var(--line);border-radius:7px;background:#fff;color:#5e6a7e;padding:9px 14px;cursor:pointer}.ops-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:18px}.inventory-metrics{grid-template-columns:repeat(5,minmax(0,1fr))}.ops-metric{min-height:105px;padding:18px 20px;position:relative;overflow:hidden}.ops-metric:after{content:"";position:absolute;right:-22px;bottom:-28px;width:88px;height:88px;border-radius:50%;background:#f2f0ff}.ops-metric.warn:after{background:#fff5e4}.ops-metric.danger:after{background:#fff0ef}.ops-metric.good:after{background:#eaf8f2}.ops-metric>span,.ops-metric>strong,.ops-metric>small{display:block;position:relative;z-index:1}.ops-metric>span{color:#7e899b;font-size:12px}.ops-metric>strong{font-size:28px;margin:8px 0 4px}.ops-metric>small{color:#9aa3b1;font-size:10px}.ops-metric.warn>strong{color:#e59b31}.ops-metric.danger>strong{color:#ea5b5b}.ops-metric.good>strong{color:#25a775}.ops-metric.is-loading{background:linear-gradient(100deg,#fff,#f6f7fb,#fff);background-size:200% 100%;animation:ops-loading 1.3s linear infinite}@keyframes ops-loading{to{background-position:-200% 0}}
.device-ops-layout{display:grid;grid-template-columns:minmax(620px,1.45fr) minmax(360px,.85fr);gap:16px;align-items:stretch}.ops-table-card{padding:0;overflow:hidden}.ops-card-head{min-height:64px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid #eef0f5}.ops-card-head h3{margin:0;font-size:16px}.ops-card-head span{display:block;color:#929cad;font-size:10px;margin-top:5px}.ops-filter-row{display:flex;align-items:center;gap:9px;padding:13px 18px;border-bottom:1px solid #eef0f5}.ops-filter-row .input{min-width:230px;flex:1}.ops-filter-row .select{min-width:128px}.ops-table-wrap{overflow:auto}.ops-data-table{min-width:760px}.ops-data-table th{height:42px;padding:10px 14px}.ops-data-table td{height:62px;padding:11px 14px}.ops-data-table td strong{font-weight:650}.ops-select-row{cursor:pointer;transition:.15s}.ops-select-row:hover,.ops-select-row.selected{background:#f5f3ff}.ops-select-row.selected{box-shadow:inset 3px 0 var(--primary)}.ops-cell-note{display:block;color:#929cad;font-size:10px;margin-top:4px}.ops-table-footer{min-height:52px;display:flex;align-items:center;justify-content:flex-end;padding:0 18px;color:#8c96a7;font-size:11px;border-top:1px solid #eef0f5}.link-button{border:0;background:transparent;color:var(--primary);cursor:pointer;font-size:11px}.device-detail{padding:0;overflow:hidden}.device-detail-head{min-height:77px;display:flex;align-items:center;justify-content:space-between;padding:15px 19px;border-bottom:1px solid #eef0f5}.device-detail-head span{color:#929cad;font-size:10px}.device-detail-head h3{margin:5px 0 0;font-size:18px}.ops-detail-section{padding:17px 19px;border-bottom:1px solid #eef0f5}.ops-detail-section h4{font-size:13px;margin:0 0 13px}.ops-detail-list{display:grid;grid-template-columns:1fr 1fr;gap:12px 16px;margin:0}.ops-detail-list div{min-width:0}.ops-detail-list dt{color:#919bac;font-size:10px;margin-bottom:5px}.ops-detail-list dd{margin:0;color:#3d4a5e;font-size:11px;word-break:break-word}.text-good{color:#23a774!important}.text-danger{color:#e9565b!important}.ops-section-title{display:flex;align-items:center;justify-content:space-between}.ops-section-title span{color:#919bac;font-size:10px}.device-slot-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.device-slot{min-height:62px;display:flex;flex-direction:column;justify-content:center;border:1px solid #cfeadb;border-radius:8px;background:#f3fbf7;padding:8px}.device-slot strong{font-size:13px}.device-slot span{margin-top:3px;color:#3f8063;font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.device-slot small{margin-top:4px;color:#26a774;font-size:9px}.device-slot.warn{border-color:#f3d7aa;background:#fff8ec}.device-slot.warn span,.device-slot.warn small{color:#d78b24}.device-slot.danger{border-color:#efc0c0;background:#fff3f2}.device-slot.danger span,.device-slot.danger small{color:#dd5357}.slot-empty{grid-column:1/-1}.ops-detail-actions{display:grid;grid-template-columns:.85fr 1fr 1.25fr;gap:9px;padding:16px 19px}.ops-detail-actions button{margin:0}.danger-outline-btn{border:1px solid #efc5c5;border-radius:7px;background:#fff7f6;color:#d94f55;padding:9px 12px;cursor:pointer}.danger-outline-btn:hover{background:#fff0ef}.ops-detail-empty{min-height:560px;display:grid;place-content:center;text-align:center;color:#929cad}.ops-detail-empty>span{font-size:34px;color:#b8b0ff}.ops-detail-empty h3{margin:13px 0 6px;color:#445168}.ops-detail-empty p{margin:0;font-size:11px}.progress{height:4px;border-radius:4px;background:#eceef3;margin-top:6px;overflow:hidden}.progress i{display:block;height:100%;border-radius:4px;background:var(--primary)}
.ops-tabs{display:flex;align-items:center;gap:24px;margin:-3px 0 18px;border-bottom:1px solid #e4e7ed}.ops-tabs button{position:relative;border:0;background:transparent;color:#677286;padding:11px 2px 13px;cursor:pointer}.ops-tabs button.active{color:var(--primary);font-weight:700}.ops-tabs button.active:after{content:"";position:absolute;height:2px;left:0;right:0;bottom:-1px;background:var(--primary)}.ops-tabs b{display:inline-grid;place-items:center;min-width:19px;height:19px;border-radius:10px;background:#fff0ef;color:#e75859;font-size:9px;margin-left:4px}.inventory-overview-layout{display:grid;grid-template-columns:minmax(650px,1fr) 300px;gap:16px;margin-bottom:16px}.inventory-alert-panel{padding:0;overflow:hidden}.inventory-alert-card{margin:12px;border:1px solid #f2d6a9;border-radius:9px;background:#fffaf1;padding:12px}.inventory-alert-card.danger{border-color:#efc4c4;background:#fff5f4}.inventory-alert-card>div:first-child{display:flex;align-items:center;justify-content:space-between}.inventory-alert-card strong{font-size:12px}.inventory-alert-card p{margin:10px 0 5px;color:#69758a;font-size:11px}.inventory-alert-card small{color:#929cad;font-size:9px}.inventory-alert-card>div:last-child{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:11px}.inventory-alert-card button{border:1px solid #dcd8ff;border-radius:6px;background:#fff;color:var(--primary);padding:7px 4px;font-size:10px;cursor:pointer}.inventory-alert-card .primary-btn{border-color:var(--primary);background:var(--primary);color:#fff;margin:0}.inventory-flow-preview{margin-top:0}.inventory-flow-preview .table td,.inventory-flow-preview .table th{padding-left:18px;padding-right:18px}
.ops-modal-backdrop{position:fixed;inset:0;z-index:1300;display:grid;place-items:center;background:#17203370;padding:20px}.ops-modal{width:min(620px,100%);max-height:calc(100vh - 40px);overflow:auto;background:#fff;border-radius:14px;padding:22px;box-shadow:0 24px 70px #11182742}.ops-modal-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:18px}.ops-modal-head h3{margin:0;font-size:18px}.ops-modal-head p{margin:6px 0 0;color:#929cad;font-size:11px}.ops-modal-head button{border:0;background:transparent;color:#8d97a8;font-size:25px;cursor:pointer}.ops-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.ops-form-grid label{display:grid;gap:6px;color:#5f6c80;font-size:11px}.ops-form-grid label.full{grid-column:1/-1}.ops-form-grid input,.ops-form-grid select,.ops-form-grid textarea{width:100%;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--ink);padding:9px 10px;font:inherit;outline:0}.ops-form-grid input,.ops-form-grid select{height:40px}.ops-form-grid textarea{resize:vertical}.ops-form-grid input:focus,.ops-form-grid select:focus,.ops-form-grid textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px #6355e81a}.ops-form-error{min-height:22px;padding-top:7px;color:#d84f58;font-size:11px}.ops-modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:8px}.ops-modal-actions button{margin:0;border:1px solid var(--line);border-radius:7px;background:#fff;color:#657186;padding:9px 15px;cursor:pointer}.ops-modal-actions .primary-btn{border-color:var(--primary);background:var(--primary);color:#fff}
@media(max-width:1280px){.inventory-metrics{grid-template-columns:repeat(3,1fr)}.device-ops-layout,.inventory-overview-layout{grid-template-columns:1fr}.device-detail{min-height:auto}.ops-detail-empty{min-height:260px}.inventory-alert-panel [data-inventory-alert-cards]{display:grid;grid-template-columns:repeat(2,1fr)}}@media(max-width:850px){.ops-page-head{display:block}.ops-actions{margin-top:14px;flex-wrap:wrap}.ops-metrics,.inventory-metrics{grid-template-columns:repeat(2,1fr)}.ops-filter-row{align-items:stretch;flex-direction:column}.ops-filter-row .input,.ops-filter-row .select{width:100%;min-width:0}.device-slot-grid{grid-template-columns:repeat(3,1fr)}.inventory-alert-panel [data-inventory-alert-cards]{display:block}.ops-form-grid{grid-template-columns:1fr}.ops-form-grid label.full{grid-column:auto}}@media(max-width:540px){.ops-metrics,.inventory-metrics{grid-template-columns:1fr}.ops-tabs{overflow:auto;gap:18px}.ops-tabs button{white-space:nowrap}.device-slot-grid{grid-template-columns:repeat(2,1fr)}}
.ops-filter-reset,.ops-refresh-button{margin:0;white-space:nowrap}.ops-refresh-button{min-width:76px}.ops-refresh-button.is-refreshing{color:var(--primary);background:#f6f4ff}.device-runtime-cards{display:grid;grid-template-columns:1fr 1.35fr;gap:10px}.device-runtime-cards>div{min-height:82px;border:1px solid #edf0f5;border-radius:9px;background:#fafbfc;padding:12px}.device-runtime-cards span,.device-runtime-cards small{display:block;color:#929cad;font-size:10px}.device-runtime-cards strong{display:block;margin:8px 0 5px;font-size:16px}.device-runtime-cards>div:last-child strong{font-size:11px;color:#405068}.device-slot-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-bottom:12px}.device-slot-summary>div{border:1px solid #edf0f5;border-radius:8px;background:#fafbfc;padding:9px}.device-slot-summary span{display:block;color:#919bad;font-size:9px}.device-slot-summary strong{display:block;margin-top:5px;font-size:16px}.device-slot-summary .warn{background:#fff8ed;border-color:#f4dfba}.device-slot-summary .warn strong{color:#d9912f}.device-slot-summary .danger{background:#fff3f2;border-color:#f0cbcb}.device-slot-summary .danger strong{color:#dc5659}.device-slot.empty{border-color:#e4e7ed;background:#f7f8fa}.device-slot.empty span,.device-slot.empty small{color:#9ba4b2}.device-form-modal{width:min(720px,100%)}.ops-form-section{border:1px solid #eceef4;border-radius:10px;padding:15px;margin-bottom:13px}.ops-form-section-head{display:flex;align-items:flex-start;gap:10px;margin-bottom:13px}.ops-form-section-head>span{width:25px;height:25px;display:grid;place-items:center;border-radius:7px;background:#efedff;color:var(--primary);font-size:10px;font-weight:700}.ops-form-section-head h4{margin:1px 0 4px;font-size:13px}.ops-form-section-head p{margin:0;color:#929cad;font-size:10px}.ops-form-section input[readonly]{background:#f6f7f9;color:#7d8798;cursor:not-allowed}.ops-readonly-note{margin-top:11px;border-radius:7px;background:#f5f3ff;color:#7167a7;padding:9px 11px;font-size:10px;line-height:17px}.slot-config-modal{width:min(920px,100%)}.slot-config-note{display:flex;align-items:center;gap:11px;border:1px solid #dcd8ff;border-radius:8px;background:#f7f5ff;padding:11px 13px;margin-bottom:14px}.slot-config-note strong{color:var(--primary);font-size:11px;white-space:nowrap}.slot-config-note span{color:#716b8b;font-size:10px}.slot-config-head,.slot-config-row{display:grid;grid-template-columns:55px minmax(150px,1.5fr) 95px 120px 85px 60px;gap:10px;align-items:center}.slot-config-head{height:35px;padding:0 10px;background:#fafbfc;color:#818c9e;font-size:10px;border-radius:7px}.slot-config-list{max-height:450px;overflow:auto}.slot-config-row{min-height:58px;padding:8px 10px;border-bottom:1px solid #eef0f5}.slot-config-row>strong{font-size:12px}.slot-config-row>span{color:#667287;font-size:11px}.slot-config-row>input,.slot-threshold-input{height:36px;border:1px solid var(--line);border-radius:7px;background:#fff}.slot-config-row>input{width:100%;padding:0 9px;outline:0}.slot-threshold-input{display:flex;align-items:center;overflow:hidden}.slot-threshold-input input{width:100%;height:100%;min-width:0;border:0;outline:0;padding:0 7px}.slot-threshold-input b{padding-right:8px;color:#929cad;font-size:10px;font-weight:400}.slot-config-row>button{border:0;background:transparent;color:#d6545a;font-size:10px;cursor:pointer}.slot-config-empty{padding:45px 20px}.ops-modal-actions button:disabled{opacity:.5;cursor:not-allowed}@media(max-width:850px){.device-runtime-cards{grid-template-columns:1fr}.device-slot-summary{grid-template-columns:repeat(2,1fr)}.slot-config-head{display:none}.slot-config-row{grid-template-columns:42px 1fr 80px;gap:8px}.slot-config-row>span,.slot-config-row>.status{display:none}.slot-config-row>button{grid-column:3}.slot-threshold-input{grid-column:2}}
.inventory-summary-table{min-width:1040px}.inventory-inline-actions{display:flex;gap:7px}.inventory-inline-actions button{border:1px solid #dedafc;border-radius:6px;background:#f8f7ff;color:var(--primary);padding:7px 10px;font-size:10px;cursor:pointer}.inventory-flow-notice{margin:14px 18px 0;border:1px solid #f0d7a8;border-radius:8px;background:#fff9ee;color:#8e6a2d;padding:10px 12px;font-size:10px;line-height:17px}.ops-muted{color:#9aa3b1;font-size:10px}.inventory-operation-modal{width:min(700px,100%)}.inventory-operation-banner{display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:10px;border:1px solid #dcd8ff;border-radius:9px;background:#f7f5ff;padding:11px 13px;margin-bottom:16px}.inventory-operation-banner span{color:#8b84af;font-size:10px}.inventory-operation-banner strong{color:var(--primary);font-size:13px}.inventory-operation-banner small{justify-self:end;color:#7c759b;font-size:10px}.inventory-operation-banner.outbound{border-color:#f1d7b5;background:#fff9f0}.inventory-operation-banner.outbound strong{color:#d88c26}.inventory-operation-banner.adjust{border-color:#dbe1eb;background:#f8fafc}.inventory-operation-banner.adjust strong{color:#59687d}.approval-status-list{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0}.approval-status-list>div{border:1px solid #edf0f5;border-radius:8px;background:#fafbfc;padding:11px}.approval-status-list .full{grid-column:1/-1}.approval-status-list dt{color:#929cad;font-size:10px;margin-bottom:7px}.approval-status-list dd{margin:0;color:#46546a;font-size:11px}.inventory-alert-card button:disabled{opacity:.55;cursor:not-allowed}@media(max-width:850px){.inventory-inline-actions{flex-wrap:wrap}.inventory-operation-banner{grid-template-columns:1fr 1fr}.inventory-operation-banner small{grid-column:1/-1;justify-self:start}.approval-status-list{grid-template-columns:1fr}.approval-status-list .full{grid-column:auto}}
.device-delete-modal{width:min(560px,100%)}.device-delete-warning{display:grid;gap:7px;border:1px solid #efc5c5;border-radius:9px;background:#fff5f4;padding:13px 14px;margin-bottom:14px}.device-delete-warning strong{color:#d94f55;font-size:12px}.device-delete-warning span{color:#8a6265;font-size:10px;line-height:17px}.device-delete-summary{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin:0 0 15px}.device-delete-summary>div{border:1px solid #eceef3;border-radius:8px;background:#fafbfc;padding:10px}.device-delete-summary dt{color:#919bac;font-size:9px;margin-bottom:5px}.device-delete-summary dd{margin:0;color:#435066;font-size:11px;overflow-wrap:anywhere}.device-delete-confirm{display:grid;gap:7px;color:#5f6c80;font-size:11px}.device-delete-confirm strong{color:#d94f55}.device-delete-confirm input{height:40px;width:100%;border:1px solid var(--line);border-radius:7px;padding:0 10px;outline:0}.device-delete-confirm input:focus{border-color:#dd5a60;box-shadow:0 0 0 3px #dd5a6018}.ops-modal-actions .device-delete-submit{border-color:#d94f55;background:#d94f55;color:#fff}.ops-modal-actions .device-delete-submit:disabled{border-color:#e5e7eb;background:#e5e7eb;color:#9ca3af}@media(max-width:540px){.ops-detail-actions{grid-template-columns:1fr}.device-delete-summary{grid-template-columns:1fr}}

/* Inventory directory, QR identity and activation audit. */
.inventory-directory-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:16px;align-items:start}.inventory-directory-main{min-width:0}.inventory-org-panel{position:sticky;top:14px;min-height:590px;padding:0;overflow:hidden}.inventory-org-head{min-height:66px;display:flex;align-items:center;justify-content:space-between;padding:15px 16px;border-bottom:1px solid #eef0f5}.inventory-org-head h3{margin:0;font-size:16px}.inventory-org-head span{display:block;margin-top:5px;color:#929cad;font-size:10px}.inventory-org-head button{border:0;background:transparent;color:#7f8999;font-size:10px;cursor:pointer}.inventory-org-search{display:flex;align-items:center;gap:7px;margin:12px;border:1px solid #e4e7ed;border-radius:8px;background:#fff;padding:0 10px}.inventory-org-search span{color:#8994a6}.inventory-org-search input{width:100%;height:36px;border:0;outline:0;color:#435067;font-size:11px}.inventory-org-tree{max-height:460px;overflow:auto;padding:2px 8px 12px}.inventory-org-row{width:100%;min-height:48px;display:grid;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;gap:6px;border:0;border-radius:8px;background:transparent;color:#4f5c71;padding:6px 9px 6px calc(9px + var(--org-depth)*18px);text-align:left;cursor:pointer}.inventory-org-row:hover{background:#f8f7ff}.inventory-org-row.selected{background:#f1efff;color:var(--primary);box-shadow:inset 3px 0 var(--primary)}.inventory-org-toggle{color:#8994a6;font-size:15px}.inventory-org-toggle.leaf{font-size:9px}.inventory-org-node{min-width:0}.inventory-org-node strong,.inventory-org-node small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.inventory-org-node strong{font-size:11px}.inventory-org-node small{margin-top:4px;color:#929cad;font-size:9px}.inventory-org-row em{color:#7c86a0;font-size:10px;font-style:normal}.inventory-org-descendants{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;gap:8px;border-top:1px solid #eef0f5;background:#fff;padding:14px 16px;color:#657186;font-size:10px}.inventory-org-descendants input{accent-color:var(--primary)}.inventory-bottle-card{min-height:590px}.inventory-bottle-filters{flex-wrap:wrap}.inventory-bottle-filters .input{min-width:260px}.inventory-bottle-filters .select{min-width:135px}.inventory-bottle-table{min-width:1260px}.inventory-bottle-table td{height:66px}.inventory-qr-code{display:flex;align-items:center;gap:6px}.inventory-qr-code code{border:1px solid #e0e4ec;border-radius:6px;background:#fafbfc;color:#1f2a3c;padding:6px 8px;font:600 11px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.15px}.inventory-qr-code button{border:0;background:transparent;color:#7d8899;cursor:pointer;font-size:10px;padding:3px}.inventory-qr-code button:disabled{color:var(--primary)}.inventory-weight{min-width:116px}.inventory-weight>span{color:#425068;font-size:10px;white-space:nowrap}.inventory-weight>i{display:block;width:100%;height:4px;margin-top:7px;border-radius:4px;background:#e8ebf0;overflow:hidden}.inventory-weight>i>b{display:block;height:100%;border-radius:4px;background:#22b573}.inventory-weight>i>b.warn{background:#f0a12c}.inventory-weight>i>b.danger{background:#e75b60}.activation-badge{display:inline-flex;align-items:center;gap:6px;border:1px solid #caead8;border-radius:6px;background:#effaf4;color:#249c68;padding:5px 7px;white-space:nowrap}.activation-badge b{font-size:10px}.activation-badge small{font-size:8px}.activation-badge.never{border-color:#dde1e8;background:#f5f6f8;color:#7f8998}.activation-badge.remaining_one{border-color:#f2d5a7;background:#fff7e8;color:#d88720}.activation-badge.limit{border-color:#efc2c2;background:#fff1f0;color:#db5157}.inventory-table-footer{min-height:54px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid #eef0f5;padding:0 18px;color:#7f8999;font-size:10px}.inventory-table-footer>div{display:flex;align-items:center;gap:7px}.inventory-table-footer button{width:30px;height:30px;border:1px solid #e1e4eb;border-radius:7px;background:#fff;color:#687489;cursor:pointer}.inventory-table-footer button:disabled{opacity:.4;cursor:not-allowed}.inventory-table-footer b{min-width:30px;height:30px;display:grid;place-items:center;border:1px solid var(--primary);border-radius:7px;color:var(--primary)}.inventory-alert-pair b{color:#d98d27}.inventory-alert-pair em{color:#db5358;font-style:normal}.inventory-event-table{min-width:1120px}.inventory-event-note{max-width:230px;white-space:normal;word-break:break-word}.inventory-form-note{margin-top:13px;border:1px solid #dcd8ff;border-radius:8px;background:#f7f5ff;color:#70698f;padding:10px 12px;font-size:10px;line-height:17px}.inventory-detail-hero{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #e8eaf0;border-radius:10px;background:#fafbfc;padding:14px;margin-bottom:14px}.inventory-detail-hero>div span,.inventory-detail-hero>div strong{display:block}.inventory-detail-hero>div span{color:#929cad;font-size:9px}.inventory-detail-hero>div strong{margin-top:6px;font:700 15px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace}.inventory-detail-hero>div button{margin-top:7px;border:0;background:transparent;color:var(--primary);padding:0;font-size:9px;cursor:pointer}.inventory-audit-warning{display:grid;gap:5px;border:1px solid #f1d5a4;border-radius:8px;background:#fff8e9;padding:11px 12px;margin-bottom:13px}.inventory-audit-warning strong{color:#c97d18;font-size:10px}.inventory-audit-warning span{color:#896c43;font-size:9px;line-height:16px}.inventory-detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:0 0 16px}.inventory-detail-grid>div{border:1px solid #edf0f5;border-radius:8px;background:#fff;padding:10px}.inventory-detail-grid dt{color:#929cad;font-size:9px;margin-bottom:6px}.inventory-detail-grid dd{margin:0;color:#425067;font-size:10px}.inventory-activation-history{border:1px solid #edf0f5;border-radius:10px;padding:13px}.inventory-activation-history>div:first-child{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.inventory-activation-history h4{margin:0;font-size:12px}.inventory-activation-history>div:first-child span{color:#929cad;font-size:9px}.inventory-activation-history article{position:relative;display:grid;grid-template-columns:15px 1fr;gap:8px;padding:8px 0}.inventory-activation-history article:not(:last-child):before{content:"";position:absolute;left:5px;top:19px;bottom:-7px;width:1px;background:#dedbea}.inventory-activation-history article>i{width:11px;height:11px;border:3px solid #d8d3ff;border-radius:50%;background:var(--primary)}.inventory-activation-history article strong,.inventory-activation-history article span,.inventory-activation-history article small{display:block}.inventory-activation-history article strong{font-size:10px}.inventory-activation-history article span{margin-top:4px;color:#58657a;font-size:9px}.inventory-activation-history article small{margin-top:4px;color:#929cad;font-size:8px}.inventory-bottle-detail-modal{width:min(760px,100%)}
@media(max-width:1280px){.inventory-directory-layout{grid-template-columns:220px minmax(0,1fr)}.inventory-org-panel{position:relative;top:0}.inventory-detail-grid{grid-template-columns:1fr 1fr}}
@media(max-width:900px){.inventory-directory-layout{grid-template-columns:1fr}.inventory-org-panel{min-height:280px}.inventory-org-tree{max-height:220px}.inventory-org-descendants{position:static}.inventory-detail-grid{grid-template-columns:1fr}.inventory-bottle-filters .input,.inventory-bottle-filters .select,.inventory-bottle-filters .inventory-filter-search,.inventory-bottle-filters .inventory-filter-select{width:100%;min-width:0}}

/* Restrained ERP styling for inventory management. */
.inventory-ops-page{color:#172033}
.inventory-ops-page .ops-page-head{margin-bottom:14px}
.inventory-ops-page .ops-page-head h2{font-size:21px;letter-spacing:-.2px}
.inventory-ops-page .ops-page-head p{margin-top:6px;color:#7b8698}
.inventory-ops-page .ops-actions{gap:8px}
.inventory-ops-page .ops-actions button{min-height:36px;border-radius:6px;box-shadow:none;font-size:11px}
.inventory-ops-page .ops-tabs{gap:28px;margin-bottom:16px}
.inventory-ops-page .ops-tabs button{color:#647084;font-size:12px}
.inventory-ops-page .ops-tabs button.active{color:#4f46d8}
.inventory-ops-page .ops-tabs b{background:#fff0ef;color:#d95358}
.inventory-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;margin-bottom:16px;border:1px solid #dfe3ea;border-radius:7px;background:#fff;overflow:hidden}
.inventory-metrics .ops-metric{min-height:82px;padding:14px 20px;border:0;border-radius:0;background:#fff;box-shadow:none;overflow:visible}
.inventory-metrics .ops-metric:not(:first-child){border-left:1px solid #e2e5eb}
.inventory-metrics .ops-metric:after{display:none}
.inventory-metrics .ops-metric>span{color:#6f7b8e;font-size:11px}
.inventory-metrics .ops-metric>strong{margin:7px 0 2px;color:#172033;font-size:24px;line-height:1}
.inventory-metrics .ops-metric>small{color:#8e98a8;font-size:9px}
.inventory-metrics .ops-metric.warn>strong{color:#d48816}
.inventory-metrics .ops-metric.danger>strong{color:#d94f55}
.inventory-directory-layout{grid-template-columns:250px minmax(0,1fr);gap:14px}
.inventory-ops-page .card{border-color:#e0e4eb;border-radius:7px;box-shadow:none}
.inventory-org-panel{min-height:590px;background:#fff}
.inventory-org-head{min-height:62px;padding:13px 15px;border-color:#e6e9ef}
.inventory-org-head h3{font-size:15px;letter-spacing:-.1px}
.inventory-org-head span{color:#8691a3}
.inventory-org-head button{color:#687487}
.inventory-org-search{height:36px;margin:11px 10px;border-color:#dce1e8;border-radius:5px;padding:0 9px}
.inventory-org-search input{height:34px;font-size:11px}
.inventory-org-tree{padding:2px 8px 12px}
.inventory-org-row{min-height:44px;grid-template-columns:16px minmax(0,1fr) auto;gap:5px;border-radius:3px;color:#445064;padding:5px 9px 5px calc(9px + var(--org-depth)*17px)}
.inventory-org-row:hover{background:#f6f7f9}
.inventory-org-row.selected{background:#f1f2f5;color:#172033;box-shadow:inset 3px 0 #5a4ce6}
.inventory-org-row.selected .inventory-org-node strong{font-weight:700}
.inventory-org-toggle{color:#7d8797;font-size:13px}
.inventory-org-node strong{font-size:11px;font-weight:600}
.inventory-org-node small{margin-top:3px;color:#8b95a5;font-size:9px}
.inventory-org-row em{color:#8a94a5}
.inventory-org-descendants{border-color:#e6e9ef;padding:13px 15px;color:#586579}
.inventory-bottle-card{background:#fff}
.inventory-bottle-card .ops-card-head{min-height:62px;padding:0 16px}
.inventory-bottle-card .ops-card-head h3{font-size:15px}
.inventory-inline-actions{gap:6px}
.inventory-inline-actions button{border:1px solid #d9dee7;border-radius:5px;background:#fff;color:#4d596d;padding:7px 11px;font-size:10px}
.inventory-inline-actions button:hover{background:#f7f8fa}
.inventory-inline-actions button.primary{border-color:#5b4de6;background:#5b4de6;color:#fff}
.inventory-inline-actions button.primary:hover{background:#4e42cf}
.inventory-bottle-filters{gap:8px;padding:11px 16px;background:#fff}
.inventory-bottle-filters .input,.inventory-bottle-filters .select{height:36px;border-color:#dce1e8;border-radius:5px;background:#fff;color:#4d596b;font-size:11px}
.inventory-bottle-filters .input{min-width:300px}
.inventory-bottle-table{min-width:1200px}
.inventory-bottle-table thead th{height:40px;background:#f7f8fa;color:#546074;border-color:#dfe3ea;font-size:10px;font-weight:600;white-space:nowrap}
.inventory-bottle-table tbody td{height:56px;border-color:#e7eaf0;color:#303b4f;font-size:10px}
.inventory-bottle-table tbody tr:hover{background:#fafbfc}
.inventory-bottle-table tbody td:first-child strong{color:#111a2b;font-size:11px}
.inventory-qr-code{gap:5px}
.inventory-qr-code code{border-color:#dce1e8;border-radius:4px;background:#f8f9fb;color:#263247;padding:5px 7px;font-size:10px;font-weight:600}
.inventory-qr-code button{color:#7e8999;padding:2px}
.inventory-weight{min-width:110px}
.inventory-weight>span{color:#445166;font-size:9px}
.inventory-weight>i{height:3px;margin-top:6px;background:#e4e7ec}
.activation-badge{display:inline-flex;align-items:center;gap:6px;border:0;border-radius:0;background:transparent;color:#4a566a;padding:0;white-space:nowrap}
.activation-badge i,.inventory-status-mark i{width:6px;height:6px;flex:none;border-radius:50%;background:#1aaa70}
.activation-badge b{font-size:10px;font-weight:500}
.activation-badge.never{border:0;background:transparent;color:#7d8797}
.activation-badge.never i{background:#a5adb8}
.activation-badge.remaining_one{border:0;background:transparent;color:#b76f0c}
.activation-badge.remaining_one i{background:#d98b19}
.activation-badge.limit{border:0;background:transparent;color:#c9444a}
.activation-badge.limit i{background:#d94f55}
.inventory-status-mark{display:inline-flex;align-items:center;gap:6px;color:#3f4b5f;font-size:10px;white-space:nowrap}
.inventory-status-mark.in_stock i,.inventory-status-mark.installed i{background:#1aaa70}
.inventory-status-mark.low_stock i{background:#d98b19}
.inventory-status-mark.shortage i,.inventory-status-mark.empty i,.inventory-status-mark.discarded i{background:#d94f55}
.inventory-bottle-table .table-action{border:0;border-radius:0;background:transparent;color:#5146d8;padding:4px 5px;font-size:10px}
.inventory-bottle-table .table-action:hover{text-decoration:underline}
.inventory-table-footer{min-height:48px;border-color:#e4e7ed;padding:0 16px}
.inventory-table-footer button,.inventory-table-footer b{width:28px;min-width:28px;height:28px;border-radius:5px}
.inventory-table-footer b{border-color:#5b4de6;color:#5146d8}
.inventory-flow-notice{border-radius:5px;background:#fffaf1}
.inventory-form-note{border-color:#dfe3ea;border-radius:5px;background:#f7f8fa;color:#626d7d}
.inventory-detail-hero{border-radius:6px;background:#f8f9fb}
@media(max-width:1280px){.inventory-metrics{grid-template-columns:repeat(5,minmax(150px,1fr));overflow:auto}.inventory-metrics .ops-metric{min-width:150px}.inventory-directory-layout{grid-template-columns:220px minmax(0,1fr)}}
@media(max-width:900px){.inventory-metrics{grid-template-columns:repeat(5,160px)}.inventory-directory-layout{grid-template-columns:1fr}.inventory-bottle-filters .input{min-width:0}}

/* Inventory typography clarity: stronger contrast, native Windows hinting and tabular figures. */
.inventory-ops-page{font-family:var(--font-ui);-webkit-font-smoothing:subpixel-antialiased;text-rendering:optimizeLegibility;font-synthesis:none}
.inventory-ops-page h2,.inventory-ops-page h3,.inventory-ops-page strong,.inventory-ops-page button,.inventory-ops-page input,.inventory-ops-page select{font-family:inherit}
.inventory-ops-page h2,.inventory-ops-page h3{color:#111a2b;font-weight:700;text-shadow:0 1px 0 #fff;letter-spacing:-.15px}
.inventory-ops-page .ops-page-head p,.inventory-ops-page .ops-card-head span{font-size:11px;font-weight:500}
.inventory-ops-page .ops-tabs button{font-size:12px;font-weight:500}
.inventory-ops-page .ops-tabs button.active{font-weight:700}
.inventory-metrics .ops-metric>span{font-size:12px;font-weight:500;color:#59667a}
.inventory-metrics .ops-metric>strong{font-size:26px;font-weight:700;letter-spacing:-.35px;text-shadow:0 1px 0 #fff;font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1,"kern" 1}
.inventory-metrics .ops-metric>small{font-size:10px;font-weight:500;color:#7b8698}
.inventory-org-head h3{font-size:16px}
.inventory-org-node strong{font-size:12px;font-weight:600;color:#263247}
.inventory-org-node small,.inventory-org-row em{font-size:10px;font-weight:500}
.inventory-bottle-card .ops-card-head h3{font-size:16px}
.inventory-inline-actions button{font-size:11px;font-weight:600;line-height:1}
.inventory-bottle-filters .input,.inventory-bottle-filters .select{font-size:12px;font-weight:500}
.inventory-bottle-table thead th{font-size:11px;font-weight:600;color:#3e4a5e;letter-spacing:.02em}
.inventory-bottle-table tbody td{font-size:11px;font-weight:500;color:#273348;font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1,"kern" 1}
.inventory-bottle-table tbody td:first-child strong{font-size:12px;font-weight:700;text-shadow:0 1px 0 #fff}
.inventory-qr-code code{font-family:Consolas,"SFMono-Regular","Courier New",monospace;font-size:11px;font-weight:600;letter-spacing:.1px;text-rendering:geometricPrecision;font-variant-numeric:tabular-nums}
.inventory-weight>span,.activation-badge b,.inventory-status-mark{font-size:11px;font-weight:600;font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1}
.inventory-bottle-table .table-action{font-size:11px;font-weight:600}
.inventory-table-footer{font-size:11px;font-weight:500;font-variant-numeric:tabular-nums}

/* Match the organization-management tree icon and typography system. */
.inventory-org-panel{font-family:var(--font-ui)}
.inventory-org-row{min-height:54px;grid-template-columns:14px 29px minmax(0,1fr) auto;gap:8px;padding-top:7px;padding-bottom:7px;padding-left:calc(9px + var(--org-depth)*22px)}
.inventory-org-toggle{width:14px;display:inline-block;color:#717b8f;font-size:19px;line-height:12px;transform:rotate(0);transition:transform .2s}
.inventory-org-toggle.expanded{transform:rotate(90deg)}
.inventory-org-toggle.leaf{visibility:hidden}
.inventory-org-icon{width:29px;height:29px;display:grid;place-items:center;flex:none;border-radius:8px;background:#eef0ff;color:#6355e8;font-size:16px;font-weight:500}
.inventory-org-icon.chain{background:#eef8ff;color:#4b89e9}
.inventory-org-icon.store{background:#eefaf5;color:#27a778}
.inventory-org-icon.headquarters{background:currentColor!important;color:#2c2c2c!important;font-size:0!important;-webkit-mask:url("./assets/icons/organization-headquarters.svg?v=1") center/contain no-repeat;mask:url("./assets/icons/organization-headquarters.svg?v=1") center/contain no-repeat}
.inventory-org-node strong,.inventory-org-node small{display:block}
.inventory-org-node strong{color:#172033;font-size:13px;font-weight:700;line-height:16px}
.inventory-org-node small{margin-top:3px;color:#929bac;font-size:11px;font-weight:400;line-height:14px}
.inventory-org-row em{color:#8994a6;font-size:11px;font-weight:400}

/* Inventory filter sizing and dedicated dye selector. */
.inventory-bottle-filters .input{width:340px;max-width:360px;min-width:260px;flex:0 1 340px}
.inventory-bottle-filters .select{min-width:0;flex:0 0 145px}
.inventory-bottle-filters [data-inventory-dye]{flex-basis:135px}
.inventory-bottle-filters [data-inventory-activation]{flex-basis:150px}
.inventory-bottle-filters [data-inventory-device]{flex-basis:190px}
.inventory-bottle-filters [data-inventory-status]{flex-basis:140px}
@media(max-width:1100px){.inventory-bottle-filters .input{max-width:none;flex:1 1 300px}.inventory-bottle-filters .select{flex:1 1 140px}}
@media(max-width:900px){.inventory-bottle-filters .input,.inventory-bottle-filters .select{width:100%;max-width:none;min-width:0;flex:1 1 auto}}

/* Pagination sits in the filter toolbar on wide inventory screens. */
.inventory-toolbar-pagination{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin-left:auto;color:#687487;font-size:11px;font-weight:500;white-space:nowrap;font-variant-numeric:tabular-nums}
.inventory-toolbar-pagination>span:first-child{margin-right:5px;color:#7c8798}
.inventory-toolbar-pagination button,.inventory-toolbar-pagination b{width:28px;min-width:28px;height:28px;display:grid;place-items:center;border:1px solid #dfe3ea;border-radius:5px;background:#fff;color:#586579;font:inherit;cursor:pointer}
.inventory-toolbar-pagination b{border-color:#5b4de6;color:#5146d8;font-weight:700}
.inventory-toolbar-pagination button:disabled{opacity:.38;cursor:not-allowed}
@media(max-width:1380px){.inventory-toolbar-pagination{flex:1 1 100%;margin-left:0;padding-top:2px}}
@media(max-width:900px){.inventory-toolbar-pagination{width:100%;justify-content:flex-end}}

/* Device directory: organization-first layout with restrained operations styling. */
.device-ops-page{max-width:none;font-family:var(--font-ui);color:#1b2638;font-size:14px}
.device-page-bar{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:20px}
.device-page-title>span{display:block;margin-bottom:6px;color:#7f8998;font-size:12px;font-weight:600;letter-spacing:.06em}
.device-page-title h2{margin:0;color:#111a2b;font-size:26px;line-height:1.25;letter-spacing:-.3px}
.device-page-title p{margin:7px 0 0;color:#707b8d;font-size:13px}
.device-page-bar .ops-actions{padding-bottom:2px}.device-page-bar .ops-actions button{min-height:40px;border-radius:7px;padding:9px 17px;font-size:13px;font-weight:600}.device-page-bar .ops-actions .primary-btn{box-shadow:none}
.device-directory-layout{display:grid;grid-template-columns:250px minmax(620px,1fr) 400px;gap:16px;align-items:stretch}
.device-org-panel{position:sticky;top:14px;height:820px;min-height:820px;padding:0;overflow:hidden;border-radius:10px;box-shadow:none}
.device-org-head{min-height:72px;display:flex;align-items:center;justify-content:space-between;padding:16px 16px 15px;border-bottom:1px solid #e8ebf0}
.device-org-head h3{margin:0;color:#192337;font-size:16px}.device-org-head span{display:block;margin-top:6px;color:#7f899a;font-size:12px}.device-org-head span b{color:#4d596d;font-weight:650}
.device-org-head button{border:0;background:transparent;color:#657186;padding:6px 0;font-size:12px;cursor:pointer}.device-org-head button:hover{color:#4f46c8}
.device-org-search{height:42px;display:flex;align-items:center;gap:9px;margin:14px 13px 10px;border:1px solid #dfe3e9;border-radius:7px;background:#fff;padding:0 12px}
.device-org-search input,.device-list-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#263247;font:inherit;font-size:13px}.device-org-search input::placeholder,.device-list-search input::placeholder{color:#929cab}
.device-search-icon{position:relative;width:16px;height:16px;flex:none}.device-search-icon:before{content:"";position:absolute;left:1px;top:1px;width:9px;height:9px;border:1.5px solid #7e899a;border-radius:50%}.device-search-icon:after{content:"";position:absolute;width:6px;height:1.5px;left:10px;top:11px;background:#7e899a;transform:rotate(45deg);transform-origin:left center}
.device-org-tree{max-height:670px;overflow:auto;padding:3px 8px 44px}.device-org-row{width:100%;min-height:58px;display:grid;grid-template-columns:15px 32px minmax(0,1fr) auto;align-items:center;gap:9px;border:0;border-radius:7px;background:transparent;color:#435066;padding:7px 9px 7px calc(9px + var(--org-depth)*20px);text-align:left;cursor:pointer}.device-org-row:hover{background:#f6f7f9}.device-org-row.selected{background:#f0effb;color:#5147c9;box-shadow:inset 3px 0 #6355e8}
.device-org-toggle{width:15px;color:#6f7b8f;font-size:20px;line-height:14px;transform:rotate(0);transition:transform .15s}.device-org-toggle.expanded{transform:rotate(90deg)}.device-org-toggle.leaf{visibility:hidden}
.device-org-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:7px;background:#f0f1f7;color:#6355e8;font-size:16px}.device-org-icon.chain{background:#edf4fb;color:#4f7eb9}.device-org-icon.store,.device-org-icon.shop,.device-org-icon.room{background:#edf7f2;color:#2b936b}
.device-org-icon.headquarters{background:currentColor!important;color:#2c2c2c!important;font-size:0!important;-webkit-mask:url("./assets/icons/organization-headquarters.svg?v=1") center/contain no-repeat;mask:url("./assets/icons/organization-headquarters.svg?v=1") center/contain no-repeat}
.device-org-name{min-width:0}.device-org-name strong,.device-org-name small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.device-org-name strong{color:#273348;font-size:13px;font-weight:650;line-height:18px}.device-org-name small{margin-top:2px;color:#858fa0;font-size:11px;line-height:15px}.device-org-row em{color:#6f7a8d;font-size:12px;font-style:normal;font-variant-numeric:tabular-nums}
.device-directory-main{min-width:0}.device-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin-bottom:14px}.device-metrics .ops-metric{min-height:92px;border-radius:9px;box-shadow:none;padding:15px 17px}.device-metrics .ops-metric:after{display:none}.device-metrics .ops-metric:before{content:"";position:absolute;left:0;top:15px;bottom:15px;width:3px;border-radius:2px;background:#7d8798}.device-metrics .ops-metric.good:before{background:#2b9b70}.device-metrics .ops-metric.warn:before{background:#d9902e}.device-metrics .ops-metric.danger:before{background:#d95459}
.device-metrics .ops-metric>span{color:#59667a;font-size:12px;font-weight:550}.device-metrics .ops-metric>strong{margin:7px 0 4px;color:#1d293b;font-size:25px;line-height:1;font-weight:700;font-variant-numeric:tabular-nums}.device-metrics .ops-metric.good>strong{color:#21865f}.device-metrics .ops-metric.warn>strong{color:#be7720}.device-metrics .ops-metric.danger>strong{color:#c7494e}.device-metrics .ops-metric>small{color:#7f899a;font-size:11px}
.device-table-card{height:714px;min-height:714px;border-radius:10px;box-shadow:none}.device-table-card .ops-card-head{min-height:70px;padding:15px 18px}.device-table-card .ops-card-head h3{color:#172033;font-size:16px}.device-table-card .ops-card-head span{font-size:11px}
.device-filter-row{padding:12px 16px;background:#fafbfc}.device-list-search{height:40px;min-width:280px;flex:1;display:flex;align-items:center;gap:9px;border:1px solid #dfe3e9;border-radius:7px;background:#fff;padding:0 12px}.device-filter-row .select{width:132px;min-width:132px;height:40px;border-radius:7px;color:#435066;font-size:13px}.device-filter-reset{height:40px;border:0;background:transparent;color:#59667a;padding:0 7px;font-size:12px;cursor:pointer}.device-filter-reset:hover{color:#5147c9}
.device-table{min-width:760px}.device-table thead th{height:44px;background:#f7f8fa;color:#566175;padding:11px 14px;font-size:12px;font-weight:600}.device-table tbody td{height:66px;color:#2f3c51;padding:12px 14px;font-size:12px}.device-table tbody td:first-child strong{font-size:13px}.device-table .progress{height:4px;max-width:82px;margin-top:7px}.device-table-card .ops-select-row:hover{background:#f7f7fa}.device-table-card .ops-select-row.selected{background:#f1f0fb;box-shadow:inset 3px 0 #6355e8}.device-table-card .status{padding:4px 8px;font-size:11px}.device-table-card .ops-table-footer{min-height:52px;padding:0 17px;font-size:11px}
.device-ops-page .device-detail{position:sticky;top:14px;height:820px;min-height:820px;max-height:calc(100vh - 28px);overflow:auto;border-radius:10px;box-shadow:none}.device-ops-page .device-detail-head{min-height:78px;padding:16px 18px}.device-ops-page .device-detail-head>div>span{font-size:11px}.device-ops-page .device-detail-head h3{font-size:18px;line-height:1.35;word-break:break-all}.device-ops-page .device-detail-head>.status{font-size:11px}.device-ops-page .ops-detail-section{padding:18px}.device-ops-page .ops-detail-section h4{font-size:13px}.device-ops-page .ops-section-title span{font-size:11px}.device-ops-page .ops-detail-list{gap:14px 16px}.device-ops-page .ops-detail-list dt{font-size:11px}.device-ops-page .ops-detail-list dd{font-size:12px}.device-ops-page .ops-detail-list .status{font-size:11px}.device-ops-page .device-runtime-cards>div{min-height:86px;border-radius:7px;background:#f8f9fa;padding:12px}.device-ops-page .device-runtime-cards span,.device-ops-page .device-runtime-cards small{font-size:11px}.device-ops-page .device-runtime-cards strong{font-size:17px}.device-ops-page .device-runtime-cards>div:last-child strong{font-size:12px}.device-ops-page .device-slot-summary{gap:8px}.device-ops-page .device-slot-summary>div{border-radius:7px;background:#f8f9fa;padding:10px}.device-ops-page .device-slot-summary span{font-size:10px}.device-ops-page .device-slot-summary strong{font-size:18px}.device-ops-page .device-slot-summary .warn{background:#fffaf1}.device-ops-page .device-slot-summary .danger{background:#fff6f5}.device-ops-page .device-slot-grid{gap:9px}.device-ops-page .device-slot{min-height:68px;border-radius:7px;background:#fff;padding:9px;border-color:#d9e6df}.device-ops-page .device-slot strong{font-size:14px}.device-ops-page .device-slot span,.device-ops-page .device-slot small{font-size:10px}.device-ops-page .device-slot.warn{background:#fffaf2}.device-ops-page .device-slot.danger{background:#fff5f4}.device-ops-page .ops-detail-actions{gap:9px;padding:15px 18px}.device-ops-page .ops-detail-actions button{border-radius:7px;padding:10px 8px;font-size:12px}.device-ops-page .ops-detail-empty{min-height:820px}.device-ops-page .ops-detail-empty>span{position:relative;width:40px;height:32px;margin:0 auto;border:1px solid #cbd1da;border-radius:5px;color:transparent}.device-ops-page .ops-detail-empty>span:before,.device-ops-page .ops-detail-empty>span:after{content:"";position:absolute;left:9px;right:9px;height:1px;background:#cbd1da}.device-ops-page .ops-detail-empty>span:before{top:10px}.device-ops-page .ops-detail-empty>span:after{top:18px}.device-ops-page .ops-detail-empty h3{font-size:15px}.device-ops-page .ops-detail-empty p{font-size:12px}
@media(max-width:1450px){.device-directory-layout{grid-template-columns:230px minmax(0,1fr)}.device-org-panel{height:780px;min-height:780px}.device-table-card{height:674px;min-height:674px}.device-ops-page .device-detail{position:static;grid-column:2;height:auto;min-height:420px;max-height:none}.device-ops-page .ops-detail-empty{min-height:420px}}
@media(max-width:900px){.device-page-bar{align-items:flex-start;flex-direction:column}.device-directory-layout{grid-template-columns:1fr}.device-org-panel{position:relative;top:0;height:auto;min-height:340px}.device-org-tree{max-height:260px}.device-table-card{height:auto;min-height:620px}.device-ops-page .device-detail{grid-column:auto}.device-metrics{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.device-metrics{grid-template-columns:1fr 1fr}.device-filter-row{align-items:stretch}.device-list-search,.device-filter-row .select{width:100%;min-width:0}.device-ops-page .ops-detail-actions{grid-template-columns:1fr}}

/* Device workspace viewport fit: larger type without a desktop vertical scroller. */
.device-page-title>span{font-size:13px}.device-page-title h2{font-size:28px}.device-page-title p{font-size:14px}
.device-page-bar .ops-actions button{min-height:42px;padding:10px 18px;font-size:13px}
.device-directory-layout{height:calc(100vh - 258px);min-height:780px;grid-template-columns:260px minmax(600px,1fr) 420px;gap:18px}
.device-org-panel{height:100%;min-height:0}.device-org-head{min-height:74px;padding:17px}.device-org-head h3{font-size:17px}.device-org-head span,.device-org-head button{font-size:12px}.device-org-search{height:44px;margin:14px 14px 11px}.device-org-search input,.device-list-search input{font-size:13px}.device-org-tree{max-height:calc(100% - 178px)}.device-org-row{min-height:60px;grid-template-columns:16px 34px minmax(0,1fr) auto;gap:9px}.device-org-icon{width:34px;height:34px;font-size:17px}.device-org-name strong{font-size:14px;line-height:19px}.device-org-name small,.device-org-row em{font-size:12px}
.device-directory-main{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr)}.device-metrics{gap:12px;margin-bottom:16px}.device-metrics .ops-metric{min-height:96px;padding:16px 18px}.device-metrics .ops-metric>span{font-size:13px}.device-metrics .ops-metric>strong{font-size:27px}.device-metrics .ops-metric>small{font-size:12px}
.device-table-card{height:auto;min-height:0}.device-table-card .ops-card-head{min-height:72px;padding:16px 20px}.device-table-card .ops-card-head h3{font-size:18px}.device-table-card .ops-card-head span{font-size:12px}.device-filter-row{padding:13px 18px}.device-list-search,.device-filter-row .select,.device-filter-reset{height:42px}.device-filter-row .select{width:140px;min-width:140px;font-size:13px}.device-filter-reset{font-size:13px}.device-table thead th{height:46px;padding:12px 15px;font-size:13px}.device-table tbody td{height:70px;padding:13px 15px;font-size:13px}.device-table tbody td:first-child strong{font-size:14px}.device-table-card .status,.device-table-card .ops-table-footer{font-size:12px}
.device-ops-page .device-detail{display:flex;flex-direction:column;position:sticky;top:14px;height:100%;min-height:0;max-height:none;overflow:hidden}.device-ops-page .device-detail-head{min-height:70px;padding:14px 17px}.device-ops-page .device-detail-head h3{font-size:18px}.device-ops-page .ops-detail-section{padding:13px 17px}.device-ops-page .ops-detail-section h4{margin-bottom:10px;font-size:13px}.device-ops-page .ops-detail-list{gap:9px 14px}.device-ops-page .ops-detail-list dt{margin-bottom:4px;font-size:10px}.device-ops-page .ops-detail-list dd{font-size:12px;line-height:17px}.device-ops-page .device-runtime-cards{gap:9px}.device-ops-page .device-runtime-cards>div{min-height:76px;padding:10px}.device-ops-page .device-runtime-cards span,.device-ops-page .device-runtime-cards small{font-size:10px}.device-ops-page .device-runtime-cards strong{margin:6px 0 4px;font-size:16px}.device-ops-page .ops-detail-section:nth-of-type(3){flex:1;min-height:0}.device-ops-page .device-slot-summary{gap:7px;margin-bottom:9px}.device-ops-page .device-slot-summary>div{padding:8px}.device-ops-page .device-slot-summary span{font-size:9px}.device-ops-page .device-slot-summary strong{margin-top:4px;font-size:16px}.device-ops-page .device-slot-grid{gap:7px}.device-ops-page .device-slot{min-height:58px;padding:7px}.device-ops-page .device-slot strong{font-size:13px}.device-ops-page .device-slot span,.device-ops-page .device-slot small{margin-top:2px;font-size:9px;line-height:13px}.device-ops-page .ops-detail-actions{flex:none;gap:8px;padding:12px 17px}.device-ops-page .ops-detail-actions button{padding:9px 7px;font-size:12px}.device-ops-page .ops-detail-empty{min-height:0;height:100%}
@media(max-width:1400px){.device-directory-layout{height:auto;min-height:0;grid-template-columns:240px minmax(0,1fr)}.device-org-panel{height:760px;min-height:760px}.device-directory-main{height:760px}.device-ops-page .device-detail{position:static;grid-column:2;height:auto;min-height:540px;overflow:visible}.device-ops-page .ops-detail-empty{min-height:540px}}
@media(max-width:900px){.device-directory-layout{grid-template-columns:1fr}.device-org-panel,.device-directory-main{height:auto;min-height:0}.device-org-tree{max-height:280px}.device-table-card{min-height:620px}.device-ops-page .device-detail{grid-column:auto;min-height:540px}}

/* Shared store-management organization tree — applied to every module that
   scopes data by organization, so the hierarchy always feels like one system. */
.store-org-tree{display:flex;flex-direction:column;min-height:0;padding:16px!important;border:1px solid #edf0f5!important;border-radius:9px!important;box-shadow:0 2px 8px rgba(31,42,64,.035)!important;overflow:hidden}
.store-org-tree .store-org-tree-head{display:flex;flex:none;align-items:center;justify-content:space-between;min-height:0;margin:0 0 12px!important;padding:0!important;border:0!important}
.store-org-tree .store-org-tree-head h3{margin:0;color:#202a3c;font-size:15px!important;font-weight:650!important}.store-org-tree .store-org-tree-head small,.store-org-tree .store-org-tree-head span{display:block;margin-top:4px;color:#929aa8;font-size:10px!important}.store-org-tree .store-org-tree-head button{height:29px;border:1px solid #e0e4ea!important;border-radius:6px!important;background:#fff!important;padding:0 9px!important;color:#677286!important;font-size:10px!important;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background-color .18s ease,color .18s ease}.store-org-tree .store-org-tree-head button:hover,.store-org-tree .store-org-tree-head button:focus-visible{transform:translateY(-2px);border-color:#d4d0fa!important;background:#fbfaff!important;color:#5146c8!important;box-shadow:0 8px 18px rgba(43,54,83,.16)}
.store-org-tree .store-org-tree-search{display:flex;flex:none;align-items:center;gap:9px;height:36px!important;margin:0 0 8px!important;padding:0 10px!important;border:1px solid #dfe3ea!important;border-radius:7px!important;background:#fff!important;color:#8c96a7;cursor:text}.store-org-tree .store-org-tree-search input{width:100%;min-width:0;height:auto!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;outline:0;background:transparent!important;color:#303a4d;font-size:11px!important}.store-org-tree .store-org-tree-search:focus-within{border-color:#8b83e9!important;box-shadow:0 0 0 3px rgba(99,85,232,.08)}
.store-org-tree .store-org-tree-list{min-height:0;max-height:min(620px,calc(100dvh - 300px))!important;flex:1;margin:0!important;padding:2px 5px!important;overflow:auto!important}
.store-org-tree .store-org-tree-row{position:relative;width:100%;min-height:0!important;display:flex!important;align-items:center;gap:8px!important;margin:3px 0!important;padding:9px 7px!important;padding-left:calc(7px + var(--org-depth, 0) * 18px)!important;border:1px solid transparent!important;border-radius:8px!important;background:transparent!important;color:#4e5a6f!important;text-align:left;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background-color .18s ease}.store-org-tree .store-org-tree-row.depth-0{padding-left:7px!important}.store-org-tree .store-org-tree-row.depth-1{padding-left:25px!important}.store-org-tree .store-org-tree-row.depth-2{padding-left:43px!important}.store-org-tree .store-org-tree-row.depth-3{padding-left:61px!important}.store-org-tree .store-org-tree-row.depth-4{padding-left:79px!important}.store-org-tree .store-org-tree-row:hover{transform:translateY(-1px);border-color:#ded9ff!important;background:#fff!important;box-shadow:0 5px 13px rgba(45,55,87,.09)!important}.store-org-tree .store-org-tree-row.selected{z-index:1;transform:translateY(-1px);border-color:#d7d2fb!important;background:#f6f5ff!important;color:#4e5a6f!important;box-shadow:0 9px 20px rgba(89,77,203,.14)!important}.store-org-tree .store-org-tree-row.selected .store-org-tree-name strong{color:#5146c8!important}.store-org-tree .store-org-tree-row:focus-visible{outline:3px solid rgba(99,85,232,.22);outline-offset:2px}
.store-org-tree .store-org-tree-toggle{width:12px!important;flex:none;color:#778195!important;font-size:17px!important;line-height:1!important;transform:rotate(0);transition:transform .2s}.store-org-tree .store-org-tree-toggle.expanded{transform:rotate(90deg)}.store-org-tree .store-org-tree-toggle.leaf{visibility:hidden}
.store-org-tree .org-node-icon{position:relative;width:26px!important;height:26px!important;display:grid!important;place-items:center!important;flex:none;border-radius:7px!important;background:#eef2ff!important;color:#5969d7!important;font-size:0!important;box-shadow:none!important}.store-org-tree .org-node-icon:before,.store-org-tree .org-node-icon:after{content:"";position:absolute;box-sizing:border-box}.store-org-tree .org-node-icon:before{left:6px;top:6px;width:13px;height:13px;border:1.5px solid currentColor;border-radius:2px;background:linear-gradient(currentColor,currentColor) 3px 3px/2px 2px no-repeat,linear-gradient(currentColor,currentColor) 8px 3px/2px 2px no-repeat,linear-gradient(currentColor,currentColor) 3px 8px/2px 2px no-repeat,linear-gradient(currentColor,currentColor) 8px 8px/2px 2px no-repeat}.store-org-tree .org-node-icon:after{left:11px;bottom:5px;width:4px;height:5px;border:1.5px solid currentColor;border-bottom:0}.store-org-tree .org-node-icon.agent{background:#f0effc!important;color:#6758d5!important}.store-org-tree .org-node-icon.chain{background:#edf4ff!important;color:#4d79cc!important}.store-org-tree .org-node-icon.chain:before,.store-org-tree .org-node-icon.distributor:before{left:6px;top:6px;width:9px;height:9px;border:1.5px solid currentColor;border-radius:3px;background:none}.store-org-tree .org-node-icon.chain:after,.store-org-tree .org-node-icon.distributor:after{left:10px;top:10px;width:9px;height:9px;border:1.5px solid currentColor;border-radius:3px;background:transparent}.store-org-tree .org-node-icon.distributor{background:#fff3e9!important;color:#d47b3e!important}.store-org-tree .org-node-icon.store,.store-org-tree .org-node-icon.shop,.store-org-tree .org-node-icon.room{background:#ebf7f2!important;color:#258a65!important}.store-org-tree .org-node-icon.store:before,.store-org-tree .org-node-icon.shop:before,.store-org-tree .org-node-icon.room:before{left:5px;top:6px;width:15px;height:6px;border:1.5px solid currentColor;border-radius:3px 3px 2px 2px;background:repeating-linear-gradient(90deg,transparent 0,transparent 3px,currentColor 3px,currentColor 4.5px)}.store-org-tree .org-node-icon.store:after,.store-org-tree .org-node-icon.shop:after,.store-org-tree .org-node-icon.room:after{left:7px;top:12px;width:11px;height:9px;border:1.5px solid currentColor;border-top:0;border-radius:0 0 2px 2px}.store-org-tree .org-node-icon.region{background:#eef6ff!important;color:#4b82c3!important}.store-org-tree .org-node-icon.region:before{left:7px;top:5px;width:12px;height:12px;border:1.5px solid currentColor;border-radius:50% 50% 50% 0;background:none;transform:rotate(-45deg)}.store-org-tree .org-node-icon.region:after{left:11px;top:9px;width:4px;height:4px;border:0;border-radius:50%;background:currentColor}.store-org-tree .org-node-icon.company,.store-org-tree .org-node-icon.organization,.store-org-tree .org-node-icon.factory{background:#edf5fb!important;color:#477eaa!important}
.store-org-tree .org-node-icon.headquarters{background:currentColor!important;color:#2c2c2c!important;-webkit-mask:url("./assets/icons/organization-headquarters.svg?v=1") center/contain no-repeat;mask:url("./assets/icons/organization-headquarters.svg?v=1") center/contain no-repeat}
.store-org-tree .org-node-icon.headquarters:before,.store-org-tree .org-node-icon.headquarters:after{content:none!important;display:none!important}
.store-org-tree .store-org-tree-name{min-width:0;flex:1}.store-org-tree .store-org-tree-name strong,.store-org-tree .store-org-tree-name small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.store-org-tree .store-org-tree-name strong{color:inherit!important;font-size:12px!important;font-weight:600!important;line-height:16px}.store-org-tree .store-org-tree-name small{margin-top:2px;color:#9aa2af!important;font-size:10px!important;font-weight:400!important;line-height:14px}.store-org-tree .store-org-tree-count{min-width:23px;margin-left:auto!important;padding:2px 6px!important;border-radius:10px!important;background:#f0f2f5!important;color:#8993a2!important;text-align:center;font-size:10px!important;font-style:normal!important;font-variant-numeric:tabular-nums}.store-org-tree .store-org-tree-row.selected .store-org-tree-count{background:#fff!important;color:#6658d8!important}
@media(max-width:900px){.store-org-tree .store-org-tree-list{max-height:360px!important}}@media(prefers-reduced-motion:reduce){.store-org-tree .store-org-tree-row,.store-org-tree .store-org-tree-head button{transition:none}}

/* Device management follows the Formula History continuous-workspace frame. */
.device-history-page{max-width:none;min-width:0;overflow-x:hidden;padding-bottom:34px}
.device-history-workspace{display:grid;grid-template-columns:clamp(210px,18vw,240px) minmax(0,1fr);gap:0;overflow:hidden;border:1px solid #e1e5eb;border-radius:12px;background:#fff;box-shadow:0 2px 8px rgba(31,42,64,.035)}
.device-history-org-panel{position:relative;top:auto;height:auto;min-height:calc(100vh - 190px);border:0;border-right:1px solid #e7eaf0;border-radius:0;box-shadow:none;overflow:hidden}
.device-history-org-panel .device-org-head{min-height:70px;padding:16px 17px}.device-history-org-panel .device-org-search{margin:14px 14px 11px}.device-history-org-panel .device-org-tree{max-height:calc(100vh - 355px)}
.device-history-main{min-width:0;display:flex;flex-direction:column;background:#fff}.device-history-main>.device-list-heading{display:flex;flex:none;align-items:center;gap:7px;min-height:62px;padding:0 24px}.device-history-main>.device-list-heading .device-list-heading-icon{display:inline-block;position:relative;top:-8px;width:19px;height:19px;flex:0 0 19px;background:#2c2c2c;-webkit-mask:url("./assets/icons/device-list-heading.svg?v=1") center/contain no-repeat;mask:url("./assets/icons/device-list-heading.svg?v=1") center/contain no-repeat}.device-history-main>.device-list-heading>div{min-width:0}.device-history-main>.device-list-heading h3{margin:0;color:#172033;font-size:16px;font-weight:700;line-height:1.3}.device-history-main>.device-list-heading>div>span{display:block;margin-top:5px;color:#929cad;font-size:11px;font-weight:500;line-height:1.25}
.device-history-filter-panel{padding:22px 24px 18px;border-bottom:0;background:#fff}
.device-history-filter-grid{display:grid;grid-template-columns:minmax(220px,1.45fr) repeat(3,minmax(104px,.55fr)) auto;align-items:end;gap:9px}.device-history-filter-grid>label{display:grid;gap:6px;min-width:0}.device-history-filter-grid>label>span{color:#7f899a;font-size:10px}.device-history-filter-grid .select{width:100%;min-width:0;height:39px;border-radius:7px;font-size:12px}.device-history-filter-grid .dc-select.select{border:0!important;border-radius:0;background:transparent!important;padding:0!important;box-shadow:none!important}.device-history-search{height:39px;min-width:0;display:flex!important;align-items:center;gap:8px;border:1px solid #dfe3e9;border-radius:7px;background:#fff;padding:0 11px}.device-history-search input{width:100%;min-width:0;height:auto;border:0;outline:0;background:transparent;color:#344156;font-size:12px}.device-history-search:focus-within{border-color:#8d84ec;box-shadow:0 0 0 3px rgba(99,85,232,.08)}.device-filter-actions{display:flex;align-items:center;gap:8px;min-width:max-content;height:39px;margin:0}.device-filter-actions button{height:39px;margin:0;white-space:nowrap;padding:0 13px;font-size:12px}
.device-history-filter-grid{position:relative;z-index:2}.device-history-filter-grid>.device-filter-control{display:block;min-width:0;gap:0}.device-history-filter-grid>.device-filter-control[data-open="true"]{z-index:30}.device-history-filter-grid .history-filter-select-trigger{height:34px;padding:0 10px;border-color:#d9dee7;border-radius:7px;font-size:12px}.device-history-filter-grid .history-filter-select-trigger:hover{border-color:#bdb5ff}.device-history-filter-grid .history-filter-select[data-open="true"] .history-filter-select-trigger{border-color:#887af2;box-shadow:0 0 0 3px rgba(99,85,232,.08)}.device-history-filter-grid .history-filter-select-trigger i{color:#667286;font-size:14px;font-style:normal;line-height:1;transition:transform .16s ease}.device-history-filter-grid .history-filter-select[data-open="true"] .history-filter-select-trigger i{transform:rotate(180deg)}.device-history-filter-grid .history-filter-select-menu{top:calc(100% + 6px);padding:4px;border-color:#e0e4ec;border-radius:8px;box-shadow:0 12px 26px rgba(28,39,58,.16)}.device-history-filter-grid .history-filter-select-menu button{min-height:32px;padding:6px 9px;border-radius:5px;font-size:12px;line-height:18px}.device-history-filter-grid .history-filter-select-menu button:hover,.device-history-filter-grid .history-filter-select-menu button.active{background:#f0eeff;color:#5b4dde;font-weight:400}.device-history-filter-grid>.device-history-search{display:block!important;height:auto;min-width:0;margin:0;border:0;border-radius:0;background:transparent;padding:0}.device-history-search.history-keyword-filter>div{height:34px;margin:0;gap:7px;border:1px solid #d9dee7;border-radius:7px;background:#fff;padding:0 10px;color:#929cac;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease,background-color .16s ease}.device-history-search.history-keyword-filter>div:hover,.device-history-search.history-keyword-filter>div:focus-within{transform:translateY(-2px);border-color:#a595ff;background:#fff;box-shadow:0 0 0 3px rgba(129,117,255,.10)}.device-history-search.history-keyword-filter input{height:30px;margin:0;padding:0;border:0;background:transparent;font-size:12px}.device-filter-actions{height:34px}.device-filter-actions button{height:34px}.device-filter-actions .device-refresh-button{display:inline-grid;width:34px;min-width:34px;place-items:center;padding:0;border-color:#d9dee7;border-radius:7px;background:#fff;color:#667287;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease,background-color .16s ease}.device-filter-actions .device-refresh-button:hover:not(:disabled),.device-filter-actions .device-refresh-button:focus-visible{transform:translateY(-2px);border-color:#a595ff;background:#fff;box-shadow:0 0 0 3px rgba(129,117,255,.10)}.device-filter-actions .device-refresh-button>svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s ease}.device-filter-actions .device-refresh-button:hover:not(:disabled)>svg{transform:rotate(-110deg)}.device-filter-actions .device-refresh-button.is-refreshing>svg{animation:device-refresh-spin .75s linear infinite}@keyframes device-refresh-spin{to{transform:rotate(360deg)}}.device-filter-actions>[data-device-new]{display:inline-flex;align-items:center;gap:4px}.device-add-icon{font-size:18px;font-weight:400;line-height:1}
.device-history-filter-grid>.device-history-search.history-keyword-filter{grid-column:auto!important}
@media(min-width:901px){.device-history-filter-grid{grid-template-columns:minmax(180px,1.45fr) repeat(3,minmax(88px,.55fr)) auto;grid-auto-flow:column}.device-history-filter-grid>.device-filter-control,.device-history-filter-grid>.device-history-search{min-width:0}}
@media(max-width:900px){.device-history-filter-panel{overflow-x:auto}.device-history-filter-grid{display:flex;flex-wrap:nowrap;align-items:center;min-width:max-content}.device-history-filter-grid>.device-history-search{flex:1 0 230px}.device-history-filter-grid>.device-filter-control{flex:0 0 145px}.device-filter-actions{width:auto!important;flex:0 0 auto}.device-filter-actions button{flex:0 0 auto!important}}
body[data-theme="dark"] .device-history-filter-grid .dc-select.select{background:transparent!important}
.device-history-main>.device-metrics{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:8px 24px 14px}
.device-history-main>.device-metrics .device-history-kpi{position:relative;display:flex;min-width:0;min-height:84px;flex-direction:column;justify-content:space-between;overflow:hidden;padding:12px 14px;border:1px solid #dfe4ea;border-radius:10px;background:#fff;box-shadow:0 1px 2px rgba(22,34,54,.035)}
.device-history-main>.device-metrics .history-kpi-head{display:flex;min-width:0;align-items:center;gap:9px}
.device-history-main>.device-metrics .history-kpi-icon{position:relative;display:block;width:30px;height:30px;flex:0 0 30px;border:1px solid #e2e3e5;border-radius:8px;background:#f7f7f5 center/76% 76% no-repeat}
.device-history-main>.device-metrics .history-kpi-icon::before{display:none!important;content:none!important}
.device-history-main>.device-metrics .history-kpi-label{display:block!important;min-width:0;overflow:hidden;color:#687487!important;font-size:12px!important;font-weight:600!important;letter-spacing:0;text-overflow:ellipsis;white-space:nowrap}
.device-history-main>.device-metrics .history-kpi-metric{display:flex;min-width:0;align-items:baseline;justify-content:flex-start;gap:6px;padding-left:37px}
.device-history-main>.device-metrics .history-kpi-metric>strong{margin:0;padding:0;color:#596579;font-size:20px;font-weight:400;letter-spacing:0;line-height:1.12;font-variant-numeric:tabular-nums;white-space:nowrap}
.device-history-main>.device-metrics .history-kpi-secondary{min-width:0;overflow:hidden;color:#687487;font-size:10px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}
.device-history-main>.device-metrics .history-kpi-device .history-kpi-icon{background-image:url("./assets/icons/device-kpi.svg")}
.device-history-main>.device-metrics .history-kpi-online .history-kpi-icon{background-image:url("./assets/icons/device-online.svg")}
.device-history-main>.device-metrics .history-kpi-inventory .history-kpi-icon{background-image:url("./assets/icons/inventory-kpi.svg")}
.device-history-main>.device-metrics .history-kpi-warning .history-kpi-icon{background-image:url("./assets/icons/device-warning.svg")}
.device-history-main>.device-metrics .history-kpi-anomaly .history-kpi-icon{background-image:url("./assets/icons/device-location-anomaly.svg")}
.device-history-main>.device-metrics .history-kpi-missing .history-kpi-icon{background-image:url("./assets/icons/device-location-missing.svg")}
.device-history-main>.device-metrics .history-kpi-location .history-kpi-icon{background-image:url("./assets/icons/history-status.svg")}
body[data-theme="dark"] .device-history-main>.device-metrics .device-history-kpi{border-color:#2b374a;background:#151f2e;color:#d7e0ed}
body[data-theme="dark"] .device-history-main>.device-metrics .history-kpi-label,body[data-theme="dark"] .device-history-main>.device-metrics .history-kpi-secondary{color:#94a2b7!important}
body[data-theme="dark"] .device-history-main>.device-metrics .history-kpi-metric>strong{color:#e5edf8}
.device-history-panel{min-width:0;margin:0 24px 24px;border:1px solid #e2e6ec;border-radius:10px;background:#fff;box-shadow:0 2px 8px rgba(31,42,64,.025);overflow:hidden}.device-history-panel-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;min-height:70px;padding:15px 18px 0;border-bottom:1px solid #e8ebf0}.device-history-panel-head>div:first-child{padding-bottom:14px}.device-history-panel-head>div:first-child span{display:block;color:#8b95a6;font-size:10px}.device-history-panel-head>div:first-child strong{display:block;margin-top:5px;color:#253248;font-size:13px;font-weight:600}.device-history-tabs{display:flex;align-items:flex-end;gap:4px;height:100%}.device-history-tabs button{position:relative;height:43px;border:0;border-bottom:2px solid transparent;background:transparent;padding:0 12px;color:#7a8597;font-size:12px;cursor:pointer}.device-history-tabs button:hover{color:#5147c9}.device-history-tabs button.active{border-bottom-color:#6355e8;color:#5147c9;font-weight:650}.device-history-table-wrap{overflow:auto}.device-history-panel .device-table,.device-history-panel .ops-data-table{min-width:900px}.device-history-panel .device-table thead th,.device-history-panel .ops-data-table thead th{height:44px;padding:11px 13px;background:#f7f8fa;color:#626e81;font-size:11px}.device-history-panel .device-table tbody td,.device-history-panel .ops-data-table tbody td{height:62px;padding:11px 13px;color:#344156;font-size:11px}.device-history-panel .device-table tbody td small,.device-history-panel .ops-data-table tbody td small{display:block;margin-top:4px;color:#9aa3b1;font-size:10px}.device-history-panel .device-table tbody tr.ops-select-row:hover{background:#faf9ff}.device-history-panel .device-table tbody tr.ops-select-row.selected{background:#f4f2ff;box-shadow:inset 3px 0 #6355e8}.device-row-expander{width:34px;text-align:center;color:#6658db;font-size:18px;font-weight:600}.device-row-expander span{display:inline-grid;width:22px;height:22px;place-items:center;border:1px solid #ddd9fb;border-radius:6px;background:#faf9ff}.device-history-panel .device-location-mark{display:inline-flex;align-items:center;min-height:24px;border-radius:999px;padding:3px 8px;background:#eef8f3;color:#26845f;font-size:10px;white-space:nowrap}.device-history-panel .device-location-mark.missing{background:#fff8e9;color:#b77420}.device-history-panel .device-location-mark.anomaly{background:#fff0f0;color:#c64b50}.device-history-panel .ops-table-footer{min-height:45px;padding:0 16px;border-top:1px solid #eef0f4;color:#8c96a7;font-size:10px}
.device-history-panel .device-table thead .history-table-heading{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.device-history-panel .device-table thead .history-table-heading-icon{width:15px;height:15px;flex:0 0 15px;background:currentColor;-webkit-mask:var(--history-heading-icon) center/contain no-repeat;mask:var(--history-heading-icon) center/contain no-repeat}.device-history-panel .device-table thead .history-table-heading-icon--device{--history-heading-icon:url("./assets/icons/history-device.svg?v=1")}.device-history-panel .device-table thead .history-table-heading-icon--store{--history-heading-icon:url("./assets/icons/device-store.svg?v=1")}.device-history-panel .device-table thead .history-table-heading-icon--inventory{--history-heading-icon:url("./assets/icons/inventory-kpi.svg?v=1")}.device-history-panel .device-table thead .history-table-heading-icon--status{--history-heading-icon:url("./assets/icons/history-status.svg?v=1")}.device-history-panel .device-table thead .history-table-heading-icon--location{--history-heading-icon:url("./assets/icons/device-location.svg?v=1")}.device-history-panel .device-table thead .history-table-heading-icon--last-report{--history-heading-icon:url("./assets/icons/device-last-report.svg?v=1")}.device-history-panel .device-table thead .history-table-heading-icon--updated{--history-heading-icon:url("./assets/icons/device-updated.svg?v=1")}
@media(min-width:1081px){.device-history-panel .device-table thead .history-table-heading{gap:10px}.device-history-panel .device-table thead .history-table-heading-icon{width:17px;height:17px;flex-basis:17px}}
.device-expanded-row>td{height:auto!important;padding:0!important;border-top:0!important;background:#fbfbfd!important}.device-expanded-content{border-top:1px solid #e0dcff;background:#fbfbfd;padding:18px 20px 20px}.device-expanded-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-bottom:15px;border-bottom:1px solid #e9ebf1}.device-expanded-head h3{margin:4px 0 3px;color:#202b3f;font-size:17px}.device-expanded-head p{margin:0;color:#8590a1;font-size:11px}.device-expanded-head>div:last-child{display:grid;justify-items:end;gap:6px}.device-expanded-head>div:last-child small{font-size:10px}.device-expanded-grid{display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:10px;margin-top:14px}.device-expanded-card{min-width:0;border:1px solid #e8ebf0;border-radius:8px;background:#fff;padding:13px}.device-expanded-card h4{margin:0 0 12px;color:#3b475b;font-size:12px}.device-expanded-card .ops-detail-list{gap:10px 14px}.device-expanded-card .ops-detail-list dt{font-size:10px}.device-expanded-card .ops-detail-list dd{font-size:11px}.device-expanded-stat>strong{display:block;font-size:22px}.device-expanded-stat>span{display:block;margin-top:4px;color:#8c96a7;font-size:10px}.device-expanded-stat .progress{margin-top:10px}.device-expanded-mini-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:14px}.device-expanded-mini-grid>div{border-radius:6px;background:#f7f8fa;padding:8px}.device-expanded-mini-grid span{display:block;color:#909aaa;font-size:9px}.device-expanded-mini-grid strong{display:block;margin-top:4px;color:#344156;font-size:15px}.device-expanded-mini-grid .warn{background:#fff8ed}.device-expanded-mini-grid .warn strong{color:#c17a22}.device-expanded-mini-grid .danger{background:#fff2f2}.device-expanded-mini-grid .danger strong{color:#cc4c52}.device-location-summary{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.device-location-summary strong{color:#2a8a64;font-size:15px}.device-location-summary span{color:#8d97a8;font-size:10px}.device-expanded-card>p{min-height:30px;margin:10px 0;color:#7e899a;font-size:10px;line-height:16px}.device-recent-events{margin-top:12px;padding:13px 0 0;border-top:1px solid #e9ebf1}.device-event-row{display:grid;grid-template-columns:160px minmax(0,1fr) 100px;gap:12px;align-items:center;padding:8px 0;border-bottom:1px solid #f0f1f4;color:#7d889a;font-size:10px}.device-event-row strong{color:#465368;font-size:11px}.device-event-row em{color:#2a8a64;font-style:normal;text-align:right}.device-expanded-content .ops-detail-actions{padding:14px 0 0}
@media(max-width:1200px){.device-history-filter-grid{grid-template-columns:minmax(200px,1.35fr) repeat(3,minmax(100px,.55fr)) auto}.device-history-main>.device-metrics{grid-template-columns:repeat(5,150px);overflow:auto;padding-bottom:2px}.device-expanded-grid{grid-template-columns:1fr 1fr}.device-expanded-card:last-child{grid-column:1/-1}}
@media(max-width:900px){.device-history-workspace{grid-template-columns:1fr}.device-history-org-panel{min-height:330px;border-right:0;border-bottom:1px solid #e7eaf0}.device-history-org-panel .device-org-tree{max-height:220px}.device-history-main>.device-list-heading{min-height:56px;padding:0 16px}.device-history-main>.device-metrics{margin:14px 16px 12px}.device-history-filter-panel{padding:18px 16px 15px}.device-history-filter-grid{grid-template-columns:1fr 1fr}.device-history-filter-grid>label:first-child{grid-column:1/-1}.device-filter-actions{grid-column:1/-1;width:100%}.device-filter-actions button{flex:1}.device-history-panel{margin:0 16px 18px}.device-history-panel-head{align-items:flex-start;flex-direction:column;gap:0;padding-top:14px}.device-history-tabs{width:100%;overflow:auto}.device-history-tabs button{flex:1;min-width:92px}.device-expanded-content{padding:15px}.device-expanded-grid{grid-template-columns:1fr}.device-expanded-card:last-child{grid-column:auto}.device-event-row{grid-template-columns:1fr 1fr}.device-event-row em{text-align:left}}
@media(min-width:901px){.device-history-main>.device-history-filter-panel{padding-top:12px;transform:translateX(-5px)}.device-history-main>.device-metrics{transform:translateX(-5px)}}
@media(max-width:560px){.device-history-filter-grid{grid-template-columns:1fr}.device-history-filter-grid>label:first-child{grid-column:auto}.device-filter-actions{grid-column:auto;width:100%}.device-filter-actions button{flex:1}.device-history-panel .device-table,.device-history-panel .ops-data-table{min-width:800px}.device-expanded-head{flex-direction:column}.device-expanded-head>div:last-child{justify-items:start}.device-expanded-mini-grid{grid-template-columns:repeat(2,1fr)}.device-history-main>.device-metrics{grid-template-columns:repeat(5,145px)}}

/* Device workspace fills the content viewport. Keep the internal dividers,
 * but remove the page-level gray gutters around the workspace frame. */
.device-ops-page.device-history-page{width:100%;min-height:calc(100vh - 86px);height:calc(100vh - 86px);margin:0;padding:0!important;background:#fff;overflow:hidden}
.device-ops-page.device-history-page .device-history-workspace{width:100%;height:100%;min-height:100%;border:0;border-radius:0;box-shadow:none}
.device-ops-page.device-history-page .device-history-org-panel{height:100%;min-height:0}
.device-ops-page.device-history-page .device-history-main{min-height:0;overflow:auto}
@media(max-width:900px){.device-ops-page.device-history-page{height:auto;min-height:calc(100vh - 70px);overflow:visible}.device-ops-page.device-history-page .device-history-workspace{height:auto;min-height:calc(100vh - 70px)}.device-ops-page.device-history-page .device-history-main{overflow:visible}}

/* The device frame is edge-to-edge; keep only the internal component styling rounded. */
.device-ops-page.device-history-page :is(.device-history-workspace,.device-history-org-panel,.device-org-panel){border-radius:0!important}

/* The record list stays on the white canvas without an outer card frame. */
.device-history-main>.device-history-panel{border:0;border-radius:0;box-shadow:none}

/* Remove the redundant record-list summary copy while keeping the tabs. */
.device-history-main>.device-history-panel .device-history-panel-head>div:first-child{display:none}
.device-history-main>.device-history-panel .device-history-panel-head{justify-content:flex-start}

/* Extend the table header band to the main workspace edges without moving the tabs. */
.device-history-main>.device-history-panel{overflow:visible}
.device-history-main>.device-history-panel .device-history-table-wrap{margin-inline:-24px}

/* Lift the record tabs and the table header together on desktop. */
@media(min-width:901px){.device-history-main>.device-history-panel .device-history-panel-head{min-height:56px;padding-top:0}}

/* Reuse Formula History's organization-tree typography and icon scale. */
.device-ops-page.device-history-page .device-history-org-panel .device-org-row{grid-template-columns:12px 30px minmax(0,1fr) auto;gap:8px}
.device-ops-page.device-history-page .device-history-org-panel .device-org-icon{width:30px;height:30px;font-size:15px}
.device-ops-page.device-history-page .device-history-org-panel .device-org-name strong{font-size:12px;font-weight:600}
.device-ops-page.device-history-page .device-history-org-panel .device-org-name small{margin-top:2px;font-size:10px}
.device-ops-page.device-history-page .device-history-org-panel .device-org-row em{font-size:10px}

/* Device detail is a focused modal surface. It is intentionally scoped so the
 * existing device and slot forms keep their original modal geometry. */
.device-detail-modal-open{overflow:hidden}
.device-detail-modal-backdrop{padding:24px;background:rgba(23,32,51,.48)}
.device-detail-modal{box-sizing:border-box;width:min(996px,calc(100vw - 48px));height:min(716px,calc(100vh - 48px));max-height:none;display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;padding:0;border:1px solid #e4e8f1;border-radius:12px;background:#fff;color:#17264a;box-shadow:0 28px 74px rgba(24,34,57,.24);transform:translateY(-16px)}
.device-detail-modal-header{position:relative;display:flex;align-items:flex-start;justify-content:space-between;gap:22px;padding:24px 30px 23px;border-bottom:1px solid #f0f2f7}
.device-detail-modal-heading{min-width:0;padding-right:6px}.device-detail-modal-kicker{display:flex;align-items:center;gap:6px;color:#263b68;font-size:13px;font-weight:650}.device-detail-modal-icon{display:inline-grid;width:14px;height:14px;place-items:center;border:1.5px solid #334a7b;border-radius:3px;color:#334a7b;font-size:12px;line-height:1}.device-detail-modal-code-row{display:flex;align-items:center;gap:10px;margin-top:17px;white-space:nowrap}.device-detail-modal-code-row h2{margin:0;color:#13244d;font-size:24px;font-weight:750;letter-spacing:-.3px;line-height:1.15}.device-detail-modal-heading p{display:flex;align-items:center;gap:14px;margin:10px 0 0;color:#33466f;font-size:12px}.device-detail-modal-heading p i{width:1px;height:14px;background:#d7dce8}
.device-detail-modal-head-actions{display:flex;align-items:center;gap:12px;align-self:center;padding-right:6px;white-space:nowrap}.device-detail-quiet-button,.device-detail-primary-button,.device-detail-footer-button,.device-detail-footer-primary{height:36px;border:1px solid #e1e6f1;border-radius:6px;background:#fff;color:#243766;padding:0 13px;font:inherit;font-size:12px;cursor:pointer}.device-detail-quiet-button{min-width:96px}.device-detail-primary-button{min-width:124px}.device-detail-quiet-button:hover,.device-detail-footer-button:hover{border-color:#bfc7dc;background:#fbfcff}.device-detail-primary-button,.device-detail-footer-primary{border-color:#4d38f2;background:#4d38f2;color:#fff}.device-detail-primary-button:hover,.device-detail-footer-primary:hover{background:#3f2be0}.device-detail-modal-close{position:absolute;top:18px;right:17px;width:28px;height:28px;border:0;background:transparent;color:#1d3262;font-size:25px;font-weight:300;line-height:28px;cursor:pointer}.device-detail-modal-close:hover{color:#4d38f2}
.device-detail-status{display:inline-flex;align-items:center;height:27px;border:1px solid #cfe8dc;border-radius:6px;background:#eefaf4;color:#218c60;padding:0 9px;font-size:11px;font-weight:600}.device-detail-status.warn{border-color:#f3d7ad;background:#fff7e9;color:#d27b18}.device-detail-status.danger{border-color:#f2c7c7;background:#fff2f2;color:#d65258}.device-detail-status.good{border-color:#cfe8dc;background:#eefaf4;color:#218c60}
.device-detail-modal-body{min-height:0;overflow:auto;padding:0 30px 18px}.device-detail-modal-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:0}.device-detail-modal-card{box-sizing:border-box;min-width:0;height:262px;margin-top:0;border:1px solid #e6eaf3;border-radius:8px;background:#fff;padding:18px 14px}.device-detail-modal-card h3{display:flex;align-items:center;gap:10px;margin:0 0 18px;color:#162957;font-size:15px;font-weight:700}.device-detail-card-icon{display:inline-grid;width:17px;height:17px;place-items:center;color:#243e79;font-size:17px;font-weight:400;line-height:1}.device-detail-modal-card dl{display:grid;gap:13px;margin:0}.device-detail-modal-card dl>div{display:grid;grid-template-columns:86px minmax(0,1fr);align-items:start;gap:8px;min-width:0}.device-detail-modal-card dt{color:#7180a3;font-size:12px;line-height:18px}.device-detail-modal-card dd{min-width:0;margin:0;overflow-wrap:anywhere;color:#172957;font-size:12px;font-weight:500;line-height:18px}.device-detail-time-card{padding:18px 14px}.device-detail-time-list{overflow:hidden;border:1px solid #e7ebf3;border-radius:6px}.device-detail-time-list>div{min-height:89px;padding:14px 10px 10px}.device-detail-time-list>div+div{border-top:1px solid #e7ebf3}.device-detail-time-list span,.device-detail-time-list strong,.device-detail-time-list small{display:block}.device-detail-time-list span{color:#23355f;font-size:12px;font-weight:650}.device-detail-time-list strong{margin-top:11px;color:#142653;font-size:14px;line-height:18px;white-space:nowrap}.device-detail-time-list small{margin-top:5px;color:#7785a5;font-size:10px;text-align:right}.device-detail-time-list small i{display:inline-block;width:6px;height:6px;margin-right:6px;border-radius:50%;background:#1caa72}.device-detail-slot-toggle{display:flex;align-items:center;width:100%;height:65px;margin-top:29px;border:1px solid #e6eaf3;border-radius:8px;background:#fff;color:#162957;padding:0 18px;text-align:left;cursor:pointer}.device-detail-slot-toggle:hover{border-color:#cbc7fb;background:#fcfbff}.device-detail-slot-toggle>.device-detail-card-icon{margin-right:12px}.device-detail-slot-toggle>strong{font-size:14px;white-space:nowrap}.device-detail-slot-toggle>i{width:1px;height:18px;margin:0 22px;background:#e1e5ee}.device-detail-slot-summary{display:flex;align-items:center;gap:13px;color:#5b6b91;font-size:12px;white-space:nowrap}.device-detail-slot-summary b{color:#a4aec2;font-weight:400}.device-detail-slot-summary em,.device-detail-slot-summary mark{background:transparent;font-style:normal}.device-detail-slot-summary em{color:#e1931e}.device-detail-slot-summary mark{color:#e74b52}.device-detail-slot-toggle-label{margin-left:auto;color:#5b6b91;font-size:12px}.device-detail-chevron{margin-left:13px;color:#20386c;font-size:19px;line-height:1;transform:translateY(-2px);transition:transform .18s ease}.device-detail-slot-toggle[aria-expanded="true"] .device-detail-chevron{transform:rotate(180deg) translateY(-2px)}
.device-detail-slot-panel{margin-top:14px;border:1px solid #e6eaf3;border-radius:8px;background:#fff;padding:15px}.device-detail-slot-panel[hidden]{display:none!important}.device-detail-slot-panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;color:#162957;font-size:12px}.device-detail-slot-panel-head span{color:#7381a1}.device-detail-slot-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.device-detail-slot{min-width:0;min-height:68px;border:1px solid #cfe7da;border-radius:7px;background:#f5fbf7;padding:9px}.device-detail-slot strong,.device-detail-slot span,.device-detail-slot small{display:block}.device-detail-slot strong{color:#192a50;font-size:15px}.device-detail-slot span{margin-top:4px;overflow:hidden;color:#30845f;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.device-detail-slot small{margin-top:5px;color:#6d8d7d;font-size:10px}.device-detail-slot.warn{border-color:#f1d3a5;background:#fff9ef}.device-detail-slot.warn span,.device-detail-slot.warn small{color:#c57a1d}.device-detail-slot.danger{border-color:#efc2c2;background:#fff4f3}.device-detail-slot.danger span,.device-detail-slot.danger small{color:#d14e54}.device-detail-slot.empty{border-color:#e3e7ee;background:#f8f9fb}.device-detail-slot.empty span,.device-detail-slot.empty small{color:#8d98ad}.device-detail-slot-empty{grid-column:1/-1;padding:24px;text-align:center}
.device-detail-modal-footer{display:flex;justify-content:flex-end;gap:16px;padding:17px 30px 39px}.device-detail-footer-button,.device-detail-footer-primary{min-width:86px;height:40px;font-size:13px}.device-detail-footer-primary{min-width:109px}
@media(max-width:1180px){.device-detail-modal-head-actions{padding-right:22px;gap:7px}.device-detail-modal-header,.device-detail-modal-body{padding-left:22px;padding-right:22px}.device-detail-modal-footer{padding-left:22px;padding-right:22px}.device-detail-modal{width:min(996px,calc(100vw - 32px))}}
@media(max-width:900px){.device-detail-modal{width:calc(100vw - 24px);height:min(760px,calc(100vh - 24px));transform:none}.device-detail-modal-header{display:block;padding:18px 18px 15px}.device-detail-modal-head-actions{display:flex;flex-wrap:wrap;align-self:auto;margin-top:16px;padding-right:30px}.device-detail-modal-code-row h2{font-size:20px}.device-detail-modal-body{padding:0 18px 14px}.device-detail-modal-grid{grid-template-columns:1fr;gap:12px}.device-detail-modal-card{height:auto;min-height:0}.device-detail-time-card{padding-bottom:14px}.device-detail-slot-toggle{margin-top:16px;padding:0 13px}.device-detail-slot-toggle>i{margin:0 12px}.device-detail-slot-summary{gap:7px;font-size:10px}.device-detail-slot-toggle-label{font-size:10px}.device-detail-modal-footer{padding:14px 18px 18px;gap:8px}.device-detail-slot-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:560px){.device-detail-modal{width:calc(100vw - 12px);height:calc(100vh - 12px);border-radius:9px}.device-detail-modal-header{padding:16px 14px 13px}.device-detail-modal-code-row{flex-wrap:wrap;gap:6px}.device-detail-modal-code-row h2{width:100%;font-size:18px}.device-detail-modal-heading p{gap:8px;margin-top:8px;font-size:10px}.device-detail-modal-head-actions{gap:6px;margin-top:12px;padding-right:24px}.device-detail-quiet-button,.device-detail-primary-button{height:32px;padding:0 8px;font-size:10px}.device-detail-modal-body{padding:0 14px 12px}.device-detail-modal-card{padding:14px 11px}.device-detail-modal-card h3{margin-bottom:13px;font-size:13px}.device-detail-modal-card dl{gap:10px}.device-detail-modal-card dl>div{grid-template-columns:74px minmax(0,1fr)}.device-detail-modal-card dt,.device-detail-modal-card dd{font-size:10px;line-height:16px}.device-detail-time-list>div{min-height:78px;padding:11px 8px 8px}.device-detail-time-list strong{font-size:11px;margin-top:8px}.device-detail-slot-toggle{height:auto;min-height:58px;flex-wrap:wrap;gap:5px;padding:9px}.device-detail-slot-toggle>i{display:none}.device-detail-slot-summary{order:3;width:100%;margin-left:29px;overflow:auto}.device-detail-slot-toggle-label{margin-left:auto}.device-detail-slot-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.device-detail-modal-footer{padding:12px 14px 14px}.device-detail-footer-button,.device-detail-footer-primary{min-width:0;flex:1;height:36px;font-size:11px}}

@media(min-width:901px){.device-detail-modal-card{padding-left:13px;padding-right:13px}.device-detail-modal-card dl>div{grid-template-columns:95px minmax(0,1fr);gap:9px}.device-detail-time-card{padding-left:13px;padding-right:13px}}
@media(max-width:560px){.device-detail-modal-backdrop{padding:12px}.device-detail-modal{width:calc(100vw - 24px);height:calc(100vh - 24px)}}
@media(min-width:901px){.device-detail-modal-code-row h2{font-size:20px;letter-spacing:0}}
.device-detail-modal:focus{outline:none}
.device-migration-modal{width:min(720px,100%)}.device-migration-notice{margin-top:11px;border:1px solid #dcd8ff;border-radius:7px;background:#f5f3ff;color:#7167a7;padding:9px 11px;font-size:10px;line-height:17px}

/* Reuse Formula History's floating active-card interaction for device tabs. */
.device-history-tabs.history-tabs{position:relative;align-items:center;gap:8px;height:auto;overflow:visible}
.device-history-tabs .history-tab-indicator{z-index:0;pointer-events:none;border:1px solid #b5a9ff;border-radius:14px;background:#fff;opacity:0;box-shadow:0 0 0 4px rgba(112,92,232,.06),0 6px 14px rgba(91,82,168,.045);transition:transform .28s cubic-bezier(.22,1,.36,1),width .28s cubic-bezier(.22,1,.36,1),height .28s cubic-bezier(.22,1,.36,1),opacity .14s ease,background-color .18s ease,box-shadow .18s ease,border-color .18s ease}
.device-history-tabs .history-tab-indicator.is-visible{opacity:1}
.device-history-tabs.history-tabs button{position:relative;z-index:1;height:auto;min-height:30px;border:0;border-radius:14px;background:transparent;color:#5547c8;padding:4px 14px;font-size:12px;font-weight:400!important;box-shadow:none;transition:transform .16s ease,background .16s ease,color .16s ease}
.device-history-tabs.history-tabs button:hover{background:#fff;color:#5547c8;border-radius:14px;transform:none}
.device-history-tabs.history-tabs button:active{transform:translateY(0)}
.device-history-tabs.history-tabs button.active{border-color:transparent;background:transparent;color:#5547c8;font-weight:500!important;box-shadow:none}
@media(max-width:900px){.device-history-tabs.history-tabs{justify-content:flex-start;overflow-x:auto}.device-history-tabs.history-tabs button{flex:none;min-width:92px;white-space:nowrap}}
@media(prefers-reduced-motion:reduce){.device-history-tabs .history-tab-indicator,.device-history-tabs.history-tabs button{transition:none}}

/* Keep the device toolbar in one horizontal sequence at every viewport width. */
@media(max-width:900px){.device-history-filter-panel{overflow-x:auto}.device-history-filter-grid{display:flex;flex-wrap:nowrap;align-items:center;min-width:max-content}.device-history-filter-grid>.device-history-search{flex:1 0 230px;grid-column:auto!important}.device-history-filter-grid>.device-filter-control{flex:0 0 145px}.device-filter-actions{width:auto!important;flex:0 0 auto}.device-filter-actions button{flex:0 0 auto!important}}

/* The desktop filter panel is translated for alignment, which creates its own
 * stacking context. Raise that context above the transformed KPI row so an
 * opened menu cannot render underneath the cards. */
@media(min-width:901px){.device-history-main>.device-history-filter-panel{position:relative;z-index:3}}

/* Nudge the device record list below the tab row for clearer separation. */
.device-history-main>.device-history-panel .device-history-table-wrap{margin-top:5px}

/* Remove the divider directly beneath the device record tabs. */
.device-history-main>.device-history-panel .device-history-panel-head{border-bottom:0}

/* Add a restrained raised-surface treatment to the device status badges. */
.device-history-main>.device-history-panel .status:not(.warn):not(.danger){border:1px solid #ccebdd;box-shadow:inset 0 1px 0 rgba(255,255,255,.90),0 2px 5px rgba(32,142,101,.10)}
.device-history-main>.device-history-panel .status.danger{border:1px solid #f2cfcd;box-shadow:inset 0 1px 0 rgba(255,255,255,.88),0 2px 5px rgba(220,86,89,.10)}
.device-history-main>.device-history-panel .device-location-mark{border:1px solid #ccebdd;box-shadow:inset 0 1px 0 rgba(255,255,255,.90),0 2px 5px rgba(32,142,101,.10)}
.device-history-main>.device-history-panel .device-location-mark.missing{border-color:#f2dfbd;box-shadow:inset 0 1px 0 rgba(255,255,255,.90),0 2px 5px rgba(214,145,47,.10)}

/* Give the five device KPI cards a calm raised-surface treatment. */
.device-history-main>.device-metrics .device-history-kpi{border-color:#d6dfe8;background:linear-gradient(180deg,#fff 0%,#fbfcfe 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.96),0 3px 8px rgba(33,48,72,.08),0 1px 2px rgba(33,48,72,.05)}
.device-history-main>.device-metrics .history-kpi-icon{border-color:#d8dde4;box-shadow:inset 0 1px 0 rgba(255,255,255,.95),0 1px 3px rgba(33,48,72,.08)}
body[data-theme="dark"] .device-history-main>.device-metrics .device-history-kpi{background:linear-gradient(180deg,#182435 0%,#151f2e 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 3px 8px rgba(0,0,0,.22),0 1px 2px rgba(0,0,0,.18)}

/* Keep the three device filters compact and use the same drawn chevron as the reference control. */
/* Keep the three status filters compact on desktop; let the keyword search
 * absorb the remaining width instead of stretching each select. */
@media(min-width:901px){.device-history-filter-grid{grid-template-columns:minmax(180px,1.45fr) repeat(3,105px) auto}.device-history-filter-grid>.device-filter-control{width:105px;max-width:105px}.device-history-filter-grid>.device-filter-control .history-filter-select-trigger{width:105px;height:38px;max-width:105px}}
.device-history-filter-grid .history-filter-select-trigger i{display:inline-block;width:7px;height:7px;flex:0 0 7px;border-right:2px solid #667286;border-bottom:2px solid #667286;font-size:0;line-height:0;transform:rotate(45deg) translate(-1px,-1px);transform-origin:center;transition:transform .16s ease}
.device-history-filter-grid .history-filter-select[data-open="true"] .history-filter-select-trigger i{transform:rotate(225deg) translate(-1px,-1px)}

/* Reuse Formula History's record hit frame for device rows. The frame is
 * visible only on hover or after a user-selected row, never on first render. */
.device-history-panel .device-table tbody tr.ops-select-row{position:relative;cursor:pointer;transition:transform .18s ease,filter .18s ease}
.device-history-panel .device-table tbody tr.ops-select-row>td{transition:background-color .18s ease,box-shadow .18s ease,border-radius .18s ease,border-color .18s ease}
.device-history-panel .device-table tbody tr.ops-select-row:is(:hover,.selected){z-index:4;transform:translateY(-3px);background:transparent;filter:drop-shadow(0 7px 11px rgba(56,73,94,.10)) drop-shadow(0 0 5px rgba(92,109,130,.07))}
.device-history-panel .device-table tbody tr.ops-select-row:is(:hover,.selected)>td{position:relative;z-index:3;background:#fbfcfe;border-bottom-color:transparent;box-shadow:inset 0 2px 0 #c8c2ef,inset 0 -2px 0 #c8c2ef}
.device-history-panel .device-table tbody tr.ops-select-row:is(:hover,.selected)>td:first-child{border-radius:8px 0 0 8px;box-shadow:inset 2px 0 0 #c8c2ef,inset 0 2px 0 #c8c2ef,inset 0 -2px 0 #c8c2ef}
.device-history-panel .device-table tbody tr.ops-select-row:is(:hover,.selected)>td:last-child{border-radius:0 8px 8px 0;box-shadow:inset -2px 0 0 #c8c2ef,inset 0 2px 0 #c8c2ef,inset 0 -2px 0 #c8c2ef}
.device-history-panel .device-table tbody tr.ops-select-row:is(:hover,.selected) .device-row-expander span{border-color:transparent;background:transparent;box-shadow:none;color:#506276}

/* Give device occupancy bars a restrained dimensional treatment. */
.device-history-main .progress{height:6px;border:1px solid #dfe3ee;border-radius:999px;background:linear-gradient(180deg,#e7e9f1 0%,#f5f6fa 100%);box-shadow:inset 0 1px 2px rgba(45,57,82,.16),0 1px 1px rgba(38,48,70,.08)}
.device-history-main .progress i{position:relative;border-radius:999px;background:linear-gradient(180deg,#796cf5 0%,#6556e8 52%,#5142d2 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.5),inset 0 -1px 1px rgba(53,41,160,.35),0 1px 2px rgba(80,66,202,.28)}
.device-history-main .progress i::after{position:absolute;inset:1px 2px auto;border-radius:999px;background:linear-gradient(180deg,rgba(255,255,255,.58),rgba(255,255,255,0));content:"";height:35%;pointer-events:none}

/* Reuse Formula History's compact collapse button treatment. */
.device-ops-page.device-history-page .device-history-org-panel .device-org-head button{display:inline-flex;align-items:center;justify-content:center;height:auto;min-height:0;border:1px solid var(--line)!important;border-radius:7px!important;background:#fff!important;box-shadow:none!important;appearance:none;padding:6px 8px;color:#687386;font-size:11px;font-weight:600;line-height:1.2}

/* Lift the complete device list surface without moving filters or KPIs. */
@media(min-width:901px){.device-history-main>.device-history-panel{margin-top:-30px}}

/* Use content-weighted desktop tracks so the table reads evenly without
 * wasting space on short status fields or wrapping the two timestamps. */
@media(min-width:901px){
  .device-history-panel .device-table{width:100%;min-width:0;max-width:100%;table-layout:fixed}
  .device-history-panel .device-table thead th,
  .device-history-panel .device-table tbody td{min-width:0;overflow:hidden}
  .device-history-panel .device-table .device-col-code{width:22%}
  .device-history-panel .device-table .device-col-store{width:12%}
  .device-history-panel .device-table .device-col-inventory{width:11%}
  .device-history-panel .device-table .device-col-slots{width:12%}
  .device-history-panel .device-table .device-col-location{width:12%}
  .device-history-panel .device-table .device-col-last-report{width:15%}
  .device-history-panel .device-table .device-col-updated{width:16%}
  .device-history-panel .device-table thead th:nth-child(3),
  .device-history-panel .device-table thead th:nth-child(4),
  .device-history-panel .device-table thead th:nth-child(5),
  .device-history-panel .device-table tbody td:nth-child(3),
  .device-history-panel .device-table tbody td:nth-child(4),
  .device-history-panel .device-table tbody td:nth-child(5){text-align:center}
  .device-history-panel .device-table tbody td:nth-child(6),
  .device-history-panel .device-table tbody td:nth-child(7){white-space:nowrap;text-overflow:ellipsis}
}

/* Shift both device-list tabs 17px left while preserving the original
 * vertical alignment of the record header. */
@media(min-width:901px){
  .device-history-main>.device-history-panel .device-history-panel-head{padding-left:14px}
  .device-history-main>.device-history-panel .device-history-tabs{transform:translateX(-17px)}
}

/* Keep inventory KPIs in the filter-to-table band on the inventory page. */
.inventory-bottle-card>.inventory-metrics{grid-template-columns:repeat(5,minmax(0,1fr));gap:0;min-height:0;margin:0;padding:7px 16px;border:0;border-top:1px solid #eef0f5;border-bottom:1px solid #eef0f5;border-radius:0;background:#fff;overflow:hidden}
.inventory-bottle-card>.inventory-metrics .ops-metric{min-height:64px;padding:7px 14px;border:0;border-radius:0;background:#fff;box-shadow:none;overflow:visible}
.inventory-bottle-card>.inventory-metrics .ops-metric:not(:first-child){border-left:1px solid #eef0f5}
.inventory-bottle-card>.inventory-metrics .ops-metric:after{display:none}
.inventory-bottle-card>.inventory-metrics .ops-metric>span{font-size:10px;line-height:1.2}
.inventory-bottle-card>.inventory-metrics .ops-metric>strong{margin:5px 0 2px;font-size:21px;line-height:1}
.inventory-bottle-card>.inventory-metrics .ops-metric>small{font-size:9px;line-height:1.2}
@media(max-width:1280px){.inventory-bottle-card>.inventory-metrics{grid-template-columns:repeat(5,minmax(130px,1fr));overflow:auto}.inventory-bottle-card>.inventory-metrics .ops-metric{min-width:130px}}
@media(max-width:850px){.inventory-bottle-card>.inventory-metrics{grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}.inventory-bottle-card>.inventory-metrics .ops-metric{min-width:0}.inventory-bottle-card>.inventory-metrics .ops-metric:nth-child(3){border-left:0}}
@media(max-width:540px){.inventory-bottle-card>.inventory-metrics{grid-template-columns:1fr}.inventory-bottle-card>.inventory-metrics .ops-metric:not(:first-child){border-left:0;border-top:1px solid #eef0f5}}

/* Inventory workspace fills the content viewport while retaining internal dividers. */
.inventory-ops-page{width:100%;max-width:none;min-height:calc(100vh - 86px);height:calc(100vh - 86px);margin:0;padding:0!important;background:#fff;overflow:hidden}
.inventory-ops-page .inventory-directory-layout{width:100%;height:100%;min-height:100%;grid-template-columns:250px minmax(0,1fr);gap:0;align-items:stretch;border:0;border-radius:0;background:#fff}
.inventory-ops-page .inventory-org-panel{height:100%;min-height:0;position:relative;top:0;border:0;border-right:1px solid #e1e5eb;border-radius:0;background:#fff}
.inventory-ops-page .inventory-directory-main{min-height:0;overflow:auto;background:#fff}
.inventory-ops-page .inventory-bottle-card{height:100%;min-height:100%;border:0;border-radius:0;box-shadow:none;background:#fff;display:flex;flex-direction:column}
.inventory-ops-page .inventory-bottle-card .ops-card-head{flex:none;border-bottom:1px solid #eef0f5}
.inventory-ops-page .inventory-bottle-card .inventory-bottle-filters{flex:none;border-bottom:1px solid #eef0f5}
.inventory-ops-page .inventory-bottle-card>.inventory-metrics{flex:none}
.inventory-ops-page .inventory-bottle-card>.ops-table-wrap{flex:1;min-height:0;overflow:auto}
@media(max-width:900px){.inventory-ops-page{height:auto;min-height:calc(100vh - 70px);overflow:visible}.inventory-ops-page .inventory-directory-layout{height:auto;min-height:calc(100vh - 70px);grid-template-columns:1fr}.inventory-ops-page .inventory-org-panel{height:auto;min-height:280px;border-right:0;border-bottom:1px solid #e1e5eb}.inventory-ops-page .inventory-directory-main{overflow:visible}.inventory-ops-page .inventory-bottle-card{height:auto;min-height:590px}}

/* Inventory filters reuse Formula History's controlled pickers and soft lift feedback. */
.inventory-ops-page .inventory-bottle-filters{position:relative;z-index:2}
.inventory-ops-page .inventory-filter-search{display:block;grid-column:auto!important;min-width:0;margin:0;transition:transform .16s ease}
.inventory-ops-page .inventory-filter-search>div{height:34px;display:flex;align-items:center;gap:7px;margin:0;border:1px solid #d9dee7;border-radius:7px;background:#fff;padding:0 10px;color:#929cac;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease,background-color .16s ease}
.inventory-ops-page .inventory-filter-search:hover>div,.inventory-ops-page .inventory-filter-search:focus-within>div{transform:translateY(-2px);border-color:#a595ff;background:#fff;box-shadow:0 0 0 3px rgba(129,117,255,.10)}
.inventory-ops-page .inventory-filter-search input{width:100%;height:30px;margin:0;border:0;background:transparent;padding:0;font-family:var(--font-ui);font-size:12px;font-weight:400!important;line-height:19px;color:#303b4d;outline:0}
.inventory-ops-page .inventory-filter-search input::placeholder{font-family:var(--font-ui);font-size:12px;font-weight:400!important;line-height:19px;color:#a9a9a9;opacity:1}
.inventory-ops-page .inventory-filter-select{position:relative;min-width:0;transition:transform .16s ease}
.inventory-ops-page .inventory-filter-select:hover,.inventory-ops-page .inventory-filter-select:focus-within{transform:translateY(-2px)}
.inventory-ops-page .inventory-filter-select[data-open="true"]{z-index:30}
.inventory-ops-page .inventory-filter-select .history-filter-select-trigger{height:38px;min-width:0;border-color:#d9dee7;border-radius:7px;padding:0 10px;color:#303b4d;font-size:12px;font-weight:400;transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease}
.inventory-ops-page .inventory-filter-select .history-filter-select-trigger:hover{border-color:#a595ff;background:#fff;box-shadow:0 0 0 3px rgba(129,117,255,.10)}
.inventory-ops-page .inventory-filter-select[data-open="true"] .history-filter-select-trigger{border-color:#887af2;box-shadow:0 0 0 3px rgba(99,85,232,.08)}
.inventory-ops-page .inventory-filter-select .history-filter-select-trigger>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.inventory-ops-page .inventory-filter-select .history-filter-select-trigger>i{width:8px;height:8px;flex:0 0 8px;margin-left:8px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;color:#667286;font-size:0;line-height:0;transform:rotate(45deg) translateY(-2px);transition:transform .16s ease}
.inventory-ops-page .inventory-filter-select[data-open="true"] .history-filter-select-trigger>i{transform:rotate(225deg) translateY(-2px)}
.inventory-ops-page .inventory-filter-select .history-filter-select-menu{top:calc(100% + 6px);z-index:80;width:max-content;min-width:100%;max-width:min(360px,calc(100vw - 32px));border-color:#d5dbe7;border-radius:9px;background:linear-gradient(180deg,#fff 0%,#fbfcff 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.96),0 16px 32px rgba(28,39,60,.18),0 3px 8px rgba(28,39,60,.10)}
.inventory-ops-page .inventory-filter-select .history-filter-select-menu button{min-height:34px;padding:7px 9px;border-radius:5px;font-size:12px;font-weight:400;line-height:18px}
.inventory-ops-page .inventory-filter-select .history-filter-select-menu button:hover,.inventory-ops-page .inventory-filter-select .history-filter-select-menu button.active{background:#f0eeff;color:#5b4dde;font-weight:600}

/* Keep the desktop inventory filters compact and on one row. */
@media(min-width:901px){
  .inventory-ops-page .inventory-bottle-filters{display:grid;grid-template-columns:minmax(180px,360px) repeat(5,105px);align-items:center;gap:9px;flex-wrap:nowrap}
  .inventory-ops-page .inventory-bottle-filters .inventory-filter-search{width:auto;max-width:none;min-width:0;flex:initial}
  .inventory-ops-page .inventory-bottle-filters .inventory-filter-select{width:100%;min-width:0;flex:initial}
}
@media(min-width:901px) and (max-width:1100px){
  .inventory-ops-page .inventory-bottle-filters{grid-template-columns:minmax(120px,1fr) repeat(5,minmax(80px,1fr));gap:7px}
}
@media(min-width:1101px){
  .inventory-ops-page .inventory-bottle-filters{grid-template-columns:minmax(180px,360px) repeat(4,105px) 108px}
}

/* Keep Inventory's organization tree in lockstep with Formula History. */
.inventory-ops-page .inventory-directory-layout{grid-template-columns:240px minmax(0,1fr)}
.inventory-ops-page .inventory-org-head h3{font-size:15px;font-weight:650;text-shadow:none}
.inventory-ops-page .inventory-org-head button{display:inline-flex;align-items:center;justify-content:center;min-height:0;border:1px solid var(--line);border-radius:7px;background:#fff;box-shadow:none;appearance:none;padding:6px 8px;color:#687386;font-family:var(--font-ui);font-size:11px;font-weight:400;line-height:normal;letter-spacing:normal;font-synthesis:none;cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease,background-color .16s ease,color .16s ease}
.inventory-ops-page .inventory-org-head button:hover{border-color:#9b93e9;background:#faf9ff;color:#5b4dde;box-shadow:0 5px 12px rgba(40,47,67,.09);transform:translateY(-1px)}
.inventory-ops-page .inventory-org-head button:focus-visible{border-color:#8b83e9;background:#faf9ff;color:#5146c8;box-shadow:0 0 0 3px rgba(99,85,232,.12),0 5px 12px rgba(40,47,67,.09);outline:0}
.inventory-ops-page .inventory-org-head button:active{transform:translateY(0);box-shadow:none}
.inventory-ops-page .inventory-org-search input{font-size:12px}
.inventory-ops-page .inventory-org-row{min-height:0;grid-template-columns:12px 30px minmax(0,1fr);gap:8px;padding:9px 7px 9px calc(7px + var(--org-depth)*18px);border-radius:8px}
.inventory-ops-page .inventory-org-toggle{width:12px;font-size:17px;line-height:12px}
.inventory-ops-page .inventory-org-icon{width:30px;height:30px;border-radius:7px;font-size:14px}
.inventory-ops-page .inventory-org-icon.headquarters{width:24px;height:24px;align-self:start;margin-top:-2px}
.inventory-ops-page .inventory-org-node strong{font-size:12px;font-weight:600;line-height:normal}
.inventory-ops-page .inventory-org-node small{margin-top:2px;font-size:10px;font-weight:400;line-height:normal}
.inventory-ops-page .inventory-org-row em{font-size:10px;font-weight:400}
.inventory-ops-page .inventory-org-tree{max-height:min(620px,calc(100dvh - 300px))}

/* Keep the requested vertical split, but remove the horizontal header rules. */
.inventory-ops-page .inventory-org-head,
.inventory-ops-page .inventory-bottle-card .ops-card-head{border-bottom:0!important}
.inventory-ops-page .inventory-bottle-card .inventory-bottle-filters{border-bottom:0}
.inventory-ops-page .inventory-bottle-card>.inventory-metrics{border-top:0}

@media(max-width:850px){
  .inventory-ops-page .inventory-directory-layout{grid-template-columns:1fr}
  .inventory-ops-page .inventory-org-tree{max-height:360px}
}

/* Inventory keeps its own metrics, but reuses Device Management's KPI card
 * structure and visual treatment. */
.inventory-ops-page .inventory-bottle-card>.device-metrics{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:8px 24px 14px;padding:0;border:0;border-radius:0;background:transparent;overflow:visible}
.inventory-ops-page .inventory-bottle-card>.device-metrics .device-history-kpi{position:relative;display:flex;min-width:0;min-height:96px;flex-direction:column;justify-content:space-between;overflow:visible;padding:15px 16px;border:1px solid #d5deea;border-radius:10px;background:linear-gradient(180deg,#fff 0%,#fbfcff 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.96),0 6px 14px rgba(34,48,72,.10),0 1px 3px rgba(34,48,72,.07);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.inventory-ops-page .inventory-bottle-card>.device-metrics .device-history-kpi:hover{transform:translateY(-2px);border-color:#c4d0df;box-shadow:inset 0 1px 0 rgba(255,255,255,.98),0 10px 20px rgba(34,48,72,.14),0 2px 5px rgba(34,48,72,.08)}
.inventory-ops-page .inventory-bottle-card>.device-metrics .history-kpi-head{display:flex;min-width:0;align-items:center;gap:9px}
.inventory-ops-page .inventory-bottle-card>.device-metrics .history-kpi-icon{position:relative;display:block;width:32px;height:32px;flex:0 0 32px;border:1px solid #e2e3e5;border-radius:8px;background:#f7f7f5 center/76% 76% no-repeat}
.inventory-ops-page .inventory-bottle-card>.device-metrics .history-kpi-icon::before{display:none!important;content:none!important}
.inventory-ops-page .inventory-bottle-card>.device-metrics .history-kpi-label{display:block!important;min-width:0;overflow:hidden;color:#687487!important;font-size:12px!important;font-weight:600!important;letter-spacing:0;text-overflow:ellipsis;white-space:nowrap}
.inventory-ops-page .inventory-bottle-card>.device-metrics .history-kpi-metric{display:flex;min-width:0;align-items:center;flex-direction:column;gap:3px;padding-left:0;padding-right:0}
.inventory-ops-page .inventory-bottle-card>.device-metrics .history-kpi-metric>strong{margin:0;padding:0;color:#596579;font-size:18px;font-weight:400;letter-spacing:0;line-height:1.12;font-variant-numeric:tabular-nums;white-space:nowrap}
.inventory-ops-page .inventory-bottle-card>.device-metrics .inventory-kpi-value{display:flex;width:100%;align-items:baseline;justify-content:center;gap:0}
.inventory-ops-page .inventory-bottle-card>.device-metrics .inventory-kpi-value-part{display:inline-flex;align-items:baseline;gap:2px}
.inventory-ops-page .inventory-bottle-card>.device-metrics .inventory-kpi-unit{color:#687487;font-size:8px;font-weight:400;line-height:1}
.inventory-ops-page .inventory-bottle-card>.device-metrics .inventory-kpi-separator{display:inline-block;margin:0 3px;color:#596579;font-style:normal}
.inventory-ops-page .inventory-bottle-card>.device-metrics .history-kpi-secondary{position:static;display:block;width:100%;max-width:100%;min-width:0;overflow:visible;color:#687487;font-size:8px;letter-spacing:-.15px;line-height:1.2;text-align:center;text-overflow:clip;white-space:nowrap}
.inventory-ops-page .inventory-bottle-card>.device-metrics .history-kpi-inventory .history-kpi-icon{background-image:url("./assets/icons/inventory-kpi.svg")}
.inventory-ops-page .inventory-bottle-card>.device-metrics .history-kpi-bottle .history-kpi-icon{background-image:url("./assets/icons/inventory-kpi-bottle.svg?v=20260827-01");background-size:76% 76%}
.inventory-ops-page .inventory-bottle-card>.device-metrics .history-kpi-developer .history-kpi-icon{background-image:none}
.inventory-ops-page .inventory-bottle-card>.device-metrics .history-kpi-developer .history-kpi-icon::before{display:block!important;content:""!important;position:absolute;inset:7px;background:#2c2c2c;-webkit-mask:url("./assets/icons/history-kpi-developer-onefive-new.svg?v=1") center/contain no-repeat;mask:url("./assets/icons/history-kpi-developer-onefive-new.svg?v=1") center/contain no-repeat}
.inventory-ops-page .inventory-bottle-card>.device-metrics .history-kpi-location .history-kpi-icon{background-image:url("./assets/icons/history-status.svg")}
@media(max-width:1200px){.inventory-ops-page .inventory-bottle-card>.device-metrics{grid-template-columns:repeat(5,150px);overflow:auto;padding-bottom:2px}}
@media(max-width:900px){.inventory-ops-page .inventory-bottle-card>.device-metrics{margin:14px 16px 12px}}
@media(max-width:560px){.inventory-ops-page .inventory-bottle-card>.device-metrics{grid-template-columns:repeat(5,145px)}}

/* Enlarge the KPI cards vertically without changing the five-column width. */
@media(min-width:1201px){.inventory-ops-page .inventory-bottle-card>.device-metrics{grid-template-columns:repeat(5,minmax(0,1fr));overflow:visible;padding-bottom:0}}

/* Inventory dye cards replace the bottle table while keeping the current
 * organization scope and filters as the source of truth. */
.inventory-ops-page .inventory-dye-card-wrap{min-height:0;overflow:auto;background:#fff}
.inventory-ops-page .inventory-dye-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-content:start;align-items:start;gap:10px;padding:12px}
.inventory-ops-page .inventory-dye-card{position:relative;display:flex;align-self:start;box-sizing:border-box;width:100%;height:194px;min-width:0;min-height:194px;flex-direction:column;gap:10px;border:1px solid #d8e0ea;border-radius:9px;background:linear-gradient(180deg,#fff 0%,#fafbfe 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.96),0 4px 10px rgba(31,42,64,.10),0 1px 2px rgba(31,42,64,.06);padding:12px 14px;color:#344156;text-align:left;cursor:pointer;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.inventory-ops-page .inventory-dye-card:hover,.inventory-ops-page .inventory-dye-card:focus-visible{border-color:#a99eff;box-shadow:inset 0 1px 0 rgba(255,255,255,.96),0 10px 22px rgba(82,68,201,.16),0 2px 4px rgba(31,42,64,.08);outline:0;transform:translateY(-2px)}
.inventory-ops-page .inventory-dye-card.is-loading{border-color:#edf0f5;background:linear-gradient(100deg,#fff,#f3f5f9,#fff);background-size:200% 100%;animation:ops-loading 1.3s linear infinite;cursor:default}
.inventory-ops-page .inventory-dye-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.inventory-ops-page .inventory-dye-card-head>div{min-width:0}
.inventory-ops-page .inventory-dye-card-code{display:flex;align-items:center;gap:7px;min-height:36px}
.inventory-ops-page .inventory-dye-bottle-icon{display:block;width:auto;height:34px;flex:0 0 auto;object-fit:contain}
.inventory-ops-page .inventory-dye-card span,.inventory-ops-page .inventory-dye-card strong,.inventory-ops-page .inventory-dye-card em{white-space:nowrap}
.inventory-ops-page .inventory-dye-card-head span,.inventory-ops-page .inventory-dye-card-stats span,.inventory-ops-page .inventory-dye-card-foot>span{display:block;color:#8b95a6;font-size:10px;line-height:1.2}
.inventory-ops-page .inventory-dye-card-head strong{display:block;margin-top:4px;color:#172033;font-size:18px;font-weight:700;letter-spacing:.2px}
.inventory-ops-page .inventory-dye-card-head>.inventory-status-mark{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:26px;padding:0 8px;border:1px solid #cfe2d6;border-radius:6px;background:linear-gradient(180deg,#fff 0%,#eef8f1 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.96),0 1px 2px rgba(38,122,80,.11);color:#3e8b60;font-size:10px;font-weight:700;line-height:1;letter-spacing:0}
.inventory-ops-page .inventory-dye-card-head>.inventory-status-mark.in_stock,.inventory-ops-page .inventory-dye-card-head>.inventory-status-mark.installed{border-color:#cfe2d6;background:linear-gradient(180deg,#fff 0%,#eef8f1 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.96),0 1px 2px rgba(38,122,80,.11);color:#3e8b60}
.inventory-ops-page .inventory-dye-card-head>.inventory-status-mark i{width:5px;height:5px;border:0;border-radius:50%;background:#43aa72;box-shadow:none}
.inventory-ops-page .inventory-dye-card-head>.inventory-status-mark.shortage,.inventory-ops-page .inventory-dye-card-head>.inventory-status-mark.empty,.inventory-ops-page .inventory-dye-card-head>.inventory-status-mark.discarded{border-color:#efc5bd;background:linear-gradient(180deg,#fff 0%,#fff0ed 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.97),0 1px 2px rgba(181,73,61,.11);color:#bd6257}
.inventory-ops-page .inventory-dye-card-head>.inventory-status-mark.shortage i,.inventory-ops-page .inventory-dye-card-head>.inventory-status-mark.empty i,.inventory-ops-page .inventory-dye-card-head>.inventory-status-mark.discarded i{background:#df796d;box-shadow:none}
.inventory-ops-page .inventory-dye-card-head>.inventory-status-mark.low_stock{border-color:#ead5a8;background:linear-gradient(180deg,#fff 0%,#fff7e7 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.97),0 1px 2px rgba(169,117,33,.1);color:#a87928}
.inventory-ops-page .inventory-dye-card-head>.inventory-status-mark.low_stock i{background:#dda94a;box-shadow:none}
.inventory-ops-page .inventory-dye-card-stats{display:flex;align-items:flex-start;justify-content:space-between;gap:0}
.inventory-ops-page .inventory-dye-card-stats>div{min-width:0;text-align:center}
.inventory-ops-page .inventory-dye-card-stats strong{display:block;margin-top:4px;overflow:hidden;color:#344156;font-size:12px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}
.inventory-ops-page .inventory-dye-card-foot{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;column-gap:8px;margin-top:auto}
.inventory-ops-page .inventory-dye-card-foot>span{grid-column:1;grid-row:1}
.inventory-ops-page .inventory-dye-card-foot>strong{grid-column:1;grid-row:2}
.inventory-ops-page .inventory-dye-card-foot>button{grid-column:2;grid-row:1 / span 2;align-self:end}
.inventory-ops-page .inventory-dye-card-foot strong{display:block;min-width:0;margin-top:3px;overflow:hidden;color:#596579;font-size:9px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}
.inventory-ops-page .inventory-dye-detail-link{margin-left:auto;border:0;background:transparent;color:#5b4dde;font-size:9px;font-weight:600;white-space:nowrap;cursor:pointer;padding:0}
.inventory-ops-page .inventory-dye-card-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:auto;margin-bottom:8px;padding-top:0;border-top:0}
.inventory-ops-page .inventory-dye-action{height:30px;border:1px solid #c9c7f2;border-radius:6px;background:#fff;color:#344156;font-family:inherit;font-size:10px;font-weight:600;line-height:1;display:flex;align-items:center;justify-content:center;text-align:center;padding:0;white-space:nowrap;cursor:pointer;transition:background .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease}
.inventory-ops-page .inventory-dye-action:hover,.inventory-ops-page .inventory-dye-action:focus-visible{outline:0;transform:translateY(-1px);box-shadow:0 3px 8px rgba(82,68,201,.12)}
.inventory-ops-page .inventory-dye-action--inbound{border-color:var(--primary);background:var(--primary);color:#fff}
.inventory-ops-page .inventory-dye-action--inbound:hover,.inventory-ops-page .inventory-dye-action--inbound:focus-visible{background:#5548d3;border-color:#5548d3}
.inventory-ops-page .inventory-dye-action--outbound:hover,.inventory-ops-page .inventory-dye-action--outbound:focus-visible{border-color:#a99eff;background:#faf9ff;color:#5145c7}
.inventory-ops-page .inventory-dye-card-empty{grid-column:1/-1;padding:70px 20px;text-align:center}
.inventory-ops-page .inventory-card-section{border-bottom:1px solid #edf0f5}.inventory-ops-page .inventory-card-section:last-child{border-bottom:0}.inventory-ops-page .inventory-card-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:14px 14px 2px}.inventory-ops-page .inventory-card-section-head h3{margin:0;color:#263247;font-size:14px;font-weight:700}.inventory-ops-page .inventory-card-section-head span{color:#929cad;font-size:10px}.inventory-ops-page .inventory-bag-section{background:#fcfcff}.inventory-ops-page .inventory-bag-card{height:194px;min-height:194px}.inventory-ops-page .inventory-bag-card .inventory-dye-card-code{gap:8px}.inventory-ops-page .inventory-bag-card .inventory-dye-card-code strong{font-size:17px}.inventory-ops-page .inventory-bag-ratio-icon{display:inline-grid;place-items:center;width:30px;height:30px;border:1px solid #d7d2fb;border-radius:8px;background:#f3f1ff;color:#5b50d3;font-size:16px;font-weight:700;line-height:1}.inventory-ops-page .inventory-bag-unit-label{display:block;margin:2px 0 0 38px;color:#8d96a7;font-size:9px}.inventory-ops-page .inventory-bag-operation-label{grid-column:2;grid-row:1;align-self:end;color:#5d55c9;font-size:9px;text-align:right}.inventory-bag-operation-modal{width:min(600px,100%)}.inventory-bag-operation-modal .ops-modal-head h3{display:flex;align-items:center;min-height:36px}.inventory-bag-quantity-field,.inventory-bag-note-field{display:grid;gap:7px;color:#5f6c80;font-size:11px}.inventory-bag-quantity-field input,.inventory-bag-note-field textarea{box-sizing:border-box;width:100%;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--ink);padding:10px 11px;font:inherit;outline:0}.inventory-bag-quantity-field input{height:43px}.inventory-bag-quantity-field input:focus,.inventory-bag-note-field textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px #6355e81a}.inventory-bag-quantity-help{display:block;margin-top:7px;color:#929cad;font-size:10px}.inventory-bag-note-field{margin-top:14px}.inventory-bag-note-field textarea{min-height:74px;resize:vertical}
.inventory-dye-detail-backdrop{display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(23,32,51,.42)}
.inventory-detail-modal-open{overflow:hidden}
.inventory-dye-detail-modal{box-sizing:border-box;width:min(980px,calc(100vw - 48px));height:min(760px,calc(100vh - 48px));max-height:calc(100vh - 48px);display:flex;flex-direction:column;overflow:hidden;border:1px solid #e4e8f1;border-radius:12px;padding:24px 22px 18px;background:#fff;box-shadow:0 24px 70px rgba(17,24,39,.24)}
.inventory-dye-detail-modal .ops-modal-head{flex:none;margin:0 -22px 18px;padding:0 22px 16px;border-bottom:1px solid #eef0f5}
.inventory-dye-detail-modal .ops-modal-head h3{display:flex;align-items:center;min-height:36px}
.inventory-dye-detail-title-line{display:inline-flex;min-width:0;align-items:center;gap:9px}
.inventory-dye-detail-title-line>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.inventory-dye-detail-title-icon{display:block;width:auto;height:34px;flex:0 0 auto;object-fit:contain}
.inventory-dye-detail-modal .ops-modal-head>button:focus{outline:0!important;border:0!important;box-shadow:none!important;-webkit-appearance:none;appearance:none}
.inventory-dye-detail-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:14px}
.inventory-dye-detail-summary>div{min-width:0;border:1px solid #edf0f5;border-radius:8px;background:#fafbfc;padding:10px}
.inventory-dye-detail-summary span{display:block;color:#929cad;font-size:9px}
.inventory-dye-detail-summary strong{display:block;margin-top:6px;color:#344156;font-size:13px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.inventory-dye-detail-list{display:grid;min-height:0;gap:6px;overflow:auto;padding-right:2px}
.inventory-dye-detail-list-head,.inventory-dye-bottle-row{display:grid;grid-template-columns:1.3fr 1fr 1.4fr .8fr .9fr;gap:8px;align-items:center}
.inventory-dye-detail-list-head{position:sticky;top:0;z-index:1;padding:3px 10px 5px;background:#fff;color:#929cad;font-size:9px}
.inventory-dye-bottle-row{width:100%;min-height:58px;border:1px solid #edf0f5;border-radius:8px;background:#fff;padding:9px 10px;color:#344156;text-align:left;cursor:pointer;transition:border-color .16s ease,background .16s ease,transform .16s ease}
.inventory-dye-bottle-row:hover,.inventory-dye-bottle-row:focus-visible{border-color:#b7afff;background:#faf9ff;outline:0;transform:translateY(-1px)}
.inventory-dye-bottle-row>strong,.inventory-dye-bottle-row>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.inventory-dye-bottle-row>strong{font:600 10px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace}
.inventory-dye-bottle-row>span{color:#596579;font-size:10px}
.inventory-dye-bottle-row .inventory-weight{min-width:0}
.inventory-dye-bottle-row .inventory-weight>span{font-size:9px}
.inventory-dye-bottle-row .activation-badge,.inventory-dye-bottle-row .inventory-status-mark{justify-self:start}
@media(max-width:1200px){.inventory-ops-page .inventory-dye-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.inventory-ops-page .inventory-dye-card-grid{grid-template-columns:1fr;padding:12px}.inventory-dye-detail-backdrop{padding:12px}.inventory-dye-detail-modal{width:calc(100vw - 24px);height:calc(100vh - 24px);max-height:calc(100vh - 24px);padding:18px 14px 14px;border-radius:10px}.inventory-dye-detail-modal .ops-modal-head{margin:0 -14px 16px;padding:0 14px 14px}.inventory-dye-detail-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.inventory-dye-detail-list-head{display:none}.inventory-dye-bottle-row{grid-template-columns:1fr 1fr;gap:6px 10px}.inventory-dye-bottle-row>strong{grid-column:1/-1}.inventory-dye-bottle-row>span:nth-child(3){grid-column:1/-1}.inventory-dye-bottle-row .inventory-weight,.inventory-dye-bottle-row .activation-badge,.inventory-dye-bottle-row .inventory-status-mark{justify-self:start}}
.inventory-card-operation-modal{width:min(660px,100%)}
.inventory-card-operation-modal .ops-modal-head h3{display:flex;align-items:center;min-height:36px}.inventory-card-operation-title-line{display:inline-flex;align-items:center;gap:9px}.inventory-card-operation-title-icon{display:block;width:auto;height:32px;flex:0 0 auto;object-fit:contain}
.inventory-card-operation-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:18px;border:1px solid #dedafc;border-radius:9px;background:#f7f5ff;padding:12px}
.inventory-card-operation-summary>div{min-width:0}.inventory-card-operation-summary span,.inventory-card-operation-summary strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.inventory-card-operation-summary span{color:#8b84af;font-size:9px}.inventory-card-operation-summary strong{margin-top:6px;color:#344156;font-size:12px}
.inventory-card-scan-mode-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px;color:#5f6c80;font-size:11px}.inventory-card-scan-switch{display:inline-flex;align-items:center;justify-content:center;min-height:30px;border:1px solid #d2cdfc;border-radius:8px;background:#fff;color:#5b4dde;font-family:inherit;font-size:10px;font-weight:600;line-height:1;cursor:pointer;padding:0 11px;box-shadow:0 1px 2px rgba(82,68,201,.06);transition:background .16s ease,border-color .16s ease,color .16s ease}.inventory-card-scan-switch:hover{border-color:#a99eff;background:#f8f7ff;color:#4f42c4}.inventory-card-scan-switch:focus-visible{border-color:#8f84ff;outline:2px solid #d9d5ff;outline-offset:2px}
.inventory-card-scan-panel[hidden]{display:none}.inventory-card-scan-panel--mobile{border:1px solid #bcb5ff;border-radius:9px;background:#f7f5ff;padding:14px}.inventory-card-scan-handoff{display:grid;grid-template-columns:124px minmax(0,1fr);align-items:center;gap:18px}.inventory-card-scan-code{display:grid;place-items:center;width:124px;height:124px;border:1px solid #e1ddff;border-radius:10px;background:#fff}.inventory-card-scan-svg{display:block;width:108px;height:108px}.inventory-card-scan-copy{display:grid;gap:7px;min-width:0}.inventory-card-scan-copy>strong{color:#344156;font-size:13px}.inventory-card-scan-copy>span{color:#6d7890;font-size:10px;line-height:16px}.inventory-card-scan-status{display:inline-flex;align-items:center;gap:6px;color:#7067bd!important;font-weight:600}.inventory-card-scan-status i{width:8px;height:8px;border:2px solid #b5adff;border-radius:50%;background:#7566f0}.inventory-card-scan-status.is-ready{color:#249c68!important}.inventory-card-scan-status.is-ready i{border-color:#8bdbb5;background:#22b573}.inventory-card-scan-status.is-expired{color:#c97d18!important}.inventory-card-scan-status.is-expired i{border-color:#f0c77e;background:#eaa12d}.inventory-card-scan-result{overflow:hidden;color:#435067!important;font:600 10px/16px ui-monospace,SFMono-Regular,Consolas,monospace;text-overflow:ellipsis;white-space:nowrap}.inventory-card-scan-note{display:block;margin-top:11px;color:#7f8998;font-size:10px;line-height:16px}.inventory-card-scan-panel--manual{padding-top:3px}
.inventory-card-qr-field{display:grid;gap:7px;color:#5f6c80;font-size:11px}.inventory-card-qr-field>span{position:relative;display:block}.inventory-card-qr-field input{box-sizing:border-box;width:100%;height:43px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--ink);padding:0 42px 0 11px;font:inherit;outline:0}.inventory-card-qr-field input:focus{border-color:var(--primary);box-shadow:0 0 0 3px #6355e81a}.inventory-card-qr-field i{position:absolute;right:13px;top:50%;width:14px;height:14px;transform:translateY(-50%);border:1.5px solid #8994a6;border-radius:3px;pointer-events:none}.inventory-card-qr-field i:before,.inventory-card-qr-field i:after{content:"";position:absolute;background:#fff}.inventory-card-qr-field i:before{inset:3px -2px}.inventory-card-qr-field i:after{inset:-2px 3px}.inventory-card-qr-help{display:block;margin-top:7px;color:#929cad;font-size:10px}.inventory-card-operation-preview{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:13px;border:1px solid #edf0f5;border-radius:8px;background:#fafbfc;padding:10px 12px}.inventory-card-operation-preview span{color:#929cad;font-size:10px}.inventory-card-operation-preview strong{color:#435067;font-size:10px;font-weight:600;text-align:right}.inventory-card-operation-preview strong.is-error{color:#d84f58}.inventory-card-operation-note{margin-top:13px;border:1px solid #dcd8ff;border-radius:8px;background:#f7f5ff;color:#70698f;padding:10px 12px;font-size:10px;line-height:17px}
@media(max-width:760px){.inventory-card-operation-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.inventory-card-operation-modal{width:calc(100vw - 24px)}.inventory-card-scan-handoff{grid-template-columns:1fr;justify-items:center}.inventory-card-scan-copy{text-align:center}.inventory-card-scan-status{justify-content:center}.inventory-card-scan-result{text-align:center}}

.inventory-ops-page .inventory-threshold-button{position:relative;display:inline-flex;align-items:center;justify-content:center;height:32px;margin-left:auto;margin-right:8px;border:1px solid #d9d3ff;border-radius:7px;background:#fff;color:#303b4d;font-family:var(--font-ui);font-size:12px;font-weight:400;line-height:18px;padding:0 36px 0 12px;box-shadow:inset 0 1px 0 rgba(255,255,255,.98),0 2px 5px rgba(70,58,160,.10);cursor:pointer;transition:border-color .16s ease,background-color .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease}
.inventory-ops-page .inventory-bottle-filters .inventory-threshold-button{box-sizing:border-box;width:100%;height:38px;margin:0;padding:0 8px;white-space:nowrap;letter-spacing:-.2px}
.inventory-ops-page .inventory-threshold-button:hover,.inventory-ops-page .inventory-threshold-button:focus-visible{border-color:#a99eff;background:#fff;color:#5b4dde;box-shadow:inset 0 1px 0 rgba(255,255,255,.98),0 7px 14px rgba(70,58,160,.16);outline:0;transform:translateY(-1px)}
.inventory-ops-page .inventory-threshold-button>span{display:inline;color:inherit;font:inherit;margin:0}
.inventory-ops-page .inventory-threshold-button:disabled{border-color:#d9d3ff;background:#fff;color:#303b4d;opacity:1;cursor:default;transform:none}
.inventory-ops-page .inventory-threshold-button i{position:absolute;top:50%;right:10px;font-style:normal;font-size:13px;font-weight:400;line-height:1;color:#6355e8;transform:translateY(-50%)}
.inventory-threshold-backdrop{display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(23,32,51,.42)}
.inventory-threshold-modal{box-sizing:border-box;width:min(470px,calc(100vw - 32px));border:1px solid #e4e8f1;border-radius:12px;background:#fff;padding:22px 22px 18px;box-shadow:0 24px 70px rgba(17,24,39,.24)}
.inventory-threshold-modal .ops-modal-head{margin:0 -22px 18px;padding:0 22px 16px;border-bottom:1px solid #eef0f5}
.inventory-threshold-modal .ops-modal-head h3{margin:0;color:#1f2a3d;font-size:16px}
.inventory-threshold-modal .ops-modal-head p{margin:6px 0 0;color:#929cad;font-size:10px}
.inventory-threshold-modal .ops-modal-head>button{border:0;background:transparent;color:#7f8999;font-size:22px;line-height:1;cursor:pointer}
.inventory-threshold-scope{display:grid;gap:6px;margin-bottom:17px;border:1px solid #edf0f5;border-radius:8px;background:#fafbfc;padding:11px 12px}
.inventory-threshold-scope span{color:#929cad;font-size:9px}.inventory-threshold-scope strong{color:#344156;font-size:12px;font-weight:650}
.inventory-threshold-field{display:grid;gap:7px;color:#5f6c80;font-size:11px}.inventory-threshold-field>div{display:flex;height:42px;border:1px solid #d9dee7;border-radius:7px;background:#fff;overflow:hidden}.inventory-threshold-field>div:focus-within{border-color:#8f84ff;box-shadow:0 0 0 3px rgba(129,117,255,.12)}.inventory-threshold-field input{width:100%;min-width:0;border:0;outline:0;padding:0 11px;color:#344156;font:600 14px/1 inherit}.inventory-threshold-field b{display:grid;place-items:center;min-width:42px;border-left:1px solid #edf0f5;color:#929cad;font-size:10px;font-weight:400}.inventory-threshold-field small{color:#929cad;font-size:9px;line-height:16px}.inventory-threshold-inherit{margin:13px 0 0;border:1px solid #dcd8ff;border-radius:7px;background:#f7f5ff;color:#70698f;padding:9px 10px;font-size:10px;line-height:16px}.inventory-threshold-modal .ops-form-error{min-height:18px;margin-top:9px;color:#d84f58;font-size:10px}.inventory-threshold-modal .ops-modal-actions{display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:8px;margin-top:9px}.inventory-threshold-modal .ops-modal-actions>button:first-child{border:0;background:transparent;color:#7265d7;font-size:10px;cursor:pointer;padding:0}.inventory-threshold-modal .ops-modal-actions>button:first-child:hover{text-decoration:underline}.inventory-threshold-modal .ops-modal-actions>span{min-width:0}
@media(max-width:900px){.inventory-ops-page .inventory-bottle-filters .inventory-threshold-button{width:100%;margin:0}}
@media(max-width:540px){.inventory-ops-page .inventory-threshold-button{margin-left:0;margin-right:0}.inventory-threshold-modal{width:calc(100vw - 24px);padding:18px 14px 14px}.inventory-threshold-modal .ops-modal-head{margin:0 -14px 16px;padding:0 14px 14px}.inventory-threshold-modal .ops-modal-actions{grid-template-columns:1fr 1fr}.inventory-threshold-modal .ops-modal-actions>span{display:none}.inventory-threshold-modal .ops-modal-actions>button:first-child{grid-column:1/-1;justify-self:start}}

/* The developer cards share the page canvas; no section fill or divider. */
.inventory-ops-page .inventory-card-section{border-bottom:0}
.inventory-ops-page .inventory-bag-section{background:#fff}
.inventory-ops-page .inventory-bag-card{gap:2px}
.inventory-ops-page .inventory-bag-card .inventory-dye-card-head>div{min-width:0;flex:1 1 auto;overflow:hidden}
.inventory-ops-page .inventory-bag-card .inventory-dye-card-code{min-width:0;overflow:hidden}
.inventory-ops-page .inventory-bag-card .inventory-dye-card-code strong{min-width:0;overflow:visible;text-overflow:clip;white-space:nowrap;font-size:14px;letter-spacing:0}
.inventory-ops-page .inventory-bag-card .inventory-dye-card-head>.inventory-status-mark{flex:0 0 auto}
.inventory-ops-page .inventory-bag-product-icon{display:block;width:36px;height:42px;flex:0 0 auto;object-fit:contain;object-position:center}
.inventory-bag-operation-modal .inventory-bag-product-icon{width:30px;height:36px}

/* Align the device list, tabs, and table band directly with the organization divider. */
.device-ops-page.device-history-page .device-history-panel{margin-left:0!important}
.device-ops-page.device-history-page .device-history-panel .device-history-panel-head{padding-left:24px!important}
.device-ops-page.device-history-page .device-history-panel .device-history-tabs{transform:none!important}
.device-ops-page.device-history-page .device-history-panel > [data-device-tab-panel] > .device-history-table-wrap{
  position:relative!important;
  left:0!important;
  width:100%!important;
  margin-left:0!important;
  margin-right:0!important;
}
.device-ops-page.device-history-page .device-history-panel .device-table thead th:first-child{
  background:#f7f8fa!important;
  border-bottom:1px solid #e8ebf0!important;
}
.device-ops-page.device-history-page .device-history-panel .device-table tbody td.device-row-expander{
  background:#fff!important;
  border-bottom:1px solid #eef0f4!important;
}

/* Device and inventory detail dialogs use the same close affordance as
 * Formula History. Form-operation dialogs keep their existing controls. */
:is(.device-detail-modal-close,.inventory-bottle-detail-modal .ops-modal-head>button,.inventory-dye-detail-modal .ops-modal-head>button){
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  padding:0;
  border:1px solid #d8d2ff;
  border-radius:8px;
  background:#fff;
  color:#647188;
  font-size:22px;
  line-height:1;
  cursor:pointer;
  transition:transform .16s ease,background .16s ease,border-color .16s ease,color .16s ease;
}
:is(.device-detail-modal-close,.inventory-bottle-detail-modal .ops-modal-head>button,.inventory-dye-detail-modal .ops-modal-head>button):hover{
  transform:translateY(-1px);
  border-color:#bcb3ff;
  background:#f5f3ff;
  color:#5e52cf;
}
:is(.inventory-bottle-detail-modal .ops-modal-head>button,.inventory-dye-detail-modal .ops-modal-head>button):focus{
  outline:0;
  border:1px solid #d8d2ff !important;
  box-shadow:none;
}
body[data-theme="dark"] :is(.device-detail-modal-close,.inventory-bottle-detail-modal .ops-modal-head>button,.inventory-dye-detail-modal .ops-modal-head>button){
  border-color:#6156aa;
  background:#17142c;
  color:#c9c0ff;
}
body[data-theme="dark"] :is(.device-detail-modal-close,.inventory-bottle-detail-modal .ops-modal-head>button,.inventory-dye-detail-modal .ops-modal-head>button):hover{
  border-color:#a99cff;
  background:#29254b;
  color:#eeeaff;
}

.inventory-ops-page .inventory-bottle-details-heading{display:inline-flex;align-items:center;gap:7px;margin:0}
.inventory-ops-page .inventory-bottle-card .ops-card-head .inventory-bottle-details-heading-label{display:inline;position:relative;top:4px;margin-top:0;color:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;letter-spacing:inherit;text-shadow:inherit}
.inventory-ops-page .inventory-bottle-details-heading-icon{display:inline-block;width:19px;height:19px;flex:0 0 19px;background:#2c2c2c;-webkit-mask:url("./assets/icons/inventory-bottle-details.svg?v=1") center/contain no-repeat;mask:url("./assets/icons/inventory-bottle-details.svg?v=1") center/contain no-repeat}
body[data-theme="dark"] .inventory-ops-page .inventory-bottle-details-heading-icon{background:#e7edf6}
