/* =========================================================
   Overview Dashboard Widget — matches plant-tip style
========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/* ── Wrapper ── */
.ov-wrap {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: linear-gradient(135deg, rgba(25,135,84,.08), rgba(25,135,84,.03));
  border: 1px solid rgba(25,135,84,.2);
  border-left: 3px solid #198754;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  color: inherit;
}

/* ── Top bar ── */
.ov-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(25,135,84,.12);
}
.ov-topbar-left { display: flex; align-items: center; gap: 7px; }
.ov-logo {
  font-size: 15px;
  line-height: 1;
}
.ov-topbar-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #198754;
}
.ov-topbar-right { display: flex; align-items: center; gap: 10px; }
.ov-live-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #198754;
  opacity: .8;
}
.ov-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #198754;
  animation: ov-blink 2s ease-in-out infinite;
}
@keyframes ov-blink {
  0%,100% { opacity: 1; }
  50%      { opacity: .3; }
}
.ov-topbar-time {
  font-size: 11px;
  color: #aaa;
}

/* ── Stat cards ── */
.ov-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid rgba(25,135,84,.12);
}
@media (max-width: 600px) {
  .ov-stats { grid-template-columns: 1fr; }
}
.ov-stat {
  padding: 14px 18px;
  border-right: 1px solid rgba(25,135,84,.12);
}
.ov-stat:last-child { border-right: none; }

.ov-stat-eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #198754;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.ov-stat-eyebrow-dot { display: none; }

.ov-stat-num {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1;
  color: #198754;
  margin-bottom: 4px;
}
.ov-stat-label {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 2px;
}
.ov-stat-sub {
  font-size: 11px;
  color: #aaa;
}

/* ── Body ── */
.ov-body {
  display: grid;
  grid-template-columns: 1fr 220px;
}
.ov-body--full {
  grid-template-columns: 1fr;
}
@media (max-width: 700px) {
  .ov-body { grid-template-columns: 1fr; }
}

/* ── Plant verdeling ── */
.ov-plants {
  padding: 14px 18px;
  border-right: 1px solid rgba(25,135,84,.12);
}
.ov-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.ov-section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #198754;
}
.ov-section-badge {
  font-size: 11px;
  color: #aaa;
  background: rgba(25,135,84,.08);
  border: 1px solid rgba(25,135,84,.15);
  border-radius: 20px;
  padding: 1px 8px;
}
.ov-plant-rows { display: flex; flex-direction: column; gap: 7px; }
.ov-plant-row {
  display: grid;
  grid-template-columns: 90px 1fr 48px;
  align-items: center;
  gap: 10px;
}
.ov-plant-name {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ov-plant-bar-wrap {
  height: 4px;
  background: rgba(25,135,84,.12);
  border-radius: 2px;
  overflow: hidden;
}
.ov-plant-bar {
  height: 100%;
  border-radius: 2px;
  background: #198754;
  width: 0%;
  transition: width 1.1s cubic-bezier(.4,0,.2,1);
}
.ov-plant-count {
  font-size: 11px;
  color: #aaa;
  text-align: right;
}

/* ── Dark mode ── */
body.dark .ov-wrap {
  background: linear-gradient(135deg, rgba(74,222,128,.06), rgba(74,222,128,.02));
  border-color: rgba(74,222,128,.15);
  border-left-color: #4ade80;
}
body.dark .ov-topbar { border-bottom-color: rgba(74,222,128,.1); }
body.dark .ov-topbar-title,
body.dark .ov-live-badge,
body.dark .ov-live-dot,
body.dark .ov-stat-eyebrow,
body.dark .ov-stat-num,
body.dark .ov-section-title { color: #4ade80; }
body.dark .ov-live-dot { background: #4ade80; }
body.dark .ov-stat { border-right-color: rgba(74,222,128,.1); }
body.dark .ov-plants { border-right-color: rgba(74,222,128,.1); }
body.dark .ov-topbar-time,
body.dark .ov-stat-sub,
body.dark .ov-plant-count,
body.dark .ov-quick-label { color: #4a6e4a; }
body.dark .ov-section-badge {
  background: rgba(74,222,128,.06);
  border-color: rgba(74,222,128,.12);
  color: #4a6e4a;
}
body.dark .ov-plant-bar-wrap { background: rgba(74,222,128,.1); }
body.dark .ov-plant-bar { background: #4ade80; }
body.dark .ov-stats { border-bottom-color: rgba(74,222,128,.1); }
body.dark .ov-quick-val--green { color: #4ade80; }
body.dark .ov-quick-val--teal  { color: #2dd4bf; }
body.dark .ov-quick-val--amber { color: #fbbf24; }
body.dark .ov-quick-val--alert { color: #f87171; }