:root {
  --va-bg: #f2f5fb;
  --va-sidebar: #071225;
  --va-sidebar-soft: #111c31;
  --va-card: #ffffff;
  --va-text: #111827;
  --va-title: #111827;
  --va-muted: #77839a;
  --va-border: #e8edf6;
  --va-blue: #4169f4;
  --va-blue-dark: #2f54dc;
  --va-button-text: #ffffff;
  --va-green: #61cf96;
  --va-orange: #f7a13f;
  --va-purple: #7b45df;
  --va-yellow: #f5bd3d;
  --va-red: #df5266;
  --va-shadow: 0 18px 45px rgba(25, 37, 64, .08);
  --va-font-base: 14px;
  --va-font-title: 25px;
  --va-font-subtitle: 16px;
  --va-font-text: 14px;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  background: var(--va-bg);
  color: var(--va-text);
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: var(--va-font-base);
  font-weight: 300;
  letter-spacing: 0;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

a { text-decoration: none; }

.app-shell { min-height: 100vh; display: flex; }

.app-sidebar {
  width: 280px;
  min-height: 100vh;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--va-sidebar);
  color: #dce6f8;
  padding: 22px;
  overflow-y: auto;
  z-index: 1040;
}

.brand-block {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  margin-bottom: 28px;
  min-height: 96px;
  width: 100%;
}

.brand-logo-img {
  width: 100%;
  max-width: 190px;
  height: 88px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  padding: 10px;
}

.brand-bars {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: end;
  gap: 6px;
}

.brand-bars span {
  display: block;
  width: 15px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #7fb0ff, #3358da);
  box-shadow: 0 8px 18px rgba(65, 105, 244, .25);
}

.brand-bars span:nth-child(1) { height: 35px; }
.brand-bars span:nth-child(2) { height: 48px; }
.brand-bars span:nth-child(3) { height: 26px; }

.sidebar-profile {
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.045);
  border-radius: 8px;
  padding: 16px;
  min-height: 100px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  position: relative;
  margin-bottom: 26px;
  align-items: center;
}

.avatar-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #5b84f7;
  color: #fff;
  border: 4px solid #fff;
  font-size: 22px;
  font-weight: 700;
}

.avatar-photo { object-fit: cover; }
.avatar-default {
  border-color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.13);
  color: #fff;
  font-size: 24px;
}

.sidebar-profile strong { display: block; color: #fff; font-weight: 700; font-size: 14px; line-height: 1.25; }
.sidebar-profile span { color: #c8d3e5; display: block; margin-top: 4px; font-size: 12px; }
.sidebar-profile em {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  color: #c8d3e5;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}
.sidebar-profile em span {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #56cf76;
  margin: 0;
}

.sidebar-nav { display: grid; gap: 8px; margin-top: 18px; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255,255,255,.58);
  padding: 5px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
.sidebar-nav a i { width: 22px; font-size: 20px; }
.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: var(--va-blue);
  color: #fff;
  transform: translateX(2px);
}

.sidebar-plan {
  margin-top: 34px;
  padding: 28px 18px 20px;
  border-radius: 8px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.045));
  border: 1px solid rgba(255,255,255,.1);
}
.sidebar-plan i { font-size: 34px; color: #ffd75e; display: block; margin-bottom: 22px; }
.sidebar-plan strong { display: block; color: #fff; font-size: 18px; margin-bottom: 13px; }
.sidebar-plan span { color: #aebbd0; display: block; margin-bottom: 22px; }
.sidebar-plan a {
  display: block;
  background: var(--va-blue);
  color: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 700;
}

.sidebar-backdrop { display: none; }

.app-main {
  width: calc(100% - 280px);
  margin-left: 280px;
  min-height: 100vh;
}

.topbar {
  min-height: 96px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px 30px 12px;
}

.icon-btn,
.date-pill {
  height: 56px;
  border: 0;
  background: #fff;
  color: #111827;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(25, 37, 64, .06);
}

.icon-btn { width: 60px; font-size: 24px; }
#sidebarToggle { display: none; }

.topbar-title { flex: 1; min-width: 220px; }
.topbar-title h1 { font-size: var(--va-font-title); line-height: 1.05; margin: 0 0 8px; font-weight: 700; color: var(--va-title); }
.topbar-title p { margin: 0; color: var(--va-muted); font-size: var(--va-font-subtitle); }

.topbar-actions { display: flex; align-items: center; gap: 14px; }
.date-pill { gap: 12px; padding: 0 18px; color: #6f7890; font-weight: 700; white-space: nowrap; }
.notification-btn { position: relative; color: #5d6679; font-size: 21px; }
.notification-btn span {
  position: absolute;
  top: 11px;
  right: 10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4b5e;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

.btn { border-radius: 8px; font-weight: 700; }
.btn-strong { height: 56px; display: inline-flex; align-items: center; gap: 10px; padding-inline: 22px; }
.btn-new-report {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-inline: 14px;
  background: #fff;
  border-color: #cfd8ea;
  color: #344054;
  box-shadow: 0 10px 28px rgba(25, 37, 64, .05);
}
.btn-new-report:hover {
  background: #eef4ff;
  border-color: #b7c7ef;
  color: var(--va-blue);
}
.btn-primary { background: var(--va-blue); border-color: var(--va-blue); color: var(--va-button-text); }
.btn-primary:hover { background: var(--va-blue-dark); border-color: var(--va-blue-dark); }
.topbar-logout-btn { color: #5d6679; }

.content-wrap {
  padding: 18px 30px 34px;
  max-width: 1780px;
  width: 100%;
}

.app-footer {
  text-align: center;
  color: #8b95a8;
  font-size: 12px;
  padding: 28px 0 10px;
}

.card-soft,
.metric-card,
.panel-card {
  background: var(--va-card);
  border: 1px solid var(--va-border);
  border-radius: 8px;
  box-shadow: var(--va-shadow);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.metric-card {
  min-height: 160px;
  padding: 28px 26px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.metric-icon,
.alert-icon,
.activity-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 26px;
  flex: 0 0 auto;
}
.metric-blue { background: var(--va-blue); }
.metric-green { background: var(--va-green); }
.metric-purple { background: var(--va-purple); }
.metric-yellow { background: var(--va-yellow); }

.metric-card span { display: block; color: #7b8496; font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.metric-card strong { display: block; color: var(--va-title); font-size: 30px; line-height: 1.1; font-weight: 700; }
.metric-card small { display: block; margin-top: 10px; font-size: 14px; color: #55bd80; font-weight: 700; }
.metric-card small.danger { color: var(--va-red); }
.metric-card small.warning { color: #ef7c32; }

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 438px;
  gap: 24px;
}

.dashboard-grid > *,
.chart-row > *,
.metric-grid > *,
.settings-grid > * {
  min-width: 0;
}

.chart-row {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(340px, 1.1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.panel-card { padding: 26px; max-width: 100%; }
.panel-title { font-size: var(--va-font-title); font-weight: 700; color: var(--va-title); margin: 0 0 20px; }

.hero-card {
  min-height: 302px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: #182238 url('../img/residencial-varalago-banner.png') center/cover no-repeat;
  margin-bottom: 24px;
  box-shadow: var(--va-shadow);
}
.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8,15,31,.88), rgba(8,15,31,.42), rgba(8,15,31,.1));
}
.hero-card-content {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}
.hero-card h2 { color: #fff; font-size: 22px; font-weight: 700; margin: 0 0 8px; }
.hero-card p { color: rgba(255,255,255,.9); font-size: 18px; line-height: 1.35; margin: 0; font-weight: 700; }
.hero-card a {
  min-width: 132px;
  border-radius: 8px;
  color: #fff;
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(9px);
  padding: 12px 16px;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 700;
}

.donut-wrap {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 22px;
  align-items: center;
}

.donut-canvas {
  width: 240px;
  height: 240px;
  max-width: 100%;
  position: relative;
}

.donut-canvas canvas {
  width: 100% !important;
  height: 100% !important;
}

.legend-list { display: grid; gap: 18px; }
.legend-item { display: grid; grid-template-columns: 14px 1fr auto; gap: 12px; align-items: center; color: #3d4659; font-weight: 700; font-size: 16px; }
.legend-dot { width: 14px; height: 14px; border-radius: 50%; }

.table-card { padding: 26px; max-width: 100%; }
.table-responsive {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.table-responsive::after {
  content: "";
  display: block;
  height: 1px;
}
.table { margin-bottom: 0; min-width: 760px; }
.table.table-sm { min-width: 650px; }
.table-number {
  width: 58px;
  min-width: 58px;
  text-align: center;
  white-space: nowrap;
}
.table thead th {
  background: #fbfcff;
  color: #7b8496;
  border-bottom: 1px solid var(--va-border);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}
.table tbody td { border-color: #eef2f8; vertical-align: middle; color: #3b4458; }
.table th,
.table td {
  overflow-wrap: anywhere;
}
.table tbody tr:hover { background: #f8faff; }

canvas {
  max-width: 100% !important;
}

.record-link { color: #111827; font-weight: 700; }

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 5px 14px;
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
}
.badge-soft-primary { background: #eaf0ff; color: #3e62e8; }
.badge-soft-success { background: #e8f8ef; color: #28a868; }
.badge-soft-warning { background: #fff2de; color: #ec7d28; }
.badge-soft-danger { background: #fde8ee; color: #d74760; }
.badge-soft-secondary { background: #edf1f7; color: #667085; }

.location-badge,
.lot-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}

.location-badge { background: #eaf0ff; color: #3157dc; }
.lot-badge { background: #e8f8ef; color: #1f9460; }
.resident-lot-groups {
  display: grid;
  gap: 8px;
}

.filter-card {
  border: 1px solid var(--va-border);
  background: #fbfcff;
  border-radius: 8px;
  padding: 16px;
}

.section-panel {
  border: 1px solid var(--va-border);
  background: #fbfcff;
  border-radius: 8px;
  padding: 16px;
}

.document-preview-frame {
  width: 100%;
  min-height: 70vh;
  border: 1px solid var(--va-border);
  border-radius: 8px;
  background: #fff;
}

.document-preview-image {
  display: block;
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  margin: 0 auto;
}

.info-list { display: grid; gap: 12px; }
.info-list div {
  border-bottom: 1px solid var(--va-border);
  padding-bottom: 10px;
}
.info-list span {
  display: block;
  color: var(--va-muted);
  font-size: 12px;
}
.info-list strong {
  display: block;
  margin-top: 4px;
  font-weight: 700;
}

.star-score { color: #c7891e; font-weight: 700; white-space: nowrap; }
.survey-question {
  border: 1px solid var(--va-border);
  border-radius: 8px;
  padding: 16px;
  background: #fbfcff;
}
.star-rating {
  direction: rtl;
  display: inline-flex;
  gap: 4px;
  margin-top: 10px;
}
.star-rating input { position: absolute; opacity: 0; pointer-events: none; }
.star-rating label {
  color: #d2d9e6;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
  color: #f5bd3d;
}
.survey-results { display: grid; gap: 18px; }
.survey-result-item {
  border: 1px solid var(--va-border);
  background: #fbfcff;
  border-radius: 8px;
  padding: 16px;
}
.result-bar {
  height: 12px;
  border-radius: 999px;
  background: #e9eef7;
  overflow: hidden;
  margin: 12px 0 8px;
}
.result-bar span {
  display: block;
  height: 100%;
  background: var(--va-blue);
  border-radius: inherit;
}

#taskCalendar .fc-toolbar-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--va-title);
}

#taskCalendar .fc-button {
  border-radius: 8px;
  background: var(--va-blue);
  border-color: var(--va-blue);
  font-weight: 700;
}

#taskCalendar .fc-event {
  border-radius: 6px;
  padding: 2px 4px;
  font-weight: 700;
}

.bot-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.bot-choice {
  border: 1px solid var(--va-border);
  border-radius: 8px;
  background: #fbfcff;
  color: var(--va-text);
  padding: 14px;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 4px 10px;
  text-align: left;
  align-items: center;
}

.bot-choice i {
  grid-row: span 2;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #eaf0ff;
  color: var(--va-blue);
  display: grid;
  place-items: center;
}

.bot-choice span {
  font-weight: 700;
}

.bot-choice small {
  color: var(--va-muted);
}

.bot-choice.active {
  border-color: var(--va-blue);
  box-shadow: 0 0 0 3px rgba(65,105,244,.14);
  background: #fff;
}

.form-control,
.form-select {
  min-height: 44px;
  border-radius: 8px;
  border-color: #dfe6f2;
}
label { font-weight: 700; color: #344054; margin-bottom: 6px; }
.compact-font-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--va-border);
  border-radius: 8px;
  background: #fbfcff;
}

.row-actions { display: inline-flex; gap: 8px; align-items: center; justify-content: end; }
.row-actions form { margin: 0; }
.btn-action {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 18px;
}

.notification-menu { position: relative; }
.notification-dropdown {
  width: min(380px, calc(100vw - 24px));
  border: 1px solid var(--va-border);
  border-radius: 8px;
  box-shadow: var(--va-shadow);
  padding: 0;
  overflow: hidden;
}
.notification-head,
.notification-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fbfcff;
  border-bottom: 1px solid var(--va-border);
}
.notification-head strong { font-size: 16px; }
.notification-head small { color: var(--va-muted); font-weight: 700; }
.notification-item {
  display: block;
  padding: 14px 16px;
  border-bottom: 1px solid var(--va-border);
  color: var(--va-text);
}
.notification-item.unread { background: #eef4ff; }
.notification-item span { display: block; font-weight: 700; margin-bottom: 4px; }
.notification-item small { display: block; color: #667085; line-height: 1.45; }
.notification-item em { display: block; color: var(--va-muted); font-style: normal; font-size: 12px; margin-top: 8px; }
.notification-empty { padding: 18px 16px; color: var(--va-muted); }
.notification-footer {
  border-bottom: 0;
  border-top: 1px solid var(--va-border);
}
.notification-footer a,
.notification-footer button {
  border: 0;
  background: transparent;
  color: var(--va-blue);
  font-weight: 700;
  padding: 0;
}

.alert-list,
.activity-list { display: grid; gap: 16px; }
.alert-item,
.activity-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 14px;
  align-items: center;
}
.alert-icon,
.activity-icon {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  font-size: 22px;
}
.alert-icon.red { background: #fde8ee; color: #d74760; }
.alert-icon.yellow { background: #fff4d8; color: #c7891e; }
.alert-icon.purple { background: #f0e7ff; color: #7b45df; }
.activity-icon.green { background: #e6f8ed; color: #20a660; }
.activity-icon.purple { background: #efe6ff; color: #7b45df; }
.alert-item strong,
.activity-item strong { display: block; color: #172033; font-weight: 700; }
.alert-item span,
.activity-item span { color: #7b8496; }
.alert-item b { color: #172033; }

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.settings-card {
  min-height: 150px;
  border: 1px solid var(--va-border);
  border-radius: 8px;
  background: #fff;
  padding: 22px;
  color: #182033;
  box-shadow: 0 10px 28px rgba(25,37,64,.05);
}
.settings-card i { font-size: 28px; color: var(--va-blue); }
.settings-card strong { display: block; font-size: 18px; margin: 18px 0 8px; }
.settings-card span { color: var(--va-muted); }

.timeline { position: relative; display: grid; gap: 14px; }
.timeline-item {
  border: 1px solid var(--va-border);
  border-radius: 8px;
  background: #fbfcff;
  padding: 14px 16px;
}
.timeline-item .meta { color: #78839a; font-size: 12px; font-weight: 700; }

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(7,18,37,.92), rgba(65,105,244,.82)),
    url('../img/residencial-varalago-banner.png') center/cover no-repeat;
}
.login-card {
  width: min(440px, 100%);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(7,18,37,.28);
}
.login-mark {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: #eef4ff;
  color: var(--va-blue);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  font-weight: 700;
  font-size: 25px;
}

.login-logo-img {
  width: min(180px, 80%);
  max-height: 86px;
  object-fit: contain;
  display: block;
  margin: 0 auto 18px;
}

@media (max-width: 1390px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .hero-card { min-height: 240px; }
}

@media (max-width: 1100px) {
  #sidebarToggle { display: inline-flex; }
  .app-sidebar { transform: translateX(-100%); transition: transform .18s ease; }
  .app-sidebar.show { transform: translateX(0); }
  .sidebar-backdrop.show {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(7,18,37,.42);
    z-index: 1030;
  }
  .app-main { width: 100%; margin-left: 0; }
  .topbar { flex-wrap: wrap; align-items: flex-start; }
  .topbar-actions { margin-left: 82px; flex-wrap: wrap; }
}

@media (max-width: 760px) {
  .content-wrap { padding: 12px 14px 28px; }
  .topbar {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
    padding: 20px 14px 10px;
  }
  .icon-btn { width: 56px; height: 56px; }
  .topbar-title {
    min-width: 0;
    align-self: center;
  }
  .topbar-title h1 {
    font-size: 24px;
    line-height: 1.06;
  }
  .topbar-title p {
    font-size: 15px;
    line-height: 1.45;
  }
  .topbar-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin-left: 0;
    width: 100%;
  }
  .date-pill { width: 100%; justify-content: space-between; }
  .notification-btn { width: 56px; }
  .btn-strong,
  .btn-new-report {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
  }
  .metric-grid,
  .chart-row,
  .donut-wrap { grid-template-columns: 1fr; }
  .dashboard-grid { gap: 18px; }
  .metric-grid { gap: 14px; margin-bottom: 18px; }
  .metric-card {
    min-height: 124px;
    padding: 20px;
    gap: 18px;
  }
  .metric-icon {
    width: 58px;
    height: 58px;
    font-size: 24px;
  }
  .metric-card span { font-size: 16px; }
  .metric-card strong { font-size: 29px; }
  .panel-card,
  .table-card { padding: 18px; }
  .panel-title { font-size: 19px; }
  .donut-canvas {
    width: min(240px, 100%);
    height: 220px;
    margin: 0 auto;
  }
  .legend-list { gap: 12px; }
  .legend-item { font-size: 14px; }
  .hero-card { min-height: 248px; }
  .hero-card-content { align-items: start; flex-direction: column; }
  .alert-item,
  .activity-item {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .alert-item b,
  .activity-item > .text-muted {
    grid-column: 2;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .settings-card {
    min-height: 130px;
    padding: 18px;
  }
  .filter-card {
    padding: 12px;
  }
  .table {
    min-width: 720px;
  }
  .table.table-sm {
    min-width: 660px;
  }
}

@media (max-width: 420px) {
  .content-wrap { padding-left: 12px; padding-right: 12px; }
  .topbar { padding-left: 12px; padding-right: 12px; }
  .topbar-title h1 { font-size: 22px; }
  .topbar-title p { font-size: 14px; }
  .date-pill { padding: 0 12px; font-size: 13px; }
  .metric-card {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
  }
  .panel-card,
  .table-card { padding: 16px; }
  .hero-card h2 { font-size: 20px; }
  .hero-card p { font-size: 16px; }
  .alert-icon,
  .activity-icon {
    width: 46px;
    height: 46px;
  }
}
