/* Fisio App · painel de controle do administrador */
:root{--adm-series:#0891a8;--adm-grid:#e6ecec}
body.admin-view #elo-launcher{display:none!important}
.sidebar{overflow-y:auto}
.admstate{display:grid;gap:12px;justify-items:start}
.admstamp{margin-top:22px;max-width:70ch}
.admfoot{margin-top:14px}

/* Indicadores */
.admkpis{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}
.admkpis.four{grid-template-columns:repeat(4,1fr)}
.admkpi{min-height:118px;cursor:default}
.admkpi:hover{transform:none;box-shadow:none}
.admkpi.white{background:#fff;border:1px solid var(--line)}
.admkpi strong{font-variant-numeric:tabular-nums}
.admkpi span{overflow-wrap:anywhere}

/* Gráfico de atividade */
.admgrid2{grid-template-columns:1.6fr 1fr;align-items:start}
.admgrid2>*{min-width:0}
.admcharthead{align-items:flex-start;gap:12px}
.admcharthead small{display:block;max-width:52ch;margin-top:4px}
.admchart{position:relative}
.admchart svg{display:block;width:100%;height:auto;fill:none;stroke:none;overflow:visible}
.admchart .admgrid{stroke:var(--adm-grid);stroke-width:1}
.admchart .admbase{stroke:#c9d5d5;stroke-width:1}
.admchart .admbar{fill:var(--adm-series)}
.admchart .admtick{fill:var(--muted);font-size:12px;stroke:none}
.admchart .admtick.today{fill:var(--ink);font-weight:700}
.admchart .admvalue{fill:var(--ink);font-size:13px;font-weight:700;stroke:none}
.admchart .admhit{fill:transparent;cursor:default;outline:none}
.admchart .admhit:hover,.admchart .admhit:focus-visible{fill:#192c2e0d}
.admchart .admhit:focus-visible{stroke:#397d89;stroke-width:2}
.admtip{position:absolute;transform:translate(-50%,-8px);background:var(--ink);color:#fff;border-radius:14px;padding:9px 13px;font-size:13px;line-height:1.35;pointer-events:none;white-space:nowrap;display:grid;gap:1px;box-shadow:0 10px 30px #0f262633;z-index:3}
.admtip[hidden]{display:none}
.admtip strong{font-size:15px}
.admtip small{color:#c9d8d9;font-size:12px}

/* Contas por papel */
.admroles{display:grid;gap:12px}
.admrole{display:grid;grid-template-columns:120px 1fr 28px;align-items:center;gap:12px;font-size:15px}
.admrole strong{text-align:right;font-variant-numeric:tabular-nums}
.admmeter{height:10px;border-radius:0 5px 5px 0;background:#f0f4f4;overflow:hidden;display:block}
.admmeter i{display:block;height:100%;background:var(--adm-series);border-radius:0 5px 5px 0;min-width:0}

/* Atenção */
.admattention{list-style:none;margin:0;padding:0;display:grid}
.admattention li span{min-width:0;overflow-wrap:anywhere}
.admattention li{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);font-size:15px}
.admattention li:last-child{border-bottom:0;padding-bottom:0}
.admattention li:first-child{padding-top:0}
.admattention .textbtn{flex-shrink:0;padding:0 2px;font-size:14px;white-space:nowrap}

/* Tabelas */
.admscroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.panel.admscroll{padding:10px 25px}
.admtable{width:100%;border-collapse:collapse;font-size:15px}
.admtable th,.admtable td{padding:13px 10px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}
.admtable thead th{font-size:13px;font-weight:600;color:var(--muted);white-space:nowrap;vertical-align:bottom}
.admtable tbody tr:last-child th,.admtable tbody tr:last-child td{border-bottom:0}
.admtable tbody th{font-weight:600;min-width:170px;max-width:260px;overflow-wrap:anywhere}
.admtable tbody th small{display:block;font-weight:400}
.admtable .num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.admtable tr.off th span,.admtable tr.off td{color:var(--muted)}
.admtable td[title]{white-space:nowrap}
.admaudit td:first-child{white-space:nowrap;color:var(--muted);font-variant-numeric:tabular-nums}
.admaudit tbody th{min-width:130px}
.admaudit .pill{display:inline-block;white-space:nowrap}
.admaudit td:nth-child(4){min-width:220px}
.admmore{margin-top:16px;text-align:center}

/* Contas */
.admaccount{display:flex;align-items:flex-start;gap:14px;padding:18px 0;border-bottom:1px solid var(--line);flex-wrap:wrap}
.admaccount:first-child{padding-top:0}
.admaccount:last-child{border-bottom:0;padding-bottom:0}
.admaccount .grow{flex:1 1 240px;min-width:0;display:grid;gap:3px}
.admaccount .grow small{overflow-wrap:anywhere}
.admaccount.off .avatar{background:#edf1f1;color:var(--muted)}
.admaccount.off .admname strong{color:var(--muted)}
.admname{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.admname strong{font-size:17px;margin-right:2px;min-width:0;overflow-wrap:anywhere}
.admactions{display:grid;gap:8px;justify-items:end;min-width:250px}
.admactions .rowactions{flex-wrap:wrap;justify-content:flex-end}
.admrolepick{display:flex;gap:8px;align-items:center}
.admrolepick select,.admfilters select{padding:8px 12px;border-radius:14px;border:1px solid #cbd9d9;background:#fbfdfd;color:var(--ink);min-height:36px;max-width:100%}
.admfilters{display:grid;grid-template-columns:repeat(2,minmax(0,280px));gap:0 16px}
.admfilters .field{margin-bottom:16px}
.admfilters select{width:100%;padding:11px 13px}

/* Diálogo de confirmação */
#ph-dialog.admdialog{width:min(480px,calc(100vw - 32px))}
.admnotes{margin:12px 0 0;padding-left:20px;display:grid;gap:6px;color:var(--muted);font-size:15px}
.admdialogactions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}
.invitegrid .field>small{display:block;margin-top:6px}

@media(max-width:1100px){
 .admkpis,.admkpis.four{grid-template-columns:repeat(3,1fr)}
 .admgrid2{grid-template-columns:1fr}
}
@media(max-width:700px){
 .admkpis,.admkpis.four{grid-template-columns:repeat(2,1fr);gap:10px}
 .admkpis:not(.four)>:last-child{grid-column:1/-1;min-height:0}
 .admkpi{min-height:104px;padding:16px}
 .bottomnav .navbtn.active{color:var(--ink)}
 .admkpi strong{font-size:30px}
 .panel.admscroll{padding:6px 16px}
 .admactions{justify-items:start;min-width:0;width:100%}
 .admactions .rowactions{justify-content:flex-start}
 .admrolepick{flex-wrap:wrap}
 .admfilters{grid-template-columns:1fr}
 .admrole{grid-template-columns:104px 1fr 24px}
 .admattention li{flex-direction:column;gap:4px}
}
@media print{.admactions,.admfilters,.admmore{display:none!important}}
