.iow-shell { --iow-accent: var(--tenant-accent, #e11d48); display: grid; gap: 13px; min-width: 0; color: #172033; }
.iow-shell *, .iow-shell *::before, .iow-shell *::after { box-sizing: border-box; }
.iow-shell button, .iow-shell input, .iow-shell select { font: inherit; }
.iow-header { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 17px; border: 1px solid #e2e8f0; border-radius: 17px; background: #fff; }
.iow-header > div { display: grid; gap: 1px; }
.iow-header span { color: var(--iow-accent); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.iow-header h1 { margin: 0; color: #111827; font-size: clamp(20px, 2.2vw, 27px); line-height: 1.15; }
.iow-header p { margin: 0; color: #64748b; font-size: 11px; }
.iow-header button { display: inline-flex; min-height: 42px; align-items: center; gap: 7px; padding: 0 13px; border: 1px solid #dbe3ee; border-radius: 11px; background: #fff; color: #334155; font-size: 12px; font-weight: 800; cursor: pointer; }
.iow-header .spin { animation: iow-spin .8s linear infinite; }
@keyframes iow-spin { to { transform: rotate(360deg); } }
.iow-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.iow-kpis article { display: grid; min-height: 91px; grid-template-columns: auto 1fr; align-content: center; gap: 1px 8px; padding: 13px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; }
.iow-kpis svg { grid-row: 1 / span 3; align-self: start; color: var(--iow-accent); }
.iow-kpis span, .iow-kpis small { color: #64748b; font-size: 10px; }
.iow-kpis strong { color: #111827; font-size: 19px; }
.iow-kpis article.attention { border-color: #fed7aa; }
.iow-kpis article.attention svg { color: #c2410c; }
.iow-kpis article.danger { border-color: #fecdd3; }
.iow-kpis article.danger svg { color: #be123c; }
.iow-actions { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.iow-actions > button { display: flex; min-height: 63px; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #dbe3ee; border-radius: 13px; background: #fff; color: #334155; text-align: left; cursor: pointer; }
.iow-actions > button > svg { flex: 0 0 auto; color: var(--iow-accent); }
.iow-actions > button > span { display: grid; min-width: 0; gap: 1px; }
.iow-actions strong { font-size: 12px; }
.iow-actions small { overflow: hidden; color: #64748b; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.iow-actions > button.active { border-color: var(--iow-accent); background: color-mix(in srgb, var(--iow-accent) 7%, #fff); }
.iow-command { display: grid; gap: 12px; padding: 14px; border: 1px solid color-mix(in srgb, var(--iow-accent) 30%, #dbe3ee); border-radius: 15px; background: color-mix(in srgb, var(--iow-accent) 3%, #fff); }
.iow-command-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.iow-command-head > div { display: grid; gap: 2px; }
.iow-command-head span { color: var(--iow-accent); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.iow-command-head strong { color: #111827; font-size: 13px; }
.iow-command-head > button { display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 9px; background: #e2e8f0; color: #475569; font-size: 21px; cursor: pointer; }
.iow-command-form { display: grid; grid-template-columns: 130px minmax(220px, 1fr) auto; align-items: end; gap: 9px; }
.iow-command-form label { display: grid; gap: 5px; }
.iow-command-form label span { color: #64748b; font-size: 10px; font-weight: 800; }
.iow-command-form input, .iow-command-form select { width: 100%; min-height: 43px; padding: 0 11px; border: 1px solid #cbd5e1; border-radius: 10px; outline: 0; background: #fff; color: #111827; font-size: 12px; }
.iow-confirm { display: inline-flex; min-height: 43px; align-items: center; justify-content: center; gap: 7px; padding: 0 15px; border: 0; border-radius: 10px; background: var(--iow-accent); color: #fff; font-size: 12px; font-weight: 850; cursor: pointer; }
.iow-confirm:disabled { background: #e2e8f0; color: #94a3b8; cursor: not-allowed; }
.iow-count-command { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.iow-count-command > div { display: flex; align-items: center; gap: 9px; }
.iow-count-command > div > svg { color: var(--iow-accent); }
.iow-count-command span { display: grid; gap: 2px; }
.iow-count-command strong { font-size: 12px; }
.iow-count-command small { color: #64748b; font-size: 10px; }
.iow-count-command > label { display: grid; gap: 5px; min-width: 150px; }
.iow-count-command > label > span { color: #475569; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.iow-count-command > label input { min-height: 40px; border: 1px solid #cbd5e1; border-radius: 10px; padding: 8px 10px; background: #fff; font: inherit; }
.iow-message { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 10px; font-size: 11px; }
.iow-message.error { background: #fff1f2; color: #be123c; }
.iow-message.success { background: #ecfdf5; color: #047857; }
.iow-toolbar { display: grid; grid-template-columns: minmax(260px, .8fr) 1fr; gap: 9px; padding: 10px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; }
.iow-toolbar > label { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; min-height: 43px; padding: 0 11px; border: 1px solid #cbd5e1; border-radius: 10px; color: #64748b; }
.iow-toolbar input { min-width: 0; border: 0; outline: 0; background: transparent; color: #111827; font-size: 12px; }
.iow-toolbar label button { display: grid; width: 28px; height: 28px; place-items: center; border: 0; border-radius: 50%; background: #e2e8f0; color: #475569; font-size: 18px; cursor: pointer; }
.iow-toolbar > div { display: flex; overflow-x: auto; justify-content: flex-end; gap: 6px; scrollbar-width: none; }
.iow-toolbar > div::-webkit-scrollbar { display: none; }
.iow-toolbar > div button { flex: 0 0 auto; min-height: 42px; padding: 0 11px; border: 1px solid #dbe3ee; border-radius: 9px; background: #fff; color: #475569; font-size: 10px; font-weight: 800; cursor: pointer; }
.iow-toolbar > div button.active { border-color: var(--iow-accent); background: var(--iow-accent); color: #fff; }
.iow-content { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 10px; }
.iow-stock, .iow-side > section { min-width: 0; border: 1px solid #e2e8f0; border-radius: 15px; background: #fff; }
.iow-stock > header { display: flex; min-height: 55px; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 13px; border-bottom: 1px solid #e2e8f0; }
.iow-stock > header > div { display: grid; gap: 1px; }
.iow-stock > header strong { color: #111827; font-size: 13px; }
.iow-stock > header span { color: #64748b; font-size: 10px; }
.iow-table-wrap { overflow: auto; max-height: 620px; }
.iow-table-wrap table { width: 100%; border-collapse: collapse; font-size: 11px; }
.iow-table-wrap th { position: sticky; z-index: 1; top: 0; padding: 9px 10px; background: #f8fafc; color: #64748b; font-size: 9px; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
.iow-table-wrap td { padding: 9px 10px; border-top: 1px solid #edf1f5; color: #334155; vertical-align: middle; }
.iow-table-wrap tr { cursor: pointer; }
.iow-table-wrap tr:hover, .iow-table-wrap tr.selected { background: color-mix(in srgb, var(--iow-accent) 4%, #fff); }
.iow-table-wrap tr.selected td:first-child { box-shadow: inset 3px 0 var(--iow-accent); }
.iow-table-wrap td button { display: grid; gap: 2px; max-width: 190px; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.iow-table-wrap td strong, .iow-table-wrap td small { display: block; overflow: hidden; max-width: 190px; text-overflow: ellipsis; white-space: nowrap; }
.iow-table-wrap td strong { color: #111827; font-size: 11px; }
.iow-table-wrap td small { color: #64748b; font-size: 9px; }
.iow-table-wrap td > b { display: inline-grid; min-width: 31px; height: 27px; place-items: center; border-radius: 8px; background: #ecfdf5; color: #047857; }
.iow-table-wrap td > b.low { background: #fff7ed; color: #c2410c; }
.iow-table-wrap td > b.zero { background: #fff1f2; color: #be123c; }
.iow-table-wrap td > span { display: flex; max-width: 220px; align-items: center; gap: 5px; overflow: hidden; color: #475569; text-overflow: ellipsis; white-space: nowrap; }
.iow-table-wrap td > span svg { flex: 0 0 auto; color: var(--iow-accent); }
.iow-table-wrap td > span.missing { color: #b45309; }
.iow-side { display: grid; gap: 9px; }
.iow-side > section { padding: 13px; }
.iow-selected { display: grid; gap: 11px; }
.iow-selected > header { display: grid; gap: 2px; }
.iow-selected > header span { color: var(--iow-accent); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.iow-selected > header strong { overflow: hidden; color: #111827; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.iow-selected dl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0; }
.iow-selected dl div { min-width: 0; padding: 8px; border-radius: 9px; background: #f8fafc; }
.iow-selected dt { color: #64748b; font-size: 9px; }
.iow-selected dd { overflow: hidden; margin: 2px 0 0; color: #111827; font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.iow-selected > button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 7px; border: 1px solid color-mix(in srgb, var(--iow-accent) 35%, #dbe3ee); border-radius: 10px; background: color-mix(in srgb, var(--iow-accent) 6%, #fff); color: var(--iow-accent); font-size: 11px; font-weight: 800; cursor: pointer; }
.iow-selected > p { margin: 0; color: #64748b; font-size: 10px; }
.iow-history { display: grid; gap: 10px; }
.iow-history > header, .iow-returns > header { display: flex; align-items: center; gap: 8px; }
.iow-history > header svg, .iow-returns > header svg { color: var(--iow-accent); }
.iow-history > header > div { display: grid; gap: 1px; }
.iow-history > header strong, .iow-returns > header strong { color: #111827; font-size: 12px; }
.iow-history > header span { color: #64748b; font-size: 9px; }
.iow-history > div, .iow-returns { display: grid; gap: 6px; }
.iow-history article { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; min-height: 40px; padding-top: 6px; border-top: 1px solid #edf1f5; }
.iow-history article i { width: 8px; height: 8px; border-radius: 50%; background: #10b981; }
.iow-history article i.out { background: #f43f5e; }
.iow-history article span { display: grid; min-width: 0; gap: 1px; }
.iow-history article strong { font-size: 10px; }
.iow-history article small { overflow: hidden; color: #64748b; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.iow-history article b { color: #334155; font-size: 10px; }
.iow-returns > header > b { display: grid; min-width: 26px; height: 26px; margin-left: auto; place-items: center; border-radius: 8px; background: #fff7ed; color: #c2410c; font-size: 10px; }
.iow-returns article { display: flex; align-items: center; gap: 8px; padding-top: 7px; border-top: 1px solid #edf1f5; }
.iow-returns article > span { display: grid; min-width: 0; flex: 1; gap: 1px; }
.iow-returns article strong { font-size: 10px; }
.iow-returns article small { overflow: hidden; color: #64748b; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.iow-returns article button { min-height: 34px; padding: 0 9px; border: 1px solid #fed7aa; border-radius: 8px; background: #fff7ed; color: #c2410c; font-size: 9px; font-weight: 800; cursor: pointer; }
.iow-empty { display: grid; min-height: 220px; place-items: center; align-content: center; gap: 6px; padding: 18px; color: #94a3b8; text-align: center; }
.iow-empty strong { color: #475569; font-size: 12px; }
.iow-empty span { font-size: 10px; }
.iow-empty.compact { min-height: 80px; }
.iow-shell :focus-visible { outline: 3px solid color-mix(in srgb, var(--iow-accent) 28%, transparent); outline-offset: 2px; }

@media (width <= 1050px) {
  .iow-content { grid-template-columns: 1fr; }
  .iow-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .iow-returns { grid-column: 1 / -1; }
}
@media (width <= 760px) {
  .iow-shell { gap: 9px; padding-bottom: 88px; }
  .iow-header { min-height: 65px; padding: 10px 12px; border-radius: 14px; }
  .iow-header p { display: none; }
  .iow-header button { padding: 0 10px; }
  .iow-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .iow-kpis article { min-height: 78px; padding: 10px; border-radius: 12px; }
  .iow-kpis strong { font-size: 16px; }
  .iow-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .iow-actions > button { min-height: 57px; padding: 8px 10px; }
  .iow-command-form { grid-template-columns: 92px minmax(0, 1fr); }
  .iow-command-form .iow-confirm { grid-column: 1 / -1; }
  .iow-count-command { align-items: stretch; flex-direction: column; }
  .iow-toolbar { grid-template-columns: 1fr; padding: 8px; }
  .iow-toolbar > div { justify-content: flex-start; }
  .iow-content { gap: 8px; }
  .iow-table-wrap { max-height: none; overflow: visible; }
  .iow-table-wrap table, .iow-table-wrap thead, .iow-table-wrap tbody, .iow-table-wrap tr, .iow-table-wrap td { display: block; }
  .iow-table-wrap thead { display: none; }
  .iow-table-wrap tbody { display: grid; gap: 7px; padding: 8px; }
  .iow-table-wrap tr { display: grid; grid-template-columns: 1fr auto auto; gap: 4px 10px; padding: 10px; border: 1px solid #e2e8f0; border-radius: 12px; }
  .iow-table-wrap tr.selected { border-color: var(--iow-accent); }
  .iow-table-wrap tr.selected td:first-child { box-shadow: none; }
  .iow-table-wrap td { padding: 0; border: 0; }
  .iow-table-wrap td:first-child { grid-column: 1 / -1; }
  .iow-table-wrap td:nth-child(2) { grid-column: 1; }
  .iow-table-wrap td:nth-child(3), .iow-table-wrap td:nth-child(4) { align-self: center; }
  .iow-table-wrap td:nth-child(5) { grid-column: 1; font-weight: 800; }
  .iow-table-wrap td:nth-child(6) { grid-column: 1 / -1; padding-top: 5px; border-top: 1px solid #edf1f5; }
  .iow-table-wrap td button, .iow-table-wrap td strong, .iow-table-wrap td small, .iow-table-wrap td > span { max-width: 100%; }
  .iow-side { grid-template-columns: 1fr; }
  .iow-returns { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) { .iow-header .spin { animation: none; } }
.iow-shell.photo-map-open > .iow-toolbar,
.iow-shell.photo-map-open > .iow-content { display: none; }
.iow-display-mode { display: flex; gap: 8px; padding: 12px 16px; border-bottom: 1px solid #e2e8f0; }
.iow-display-mode button { padding: 9px 14px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: #475569; cursor: pointer; }
.iow-display-mode button[aria-pressed="true"] { background: #f1f5f9; border-color: #334155; color: #0f172a; font-weight: 700; }
.iow-product-group { border-bottom: 1px solid #e2e8f0; }
.iow-product-group > summary { display: flex; align-items: center; gap: 16px; padding: 18px 16px; cursor: pointer; list-style: none; }
.iow-product-group > summary::-webkit-details-marker { display: none; }
.iow-product-group > summary:hover, .iow-product-group[open] > summary { background: #f8fafc; }
.iow-group-identity { flex: 1; min-width: 0; }
.iow-group-identity strong, .iow-group-identity small, .iow-group-balance strong, .iow-group-balance small { display: block; }
.iow-group-identity strong { color: #0f172a; font-size: 15px; overflow-wrap: anywhere; }
.iow-group-identity small, .iow-group-balance small { color: #64748b; font-size: 12px; margin-top: 5px; }
.iow-group-balance { text-align: right; }
.iow-group-balance strong { color: #0f172a; font-size: 20px; }
.iow-group-toggle { color: #475569; font-size: 12px; white-space: nowrap; }
.iow-group-toggle::after { content: ' +'; }
.iow-product-group[open] .iow-group-toggle::after { content: ' −'; }
.iow-group-colors { padding: 0 16px 16px; display: grid; gap: 18px; }
.iow-group-colors h3 { color: #334155; margin: 12px 0; font-size: 14px; }
.iow-group-sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.iow-group-sizes button { min-height: 94px; padding: 12px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; text-align: left; background: #fff; border: 1px solid #cbd5e1; border-radius: 9px; color: #0f172a; cursor: pointer; overflow-wrap: anywhere; }
.iow-group-sizes button strong { font-size: 19px; }
.iow-group-sizes button span { font-size: 12px; }
.iow-group-sizes button small { color: #64748b; font-size: 11px; line-height: 1.5; }
.iow-group-sizes button.empty { background: #f8fafc; }
.iow-group-sizes button.selected { border-color: #334155; box-shadow: inset 0 0 0 1px #334155; background: #eef2f6; }
@media (max-width: 600px) {
  .iow-product-group > summary { flex-wrap: wrap; gap: 10px; }
  .iow-group-identity { flex-basis: 60%; }
  .iow-group-balance { max-width: 35%; }
  .iow-group-toggle { width: 100%; }
}
/*$vite$:1*/