/* ============================================================
   PropertyDesk — Monthly Overview Pages (shared)
   Covers: Last Month Overview · Next Month Overview
   Prefix: .pd-ov-
   ============================================================ */

/* ── Outer wrap ─────────────────────────────────────────────── */
.pd-ov-wrap { font-family: inherit; max-width: 100%; }

/* ── Page header band ────────────────────────────────────────── */
.pd-ov-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 28px; border-radius: 10px; margin-bottom: 24px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-left: 4px solid #166534;
}
/* Next Month tint — blue instead of green */
.pd-ov-wrap--next .pd-ov-header {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-left-color: #0d9488;
}
.pd-ov-header__left  { flex: 1; }
.pd-ov-header__period {
  font-size: 22px; font-weight: 700; color: #0f172a; letter-spacing: -0.02em;
}
.pd-ov-header__meta { font-size: 13px; color: #64748b; margin-top: 4px; }
.pd-ov-header__actions { display: flex; gap: 8px; }

/* Export PDF button — kept for other pages */
.pd-ov-btn--pdf {
  display: inline-block; padding: 9px 18px; border-radius: 6px; border: none;
  background: #2e8b57; color: #fff !important; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background .15s; white-space: nowrap;
  text-decoration: none !important;
}
.pd-ov-btn--pdf:hover { background: #166634; color: #fff !important; }

/* Subtle PDF link — used in header meta on live dashboard */
.pd-ov-pdf-link {
  color: #94a3b8 !important; text-decoration: none;
  font-size: inherit; font-weight: 500;
  transition: color .15s;
}
.pd-ov-pdf-link:hover { color: #2e8b57 !important; text-decoration: underline; }

/* ── KPI strip — 5-card grid, hero is wider ──────────────────── */
.pd-ov-kpi-strip {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

/* KPI base card */
.pd-ov-kpi {
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: 10px; padding: 18px 20px;
  border-top: 3px solid #cbd5e1;   /* default neutral */
}
.pd-ov-kpi--good    { border-top-color: #22c55e; }
.pd-ov-kpi--warn    { border-top-color: #f59e0b; }
.pd-ov-kpi--bad     { border-top-color: #ef4444; }
.pd-ov-kpi--neutral { border-top-color: #cbd5e1; }
.pd-ov-kpi--info    { border-top-color: #0d9488; }

/* Hero card gets a tinted gradient background */
.pd-ov-kpi--hero.pd-ov-kpi--good    { background: linear-gradient(150deg, #f0fdf4, #fff 70%); }
.pd-ov-kpi--hero.pd-ov-kpi--warn    { background: linear-gradient(150deg, #fffbeb, #fff 70%); }
.pd-ov-kpi--hero.pd-ov-kpi--bad     { background: linear-gradient(150deg, #fef2f2, #fff 70%); }
.pd-ov-kpi--hero.pd-ov-kpi--info    { background: linear-gradient(150deg, #f0fdfa, #fff 70%); }

/* KPI typography */
.pd-ov-kpi__lbl {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: #64748b; margin-bottom: 8px;
}
.pd-ov-kpi__val {
  font-size: 28px; font-weight: 700; color: #0f172a;
  line-height: 1; font-variant-numeric: tabular-nums;
}
.pd-ov-kpi--hero .pd-ov-kpi__val { font-size: 38px; }
.pd-ov-kpi__unit { font-size: 16px; color: #64748b; font-weight: 500; margin-left: 2px; }
.pd-ov-kpi__sub  { font-size: 12px; color: #64748b; margin-top: 6px; }

/* Progress bar */
.pd-ov-kpi-bar {
  height: 5px; background: #f1f5f9; border-radius: 3px; margin: 10px 0 4px;
}
.pd-ov-kpi-bar__fill {
  height: 100%; border-radius: 3px; background: #22c55e;
  transition: width .5s ease;
}
.pd-ov-kpi--warn .pd-ov-kpi-bar__fill { background: #f59e0b; }
.pd-ov-kpi--bad  .pd-ov-kpi-bar__fill { background: #ef4444; }
/* Occupancy bar always green */
.pd-ov-kpi-bar__fill--occ { background: #2e8b57 !important; }

/* Fingerprint proportional bar (cheque status mix) */
.pd-ov-fingerprint {
  display: flex; height: 6px; border-radius: 3px;
  overflow: hidden; gap: 1px; margin-top: 10px;
}
.pd-ov-fingerprint span { border-radius: 2px; min-width: 3px; }

/* ── Status summary pills ────────────────────────────────────── */
.pd-ov-pills {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; margin-bottom: 28px;
}
.pd-ov-pill {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; background: #fff;
  border: 1px solid #e2e8f0; border-radius: 8px;
}
.pd-ov-pill__dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.pd-ov-pill--bad     .pd-ov-pill__dot { background: #ef4444; }
.pd-ov-pill--good    .pd-ov-pill__dot { background: #22c55e; }
.pd-ov-pill--neutral .pd-ov-pill__dot { background: #94a3b8; }
.pd-ov-pill--warn    .pd-ov-pill__dot { background: #f59e0b; }
.pd-ov-pill__lbl   { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #64748b; }
.pd-ov-pill__count { font-size: 22px; font-weight: 700; color: #0f172a; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pd-ov-pill__amt   { font-size: 12px; color: #94a3b8; margin-top: 1px; font-variant-numeric: tabular-nums; }

/* ── Zones ───────────────────────────────────────────────────── */
.pd-ov-zone { margin-bottom: 32px; }

.pd-ov-zone__header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px; padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
}
.pd-ov-zone--alert .pd-ov-zone__header { border-bottom-color: #fecaca; }
.pd-ov-zone--ref   .pd-ov-zone__header { border-bottom-color: #f1f5f9; }

.pd-ov-zone__icon  { font-size: 14px; }
.pd-ov-zone__title {
  flex: 1; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .09em; color: #64748b; margin: 0;
}
.pd-ov-zone--alert .pd-ov-zone__title { color: #b91c1c; }
.pd-ov-zone--ref   .pd-ov-zone__title { color: #94a3b8; }

.pd-ov-zone__badge {
  background: #fee2e2; color: #b91c1c;
  padding: 2px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
}

/* ── Section cards ───────────────────────────────────────────── */
.pd-ov-section {
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: 10px; margin-bottom: 16px; overflow: hidden;
}
/* Alert / urgent sections — shadow only; left accent lives on __hdr only (not full card height) */
.pd-ov-section--alert   { box-shadow: 0 1px 6px rgba(239,68,68,.08); }
.pd-ov-section--urgent  { box-shadow: 0 1px 6px rgba(245,158,11,.08); }
/* Muted reference section */
.pd-ov-section--muted { border-color: #f1f5f9; background: #fafafa; }

/* Concluded contracts — quiet grey, not urgent */
.pd-ov-section--concluded { border-color: #e2e8f0; background: #fafafa; opacity: .9; }

.pd-ov-section__hdr {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 16px 11px 20px;
  background: #f0f9f3;
  border-bottom: 1px solid #d4e8dc;
  border-left: 4px solid #2e8b57;
}
.pd-ov-section--muted      .pd-ov-section__hdr { background: #fafafa; border-bottom-color: #f1f5f9; border-left-color: #cbd5e1; }
.pd-ov-section--concluded  .pd-ov-section__hdr { background: #f8fafc; border-bottom-color: #e2e8f0; border-left-color: #94a3b8; }
.pd-ov-section--concluded  .pd-ov-section__hdr h3 { color: #64748b !important; font-weight: 600 !important; }
.pd-ov-section--concluded  .pd-ov-section__meta  { color: #94a3b8; }
.pd-ov-section--alert  .pd-ov-section__hdr { background: #fff5f5; border-bottom-color: #fecaca; border-left-color: #ef4444; }
.pd-ov-section--urgent .pd-ov-section__hdr { background: #fffbeb; border-bottom-color: #fde68a; border-left-color: #f59e0b; }

.pd-ov-section__hdr h3 {
  font-size: 13px; font-weight: 700 !important; color: #1a2e23 !important;
  margin: 0; letter-spacing: 0.01em; font-family: inherit !important;
}
.pd-ov-section--alert  .pd-ov-section__hdr h3 { color: #b91c1c; }
.pd-ov-section--urgent .pd-ov-section__hdr h3 { color: #92400e; }
.pd-ov-section__meta { font-size: 12px; color: #64748b; font-variant-numeric: tabular-nums; }

/* ── Tables ──────────────────────────────────────────────────── */
.pd-ov-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }

.pd-ov-tbl thead th {
  background: #2e8b57; color: #fff; font-weight: 600;
  font-size: 11px; text-transform: uppercase; letter-spacing: .5px;
  padding: 10px 16px; text-align: left; border: 1px solid #2e8b57;
  white-space: nowrap;
}
.pd-ov-tbl tbody td {
  padding: 11px 16px; border-bottom: 1px solid #e5e7eb;
  color: #0f172a; vertical-align: middle;
}
.pd-ov-tbl tbody tr:nth-child(odd) td  { background: #ffffff !important; }
.pd-ov-tbl tbody tr:nth-child(even) td { background: #f0f9f3 !important; }
.pd-ov-tbl tbody tr:last-child td  { border-bottom: none; }
.pd-ov-tbl tbody tr:hover td       { background: #e2f0e6 !important; }
.pd-ov-tbl--compact tbody td       { padding: 8px 16px; font-size: 12.5px; }

/* Alert table rows — header keeps brand green; even rows get subtle red tint */
.pd-ov-section--alert .pd-ov-tbl tbody tr:nth-child(odd) td  { background: #ffffff !important; }
.pd-ov-section--alert .pd-ov-tbl tbody tr:nth-child(even) td { background: #fff5f5 !important; }
.pd-ov-section--alert .pd-ov-tbl tbody tr:hover td      { background: #fef2f2 !important; }

/* Due-this-week row highlight (Next Month cheques due within 7 days) */
.pd-ov-tr--week td       { background: #fffbeb !important; }
.pd-ov-tr--week:hover td { background: #fef3c7 !important; }

/* Links in table */
.pd-ov-tbl a { color: #2e8b57; text-decoration: none; font-weight: 500; }
.pd-ov-tbl a:hover { text-decoration: underline; color: #166634; }

/* Amount cells */
.pd-ov-amt { font-weight: 600; font-variant-numeric: tabular-nums; color: #0f172a; }
.pd-ov-amt--good { color: #166534; }
.pd-ov-amt--bad  { color: #b91c1c; }
.pd-ov-amt--warn { color: #92400e; }

/* Status badges */
.pd-ov-badge {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  white-space: nowrap;
}
.pd-ov-badge--good    { background: #dcfce7; color: #166534; }
.pd-ov-badge--bad     { background: #fee2e2; color: #b91c1c; }
.pd-ov-badge--warn    { background: #fef3c7; color: #92400e; }
.pd-ov-badge--neutral { background: #f1f5f9; color: #475569; }
.pd-ov-badge--info    { background: #dbeafe; color: #1e40af; }

/* Days remaining badge (Next Month expiring contracts) */
.pd-ov-days {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.pd-ov-days--critical { background: #fee2e2; color: #b91c1c; }
.pd-ov-days--warning  { background: #fef3c7; color: #92400e; }
.pd-ov-days--ok       { background: #f1f5f9; color: #475569; }

/* ── Empty state ─────────────────────────────────────────────── */
.pd-ov-empty {
  padding: 28px 20px; text-align: center;
  font-size: 13px; color: #94a3b8; font-style: italic;
}

/* ============================================================
   This Month (Current) Overview — additional classes
   ============================================================ */

/* Current month header — richer green to signal live data */
.pd-ov-wrap--current .pd-ov-header {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-left-color: #2e8b57;
}

/* LIVE badge — inline in the period heading */
.pd-ov-live-badge {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 9px;
  background: #22c55e;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  border-radius: 999px;
  vertical-align: middle;
  animation: pd-pulse 2s ease-in-out infinite;
}
@keyframes pd-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .65; }
}

/* Month progress bar — thin strip just below header */
.pd-ov-month-progress {
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  margin: -16px 0 24px;
  overflow: hidden;
}
.pd-ov-month-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, #2e8b57, #22c55e);
  border-radius: 3px;
  transition: width .5s ease;
}

/* Pace indicator — inside hero KPI card */
.pd-ov-pace {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
}
.pd-ov-pace--info { background: #dbeafe; color: #1e40af; }
.pd-ov-pace--good { background: #dcfce7; color: #166534; }
.pd-ov-pace--ok   { background: #f0f9f3; color: #166534; }
.pd-ov-pace--warn { background: #fef3c7; color: #92400e; }
.pd-ov-pace--bad  { background: #fee2e2; color: #b91c1c; }
.pd-ov-pace__sub  { font-size: 11px; font-weight: 400; opacity: .85; }

/* Today's Actions zone header */
.pd-ov-zone--actions .pd-ov-zone__header { border-bottom-color: #fde68a; }
.pd-ov-zone--actions .pd-ov-zone__title  { color: #92400e; }

/* Amber badge (actions count) */
.pd-ov-zone__badge--amber {
  background: #fef3c7; color: #92400e;
  padding: 2px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
}
/* Error badge (data integrity alert) */
.pd-ov-zone__badge--error {
  background: #fee2e2; color: #991b1b;
  padding: 2px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
  animation: pd-pulse 1.5s ease-in-out infinite;
}

/* Actions section card */
.pd-ov-section--actions {
  background: #fff;
  border: 1px solid #fde68a;
  border-radius: 10px;
  margin-bottom: 16px;
  overflow: hidden;
}

/* Individual action rows */
.pd-ov-action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
}
.pd-ov-action-row:last-child    { border-bottom: none; }
.pd-ov-action-row--warn { background: #fffbeb; border-left: 4px solid #f59e0b; }
.pd-ov-action-row--bad  { background: #fff5f5; border-left: 4px solid #ef4444; }
.pd-ov-action-icon { font-size: 18px; flex-shrink: 0; }
.pd-ov-action-text { flex: 1; color: #0f172a; line-height: 1.4; }
.pd-ov-action-sub  {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  background: #fee2e2;
  color: #b91c1c;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

/* All-clear state (no actions today) */
.pd-ov-section--all-clear {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  margin-bottom: 24px;
}
.pd-ov-all-clear {
  padding: 18px 24px;
  color: #166534;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

/* Live cheque row highlights */
.pd-ov-tr--today td        {
  background: #fefce8 !important;
  border-left: 3px solid #f59e0b;
}
.pd-ov-tr--today:hover td  { background: #fef9c3 !important; }
.pd-ov-tr--overdue td       { background: #fff5f5 !important; }
.pd-ov-tr--overdue:hover td { background: #fef2f2 !important; }

/* TODAY inline badge (inside cheque no. cell) */
.pd-ov-today-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  background: #f59e0b;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  border-radius: 4px;
  vertical-align: middle;
  text-transform: uppercase;
}

/* Landlord row with bounced cheques */
.pd-ov-tr--bounced-landlord td       { background: #fffbeb !important; }
.pd-ov-tr--bounced-landlord:hover td { background: #fef3c7 !important; }

/* Pill info wrapper (flex column inside .pd-ov-pill) */
.pd-ov-pill__info { flex: 1; }

/* End-of-month closing banner (Day 25+) */
.pd-ov-closing-banner {
  margin-top: 24px;
  padding: 16px 24px;
  background: #fef3c7;
  border: 2px solid #f59e0b;
  border-radius: 10px;
  font-size: 14px;
  color: #78350f;
  text-align: center;
}

/* ── This Month Planning page — specific overrides ──────────── */

/* Header tint — amber/gold to distinguish from Last (green) and Next (blue) */
.pd-ov-wrap--current-plan .pd-ov-header {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-left-color: #d97706;
}

/* Pace context line — one line below the progress bar */
.pd-ov-pace-line {
  font-size: 13px; font-weight: 600;
  padding: 6px 16px; border-radius: 6px;
  margin: -16px 0 24px;
  display: inline-block;
}

/* Upcoming rows in combined cheques table — subtle blue tint */
.pd-ov-tr--upcoming td { background: #f0f9ff !important; }

/* Today divider row in cheques table */
.pd-ov-tr--divider td {
  background: #f1f5f9 !important;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  padding: 6px 12px !important;
  letter-spacing: 0.02em;
  border-top: 2px solid #cbd5e1;
  border-bottom: 2px solid #cbd5e1;
}

/* ── Quick Actions bar ───────────────────────────────────────── */
.pd-ov-quick-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin: 0 0 24px;
}
.pd-ov-qa-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 8px;
  font-size: 12.5px; font-weight: 700; text-decoration: none !important;
  transition: filter .15s, transform .1s; white-space: nowrap;
  border: none; cursor: pointer;
  /* Force white text on all states — prevents Drupal theme a:hover from going green */
  color: #fff !important;
}
.pd-ov-qa-btn:hover,
.pd-ov-qa-btn:focus,
.pd-ov-qa-btn:active,
.pd-ov-qa-btn:visited { color: #fff !important; filter: brightness(.9); transform: translateY(-1px); text-decoration: none !important; }
.pd-ov-qa-btn--green  { background: #2e8b57; }
.pd-ov-qa-btn--blue   { background: #2e8b57; }
.pd-ov-qa-btn--teal   { background: #2e8b57; }
.pd-ov-qa-btn--amber  { background: #d97706; }
.pd-ov-qa-btn--purple { background: #2e8b57; }
.pd-ov-qa-btn--indigo { background: #2e8b57; }
.pd-ov-qa-btn--slate  { background: #2e8b57; }
.pd-ov-qa-btn--gray   { background: #2e8b57; }

/* ── Action groups (replaces old .pd-ov-action-row) ─────────── */
.pd-ov-action-group {
  border-radius: 8px; overflow: hidden;
  border: 1px solid #e2e8f0; margin-bottom: 10px;
}
.pd-ov-action-group:last-child { margin-bottom: 0; }
.pd-ov-action-group--warn  { border-color: #fde68a; }
.pd-ov-action-group--bad   { border-color: #fecaca; }
.pd-ov-action-group--error { border: 2px solid #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.08); }

.pd-ov-action-group__hdr {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  font-size: 13px; font-weight: 600; color: #0f172a;
}
.pd-ov-action-group--warn  .pd-ov-action-group__hdr { background: #fffbeb; border-bottom: 1px solid #fde68a; }
.pd-ov-action-group--bad   .pd-ov-action-group__hdr { background: #fff5f5; border-bottom: 1px solid #fecaca; }
.pd-ov-action-group--error .pd-ov-action-group__hdr { background: #fef2f2; border-bottom: 2px solid #dc2626; color: #991b1b; }

/* Individual action item rows */
.pd-ov-action-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px; font-size: 13px;
  border-bottom: 1px solid #f1f5f9;
  flex-wrap: wrap;
}
.pd-ov-action-item:last-child { border-bottom: none; }
.pd-ov-action-item--warn    { background: #fffdf0; }
.pd-ov-action-item--bad     { background: #fff8f8; }
.pd-ov-action-item--overdue { background: #fff5f5; border-left: 3px solid #ef4444; }
.pd-ov-action-item--error   { background: #fef2f2; border-left: 3px solid #dc2626; }

/* Status dot */
.pd-ov-action-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.pd-ov-action-dot--warn  { background: #f59e0b; }
.pd-ov-action-dot--bad   { background: #ef4444; }
.pd-ov-action-dot--error { background: #dc2626; }

/* Action item columns */
.pd-ov-action-tenant { flex: 1.4; min-width: 100px; font-weight: 600; color: #0f172a; }
.pd-ov-action-unit   { flex: 1;   min-width: 80px;  color: #475569; }
.pd-ov-action-amt    { flex: 0 0 auto; font-weight: 700; font-variant-numeric: tabular-nums; color: #0f172a; min-width: 90px; text-align: right; }
.pd-ov-action-date   { flex: 0 0 auto; font-size: 12px; color: #64748b; min-width: 72px; text-align: right; }

.pd-ov-action-tenant a,
.pd-ov-action-unit   a { color: #2e8b57; text-decoration: none; font-weight: inherit; }
.pd-ov-action-tenant a:hover,
.pd-ov-action-unit   a:hover { text-decoration: underline; }

/* ── Portfolio Pulse panels (Vacant + Maintenance) ──────────── */
.pd-ov-pulse-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-bottom: 28px;
}
.pd-ov-pulse-panel {
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: 10px; overflow: hidden;
}

.pd-ov-pulse-panel__hdr {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: #f8fafc; border-bottom: 1px solid #e2e8f0;
}
.pd-ov-pulse-panel__icon  { font-size: 16px; flex-shrink: 0; }
.pd-ov-pulse-panel__title {
  flex: 1; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: #475569;
}
.pd-ov-pulse-panel__count {
  padding: 2px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
}
.pd-ov-pulse-panel__count--warn { background: #fef3c7; color: #92400e; }
.pd-ov-pulse-panel__count--good { background: #dcfce7; color: #166534; }

.pd-ov-pulse-row-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 16px; font-size: 13px;
  border-bottom: 1px solid #f1f5f9; flex-wrap: wrap;
}
.pd-ov-pulse-row-item:last-of-type { border-bottom: none; }

.pd-ov-pulse-name { flex: 1; min-width: 80px; }
.pd-ov-pulse-name a { color: #2e8b57; text-decoration: none; font-weight: 600; }
.pd-ov-pulse-name a:hover { text-decoration: underline; }

.pd-ov-pulse-unit { font-size: 12px; color: #64748b; }
.pd-ov-pulse-unit a { color: #64748b; text-decoration: none; }
.pd-ov-pulse-unit a:hover { text-decoration: underline; color: #2e8b57; }

/* Age badge (vacant days) */
.pd-ov-pulse-age {
  flex-shrink: 0; padding: 2px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.pd-ov-pulse-age--ok   { background: #f1f5f9; color: #475569; }
.pd-ov-pulse-age--warn { background: #fef3c7; color: #92400e; }
.pd-ov-pulse-age--bad  { background: #fee2e2; color: #b91c1c; }

/* Priority badge (maintenance) */
.pd-ov-pulse-pri {
  flex-shrink: 0; padding: 2px 8px; border-radius: 4px;
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
}
.pd-ov-pri--emergency { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.pd-ov-pri--high      { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.pd-ov-pri--medium    { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.pd-ov-pri--low       { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }

.pd-ov-pulse-more {
  padding: 8px 16px; font-size: 12px; color: #94a3b8;
  text-align: center; border-top: 1px solid #f1f5f9;
}
.pd-ov-pulse-empty {
  padding: 20px 16px; text-align: center;
  font-size: 13px; color: #22c55e; font-weight: 600;
}

/* Holdover hint in Vacant Units panel */
.pd-ov-pulse-holdover {
  flex-shrink: 0; font-size: 11px; color: #b45309; font-weight: 600;
  background: #fef3c7; padding: 2px 7px; border-radius: 4px;
  cursor: help;
}

/* Holdover flag in Occupancy KPI sub-text */
.pd-ov-holdover-flag {
  color: #b45309; font-weight: 700;
  background: #fef3c7; padding: 1px 6px; border-radius: 4px;
  font-size: 11px; white-space: nowrap;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .pd-ov-kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .pd-ov-kpi--hero { grid-column: span 2; }
  .pd-ov-pills     { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .pd-ov-tbl { font-size: 12px; }
  .pd-ov-tbl thead th,
  .pd-ov-tbl tbody td { padding: 8px 10px; }
  .pd-ov-pulse-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pd-ov-kpi-strip { grid-template-columns: 1fr; }
  .pd-ov-kpi--hero { grid-column: span 1; }
  .pd-ov-pills     { grid-template-columns: repeat(2, 1fr); }
  .pd-ov-header    { flex-direction: column; align-items: flex-start; gap: 14px; }
  .pd-ov-header__period { font-size: 18px; }
  .pd-ov-quick-actions { flex-direction: column; }
  .pd-ov-qa-btn { width: 100%; justify-content: center; }
  /* hide less critical table columns on mobile */
  .pd-ov-tbl th:nth-child(4),
  .pd-ov-tbl td:nth-child(4) { display: none; }
  .pd-ov-action-unit,
  .pd-ov-action-date { display: none; }
}
