/* Owned Inventory Ops Command Center */
.inv-ops {
  --inv-navy: #0F2C52;
  --inv-navy-deep: #0a1f3d;
  --inv-chart: #0066CC;
  --inv-navy-mid: #1A326A;
  --inv-accent: #3b82f6;
  --inv-muted: #64748b;
  --inv-border: #e8edf3;
  --inv-surface: #ffffff;
  --inv-bg: #f4f7fb;
  --inv-success: #059669;
  --inv-warning: #d97706;
  --inv-danger: #dc2626;
  --inv-info: #0284c7;
  color: #1e293b;
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 0;
}

.inv-ops .inv-ops-top {
  flex: 0 0 auto;
}

.inv-ops .inv-charts-stack {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.inv-ops .inv-ops-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.65rem;
  padding: 0.45rem 0.75rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, var(--inv-navy) 0%, var(--inv-navy-mid) 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(15, 44, 82, 0.14);
}

.inv-ops .inv-ops-head-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.inv-ops .inv-ops-head-meta {
  margin: 0.1rem 0 0;
  font-size: 0.72rem;
  opacity: 0.85;
  line-height: 1.2;
}

.inv-ops .inv-ops-head-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  justify-content: flex-end;
}

.inv-ops .inv-ops-head-controls .inv-head-icon-btn {
  min-width: 32px;
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.inv-ops .inv-ops-head-controls .inv-head-icon-btn .bi {
  margin: 0;
  font-size: 0.95rem;
}

.inv-ops .inv-ops-head .e-input-group,
.inv-ops .inv-ops-head .e-ddl {
  background: #fff;
  border-radius: 0.375rem;
  min-height: 32px;
}

.inv-ops .inv-ops-head .e-input-group .e-input,
.inv-ops .inv-ops-head .e-ddl .e-input {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  font-size: 0.85rem;
}

.inv-ops .inv-ops-head-controls .inv-project-filter-ddl.e-ddl,
.inv-ops .inv-ops-head-controls .inv-project-filter-ddl.e-input-group {
  min-width: min(420px, 100%);
  max-width: 520px;
}

.inv-ops .inv-ops-head-controls .inv-project-filter-ddl .e-input {
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Popup list: wrap long project + ref labels instead of truncating */
.e-popup.inv-project-filter-popup .e-list-item,
.e-ddl.e-popup.inv-project-filter-popup .e-list-item {
  height: auto !important;
  white-space: normal;
  word-break: break-word;
  line-height: 1.35;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

.inv-ops .inv-status-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.inv-ops .inv-chip {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.inv-ops .inv-chip:hover,
.inv-ops .inv-chip.is-active {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
}

.inv-ops .inv-kpi-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.inv-ops .inv-kpi-strip.is-sticky {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--inv-bg);
  padding-top: 0.35rem;
}

.inv-ops .inv-kpi {
  background: var(--inv-surface);
  border: 1px solid var(--inv-border);
  border-radius: 0.5rem;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
  box-shadow: 0 1px 2px rgba(15, 44, 82, 0.04);
  border-left: 3px solid var(--inv-accent);
  min-width: 132px;
  flex: 1 0 132px;
  text-align: left;
  font: inherit;
  color: inherit;
}

.inv-ops .inv-kpi:hover,
.inv-ops .inv-kpi:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 44, 82, 0.08);
  outline: 2px solid var(--inv-accent);
  outline-offset: 2px;
}

.inv-ops .inv-kpi.is-active {
  border-color: var(--inv-accent);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.18);
}

.inv-ops .inv-kpi.kpi-available { border-left-color: var(--inv-success); }
.inv-ops .inv-kpi.kpi-onproject { border-left-color: var(--inv-info); }
.inv-ops .inv-kpi.kpi-util { border-left-color: #6366f1; }
.inv-ops .inv-kpi.kpi-value { border-left-color: var(--inv-navy-mid); }
.inv-ops .inv-kpi.kpi-maint { border-left-color: var(--inv-warning); }
.inv-ops .inv-kpi.kpi-down { border-left-color: var(--inv-danger); }
.inv-ops .inv-kpi.kpi-retired { border-left-color: #64748b; }
.inv-ops .inv-kpi.kpi-exceptions { border-left-color: #b45309; }

.inv-ops .inv-kpi-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--inv-muted);
  font-weight: 600;
}

.inv-ops .inv-kpi-value {
  margin-top: 0.1rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--inv-navy);
  line-height: 1.2;
}

.inv-ops .inv-kpi-skeleton .inv-kpi-label,
.inv-ops .inv-kpi-skeleton .inv-kpi-value {
  background: #e8edf3;
  border-radius: 0.25rem;
  min-height: 0.7rem;
}

.inv-ops .inv-kpi-skeleton .inv-kpi-value { min-height: 1.2rem; width: 60%; }

.inv-ops .inv-kpi-error,
.inv-ops .inv-kpi-empty {
  flex: 1;
  padding: 0.85rem 1rem;
  border-radius: 0.65rem;
  border: 1px dashed var(--inv-border);
  color: var(--inv-muted);
  font-size: 0.85rem;
}

.inv-ops .inv-queue-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.inv-ops .inv-queue-card {
  background: var(--inv-surface);
  border: 1px solid var(--inv-border);
  border-radius: 0.5rem;
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  min-height: 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.25rem;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.inv-ops .inv-queue-card:hover {
  border-color: #c7d4e6;
  box-shadow: 0 4px 14px rgba(15, 44, 82, 0.07);
}

.inv-ops .inv-queue-card .q-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--inv-muted);
}

.inv-ops .inv-queue-card .q-count {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--inv-navy);
  line-height: 1.1;
}

.inv-ops .inv-queue-card.q-alert .q-count { color: var(--inv-danger); }
.inv-ops .inv-queue-card.q-warn .q-count { color: var(--inv-warning); }

.inv-ops .inv-mid-row,
.inv-ops .inv-bottom-row {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.inv-ops .inv-mid-row {
  grid-template-columns: 1.2fr 0.9fr 1.2fr;
}

.inv-ops .inv-bottom-row {
  grid-template-columns: 1fr 1.4fr;
}

.inv-ops .inv-status-chart-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
  flex: 0 0 auto;
  align-items: stretch;
  margin-bottom: 0;
  min-height: 320px;
  height: 340px;
  max-height: 360px;
}

.inv-ops .inv-panel.inv-status-chart-panel {
  width: 100%;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  border-radius: 0.65rem;
  box-shadow: 0 1px 2px rgba(15, 44, 82, 0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.inv-ops .inv-panel.inv-domain-chart-panel {
  grid-column: span 2;
}

.inv-ops .inv-domain-chart-panel .inv-panel-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0.25rem 0.4rem 0.45rem;
}

.inv-ops .inv-domain-chart-panel .yardex-column-chart,
.inv-ops .inv-domain-chart-panel .inv-domain-column-chart {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  width: 100%;
}

.inv-ops .inv-domain-chart-panel .e-chart {
  height: 100% !important;
  width: 100% !important;
}

.inv-ops .inv-panel.inv-category-board-panel {
  grid-column: span 3;
}

.inv-ops .inv-status-pie-slot {
  grid-column: span 1;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0;
  align-self: stretch;
  background: var(--inv-surface);
  border: 1px solid var(--inv-border);
  border-radius: 0.65rem;
  box-shadow: 0 1px 2px rgba(15, 44, 82, 0.04);
  overflow: hidden;
  cursor: pointer;
}

.inv-ops .inv-status-pie-body {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.inv-ops .inv-status-pie-slot .e-accumulationchart {
  width: 100% !important;
  height: 100% !important;
  flex: 1 1 auto;
}

.inv-ops .inv-status-pie-slot .e-accumulationchart svg {
  width: 100% !important;
  height: 100% !important;
}

.inv-ops .inv-status-pie-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
  line-height: 1.15;
  text-align: center;
  color: #fff;
  text-shadow: 0 1px 2px rgba(15, 44, 82, 0.35);
  pointer-events: none;
}

.inv-ops .inv-status-pie-label span:first-child {
  font-size: 0.68rem;
  font-weight: 600;
  max-width: 4.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inv-ops .inv-status-pie-label span:last-child {
  font-size: 0.82rem;
  font-weight: 800;
}

.inv-ops .inv-status-chart-panel .inv-panel-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex: 0 0 auto;
  padding: 0.7rem 0.85rem;
  background: var(--inv-surface);
}

.inv-ops .inv-status-chart-panel .inv-panel-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0.35rem 0.5rem 0.75rem;
}

.inv-ops .inv-category-board-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.inv-ops .inv-category-board-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 0.4rem 0.5rem 0.55rem !important;
}

.inv-ops .inv-category-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem 0.5rem;
  align-content: start;
}

.inv-ops .inv-category-board-item {
  display: block;
  width: 100%;
  min-width: 0;
  text-align: left;
  padding: 0.45rem 0.5rem;
  border: 1px solid var(--inv-border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.inv-ops .inv-category-board-item:hover {
  border-color: #93c5fd;
  box-shadow: 0 1px 3px rgba(0, 102, 204, 0.12);
}

.inv-ops .inv-category-board-item.is-active {
  border-color: var(--inv-chart);
  box-shadow: 0 0 0 1px rgba(0, 102, 204, 0.18);
}

.inv-ops .inv-category-board-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.28rem;
}

.inv-ops .inv-category-board-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--inv-navy);
}

.inv-ops .inv-category-board-metric {
  flex: 0 0 auto;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--inv-navy);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.inv-ops .inv-category-board-pct {
  font-size: 0.72rem;
  font-weight: 800;
  margin-left: 0.12rem;
}

.inv-ops .inv-category-board-progress {
  height: 6px;
  background: #eef2f7;
  border-radius: 999px;
  overflow: hidden;
}

.inv-ops .inv-category-board-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--inv-navy-deep), #ff6600);
}

.inv-ops .inv-category-board-sub {
  margin-top: 0.22rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--inv-muted);
}

.inv-ops .inv-panel-hint {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--inv-muted);
}

.inv-ops .inv-status-chart-panel .yardex-column-chart {
  width: 100%;
  font-family: Poppins, sans-serif;
}

.inv-ops .inv-status-chart-panel .e-chart,
.inv-ops .inv-status-chart-panel .e-chart svg text {
  cursor: pointer;
}

.inv-ops .inv-status-chart-panel .inv-chart-count-label {
  display: inline-block;
  font-family: Poppins, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--inv-chart);
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: none;
  text-align: center;
}

.inv-ops .inv-domain-chart-panel .inv-chart-count-label {
  min-width: 1.5rem;
  text-align: center;
}

.inv-ops .inv-domain-chart-panel .e-datalabel,
.inv-ops .inv-domain-chart-panel .e-datalabel-template,
.inv-ops .inv-domain-chart-panel foreignObject {
  text-align: center;
}

@media (max-width: 1400px) {
  .inv-ops .inv-domain-chart-panel .inv-chart-count-label {
    font-size: 0.62rem;
    padding: 0.1rem 0.35rem;
  }

  .inv-ops .inv-domain-chart-panel .e-chart text {
    font-size: 8px !important;
  }

  .inv-ops .inv-status-pie-label span:first-child {
    font-size: 0.58rem;
    max-width: 3.6rem;
  }

  .inv-ops .inv-status-pie-label span:last-child {
    font-size: 0.72rem;
  }
}

@media (max-width: 1100px) {
  .inv-ops .inv-domain-chart-panel .inv-chart-count-label {
    font-size: 0.55rem;
    padding: 0.08rem 0.28rem;
  }

  .inv-ops .inv-domain-chart-panel .e-chart text {
    font-size: 7px !important;
  }
}

.inv-ops .inv-chart-detail-row {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
}

.inv-ops .inv-panel.inv-action-items-panel {
  grid-column: span 2;
  width: 100%;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 0.65rem;
  box-shadow: 0 1px 2px rgba(15, 44, 82, 0.04);
}

.inv-ops .inv-chart-detail-row.inv-detail-row-actions-only .inv-action-items-panel {
  grid-column: 5 / span 2;
}

.inv-ops .inv-action-items-panel .inv-panel-header {
  flex: 0 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.85rem 1rem;
  background: var(--inv-surface);
}

.inv-ops .inv-action-panel-head {
  padding: 0 0.65rem;
  align-items: stretch;
}

.inv-ops .inv-side-tabs {
  display: flex;
  width: 100%;
  gap: 0;
  border-bottom: 1px solid var(--inv-border, #e5e7eb);
}

.inv-ops .inv-side-tab {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0.7rem 0.35rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: #6b7280;
  cursor: pointer;
  letter-spacing: .02em;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.inv-ops .inv-side-tab.is-active {
  color: #1A326A;
  border-bottom-color: #1A326A;
}

.inv-ops .inv-side-tab-count {
  background: #1A326A;
  color: #fff;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.05rem 0.4rem;
}

.inv-ops .inv-side-tab:not(.is-active) .inv-side-tab-count {
  background: #94a3b8;
}

.inv-ops .inv-alloc-log-body {
  padding: 0.35rem 0.4rem 0.5rem;
  display: flex;
  flex-direction: column;
}

.inv-ops .inv-alloc-log-grid {
  height: 100% !important;
  border: 0;
}

.inv-ops .inv-alloc-log-asset {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.inv-ops .inv-alloc-log-title {
  font-weight: 700;
  font-size: 0.75rem;
  color: #111827;
  line-height: 1.25;
}

.inv-ops .inv-alloc-log-meta {
  font-size: 0.68rem;
  color: #6b7280;
}

.inv-ops .inv-action-items-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 0.5rem 0.65rem 0.75rem;
}

.inv-ops .inv-action-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.inv-ops .inv-action-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.55rem;
  align-items: start;
  width: 100%;
  text-align: left;
  border: 1px solid var(--inv-border);
  border-radius: 0.5rem;
  background: #fff;
  padding: 0.55rem 0.65rem;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.inv-ops .inv-action-item:hover {
  border-color: #93c5fd;
  box-shadow: 0 1px 3px rgba(0, 102, 204, 0.12);
}

.inv-ops .inv-action-sev {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.2;
  margin-top: 0.1rem;
}

.inv-ops .inv-action-item.sev-high .inv-action-sev {
  background: #fee2e2;
  color: #b91c1c;
}

.inv-ops .inv-action-item.sev-medium .inv-action-sev {
  background: #ffedd5;
  color: #c2410c;
}

.inv-ops .inv-action-item.sev-low .inv-action-sev {
  background: #e2e8f0;
  color: #475569;
}

.inv-ops .inv-action-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.inv-ops .inv-action-title {
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--inv-navy);
  line-height: 1.25;
}

.inv-ops .inv-action-sub {
  font-size: 0.72rem;
  color: var(--inv-muted);
  line-height: 1.3;
}

.inv-ops .inv-action-due {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--inv-muted);
  white-space: nowrap;
  margin-top: 0.15rem;
}

.inv-ops .inv-panel.inv-chart-detail-panel {
  grid-column: span 4;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 0.65rem;
  box-shadow: 0 1px 2px rgba(15, 44, 82, 0.04);
}

.inv-ops .inv-chart-detail-panel .inv-panel-header {
  flex: 0 0 auto;
  background: var(--inv-surface);
}

.inv-ops .inv-chart-detail-close {
  border: 0;
  background: transparent;
  color: var(--inv-muted);
  font-size: 1.35rem;
  line-height: 1;
  padding: 0 0.15rem;
  cursor: pointer;
}

.inv-ops .inv-chart-detail-close:hover {
  color: var(--inv-navy);
}

.inv-ops .inv-chart-detail-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  position: relative;
  padding: 0.5rem 0.75rem 0.75rem;
}

.inv-ops .inv-chart-detail-body.is-loading .e-grid {
  opacity: 0.45;
  pointer-events: none;
}

.inv-ops .inv-panel-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.72);
  color: var(--inv-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.inv-ops .inv-panel-loading.is-hidden {
  display: none;
}

.inv-ops .inv-chart-detail-body .e-grid {
  height: 100% !important;
  width: 100% !important;
  border: 0;
}

.inv-ops .inv-chart-detail-body .e-gridheader,
.inv-ops .inv-chart-detail-body .e-gridcontent,
.inv-ops .inv-chart-detail-body .e-content {
  width: 100% !important;
}

.inv-ops .inv-chart-detail-body .e-gridheader table,
.inv-ops .inv-chart-detail-body .e-gridcontent table {
  width: 100% !important;
  table-layout: fixed !important;
}

.inv-ops .inv-chart-detail-grid colgroup col:last-child,
.inv-ops .inv-chart-detail-grid .e-headercell:last-child,
.inv-ops .inv-chart-detail-grid .e-rowcell:last-child {
  width: auto !important;
}

.inv-ops .inv-chart-detail-body .e-rowcell {
  white-space: normal !important;
  overflow-wrap: anywhere;
  vertical-align: middle;
}

.inv-ops .inv-chart-detail-grid .e-columnheader,
.inv-ops .inv-chart-detail-grid .e-headercell,
.inv-ops .inv-chart-detail-grid .e-headercelldiv,
.inv-ops .inv-chart-detail-grid .e-headercell .e-headertext {
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  text-overflow: clip !important;
  height: auto !important;
  line-height: 1.15;
}

.inv-ops .inv-chart-detail-grid .e-rowcell:first-child,
.inv-ops .inv-chart-detail-grid .e-headercell:first-child {
  width: 44px !important;
  max-width: 44px !important;
  min-width: 44px !important;
  padding: 0 !important;
}

.inv-ops .inv-asset-image-wrap {
  width: 50px;
  height: 100%;
  min-height: 40px;
  line-height: 0;
  overflow: hidden;
}

.inv-ops .inv-asset-thumb {
  width: 100%;
  height: 100%;
  min-height: 40px;
  object-fit: cover;
  border-radius: 0;
  border: none;
  display: block;
  margin: 0;
  background: #f8fafc;
}

.inv-ops .inv-asset-thumb.is-placeholder {
  object-fit: contain;
  padding: 0.12rem;
  opacity: 0.85;
  background: #f1f5f9;
}

.inv-ops .inv-asset-grid-desktop {
  display: block;
  height: 100%;
  min-height: 0;
}

.inv-ops .inv-asset-card-list {
  display: none;
}

.inv-ops .inv-chart-detail-body.is-loading .inv-asset-card-list {
  opacity: 0.45;
  pointer-events: none;
}

.inv-ops .inv-asset-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  align-self: stretch;
  width: 100%;
  height: auto;
  min-height: auto;
  background: #fff;
  border: 1px solid var(--inv-border, #e5e7eb);
  border-radius: 12px;
  overflow: hidden;
  box-sizing: border-box;
}

.inv-ops .inv-asset-card-main {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.75rem;
  padding: 0.75rem 0.8rem 0.65rem;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
}

.inv-ops .inv-asset-card .inv-asset-card-thumb.inv-asset-image-wrap {
  flex: 0 0 72px;
  width: 72px;
  min-width: 72px;
  max-width: 72px;
  height: 72px;
  min-height: 72px;
  max-height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: #f1f5f9;
  line-height: 0;
}

.inv-ops .inv-asset-card .inv-asset-card-thumb .inv-asset-thumb {
  width: 72px;
  height: 72px;
  min-height: 72px;
  object-fit: cover;
  border-radius: 10px;
}

.inv-ops .inv-asset-card-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
}

.inv-ops .inv-asset-card-topline {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
}

.inv-ops .inv-asset-card-topline .inv-status-badge {
  flex-shrink: 0;
  white-space: nowrap;
}

.inv-ops .inv-asset-card-title {
  display: block;
  font-weight: 800;
  font-size: 0.95rem;
  color: #111827;
  line-height: 1.3;
  margin: 0.2rem 0 0.35rem;
  overflow-wrap: anywhere;
}

.inv-ops .inv-asset-card-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.2rem 0.75rem;
  width: 100%;
}

.inv-ops .inv-asset-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  font-size: 0.75rem;
  line-height: 1.35;
  color: #64748b;
}

.inv-ops .inv-asset-card-meta span {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
}

.inv-ops .inv-asset-card-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  flex-shrink: 0;
  gap: 0.4rem;
  width: 100%;
  padding: 0.55rem 0.7rem 0.65rem;
  border-top: 1px solid #eef0f3;
  background: #f8fafc;
  box-sizing: border-box;
}

.inv-ops .inv-asset-card-actions .e-btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 36px;
}

.inv-ops .inv-asset-card-actions .e-btn.e-danger {
  flex: 0 0 auto;
  min-width: 36px;
}

.inv-ops .inv-asset-tag-link {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: 600;
  color: var(--inv-chart, #0066cc);
  text-decoration: underline;
  text-underline-offset: 0.12em;
  cursor: pointer;
}

.inv-ops .inv-asset-tag-link:hover,
.inv-ops .inv-asset-tag-link:focus-visible {
  color: #004c99;
  outline: none;
}

/* Dialogs render outside .inv-ops — keep hyperlink + wrap styles there */
.inv-kpi-detail-dialog .inv-asset-tag-link {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: 600;
  color: #0066cc;
  text-decoration: underline;
  text-underline-offset: 0.12em;
  cursor: pointer;
}

.inv-kpi-detail-dialog .inv-asset-tag-link:hover,
.inv-kpi-detail-dialog .inv-asset-tag-link:focus-visible {
  color: #004c99;
  outline: none;
}

.inv-kpi-detail-dialog .e-rowcell {
  white-space: normal !important;
  word-break: break-word;
  vertical-align: middle;
}

.inv-ops .inv-chart-detail-expand,
.inv-kpi-dialog-header .inv-chart-detail-expand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--inv-border, #d0d7de);
  border-radius: 8px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  flex-shrink: 0;
}

.inv-ops .inv-chart-detail-expand:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

.inv-ops .inv-chart-detail-add,
.inv-kpi-dialog-header .inv-chart-detail-add {
  background: var(--inv-navy, #0F2C52);
  color: #fff;
  border-color: var(--inv-navy, #0F2C52);
}

.inv-ops .inv-chart-detail-add:hover,
.inv-kpi-dialog-header .inv-chart-detail-add:hover {
  background: #1a3d6e;
  color: #fff;
  border-color: #1a3d6e;
}

.inv-kpi-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding-right: 1.75rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.inv-asset-editor-dialog.e-dialog {
  max-height: 94vh !important;
}

.inv-asset-editor-dialog .e-dlg-content {
  max-height: calc(94vh - 7.25rem);
  overflow-y: auto;
}

.inv-editor-section {
  margin-top: 0.35rem;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1A326A;
}

.inv-bv-toolbar {
  display: flex;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.inv-asset-editor-dialog .inv-required .e-float-text::after {
  content: " *";
  color: #dc2626;
  font-weight: 700;
}

.inv-ops .inv-domain-chart-panel .e-chart text.e-axislabel,
.inv-ops .inv-domain-chart-panel .e-chart .e-axis-label,
.inv-ops .inv-domain-chart-panel .e-chart g[id*="xaxis"] text,
.inv-ops .inv-domain-chart-panel .e-chart g[id*="AxisLabel"] text {
  text-anchor: middle !important;
}

.inv-ops .inv-domain-chart-panel .e-datalabel,
.inv-ops .inv-domain-chart-panel .e-datalabel-template,
.inv-ops .inv-domain-chart-panel foreignObject {
  text-align: center;
}

.inv-ops .inv-panel {
  background: var(--inv-surface);
  border: 1px solid var(--inv-border);
  border-radius: 0.75rem;
  overflow: hidden;
  min-height: 280px;
}

.inv-ops .inv-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--inv-border);
  background: #fafbfd;
}

.inv-ops .inv-panel-header--with-search {
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
}

.inv-ops .inv-panel-header-titles {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1 1 auto;
}

.inv-ops .inv-panel-header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 1 1 12rem;
  justify-content: flex-end;
  min-width: 0;
}

.inv-ops .inv-header-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 10rem;
  min-width: 8rem;
  max-width: 18rem;
}

.inv-ops .inv-header-search > .bi-search {
  position: absolute;
  left: 0.55rem;
  font-size: 0.75rem;
  color: #94a3b8;
  pointer-events: none;
}

.inv-ops .inv-header-search-input {
  width: 100%;
  border: 1px solid var(--inv-border);
  border-radius: 8px;
  background: #fff;
  padding: 0.35rem 1.75rem 0.35rem 1.65rem;
  font-size: 0.78rem;
  color: #0f172a;
  outline: none;
}

.inv-ops .inv-header-search-input:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.inv-ops .inv-header-search-clear {
  position: absolute;
  right: 0.25rem;
  border: none;
  background: transparent;
  color: #94a3b8;
  width: 1.4rem;
  height: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0;
  cursor: pointer;
}

.inv-ops .inv-header-search-clear:hover {
  color: #475569;
  background: #f1f5f9;
}

.inv-ops .inv-panel-header h6 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--inv-navy);
}

.inv-ops .inv-panel-body {
  padding: 0.85rem 1rem 1rem;
}

.inv-ops .inv-status-board {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.inv-ops .inv-status-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 0.75rem;
  align-items: center;
}

.inv-ops .inv-status-row .name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
}

.inv-ops .inv-status-row .count {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--inv-navy);
}

.inv-ops .inv-status-bar {
  grid-column: 1 / -1;
  height: 6px;
  border-radius: 999px;
  background: #eef2f7;
  overflow: hidden;
}

.inv-ops .inv-status-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--inv-navy-mid), var(--inv-accent));
  border-radius: 999px;
}

.inv-ops .inv-attention-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.inv-ops .inv-attention-table th,
.inv-ops .inv-attention-table td {
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid var(--inv-border);
  text-align: left;
  vertical-align: top;
}

.inv-ops .inv-attention-table th {
  color: var(--inv-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.inv-ops .inv-sev {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.inv-ops .inv-sev.high { background: #fee2e2; color: #991b1b; }
.inv-ops .inv-sev.medium { background: #ffedd5; color: #9a3412; }
.inv-ops .inv-sev.low { background: #e0f2fe; color: #075985; }

.inv-ops .inv-empty {
  color: var(--inv-muted);
  font-size: 0.85rem;
  padding: 1rem 0;
}

.inv-ops .inv-grid-actions .GridButton.e-btn {
  min-width: 2rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
}

.inv-ops .inv-manage-dropdown {
  position: relative;
}

.inv-ops .inv-manage-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 190px;
  background: #fff;
  border: 1px solid var(--inv-border);
  border-radius: 0.5rem;
  box-shadow: 0 10px 28px rgba(15, 44, 82, 0.14);
  z-index: 20;
  padding: 0.35rem;
}

.inv-ops .inv-manage-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.5rem 0.65rem;
  border-radius: 0.35rem;
  font-size: 0.85rem;
  color: #1e293b;
}

.inv-ops .inv-manage-menu button:hover {
  background: #f1f5f9;
}

.inv-ops .inv-asset360-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.inv-ops .inv-asset360-meta .meta-card {
  background: #f8fafc;
  border: 1px solid var(--inv-border);
  border-radius: 0.5rem;
  padding: 0.65rem 0.75rem;
}

.inv-ops .inv-asset360-meta .meta-label {
  font-size: 0.7rem;
  color: var(--inv-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.inv-ops .inv-asset360-meta .meta-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--inv-navy);
}

.inv-status-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.inv-status-badge.bg-available { background: #d1e7dd; color: #0f5132; }
.inv-status-badge.bg-onproject { background: #cff4fc; color: #055160; }
.inv-status-badge.bg-returned { background: #e2e3e5; color: #41464b; }
.inv-status-badge.bg-disposed { background: #f8d7da; color: #842029; }
.inv-status-badge.bg-transit { background: #e0e7ff; color: #3730a3; }
.inv-status-badge.bg-maint { background: #ffedd5; color: #9a3412; }
.inv-status-badge.bg-good { background: #d1e7dd; color: #0f5132; }
.inv-status-badge.bg-fair { background: #fff3cd; color: #664d03; }
.inv-status-badge.bg-poor { background: #f8d7da; color: #842029; }
.inv-status-badge.bg-draft { background: #e2e3e5; color: #41464b; }
.inv-status-badge.bg-posted { background: #d1e7dd; color: #0f5132; }

/* KPI / book-value detail dialogs */
.inv-kpi-detail-dialog.e-dialog {
  max-width: 80vw;
}

.inv-kpi-detail-dialog .e-dlg-content {
  height: calc(80vh - 56px);
  padding: 12px 16px 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.inv-kpi-detail-body {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inv-kpi-detail-body .inv-status-detail-grid,
.inv-kpi-detail-body .e-grid {
  flex: 1 1 auto;
  min-height: 0;
  height: 100% !important;
}

.inv-kpi-detail-body .inv-asset-image-wrap {
  width: 40px;
  height: 40px;
  margin: 0 auto;
}

.inv-kpi-detail-body .inv-asset-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
}

.inv-book-value-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  flex: 0 0 auto;
}

.inv-bv-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
}

.inv-bv-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 4px;
}

.inv-bv-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

@media (max-width: 900px) {
  .inv-book-value-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.delete-confirm-body { text-align: center; padding: 0.5rem 0; }
.delete-confirm-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.delete-confirm-item { font-size: 1rem; font-weight: 600; margin-bottom: 0.75rem; }
.delete-confirm-hint { font-size: 0.85rem; color: #555; line-height: 1.6; }

.alloc-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  background: #f4f6f9;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}
.alloc-info-card { min-width: 0; }
.alloc-info-span { grid-column: 1 / -1; }
.alloc-info-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #6b7280;
}
.alloc-info-value {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1A326A;
  line-height: 1.3;
}
.alloc-hint {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0;
}
.alloc-rates-header { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #6c757d; }
.alloc-rate-calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.arc-cell {
  border-radius: 4px;
  padding: 3px 2px;
  text-align: center;
  font-size: 0.68rem;
  line-height: 1.2;
  cursor: default;
}
.arc-cell.arc-day { background: #fde8e8; color: #842029; }
.arc-cell.arc-week { background: #fff3cd; color: #664d03; }
.arc-cell.arc-month { background: #d1e7dd; color: #0f5132; }
.arc-day-num { font-weight: 700; font-size: 0.65rem; }
.arc-amount { font-size: 0.65rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arc-block-badge { font-size: 0.6rem; font-weight: 600; opacity: 0.7; }
.arc-legend { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 3px; vertical-align: middle; }
.arc-legend.arc-day { background: #fde8e8; border: 1px solid #842029; }
.arc-legend.arc-week { background: #fff3cd; border: 1px solid #664d03; }
.arc-legend.arc-month { background: #d1e7dd; border: 1px solid #0f5132; }

@media (max-width: 1024px) {
  .inv-ops .inv-kpi-strip {
    flex-wrap: nowrap;
  }

  .inv-ops .inv-queue-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .inv-ops .inv-mid-row,
  .inv-ops .inv-bottom-row {
    grid-template-columns: 1fr;
  }

  .inv-ops .inv-status-chart-row {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    height: auto;
    min-height: 280px;
    max-height: none;
  }

  .inv-ops .inv-panel.inv-domain-chart-panel {
    grid-column: span 2;
  }

  .inv-ops .inv-panel.inv-category-board-panel {
    grid-column: span 3;
    max-height: 320px;
  }

  .inv-ops .inv-status-pie-slot {
    grid-column: span 1;
    min-height: 280px;
  }

  .inv-ops .inv-category-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inv-ops .inv-chart-detail-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .inv-ops .inv-chart-detail-panel {
    grid-column: span 2;
  }

  .inv-ops .inv-action-items-panel {
    grid-column: span 1;
  }

  .inv-ops .inv-chart-detail-row.inv-detail-row-actions-only .inv-action-items-panel {
    grid-column: 3 / span 1;
  }

  .inv-ops .inv-asset360-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .inv-ops .inv-kpi-strip {
    flex-wrap: nowrap;
  }

  .inv-ops .inv-queue-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inv-ops .inv-ops-head-controls {
    width: 100%;
    justify-content: flex-start;
  }

  .inv-ops .inv-status-chart-row,
  .inv-ops .inv-chart-detail-row {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
  }

  .inv-ops .inv-panel.inv-domain-chart-panel,
  .inv-ops .inv-panel.inv-category-board-panel,
  .inv-ops .inv-status-pie-slot,
  .inv-ops .inv-status-chart-panel,
  .inv-ops .inv-action-items-panel,
  .inv-ops .inv-chart-detail-panel {
    grid-column: span 1;
    min-height: 220px;
    max-height: none;
    height: auto;
  }

  .inv-ops .inv-category-board {
    grid-template-columns: 1fr;
  }

  .inv-ops .inv-chart-detail-row.inv-detail-row-actions-only .inv-action-items-panel {
    grid-column: span 1;
  }

  .inv-ops .inv-panel-hint {
    width: 100%;
  }
}

/* Compact tablet + phone: unlock page scroll and stack the command center */
@media (max-width: 1399.98px) {
  .inv-ops.bs-dashboard-container-full,
  .inv-ops.yardex-page-scroll-safe,
  .inv-ops {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .inv-ops .inv-ops-top {
    flex: 0 0 auto;
  }

  .inv-ops .inv-charts-stack {
    flex: 0 0 auto;
    min-height: 0;
    overflow: visible;
    height: auto;
  }

  .inv-ops .inv-queue-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .inv-ops .inv-ops-head {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    padding: 0.45rem 0.65rem;
    margin-bottom: 0.55rem;
  }

  .inv-ops .inv-ops-head-controls {
    width: 100%;
    justify-content: flex-start;
  }

  .inv-ops .inv-ops-head-controls .e-ddl,
  .inv-ops .inv-ops-head-controls .e-input-group {
    flex: 1 1 160px;
    min-width: 0;
    width: auto !important;
  }

  .inv-ops .inv-status-chart-row,
  .inv-ops .inv-chart-detail-row {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  .inv-ops .inv-panel.inv-domain-chart-panel,
  .inv-ops .inv-panel.inv-category-board-panel,
  .inv-ops .inv-status-pie-slot,
  .inv-ops .inv-panel.inv-status-chart-panel,
  .inv-ops .inv-panel.inv-action-items-panel,
  .inv-ops .inv-panel.inv-chart-detail-panel {
    grid-column: auto;
    width: 100%;
    height: auto;
    max-height: none;
  }

  .inv-ops .inv-status-pie-slot {
    min-height: 240px;
    height: 260px;
  }

  .inv-ops .inv-panel.inv-domain-chart-panel {
    min-height: 260px;
    height: 280px;
  }

  .inv-ops .inv-panel.inv-category-board-panel {
    min-height: 0;
    max-height: 320px;
  }

  .inv-ops .inv-category-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inv-ops .inv-chart-detail-row.inv-detail-row-actions-only .inv-action-items-panel {
    grid-column: auto;
  }

  .inv-ops .inv-panel.inv-chart-detail-panel,
  .inv-ops .inv-panel.inv-action-items-panel {
    min-height: 0;
    height: auto;
    overflow: visible;
  }

  .inv-ops .inv-chart-detail-body {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: hidden;
  }

  .inv-ops .inv-asset-grid-desktop {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  .inv-ops .inv-asset-card-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-auto-rows: max-content;
    align-items: start;
    align-content: start;
    justify-items: stretch;
    gap: 0.65rem;
    height: 400px;
    min-height: 400px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.15rem 0.15rem 0.35rem;
  }

  .inv-ops .inv-asset-card-list > .inv-empty {
    grid-column: 1 / -1;
  }

  .inv-ops .inv-asset-card {
    flex: none;
    height: auto;
  }

  .inv-ops .inv-asset-card-copy {
    display: flex;
    flex-direction: column;
  }

  .inv-ops .inv-asset-card-actions .e-btn {
    min-height: 32px;
    font-size: 0.72rem;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }

  .inv-ops .inv-action-items-body {
    max-height: 280px;
  }
}

@media (max-width: 640px) {
  .inv-ops .inv-queue-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inv-ops .inv-category-board {
    grid-template-columns: 1fr;
  }

  .inv-ops .inv-ops-head-controls .e-ddl,
  .inv-ops .inv-ops-head-controls .e-input-group {
    flex: 1 1 100%;
  }

  .inv-ops .inv-chart-detail-body {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
    overflow: hidden;
  }

  .inv-ops .inv-asset-card-list {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.45rem;
    height: 400px;
    min-height: 400px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .inv-ops .inv-asset-card {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
  }

  .inv-ops .inv-asset-card-copy {
    display: flex;
    flex-direction: column;
  }

  .inv-ops .inv-asset-card-details {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .inv-ops .inv-asset-card-main {
    gap: 0.5rem;
    padding: 0.5rem 0.55rem 0.4rem;
  }

  .inv-ops .inv-asset-card .inv-asset-card-thumb.inv-asset-image-wrap {
    flex-basis: 48px;
    width: 48px;
    min-width: 48px;
    max-width: 48px;
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    border-radius: 8px;
  }

  .inv-ops .inv-asset-card .inv-asset-card-thumb .inv-asset-thumb {
    width: 48px;
    height: 48px;
    min-height: 48px;
    border-radius: 8px;
  }

  .inv-ops .inv-asset-card-title {
    font-size: 0.78rem;
    margin: 0.1rem 0 0.2rem;
  }

  .inv-ops .inv-asset-card-meta {
    font-size: 0.62rem;
    gap: 0.08rem;
  }

  .inv-ops .inv-asset-card-topline .inv-status-badge {
    font-size: 0.62rem;
    padding: 0.08rem 0.38rem;
  }

  .inv-ops .inv-asset-card-topline .inv-asset-tag-link {
    font-size: 0.75rem;
  }

  .inv-ops .inv-asset-card-actions {
    gap: 0.3rem;
    padding: 0.35rem 0.45rem 0.4rem;
  }

  .inv-ops .inv-asset-card-actions .e-btn {
    min-height: 28px;
    font-size: 0.68rem;
    padding-left: 0.3rem;
    padding-right: 0.3rem;
  }
}

/* =========================================================
   Asset 360 dialog — flat page, one scrollbar, no cards
   ========================================================= */
.a360-dialog.e-dialog,
.e-dialog.a360-dialog {
  width: 72vw !important;
  max-width: 920px !important;
  height: auto !important;
  max-height: 92vh !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.a360-dialog .e-dlg-content,
.e-dialog.a360-dialog .e-dlg-content {
  height: auto !important;
  max-height: calc(92vh - 54px) !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
}

.a360-empty,
.a360-idle {
  margin: 0;
  padding: 0.85rem 0;
  color: #6b7280;
  font-size: 0.85rem;
}

.a360-page {
  padding: 1rem 1.25rem 1.5rem;
  background: #fff;
}

.a360-top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 0.85rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid #e5e7eb;
}

.a360-photo {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f1f5f9;
  border: 1px solid #e5e7eb;
}

.a360-photo.is-placeholder {
  object-fit: contain;
  padding: 0.4rem;
  opacity: 0.7;
}

.a360-top-copy {
  min-width: 0;
  flex: 1;
}

.a360-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1A326A;
}

.a360-name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.25;
}

.a360-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: #6b7280;
}

.a360-top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.a360-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 1.15rem 0 0.35rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid #1A326A;
}

.a360-section-head h3 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: #1A326A;
}

.a360-head-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 600;
}

.a360-head-meta .is-warn { color: #d97706; }

.a360-subhead {
  margin: 0.7rem 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
}

.a360-link {
  border: 0;
  background: none;
  padding: 0;
  color: #1A326A;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.a360-link:hover { color: #2563eb; }

.a360-kv,
.a360-table {
  width: 100%;
  border-collapse: collapse;
}

.a360-kv th {
  width: 12%;
  text-align: left;
  vertical-align: top;
  padding: 0.4rem 0.75rem 0.4rem 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #6b7280;
  white-space: nowrap;
}

.a360-kv td {
  width: 38%;
  vertical-align: top;
  padding: 0.4rem 1rem 0.4rem 0;
  font-size: 0.85rem;
  font-weight: 650;
  color: #111827;
  overflow-wrap: anywhere;
}

.a360-table th {
  text-align: left;
  padding: 0.35rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #6b7280;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

.a360-table td {
  padding: 0.45rem 0.5rem;
  font-size: 0.8rem;
  color: #111827;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.a360-table tr.is-open { background: #f8fbff; }
.a360-table tr.is-overdue { background: #fff8f8; }
.a360-table tr.is-due { background: #fffbeb; }

.a360-due { font-weight: 700; color: #6b7280; }
.a360-due.is-overdue { color: #dc2626; }
.a360-due.is-due { color: #d97706; }

.a360-row-actions {
  white-space: nowrap;
  text-align: right;
}

.a360-row-actions .a360-link + .a360-link { margin-left: 0.65rem; }

.a360-scroll {
  height: 220px;
  max-height: 220px;
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.a360-scroll .a360-subhead {
  margin: 0.45rem 0.6rem 0.15rem;
}

.a360-scroll .a360-table {
  min-width: 640px;
}

.a360-scroll .a360-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
}

@media (max-width: 1100px) {
  .a360-dialog.e-dialog,
  .e-dialog.a360-dialog {
    width: calc(100vw - 1.5rem) !important;
    max-width: calc(100vw - 1.5rem) !important;
    max-height: calc(100svh - 2rem) !important;
  }

  .a360-dialog .e-dlg-content,
  .e-dialog.a360-dialog .e-dlg-content {
    max-height: calc(100svh - 2rem - 54px) !important;
  }

  .a360-top { flex-wrap: wrap; }
  .a360-top-actions { width: 100%; justify-content: flex-start; }
  .a360-section-head { flex-wrap: wrap; align-items: center; }
  .a360-head-meta { flex-wrap: wrap; }

  .a360-kv,
  .a360-kv tbody {
    display: block;
    width: 100%;
  }

  .a360-kv tr {
    display: grid;
    grid-template-columns: 7.25rem minmax(0, 1fr);
    gap: 0.1rem 0.65rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid #f1f5f9;
  }

  .a360-kv th,
  .a360-kv td {
    display: block;
    width: auto;
    padding: 0.1rem 0;
  }

  .a360-kv th { white-space: normal; }
  .a360-kv td[colspan] { grid-column: 2; }

  .a360-scroll {
    height: 200px;
    max-height: 200px;
  }

  .a360-scroll .a360-table { min-width: 680px; }
}

@media (max-width: 640px) {
  .a360-dialog.e-dialog,
  .e-dialog.a360-dialog {
    width: calc(100vw - 0.75rem) !important;
    max-width: calc(100vw - 0.75rem) !important;
    max-height: calc(100svh - 4.5rem) !important;
    top: calc(env(safe-area-inset-top, 0px) + 0.65rem) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
  }

  .a360-dialog .e-dlg-content,
  .e-dialog.a360-dialog .e-dlg-content {
    max-height: calc(100svh - 4.5rem - 48px) !important;
  }

  .a360-page { padding: 0.75rem 0.75rem 1.1rem; }
  .a360-name { font-size: 0.98rem; }
  .a360-photo { width: 48px; height: 48px; }

  .a360-top-actions .e-btn {
    min-height: 2.2rem;
    padding: 0.3rem 0.65rem;
    font-size: 0.78rem;
  }

  .a360-link {
    min-height: 2rem;
    display: inline-flex;
    align-items: center;
  }

  .a360-kv tr { grid-template-columns: 6.5rem minmax(0, 1fr); }

  .a360-scroll {
    height: 180px;
    max-height: 180px;
  }

  .a360-row-actions {
    white-space: normal;
  }

  .a360-row-actions .a360-link + .a360-link { margin-left: 0.5rem; }
}
