/* Page-specific overrides for Meta-like theme. */

/* Theme tokens loaded last (single source of truth for brand colors). */
:root {
  --brand-primary: #2374e1;
  --primary: var(--brand-primary);
  --primary-hover: #1f67cc;
  --sidebar: var(--brand-primary);
  --sidebar2: var(--brand-primary);
}

/* Keep sidebar exactly in the same blue as primary buttons. */
body .layout > #mobileSidebar.sidebar {
  background: #2374E1 !important;
}

/* Dashboard layout */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.dash-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.05);
}
.dash-card .label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.dash-card .value {
  font-size: 26px;
  font-weight: 900;
  margin-top: 6px;
}
.dash-card .meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}
.dash-section {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.dash-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dash-list.scroll-3 {
  max-height: 150px;
  overflow: auto;
  padding-right: 4px;
}
.dash-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}
.dash-item .title {
  font-weight: 800;
}
.dash-item .sub {
  color: var(--muted);
  font-size: 12px;
}
.dash-empty {
  color: var(--muted);
  font-size: 13px;
}
.dash-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn.whatsapp {
  background: #22c55e;
  color: #fff;
  border: 1px solid #22c55e;
}
.btn.whatsapp:hover {
  background: #16a34a;
  border-color: #16a34a;
}
@media (max-width: 1100px) {
  .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-section { grid-template-columns: 1fr; }
}

/* Patient detail history scroll */
.history-scroll{
  max-height: 240px;
  overflow: auto;
  padding-right: 4px;
}

.list-scroll-3{
  max-height: 180px;
  overflow: auto;
  padding-right: 4px;
}

.launches-scroll{
  max-height: 220px;
  overflow: auto;
  padding-right: 4px;
}
