/* ============================================================
   SaúdeGRP — Sistema de Suspeição de Doenças - Guarapuava
   style.css  |  Design profissional, responsivo, tablet-first
   ============================================================ */

/* ─── Reset / Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary:    #1a5276;
    --primary-dk: #154360;
    --primary-lt: #2e86c1;
    --secondary:  #2e4053;
    --success:    #1e8449;
    --success-lt: #27ae60;
    --warning:    #b7770d;
    --warning-lt: #e67e22;
    --danger:     #922b21;
    --danger-lt:  #e74c3c;
    --info:       #1a6fa3;
    --info-lt:    #2980b9;
    --muted:      #6c757d;
    --light:      #f4f6f9;
    --white:      #ffffff;
    --border:     #dee2e6;
    --border-dk:  #adb5bd;
    --text:       #212529;
    --text-light: #6c757d;
    --radius:     8px;
    --radius-lg:  12px;
    --shadow:     0 2px 8px rgba(0,0,0,.12);
    --shadow-lg:  0 4px 20px rgba(0,0,0,.18);
    --navbar-h:   60px;
    --font:       'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--light);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
}

a { color: var(--primary-lt); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ─── Offline Bar ───────────────────────────────────────────── */
.offline-bar {
    background: #f39c12;
    color: #fff;
    text-align: center;
    padding: .5rem 1rem;
    font-weight: 600;
    font-size: .9rem;
    position: sticky;
    top: 0;
    z-index: 1100;
    transition: background .4s ease;
}
.offline-bar.hidden { display: none; }

/* ─── Navbar ────────────────────────────────────────────────── */
.navbar {
    background: linear-gradient(135deg, var(--primary-dk) 0%, var(--primary) 100%);
    color: #fff;
    height: var(--navbar-h);
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    gap: 1rem;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-shrink: 0;
}
.navbar-logo { width: 36px; height: 36px; object-fit: contain; border-radius: 50%; background: #fff; padding: 2px; }
.navbar-logo-brand { height: 38px; width: auto; object-fit: contain; border-radius: 6px; }
.navbar-title { font-weight: 700; font-size: 1.05rem; letter-spacing: .3px; white-space: nowrap; }
.navbar-menu {
    display: flex;
    align-items: center;
    gap: .25rem;
    margin-left: auto;
    flex-wrap: nowrap;
}
.nav-link {
    color: rgba(255,255,255,.85);
    padding: .4rem .75rem;
    border-radius: var(--radius);
    font-size: .9rem;
    font-weight: 500;
    transition: background .2s, color .2s;
    white-space: nowrap;
    text-decoration: none;
}
.nav-link:hover, .nav-link.active {
    background: rgba(255,255,255,.18);
    color: #fff;
    text-decoration: none;
}
.nav-link.logout { color: rgba(255,200,200,.9); }
.nav-link.logout:hover { background: rgba(231,76,60,.3); color: #fff; }
.btn-pwa-install {
    background: rgba(46,204,113,.2);
    color: #2ecc71;
    border: 1px solid rgba(46,204,113,.5);
    border-radius: 6px;
    cursor: pointer;
    font-size: .8rem;
    padding: .25rem .6rem;
    margin-right: .25rem;
}
.btn-pwa-install:hover { background: rgba(46,204,113,.35); color: #fff; }
.nav-user {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding-left: .75rem;
    border-left: 1px solid rgba(255,255,255,.25);
}
.nav-username { font-size: .85rem; color: rgba(255,255,255,.75); white-space: nowrap; }
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    margin-left: auto;
    padding: .25rem .5rem;
}

/* ─── Badge perfil ──────────────────────────────────────────── */
.badge-perfil {
    font-size: .7rem;
    padding: .15rem .5rem;
    border-radius: 99px;
    font-weight: 700;
    letter-spacing: .5px;
}
.badge-perfil.admin  { background: #f39c12; color: #fff; }
.badge-perfil.agente { background: #27ae60; color: #fff; }

/* ─── Main content ──────────────────────────────────────────── */
.main-content {
    flex: 1;
    padding: 1.5rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}
.main-content.full-height { max-width: 100%; padding: 0; }

/* ─── Footer ────────────────────────────────────────────────── */
.footer {
    background: var(--primary-dk);
    color: rgba(255,255,255,.65);
    font-size: .78rem;
    padding: .6rem 1.25rem;
}
.footer-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1.5rem;
    flex-wrap: wrap;
    text-align: center;
}
.footer-dev { white-space: nowrap; }
.sync-status-offline { color: #f39c12; font-weight: 600; }

/* ─── Flash messages ────────────────────────────────────────── */
.flash-container { margin-bottom: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 1rem;
    border-radius: var(--radius);
    font-size: .9rem;
    font-weight: 500;
    border-left: 4px solid transparent;
}
.alert-success { background: #d4edda; color: #155724; border-color: var(--success-lt); }
.alert-danger   { background: #f8d7da; color: #721c24; border-color: var(--danger-lt); }
.alert-warning  { background: #fff3cd; color: #856404; border-color: var(--warning-lt); }
.alert-info     { background: #d1ecf1; color: #0c5460; border-color: var(--info-lt); }
.alert-close { background: none; border: none; font-size: 1.2rem; cursor: pointer; opacity: .6; padding: 0 .25rem; }
.alert-close:hover { opacity: 1; }

/* ─── Cards ─────────────────────────────────────────────────── */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.card-header {
    padding: .9rem 1.25rem;
    background: var(--light);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.card-header-blue { background: linear-gradient(135deg, var(--primary-dk), var(--primary)); color: #fff; border-bottom: none; }
.card-header-blue .card-title { color: #fff; }
.card-title { font-size: 1rem; font-weight: 700; margin: 0; }
.card-body { padding: 1.25rem; }
.card-body.p-0 { padding: 0; }

/* ─── Grid helpers ───────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.ml-2 { margin-left: .5rem; }

/* ─── Stats grid ─────────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.stats-grid-3 { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1rem;
    text-align: center;
    box-shadow: var(--shadow);
    border-top: 4px solid transparent;
    transition: transform .15s;
}
.stat-card:hover { transform: translateY(-2px); }
.stat-primary  { border-color: var(--primary-lt); }
.stat-info     { border-color: var(--info-lt); }
.stat-success  { border-color: var(--success-lt); }
.stat-warning  { border-color: var(--warning-lt); }
.stat-danger   { border-color: var(--danger-lt); }
.stat-secondary{ border-color: var(--border-dk); }
.stat-icon { font-size: 1.8rem; margin-bottom: .4rem; }
.stat-value { font-size: 2rem; font-weight: 800; line-height: 1; }
.stat-label { font-size: .8rem; color: var(--text-light); margin-top: .3rem; font-weight: 500; }

/* ─── Page header ────────────────────────────────────────────── */
.page-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.page-title { font-size: 1.5rem; font-weight: 800; color: var(--primary-dk); margin: 0; }
.page-subtitle { font-size: .9rem; color: var(--text-light); margin: .25rem 0 0; width: 100%; }

/* ─── Forms ──────────────────────────────────────────────────── */
.form-label { display: block; font-size: .85rem; font-weight: 600; color: var(--secondary); margin-bottom: .35rem; }
.form-control {
    width: 100%;
    padding: .55rem .85rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: .95rem;
    font-family: var(--font);
    color: var(--text);
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary-lt);
    box-shadow: 0 0 0 3px rgba(46,134,193,.15);
}
.form-control-lg { padding: .75rem 1rem; font-size: 1.05rem; }
.form-control-sm { padding: .35rem .6rem; font-size: .85rem; }
.form-control-xs { padding: .2rem .4rem; font-size: .8rem; }
.form-group { margin-bottom: 1rem; }
.form-hint { font-size: .78rem; color: var(--muted); margin-top: .25rem; display: block; }
.form-row { display: flex; gap: 1rem; }
.col-flex-1 { flex: 1; min-width: 80px; }
.col-flex-2 { flex: 2; }
.col-flex-3 { flex: 3; }
.input-group { display: flex; gap: 0; }
.input-group .form-control { border-radius: var(--radius) 0 0 var(--radius); }
.btn-eye {
    border: 1.5px solid var(--border);
    border-left: none;
    background: var(--light);
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
    padding: 0 .75rem;
    color: var(--muted);
    display: flex;
    align-items: center;
}
.btn-eye:hover { background: var(--border); color: var(--text); }
.form-actions { display: flex; gap: .75rem; margin-top: 1.5rem; }
.filter-form { display: flex; align-items: flex-end; gap: .75rem; flex-wrap: wrap; }
.filter-group { display: flex; flex-direction: column; gap: .3rem; }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .55rem 1.2rem;
    border-radius: var(--radius);
    border: 2px solid transparent;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .1s, box-shadow .2s;
    text-decoration: none;
    white-space: nowrap;
    font-family: var(--font);
    line-height: 1.3;
}
.btn:active { transform: scale(.97); }
.btn:hover  { text-decoration: none; }
.btn-primary   { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dk); box-shadow: 0 3px 10px rgba(26,82,118,.35); }
.btn-success   { background: var(--success-lt); color: #fff; }
.btn-success:hover { background: var(--success); }
.btn-danger    { background: var(--danger-lt); color: #fff; }
.btn-danger:hover  { background: var(--danger); }
.btn-warning   { background: var(--warning-lt); color: #fff; }
.btn-warning:hover { background: var(--warning); }
.btn-info      { background: var(--info-lt); color: #fff; }
.btn-info:hover    { background: var(--info); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-outline   { background: transparent; border-color: var(--border-dk); color: var(--text); }
.btn-outline:hover { background: var(--light); border-color: var(--primary-lt); color: var(--primary); }
.btn-full  { width: 100%; }
.btn-full-mobile { width: 100%; }
.btn-lg    { padding: .75rem 1.5rem; font-size: 1rem; }
.btn-xl    { padding: .9rem 2rem; font-size: 1.1rem; border-radius: var(--radius-lg); }
.btn-sm    { padding: .35rem .8rem; font-size: .82rem; }
.btn-xs    { padding: .2rem .55rem; font-size: .78rem; border-radius: 4px; border-width: 1px; }
.btn-icon  { font-size: 1.2em; }

/* ─── Table ──────────────────────────────────────────────────── */
.table-responsive { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th {
    background: var(--light);
    color: var(--secondary);
    font-weight: 700;
    text-align: left;
    padding: .7rem 1rem;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}
.table td { padding: .65rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:hover { background: rgba(26,82,118,.04); }
.row-danger td  { background: rgba(231,76,60,.06); }
.row-warning td { background: rgba(230,126,34,.06); }
.row-disabled td { opacity: .5; }
.inline-form { display: inline; }

/* ─── Badges ─────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: .2rem .6rem;
    border-radius: 99px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .3px;
    white-space: nowrap;
}
.badge-lg { font-size: .9rem; padding: .3rem 1rem; }
.badge-success { background: #d4edda; color: #155724; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-danger  { background: #f8d7da; color: #721c24; }
.badge-info    { background: #d1ecf1; color: #0c5460; }

/* Suspeição */
.suspeicao-nenhum { background: #e9ecef; color: #495057; }
.suspeicao-baixo  { background: #d4edda; color: #155724; }
.suspeicao-medio  { background: #fff3cd; color: #856404; }
.suspeicao-alto   { background: #f8d7da; color: #721c24; }

/* Status */
.status-pendente    { background: #fff3cd; color: #856404; }
.status-revisado    { background: #d4edda; color: #155724; }
.status-encaminhado { background: #d1ecf1; color: #0c5460; }
.status-descartado  { background: #e9ecef; color: #495057; }

/* ─── Pagination ─────────────────────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    margin-top: 1.25rem;
}
.pag-info { color: var(--text-light); font-size: .9rem; }

/* ─── DL grid ────────────────────────────────────────────────── */
.dl-grid { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; }
.dl-grid dt { font-weight: 600; color: var(--text-light); font-size: .85rem; white-space: nowrap; }
.dl-grid dd { color: var(--text); font-size: .9rem; margin: 0; }

/* ─── Quick actions ──────────────────────────────────────────── */
.quick-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ─── Bar charts ─────────────────────────────────────────────── */
.bar-row { display: flex; align-items: center; gap .75rem; margin-bottom: .75rem; }
.bar-label { min-width: 90px; font-size: .82rem; }
.bar-track { flex: 1; background: var(--border); border-radius: 99px; height: 18px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; min-width: 4px; transition: width .4s ease; }
.bar-nenhum { background: #adb5bd; }
.bar-baixo  { background: var(--success-lt); }
.bar-medio  { background: var(--warning-lt); }
.bar-alto   { background: var(--danger-lt); }
.bar-primary{ background: var(--primary-lt); }
.bar-value  { min-width: 30px; text-align: right; font-weight: 700; font-size: .85rem; }

/* ─── LOGIN PAGE ─────────────────────────────────────────────── */
.login-page {
    background: linear-gradient(135deg, #0d2f4a 0%, #1a5276 55%, #2e86c1 100%);
    min-height: 100vh;
}
.login-page .footer { display: none; }
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem;
}
.login-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 420px;
}
.login-header { text-align: center; margin-bottom: 1.75rem; }
.login-logo { width: 72px; height: 72px; object-fit: contain; margin-bottom: .75rem; }
.login-logo-brand {
    width: 220px; height: auto; object-fit: contain;
    margin-bottom: .75rem;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(13,47,74,.22);
    display: block; margin-left: auto; margin-right: auto;
}
.login-org {
    font-size: .78rem;
    color: var(--text-light);
    letter-spacing: .4px;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: .4rem;
}
.login-title { font-size: 1.4rem; font-weight: 800; color: var(--primary-dk); line-height: 1.2; }
.login-subtitle { font-size: .85rem; color: var(--muted); margin-top: .25rem; }
.login-form { display: flex; flex-direction: column; gap: 1rem; }
.login-info { margin-top: 1.5rem; text-align: center; color: var(--muted); font-size: .8rem; }
.login-hint { margin-top: .3rem; font-size: .75rem; }
.login-footer-info {
    margin-top: 1.25rem;
    padding-top: .75rem;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: .73rem;
    color: var(--text-light);
    letter-spacing: .2px;
}
.login-footer-brand {
    margin-top: .55rem;
    text-align: center;
    font-size: .72rem;
    color: #bdc3c7;
    letter-spacing: .2px;
}
.brand-hubi {
    font-weight: 700;
    color: #e67e22;
    letter-spacing: .5px;
}
.brand-software {
    font-weight: 700;
    color: #27ae60;
    letter-spacing: .5px;
}

/* ─── FORMULÁRIO HANSENÍASE ──────────────────────────────────── */
.form-page { background: #eaf1f8; }
.form-container { max-width: 700px; margin: 0 auto; }
.form-header-card {
    background: linear-gradient(135deg, var(--primary-dk), var(--primary));
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
}
.form-header-logo { display: flex; align-items: center; gap: 1rem; }
.form-logo { width: 52px; height: 52px; object-fit: contain; background: #fff; border-radius: 50%; padding: 4px; }
.form-logo-brand { height: 44px; width: auto; object-fit: contain; border-radius: 6px; }
.form-main-title { font-size: 1.15rem; font-weight: 800; line-height: 1.2; }
.form-subtitle { font-size: .8rem; opacity: .8; margin-top: .2rem; }
.online-badge  { background: rgba(255,255,255,.2); color: #fff; padding: .3rem .8rem; border-radius: 99px; font-size: .8rem; font-weight: 700; }
.offline-badge { background: #e74c3c; color: #fff; padding: .3rem .8rem; border-radius: 99px; font-size: .8rem; font-weight: 700; }

/* Questão list */
.questao-list { display: flex; flex-direction: column; }
.questao-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .9rem 1.25rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background .15s;
    user-select: none;
}
.questao-item:last-child { border-bottom: none; }
.questao-item:nth-child(odd) { background: #f8fafc; }
.questao-item:hover { background: #eef4fa; }
.questao-num {
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 800;
    flex-shrink: 0;
}
.questao-texto { flex: 1; font-size: .95rem; line-height: 1.4; }
.questao-check { flex-shrink: 0; }
.questao-checkbox { display: none; }
.checkbox-visual {
    width: 32px;
    height: 32px;
    border: 2px solid var(--border-dk);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: transparent;
    background: #fff;
    transition: all .15s;
    flex-shrink: 0;
}
.questao-checkbox:checked + .checkbox-visual {
    background: var(--danger-lt);
    border-color: var(--danger-lt);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(231,76,60,.2);
}

/* Suspeição live */
.suspeicao-live { transition: all .3s; }
.suspeicao-card-nenhum { border-top: 4px solid #adb5bd; }
.suspeicao-card-baixo  { border-top: 4px solid var(--success-lt); }
.suspeicao-card-medio  { border-top: 4px solid var(--warning-lt); }
.suspeicao-card-alto   { border-top: 4px solid var(--danger-lt); }
.suspeicao-body { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.suspeicao-info { display: flex; align-items: center; gap: .5rem; font-size: 1rem; }
.suspeicao-label { color: var(--text-light); font-weight: 500; }
.suspeicao-value { font-size: 2rem; font-weight: 900; color: var(--primary); }

/* Sticky actions */
.form-actions-sticky {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    background: #fff;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    position: sticky;
    bottom: 1rem;
    margin-top: 1rem;
}

/* Read-only form */
.questao-item-ro { cursor: default; }
.questao-item-ro:hover { background: inherit; }
.questao-positivo { background: rgba(231,76,60,.07) !important; }
.questao-resposta { font-weight: 700; white-space: nowrap; }

/* Resultado grande */
.resultado-grande {
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
}
.resultado-grande.suspeicao-alto   { background: #fee; }
.resultado-grande.suspeicao-medio  { background: #fff8e1; }
.resultado-grande.suspeicao-baixo  { background: #e8f8ee; }
.resultado-grande.suspeicao-nenhum { background: var(--light); }
.resultado-num { font-size: 3rem; font-weight: 900; line-height: 1; }
.resultado-label { font-size: 1.1rem; font-weight: 800; margin-top: .5rem; }

/* Dashboard agente */
.hero-action {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
}
.sync-banner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }

/* Text helpers */
.text-center  { text-align: center; }
.text-muted   { color: var(--muted); }
.text-warning { color: var(--warning-lt); }

/* ─── RESPONSIVE — Tablet (≤900px) ──────────────────────────── */
@media (max-width: 900px) {
    .navbar-menu {
        display: none;
        position: absolute;
        top: var(--navbar-h);
        left: 0;
        right: 0;
        background: var(--primary-dk);
        flex-direction: column;
        align-items: flex-start;
        padding: .75rem 1rem;
        gap: .25rem;
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }
    .navbar-menu.open { display: flex; }
    .navbar-toggle  { display: block; }
    .nav-user { border-left: none; border-top: 1px solid rgba(255,255,255,.2); padding-top: .5rem; margin-top: .25rem; width: 100%; }
    .nav-link { width: 100%; }
    .main-content { padding: 1rem; }
    .form-row { flex-direction: column; }
    .form-actions-sticky { position: relative; bottom: auto; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .dl-grid { grid-template-columns: 1fr; }
    .dl-grid dt { color: var(--secondary); }
    .quick-actions { flex-direction: column; }
    .quick-actions .btn { width: 100%; }
}

/* ─── Mobile (≤480px) ────────────────────────────────────────── */
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .page-title { font-size: 1.2rem; }
    .login-card { padding: 1.75rem 1.25rem; }
    .table th, .table td { padding: .5rem .7rem; font-size: .82rem; }
    .btn-xl { padding: .8rem 1.25rem; font-size: 1rem; }
    .form-header-card { flex-direction: column; align-items: flex-start; }
    .questao-texto { font-size: .88rem; }
}
