/* Adapted from saved Stitch warehouses / inventory-availability exports. */
.tv-stitch-inventory .workspace-main{display:grid;gap:20px;min-width:0}
.tv-stitch-inventory-inspection>header{padding-bottom:16px;border-bottom:1px solid var(--tv-border,#c7d4e2);margin-bottom:20px}
.tv-stitch-inventory-inspection h3{font-size:18px;margin:0 0 8px}
.tv-stitch-inventory-inspection p{color:var(--tv-text-muted,#4d6178);line-height:1.6}
.tv-stitch-stock-detail{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.tv-stitch-stock-detail>.sales-order-command{grid-column:1/-1;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}
.tv-stitch-stock-detail .drawer-header-actions{display:flex;gap:8px;flex-wrap:wrap}
.tv-stitch-stock-detail>.panel{min-width:0;overflow:auto;padding:20px;border:1px solid var(--tv-border,#c7d4e2);border-radius:10px;background:var(--tv-surface-muted,#f3f7fb)}
.tv-stitch-stock-detail .health-line{display:flex;justify-content:space-between;gap:16px;padding:8px 0;border-bottom:1px solid var(--tv-border,#c7d4e2);overflow-wrap:anywhere}
.tv-stitch-stock-detail .health-line strong{text-align:right}
.tv-stitch-inventory .stock-operations-register table{min-width:1100px}
.tv-stitch-inventory .stock-operations-register th{white-space:nowrap}
@media(max-width:800px){.tv-stitch-stock-detail{grid-template-columns:1fr}}
.tv-stitch-inventory{padding:24px;background:var(--tv-surface-muted,#f3f7fb);color:var(--tv-text,#122c46);min-width:0}
.tv-stitch-inventory .workspace-hero{display:flex;justify-content:space-between;gap:24px;margin-bottom:24px}
.tv-stitch-inventory .workspace-hero{padding:0;border:0;box-shadow:none;background:transparent;border-radius:0}
.tv-stitch-inventory .workspace-stat::before{display:none}
.tv-stitch-inventory .workspace-stat{box-shadow:none}
.tv-stitch-inventory .workspace-body{gap:16px;padding:0;background:transparent}
.tv-stitch-inventory-detail .sales-order-command{border:0;border-bottom:1px solid var(--tv-border,#c7d4e2);border-radius:0;background:white;padding:0 0 16px;box-shadow:none}
.tv-stitch-inventory .workspace-hero h2{font-size:28px;letter-spacing:-.03em;margin:0 0 8px}
.tv-stitch-inventory .workspace-hero p{color:var(--tv-text-muted,#4d6178);line-height:1.6;max-width:85ch}
.tv-stitch-inventory .workspace-hero-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:start}
.tv-stitch-inventory .route-context-bar{display:flex;gap:8px;flex-wrap:wrap;color:var(--tv-text-muted,#4d6178);font-size:13px;margin:16px 0}
.tv-stitch-inventory .workspace-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:24px 0}
.tv-stitch-inventory .workspace-stat{display:grid;gap:8px;padding:20px;background:#fff;border:1px solid var(--tv-border,#c7d4e2);border-radius:12px;min-width:0}
.tv-stitch-inventory .workspace-stat strong{font-size:24px}
.tv-stitch-inventory .workspace-stat :is(span,small){font-size:12px;color:var(--tv-text-muted,#4d6178);line-height:1.5}
.tv-stitch-inventory .filter-row{display:flex;gap:12px;flex-wrap:wrap;padding:16px;background:white;border:1px solid var(--tv-border,#c7d4e2);border-radius:12px;margin:16px 0;align-items:center}
.tv-stitch-inventory .filter-row > :is(input,select){width:auto;flex:1 1 130px;min-width:0}
.tv-stitch-inventory .table-card{background:white;border:1px solid var(--tv-border,#c7d4e2);border-radius:12px;overflow-x:auto}
.tv-stitch-inventory table{min-width:740px}
.tv-stitch-inventory td{padding:14px;vertical-align:top}
.tv-stitch-inventory td > div{display:grid;gap:6px}
.tv-stitch-inventory td small{font-size:12px;color:var(--tv-text-muted,#4d6178)}
.tv-stitch-inventory .entity-cell{display:grid;gap:6px}
.tv-stitch-inventory .entity-cell span{font-size:12px;color:var(--tv-text-muted,#4d6178)}
.tv-stitch-inventory tbody tr:hover{background:var(--tv-brand-soft,#e8f3fc)}
.tv-stitch-inventory .pagination{display:flex;justify-content:space-between;gap:12px;padding:16px;color:var(--tv-text-muted,#4d6178)}
.tv-stitch-inventory-inspection:not(:empty){margin-top:24px;padding:24px;background:white;border:1px solid var(--tv-border,#c7d4e2);border-radius:12px}
.tv-stitch-inventory-detail{display:grid;gap:16px;min-width:0}
.tv-stitch-inventory-detail .panel{padding:16px;background:var(--tv-surface-muted,#f3f7fb);border:1px solid var(--tv-border,#c7d4e2);border-radius:8px;overflow-x:auto}
.tv-stitch-inventory-detail .info-line{display:flex;justify-content:space-between;gap:16px;padding:6px 0;overflow-wrap:anywhere}
#ps-main .tv-stitch-inventory .workspace-hero{padding:0;border:0;box-shadow:none;background:transparent;border-radius:0;min-height:0;margin-bottom:24px}
#ps-main .tv-stitch-inventory .workspace-hero h2{font-size:28px;line-height:1.25}
#ps-main .tv-stitch-inventory .workspace-stats{padding:0;margin:24px 0;gap:16px;background:transparent}
#ps-main .tv-stitch-inventory .workspace-stat{padding:20px;border:1px solid var(--tv-border,#c7d4e2);border-radius:12px;box-shadow:none;background:white}
#ps-main .tv-stitch-inventory .workspace-stat::before{display:none}
#ps-main .tv-stitch-inventory .workspace-body{padding:0;background:transparent}
#ps-main .tv-stitch-inventory-detail .sales-order-command{border:0;border-bottom:1px solid var(--tv-border,#c7d4e2);border-radius:0;background:white;padding:0 0 16px;box-shadow:none}
#ps-main .tv-stitch-inventory-detail .panel{border:0;border-top:1px solid var(--tv-border,#c7d4e2);border-radius:0;box-shadow:none;padding:16px 0;background:white}
@media(max-width:900px){.tv-stitch-inventory .workspace-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.tv-stitch-inventory .workspace-hero{flex-direction:column}}
@media(max-width:540px){.tv-stitch-inventory{padding:12px}.tv-stitch-inventory-inspection:not(:empty){padding:12px}.tv-stitch-inventory .workspace-stat{padding:12px}}

/* Exact route ownership for generated inventory-control and stock-workflow
   screens. The shared family keeps the dense stock tables usable; the screen
   identity gives each route a measured, full-width working canvas. */
.tv-stitch-inventory:is(
  [data-stitch-screen="a1b30eeade3c45dbb1ddc0fc4b54ecb8"], [data-stitch-route-screen="a1b30eeade3c45dbb1ddc0fc4b54ecb8"],
  [data-stitch-screen="94c764d510e443cc812f9ea07888ec0a"], [data-stitch-route-screen="94c764d510e443cc812f9ea07888ec0a"],
  [data-stitch-screen="d2384554301e43238deba47c130f3367"], [data-stitch-route-screen="d2384554301e43238deba47c130f3367"],
  [data-stitch-screen="2f307b5f06754dac9d6ca8cc75d5a059"], [data-stitch-route-screen="2f307b5f06754dac9d6ca8cc75d5a059"],
  [data-stitch-screen="bca31001c9f64864b4f9f9204de1258b"], [data-stitch-route-screen="bca31001c9f64864b4f9f9204de1258b"],
  [data-stitch-screen="a100185239d1440ab8c62dd9d41d8b0b"], [data-stitch-route-screen="a100185239d1440ab8c62dd9d41d8b0b"],
  [data-stitch-screen="0434e134746e411bbd073b030ac0eb1c"], [data-stitch-route-screen="0434e134746e411bbd073b030ac0eb1c"],
  [data-stitch-screen="a73824fddb37448c9fda57cab75cde74"], [data-stitch-route-screen="a73824fddb37448c9fda57cab75cde74"],
  [data-stitch-screen="16951285c7ae4b94a23873b56af61ae9"], [data-stitch-route-screen="16951285c7ae4b94a23873b56af61ae9"],
  [data-stitch-screen="6ef8f4f173f8443e9b7d1c93af527579"], [data-stitch-route-screen="6ef8f4f173f8443e9b7d1c93af527579"],
  [data-stitch-screen="42dfb9feee254e6e8c2b87042916278f"], [data-stitch-route-screen="42dfb9feee254e6e8c2b87042916278f"],
  [data-stitch-screen="9226e183312241d9a8d4660311976494"], [data-stitch-route-screen="9226e183312241d9a8d4660311976494"],
  [data-stitch-screen="7507683ab65f423997edeb17965d1719"], [data-stitch-route-screen="7507683ab65f423997edeb17965d1719"],
  [data-stitch-screen="5efea9b3ddfd403687ac7006faaec99b"], [data-stitch-route-screen="5efea9b3ddfd403687ac7006faaec99b"],
  [data-stitch-screen="2a77e25f6f954ceaae2a534be14c7950"], [data-stitch-route-screen="2a77e25f6f954ceaae2a534be14c7950"]
) > .tv-route-frame {
  display:grid;
  gap:18px;
  max-width:1600px;
  margin-inline:auto;
}
.tv-stitch-inventory:is(
  [data-stitch-screen="a1b30eeade3c45dbb1ddc0fc4b54ecb8"], [data-stitch-route-screen="a1b30eeade3c45dbb1ddc0fc4b54ecb8"],
  [data-stitch-screen="94c764d510e443cc812f9ea07888ec0a"], [data-stitch-route-screen="94c764d510e443cc812f9ea07888ec0a"],
  [data-stitch-screen="d2384554301e43238deba47c130f3367"], [data-stitch-route-screen="d2384554301e43238deba47c130f3367"],
  [data-stitch-screen="2f307b5f06754dac9d6ca8cc75d5a059"], [data-stitch-route-screen="2f307b5f06754dac9d6ca8cc75d5a059"],
  [data-stitch-screen="bca31001c9f64864b4f9f9204de1258b"], [data-stitch-route-screen="bca31001c9f64864b4f9f9204de1258b"],
  [data-stitch-screen="a100185239d1440ab8c62dd9d41d8b0b"], [data-stitch-route-screen="a100185239d1440ab8c62dd9d41d8b0b"],
  [data-stitch-screen="0434e134746e411bbd073b030ac0eb1c"], [data-stitch-route-screen="0434e134746e411bbd073b030ac0eb1c"],
  [data-stitch-screen="a73824fddb37448c9fda57cab75cde74"], [data-stitch-route-screen="a73824fddb37448c9fda57cab75cde74"],
  [data-stitch-screen="16951285c7ae4b94a23873b56af61ae9"], [data-stitch-route-screen="16951285c7ae4b94a23873b56af61ae9"],
  [data-stitch-screen="6ef8f4f173f8443e9b7d1c93af527579"], [data-stitch-route-screen="6ef8f4f173f8443e9b7d1c93af527579"],
  [data-stitch-screen="42dfb9feee254e6e8c2b87042916278f"], [data-stitch-route-screen="42dfb9feee254e6e8c2b87042916278f"],
  [data-stitch-screen="9226e183312241d9a8d4660311976494"], [data-stitch-route-screen="9226e183312241d9a8d4660311976494"],
  [data-stitch-screen="7507683ab65f423997edeb17965d1719"], [data-stitch-route-screen="7507683ab65f423997edeb17965d1719"],
  [data-stitch-screen="5efea9b3ddfd403687ac7006faaec99b"], [data-stitch-route-screen="5efea9b3ddfd403687ac7006faaec99b"],
  [data-stitch-screen="2a77e25f6f954ceaae2a534be14c7950"], [data-stitch-route-screen="2a77e25f6f954ceaae2a534be14c7950"]
) .workspace-stats {gap:12px;margin-block:0;}
@media(max-width:760px) {
  .tv-stitch-inventory:is(
    [data-stitch-screen="a1b30eeade3c45dbb1ddc0fc4b54ecb8"], [data-stitch-route-screen="a1b30eeade3c45dbb1ddc0fc4b54ecb8"],
    [data-stitch-screen="94c764d510e443cc812f9ea07888ec0a"], [data-stitch-route-screen="94c764d510e443cc812f9ea07888ec0a"],
    [data-stitch-screen="d2384554301e43238deba47c130f3367"], [data-stitch-route-screen="d2384554301e43238deba47c130f3367"],
    [data-stitch-screen="2f307b5f06754dac9d6ca8cc75d5a059"], [data-stitch-route-screen="2f307b5f06754dac9d6ca8cc75d5a059"],
    [data-stitch-screen="bca31001c9f64864b4f9f9204de1258b"], [data-stitch-route-screen="bca31001c9f64864b4f9f9204de1258b"],
    [data-stitch-screen="a100185239d1440ab8c62dd9d41d8b0b"], [data-stitch-route-screen="a100185239d1440ab8c62dd9d41d8b0b"],
    [data-stitch-screen="0434e134746e411bbd073b030ac0eb1c"], [data-stitch-route-screen="0434e134746e411bbd073b030ac0eb1c"],
    [data-stitch-screen="a73824fddb37448c9fda57cab75cde74"], [data-stitch-route-screen="a73824fddb37448c9fda57cab75cde74"],
    [data-stitch-screen="16951285c7ae4b94a23873b56af61ae9"], [data-stitch-route-screen="16951285c7ae4b94a23873b56af61ae9"],
    [data-stitch-screen="6ef8f4f173f8443e9b7d1c93af527579"], [data-stitch-route-screen="6ef8f4f173f8443e9b7d1c93af527579"],
    [data-stitch-screen="42dfb9feee254e6e8c2b87042916278f"], [data-stitch-route-screen="42dfb9feee254e6e8c2b87042916278f"],
    [data-stitch-screen="9226e183312241d9a8d4660311976494"], [data-stitch-route-screen="9226e183312241d9a8d4660311976494"],
    [data-stitch-screen="7507683ab65f423997edeb17965d1719"], [data-stitch-route-screen="7507683ab65f423997edeb17965d1719"],
    [data-stitch-screen="5efea9b3ddfd403687ac7006faaec99b"], [data-stitch-route-screen="5efea9b3ddfd403687ac7006faaec99b"],
    [data-stitch-screen="2a77e25f6f954ceaae2a534be14c7950"], [data-stitch-route-screen="2a77e25f6f954ceaae2a534be14c7950"]
  ) .workspace-hero {gap:12px;}
}
