/* Storage control center */
.sto-page {
  --sto-navy: #1e3a8a;
  --sto-green: #166534;
  --sto-amber: #a16207;
  --sto-red: #991b1b;
  --sto-violet: #5b21b6;
  --sto-ink: #0f172a;
  --sto-muted: #475569;
  --sto-line: #d8e0ea;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 4px 28px;
  box-sizing: border-box;
}
.sto-cc-crumb {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}
.sto-cc-crumb b { color: var(--sto-ink); font-weight: 800; }
.sto-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.sto-page-head h2 {
  margin: 0 0 4px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--sto-ink);
}
.sto-subtitle {
  margin: 0;
  font-size: 13px;
  color: var(--sto-muted);
  font-weight: 600;
}
.sto-page-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.sto-yard-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--sto-line);
  background: #fff;
  color: var(--sto-ink);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.sto-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--sto-line);
  background: #fff;
  color: #94a3b8;
  min-width: 240px;
  flex: 1 1 220px;
  max-width: 320px;
}
.sto-search {
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--sto-ink);
  width: 100%;
}
.sto-kpi-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.sto-kpi {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--sto-line);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.sto-kpi-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--sto-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sto-kpi b {
  display: block;
  margin-top: 4px;
  font-size: 26px;
  font-weight: 800;
  color: var(--sto-ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.sto-kpi-unit {
  font-size: 13px;
  font-weight: 700;
  color: var(--sto-muted);
}
.sto-kpi-trend {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}
.sto-kpi-trend--up { color: var(--sto-green); }
.sto-kpi-ico {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  flex: 0 0 auto;
}
.sto-kpi-ico--green { background: #dcfce7; color: var(--sto-green); }
.sto-kpi-ico--amber { background: #fef3c7; color: var(--sto-amber); }
.sto-kpi-ico--blue { background: #dbeafe; color: var(--sto-navy); }
.sto-kpi-ico--violet { background: #ede9fe; color: var(--sto-violet); }

.sto-cc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
  align-items: start;
}
.sto-card {
  border: 1px solid var(--sto-line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.sto-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px 0;
}
.sto-card-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--sto-ink);
}
.sto-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 12px 16px;
}
.sto-select-wrap { display: inline-flex; }
.sto-select {
  height: 34px;
  padding: 0 28px 0 10px;
  border-radius: 10px;
  border: 1px solid var(--sto-line);
  background: #f8fafc;
  appearance: none;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--sto-ink);
}
.sto-table-wrap {
  overflow-x: auto;
  overflow-y: visible;
  flex: 0 0 auto;
  height: auto;
}
.sto-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.sto-table th,
.sto-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #eef2f7;
  vertical-align: middle;
}
.sto-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  font-weight: 800;
  background: #fafbfc;
}
.sto-table td b {
  display: block;
  color: var(--sto-ink);
  font-weight: 700;
}
.sto-table td small {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
}
.sto-mono { font-variant-numeric: tabular-nums; font-weight: 700; color: #475569; }
.sto-bin {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
}
.sto-mat {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.sto-mat > div { min-width: 0; }
.sto-empty {
  text-align: center;
  color: var(--sto-muted);
  padding: 36px 16px !important;
  font-weight: 600;
}
.sto-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.sto-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}
.sto-pill--ok { background: #dcfce7; color: var(--sto-green); border: 1px solid #86efac; }
.sto-pill--low { background: #fef3c7; color: var(--sto-amber); border: 1px solid #fcd34d; }
.sto-pill--out { background: #fee2e2; color: var(--sto-red); border: 1px solid #fca5a5; }
.sto-pill--res { background: #ede9fe; color: var(--sto-violet); border: 1px solid #c4b5fd; }

.sto-photo-btn {
  display: inline-flex;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 10px;
  flex-shrink: 0;
}
.sto-photo-thumb {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f1f5f9 center/cover no-repeat;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
}
.sto-photo-thumb.has-img { background-color: #e2e8f0; }
.sto-photo-thumb--empty { background: #dbeafe; color: var(--sto-navy); border-color: #93c5fd; }

.sto-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
}
.sto-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--sto-line);
  background: #fff;
  color: var(--sto-navy);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.sto-icon-btn:hover { background: #eff6ff; }
.sto-icon-btn--danger { color: var(--sto-red); }
.sto-icon-btn--danger:hover { background: #fee2e2; }

.sto-btn {
  border: 1px solid var(--sto-line);
  background: #fff;
  color: var(--sto-ink);
  border-radius: 10px;
  padding: 7px 11px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.sto-btn:hover { background: #f8fafc; }
.sto-btn--primary {
  background: var(--sto-navy);
  border-color: var(--sto-navy);
  color: #fff;
  height: 40px;
  padding: 0 16px;
}
.sto-btn--primary:hover { background: #1e40af; }
.sto-btn--outline {
  height: 40px;
  padding: 0 14px;
  background: #fff;
  border-color: var(--sto-line);
  color: var(--sto-ink);
}
.sto-btn--ghost {
  height: 34px;
  color: var(--sto-navy);
  border-color: #93c5fd;
  background: #eff6ff;
}
.sto-btn--release {
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  background: #1e3a8a;
  border-color: #1e3a8a;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.sto-btn--release:hover { background: #1e40af; }
.sto-btn--block { width: 100%; height: 40px; margin-top: 10px; }

.sto-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px 14px;
  border-top: 1px solid #eef2f7;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}
.sto-pager-btns { display: flex; gap: 4px; }
.sto-page-btn {
  min-width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--sto-line);
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  color: var(--sto-ink);
}
.sto-page-btn.is-on {
  background: var(--sto-navy);
  border-color: var(--sto-navy);
  color: #fff;
}
.sto-page-size {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sto-page-size select {
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--sto-line);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.sto-cc-rail {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sto-side-card {
  border: 1px solid var(--sto-line);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.sto-side-head h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  color: var(--sto-ink);
}
.sto-side-empty {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}
.sto-recv b {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--sto-ink);
}
.sto-recv p {
  margin: 4px 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}
.sto-steps {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}
.sto-steps span {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
}
.sto-steps span i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f1f5f9;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
}
.sto-steps span.is-on { color: var(--sto-navy); }
.sto-steps span.is-on i {
  background: #dbeafe;
  color: var(--sto-navy);
}

.sto-attn-list,
.sto-mov-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sto-attn-row,
.sto-mov-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: start;
}
.sto-attn-row b,
.sto-mov-row b {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--sto-ink);
  line-height: 1.3;
}
.sto-attn-row small,
.sto-mov-row small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}
.sto-attn-ico,
.sto-mov-ico {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}
.sto-attn-ico { background: #fef3c7; color: var(--sto-amber); }
.sto-mov-ico { background: #dcfce7; color: var(--sto-green); }
.sto-mov-row--out .sto-mov-ico { background: #dbeafe; color: var(--sto-navy); }
.sto-mov-delta {
  font-size: 12px;
  font-weight: 800;
  color: var(--sto-green);
}
.sto-mov-row--out .sto-mov-delta { color: var(--sto-navy); }
.sto-link {
  border: none;
  background: none;
  color: var(--sto-navy);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
}
.sto-link:hover { text-decoration: underline; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 1100px) {
  .sto-cc-layout { grid-template-columns: 1fr; }
  .sto-cc-rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .sto-kpi-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sto-cc-rail { grid-template-columns: 1fr; }
}

body:not([data-gce-mode="light"]) .sto-page-head h2,
body:not([data-gce-mode="light"]) .sto-card-head h3,
body:not([data-gce-mode="light"]) .sto-side-head h3,
body:not([data-gce-mode="light"]) .sto-table td b,
body:not([data-gce-mode="light"]) .sto-kpi b,
body:not([data-gce-mode="light"]) .sto-recv b,
body:not([data-gce-mode="light"]) .sto-attn-row b,
body:not([data-gce-mode="light"]) .sto-mov-row b,
body:not([data-gce-mode="light"]) .sto-cc-crumb b { color: #f8fafc; }
body:not([data-gce-mode="light"]) .sto-subtitle,
body:not([data-gce-mode="light"]) .sto-kpi-label,
body:not([data-gce-mode="light"]) .sto-cc-crumb { color: #94a3b8; }
body:not([data-gce-mode="light"]) .sto-card,
body:not([data-gce-mode="light"]) .sto-kpi,
body:not([data-gce-mode="light"]) .sto-side-card,
body:not([data-gce-mode="light"]) .sto-search-wrap,
body:not([data-gce-mode="light"]) .sto-yard-pill {
  background: #111827;
  border-color: rgba(148, 163, 184, 0.18);
}
body:not([data-gce-mode="light"]) .sto-table th { background: #0f172a; color: #94a3b8; }
body:not([data-gce-mode="light"]) .sto-table th,
body:not([data-gce-mode="light"]) .sto-table td,
body:not([data-gce-mode="light"]) .sto-pager { border-color: rgba(148, 163, 184, 0.12); }
body:not([data-gce-mode="light"]) .sto-search,
body:not([data-gce-mode="light"]) .sto-yard-pill { color: #e2e8f0; }
body:not([data-gce-mode="light"]) .sto-btn,
body:not([data-gce-mode="light"]) .sto-icon-btn,
body:not([data-gce-mode="light"]) .sto-select,
body:not([data-gce-mode="light"]) .sto-page-btn {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.22);
  color: #e2e8f0;
}
body:not([data-gce-mode="light"]) .sto-bin { background: #1e293b; color: #cbd5e1; }
