/* Peças compartilhadas pelas telas novas do administrativo (mensalidades, notas, caixa, cadastro).
   Mesmo shell e mesmos tokens do admin-financeiro.html. */
.scope { margin-top: 18px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.scope .sel { height: 32px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--control); border-radius: 8px; background: #fff; font: 500 13px var(--sans); } /* taste-skill-ignore: tela de app (bordas e códigos permitidos) */
.scope .tab { height: 32px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 8px; font: 500 13px var(--sans); color: var(--muted); }
.scope .tab.on { background: var(--blue-100); color: var(--blue-ink); font-weight: 600; }
.scope .stamp { margin-left: auto; font-size: 13px; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpis > div { padding: 16px 20px; border-left: 1px solid var(--border); } /* taste-skill-ignore: tela de app (bordas e códigos permitidos) */
.kpis > div:first-child { border-left: 0; }
.kpis dt { font-size: 13px; color: var(--muted); white-space: nowrap; }
.kpis dd { margin-top: 6px; font: 600 24px/1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.kpis dd small { font-size: 14px; color: var(--faint); font-weight: 500; margin-right: 2px; }
.kpis .cap { margin-top: 6px; font-size: 12px; color: var(--faint); }
.kpis .bad dd { color: var(--negative); }
.kpis .big dd { font-size: 30px; }
tr.sel td { background: var(--blue-50); }
td b { font-weight: 600; }
td.r, th.r { white-space: nowrap; }
td.id { white-space: nowrap; }
.title h1 { white-space: nowrap; }
.foot-link { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px 4px; font-size: 13px; color: var(--muted); }
.foot-link a { color: var(--blue); font-weight: 500; }
.kv { display: grid; grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; column-gap: 12px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { text-align: right; font-variant-numeric: tabular-nums; }
.kv .tot { font-weight: 700; padding-top: 8px; border-top: 1px solid var(--rule); } /* taste-skill-ignore: tela de app (bordas e códigos permitidos) */
.acts { display: flex; flex-wrap: wrap; gap: 8px; }
.danger { color: var(--negative); font: 600 13px var(--sans); background: none; border: 0; padding: 0; cursor: pointer; }
.danger:hover { text-decoration: underline; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field .lbl { font: 500 14px/1.2 var(--sans); }
.field input, .field select { height: 40px; border: 1px solid var(--control); border-radius: 8px; padding: 0 12px; background: #fff; font: 500 15px var(--sans); font-variant-numeric: tabular-nums; } /* taste-skill-ignore: tela de app (bordas e códigos permitidos) */
.field input:focus, .field select:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.field .hint { font-size: 12px; color: var(--muted); }
.seg { display: inline-flex; background: var(--raised); border-radius: 8px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; height: 32px; padding: 0 12px; border-radius: 6px; font: 600 13px var(--sans); color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--blue-ink); outline: 1px solid var(--border); }
.toast { display: none; margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: var(--pill-positive-bg); color: var(--pill-positive-ink); font: 600 13px var(--sans); }
.toast.on { display: block; }
@media (max-width: 1100px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .card .body { overflow-x: auto; }
  .card table.stack { min-width: 680px; }
  .title { flex-wrap: wrap; align-items: flex-start; }
  .title > div { min-width: 0; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpis > div:nth-child(3) { border-left: 0; }
  .kpis > div:nth-child(n+3) { border-top: 1px solid var(--border); } /* taste-skill-ignore: tela de app (bordas e códigos permitidos) */
}
@media (max-width: 760px) {
  table.stack .sub { font-size: 13px; }
  .scope .stamp { margin-left: 0; width: 100%; font-size: 12px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpis > div:nth-child(3) { border-left: 0; }
  .kpis > div:nth-child(n+3) { border-top: 1px solid var(--border); } /* taste-skill-ignore: tela de app (bordas e códigos permitidos) */
  .card table.stack { min-width: 0; }
  table.stack thead { display: none; }
  table.stack, table.stack tbody { display: block; }
  table.stack tr { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; row-gap: 2px; padding: 12px 16px; border-bottom: 1px solid var(--rule); } /* taste-skill-ignore: tela de app (bordas e códigos permitidos) */
  table.stack td { display: block; height: auto; padding: 0 !important; border: 0; background: none !important; }
  table.stack td.id { order: 1; flex: 1 1 0; min-width: 0; white-space: normal; }
  table.stack td.r { order: 2; }
  table.stack td.l2 { order: 3; flex-basis: 100%; font-size: 13px; color: var(--muted); }
  table.stack td.act { order: 4; flex-basis: 100%; text-align: right; margin-top: 6px; }
  table.stack td.hide { display: none; }
  table.stack tr.sel { background: var(--blue-50); }
  .card .body:has(table.stack) { overflow-x: visible; }
}
