/* PANDO SAÚDE — painel administrativo */
:root {
  --a-bg: #f4f5f7; --a-card: #fff; --a-ink: #16181d; --a-muted: #687080; --a-line: #e4e7ec; --a-soft: #f0f2f5;
  --a-pri: #2f5bea; --a-pri-ink: #fff; --a-side: #101318; --a-side-ink: #c9ced8; --a-ok: #12805c; --a-warn: #b25e09; --a-err: #c0362c; --a-wa: #1f9d55;
  --a-r: 12px; --a-f: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 14.5px/1.55 var(--a-f); color: var(--a-ink); background: var(--a-bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.ic { width: 18px; height: 18px; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--a-pri); outline-offset: 2px; }

/* layout */
.a-body { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.a-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--a-side); color: var(--a-side-ink); display: flex; flex-direction: column; padding: 18px 12px; }
.a-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 6px 10px 18px; color: #fff; }
.a-brand strong { display: block; font-size: 15px; line-height: 1.2; }
.a-brand small { display: block; font-size: 12px; color: #8a92a2; }
.a-mark { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--a-pri); color: #fff; font-weight: 700; letter-spacing: .02em; }
.a-nav { display: grid; gap: 2px; flex: 1; }
.a-nav__g { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #6c7484; padding: 16px 12px 6px; font-weight: 600; }
.a-nav__i { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 8px; text-decoration: none; font-weight: 500; transition: background .15s, color .15s; }
.a-nav__i:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.a-nav__i.is-on { background: rgba(255, 255, 255, .1); color: #fff; }
.a-nav__i.is-on .ic { color: #8fb0ff; }
.a-nav__i span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #f0a33a; color: #1a1205; font-size: 11px; display: grid; place-items: center; font-weight: 700; }
.a-side__foot { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 10px; margin-top: 10px; display: grid; gap: 2px; }
.a-main { min-width: 0; display: flex; flex-direction: column; }
.a-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 14px 28px; background: rgba(244, 245, 247, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--a-line); min-height: 68px; }
.a-top__t { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.a-top h1 { font-size: 20px; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-top__act { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.a-back { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--a-line); background: #fff; }
.a-burger { display: none; width: 40px; height: 40px; border: 1px solid var(--a-line); border-radius: 10px; background: #fff; place-items: center; cursor: pointer; }
.a-content { padding: 24px 28px 64px; display: grid; gap: 18px; align-content: start; }
.a-sub { color: var(--a-muted); margin-top: -6px; }
@media (max-width: 960px) {
  .a-body { grid-template-columns: 1fr; }
  .a-side { position: fixed; z-index: 60; left: 0; top: 0; width: 270px; transform: translateX(-102%); transition: transform .25s; box-shadow: 20px 0 40px -20px rgba(0, 0, 0, .5); }
  .side-open .a-side { transform: none; }
  .side-open .a-main::before { content: ''; position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 50; }
  .a-burger { display: grid; }
  .a-top { padding: 12px 16px; }
  .a-content { padding: 18px 16px 64px; }
  .a-top__act .abtn span { display: none; }
}

/* avisos */
.a-demo { display: flex; gap: 10px; align-items: center; margin: 16px 28px 0; padding: 12px 16px; border-radius: var(--a-r); background: #fff7e6; color: #6b4200; border: 1px solid #f3d9a4; }
@media (max-width: 960px) { .a-demo { margin: 12px 16px 0; } }
.a-notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--a-r); border: 1px solid; }
.a-notice .ic { margin-top: 2px; }
.a-notice--ok { background: #ecfaf3; border-color: #bfe8d4; color: #0c5a40; }
.a-notice--err { background: #fdf0ef; border-color: #f2c7c3; color: #8f241c; }
.a-notice--info { background: #eef3ff; border-color: #cfdcff; color: #20376e; }
.a-flash { margin: 16px 28px 0; }
@media (max-width: 960px) { .a-flash { margin: 12px 16px 0; } }

/* botões */
.abtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 8px 14px; border-radius: 9px; border: 1px solid var(--a-line); background: #fff; color: var(--a-ink); font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s; }
.abtn:hover { border-color: #c5cad3; background: #fafbfc; }
.abtn--primary { background: var(--a-pri); border-color: var(--a-pri); color: var(--a-pri-ink); }
.abtn--primary:hover { background: #244ad0; border-color: #244ad0; }
.abtn--danger { background: var(--a-err); border-color: var(--a-err); color: #fff; }
.abtn--danger-ghost { color: var(--a-err); }
.abtn--danger-ghost:hover { border-color: var(--a-err); background: #fff5f4; }
.abtn--wa { background: var(--a-wa); border-color: var(--a-wa); color: #fff; }
.abtn--wa:hover { background: #18864a; border-color: #18864a; }
.abtn--sm { min-height: 32px; padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.abtn--block { width: 100%; }
.a-icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 1px solid transparent; background: transparent; cursor: pointer; color: var(--a-muted); text-decoration: none; }
.a-icon-btn:hover { background: var(--a-soft); color: var(--a-ink); border-color: var(--a-line); }
.a-link { display: inline-flex; align-items: center; gap: 6px; color: var(--a-pri); font-weight: 600; text-decoration: none; font-size: 13.5px; }
.a-link .ic { width: 15px; height: 15px; }

/* cartões */
.a-card { background: var(--a-card); border: 1px solid var(--a-line); border-radius: var(--a-r); padding: 20px 22px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.a-card--tight { padding: 16px 18px; gap: 10px; }
.a-card--danger { border-color: #f2d2cf; }
.a-card__hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.a-card__t { font-size: 15.5px; font-weight: 650; }
.a-cols { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: start; }
.a-cols--detail { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.a-cols--detail > div { display: grid; gap: 18px; align-content: start; }
@media (max-width: 1100px) { .a-cols--detail { grid-template-columns: 1fr; } }
.a-empty { color: var(--a-muted); padding: 10px 0; }
.empty-box { display: grid; justify-items: center; gap: 12px; padding: 56px 20px; background: #fff; border: 1px dashed #cfd4dc; border-radius: var(--a-r); color: var(--a-muted); text-align: center; }
.empty-box .ic { width: 34px; height: 34px; color: #a6adb9; }
.a-muted { color: var(--a-muted); }
.a-muted .ic { display: inline; vertical-align: -3px; width: 16px; height: 16px; }
.a-small { font-size: 12.5px; }
.a-big { font-size: 18px; font-weight: 650; }
.a-label { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--a-muted); font-weight: 600; margin-top: 4px; }
.a-narrow { max-width: 520px; }

/* indicadores */
.kpis { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.kpi { display: grid; gap: 2px; padding: 16px 18px; background: #fff; border: 1px solid var(--a-line); border-radius: var(--a-r); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
a.kpi:hover { border-color: #c5cad3; box-shadow: 0 6px 18px -12px rgba(0, 0, 0, .25); }
.kpi__l { display: flex; align-items: center; gap: 8px; color: var(--a-muted); font-weight: 600; font-size: 13px; }
.kpi__v { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin-top: 4px; }
.kpi__s { color: var(--a-muted); font-size: 12.5px; }
.kpi--warn .kpi__v { color: var(--a-warn); }

/* listas */
.a-list { display: grid; }
.a-list > li + li { border-top: 1px solid var(--a-line); }
.a-appt { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.a-appt__t { width: 54px; flex: none; font-weight: 700; font-variant-numeric: tabular-nums; display: grid; line-height: 1.2; }
.a-appt__t small { font-weight: 500; color: var(--a-muted); font-size: 12px; }
.a-appt__b { flex: 1; min-width: 0; text-decoration: none; display: grid; }
.a-appt__b strong, .a-appt__b small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-appt__b small { color: var(--a-muted); font-size: 12.5px; }
.a-appt--cancelado { opacity: .5; }
.a-lead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.a-lead__b { display: grid; min-width: 0; }
.a-lead__b small { color: var(--a-muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-lead__m { display: grid; justify-items: end; gap: 2px; flex: none; }
.a-lead__m small { color: var(--a-muted); font-size: 12px; }
.pill-st { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--a-soft); color: var(--a-muted); }
.pill-st--solicitado { background: #fff1db; color: #8a4b00; }
.pill-st--confirmado { background: #e5efff; color: #1f43b8; }
.pill-st--concluido { background: #e3f6ed; color: #0c6a48; }
.pill-st--faltou { background: #fde8e6; color: #9b2a21; }
.pill-st--cancelado { background: #eef0f3; color: #6a7280; text-decoration: line-through; }
.pill-st--l-novo { background: #fff1db; color: #8a4b00; }
.pill-st--l-em_contato { background: #e5efff; color: #1f43b8; }
.pill-st--l-convertido { background: #e3f6ed; color: #0c6a48; }
.a-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 22px; margin: 0; }
.a-dl dt { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--a-muted); font-weight: 600; }
.a-dl dd { margin: 2px 0 0; font-weight: 500; }
.a-dl__wide { grid-column: 1 / -1; }
.a-status-form { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; border-top: 1px solid var(--a-line); }
.a-wa { display: flex; flex-wrap: wrap; gap: 8px; }
.a-danger-zone { display: flex; justify-content: flex-end; }

/* barras */
.bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; height: 170px; align-items: end; }
.bars__c { display: grid; grid-template-rows: auto 1fr auto; height: 100%; justify-items: center; gap: 4px; }
.bars__v { font-size: 11px; color: var(--a-muted); font-weight: 600; }
.bars__b { align-self: end; width: 100%; max-width: 26px; background: linear-gradient(180deg, #5b82ff, var(--a-pri)); border-radius: 6px 6px 3px 3px; }
.bars__l { font-size: 11px; color: var(--a-muted); text-transform: capitalize; }

/* filtros e tabela */
.a-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.a-filters select, .ag-filter select, .a-inline-sm select { min-height: 38px; padding: 6px 30px 6px 12px; border-radius: 9px; border: 1px solid var(--a-line); background: #fff; }
.a-search { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--a-line); background: #fff; flex: 1 1 220px; max-width: 360px; color: var(--a-muted); }
.a-search input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; padding: 8px 0; color: var(--a-ink); }
.a-count { margin-left: auto; color: var(--a-muted); font-size: 13px; }
.a-table-wrap { background: #fff; border: 1px solid var(--a-line); border-radius: var(--a-r); overflow: hidden; }
.a-table { width: 100%; border-collapse: collapse; }
.a-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--a-muted); font-weight: 600; padding: 12px 14px; background: #fafbfc; border-bottom: 1px solid var(--a-line); }
.a-table td { padding: 11px 14px; border-bottom: 1px solid var(--a-line); vertical-align: middle; }
.a-table tr:last-child td { border-bottom: 0; }
.a-table tr:hover td { background: #fbfcfd; }
.a-table small.a-muted { display: block; font-size: 12px; }
.a-strong { font-weight: 600; text-decoration: none; }
.a-strong:hover { color: var(--a-pri); }
.c-thumb { width: 64px; }
.c-act { width: 1%; white-space: nowrap; text-align: right; }
.c-bool { width: 1%; text-align: center; white-space: nowrap; }
.a-thumb { display: grid; place-items: center; width: 48px; height: 36px; border-radius: 6px; overflow: hidden; background: var(--a-soft); color: #a6adb9; }
.a-thumb img { width: 100%; height: 100%; object-fit: cover; }
.a-yes { color: var(--a-ok); display: inline-flex; }
.a-no { color: #b8bec8; }
@media (max-width: 760px) {
  .a-table thead { display: none; }
  .a-table, .a-table tbody, .a-table tr, .a-table td { display: block; width: 100%; }
  .a-table tr { padding: 12px 14px; border-bottom: 1px solid var(--a-line); display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
  .a-table td { padding: 0; border: 0; text-align: left !important; }
  .a-table td[data-l]::before { content: attr(data-l); display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--a-muted); font-weight: 600; }
  .a-table td.c-title, .a-table td:first-child { grid-column: 1 / -1; }
  .a-table td.c-thumb::before, .a-table td.c-act::before { display: none; }
  .a-table td.c-thumb { display: none; }
  .a-table td.c-act { grid-column: 1 / -1; display: flex; gap: 6px; }
}

/* abas */
.a-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--a-line); }
.a-tabs a { padding: 10px 14px; text-decoration: none; font-weight: 600; color: var(--a-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.a-tabs a:hover { color: var(--a-ink); }
.a-tabs a[aria-current] { color: var(--a-pri); border-bottom-color: var(--a-pri); }

/* formulários */
.aform { display: grid; gap: 16px; }
.aform--edit { max-width: 1040px; }
.a-grid { display: grid; gap: 16px 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.afld { display: grid; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.afld--wide { grid-column: 1 / -1; }
.afld > span, .afld legend { font-weight: 600; font-size: 13.5px; padding: 0; }
.afld input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]), .afld select, .afld textarea { width: 100%; min-height: 40px; padding: 9px 12px; border-radius: 9px; border: 1px solid #d5d9e0; background: #fff; transition: border-color .15s, box-shadow .15s; }
.afld textarea { resize: vertical; line-height: 1.5; }
.afld textarea.is-md { font-family: ui-monospace, 'SF Mono', Consolas, monospace; font-size: 13.5px; }
.afld input:focus, .afld select:focus, .afld textarea:focus { outline: 0; border-color: var(--a-pri); box-shadow: 0 0 0 3px rgba(47, 91, 234, .15); }
.afld input[type=color] { width: 64px; height: 40px; padding: 2px; border: 1px solid #d5d9e0; border-radius: 9px; background: #fff; }
.afld__help { color: var(--a-muted); font-size: 12.5px; font-weight: 400; display: block; }
.aswitch { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-weight: 600; font-size: 13.5px; }
.aswitch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.aswitch__ui { position: relative; width: 38px; height: 22px; flex: none; border-radius: 11px; background: #cdd2da; transition: background .2s; margin-top: 1px; }
.aswitch__ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.aswitch input:checked + .aswitch__ui { background: var(--a-pri); }
.aswitch input:checked + .aswitch__ui::after { transform: translateX(16px); }
.aswitch input:focus-visible + .aswitch__ui { outline: 2px solid var(--a-pri); outline-offset: 2px; }
.aswitch > span:last-child { display: grid; gap: 2px; }
.acheck { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13.5px; }
.acheck input { width: 17px; height: 17px; accent-color: var(--a-pri); }
.achecks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 16px; padding: 12px; border: 1px solid var(--a-line); border-radius: 9px; max-height: 280px; overflow: auto; }
.aimg { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.aimg img, .aimg__ph { width: 120px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--a-line); }
.aimg__ph { display: grid; place-items: center; background: var(--a-soft); color: #a6adb9; }
.aimg__ctl { display: grid; gap: 8px; }
.aslug { display: flex; align-items: center; border: 1px solid #d5d9e0; border-radius: 9px; background: #fff; overflow: hidden; }
.aslug small { padding: 0 4px 0 12px; color: var(--a-muted); white-space: nowrap; }
.aslug input { border: 0 !important; box-shadow: none !important; padding-left: 0 !important; }
.a-savebar { position: sticky; bottom: 0; z-index: 10; display: flex; gap: 10px; padding: 14px 0; background: linear-gradient(180deg, rgba(244, 245, 247, 0), var(--a-bg) 35%); }
.a-savebar--in { position: static; background: none; padding: 0; }
.a-inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.a-inline .afld { width: 170px; }
.a-inline-sm { display: inline-flex; }
.av { display: grid; gap: 8px; margin: 6px 0 10px; }
.av-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.av-row select, .av-row input { min-height: 38px; padding: 6px 10px; border-radius: 8px; border: 1px solid #d5d9e0; background: #fff; }
.av-row span { color: var(--a-muted); }
.a-sortable { display: grid; gap: 6px; max-width: 520px; }
.a-sortable li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--a-line); border-radius: 9px; background: #fff; }
.a-sortable li.is-drag { opacity: .4; }
.a-grip { cursor: grab; color: #a6adb9; letter-spacing: -2px; }
.a-sortable .acheck { flex: 1; }
.a-sort-btns { display: flex; }

/* agenda semanal */
.ag-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ag-nav { display: flex; align-items: center; gap: 6px; }
.ag-range { margin-left: 8px; font-size: 15px; }
.ag-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--a-muted); }
.lg::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.lg--solicitado::before { background: #f5b14c; } .lg--confirmado::before { background: var(--a-pri); } .lg--concluido::before { background: #2fae7d; } .lg--faltou::before { background: #e0685e; }
.ag { display: grid; grid-template-columns: 58px repeat(7, minmax(0, 1fr)); background: #fff; border: 1px solid var(--a-line); border-radius: var(--a-r); overflow: hidden; }
.ag__hours { display: grid; grid-template-rows: 56px repeat(var(--rows), var(--h)); border-right: 1px solid var(--a-line); }
.ag__corner { border-bottom: 1px solid var(--a-line); }
.ag__h { font-size: 11px; color: var(--a-muted); text-align: right; padding: 0 8px; transform: translateY(-7px); }
.ag__h:first-of-type { transform: none; padding-top: 2px; }
.ag__col { border-right: 1px solid var(--a-line); min-width: 0; }
.ag__col:last-child { border-right: 0; }
.ag__col.is-today { background: #f7f9ff; }
.ag__col.is-weekend { background: #fbfbfc; }
.ag__hd { height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-bottom: 1px solid var(--a-line); line-height: 1.2; position: relative; }
.ag__hd span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--a-muted); font-weight: 600; }
.ag__hd strong { font-size: 18px; }
.is-today .ag__hd strong { color: var(--a-pri); }
.ag__hd small { position: absolute; top: 6px; right: 6px; font-size: 10.5px; background: var(--a-soft); padding: 1px 6px; border-radius: 8px; color: var(--a-muted); font-weight: 600; }
.ag__body { position: relative; height: calc(var(--rows) * var(--h)); background-image: repeating-linear-gradient(180deg, transparent 0, transparent calc(var(--h) - 1px), var(--a-line) calc(var(--h) - 1px), var(--a-line) var(--h)); }
.ag__ev { position: absolute; left: 4px; right: 4px; overflow: hidden; padding: 4px 7px; border-radius: 7px; text-decoration: none; font-size: 11.5px; line-height: 1.3; border-left: 3px solid; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.ag__ev:hover { z-index: 2; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .35); transform: scale(1.02); }
.ag__ev strong { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag__ev span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .85; }
.ag__pro { font-size: 10.5px; opacity: .7 !important; }
.ag__ev--solicitado { background: #fff4e2; border-color: #f5b14c; color: #6e3f00; }
.ag__ev--confirmado { background: #e8efff; border-color: var(--a-pri); color: #17307e; }
.ag__ev--concluido { background: #e6f6ef; border-color: #2fae7d; color: #0b5539; }
.ag__ev--faltou { background: #fdecea; border-color: #e0685e; color: #7d241c; }
.ag-mobile { display: none; gap: 12px; }
@media (max-width: 860px) { .ag, .ag-legend { display: none; } .ag-mobile { display: grid; } }

/* aparência */
.themes { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.theme { position: relative; cursor: pointer; }
.theme input { position: absolute; opacity: 0; }
.theme__box { display: grid; gap: 6px; padding: 10px 10px 14px; border: 2px solid var(--a-line); border-radius: 12px; background: #fff; height: 100%; transition: border-color .15s, box-shadow .15s; }
.theme input:checked + .theme__box { border-color: var(--a-pri); box-shadow: 0 0 0 4px rgba(47, 91, 234, .12); }
.theme__img { display: block; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--a-soft); }
.theme__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.theme__sw { display: block; width: 100%; height: 100%; }
.theme__t { font-weight: 650; padding: 0 2px; }
.theme__d { font-size: 12.5px; color: var(--a-muted); padding: 0 2px; }
.theme .a-link { padding: 0 2px; }

/* contatos */
.a-leads { display: grid; gap: 12px; }
.a-leadcard p { white-space: pre-line; }
.a-leadcard__act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* login */
.login-body { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(1200px 600px at 10% -10%, #dfe7ff, transparent), var(--a-bg); padding: 20px; }
.login { width: 100%; max-width: 400px; display: grid; gap: 16px; }
.login__card { background: #fff; border: 1px solid var(--a-line); border-radius: 18px; padding: 30px; display: grid; gap: 18px; box-shadow: 0 30px 60px -40px rgba(20, 30, 60, .4); }
.login__brand { display: flex; align-items: center; gap: 12px; }
.login__brand strong { display: block; font-size: 16px; }
.login__brand small { color: var(--a-muted); }
.login__back { display: inline-flex; align-items: center; gap: 6px; color: var(--a-muted); text-decoration: none; font-size: 13.5px; justify-self: center; }
.login__by { text-align: center; font-size: 12.5px; color: var(--a-muted); }
