.inventory-workbench-tabs{display:flex;gap:10px;margin-bottom:16px;padding:10px;width:max-content;max-width:100%}
.inventory-workbench-tabs button{min-width:150px}
.inventory-query-shell{display:grid;gap:16px}
.inventory-query-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 26px;border-radius:18px;background:linear-gradient(132deg,#0b3d30 0%,#126448 56%,#218463 100%);color:#fff;box-shadow:0 14px 34px rgba(10,72,52,.18)}
.inventory-query-hero h3{margin:4px 0 7px;font-size:24px}.inventory-query-hero p{margin:0;max-width:720px;color:rgba(255,255,255,.78);line-height:1.6}.inventory-query-hero .eyebrow{color:#9de1c4}
.inventory-query-sync-controls{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap;min-width:310px}.inventory-query-sync-controls>span{width:100%;color:#c9eadc;font-size:12px;text-align:right}.inventory-query-sync-controls select{min-width:125px;border-color:rgba(255,255,255,.24);background:#fff}.inventory-query-sync-controls .primary{background:#fff;color:#0f6649;border-color:#fff}.inventory-query-sync-controls .primary:hover{background:#eaf7f1}
.inventory-query-source-badges{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.inventory-query-source-badge{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid #dbe8e2;border-radius:999px;background:#fff;color:#4b665c;font-size:11px;font-weight:800}.inventory-query-source-badge i{width:8px;height:8px;border-radius:50%;background:#b5c4be}.inventory-query-source-badge.ok i{background:#1b9a66}.inventory-query-source-badge.stale i{background:#e5a11b}.inventory-query-source-badge.error i,.inventory-query-source-badge.closed i{background:#d35a53}.inventory-query-source-badge.syncing i{background:#3887d6;animation:inventory-pulse 1s infinite alternate}@keyframes inventory-pulse{to{opacity:.25}}
.inventory-query-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.inventory-query-metric{padding:16px 18px;border:1px solid #dce9e3;border-radius:15px;background:#fff;box-shadow:0 7px 20px rgba(24,73,55,.06)}.inventory-query-metric span,.inventory-query-metric small{display:block;color:#6b8078;font-size:11px}.inventory-query-metric strong{display:block;margin:6px 0 4px;color:#123d2e;font-size:25px}.inventory-query-metric small{line-height:1.45}
.inventory-query-crm-board{display:grid;gap:12px}.inventory-query-crm-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.inventory-query-crm-head h3{margin:4px 0 0}.inventory-query-crm-head>span{padding:7px 10px;border-radius:999px;background:#ddf3e8;color:#176a4c;font-size:11px;font-weight:800}.inventory-query-crm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.inventory-query-crm-card{overflow:hidden;border:1px solid #cfe3da;border-radius:16px;background:#fff;box-shadow:0 8px 22px rgba(21,91,65,.08)}.inventory-query-crm-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 17px;background:#f1f8f5}.inventory-query-crm-card h4{margin:0 0 4px;color:#173d31}.inventory-query-crm-card header small{color:#668077}.inventory-query-crm-kpis{display:flex;gap:9px;text-align:right}.inventory-query-crm-kpis span{min-width:48px;color:#6b8078;font-size:9px}.inventory-query-crm-kpis strong{display:block;margin-top:3px;color:#176b4d;font-size:15px}.inventory-query-crm-flavors{max-height:290px;overflow:auto}.inventory-query-crm-row{display:grid;grid-template-columns:minmax(130px,1fr) repeat(var(--warehouse-count),minmax(38px,52px)) 52px 52px;align-items:center;gap:5px;padding:8px 12px;border-top:1px solid #edf2ef;font-size:10px}.inventory-query-crm-row>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.inventory-query-crm-row span{text-align:center}.inventory-query-crm-row .available{padding:4px;border-radius:7px;background:#e2f4eb;color:#13724f;font-weight:900}.inventory-query-crm-cols{position:sticky;top:0;z-index:1;background:#fff;color:#72857d;font-weight:800}.inventory-query-crm-note{margin:0;padding:10px 14px;border-top:1px solid #edf2ef;color:#6c8178;font-size:10px;line-height:1.5}
.inventory-query-crm-row.wh-0{grid-template-columns:minmax(130px,1fr) 52px 52px}.inventory-query-crm-row.wh-1{grid-template-columns:minmax(130px,1fr) repeat(1,minmax(38px,52px)) 52px 52px}.inventory-query-crm-row.wh-2{grid-template-columns:minmax(130px,1fr) repeat(2,minmax(38px,52px)) 52px 52px}.inventory-query-crm-row.wh-3{grid-template-columns:minmax(130px,1fr) repeat(3,minmax(38px,52px)) 52px 52px}.inventory-query-crm-row.wh-4{grid-template-columns:minmax(130px,1fr) repeat(4,minmax(38px,52px)) 52px 52px}.inventory-query-crm-row.wh-5{grid-template-columns:minmax(130px,1fr) repeat(5,minmax(38px,52px)) 52px 52px}.inventory-query-crm-row.wh-6{grid-template-columns:minmax(130px,1fr) repeat(6,minmax(38px,52px)) 52px 52px}.inventory-query-crm-row.wh-7{grid-template-columns:minmax(130px,1fr) repeat(7,minmax(38px,52px)) 52px 52px}.inventory-query-crm-row.wh-8{grid-template-columns:minmax(130px,1fr) repeat(8,minmax(38px,52px)) 52px 52px}.inventory-query-crm-row.wh-9{grid-template-columns:minmax(130px,1fr) repeat(9,minmax(38px,52px)) 52px 52px}.inventory-query-crm-row.wh-10{grid-template-columns:minmax(130px,1fr) repeat(10,minmax(38px,52px)) 52px 52px}.inventory-query-crm-row.wh-11{grid-template-columns:minmax(130px,1fr) repeat(11,minmax(38px,52px)) 52px 52px}.inventory-query-crm-row.wh-12{grid-template-columns:minmax(130px,1fr) repeat(12,minmax(38px,52px)) 52px 52px}
.inventory-query-search-panel{padding:20px}.inventory-query-search-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px}.inventory-query-search-head h3{margin:4px 0 0}.inventory-query-search-head input{width:min(520px,100%);font-size:14px}.inventory-query-chips{display:flex;gap:7px;flex-wrap:wrap;margin:15px 0}.inventory-query-chips button{padding:7px 10px;border:1px solid #cfe1d9;border-radius:999px;background:#f5faf7;color:#2d604e;font-size:11px;cursor:pointer}.inventory-query-chips button:hover{border-color:#5aa88a;background:#e9f6f0}.inventory-query-filters{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr)) auto;align-items:end;gap:12px}.inventory-query-filters label{display:grid;gap:5px;margin:0;color:#587068;font-size:11px;font-weight:800}.inventory-query-checkbox{display:flex!important;align-items:center;gap:7px;padding-bottom:11px;white-space:nowrap}.inventory-query-checkbox input{width:auto}
.inventory-query-view-tabs{display:flex;gap:8px}.inventory-query-view-tabs button{min-width:110px}.inventory-query-view{display:none}.inventory-query-view.active{display:block}.inventory-query-result-summary{margin-bottom:10px;color:#62766e;font-size:12px}.inventory-query-results{display:grid;gap:10px}
.inventory-query-model{overflow:hidden;border:1px solid #dce8e3;border-radius:15px;background:#fff}.inventory-query-model-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;width:100%;padding:15px 18px;border:0;background:#fff;color:inherit;text-align:left;cursor:pointer}.inventory-query-model-head:hover{background:#f7fbf9}.inventory-query-model-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.inventory-query-model-title strong{color:#183f32;font-size:15px}.inventory-query-tag{padding:4px 7px;border-radius:7px;background:#edf5f1;color:#527067;font-size:9px;font-weight:800}.inventory-query-tag.reference{background:#fff1d7;color:#8b6414}.inventory-query-model-sub{display:block;margin-top:5px;color:#6d8179;font-size:10px}.inventory-query-model-counts{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}.inventory-query-status{padding:5px 8px;border-radius:999px;background:#edf2ef;color:#657a71;font-size:10px;font-weight:800}.inventory-query-status.ok{background:#daf2e6;color:#176a4c}.inventory-query-status.warn{background:#fff0cf;color:#916312}.inventory-query-status.bad{background:#ffe2df;color:#a43f38}.inventory-query-model-body{border-top:1px solid #edf2ef}.inventory-query-model-body.hidden{display:none}.inventory-query-model-notes{padding:10px 18px;background:#f9fbfa;color:#61776e;font-size:10px;line-height:1.55}.inventory-query-table-wrap{overflow:auto}.inventory-query-table{width:100%;border-collapse:collapse;min-width:650px}.inventory-query-table th,.inventory-query-table td{padding:9px 12px;border-bottom:1px solid #edf2ef;text-align:left;font-size:10px}.inventory-query-table th{color:#63796f;background:#f7faf8}.inventory-query-table code{font-size:9px}.inventory-query-empty{padding:36px;border:1px dashed #cbded5;border-radius:15px;background:#f8fbf9;color:#70837b;text-align:center}
.inventory-query-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.inventory-query-summary-card,.inventory-query-source-card{padding:18px;border:1px solid #dbe8e2;border-radius:15px;background:#fff}.inventory-query-summary-card h3,.inventory-query-source-card h3{margin:0 0 12px}.inventory-query-summary-list{display:grid;gap:8px}.inventory-query-summary-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 10px;border-radius:9px;background:#f6faf8}.inventory-query-summary-row span{color:#6c8178;font-size:10px}.inventory-query-sources{display:grid;gap:12px}.inventory-query-source-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.inventory-query-source-head a{max-width:45%;color:#26785b;font-size:10px;overflow-wrap:anywhere}.inventory-query-source-meta{margin-top:10px;color:#667b72;font-size:11px;line-height:1.6}.inventory-query-source-warning{margin-top:10px;padding:9px;border-radius:9px;background:#fff3dc;color:#855c10;font-size:10px}
@media(max-width:1150px){.inventory-query-crm-grid{grid-template-columns:1fr}.inventory-query-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.inventory-workbench-tabs{display:grid;width:100%;grid-template-columns:1fr 1fr}.inventory-workbench-tabs button{min-width:0}.inventory-query-hero{align-items:stretch;flex-direction:column;padding:20px}.inventory-query-sync-controls{justify-content:flex-start;min-width:0}.inventory-query-sync-controls>span{text-align:left}.inventory-query-metrics{grid-template-columns:1fr 1fr}.inventory-query-search-head{align-items:stretch;flex-direction:column}.inventory-query-search-head input{width:100%}.inventory-query-filters{grid-template-columns:1fr 1fr}.inventory-query-checkbox{padding:0}.inventory-query-view-tabs{display:grid;grid-template-columns:repeat(3,1fr)}.inventory-query-view-tabs button{min-width:0;padding:9px 5px}.inventory-query-summary{grid-template-columns:1fr}.inventory-query-model-head{grid-template-columns:1fr}.inventory-query-model-counts{justify-content:flex-start}.inventory-query-source-head{flex-direction:column}.inventory-query-source-head a{max-width:100%}}
@media(max-width:480px){.inventory-query-metrics{grid-template-columns:1fr}.inventory-query-filters{grid-template-columns:1fr}.inventory-query-sync-controls select,.inventory-query-sync-controls button{flex:1}.inventory-query-crm-card>header{flex-direction:column}.inventory-query-crm-kpis{text-align:left}}
