/* ═══════════════════════════════════════════════════════════════
   OVERVIEW DASHBOARD — Enterprise
   Colors: Navy #1e3a5f · Gold #d4a44c · Orange #f97316 · White/Gray
   ═══════════════════════════════════════════════════════════════ */

/* ── Welcome Banner ─────────────────────────────────────────── */
.ov-welcome {
  background: linear-gradient(135deg, #1e3a5f 0%, #0f2030 55%, #1c2d4a 100%);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  position: relative;
  overflow: hidden;
}
.ov-welcome::before {
  content: '';
  position: absolute;
  top: -50px; right: -30px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(212,164,76,.22) 0%, transparent 65%);
  pointer-events: none;
}
.ov-welcome::after {
  content: '';
  position: absolute;
  bottom: -40px; left: 38%;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(249,115,22,.12) 0%, transparent 65%);
  pointer-events: none;
}
.ov-welcome-left { position: relative; z-index: 1; }
.ov-welcome-greeting {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: .4rem;
  display: flex;
  align-items: center;
  gap: .55rem;
}
.ov-welcome-greeting i { color: #d4a44c; font-size: 1.1rem; }
.ov-welcome-greeting span { color: #d4a44c; }
.ov-welcome-sub {
  font-size: .875rem;
  color: rgba(255,255,255,.58);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.ov-welcome-sub i { color: rgba(255,255,255,.35); font-size: .78rem; }
.ov-welcome-right {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.ov-welcome-pills { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.ov-welcome-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .42rem .9rem;
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: opacity .15s ease, transform .15s ease;
  font-family: inherit;
}
.ov-welcome-pill:hover { opacity: .85; transform: scale(.97); }
.ov-welcome-pill--warn  { background: rgba(249,115,22,.18); color: #fdba74; border: 1px solid rgba(249,115,22,.3); }
.ov-welcome-pill--amber { background: rgba(245,158,11,.18); color: #fcd34d; border: 1px solid rgba(245,158,11,.3); }

/* ── Section Title ───────────────────────────────────────────── */
.ov-section-title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .55rem;
}
.ov-section-title i { color: #d4a44c; font-size: .75rem; }
.ov-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, #e2e8f0, transparent);
}

/* ── KPI Grid ────────────────────────────────────────────────── */
.ov-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

/* ── KPI Card ────────────────────────────────────────────────── */
.ov-kpi {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.25rem 1.35rem 1.1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 0 0 1px rgba(0,0,0,.05);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
  border-top: 3px solid transparent;
}
.ov-kpi:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,.10), 0 0 0 1px rgba(0,0,0,.05);
}
.ov-kpi-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: .55rem;
}
.ov-kpi-icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.ov-kpi-num {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.03em;
  margin-bottom: .22rem;
}
.ov-kpi-label {
  font-size: .73rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .055em;
}
.ov-kpi-sub {
  font-size: .72rem;
  color: #94a3b8;
  margin-top: .5rem;
  display: flex;
  align-items: center;
  gap: .3rem;
  border-top: 1px solid #f1f5f9;
  padding-top: .55rem;
}
.ov-kpi-sub i { font-size: .65rem; }

/* ── KPI Colour Variants ─────────────────────────────────────── */
.ov-kpi--gold   { border-top-color: #d4a44c; }
.ov-kpi--gold   .ov-kpi-icon { background: #fef3c7; color: #d97706; }
.ov-kpi--gold   .ov-kpi-num  { color: #b45309; }

.ov-kpi--navy   { border-top-color: #1e3a5f; }
.ov-kpi--navy   .ov-kpi-icon { background: #dbeafe; color: #1e3a5f; }
.ov-kpi--navy   .ov-kpi-num  { color: #1e3a5f; }

.ov-kpi--slate  { border-top-color: #64748b; }
.ov-kpi--slate  .ov-kpi-icon { background: #f1f5f9; color: #475569; }
.ov-kpi--slate  .ov-kpi-num  { color: #334155; }

.ov-kpi--purple { border-top-color: #7c3aed; }
.ov-kpi--purple .ov-kpi-icon { background: #ede9fe; color: #7c3aed; }
.ov-kpi--purple .ov-kpi-num  { color: #6d28d9; }

.ov-kpi--orange { border-top-color: #f97316; }
.ov-kpi--orange .ov-kpi-icon { background: #fff7ed; color: #ea580c; }
.ov-kpi--orange .ov-kpi-num  { color: #c2410c; }

.ov-kpi--amber  { border-top-color: #f59e0b; }
.ov-kpi--amber  .ov-kpi-icon { background: #fffbeb; color: #d97706; }
.ov-kpi--amber  .ov-kpi-num  { color: #b45309; }

.ov-kpi--green  { border-top-color: #16a34a; }
.ov-kpi--green  .ov-kpi-icon { background: #dcfce7; color: #16a34a; }
.ov-kpi--green  .ov-kpi-num  { color: #15803d; }

.ov-kpi--red    { border-top-color: #dc2626; }
.ov-kpi--red    .ov-kpi-icon { background: #fee2e2; color: #dc2626; }
.ov-kpi--red    .ov-kpi-num  { color: #b91c1c; }

/* ── Bottom Two-Column Grid ──────────────────────────────────── */
.ov-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.25rem;
}

/* ── Status Distribution Card ────────────────────────────────── */
.ov-status-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 0 0 1px rgba(0,0,0,.05);
}
.ov-status-card-title {
  font-size: .95rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1.35rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid #f1f5f9;
}
.ov-status-card-title i { color: #d4a44c; }
.ov-status-row {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1rem;
}
.ov-status-row:last-of-type { margin-bottom: 0; }
.ov-status-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ov-status-name {
  font-size: .82rem;
  font-weight: 600;
  color: #374151;
  min-width: 112px;
}
.ov-status-bar-wrap {
  flex: 1;
  height: 8px;
  background: #f1f5f9;
  border-radius: 99px;
  overflow: hidden;
}
.ov-status-bar {
  height: 100%;
  border-radius: 99px;
  transition: width .7s cubic-bezier(.4,0,.2,1);
  min-width: 4px;
}
.ov-status-count {
  font-size: .82rem;
  font-weight: 800;
  color: #1e293b;
  width: 26px;
  text-align: right;
}
.ov-status-pct {
  font-size: .75rem;
  color: #94a3b8;
  width: 34px;
  text-align: right;
  font-weight: 600;
}

/* ── Quick Actions Card ──────────────────────────────────────── */
.ov-actions-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 0 0 1px rgba(0,0,0,.05);
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.ov-actions-title {
  font-size: .95rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: .3rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid #f1f5f9;
}
.ov-actions-title i { color: #d4a44c; }
.ov-action-btn {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem .85rem;
  border-radius: 10px;
  border: 1px solid #f1f5f9;
  background: #f8fafc;
  cursor: pointer;
  transition: background .13s ease, border-color .13s ease, transform .13s ease, box-shadow .13s ease;
  text-align: left;
  width: 100%;
  font-family: inherit;
  text-decoration: none;
  color: inherit;
}
.ov-action-btn:hover {
  background: #fff;
  border-color: #d4a44c;
  transform: translateX(4px);
  box-shadow: 0 2px 10px rgba(212,164,76,.14);
  text-decoration: none;
}
.ov-action-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  flex-shrink: 0;
}
.ov-action-text { flex: 1; min-width: 0; }
.ov-action-title {
  font-size: .84rem;
  font-weight: 700;
  color: #1e293b;
  display: block;
}
.ov-action-desc {
  font-size: .71rem;
  color: #94a3b8;
  display: block;
  margin-top: .06rem;
}
.ov-action-arrow {
  color: #cbd5e1;
  font-size: .72rem;
  flex-shrink: 0;
  transition: color .13s ease, transform .13s ease;
}
.ov-action-btn:hover .ov-action-arrow {
  color: #d4a44c;
  transform: translateX(2px);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .ov-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .ov-bottom-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ov-kpi-grid { grid-template-columns: 1fr 1fr; }
  .ov-welcome { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .ov-welcome-right { width: 100%; justify-content: flex-start; }
  .ov-welcome-greeting { font-size: 1.15rem; }
  .ov-kpi-num { font-size: 1.9rem; }
}

@media (max-width: 480px) {
  .ov-welcome { padding: 1.2rem 1rem; border-radius: 14px; }
  .ov-welcome-greeting { font-size: 1rem; line-height: 1.35; flex-wrap: wrap; }
  .ov-welcome-sub { font-size: .78rem; line-height: 1.45; flex-wrap: wrap; }
  .ov-welcome-pills { width: 100%; }
  .ov-welcome-pill { flex: 1 1 100%; justify-content: center; }
  .ov-kpi-grid { grid-template-columns: 1fr; gap: .75rem; }
  .ov-kpi { padding: 1rem; }
  .ov-bottom-grid { gap: .85rem; }
  .ov-status-card,
  .ov-actions-card { padding: 1rem; }
  .ov-status-row {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr) auto;
    gap: .55rem;
  }
  .ov-status-bar-wrap,
  .ov-status-pct { grid-column: 2 / -1; width: auto; }
  .ov-status-name { min-width: 0; }
  .ov-action-btn { padding: .7rem .75rem; }
}
