/* =====================================================================
   Superadmin — sistema visual "premium/clean" (escopo: .sx; não afeta a área das empresas)
   ===================================================================== */
:root {
  --c1: #6366f1; --c2: #14b8a6; --c3: #f59e0b; --c4: #f43f5e; --c5: #8b5cf6; --c6: #0ea5e9; --c7: #84cc16;
  --sx-shadow: 0 1px 2px rgba(16,24,40,.04), 0 14px 34px -14px rgba(16,24,40,.13);
}
@media (prefers-color-scheme: dark) {
  :root { --c1: #818cf8; --c2: #2dd4bf; --c3: #fbbf24; --c4: #fb7185; --c5: #a78bfa; --c6: #38bdf8; --c7: #a3e635; --sx-shadow: 0 0 0 1px rgba(255,255,255,.05); }
}
.main.sx { max-width: none; width: 100%; min-width: 0; padding: 36px 44px 80px; }
.main.sx > #view { max-width: 1560px; margin: 0 auto; }
.sx .top { margin-bottom: 26px; align-items: flex-end; }
.sx .top h1 { font-size: 30px; font-weight: 750; letter-spacing: -.035em; }
.sx .card { border-radius: 20px; padding: 24px 26px; border-color: transparent; box-shadow: var(--sx-shadow); }
.sx .card h2 { font-size: 15.5px; font-weight: 650; letter-spacing: -.01em; }
.sx .btn { border-radius: 12px; }
.sx th { font-size: 11.5px; letter-spacing: .07em; }
.sx td { border-bottom-color: color-mix(in srgb, var(--border) 55%, transparent); }
.sx .alert { border-radius: 14px; }
.sx input, .sx select { border-radius: 12px; }

/* menu lateral */
.side.sx { padding: 26px 16px 18px; gap: 2px; width: 252px; }
.side.sx .brand { padding: 2px 12px 28px; font-size: 18px; }
.side.sx .nav a { padding: 11px 14px; border-radius: 13px; gap: 13px; font-weight: 600; font-size: 14.5px; }
.side.sx .nav a svg { width: 19px; height: 19px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.side.sx .nav a.on { background: linear-gradient(135deg, var(--brand-soft), color-mix(in srgb, var(--brand-soft) 60%, transparent)); color: var(--brand); }
.side.sx .nav a.on svg { opacity: 1; }
.side.sx .foot { border-top: 0; padding: 14px 8px 0; }
.sx-user { display: flex; align-items: center; gap: 11px; padding: 10px; border-radius: 14px; background: var(--surface-2); }
.sx-user b { display: block; font-size: 13.5px; } .sx-user span { font-size: 12px; color: var(--muted); }
.sx-links { display: flex; gap: 14px; padding: 10px 6px 0; font-size: 13px; }

/* cabeçalho de página */
.sx-sub { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.sx-head-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sx-tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--border); margin: -8px 0 26px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; } .sx-tabs::-webkit-scrollbar { display: none; }
.sx-tabs a { padding: 12px 2px; font-weight: 650; font-size: 14.5px; color: var(--muted); border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.sx-tabs a:hover { color: var(--text); text-decoration: none; }
.sx-tabs a.on { color: var(--brand); border-color: var(--brand); }

/* controles */
.sx-seg { display: inline-flex; background: var(--surface-2); padding: 4px; border-radius: 14px; gap: 2px; }
.sx-seg button { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 650; font-size: 13.5px; padding: 7px 14px; border-radius: 10px; cursor: pointer; white-space: nowrap; }
.sx-seg button:hover { color: var(--text); }
.sx-seg button.on { background: var(--surface); color: var(--brand); box-shadow: 0 1px 3px rgba(16,24,40,.12); }
.sx-select { width: auto; min-width: 170px; padding: 9px 14px; font-weight: 600; background-color: var(--surface); }
.sx-filterbtn .n { background: var(--brand); color: #fff; border-radius: 99px; font-size: 11px; min-width: 18px; height: 18px; display: inline-grid; place-items: center; padding: 0 5px; }
.sx-adv { margin: -6px 0 22px; padding: 18px 22px; }
.sx-adv .fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.sx-adv label { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.sx-search { position: relative; } .sx-search input { padding-left: 38px; width: 260px; } .sx-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; stroke: var(--muted); fill: none; stroke-width: 2; }
.sx-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.sx-chip { border: 1px solid var(--border); background: var(--surface); border-radius: 99px; padding: 6px 14px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.sx-chip:hover { border-color: var(--brand); color: var(--brand); }
.sx-chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.sx-chip b { font-weight: 700; margin-left: 5px; opacity: .8; }
.sx-menu { position: relative; } .sx-menu summary { list-style: none; cursor: pointer; } .sx-menu summary::-webkit-details-marker { display: none; }
.sx-menu .pop { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border-radius: 14px; box-shadow: 0 18px 48px -12px rgba(16,24,40,.28); border: 1px solid var(--border); padding: 6px; min-width: 190px; z-index: 20; }
.sx-menu .pop a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--text); font-weight: 600; font-size: 14px; }
.sx-menu .pop a:hover { background: var(--surface-2); text-decoration: none; }

/* grades */
.sx-grid { display: grid; gap: 20px; margin-bottom: 20px; }
.sx-g4 { grid-template-columns: repeat(4, 1fr); } .sx-g3 { grid-template-columns: repeat(3, 1fr); } .sx-g2 { grid-template-columns: repeat(2, 1fr); }
.sx-g21 { grid-template-columns: 2fr 1fr; } .sx-g12 { grid-template-columns: 1fr 2fr; }
.sx-card-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.sx-card-h h3 { margin: 0; font-size: 15.5px; font-weight: 650; letter-spacing: -.01em; }
.sx-card-h .hsub { color: var(--muted); font-size: 13px; margin-top: 2px; }

/* indicadores principais */
.sx-kpi { position: relative; overflow: hidden; }
.sx-kpi .lbl { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.sx-kpi .num { font-size: 38px; font-weight: 760; letter-spacing: -.04em; margin: 8px 0 6px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.sx-kpi .num small { font-size: 18px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.sx-kpi .foot { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.sx-spark { margin: 14px -4px -6px; } .spark.fluid { width: 100%; } .spark.fluid path { vector-effect: non-scaling-stroke; }
.sx-trend { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.sx-trend.up { background: var(--green-soft); color: var(--green); } .sx-trend.down { background: var(--red-soft); color: var(--red); } .sx-trend.flat { background: var(--surface-2); color: var(--muted); }
.sx-strip { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 0 6px 22px; font-size: 14px; color: var(--muted); }
.sx-strip b { color: var(--text); font-weight: 700; margin-left: 5px; } .sx-strip .bad b { color: var(--red); }
.sx-live { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); margin: -6px 0 20px; }
.sx-live b { color: var(--text); }

/* gráficos */
.sx-chart { width: 100%; height: auto; display: block; overflow: visible; }
.sx-chart .gl { stroke: color-mix(in srgb, var(--border) 70%, transparent); stroke-width: 1; }
.sx-chart .ax { fill: var(--muted); font-size: 11px; }
.sx-chart .ln { fill: none; stroke: var(--c1); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.sx-chart .pv { fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-dasharray: 5 5; opacity: .55; }
.sx-chart .hv rect { fill: transparent; } .sx-chart .hv circle { r: 0; fill: var(--c1); stroke: var(--surface); stroke-width: 2.5; transition: r .1s; } .sx-chart .hv:hover circle { r: 5.5; } .sx-chart .hv:hover rect { fill: color-mix(in srgb, var(--c1) 7%, transparent); }
.spark { display: block; overflow: visible; }
.sx-ring { position: relative; flex: none; } .sx-ring svg { width: 100%; height: 100%; }
.sx-ring .bg { fill: none; stroke: var(--surface-2); } .sx-ring .fg { fill: none; }
.sx-ring .mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.sx-ring .mid b { font-size: 28px; font-weight: 760; letter-spacing: -.03em; } .sx-ring .mid span { font-size: 12px; color: var(--muted); }
.sx-donut-wrap { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.sx-donut { position: relative; width: 160px; height: 160px; flex: none; } .sx-donut svg { width: 100%; height: 100%; } .sx-donut circle { fill: none; }
.sx-donut .mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.sx-donut .mid b { font-size: 24px; font-weight: 760; letter-spacing: -.03em; } .sx-donut .mid span { font-size: 12px; color: var(--muted); }
.sx-legend { display: grid; gap: 2px; flex: 1; min-width: 200px; }
.sx-legend a, .sx-legend div { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; color: var(--text); font-size: 14px; }
.sx-legend a:hover { background: var(--surface-2); text-decoration: none; } .sx-legend a.on { background: var(--brand-soft); }
.sx-legend i { width: 11px; height: 11px; border-radius: 4px; flex: none; } .sx-legend .v { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; } .sx-legend .p { color: var(--muted); font-size: 12.5px; width: 48px; text-align: right; }
.sx-hb { display: grid; gap: 14px; }
.sx-hb .r { display: grid; grid-template-columns: minmax(84px, 150px) 1fr auto; gap: 14px; align-items: center; font-size: 14px; }
.sx-hb .t { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; } .sx-hb .t i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--c1), color-mix(in srgb, var(--c1) 55%, var(--c6))); }
.sx-hb b { font-variant-numeric: tabular-nums; font-size: 13.5px; } .sx-hb small { color: var(--muted); font-weight: 500; margin-left: 4px; }
.sx-stack { display: flex; height: 14px; border-radius: 99px; overflow: hidden; gap: 2px; background: var(--surface-2); }
.sx-stack i { display: block; height: 100%; min-width: 5px; }
.sx-heat { display: grid; grid-template-columns: 34px repeat(24, 1fr); gap: 3px; align-items: center; }
.sx-heat i { display: block; aspect-ratio: 1; border-radius: 5px; background: color-mix(in srgb, var(--c1) calc(var(--a) * 100%), var(--surface-2)); min-width: 0; }
.sx-heat .hh { font-size: 10px; color: var(--muted); text-align: center; } .sx-heat .hd { font-size: 11px; color: var(--muted); font-weight: 650; }
.sx-heat-legend { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 12px; }
.sx-heat-legend span.g { width: 90px; height: 8px; border-radius: 9px; background: linear-gradient(90deg, var(--surface-2), var(--c1)); }
.sx-insight { display: flex; gap: 10px; align-items: center; background: var(--brand-soft); color: var(--brand); border-radius: 12px; padding: 10px 14px; font-size: 13.5px; font-weight: 600; margin-top: 14px; }

/* listas */
.sx-attn { display: grid; gap: 2px; }
.sx-attn a { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 12px; color: var(--text); font-weight: 600; font-size: 14.5px; }
.sx-attn a:hover { background: var(--surface-2); text-decoration: none; }
.sx-attn .ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); font-size: 16px; flex: none; }
.sx-attn .n { margin-left: auto; font-weight: 750; background: var(--surface-2); border-radius: 99px; padding: 1px 11px; font-size: 13px; }
.sx-list { display: grid; }
.sx-row { display: grid; align-items: center; gap: 18px; padding: 15px 18px; border-radius: 16px; color: inherit; cursor: pointer; }
.sx-row:hover { background: var(--surface-2); text-decoration: none; }
.sx-row + .sx-row { border-top: 1px solid color-mix(in srgb, var(--border) 45%, transparent); }
.sx-row.hd { cursor: default; padding-top: 4px; padding-bottom: 10px; font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 650; border: 0; }
.sx-row.hd:hover { background: none; } .sx-row.hd span.s { cursor: pointer; user-select: none; } .sx-row.hd span.s.on { color: var(--brand); }
.sx-co { grid-template-columns: minmax(200px, 2.1fr) minmax(190px, 2fr) 138px 100px 78px 116px 132px; }
.sx-av { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 14px; flex: none; }
.sx-name { display: flex; align-items: center; gap: 13px; min-width: 0; } .sx-name > div { min-width: 0; } .sx-name b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sx-name span { font-size: 12.5px; color: var(--muted); }
.sx-use .top2 { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 7px; } .sx-use .top2 b { color: var(--text); }
.sx-bar { height: 9px; border-radius: 99px; background: var(--surface-2); position: relative; }
.sx-bar i { display: block; height: 100%; border-radius: 99px; } .sx-bar em { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--text); opacity: .55; border-radius: 2px; }
.tone-green { background: var(--c2); } .tone-blue { background: var(--c6); } .tone-amber { background: var(--c3); } .tone-red { background: var(--c4); } .tone-none { background: var(--c1); }
.sx-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 99px; font-size: 12.5px; font-weight: 650; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.sx-pill.green { background: var(--green-soft); color: var(--green); } .sx-pill.blue { background: var(--blue-soft); color: var(--blue); } .sx-pill.amber { background: var(--amber-soft); color: var(--amber); } .sx-pill.red { background: var(--red-soft); color: var(--red); } .sx-pill.brand { background: var(--brand-soft); color: var(--brand); }
.sx-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; } .sx-pill.nodot::before { display: none; }
.sx-hl { display: flex; gap: 14px; align-items: center; } .sx-hl .ic { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font-size: 21px; background: var(--brand-soft); flex: none; }
.sx-hl small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; } .sx-hl b { display: block; font-size: 15.5px; letter-spacing: -.01em; } .sx-hl span { font-size: 13px; color: var(--muted); }
.sx-empty { text-align: center; padding: 44px 16px; color: var(--muted); } .sx-empty .e { font-size: 34px; margin-bottom: 6px; }
.sx-note { color: var(--muted); font-size: 13px; }

/* perfil da empresa */
.sx-profile-h { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; flex-wrap: wrap; }
.sx-profile-h .sx-av { width: 62px; height: 62px; border-radius: 19px; font-size: 22px; }
.sx-profile-h h1 { margin: 0; font-size: 30px; letter-spacing: -.035em; font-weight: 750; }
.sx-back { font-weight: 650; font-size: 13.5px; display: inline-flex; gap: 6px; margin-bottom: 14px; }
.sx-gauge { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.sx-facts { display: grid; } .sx-facts > div { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid color-mix(in srgb, var(--border) 50%, transparent); font-size: 14px; } .sx-facts > div:last-child { border: 0; } .sx-facts span { color: var(--muted); } .sx-facts b { text-align: right; }
.sx-callout { border-radius: 16px; padding: 16px 18px; background: var(--brand-soft); } .sx-callout.warn { background: var(--amber-soft); } .sx-callout.crit { background: var(--red-soft); } .sx-callout.ok { background: var(--green-soft); }
.sx-callout h4 { margin: 0 0 6px; font-size: 14.5px; } .sx-callout ul { margin: 6px 0 0; padding-left: 18px; font-size: 13.5px; } .sx-callout p { margin: 0; font-size: 14px; line-height: 1.5; }
.sx-months { display: flex; gap: 10px; align-items: flex-end; height: 200px; padding-top: 10px; }
.sx-months > div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
.sx-months .b { position: relative; width: 100%; max-width: 44px; flex: 1; display: flex; align-items: flex-end; background: var(--surface-2); border-radius: 10px 10px 4px 4px; }
.sx-months .b i { display: block; width: 100%; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, var(--c1), color-mix(in srgb, var(--c1) 60%, var(--c6))); }
.sx-months .b em { position: absolute; left: -4px; right: -4px; border-top: 2px dashed var(--c3); }
.sx-months span { font-size: 11.5px; color: var(--muted); } .sx-months strong { font-size: 12px; }
.sx-tl { display: grid; }
.sx-tl > div { display: flex; gap: 14px; padding: 9px 0; position: relative; }
.sx-tl i { width: 12px; height: 12px; border-radius: 50%; background: var(--c1); margin-top: 5px; flex: none; box-shadow: 0 0 0 4px var(--brand-soft); }
.sx-tl > div::before { content: ''; position: absolute; left: 5px; top: 24px; bottom: -6px; width: 2px; background: var(--border); } .sx-tl > div:last-child::before { display: none; }
.sx-tl .plan i { background: var(--c2); box-shadow: 0 0 0 4px var(--green-soft); } .sx-tl .alert i { background: var(--c3); box-shadow: 0 0 0 4px var(--amber-soft); } .sx-tl .status i { background: var(--c4); box-shadow: 0 0 0 4px var(--red-soft); }
.sx-tl b { font-size: 14px; font-weight: 600; display: block; } .sx-tl small { color: var(--muted); font-size: 12.5px; }
.sx-money { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; } .sx-money small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; } .sx-money b { font-size: 25px; letter-spacing: -.03em; font-weight: 750; }
.sx-cmp .r { display: grid; align-items: center; gap: 14px; padding: 13px 6px; border-bottom: 1px solid color-mix(in srgb, var(--border) 50%, transparent); }
.sx-cmp .r:last-child { border: 0; } .sx-cmp .l { color: var(--muted); font-size: 13.5px; font-weight: 600; } .sx-cmp .c .t { height: 7px; border-radius: 9px; background: var(--surface-2); margin-top: 6px; overflow: hidden; } .sx-cmp .c .t i { display: block; height: 100%; background: var(--c1); border-radius: 9px; } .sx-cmp .c b { font-size: 15px; }
.sx-alr { display: flex; gap: 14px; align-items: flex-start; padding: 15px 6px; } .sx-alr + .sx-alr { border-top: 1px solid color-mix(in srgb, var(--border) 50%, transparent); }
.sx-alr .d { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex: none; } .sx-alr .d.critical { background: var(--c4); } .sx-alr .d.warning { background: var(--c3); } .sx-alr .d.info { background: var(--c6); }
.sx-alr .b { flex: 1; } .sx-alr .b b { font-size: 14.5px; }
.sx-plan-row { display: grid; grid-template-columns: 150px 1fr 130px 90px; gap: 20px; align-items: center; padding: 16px 6px; } .sx-plan-row + .sx-plan-row { border-top: 1px solid color-mix(in srgb, var(--border) 50%, transparent); }
.sx-dual { display: grid; gap: 7px; } .sx-dual .t { height: 11px; border-radius: 99px; background: var(--surface-2); overflow: hidden; } .sx-dual .t i { display: block; height: 100%; border-radius: 99px; }
.up { color: var(--green); } .down { color: var(--red); }

@media (max-width: 1180px) {
  .sx-g4 { grid-template-columns: repeat(2, 1fr); } .sx-g21, .sx-g12, .sx-g3 { grid-template-columns: 1fr; }
  .sx-co { grid-template-columns: minmax(180px, 2fr) minmax(150px, 1.6fr) 110px 100px; } .sx-co > :nth-child(n+5) { display: none; }
  .sx-plan-row { grid-template-columns: 110px 1fr 110px; } .sx-plan-row > :last-child { display: none; }
}
@media (max-width: 900px) { .main.sx { padding: 26px 20px 70px; } }
@media (max-width: 760px) {
  .sx-g4, .sx-g2 { grid-template-columns: 1fr; } .sx-co { grid-template-columns: 1fr 96px; } .sx-co > :nth-child(n+3) { display: none; }
  .sx-search input { width: 100%; } .sx-money { grid-template-columns: 1fr; }
}

/* ---- Área da empresa (mesmo sistema visual) ---- */
.co-switch { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; padding: 6px 0; }
.co-switch input { position: absolute; opacity: 0; pointer-events: none; }
.co-switch i { flex: none; width: 42px; height: 24px; border-radius: 99px; background: var(--border); position: relative; transition: background .18s; margin-top: 1px; }
.co-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .18s; }
.co-switch input:checked + i { background: var(--brand); } .co-switch input:checked + i::after { transform: translateX(18px); }
.co-switch input:focus-visible + i { outline: 2px solid var(--brand); outline-offset: 2px; }
.co-switch input:disabled + i { opacity: .5; }
.co-switch b { display: block; font-size: 14.5px; } .co-switch small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.co-fold { padding: 18px 22px !important; } .co-fold > summary { cursor: pointer; font-weight: 650; font-size: 14.5px; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.co-fold > summary::-webkit-details-marker { display: none; } .co-fold > summary::after { content: "＋"; color: var(--muted); font-weight: 500; }
.co-fold[open] > summary::after { content: "－"; }
.sx .field label { font-size: 13px; font-weight: 600; } .sx .hint { color: var(--muted); font-size: 12.5px; margin-top: 5px; }
.sx .days { display: flex; gap: 8px; flex-wrap: wrap; } .sx .days label { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--border); border-radius: 99px; padding: 6px 14px; cursor: pointer; }
.sx-callout p { margin: 0; }
@media (max-width: 760px) {
  .sx-row[style*="grid-template-columns"] { grid-template-columns: 1fr auto !important; }
  .sx-row[style*="grid-template-columns"] > :nth-child(n+3) { display: none; }
  .sx-g3, .sx-g21, .sx-g12 { grid-template-columns: 1fr; }
}

/* logo */
.brand.has-logo { padding: 2px 10px 26px; } .brand.has-logo img { display: block; height: auto; max-width: 100%; }
.brand.login-logo { justify-content: center; padding: 0 0 22px; } .brand.login-logo img { width: 240px; }

/* relatórios */
.co-rep-h { margin: 28px 0 12px; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 650; } .co-rep-h:first-child { margin-top: 0; }
.co-feat { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.co-rep { display: flex; flex-direction: column; gap: 6px; color: inherit; transition: transform .15s, box-shadow .15s; } .co-rep:hover { transform: translateY(-2px); text-decoration: none; box-shadow: 0 12px 30px -12px rgba(16,24,40,.28); }
.co-rep .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--brand-soft); display: grid; place-items: center; font-size: 22px; margin-bottom: 8px; }
.co-rep b { font-size: 16.5px; letter-spacing: -.015em; } .co-rep p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.co-rep-cols { columns: 2 380px; column-gap: 20px; } .co-rep-grp { break-inside: avoid; margin-bottom: 20px; padding: 14px 10px 8px !important; }
.co-rep-grp .gh { padding: 4px 14px 10px; font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.co-rep-row { display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 14px; color: inherit; } .co-rep-row:hover { background: var(--surface-2); text-decoration: none; }
.co-rep-row .ic { width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--brand-soft); display: grid; place-items: center; font-size: 18px; }
.co-rep-row .tx { flex: 1; min-width: 0; } .co-rep-row b { display: block; font-size: 14.5px; font-weight: 650; } .co-rep-row small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-rep-row i { font-style: normal; color: var(--muted); font-size: 22px; line-height: 1; } .co-rep-row:hover i { color: var(--brand); }
.co-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 20px; }
.co-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 8px; }
.co-stat { background: var(--surface); border-radius: 18px; padding: 16px 18px; box-shadow: var(--sx-shadow); display: flex; flex-direction: column; gap: 6px; }
.co-stat span { color: var(--muted); font-size: 12.5px; font-weight: 600; line-height: 1.3; } .co-stat b { font-size: 25px; font-weight: 750; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; } .co-stat b.sm { font-size: 15.5px; letter-spacing: -.01em; }
.sx .tablewrap { max-height: 560px; overflow: auto; } .sx .tablewrap th { position: sticky; top: 0; background: var(--surface); z-index: 1; white-space: nowrap; } .sx .tablewrap td { font-size: 13.5px; }
.co-rep-grid { display: none; }

/* ligações ao vivo */
.co-live { display: grid; gap: 14px; }
.co-live-card { display: grid; grid-template-columns: minmax(200px, 1.2fr) minmax(260px, 1.4fr) minmax(180px, 1fr) 84px; gap: 22px; align-items: center; background: var(--surface); border-radius: 20px; padding: 18px 22px; box-shadow: var(--sx-shadow); border-left: 5px solid var(--c6); color: inherit; }
.co-live-card.amber { border-left-color: var(--c3); } .co-live-card.green { border-left-color: var(--c2); } .co-live-card.purple { border-left-color: var(--c5, #8b5cf6); } .co-live-card.ended { border-left-color: var(--border); grid-template-columns: minmax(200px, 1.2fr) 1fr auto; } .co-live-card.ended:hover { text-decoration: none; background: var(--surface-2); }
.co-live-card .who { display: flex; align-items: center; gap: 12px; min-width: 0; } .co-live-card .who b { display: block; font-size: 15px; } .co-live-card .who span:not(.pulse):not(.sx-av) { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-live-card .stat b { display: block; font-size: 16px; letter-spacing: -.01em; } .co-live-card .stat span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; } .co-live-card .go { color: var(--brand); font-weight: 650; font-size: 13.5px; }
.co-live-card .clk { font-size: 26px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; text-align: right; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--c2); flex: none; position: relative; } .pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--c2); opacity: 0; animation: coPulse 1.6s ease-out infinite; }
.co-live-card.amber .pulse, .co-live-card.blue .pulse { background: var(--c3); } .co-live-card.amber .pulse::after, .co-live-card.blue .pulse::after { border-color: var(--c3); }
@keyframes coPulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
.co-steps { display: flex; align-items: center; } .co-steps em { flex: 1; height: 2px; background: var(--border); min-width: 14px; margin: 0 6px 18px; }
.co-steps .st { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.co-steps .st i { width: 14px; height: 14px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--border); }
.co-steps .st.done i { background: var(--c2); border-color: var(--c2); } .co-steps .st.done, .co-steps .st.now { color: var(--text); }
.co-steps .st.now i { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 22%, transparent); animation: coBeat 1.4s ease-in-out infinite; }
@keyframes coBeat { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--brand) 6%, transparent); } }
.co-live-q { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px; background: var(--brand-soft); font-size: 14px; }
@media (max-width: 900px) { .co-live-card { grid-template-columns: 1fr auto; } .co-live-card .co-steps { grid-column: 1 / -1; order: 3; } .co-live-card .stat { grid-column: 1; } .co-live-card.ended { grid-template-columns: 1fr auto; } }
@media (prefers-reduced-motion: reduce) { .pulse::after, .co-steps .st.now i { animation: none; } }
.co-live-card .stat b .sx-pill { display: inline-flex; width: auto; }

/* parar ligações */
.btn.danger { color: var(--red, #dc2626); border-color: color-mix(in srgb, var(--red, #dc2626) 40%, var(--border)); background: color-mix(in srgb, var(--red, #dc2626) 8%, var(--surface)); }
.btn.danger:hover { background: var(--red, #dc2626); color: #fff; border-color: var(--red, #dc2626); }
.co-live-card .end { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.co-live-card:not(.ended) { grid-template-columns: minmax(200px, 1.2fr) minmax(260px, 1.4fr) minmax(170px, 1fr) 110px; }
.co-live-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); padding: 0 4px; } .co-live-h b { color: var(--text); }

/* ================= Celular (app): barra inferior, topo enxuto, toques maiores ================= */
.mtop, .tabbar, .co-sheet { display: none; }
html { -webkit-text-size-adjust: 100%; } body { overscroll-behavior-y: contain; -webkit-tap-highlight-color: transparent; }
@media (max-width: 900px) {
  .shell.has-tabbar .side { display: none; } .shell.has-tabbar .menu-btn { display: none; }
  .shell.has-tabbar .main.sx { padding: 12px 16px calc(96px + env(safe-area-inset-bottom)); }
  .mtop { display: flex; align-items: center; justify-content: space-between; padding: calc(4px + env(safe-area-inset-top)) 2px 10px; position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); margin: 0 -16px 8px; padding-left: 18px; padding-right: 18px; }
  .mtop img { display: block; height: 30px; width: auto; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--border); box-shadow: 0 -8px 30px -12px rgba(16,24,40,.25); }
  .tabbar a, .tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border: 0; background: none; font: inherit; font-size: 10.5px; font-weight: 650; color: var(--muted); border-radius: 14px; min-height: 52px; justify-content: center; }
  .tabbar svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; } .tabbar svg circle { fill: currentColor; stroke: none; }
  .tabbar a:hover { text-decoration: none; } .tabbar .on { color: var(--brand); background: var(--brand-soft); }
  .co-sheet:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 50; } .co-sheet .bg { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
  .co-sheet .box { position: absolute; left: 0; right: 0; bottom: 0; background: var(--surface); border-radius: 26px 26px 0 0; padding: 10px 14px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -20px 60px rgba(0,0,0,.35); animation: coUp .22s ease-out; }
  .co-sheet .grab { display: block; width: 42px; height: 5px; border-radius: 9px; background: var(--border); margin: 4px auto 10px; }
  .co-sheet a { display: flex; align-items: center; gap: 14px; padding: 15px 12px; border-radius: 16px; color: var(--text); font-weight: 650; font-size: 16px; } .co-sheet a:hover { text-decoration: none; background: var(--surface-2); } .co-sheet a.on { color: var(--brand); background: var(--brand-soft); }
  .co-sheet svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  @keyframes coUp { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
  #toast { bottom: calc(92px + env(safe-area-inset-bottom)); }
  .sx .top { flex-direction: column; align-items: stretch; gap: 14px; margin-bottom: 18px; } .sx .top h1 { font-size: 26px; } .sx-head-actions { justify-content: flex-start; }
  .sx-g4 { grid-template-columns: repeat(2, 1fr); gap: 12px; } .sx .card { padding: 18px; border-radius: 18px; } .sx-kpi .num { font-size: 26px; }
  .sx input, .sx select, .sx textarea { font-size: 16px; } .sx .btn { min-height: 44px; } .sx .btn.sm { min-height: 38px; }
  .sx-seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; } .sx-seg button { white-space: nowrap; }
  .sx-tabs { margin-left: -16px; margin-right: -16px; padding: 0 16px; }
  .co-filters { gap: 10px; } .co-filters .sx-select { width: 100%; }
  .co-stats { grid-template-columns: repeat(2, 1fr); } .co-stat b { font-size: 21px; }
  .co-rep-cols { columns: 1; } .co-feat { grid-template-columns: 1fr; }
  .co-live-card:not(.ended) { grid-template-columns: 1fr auto; } .co-live-card .co-steps { grid-column: 1 / -1; order: 3; }
  .sx-search input { width: 100%; }
}
@media (max-width: 380px) { .sx-g4, .co-stats { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .sx-head-actions > .btn.primary:only-child, .sx-head-actions > a.btn.primary:only-child { width: 100%; justify-content: center; } }
