/* ═══════════════════════════════════════════════════════
   MRG Storage Capacity — design overrides
   Matches mrg-schedule (sharp edges, MRG corporate blue).
   Loaded LAST so it wins over base.css / ax-containers.css.
   ═══════════════════════════════════════════════════════ */

:root {
  /* ── Brand: MRG corporate blue ── */
  --wt-theme-primary:        #1B4FA8;
  --wt-theme-primary-strong: #163e85;
  --wt-theme-primary-bright: #2563d6;
  --wt-theme-primary-dark:   #102f66;
  --wt-theme-primary-deep:   #081f4a;
  --wt-theme-primary-soft:   #cbd5f5;
  --wt-theme-primary-mist:   #e6efff;

  --c-blue:        #1B4FA8;
  --c-blue-bg:     #e6efff;
  --c-blue-soft:   #cbd5f5;
  --c-blue-d:      #163e85;

  /* ── Sharp corners — only pills/badges stay round ── */
  --radius:       3px;
  --radius-sm:    2px;
  --radius-xs:    2px;
  --radius-md:    3px;
  --radius-lg:    3px;
  --radius-xl:    3px;
  --radius-2xl:   3px;
  --radius-pill:  999px;

  --wt-shell-width: 1620px;
}

html, body {
  background: #f4f6fb;
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #0f172a;
}

/* ── Top nav (mirrors mrg-schedule) ───────────────────── */
.mrg-top-nav {
  width: 100%;
  position: sticky; top: 0; z-index: 800;
  background: #ffffff;
  border-bottom: 1px solid #e0e6ed;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: stretch;
  min-height: 64px;
  border-radius: 0;
  margin: 0;
}
.ph-brand {
  display: flex; align-items: center; gap: 11px;
  padding: 0 18px 0 16px;
  border-right: 1px solid #e0e6ed;
  background: linear-gradient(180deg, #fafbfd 0%, #ffffff 100%);
  flex-shrink: 0;
}
.ph-brand-mark {
  width: 40px; height: 40px;
  border-radius: 2px;
  background: var(--c-blue);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 900; font-size: 12px;
  letter-spacing: 1px;
}
.ph-brand-name { font-size: 14px; font-weight: 800; color: #0f172a; letter-spacing: -.3px; line-height: 1.2; }
.ph-brand-sub  { font-size: 11px; color: #8d8d8d; margin-top: 1px; font-weight: 600; }
.mrg-top-spacer { display:block; }
.ph-toolbar {
  display: flex; align-items: center; gap: 8px;
  padding: 0 16px;
}
.ph-sync-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border: 1px solid #e0e6ed;
  border-radius: 999px;
  background: #fff;
  font-size: 12px; font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.ph-sync-pill:hover { background: var(--c-blue-bg); border-color: var(--c-blue-soft); color: var(--c-blue); }
.ph-sync-pill .sync-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22,163,74,.16);
}

/* ── Tabs sit INSIDE the top nav, between brand and toolbar ─── */
.mrg-top-nav .ph-nav {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
}
.mrg-top-nav .ph-nav::-webkit-scrollbar { display: none; }

.ph-nav-btn {
  position: relative;
  display: inline-flex; align-items: center;
  border-radius: 0 !important;
  border-bottom: 3px solid transparent;
  font-weight: 600;
  letter-spacing: .01em;
  color: #64748b;
  padding: 0 16px;
  white-space: nowrap;
  background: none;
  border-left: 0; border-right: 0; border-top: 0;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.ph-nav-btn:hover { color: #0f172a; background: rgba(15,23,42,.035); }
.ph-nav-btn.is-active {
  color: var(--c-blue);
  background: var(--c-blue-bg);
  border-bottom-color: var(--c-blue);
}

/* Any leftover standalone tab strip (in panel headers, etc.) keeps
   the same look but stays full-width */
.ph-nav-wrap:not(.mrg-top-nav) {
  background: #fff;
  border-bottom: 1px solid #e0e6ed;
  border-radius: 0 !important;
  padding: 0 12px;
}

/* ── Cards & panels — sharp corners ───────────────────── */
.ax-card,
.cp-section,
.cp-strat-card,
.cp-health-card,
.cp-modal,
.ph-hub,
.ph-sidebar,
.ph-sb-item,
.wk-support-module,
.cp-source-grid > *,
.cp-skel-card,
.cp-unconfigured-block,
.cp-caps-form,
.cp-strat-rule,
.cp-strategy-cards > * {
  border-radius: 3px !important;
}
.ph-sb-badge,
.ph-nav-badge,
.cp-strat-price,
.wk-filter-pill,
.note-type,
.po-modal-badges > *,
.wk-support-count {
  border-radius: 999px !important;
}

/* Sharper KPI cards */
.ax-card {
  box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.03);
  border: 1px solid #e0e6ed;
  transition: transform .15s cubic-bezier(.22,1,.36,1), box-shadow .15s ease;
}
.ax-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,.06), 0 1.5px 5px rgba(0,0,0,.03);
}

/* Sidebar — flatter, sharper */
.ph-sidebar {
  background: #fff;
  border: 1px solid #e0e6ed;
  border-radius: 3px !important;
}
.ph-sb-item {
  border-radius: 2px !important;
}
.ph-sb-item.is-active {
  background: var(--c-blue-bg);
  color: var(--c-blue);
  font-weight: 700;
}

/* Modal — sharp + MRG accent */
.cp-modal {
  border-radius: 3px !important;
  border-top: 4px solid var(--c-blue);
}
.cp-modal-close {
  border-radius: 2px !important;
}

/* Buttons */
.btn, button.btn, .cp-info-btn {
  border-radius: 2px !important;
}
.btn-primary {
  background: var(--c-blue);
  color: #fff;
}
.btn-primary:hover { background: var(--wt-theme-primary-strong); }

/* Inputs */
input, textarea, select {
  border-radius: 2px !important;
}

/* Hide the page-header info button's circle accent so it doesn't look
   like a rogue circular control in an otherwise sharp UI */
.cp-info-mark {
  border-radius: 999px;
}
