/* Views: login, dashboard, regionals, events, reports, settings, account */

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pre-wrap { white-space: pre-wrap; }
.back-link { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.back-link:hover { color: var(--text); text-decoration: none; }
.select-compact { width: auto; min-width: 120px; min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
.is-inactive { opacity: .62; }

/* ---------------------------------------------------------------- auth */
.auth-screen {
  min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(1200px 600px at 10% -10%, rgba(47, 107, 255, .18), transparent 60%),
              radial-gradient(900px 500px at 110% 110%, rgba(11, 37, 69, .25), transparent 60%), var(--bg);
}
.auth-card { width: 100%; max-width: 420px; padding: 28px 24px; display: flex; flex-direction: column; gap: 18px; }
.auth-brand { display: flex; align-items: center; gap: 14px; }
.auth-brand-name { font-weight: 800; font-size: 1.15rem; }
.auth-title { font-size: 1.35rem; display: flex; align-items: center; gap: 8px; }
.auth-foot { display: flex; align-items: center; gap: 6px; justify-content: center; text-align: center; }
.input-group-plain .input { padding-left: 12px; padding-right: 48px; }
.input-code { font-size: 1.6rem; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; }
.pw-hints { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: .84rem; color: var(--muted); }
.pw-hints li { display: flex; align-items: center; gap: 6px; }
.pw-hints li.ok { color: var(--in); }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.qr-box { display: grid; place-items: center; padding: 12px; background: #fff; border-radius: 12px; border: 1px solid var(--border); }
.qr-box img { width: 220px; height: 220px; image-rendering: pixelated; }

/* ----------------------------------------------------------- dashboard */
.quick-card h2 { font-size: 1.05rem; }
.quick-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
@media (min-width: 720px) { .quick-actions { grid-template-columns: repeat(4, 1fr); } }
.quick-action {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 92px; padding: 12px;
  border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-weight: 650; cursor: pointer;
  transition: transform .12s, border-color .12s, background .12s; text-align: center;
}
.quick-action:hover { border-color: var(--primary); background: var(--primary-soft); }
.quick-action:active { transform: scale(.98); }
.quick-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--primary); color: var(--primary-contrast); }
.quick-icon .icon { width: 22px; height: 22px; }
.quick-anexo .quick-icon { background: #0e9384; color: #fff; }
.quick-texto .quick-icon { background: #7a5af8; color: #fff; }
.quick-manual .quick-icon { background: var(--surface-3); color: var(--text); }
.uf-badge-sm { width: 36px; height: 36px; border-radius: 10px; font-size: .85rem; }
.uf-badge-lg { width: 54px; height: 54px; border-radius: 14px; font-size: 1.15rem; }

/* ------------------------------------------------------------ regionals */
.reg-card { display: flex; flex-direction: column; }
.reg-card-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); color: inherit; }
.reg-card-head:hover { background: var(--surface-2); text-decoration: none; border-radius: var(--radius) var(--radius) 0 0; }
.reg-card .card-body { flex: 1; }
.reg-contacts .chip { max-width: 100%; min-height: 30px; font-size: .8rem; }
.reg-contacts .chip span { overflow: hidden; text-overflow: ellipsis; }
.reg-money { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--border); }
.reg-money > div { display: flex; flex-direction: column; min-width: 0; }
.reg-money strong { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; }
.reg-inactive { opacity: .6; }
.member-row { padding: 12px; box-shadow: none; display: flex; flex-direction: column; gap: 8px; background: var(--surface-2); }
.segmented-compact { display: inline-grid; grid-template-columns: repeat(2, auto); gap: 4px; }
.segmented-compact button { min-height: 40px; padding: 0 14px; }
.event-card .card-body { min-height: 100%; }

/* -------------------------------------------------------------- reports */
.report-section .card-header h2 { font-size: 1rem; }
.report-table { font-size: .85rem; }
.report-table td, .report-table th { padding: 8px 10px; }
.report-table td.sticky-col { min-width: 170px; max-width: 260px; white-space: normal; }
.print-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }

/* --------------------------------------------------------------- shared */
.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 220px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg);
}
.menu-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--text); font-weight: 550; }
.menu-item:hover { background: var(--surface-2); text-decoration: none; }
.about-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.user-actions { justify-content: flex-end; }
@media (max-width: 719px) {
  .user-actions { width: 100%; justify-content: flex-start; }
  .list-item:has(.user-actions) { flex-wrap: wrap; }
}

@media print {
  .report-table { font-size: 8.5pt; }
  .report-table td.sticky-col { position: static; }
  .chart-box { display: none; }
}
