/* ============================================================
   ObrayMaq — panel dashboard (RC13)
   Direction: heavy-machinery instrument panel.
   Corporate blue structure + corporate orange accent, data in mono.
   Full-bleed, zero border-radius, no web fonts.
   Renders inside .obraymaq-app__content (app-shell provides the
   real full-screen frame and sidebar; the theme is not involved).
   ============================================================ */
.obraymaq-saas,
.obraymaq-saas * { box-sizing: border-box; }

.obraymaq-saas {
  /* Brand palette: corporate blue #0B4F9C, corporate orange #F47A20,
     dark gray #333333. Orange is the accent, blue the structural color,
     gray the text. Success stays green for a clear status signal. */
  --om-blue: #0b4f9c;
  --om-blue-700: #093f7d;
  --om-blue-soft: #eaf1f9;
  --om-orange: #f47a20;
  --om-orange-ink: #9a4a0c;
  --om-orange-soft: #fef0e4;
  --om-orange-line: #f9cfa6;
  --om-ink: #333333;
  --om-ink-2: #4a4f57;
  --om-muted: #7a8089;
  --om-line: #e4e7ec;
  --om-line-2: #eef0f3;
  --om-green: #1f9d57;
  --om-green-soft: #e7f6ee;
  --om-green-line: #b6e6c9;
  --om-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;

  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* The app shell renders the real sidebar; the dashboard's own is dead markup. */
.obraymaq-saas__sidebar { display: none; }
.obraymaq-saas__main { min-width: 0; padding: 0; }

/* ---- topbar ---- */
.obraymaq-saas__topbar {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 22px;
  margin-bottom: 24px;
}
.obraymaq-saas__eyebrow {
  display: inline-flex; align-items: center; gap: 7px; margin: 0 0 9px;
  font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--om-orange-ink);
}
.obraymaq-saas__eyebrow::before {
  content: ""; width: 6px; height: 6px; background: var(--om-orange);
}
.obraymaq-saas__topbar h1 {
  margin: 0 0 5px; color: var(--om-ink);
  font-size: clamp(24px, 3vw, 30px); font-weight: 760; letter-spacing: -.03em; line-height: 1.08;
}
.obraymaq-saas__topbar p:last-child { margin: 0; color: var(--om-muted); font-size: 13.5px; }

.obraymaq-saas__primary {
  display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto;
  min-height: 44px; padding: 0 18px; border-radius: 0;
  background: var(--om-blue); color: #fff !important;
  font-size: 13px; font-weight: 650; letter-spacing: -.01em; text-decoration: none;
  box-shadow: 0 8px 20px -8px rgba(20,23,31,.5); transition: .16s ease;
}
.obraymaq-saas__primary:hover { background: var(--om-blue-700); transform: translateY(-1px); }
.obraymaq-saas__primary .obraymaq-icon { width: 16px; height: 16px; }

/* ---- readiness panel (account status) ---- */
.obraymaq-saas__status {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 20px;
  margin-bottom: 20px; padding: 18px 20px;
  border: 1px solid var(--om-line); border-radius: 0;
  background: linear-gradient(180deg, #fff, #fcfdfe);
}
.obraymaq-saas__progress {
  --progress: 0;
  position: relative; display: grid; place-items: center; flex: 0 0 auto;
  width: 62px; height: 62px; border-radius: 50%;
  background: conic-gradient(var(--om-orange) calc(var(--progress) * 1%), #edeff2 0);
}
.obraymaq-saas__progress::before {
  content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #fff;
}
.obraymaq-saas__progress strong {
  position: relative; color: var(--om-ink);
  font-family: var(--om-mono); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.obraymaq-saas__status-copy strong { display: block; color: var(--om-ink); font-size: 14.5px; font-weight: 700; }
.obraymaq-saas__status-copy p { margin: 3px 0 0; color: var(--om-muted); font-size: 12.5px; }
.obraymaq-saas__status-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.obraymaq-saas__chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border: 1px solid var(--om-line); border-radius: 0;
  background: #fff; color: var(--om-ink-2); font-size: 11.5px; font-weight: 650; white-space: nowrap;
}
.obraymaq-saas__chip.is-good { border-color: var(--om-green-line); background: var(--om-green-soft); color: #0f7a3d; }

/* ---- metric readout row ---- */
.obraymaq-saas__stats {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 20px;
}
.obraymaq-saas-stat {
  display: flex; flex-direction: column; gap: 14px; min-width: 0;
  padding: 16px 16px 15px; border: 1px solid var(--om-line); border-radius: 0;
  background: #fff; color: var(--om-ink-2) !important; text-decoration: none; transition: .16s ease;
}
.obraymaq-saas-stat:hover {
  border-color: #cfd6e0; box-shadow: 0 12px 26px -16px rgba(16,24,40,.35); transform: translateY(-2px);
}
.obraymaq-saas-stat:first-child { box-shadow: inset 3px 0 var(--om-orange); }
.obraymaq-saas-stat:first-child:hover { box-shadow: inset 3px 0 var(--om-orange), 0 12px 26px -16px rgba(16,24,40,.35); }
.obraymaq-saas-stat__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.obraymaq-saas-stat__icon {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 0;
  background: #f1f3f6; color: #475467;
}
.obraymaq-saas-stat:first-child .obraymaq-saas-stat__icon { background: var(--om-orange-soft); color: var(--om-orange); }
.obraymaq-saas-stat__icon .obraymaq-icon { width: 17px; height: 17px; }
.obraymaq-saas-stat__arrow { color: #b6bcc7; }
.obraymaq-saas-stat__arrow .obraymaq-icon { width: 15px; height: 15px; }
.obraymaq-saas-stat span { color: var(--om-muted); font-size: 11.5px; font-weight: 600; }
.obraymaq-saas-stat strong {
  overflow: hidden; color: var(--om-ink);
  font-family: var(--om-mono); font-size: 25px; font-weight: 600; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap;
}

/* ---- lower grid ---- */
.obraymaq-saas__grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(280px,.9fr); gap: 16px; }
.obraymaq-saas-card {
  padding: 18px; border: 1px solid var(--om-line); border-radius: 0; background: #fff;
}
.obraymaq-saas-card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--om-line-2);
}
.obraymaq-saas-card__head h2 { margin: 0; color: var(--om-ink); font-size: 15px; font-weight: 700; letter-spacing: -.015em; }
.obraymaq-saas-card__head a { color: var(--om-blue); font-size: 11.5px; font-weight: 650; text-decoration: none; }
.obraymaq-saas-card__head a:hover { text-decoration: underline; }

.obraymaq-saas-actions { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.obraymaq-saas-action {
  display: flex; align-items: flex-start; gap: 11px; padding: 13px;
  border: 1px solid var(--om-line-2); border-radius: 0; background: #fff;
  color: var(--om-ink-2) !important; text-decoration: none; transition: .14s ease;
}
.obraymaq-saas-action:hover { border-color: var(--om-orange-line); background: #fffdfa; }
.obraymaq-saas-action > span:first-child {
  display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 0;
  background: #f1f3f6; color: #475467; transition: .14s ease;
}
.obraymaq-saas-action:hover > span:first-child { background: var(--om-orange-soft); color: var(--om-orange); }
.obraymaq-saas-action .obraymaq-icon { width: 18px; height: 18px; }
.obraymaq-saas-action strong, .obraymaq-saas-action small { display: block; }
.obraymaq-saas-action strong { color: var(--om-ink); font-size: 12.5px; font-weight: 650; }
.obraymaq-saas-action small { margin-top: 2px; color: var(--om-muted); font-size: 11px; line-height: 1.4; }

/* ---- activity feed as an equipment log ---- */
.obraymaq-saas-activity { display: flex; flex-direction: column; }
.obraymaq-saas-activity__item {
  display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 11px; padding: 11px 0;
  position: relative;
}
.obraymaq-saas-activity__item:not(:last-child)::before {
  content: ""; position: absolute; left: 14px; top: 34px; bottom: -4px; width: 1.5px; background: var(--om-line-2);
}
.obraymaq-saas-activity__item > span:first-child {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 0; z-index: 1;
  background: #f1f3f6; color: #475467;
}
.obraymaq-saas-activity__item .obraymaq-icon { width: 15px; height: 15px; }
.obraymaq-saas-activity__item strong, .obraymaq-saas-activity__item small { display: block; }
.obraymaq-saas-activity__item strong {
  overflow: hidden; color: var(--om-ink); font-size: 12px; font-weight: 600;
  text-overflow: ellipsis; white-space: nowrap;
}
.obraymaq-saas-activity__item small {
  margin-top: 1px; color: var(--om-muted); font-size: 10.5px;
  font-family: var(--om-mono); letter-spacing: -.01em;
}
.obraymaq-saas-empty { padding: 24px 10px; color: var(--om-muted); font-size: 12px; text-align: center; }

/* ---- responsive ---- */
@media (max-width: 1040px) {
  .obraymaq-saas__stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .obraymaq-saas__topbar { flex-direction: column; }
  .obraymaq-saas__primary { align-self: stretch; justify-content: center; }
  .obraymaq-saas__status { grid-template-columns: auto minmax(0,1fr); }
  .obraymaq-saas__status-meta { grid-column: 1 / -1; justify-content: flex-start; }
  .obraymaq-saas__grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .obraymaq-saas__stats, .obraymaq-saas-actions { grid-template-columns: 1fr; }
}
