/* ==========================================================================
   Inventory Center IA V2 — 三層式資訊架構重整 (庫存管理中心 → 5 個第二層
   中心 → 第三層功能卡片 → 既有工作頁). Pure frontend navigation/landing-page
   layer: InventoryCenterMap.js (taxonomy) + components/CenterCard.js +
   components/CenterLandingFactory.js + InventoryShell.js (breadcrumb +
   2-tier sidebar). No backend, no API, no change to any existing work-page
   file's own CSS — every class below is self-contained under an "ic-"
   prefix (breadcrumb bar uses "inv-breadcrumb-" to match InventoryShell.js).
   Reuses shared Foundation classes untouched (.inventory-page-header,
   .inventory-page-title/-subtitle, .prototype-banner, .inventory-section-card,
   .item-tab-note, .inventory-btn-*, .status-badge, .inventory-badge-*,
   .inventory-empty-state).
   ========================================================================== *//* ---- Breadcrumb bar (section 十一): persists inside #content-area as a
   sibling above #content-page-root; InventoryShell.js keeps it intact even
   if a page bypasses the Shell and replaces #content-area directly (see
   ensureShellStructure in InventoryShell.js) — self-healing on next
   navigateTo(). Height fixed at 28-32px per spec. ---- */#inventoryHostRoot .inv-breadcrumb-bar {
  align-items: center;
  gap: 4px;
  height: 30px;
  margin-bottom: 12px;
  font-size: var(--ids-font-xs);
  flex-wrap: nowrap;
  overflow: hidden;
}#inventoryHostRoot .inv-breadcrumb-link {
  border: none;
  background: none;
  padding: 2px 4px;
  color: var(--color-text-muted);
  font-size: var(--ids-font-xs);
  cursor: pointer;
  white-space: nowrap;
}#inventoryHostRoot .inv-breadcrumb-link:hover {
  color: var(--color-teal);
  text-decoration: underline;
}#inventoryHostRoot .inv-breadcrumb-current {
  padding: 2px 4px;
  color: var(--color-navy);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}#inventoryHostRoot .inv-breadcrumb-sep {
  display: inline-flex;
  align-items: center;
  color: var(--ids-border-soft);
  flex-shrink: 0;
}#inventoryHostRoot .inv-breadcrumb-sep .inv-icon {
  width: 12px;
  height: 12px;
}/* ---- Height compensation for the 4 existing leaf pages that size
   themselves with a hardcoded `height: calc(100vh - 48px)` (see
   .inventory-page-shell in inventory.css, used by MaterialIssueCenterPage /
   PurchaseReturnCenterPage / ReceiptCenterPage / ItemBasicPage). Adding the
   breadcrumb bar above #content-page-root shrinks the space actually
   available to them by its own height — this compound-selector override
   (additive, does not remove the base rule) keeps their footers/Drawers
   fully visible exactly as before, only applying when the breadcrumb is
   actually shown (Home page has none, so its own simpler .ic-landing-shell
   layout below is unaffected). ---- */#inventoryHostRoot body.has-inv-breadcrumb .inventory-page-shell {
  height: calc(100vh - 48px - 42px);
}/* ---- Layer-1 / Layer-2 / Prototype landing pages: simple natural block
   flow (no viewport-height calc dependency, no interaction with the
   breadcrumb compensation rule above) — reused by InventoryCenterHomePage,
   the 5 CenterLandingFactory pages, and PeriodClosingPage. ---- */#inventoryHostRoot .ic-landing-shell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}/* ---- Layer-1 home Prototype summary strip (section 三): 48-56px, no KPI
   Dashboard cards — reuses the Material Issue Center V1.6 "Summary Strip"
   text-line pattern (.mi-strip-item/-value/-label) so the two Prototype
   summary strips in this module look consistent. ---- */#inventoryHostRoot .ic-home-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  min-height: 48px;
  padding: 4px 0 12px;
}#inventoryHostRoot .ic-home-summary-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff6e5;
  border: 1px solid #eccb7a;
  color: #8a5a00;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}/* ---- 採購管理 flow hint (section 五): visual-only text, no new flow. ---- */#inventoryHostRoot .ic-flow-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  margin-bottom: 4px;
  background: var(--ids-surface-muted);
  border-radius: var(--ids-radius-md);
  color: var(--color-text-muted);
  font-size: var(--ids-font-xs);
}#inventoryHostRoot .ic-flow-hint .inv-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}/* ---- 第三層功能卡片 / 第一層中心卡片 grid (section 十二): 3 欄
   (>=1536px) / 2 欄 (>=900px) / 1 欄 (<900px), card height ~150-180px. ---- */#inventoryHostRoot .ic-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 1535px) {#inventoryHostRoot .ic-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 899px) {#inventoryHostRoot .ic-card-grid {
    grid-template-columns: 1fr;
  }
}#inventoryHostRoot .ic-card {
  display: flex;
  flex-direction: column;
  min-height: 150px;
  max-height: 180px;
  padding: 16px;
  background: var(--color-white);
  border: 1px solid var(--ids-border-soft);
  border-radius: var(--ids-radius-lg);
  box-shadow: var(--ids-shadow-xs);
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}#inventoryHostRoot .ic-card:hover {
  border-color: var(--color-teal);
  box-shadow: var(--ids-shadow-sm);
}#inventoryHostRoot .ic-card:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 2px;
}#inventoryHostRoot .ic-card-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--ids-radius-md);
  background: #eef6fb;
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 10px;
}#inventoryHostRoot .ic-card-icon .inv-icon {
  width: 18px;
  height: 18px;
}#inventoryHostRoot .ic-card-body {
  flex: 1;
  min-height: 0;
}#inventoryHostRoot .ic-card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}#inventoryHostRoot .ic-card-title {
  font-size: var(--ids-font-md);
  font-weight: 700;
  color: var(--color-navy);
}#inventoryHostRoot .ic-card-desc {
  font-size: var(--ids-font-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}#inventoryHostRoot .ic-card-subdesc {
  margin-top: 2px;
  font-size: 11px;
  color: var(--color-text-muted);
}#inventoryHostRoot .ic-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--ids-border-soft);
}#inventoryHostRoot .ic-card-meta {
  font-size: 11px;
  color: var(--color-text-muted);
}#inventoryHostRoot .ic-card-arrow {
  display: flex;
  color: var(--color-teal);
}#inventoryHostRoot .ic-card-arrow .inv-icon {
  width: 16px;
  height: 16px;
}#inventoryHostRoot .ic-card-disabled {
  cursor: default;
  opacity: 0.55;
  background: var(--ids-surface-muted);
}#inventoryHostRoot .ic-card-disabled:hover {
  border-color: var(--ids-border-soft);
  box-shadow: var(--ids-shadow-xs);
}#inventoryHostRoot .ic-card-disabled-note {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--ids-border-soft);
  font-size: 11px;
  color: var(--color-text-muted);
}/* ---- 關帳作業 Prototype summary (section 九) ---- */#inventoryHostRoot .ic-closing-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

@media (max-width: 899px) {#inventoryHostRoot .ic-closing-summary {
    grid-template-columns: repeat(2, 1fr);
  }
}#inventoryHostRoot .ic-closing-summary-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--ids-surface-muted);
  border-radius: var(--ids-radius-md);
}#inventoryHostRoot .ic-closing-summary-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--ids-radius-md);
  background: var(--color-white);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}#inventoryHostRoot .ic-closing-summary-value {
  font-size: var(--ids-font-md);
  font-weight: 700;
  color: var(--color-navy);
}#inventoryHostRoot .ic-closing-summary-label {
  font-size: 11px;
  color: var(--color-text-muted);
}
/* INVENTORY-UI-FINAL-POLISH-001: .inventory-basic-settings-card (基礎設定 hub's 4 nav rows —
   品項分類/品牌管理/單位管理/營運主體, see BasicSettingsPage.js) had ZERO dedicated CSS anywhere in
   the module — confirmed via a repo-wide grep before adding this block. With no scoped rule, every
   row fell back to this app's raw global `button{background:#111827;color:#fff;...}` default
   (style.css) instead of matching the rest of the Inventory design system. Markup/DOM/click
   handlers are untouched; this only brings the existing button in line with the same
   Card/Icon-chip/Arrow tokens already used by .ic-card above (same file, same hub-navigation
   pattern, just a horizontal row instead of a vertical card). */
#inventoryHostRoot .inventory-basic-settings-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ids-space-3);
}
#inventoryHostRoot .inventory-basic-settings-card {
  display: flex;
  align-items: center;
  gap: var(--ids-space-3);
  flex: 1 1 280px;
  text-align: left;
  background: var(--color-white);
  border: 1px solid var(--ids-border-soft);
  border-radius: var(--ids-radius-lg);
  box-shadow: var(--ids-shadow-xs);
  padding: var(--ids-space-3) var(--ids-space-4);
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
#inventoryHostRoot .inventory-basic-settings-card:hover {
  border-color: var(--color-teal);
  box-shadow: var(--ids-shadow-sm);
}
#inventoryHostRoot .inventory-basic-settings-card:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 2px;
}
#inventoryHostRoot .inventory-basic-settings-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--ids-radius-md);
  background: #eef6fb;
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
#inventoryHostRoot .inventory-basic-settings-icon .inv-icon {
  width: 18px;
  height: 18px;
}
#inventoryHostRoot .inventory-basic-settings-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
#inventoryHostRoot .inventory-basic-settings-copy strong {
  font-size: var(--ids-font-md);
  font-weight: 700;
  color: var(--color-navy);
}
#inventoryHostRoot .inventory-basic-settings-copy span {
  font-size: var(--ids-font-xs);
  color: var(--color-text-muted);
  line-height: 1.4;
}
#inventoryHostRoot .inventory-basic-settings-arrow {
  flex-shrink: 0;
  color: var(--color-teal);
  font-size: 20px;
  font-weight: 600;
}
