:root {
  color-scheme: light;
  --brand-blue-dk: #082066;
  --brand-blue: #034788;
  --brand-blue-lt: #389ece;
  --brand-green-dk: #157337;
  --brand-green: #76ad38;
  --brand-green-lt: #adc65e;
  --brand-gradient: linear-gradient(120deg, var(--brand-blue-dk) 0%, var(--brand-blue-lt) 48%, var(--brand-green) 100%);
  --wordmark-blue-dk: #0a2654;
  --wordmark-blue: #005391;
  --wordmark-green: #8cbc3f;

  --page-bg-top: #e9f3fb;
  --page-bg: #f4f9fc;
  --surface: #ffffff;
  --surface-muted: #f2f7fb;
  --border: rgba(18, 55, 99, 0.09);
  --shadow-card: 0 2px 10px rgba(20, 52, 92, 0.06), 0 1px 2px rgba(20, 52, 92, 0.05);

  --text-primary: #16324f;
  --text-secondary: #56697d;
  --text-muted: #8b9aab;
  --grid-line: #e6eef5;

  --status-good: #0ca30c;
  --status-warn: #b8790f;
  --status-crit: #c23b3b;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text-primary);
  background: linear-gradient(180deg, var(--page-bg-top) 0%, var(--page-bg) 320px, var(--page-bg) 100%);
  min-height: 100vh;
}
a { color: inherit; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 20px 24px 64px; }

.topnav {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-text .name { font-weight: 800; font-size: 16.5px; }
.brand-text .name b {
  background: linear-gradient(90deg, var(--wordmark-blue-dk) 0%, var(--wordmark-blue) 55%, var(--wordmark-green) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-text .sub { font-size: 11.5px; color: var(--text-muted); margin-top: 1px; }
.navr { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand-gradient); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-card); padding: 20px 22px;
}
.card h2 { font-size: 15.5px; margin: 0 0 2px; }
.card .card-sub { font-size: 12px; color: var(--text-muted); margin: 0 0 16px; }
.card-headrow { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }

/* Auth pages */
.authwrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.authcard { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-card); padding: 30px 28px; }
.authcard .logo-row { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.authcard .logo-row img { width: 38px; height: 38px; }
.authcard h1 { font-size: 18px; margin: 0 0 4px; }
.authcard p.sub { font-size: 12.5px; color: var(--text-muted); margin: 0 0 20px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; font-weight: 700; color: var(--text-secondary); margin-bottom: 6px; }
.field .field-hint { font-size: 11px; color: var(--text-muted); margin: 6px 0 0; line-height: 1.45; }
.field input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 13.5px; font-family: inherit; background: var(--surface-muted);
}
.field input:focus { outline: 2px solid var(--brand-blue-lt); outline-offset: 1px; }
.checkbox-label {
  display: flex !important; align-items: flex-start; gap: 8px; cursor: pointer;
  font-size: 12.5px !important; font-weight: 600 !important; color: var(--status-crit) !important;
  background: color-mix(in srgb, var(--status-crit) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--status-crit) 30%, transparent);
  border-radius: 10px; padding: 10px 12px;
}
.checkbox-label input[type="checkbox"] { width: auto; margin: 2px 0 0; flex-shrink: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand-gradient); color: #fff; font-weight: 700; font-size: 13.5px;
  padding: 11px 18px; border-radius: 11px; border: 0; cursor: pointer; font-family: inherit;
  width: 100%;
}
.btn:disabled { opacity: 0.6; cursor: default; }
.btn.secondary { background: var(--surface-muted); color: var(--text-primary); border: 1px solid var(--border); }
.error-box {
  background: #fdecec; border: 1px solid #f2b8b8; color: #a23434; font-size: 12.5px;
  padding: 9px 12px; border-radius: 10px; margin-bottom: 14px;
}
.ok-box {
  background: #eafaea; border: 1px solid #b7e3b7; color: #256b25; font-size: 12.5px;
  padding: 9px 12px; border-radius: 10px; margin-bottom: 14px;
}
.hint { font-size: 11.5px; color: var(--text-muted); margin-top: 16px; text-align: center; }

/* Kanban */
.kanban-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.kanban-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.kchip { display: flex; align-items: center; gap: 7px; background: var(--surface-muted); border: 1px solid var(--border); border-radius: 11px; padding: 7px 12px; font-size: 12px; font-weight: 700; color: var(--text-secondary); }
.kchip .kdot { width: 8px; height: 8px; border-radius: 50%; }
.kchip.alert { background: #fdf1e4; border-color: #f0cd9a; color: #8a5a00; }
.kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: start; }
.kcol { background: var(--surface-muted); border: 1px solid var(--border); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 120px; }
.kcol.alertcol { background: #fff8ef; border: 1.5px solid #eebd6d; box-shadow: 0 0 0 3px rgba(238, 189, 109, 0.12); }
.kcol-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 6px; border-bottom: 1px solid var(--border); margin-bottom: 2px; }
.kcol-title { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 800; }
.kcol-title .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--status-crit); animation: pulse 1.8s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(194, 59, 59, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(194, 59, 59, 0); }
  100% { box-shadow: 0 0 0 0 rgba(194, 59, 59, 0); }
}
.kcol-count { font-size: 11px; font-weight: 800; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 2px 9px; color: var(--text-primary); }
.kcol.alertcol .kcol-count { background: var(--status-crit); border-color: var(--status-crit); color: #fff; }
.kcards { display: flex; flex-direction: column; gap: 8px; min-height: 40px; }
.kempty { font-size: 11.5px; color: var(--text-muted); text-align: center; padding: 14px 4px; }
.kcard { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 11px 12px; box-shadow: 0 1px 3px rgba(20, 52, 92, 0.05); }
.kcol.alertcol .kcard { border-color: #f0cd9a; }
.kcard .kname { font-size: 12.5px; font-weight: 800; color: var(--text-primary); }
.kcard .kname.noname { color: var(--text-muted); font-weight: 600; font-style: italic; }
.kcard .ktel { font-size: 11.5px; color: var(--text-secondary); margin-top: 2px; font-variant-numeric: tabular-nums; }
.kcard .kmsg { font-size: 11.5px; color: var(--text-secondary); margin-top: 6px; background: var(--surface-muted); border-radius: 8px; padding: 6px 8px; line-height: 1.4; }
.kcard .kmsg-lbl { font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; color: var(--text-muted); margin-bottom: 3px; }
.kcol.alertcol .kcard .kmsg { background: #fff3df; color: #7a5000; }
.kcol.alertcol .kcard .kmsg-lbl { color: #a1752e; }
.kcard .ktime { font-size: 10.5px; color: var(--text-muted); margin-top: 7px; }
.kcard .kactions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.kbtn { flex: 1 1 auto; min-width: 108px; border: 1px solid var(--border); background: var(--surface); border-radius: 8px; padding: 6px 8px; font-size: 11px; font-weight: 700; cursor: pointer; font-family: inherit; display: flex; align-items: center; justify-content: center; gap: 5px; }
.kbtn:disabled { opacity: 0.55; cursor: default; }
.kbtn.pause { color: var(--status-warn); }
.kbtn.pause:hover { background: #fff7e9; border-color: #f0cd9a; }
.kbtn.play { color: var(--status-good); }
.kbtn.play:hover { background: #eefbe9; border-color: #bfe6b0; }
.kbtn.schedule { color: #1f7a4d; border-color: #bfe6b0; background: #f2fbf0; }
.kbtn.schedule:hover { background: #e6f7e1; border-color: #9ed9a6; }
.schema-note { margin-top: 14px; font-size: 11px; color: var(--text-muted); background: var(--surface-muted); border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; line-height: 1.5; }

.topbar-actions { display: flex; align-items: center; gap: 10px; }
.linkbtn { background: none; border: 0; color: var(--brand-blue); font-weight: 700; font-size: 12.5px; cursor: pointer; font-family: inherit; text-decoration: none; }
.whoinfo { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; margin-right: 2px; }
.whoinfo .wname { font-size: 12.5px; font-weight: 700; color: var(--text-primary); }
.whoinfo .wrole { font-size: 10.5px; color: var(--text-muted); }

.secretbox { font-family: ui-monospace, monospace; background: #123763; color: #fff; padding: 10px 12px; border-radius: 10px; font-size: 13px; word-break: break-all; }

@media (max-width: 980px) {
  .kanban { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .kanban { grid-template-columns: 1fr; }
}

/* ---------- Page nav tabs (Pipeline da Sofia / Marketing) ---------- */
.page-tabs { display: flex; gap: 8px; margin-top: 14px; }
.page-tab {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 11px;
  padding: 9px 16px; font-size: 13px; font-weight: 700; color: var(--text-secondary);
}
.page-tab.active { background: var(--brand-gradient); color: #fff; border-color: transparent; }

/* ---------- Marketing / Anúncios ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 22px 0 18px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; margin: 0 0 4px; }
.page-head p { margin: 0; color: var(--text-secondary); font-size: 13.5px; }

.notice-box {
  display: flex; align-items: center; gap: 10px;
  background: #fff7e6; border: 1px solid #f1d38a; color: #8a5a00;
  font-size: 12.5px; font-weight: 600; padding: 10px 14px; border-radius: 12px;
  margin-bottom: 18px;
}
.notice-box svg { width: 15px; height: 15px; flex: none; }

.source-tag {
  font-size: 10.5px; font-weight: 700; color: var(--text-muted);
  background: var(--surface-muted); border: 1px solid var(--border);
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}

.kpi-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-card); padding: 16px 16px; }
.kpi .lbl { font-size: 11px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .3px; margin-bottom: 8px; }
.kpi .val { font-size: 24px; font-weight: 800; color: var(--text-primary); line-height: 1; }
.kpi .val.zero { color: var(--text-muted); }

.row2 { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; margin-bottom: 16px; }
.row2b { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 980px) {
  .row2, .row2b, .kpi-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .row2, .row2b, .kpi-grid { grid-template-columns: 1fr; }
}

.bars { display: flex; align-items: flex-end; gap: 10px; height: 170px; padding-top: 6px; border-top: 1px solid var(--grid-line); }
.bars .bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.bars .bar { width: 100%; max-width: 34px; border-radius: 4px 4px 0 0; background: var(--grid-line); min-height: 2px; }
.bars .barlabel { font-size: 10.5px; color: var(--text-muted); }
.bars .barval { font-size: 10.5px; color: var(--text-secondary); font-weight: 700; }

.hbar-row { display: grid; grid-template-columns: 130px 1fr 80px; align-items: center; gap: 10px; padding: 7px 0; }
.hbar-row .chan { font-size: 12.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--grid-line); }
.hbar-track { background: var(--grid-line); border-radius: 5px; height: 10px; overflow: hidden; }
.hbar-fill { height: 100%; border-radius: 5px; background: var(--grid-line); }
.hbar-num { font-size: 12px; text-align: right; color: var(--text-muted); font-variant-numeric: tabular-nums; }

.legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; font-size: 11.5px; color: var(--text-secondary); }
.legend .item { display: flex; align-items: center; gap: 6px; }

.linklike { background: none; border: 0; color: var(--brand-blue); font-weight: 700; font-size: 12px; cursor: pointer; padding: 0; font-family: inherit; }
table.datatbl, table.leads { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 12.5px; }
table.datatbl.hidden { display: none; }
table.datatbl th, table.leads th { text-align: left; color: var(--text-muted); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .3px; padding: 8px 8px; border-bottom: 1px solid var(--grid-line); }
table.datatbl td, table.leads td { padding: 9px 8px; border-bottom: 1px solid var(--grid-line); font-variant-numeric: tabular-nums; color: var(--text-secondary); }

.funnel { display: flex; flex-direction: column; gap: 10px; }
.fstage { display: grid; grid-template-columns: 150px 1fr 100px; align-items: center; gap: 12px; }
.fstage .fname { font-size: 12.5px; font-weight: 700; color: var(--text-primary); }
.fstage .fname small { display: block; font-weight: 500; color: var(--text-muted); font-size: 10.5px; margin-top: 1px; }
.ftrack { background: var(--surface-muted); border-radius: 8px; height: 32px; position: relative; }
.ffill { height: 100%; border-radius: 8px; background: var(--grid-line); }
.fright { text-align: right; font-size: 11.5px; color: var(--text-muted); }

.sofia-card { background: linear-gradient(135deg, #f3f9ff 0%, #f2f9ee 100%); border: 1px solid var(--border); }
.sofia-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 6px; }
.sofia-box { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.sofia-box .who { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; margin-bottom: 10px; }
.sofia-box .who .ic { width: 22px; height: 22px; border-radius: 7px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; }
.sofia-box .big { font-size: 25px; font-weight: 800; color: var(--text-primary); }
.sofia-box .capt { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.mini-stat { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.mini-stat .v { font-size: 18px; font-weight: 800; color: var(--text-primary); }
.mini-stat .l { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
@media (max-width: 620px) {
  .sofia-compare, .mini-stats { grid-template-columns: 1fr; }
}

/* Painel master */
.kpi-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 780px) { .kpi-grid.cols-4 { grid-template-columns: 1fr 1fr; } }

.pill {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { background: #eafaea; color: #256b25; }
.pill.off { background: #f2f2f2; color: #7a7a7a; }
.pill.master { background: #eaf1fd; color: var(--brand-blue); }
.pill.clinica { background: #fdf1e4; color: #8a5a00; }

table.admintbl { width: 100%; border-collapse: collapse; margin-top: 4px; font-size: 13px; }
table.admintbl th { text-align: left; color: var(--text-muted); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .3px; padding: 8px 8px; border-bottom: 1px solid var(--grid-line); }
table.admintbl td { padding: 10px 8px; border-bottom: 1px solid var(--grid-line); color: var(--text-secondary); }
table.admintbl tr.inactive-row td { opacity: .55; }
.rowactions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.linkbtn.danger { color: var(--status-crit); }
.selfnote { font-size: 11.5px; color: var(--text-muted); }

.card-headrow .btn-inline {
  display: inline-flex; align-items: center; gap: 6px; background: var(--brand-gradient); color: #fff;
  font-weight: 700; font-size: 12.5px; padding: 8px 14px; border-radius: 10px; border: 0; cursor: pointer;
  font-family: inherit; white-space: nowrap;
}
.card-headrow .btn-inline.secondary { background: var(--surface-muted); color: var(--text-primary); border: 1px solid var(--border); }

.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(15, 30, 50, 0.45);
  align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--surface); border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,.25);
  width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto; padding: 22px 24px;
}
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.modal-head h3 { font-size: 15.5px; margin: 0; }
.modal-close { background: none; border: 0; font-size: 20px; line-height: 1; color: var(--text-muted); cursor: pointer; padding: 2px 4px; }
.modal-sub { font-size: 12px; color: var(--text-muted); margin: 0 0 16px; }
.modal-foot { display: flex; gap: 10px; margin-top: 6px; }
.modal-foot .btn { width: auto; flex: 1; }

.btn.danger { background: var(--status-crit); }
.btn.danger:disabled { background: var(--text-muted); opacity: .6; cursor: not-allowed; }

.pill-btn { border: 0; font: inherit; cursor: pointer; }
.searchbox { margin-bottom: 12px; }
.searchbox input {
  width: 100%; max-width: 320px; padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--border); font-size: 13px; font-family: inherit;
  background: var(--surface-muted); color: var(--text-primary);
}
.searchbox input:focus { outline: 2px solid var(--brand-blue-lt); outline-offset: 1px; }
.atividade-sub { display: block; font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.origem-badge { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }

/* ---------- App shell (sidebar admin layout) ---------- */
html, body { height: 100%; }
.app-shell { display: flex; min-height: 100vh; align-items: stretch; }

.sidebar {
  width: 232px; flex: none; background: #0b1424; color: #c7d0dd;
  padding: 22px 16px; display: flex; flex-direction: column;
}
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; margin-bottom: 28px; }
.sidebar-brand img { width: 32px; height: 32px; flex: none; }
.sidebar-brand .sb-name { font-weight: 800; color: #fff; font-size: 14.5px; line-height: 1.25; }
.sidebar-brand .sb-name small { display: block; font-weight: 600; color: #7e8ca0; font-size: 10.5px; margin-top: 1px; }

.sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar nav a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px;
  color: #9fadc0; text-decoration: none; font-size: 13px; font-weight: 600;
}
.sidebar nav a .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.sidebar nav a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.sidebar nav a.active { background: #1c2940; color: #fff; }

.sidebar-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.09); }
.sidebar-foot .whoinfo-side { padding: 4px 8px 10px; }
.sidebar-foot .whoinfo-side .wname { font-size: 12.5px; font-weight: 700; color: #fff; }
.sidebar-foot .whoinfo-side .wrole { font-size: 10.5px; color: #7e8ca0; margin-top: 1px; }
.sidebar-foot a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px;
  color: #9fadc0; text-decoration: none; font-size: 12.5px; font-weight: 600;
}
.sidebar-foot a .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.sidebar-foot a:hover { background: rgba(226, 79, 79, 0.12); color: #ef7a7a; }

.app-content { flex: 1; min-width: 0; padding: 26px 30px 64px; }
.app-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.app-topbar h1 { font-size: 20px; margin: 0; color: var(--text-primary); }

@media (max-width: 880px) {
  .app-shell { flex-direction: column; min-height: 0; }
  .sidebar { width: 100%; padding: 14px 16px; }
  .sidebar-brand { margin-bottom: 14px; }
  .sidebar nav { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .sidebar-foot {
    margin-top: 14px; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  }
  .sidebar-foot .whoinfo-side { padding: 0; }
  .app-content { padding: 20px 18px 48px; }
}

/* KPI left-border accent variants (sidebar admin style) */
.kpi { border-left: 4px solid transparent; }
.kpi.accent-1 { border-left-color: #2a5db0; }
.kpi.accent-2 { border-left-color: #1c8a4b; }
.kpi.accent-3 { border-left-color: #c47a12; }
.kpi.accent-4 { border-left-color: #7440c9; }
