/* OptiCommerceX — Shared Design System v1.0 */
/* Navy + Teal enterprise theme. No external font dependencies. */

:root {
  --navy:        #0F172A;
  --navy-light:  #1E293B;
  --navy-muted:  #334155;
  --teal:        #10B981;
  --teal-light:  #D1FAE5;
  --teal-dark:   #065F46;
  --white:       #FFFFFF;
  --surface:     #F8FAFC;
  --surface-2:   #F1F5F9;
  --border:      #E2E8F0;
  --border-dark: #CBD5E1;
  --text:        #1E293B;
  --text-muted:  #64748B;
  --text-light:  #94A3B8;
  --sidebar-w:   240px;
  --topbar-h:    60px;
  --radius:      8px;
  --radius-lg:   12px;
  --shadow:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ─────────────────────────────────────────────────── */
.ocx-layout {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar (legacy single-column — superseded by v6 nav below,
   left in place only in case any page still renders it) ───────── */
.ocx-sidebar {
  width: var(--sidebar-w);
  background: var(--navy);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  overflow-y: auto;
}

.ocx-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.ocx-sidebar__logo {
  background: var(--teal);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 7px;
  border-radius: 6px;
  letter-spacing: .5px;
}

.ocx-sidebar__brandname {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2px;
}

.ocx-sidebar__nav {
  flex: 1;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ocx-nav__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius);
  color: rgba(255,255,255,.65);
  font-size: 13px;
  font-weight: 500;
  transition: background .15s, color .15s;
  text-decoration: none;
}

.ocx-nav__item:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
  text-decoration: none;
}

.ocx-nav__item--active {
  background: rgba(16,185,129,.18);
  color: #6EE7B7;
}

.ocx-nav__item .ti { font-size: 18px; }

.ocx-sidebar__footer {
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  gap: 10px;
}

.ocx-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.ocx-sidebar__userinfo { flex: 1; min-width: 0; }
.ocx-sidebar__username { color: #fff; font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ocx-sidebar__userrole { color: rgba(255,255,255,.45); font-size: 11px; }

.ocx-sidebar__logout {
  color: rgba(255,255,255,.4);
  font-size: 18px;
  padding: 4px;
  border-radius: 4px;
  transition: color .15s;
}
.ocx-sidebar__logout:hover { color: #F87171; text-decoration: none; }

/* ── Main / Topbar ──────────────────────────────────────────── */
.ocx-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.ocx-topbar {
  height: var(--topbar-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.ocx-topbar__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}

.ocx-content {
  padding: 28px;
  flex: 1;
}

/* ── Cards ──────────────────────────────────────────────────── */
.ocx-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow);
}

.ocx-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Stat Cards ─────────────────────────────────────────────── */
.ocx-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.ocx-stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--shadow);
}

.ocx-stat-card__icon {
  width: 42px; height: 42px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.ocx-stat-card--teal .ocx-stat-card__icon  { background: var(--teal-light); color: var(--teal-dark); }
.ocx-stat-card--navy .ocx-stat-card__icon  { background: #E0E7FF; color: #3730A3; }
.ocx-stat-card--amber .ocx-stat-card__icon { background: #FEF3C7; color: #92400E; }
.ocx-stat-card--red .ocx-stat-card__icon   { background: #FEE2E2; color: #991B1B; }

.ocx-stat-card__value { font-size: 24px; font-weight: 700; color: var(--text); line-height: 1; }
.ocx-stat-card__label { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.ocx-stat-card__sub   { font-size: 11px; color: var(--teal); margin-top: 4px; }

/* ── Badges ─────────────────────────────────────────────────── */
.ocx-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: .3px;
  white-space: nowrap;
}

.ocx-badge--success { background: #D1FAE5; color: #065F46; }
.ocx-badge--warning { background: #FEF3C7; color: #92400E; }
.ocx-badge--danger  { background: #FEE2E2; color: #991B1B; }
.ocx-badge--info    { background: #DBEAFE; color: #1E40AF; }
.ocx-badge--purple  { background: #EDE9FE; color: #5B21B6; }
.ocx-badge--gray    { background: var(--surface-2); color: var(--text-muted); }
.ocx-badge--module  { background: rgba(16,185,129,.12); color: var(--teal-dark); font-size: 10px; }

/* ── Tables ─────────────────────────────────────────────────── */
.ocx-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.ocx-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 13px;
}

.ocx-table thead th {
  background: var(--surface);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.ocx-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

.ocx-table tbody tr:last-child td { border-bottom: none; }

.ocx-table tbody tr:hover { background: var(--surface); }

.ocx-table .ocx-table__img {
  width: 40px; height: 40px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.ocx-table .ocx-table__img--placeholder {
  width: 40px; height: 40px;
  background: var(--surface-2);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-light);
  font-size: 16px;
}

/* ── Alerts ─────────────────────────────────────────────────── */
.ocx-alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 500;
}

.ocx-alert--success { background: #D1FAE5; color: #065F46; border-left: 3px solid var(--teal); }
.ocx-alert--danger  { background: #FEE2E2; color: #991B1B; border-left: 3px solid #EF4444; }
.ocx-alert--warning { background: #FEF3C7; color: #92400E; border-left: 3px solid #F59E0B; }
.ocx-alert--info    { background: #DBEAFE; color: #1E40AF; border-left: 3px solid #3B82F6; }

/* ── Forms ──────────────────────────────────────────────────── */
.ocx-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.ocx-field { display: flex; flex-direction: column; gap: 5px; }

.ocx-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .4px;
}

.ocx-input, .ocx-select, .ocx-textarea {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}

.ocx-input:focus, .ocx-select:focus, .ocx-textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(16,185,129,.12);
}

/* ── Buttons ────────────────────────────────────────────────── */
.ocx-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity .15s, transform .1s;
  text-decoration: none;
  white-space: nowrap;
}

.ocx-btn:active { transform: scale(.98); }
.ocx-btn:hover  { opacity: .9; text-decoration: none; }

.ocx-btn--primary  { background: var(--teal); color: #fff; }
.ocx-btn--navy     { background: var(--navy); color: #fff; }
.ocx-btn--outline  { background: transparent; color: var(--text); border: 1px solid var(--border); }
.ocx-btn--danger   { background: #EF4444; color: #fff; }
.ocx-btn--sm       { padding: 6px 12px; font-size: 12px; }

/* ── Filters bar ────────────────────────────────────────────── */
.ocx-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.ocx-filters .ocx-input,
.ocx-filters .ocx-select { width: auto; min-width: 160px; }

.ocx-filters__spacer { flex: 1; }

/* ── Section header ─────────────────────────────────────────── */
.ocx-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.ocx-section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

/* ── Login page ─────────────────────────────────────────────── */
.ocx-login-page {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.ocx-login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.ocx-login-brand {
  text-align: center;
  margin-bottom: 28px;
}

.ocx-login-logo {
  display: inline-flex;
  background: var(--teal);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 8px;
  letter-spacing: .5px;
  margin-bottom: 12px;
}

.ocx-login-brand h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
}

.ocx-login-brand p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Pagination ─────────────────────────────────────────────── */
.ocx-pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  justify-content: flex-end;
}

.ocx-pagination a, .ocx-pagination span {
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 12px;
  color: var(--text);
  text-decoration: none;
}

.ocx-pagination a:hover { background: var(--surface); }
.ocx-pagination .ocx-pagination--active { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ── Image grid (product thumbnails) ───────────────────────── */
.ocx-img-thumb {
  width: 40px; height: 40px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  display: block;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .ocx-sidebar { transform: translateX(-100%); transition: transform .25s; }
  .ocx-sidebar.is-open { transform: translateX(0); }
  .ocx-main { margin-left: 0; }
  .ocx-content { padding: 16px; }
  .ocx-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ================================================================
   OCX CSS PATCH — Append these lines to the END of assets/css/ocx.css
   ================================================================ */

/* ── Fix page transition white flash ────────────────────────────────────────
   The browser flashes white between pages because the default body
   background is white before CSS loads. Setting html background color
   to match our surface color prevents the flash. */
html {
  background: var(--surface);
}

/* Subtle fade-in on every page load — eliminates the jarring cut */
body {
  animation: ocx-fadein 0.12s ease-out;
}

@keyframes ocx-fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Sidebar brand link (no underline when clicking OCX logo) ─────────────── */
.ocx-sidebar__brand a:hover {
  text-decoration: none;
}

/* ── Channel/account filter dynamic hide ─────────────────────────────────── */
.account-option-hidden {
  display: none;
}

/* ═══════════════════════════════════════════════════════════════════
   OCX Two-Level Navigation v6  (append to ocx.css)
   Icon rail (92px, icon + always-visible label) + feature sidebar (240px)
   = 332px combined. Replaces the single 240px sidebar. ocx-main's
   margin-left:var(--sidebar-w) uses this variable, so bumping it shifts
   all content automatically.

   CHANGES IN THIS VERSION (widened per request):
     - --sidebar-w: 276px -> 332px
     - .ocx-rail: 64px -> 92px, now shows icon + small label stacked
       (was icon-only with hover tooltip)
     - .ocx-feat: 212px -> 240px
     - mobile collapsed-rail width updated to match (64px -> 92px)
   ═══════════════════════════════════════════════════════════════════ */

/* CRITICAL: widen so ocx-main's margin-left:var(--sidebar-w) clears both columns */
:root { --sidebar-w: 332px; }

/* Combined nav block — fixed, occupies the sidebar slot */
.ocx-nav2 {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  display: flex;
  z-index: 100;
}

/* ── Zone 1: icon rail (now with permanent text labels) ─────────────── */
.ocx-rail {
  width: 92px;
  background: #0B1220;
  display: flex; flex-direction: column; align-items: center;
  padding: 14px 0; gap: 4px; flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,.05);
}
.ocx-rail__logo {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg,#10B981,#059669);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12px; color: #fff; margin-bottom: 10px;
  letter-spacing: .5px; text-decoration: none;
}
.ocx-rail__item {
  position: relative; width: 80px; height: 56px; border-radius: 11px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: #94A3B8; text-decoration: none; transition: all .15s;
}
.ocx-rail__item:hover { background: rgba(255,255,255,.07); color: #fff; }
.ocx-rail__item.is-active { background: rgba(16,185,129,.18); color: #6EE7B7; }
.ocx-rail__item .ti { font-size: 20px; }

/* Was a hover-only tooltip; now a permanently visible label under the icon */
.ocx-rail__tip {
  position: static; background: transparent; color: inherit; font-size: 10px;
  font-weight: 600; padding: 0; white-space: nowrap; opacity: 1;
  pointer-events: auto; box-shadow: none; text-align: center;
}

.ocx-rail__spacer { flex: 1; }
.ocx-rail__foot {
  width: 38px; height: 38px; border-radius: 50%; background: #10B981;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 14px; margin-top: 6px;
}

/* ── Zone 2: feature sidebar ───────────────────────────────────────── */
.ocx-feat {
  width: 240px; background: #0F172A; flex-shrink: 0;
  display: flex; flex-direction: column;
  border-right: 1px solid rgba(255,255,255,.05); overflow-y: auto;
}
.ocx-feat__head {
  padding: 18px 18px 12px; font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: #10B981;
}
.ocx-feat__group { padding: 4px 0; }
.ocx-feat__label {
  padding: 10px 18px 4px; font-size: 10px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: #475569;
}
.ocx-feat__item {
  display: flex; align-items: center; gap: 11px; padding: 9px 18px;
  font-size: 13.5px; color: #CBD5E1; text-decoration: none; transition: all .13s;
}
.ocx-feat__item:hover { background: rgba(255,255,255,.05); color: #fff; }
.ocx-feat__item.is-active {
  background: rgba(16,185,129,.14); color: #6EE7B7;
  box-shadow: inset 3px 0 0 #10B981;
}
.ocx-feat__item .ti { font-size: 17px; flex-shrink: 0; }
.ocx-feat__badge {
  margin-left: auto; background: #EF4444; color: #fff; font-size: 10px;
  font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; padding: 0 5px;
}
.ocx-feat__badge.amber { background: #F59E0B; }
.ocx-feat__empty { padding: 16px 18px; font-size: 12px; color: #475569; line-height: 1.5; }

/* Hide the OLD single sidebar if any page still renders it */
.ocx-sidebar { display: none !important; }

/* ═══════════════════════════════════════════════════════════════════
   Layout pass for laptops and phones (E2E test 2026-10-23: "the page doesn't fit a laptop at normal zoom;
   on the phone I had to switch Chrome to desktop view").
   - 1440 px and wider: both menu columns, as before.
   - 861–1439 px (laptops, also 1366 px screens at 125% Windows scaling): only the icon column stays; the
     module's page list slides out when you point at the menu or tap "Pages". Content gets ~240 px more room.
   - 860 px and narrower (phones, small tablets): the whole menu hides behind the ☰ button (top left);
     tables scroll sideways inside their box, side-by-side blocks stack, inputs don't zoom the page.
   ═══════════════════════════════════════════════════════════════════ */
.ocx-navtoggle, .ocx-navbackdrop { display: none; }
.ocx-rail__pages { display: none; border: 0; background: transparent; font: inherit; cursor: pointer; }
.ocx-feat__close { display: none; }
.ocx-feat__pin { display: none; }
@media (min-width: 861px) { body:not(.ocx-nav-pinned) .ocx-feat__close { display: block; } .ocx-feat__pin { display: block; } }
.ocx-table-wrap, .table-wrap { max-width: 100%; overflow-x: auto; }
.ocx-main { min-width: 0; }
.ocx-content { min-width: 0; }

/* Same on every laptop and monitor (Efe 2026-10-24: the list "contracted, then came back" — it depended on window
   width and zoom). Collapsed by default; "Keep open" (pin, remembered per browser) shows both columns. */
@media (min-width: 861px) {
  body:not(.ocx-nav-pinned) { --sidebar-w: 92px; }
  body:not(.ocx-nav-pinned) .ocx-nav2 { width: 92px; }
  body:not(.ocx-nav-pinned) .ocx-rail__pages { display: flex; }
  body:not(.ocx-nav-pinned) .ocx-feat {
    position: fixed; top: 0; bottom: 0; left: 92px; width: 240px; z-index: 101;
    box-shadow: 8px 0 24px rgba(0,0,0,.25);
    visibility: hidden; opacity: 0; transform: translateX(-12px);
    transition: opacity .12s, transform .12s, visibility 0s linear .12s;
  }
  body:not(.ocx-nav-pinned) .ocx-nav2:hover .ocx-feat, body:not(.ocx-nav-pinned) .ocx-nav2:focus-within .ocx-feat, body.ocx-nav-open:not(.ocx-nav-pinned) .ocx-feat {
    visibility: visible; opacity: 1; transform: none;
    transition: opacity .12s .15s, transform .12s .15s, visibility 0s linear .15s;
  }
  body.ocx-nav-open:not(.ocx-nav-pinned) .ocx-feat { transition-delay: 0s; }
}

/* Picture zoom: click/tap any product picture to see it large (procurement, Efe 2026-10-24) */
.ocx-zoomable { cursor: zoom-in; }
.ocx-zoom { position: fixed; inset: 0; z-index: 300; background: rgba(15,23,42,.88); display: none; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.ocx-zoom.is-open { display: flex; }
.ocx-zoom img { max-width: min(92vw, 900px); max-height: 86vh; object-fit: contain; background: #fff; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.ocx-zoom__cap { position: absolute; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); left: 16px; right: 16px; text-align: center; color: #E2E8F0; font-size: 13px; }

@media (max-width: 860px) {
  :root { --sidebar-w: 0px; }
  .ocx-nav2 { width: 332px; max-width: 88vw; transform: translateX(-100%); transition: transform .2s; z-index: 120; }
  body.ocx-nav-open .ocx-nav2 { transform: none; }
  .ocx-rail__pages { display: none; }
  .ocx-feat, .ocx-nav2:hover .ocx-feat, .ocx-nav2:focus-within .ocx-feat {
    position: static; visibility: visible; opacity: 1; transform: none; box-shadow: none; flex: 1; width: auto; min-width: 0;
  }
  .ocx-navtoggle {
    display: flex; align-items: center; justify-content: center; position: fixed; z-index: 110;
    top: calc(8px + env(safe-area-inset-top, 0px)); left: calc(8px + env(safe-area-inset-left, 0px));
    width: 44px; height: 44px; border-radius: 10px; border: 0; background: var(--navy); color: #fff; font-size: 22px; cursor: pointer;
  }
  body.ocx-nav-open .ocx-navbackdrop { display: block; position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 115; }
  .ocx-topbar { height: auto; min-height: 60px; flex-wrap: wrap; row-gap: 8px; padding: 8px 12px 8px 64px; }
  .ocx-content { padding: 14px 12px; }
  .ocx-content img, .ocx-content video, .ocx-content canvas { max-width: 100%; height: auto; }
  .ocx-content table:not(.ocx-table) { display: block; max-width: 100%; overflow-x: auto; }
  .ocx-content input, .ocx-content select, .ocx-content textarea { font-size: 16px; }   /* no zoom-in on tap (iPhone) */
  .ocx-stats-grid, .fin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 640px) {
  /* Pages built with inline side-by-side grids/rows: stack them on a phone */
  .ocx-content [style*="grid-template-columns"] { grid-template-columns: minmax(0, 1fr) !important; }
  .ocx-content [style*="display:flex"], .ocx-content [style*="display: flex"] { flex-wrap: wrap; }
  .ocx-stats-grid, .fin-grid { grid-template-columns: minmax(0, 1fr) !important; }
}
