.inventory-shell .iw-main { width:calc(100% - 64px); max-width:1320px; margin:auto; padding:24px 0 32px; min-width:0; }
.iw { --iw-muted:#758B89; --iw-border:#E8EEEA; --iw-green:#08765D; min-width:0; border:0; padding:0; margin:0; font:inherit; }
.iw *, .iw-dialog * { box-sizing:border-box; }
.iw :is(h1,h2,h3,p,ol,dl) { margin:0; }
.iw :is(h1,h2,h3,strong,button,input,select), .iw-dialog { font-family:Inter,"Segoe UI",Arial,sans-serif; letter-spacing:0; text-transform:none; text-shadow:none; }
.iw h1 { font-size:32px; font-weight:750; line-height:1.2; color:#102D33; }
.inventory-shell .iw h1:focus { outline:none; }
.iw h2 { font-size:15px; font-weight:650; color:#102D33; }
.iw h3 { font-size:14px; color:#102D33; }
.iw p { color:var(--iw-muted); font-size:13px; }
.iw-eyebrow { display:block; font-size:10px; font-weight:700; color:#758B89; margin-bottom:3px; }
.iw-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.iw-heading--inventory { align-items:flex-start; }
.iw-heading > div { min-width:0; }
.iw-heading p { margin-top:6px; }
.iw-heading--inventory > .iw-button { flex-shrink:0; }
.iw-scope { display:flex; align-items:center; gap:8px; }
.iw-heading-main .iw-scope { margin-top:12px; }
.iw-scope label, .iw-filter { position:relative; display:flex; flex-direction:column; min-width:130px; background:#fff; border:1px solid var(--iw-border); border-radius:7px; height:40px; padding:3px 10px; }
.iw-scope label::after, .iw-filter::after { content:""; position:absolute; width:6px; height:6px; right:12px; bottom:12px; border-right:1.5px solid #526F6D; border-bottom:1.5px solid #526F6D; transform:rotate(45deg); pointer-events:none; }
.iw .iw-scope select, .iw .iw-filter select { appearance:none; -webkit-appearance:none; height:20px; line-height:20px; background:none; border:0; flex-shrink:0; }
.iw-scope label > span, .iw-filter > span { font-size:10px; color:#758B89; line-height:12px; }
.iw :is(select,input) { width:100%; min-height:0; border:0; border-radius:0; padding:0; background:transparent; box-shadow:none; color:#102D33; font-size:13px; line-height:20px; }
.iw select { cursor:pointer; padding-right:20px; }
.iw-scope select { max-width:180px; }
.iw .iw-button { height:38px; min-height:38px; display:inline-flex; align-items:center; justify-content:center; gap:8px; border:1px solid var(--iw-border); border-radius:7px; background:#fff; color:#08765D; padding:0 14px; text-decoration:none; font-size:12px; font-weight:600; cursor:pointer; box-shadow:none; white-space:nowrap; }
.iw .iw-primary { background:#08765D; border-color:#08765D; color:#fff; }
.iw .iw-primary:hover { background:#075740; }
.iw button:disabled { opacity:.45; cursor:default; }
.iw :is(button,input,select,a):focus-visible { outline:2px solid #08765D; outline-offset:3px; }
.iw-context { display:flex; flex-wrap:wrap; align-items:center; gap:6px 18px; color:#758B89; font-size:11px; margin:6px 0 12px; }
.iw-context > span:first-child { color:#08765D; font-weight:600; }
.iw .admin-exec-icon { flex-shrink:0; vertical-align:middle; width:16px; height:16px; }
.iw-insights { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-bottom:12px; }
.iw-insight { height:180px; min-width:0; border:1px solid #EEF2EE; border-radius:12px; padding:14px; background:#fff; box-shadow:0 3px 12px #102D3305; }
.iw-insight header { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:7px; }
.iw-insight header h2 { display:flex; gap:7px; align-items:center; font-size:14px; line-height:18px; }
.iw-insight header .admin-exec-icon { color:#08765D; }
.iw-insight:nth-child(2) header .admin-exec-icon { color:#D59B27; }
.iw-insight header > span { color:#758B89; font-size:10px; white-space:nowrap; }
.iw-insight ol { padding:0; list-style:none; display:grid; gap:1px; }
.iw-insight li { display:grid; grid-template-columns:22px minmax(0,1fr) minmax(70px,90px) 48px; gap:7px; align-items:center; height:25px; }
.iw-insight li img { width:22px; height:23px; object-fit:contain; border-radius:3px; }
.iw-insight-name { font-size:11px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; line-height:12px; }
.iw-insight-name small { display:block; font-size:10px; color:#758B89; overflow:hidden; text-overflow:ellipsis; }
.iw-bar { background:#F0F3F1; height:6px; border-radius:4px; overflow:hidden; }
.iw-bar > span { display:block; height:100%; background:#79A393; border-radius:4px; }
.iw-insight--bars .iw-bar > span { background:#28715A; }
.iw-insight-qty { font-size:10px; text-align:right; white-space:nowrap; }
.iw-insight-qty small { font-size:9px; color:#758B89; }
.iw-insight-empty { display:flex; flex-direction:column; gap:8px; align-items:flex-start; justify-content:center; height:115px; padding:6px; color:#9BB8AC; }
.iw-insight-empty p { font-size:12px; line-height:1.55; max-width:340px; }
.iw-tabs { display:flex; align-items:center; gap:6px; overflow-x:auto; margin-bottom:8px; padding:2px 0 4px; }
.iw-tabs :is(button,a) { display:inline-flex; align-items:center; gap:6px; border:1px solid #EDF1ED; background:#fff; border-radius:20px; height:32px; padding:0 14px; color:#58746F; text-decoration:none; box-shadow:none; font-size:12px; white-space:nowrap; cursor:pointer; }
.iw-tabs .is-active { color:#08765D; background:#E7F5EE; border-color:#D6EBDD; font-weight:650; }
.iw-stock { background:#fff; border:1px solid #EEF2EE; border-radius:12px; box-shadow:0 3px 12px #102D3305; padding:0 12px; min-width:0; }
.iw-toolbar { display:flex; gap:10px; align-items:center; padding:12px 0; }
.iw-search { flex:0 1 43%; min-width:160px; height:38px; display:flex; align-items:center; gap:8px; padding:0 12px; background:#F8F9F8; border:1px solid #E8EEEA; border-radius:7px; color:#758B89; }
.iw-search input { font-size:12px; outline-offset:5px; }
.iw-filter { flex:1 1 165px; height:38px; }
.iw-filter.iw-date-filter{flex:1 1 150px}.iw-filter.iw-date-filter::after{display:none}.iw-date-filter input{width:100%;min-width:0;min-height:20px;padding:0;border:0;background:transparent;color:var(--iw-text,#102d33);font:inherit;font-size:12px;outline-offset:3px}
.iw .iw-text-button { border:0; background:none; box-shadow:none; color:#08765D; font-size:11px; white-space:nowrap; padding:8px; cursor:pointer; border-radius:5px; }
.iw .iw-export { background:#E7F5EE; }
.iw-filter-note { padding:10px 16px; color:#758B89; font-size:12px; border-top:1px solid #E8EEEA; }
.iw-table-scroll { width:100%; overflow:auto; overscroll-behavior-x:contain; }
.iw table { width:100%; border-collapse:collapse; font-size:12px; table-layout:auto; min-width:950px; }
.iw table.iw-balances { table-layout:fixed; min-width:1080px; }
.iw-balances td { overflow-wrap:anywhere; }
.iw-balances .iw-item { min-width:0; }
.iw-balances .iw-item-name { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.iw-balances td:last-child { text-align:center; }
.iw th { background:#F8F9F8; text-align:left; color:#758B89; font-size:11px; font-weight:600; padding:9px 12px; border:0; white-space:nowrap; }
.iw td { padding:6px 10px; border-bottom:1px solid #F0F3F0; height:46px; color:#526F6D; font-variant-numeric:tabular-nums; }
.iw tbody tr:hover { background:#F8FCF9; }
.iw .iw-item { display:flex; align-items:center; gap:10px; min-width:185px; }
.iw-item img, .iw-image-placeholder { display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; flex:0 0 32px; object-fit:contain; border-radius:4px; background:#F8F9F6; color:#97B5A8; }
.iw-insight .iw-image-placeholder { width:22px; height:22px; }
.iw .iw-item-name { color:#102D33; font-weight:600; line-height:1.35; }
.iw-item-name small { display:block; font-weight:400; color:#758B89; }
.iw .iw-badge { display:inline-block; padding:3px 7px; background:#EAF4F0; color:#4F8576; border-radius:12px; font-size:10px; white-space:nowrap; }
.iw td:nth-child(3) .iw-badge { background:#ECF3F8; color:#5E8797; }
.iw td .iw-badge[data-category="Drinks"] { background:#EAF5EE; color:#4E7C64; }
.iw td .iw-badge[data-category="Sets"] { background:#F5F1E4; color:#84743C; }
.iw td .iw-badge[data-category="Merch"] { background:#F0EEF5; color:#746882; }
.iw .iw-number { text-align:right; white-space:nowrap; }
.iw-number strong { color:#102D33; font-size:13px; }
.iw-number small { color:#758B89; font-size:10px; margin-left:5px; }
.iw-status { display:inline-flex; align-items:center; gap:4px; padding:3px 7px; border-radius:12px; font-size:10px; white-space:nowrap; }
.iw-status > span { width:4px; height:4px; border-radius:50%; background:currentColor; }
.iw-status.success { background:#E7F5EE; color:#08765D; }
.iw-status.danger { background:#FDE7E7; color:#CE5353; }
.iw-date { max-width:130px; font-size:10px; }
.iw-date .admin-exec-icon { margin-right:5px; }
.iw-date > span { display:inline-block; max-width:75px; vertical-align:middle; }
.iw .iw-action-heading { text-align:center; }
.iw .iw-icon-button { width:28px; height:28px; min-height:28px; border:1px solid #EEF2EE; border-radius:50%; background:#fff; color:#5E7973; box-shadow:none; padding:0; cursor:pointer; font-size:12px; }
.iw-table-footer { display:flex; align-items:center; justify-content:space-between; padding:12px; gap:10px; font-size:11px; color:#758B89; }
.iw-table-footer > div { display:flex; align-items:center; gap:7px; }
.iw-table-footer label { display:flex; align-items:center; gap:5px; }
.iw-table-footer select { width:58px; font-size:11px; padding-right:20px; }
.iw-current-page { min-width:28px; height:28px; display:grid; place-items:center; background:#E7F5EE; color:#08765D; border-radius:6px; }
.iw .iw-footnote { font-size:11px; margin-top:12px; color:#758B89; }
.iw-footnote summary { cursor:pointer; width:fit-content; padding:4px 0; }
.iw-footnote p { padding-top:6px; font-size:11px; line-height:1.5; }
.iw-empty { min-height:270px; padding:32px 16px; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:12px; text-align:center; }
.iw-empty h2 { font-size:18px; }
.iw-skeleton { background:#EDF2EE; border-radius:5px; animation:iw-pulse 1.2s ease-in-out infinite alternate; }
.iw-skeleton-line { height:18px; margin:7px 0; }
.iw-skeleton-row { height:35px; margin:16px 12px; }
.iw .iw-dialog { position:fixed; inset:0 0 0 auto; margin:0; height:100dvh; max-height:100dvh; width:480px; max-width:100%; border:0; border-left:1px solid #E8EEEA; padding:28px; background:#fff; color:#102D33; border-radius:0; box-shadow:-8px 0 40px #102D3314; overflow:auto; }
.iw-dialog::backdrop { background:#102D333D; }
.iw-dialog header { display:flex; justify-content:space-between; gap:16px; margin-bottom:18px; }
.iw-dialog h2 { font-size:23px; line-height:1.2; }
.iw-dialog header p { margin-top:8px; }
.iw-detail-balance { padding:22px 0; display:flex; align-items:baseline; gap:8px; color:#758B89; }
.iw-detail-balance > strong { font-size:36px; color:#102D33; }
.iw-detail-balance .iw-status { margin-left:auto; }
.iw-dialog dl { border-top:1px solid #E8EEEA; border-bottom:1px solid #E8EEEA; padding:12px 0; margin-bottom:24px; }
.iw-dialog dl > div { display:flex; justify-content:space-between; gap:12px; margin:10px 0; font-size:12px; }
.iw-dialog dt { color:#758B89; }
.iw-dialog dd { margin:0; }
.iw-detail-movements { padding:0; list-style:none; }
.iw-detail-movements li { display:flex; align-items:center; justify-content:space-between; padding:12px 0; border-bottom:1px solid #E8EEEA; font-size:12px; }
.iw-detail-movements small { display:block; color:#758B89; font-size:10px; }
.iw-detail-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:24px; }
.iw-export-message { margin-top:8px!important; }
.iw-warehouses .iw-scope label { min-width:210px; }
.iw-warehouses .workspace-nav { flex-wrap:nowrap; gap:6px; overflow-x:auto; padding:2px 0 5px; margin:18px 0 14px; scrollbar-width:thin; }
.iw-warehouses .workspace-nav a { display:inline-flex; align-items:center; flex:0 0 auto; height:32px; padding:0 14px; border:1px solid #edf1ed; border-radius:20px; background:#fff; box-shadow:none; color:#58746f; font-size:12px; text-decoration:none; white-space:nowrap; }
.iw-warehouses .workspace-nav a.active { color:#08765d; background:#e7f5ee; border-color:#d6ebdd; font-weight:650; }
.iw-warehouse-message { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; padding:16px; background:#fff0ed; border:1px solid #f3d5d0; border-radius:8px; color:#923b31; font-size:13px; }
.iw-warehouse-loading { padding:12px; background:#fff; border:1px solid #eef2ee; border-radius:8px; }
.iw-warehouse-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; padding:14px 2px; margin-bottom:12px; border-block:1px solid #e8eeea; color:#627a74; font-size:12px; }
.iw-warehouse-summary span { min-width:0; }
.iw-warehouse-summary strong { color:#102d33; font-size:17px; margin-right:5px; }
.iw-warehouse-panel { min-width:0; background:#fff; border:1px solid #eef2ee; border-radius:8px; box-shadow:0 3px 12px #102d3305; }
.iw-warehouse-panel .iw-empty { min-height:200px; }
.iw-warehouse-panel-heading { padding:16px 18px 12px; }
.iw-warehouse-panel-heading p { margin-top:4px; }
.iw-warehouse-table-wrap { overflow-x:auto; overscroll-behavior-x:contain; }
.iw table.iw-warehouse-table { min-width:950px; table-layout:fixed; }
.iw-warehouse-table th:nth-child(1) { width:22%; }
.iw-warehouse-table th:nth-child(2) { width:18%; }
.iw-warehouse-table th:nth-child(3) { width:9%; }
.iw-warehouse-table th:nth-child(4) { width:15%; }
.iw-warehouse-table th:nth-child(5) { width:15%; }
.iw-warehouse-table th:nth-child(6) { width:8%; }
.iw-warehouse-table th:nth-child(7) { width:13%; }
.iw .iw-warehouse-table td { height:auto; min-width:0; padding:14px 12px; vertical-align:middle; overflow-wrap:anywhere; }
.iw-warehouse-name, .iw-warehouse-country > span:last-child { display:grid; gap:3px; min-width:0; }
.iw-warehouse-name strong, .iw-warehouse-country strong { color:#102d33; font-size:12px; line-height:1.3; }
.iw-warehouse-name span, .iw-warehouse-name small, .iw-warehouse-country small { color:#758b89; font-size:11px; line-height:1.25; }
.iw-warehouse-country { display:flex; align-items:center; gap:8px; min-width:0; }
.iw-warehouse-flag { width:26px; height:26px; flex:0 0 26px; display:grid; place-items:center; border:1px solid #e8eeea; border-radius:50%; overflow:hidden; background:#f8f9f6; }
.iw-warehouse-flag img { width:100%; height:100%; object-fit:cover; }
.iw-warehouse-flag span { width:100%; height:100%; place-items:center; font-size:9px; font-weight:700; color:#526f6d; }
.iw-warehouse-pills { display:flex; flex-wrap:wrap; gap:4px; }
.iw-warehouse-pill { display:inline-flex; align-items:center; min-height:20px; padding:2px 7px; border-radius:10px; background:#eff4f1; color:#496f60; font-size:10px; line-height:1.2; }
.iw-warehouse-pill--default { background:#e7f5ee; color:#08765d; }
.iw-warehouse-muted { color:#8b9d96; font-size:11px; }
.iw-warehouse-state { display:inline-flex; align-items:center; gap:5px; color:#7d8f88; font-size:11px; white-space:nowrap; }
.iw-warehouse-state > span { width:6px; height:6px; border-radius:50%; background:currentColor; }
.iw-warehouse-state.is-active { color:#08765d; }
.iw-warehouse-actions { display:flex; flex-wrap:wrap; gap:6px 12px; }
.iw-warehouse-actions a { color:#08765d; font-size:11px; font-weight:600; text-decoration:none; white-space:nowrap; }
.iw-warehouse-actions a:hover { text-decoration:underline; }
@keyframes iw-pulse { to { opacity:.45; } }
@media(max-width:1199px) {
    .inventory-shell .iw-main { width:calc(100% - 48px); }
    .iw-heading { flex-wrap:wrap; }
    .iw-scope { width:100%; }
    .iw-insights { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .iw-insight:last-child { grid-column:1 / -1; }
    .iw-toolbar { flex-wrap:wrap; }
    .iw-search { flex-basis:35%; }
}
@media(max-width:767px) {
    .inventory-shell .iw-main { width:calc(100% - 32px); padding-top:22px; }
    .iw h1 { font-size:29px; }
    .iw-scope { flex-wrap:wrap; }
    .iw-scope label { min-width:0; flex:1 1 140px; }
    .iw-scope select { max-width:100%; width:100%; }
    .iw-heading--inventory > .iw-button { width:100%; }
    .iw-context { font-size:10px; gap:5px 12px; }
    .iw-insights { grid-template-columns:minmax(0,1fr); gap:12px; }
    .iw-insight:last-child { grid-column:auto; }
    .iw-insight { padding:14px; }
    .iw-insight header h2 { font-size:13px; }
    .iw-tabs :is(button,a) { padding:7px 10px; font-size:11px; }
    .iw-toolbar { gap:8px; padding:12px 8px; }
    .iw-search { flex:1 1 100%; }
    .iw-filter { flex:1 1 120px; min-width:0; }
    .iw-table-footer { padding:10px 6px; flex-wrap:wrap; font-size:10px; }
    .iw .iw-dialog { width:100%; padding:22px; }
}
@media(prefers-reduced-motion:reduce) { .iw-skeleton { animation:none; } }
@media(max-width:767px) {
    .iw-warehouses .iw-scope label { width:100%; min-width:0; }
    .iw-warehouse-summary { gap:8px; font-size:10px; }
    .iw-warehouse-summary strong { display:block; margin:0 0 2px; font-size:16px; }
    .iw-warehouse-panel { border:0; border-radius:0; background:transparent; box-shadow:none; }
    .iw-warehouse-panel-heading { padding:12px 0; }
    .iw-warehouse-table-wrap { overflow:visible; }
    .iw table.iw-warehouse-table, .iw-warehouse-table tbody { display:block; width:100%; min-width:0; }
    .iw-warehouse-table thead { display:none; }
    .iw-warehouse-table tbody { display:grid; gap:10px; }
    .iw-warehouse-table tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 12px; padding:12px 14px; border:1px solid #e8eeea; border-radius:8px; background:#fff; }
    .iw .iw-warehouse-table td { display:block; height:auto; padding:7px 0; border:0; min-width:0; }
    .iw-warehouse-table td::before { content:attr(data-label); display:block; margin-bottom:5px; color:#758b89; font-size:10px; font-weight:600; }
    .iw-warehouse-table td:first-child, .iw-warehouse-table td:nth-child(2), .iw-warehouse-table td:last-child { grid-column:1 / -1; }
    .iw-warehouse-table td:first-child { border-bottom:1px solid #edf1ed; padding-bottom:10px; }
    .iw-warehouse-table td:first-child::before { display:none; }
    .iw-warehouse-table td:last-child { border-top:1px solid #edf1ed; margin-top:5px; }
    .iw-warehouse-actions { gap:16px; }
    .iw-warehouse-actions a { font-size:12px; }
}
