/* ==========================================================================
   Plataforma de Acompanhamento Escolar - Daiana Ramos
   ----------------------------------------------------------------------
   IDENTIDADE VISUAL: todas as cores e fontes ficam nas variáveis abaixo.
   Para combinar 100% com o site principal, basta trocar estes valores.
   ========================================================================== */
:root {
  --brand: #5b4b9a;          /* cor principal */
  --brand-escura: #43377a;
  --brand-suave: #efeafa;
  --acento: #f2a65a;         /* cor de destaque (acolhimento) */
  --verde: #2a9d8f;
  --fundo: #f7f5fb;
  --superficie: #ffffff;
  --texto: #2b2540;
  --muted: #6f6a86;
  --borda: #e4e0ee;
  --perigo: #c9353b;
  --raio: 14px;
  --sombra: 0 1px 2px rgba(43, 37, 64, .06), 0 6px 18px rgba(43, 37, 64, .06);
  --fonte: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --menu-w: 248px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--fonte); color: var(--texto); background: var(--fundo); font-size: 16px; line-height: 1.55; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; color: var(--texto); }
h1 { font-size: 1.65rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
a { color: var(--brand); }
a:hover { color: var(--brand-escura); }
img { max-width: 100%; }
.muted { color: var(--muted); }
.centro { text-align: center; }
.direita { text-align: right; }
.pular { position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0; }
.pular:focus { left: 0; }
:focus-visible { outline: 3px solid var(--acento); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------ Topo/menu --- */
.topo { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; height: 62px; padding: 0 20px; background: var(--superficie); border-bottom: 1px solid var(--borda); }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--texto); }
.logo-marca { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--brand), #7b63c9); color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .5px; flex: none; }
.marca-texto { display: flex; flex-direction: column; line-height: 1.15; }
.marca-texto strong { font-size: 1rem; }
.marca-texto small, .auth-marca small { color: var(--muted); font-size: .78rem; }
.topo-dir { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; background: none; border: 0; padding: 6px; color: var(--texto); cursor: pointer; border-radius: 8px; }
.sino { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--texto); }
.sino:hover { background: var(--brand-suave); }
.sino-contador { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--perigo); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.usuario-chip { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--texto); padding: 4px 10px 4px 4px; border-radius: 999px; }
.usuario-chip:hover { background: var(--brand-suave); }
.avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar-ini { display: grid; place-items: center; background: var(--brand-suave); color: var(--brand); font-weight: 700; font-size: 13px; }
.avatar-grande { width: 96px; height: 96px; font-size: 32px; }

.estrutura { display: flex; align-items: flex-start; min-height: calc(100vh - 62px); }
.menu { width: var(--menu-w); flex: none; position: sticky; top: 62px; height: calc(100vh - 62px); overflow-y: auto; background: var(--superficie); border-right: 1px solid var(--borda); padding: 16px 12px; display: flex; flex-direction: column; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu > ul > li > a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 2px; border-radius: 10px; color: var(--texto); text-decoration: none; font-weight: 500; }
.menu > ul > li > a:hover { background: var(--brand-suave); }
.menu > ul > li > a.ativo { background: var(--brand); color: #fff; }
.ico { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.submenu { margin: 2px 0 6px 30px !important; border-left: 2px solid var(--borda); }
.submenu a { display: block; padding: 6px 12px; color: var(--muted); text-decoration: none; font-size: .92rem; }
.submenu a.ativo, .submenu a:hover { color: var(--brand); font-weight: 600; }
.menu-rodape { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--borda); display: grid; gap: 6px; }
.menu-link-sec { font-size: .88rem; color: var(--muted); text-decoration: none; padding: 4px 12px; }
.menu-link-sec:hover { color: var(--brand); }
.menu-fundo { display: none; }

.conteudo { flex: 1; min-width: 0; padding: 28px 32px 60px; max-width: 1180px; }

/* ------------------------------------------------------------ Componentes --- */
.pagina-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.pagina-topo h1 { margin-bottom: 4px; }
.pagina-topo p { margin: 0; }
.acoes { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.migalhas { font-size: .88rem; margin-bottom: 8px; color: var(--muted); }
.migalhas a { color: var(--muted); }

.card { background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio); box-shadow: var(--sombra); padding: 20px; margin-bottom: 20px; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card-cabeca { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.card-cabeca h2 { margin: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--borda); background: var(--superficie); color: var(--texto); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; min-height: 42px; transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { background: var(--brand-suave); border-color: #cfc6ea; color: var(--texto); }
.btn:active { transform: translateY(1px); }
.btn-primario { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primario:hover { background: var(--brand-escura); border-color: var(--brand-escura); color: #fff; }
.btn-destaque { background: var(--acento); border-color: var(--acento); color: #3d2600; }
.btn-destaque:hover { background: #e79640; border-color: #e79640; color: #3d2600; }
.btn-perigo { color: var(--perigo); border-color: #f1c4c7; }
.btn-perigo:hover { background: #fdecec; border-color: var(--perigo); color: var(--perigo); }
.btn-sm { padding: 6px 12px; min-height: 34px; font-size: .9rem; }
.btn-bloco { width: 100%; }
.btn-sair { color: var(--muted); }
.link-btn { background: none; border: 0; color: var(--brand); font: inherit; cursor: pointer; text-decoration: underline; padding: 4px; }
.inline-form { display: inline; }

.alerta { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; border: 1px solid; font-size: .96rem; }
.alerta-ok { background: #e7f7ef; border-color: #b6e3cd; color: #17663f; }
.alerta-erro { background: #fdecec; border-color: #f4c2c5; color: #8f2126; }
.alerta-info { background: #eaf1ff; border-color: #c4d6f7; color: #24448f; }
.alerta-aviso { background: #fff6dc; border-color: #f0dc9a; color: #6d5200; }
.alerta ul { margin: 6px 0 0; padding-left: 20px; }

/* Badges de status */
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px 3px 9px; border-radius: 999px; font-size: .82rem; font-weight: 600; white-space: nowrap; }
.badge .dot { width: 9px; height: 9px; border-radius: 50%; }
.badge-pendente { background: #fff4cc; color: #725400; } .badge-pendente .dot { background: #f5b301; }
.badge-andamento { background: #e4eeff; color: #1d4b9c; } .badge-andamento .dot { background: #3b82f6; }
.badge-respondido { background: #e0f5ea; color: #14623b; } .badge-respondido .dot { background: #22a06b; }
.badge-arquivado { background: #eceef2; color: #454b5a; } .badge-arquivado .dot { background: #fff; border: 2px solid #9aa0ab; }
.badge-expirado { background: #fde6e7; color: #9b2227; } .badge-expirado .dot { background: #e5484d; }

/* Grade de indicadores */
.grade-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 26px; }
.stat { display: block; text-decoration: none; color: var(--texto); background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio); padding: 18px 18px 16px; box-shadow: var(--sombra); border-top: 5px solid var(--borda); transition: transform .12s, box-shadow .12s; }
a.stat:hover { transform: translateY(-2px); color: var(--texto); box-shadow: 0 8px 22px rgba(43,37,64,.12); }
.stat-num { display: block; font-size: 2.3rem; font-weight: 700; line-height: 1.1; }
.stat-rot { font-weight: 600; }
.stat small { display: block; color: var(--muted); margin-top: 2px; }
.stat-pendente { border-top-color: #f5b301; } .stat-andamento { border-top-color: #3b82f6; }
.stat-respondido { border-top-color: #22a06b; } .stat-historico { border-top-color: var(--brand); }
.stat-expirado { border-top-color: #e5484d; } .stat-neutro { border-top-color: var(--brand); }

/* Cards de questionário */
.grade-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.q-card { background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio); padding: 18px; box-shadow: var(--sombra); display: flex; flex-direction: column; gap: 10px; }
.q-card h3 { margin: 0; font-size: 1.08rem; }
.q-card .objetivo { color: var(--muted); font-size: .94rem; margin: 0; }
.q-meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .92rem; }
.q-meta li { display: flex; gap: 6px; }
.q-meta b { font-weight: 600; min-width: 116px; color: var(--muted); }
.q-card-rodape { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 6px; flex-wrap: wrap; }
.vazio { text-align: center; padding: 34px 16px; color: var(--muted); }
.vazio strong { display: block; color: var(--texto); font-size: 1.1rem; margin-bottom: 4px; }

.abas { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.aba { padding: 8px 16px; border-radius: 999px; background: var(--superficie); border: 1px solid var(--borda); text-decoration: none; color: var(--texto); font-weight: 600; font-size: .94rem; }
.aba.ativa { background: var(--brand); border-color: var(--brand); color: #fff; }
.aba .n { opacity: .75; font-weight: 500; margin-left: 4px; }

/* Tabelas */
.tabela-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--borda); border-radius: var(--raio); background: var(--superficie); box-shadow: var(--sombra); margin-bottom: 20px; }
table.tabela { width: 100%; border-collapse: collapse; min-width: 640px; }
.tabela th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 12px 14px; background: #faf9fd; border-bottom: 1px solid var(--borda); white-space: nowrap; }
.tabela td { padding: 12px 14px; border-bottom: 1px solid var(--borda); vertical-align: middle; }
.tabela tr:last-child td { border-bottom: 0; }
.tabela tbody tr:hover { background: #fcfbfe; }
.tabela .acoes-cel { white-space: nowrap; text-align: right; }
.tabela small { color: var(--muted); }

/* Formulários */
.campo-grupo { margin-bottom: 16px; }
label, .rotulo { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.campo { width: 100%; padding: 10px 12px; border: 1px solid #cfc9e0; border-radius: 10px; font: inherit; color: var(--texto); background: #fff; min-height: 44px; }
.campo:focus { outline: 3px solid rgba(91,75,154,.25); border-color: var(--brand); }
textarea.campo { min-height: 100px; resize: vertical; }
select.campo { appearance: auto; }
.grade-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 18px; }
.senha-wrap { position: relative; }
.senha-wrap .campo { padding-right: 84px; }
.ver-senha { position: absolute; right: 6px; top: 6px; height: 32px; border: 0; background: var(--brand-suave); color: var(--brand); border-radius: 8px; padding: 0 10px; font-weight: 600; cursor: pointer; font-size: .85rem; }
.filtros { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: end; }
.filtros .campo-grupo { margin: 0; }
.filtros label { font-size: .85rem; }
.filtros-acoes { display: flex; gap: 8px; }
.lista-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; max-height: 320px; overflow: auto; padding: 4px; border: 1px solid var(--borda); border-radius: 10px; background: #fcfbfe; }
.lista-checks .opcao { margin: 0; background: #fff; }
.busca-rapida { margin-bottom: 8px; }
.dica { font-size: .88rem; color: var(--muted); margin-top: 4px; }

/* Opções (radio/checkbox) e escala */
.opcoes { display: grid; gap: 8px; }
.opcoes-linha { grid-template-columns: repeat(auto-fit, minmax(120px, 200px)); }
.opcao { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--borda); border-radius: 10px; background: #fff; cursor: pointer; font-weight: 500; margin: 0; min-height: 46px; }
.opcao:hover { border-color: var(--brand); background: var(--brand-suave); }
.opcao input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; margin: 0; }
.opcao:has(input:checked) { border-color: var(--brand); background: var(--brand-suave); }
.escala { display: flex; gap: 8px; flex-wrap: wrap; }
.esc-item { margin: 0; cursor: pointer; }
.esc-item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.esc-item span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; border: 1px solid #cfc9e0; background: #fff; font-weight: 700; font-size: 1.1rem; }
.esc-item:hover span { border-color: var(--brand); background: var(--brand-suave); }
.esc-item input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.esc-item input:focus-visible + span { outline: 3px solid var(--acento); outline-offset: 2px; }
.escala-rotulos { display: flex; justify-content: space-between; color: var(--muted); font-size: .86rem; margin-top: 6px; max-width: 420px; }

/* Formulário de resposta */
.q-cabeca { border-left: 6px solid var(--brand); }
.q-cabeca dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 12px 0 0; }
.q-cabeca dt { color: var(--muted); font-weight: 600; }
.q-cabeca dd { margin: 0; }
.progresso { position: sticky; top: 62px; z-index: 10; background: var(--fundo); padding: 10px 0 8px; margin-bottom: 8px; }
.progresso-barra { height: 8px; background: #e4e0ee; border-radius: 99px; overflow: hidden; }
.progresso-barra i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--verde)); transition: width .25s; }
.progresso small { color: var(--muted); }
.secao-titulo { margin: 28px 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--brand-suave); color: var(--brand-escura); }
.pergunta { padding: 18px 0; border-bottom: 1px solid var(--borda); }
.pergunta:last-child { border-bottom: 0; }
.pergunta-enun { font-weight: 600; margin-bottom: 4px; display: block; }
.obrig { color: var(--perigo); margin-left: 3px; }
.pergunta.com-erro { background: #fff5f5; border-radius: 10px; padding-left: 12px; padding-right: 12px; }
.erro-msg { color: var(--perigo); font-size: .9rem; margin-top: 6px; }
.barra-acoes { display: flex; gap: 10px; flex-wrap: wrap; justify-content: space-between; align-items: center; margin-top: 22px; }
.resposta-valor { padding: 10px 14px; background: #faf9fd; border-radius: 10px; border: 1px solid var(--borda); }
.lista-resp { margin: 0; padding-left: 20px; }
.confirmacao { text-align: center; padding: 34px 20px; }
.confirmacao .check { width: 76px; height: 76px; border-radius: 50%; background: #e0f5ea; color: #14623b; display: grid; place-items: center; margin: 0 auto 14px; font-size: 40px; }

/* Perfil / listas */
.perfil-topo { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--brand-suave); color: var(--brand-escura); font-size: .88rem; font-weight: 600; }
.lista-simples { list-style: none; margin: 0; padding: 0; }
.lista-simples li { padding: 10px 0; border-bottom: 1px solid var(--borda); display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.lista-simples li:last-child { border-bottom: 0; }
.notif { display: block; text-decoration: none; color: var(--texto); padding: 14px 16px; border-bottom: 1px solid var(--borda); position: relative; padding-left: 34px; }
.notif:hover { background: var(--brand-suave); color: var(--texto); }
.notif.nao-lida::before { content: ""; position: absolute; left: 14px; top: 22px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.notif strong { display: block; }
.notif small { color: var(--muted); }
.paginacao { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 20px; }
.paginacao a, .paginacao span { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--borda); background: #fff; text-decoration: none; }
.paginacao .atual { background: var(--brand); color: #fff; border-color: var(--brand); }
.senha-temp { font-family: ui-monospace, Consolas, monospace; font-size: 1.4rem; background: #fff; border: 2px dashed var(--acento); border-radius: 10px; padding: 10px 16px; display: inline-block; letter-spacing: .06em; user-select: all; }

/* Barras de relatório */
.barra-h { display: flex; align-items: center; gap: 10px; margin: 6px 0; font-size: .92rem; }
.barra-h .rot { flex: 0 0 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barra-h .trilho { flex: 1; height: 12px; background: #ebe7f5; border-radius: 99px; overflow: hidden; }
.barra-h .trilho i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.barra-h .val { flex: 0 0 76px; text-align: right; color: var(--muted); }

/* Construtor de questionários */
.cons-secao { border: 1px solid var(--borda); border-radius: var(--raio); background: #fcfbfe; padding: 16px; margin-bottom: 16px; }
.cons-secao-cab { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 12px; }
.cons-secao-cab .campo { flex: 1; min-width: 200px; font-weight: 600; }
.cons-perg { background: #fff; border: 1px solid var(--borda); border-radius: 12px; padding: 14px; margin-bottom: 10px; }
.cons-perg-cab { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.cons-perg-cab select { max-width: 280px; }
.cons-linha { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 8px; }
.cons-mini { display: flex; gap: 4px; margin-left: auto; }
.btn-ico { width: 34px; height: 34px; padding: 0; min-height: 34px; }
.cons-obrig { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; margin: 0; }
.cons-obrig input { width: 18px; height: 18px; accent-color: var(--brand); }
.travado { opacity: .6; pointer-events: none; }

/* Telas sem menu */
.tela-simples { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(1000px 500px at 10% -10%, #e6def8 0, transparent 60%), radial-gradient(800px 400px at 100% 110%, #fde9d3 0, transparent 55%), var(--fundo); }
.auth-wrap { width: 100%; max-width: 440px; }
.auth-marca { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 20px; }
.auth-marca strong { display: block; font-size: 1.15rem; line-height: 1.1; }
.auth-card { background: var(--superficie); border: 1px solid var(--borda); border-radius: 18px; padding: 28px; box-shadow: 0 10px 40px rgba(67,55,122,.12); }
.auth-card h1 { font-size: 1.45rem; }
.auth-card-largo { max-width: 640px; }
.auth-wrap:has(.auth-card-largo) { max-width: 640px; }
.auth-wrap:has(.menu-central) { max-width: 720px; }
.auth-wrap:has(.pagina-larga) { max-width: 780px; }

/* ------------------------------------------------------- Agenda de atendimentos --- */
.agenda-semana { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.agenda-dia { background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio); padding: 12px; }
.agenda-dia.hoje { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-suave); }
.agenda-dia h3 { display: flex; justify-content: space-between; align-items: baseline; font-size: .95rem; margin-bottom: 10px; }
.agenda-vazio { color: var(--muted); font-size: .85rem; text-align: center; padding: 14px 4px; }
.at-card { background: var(--fundo); border: 1px solid var(--borda); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.at-card .hora { font-weight: 700; font-size: .85rem; color: var(--muted); }
.at-card .nome { font-weight: 700; margin: 2px 0; }
.at-card .resp { color: var(--muted); font-size: .82rem; }
.at-card .valor { font-weight: 700; color: var(--brand); margin-top: 4px; }
.at-card .acoes { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.at-card .acoes form { display: inline; }
/* Horários livres (13h–18h) */
.horarios-resumo { margin: 0 0 14px; }
.horarios-total { color: var(--muted); font-size: .85rem; margin: -4px 0 10px; }
.agenda-dia.passado { opacity: .6; }
.hr-bloco { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; font-size: .88rem; }
.hr-bloco .hr-hora { font-weight: 700; }
.hr-bloco .hr-nome { flex: 1 1 auto; }
.hr-bloco .btn { margin-left: auto; }
.hr-ocupado { background: var(--brand-suave); border: 1px solid var(--borda); }
.hr-ocupado .hr-hora { color: var(--brand-escura); }
.hr-livre { background: #e9f7f2; border: 1px dashed var(--verde); color: #17614f; }
.hr-curto { background: var(--fundo); border-color: var(--borda); color: var(--muted); }
@media (max-width: 980px) {
  .agenda-semana { grid-template-columns: 1fr; }
}
.menu-central h1 { margin-bottom: 4px; }
.menu-central .grade-stats { margin: 22px 0 26px; }
.menu-central .stat { background: var(--superficie); }
.auth-rodape { text-align: center; margin-top: 18px; font-size: .92rem; }
.termo-texto { max-height: 300px; overflow: auto; border: 1px solid var(--borda); border-radius: 10px; padding: 14px; background: #faf9fd; margin-bottom: 16px; font-size: .95rem; }

/* ------------------------------------------------------------ Responsivo --- */
@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; }
  .menu { position: fixed; z-index: 50; left: 0; top: 62px; bottom: 0; height: auto; transform: translateX(-102%); transition: transform .2s; box-shadow: 8px 0 30px rgba(0,0,0,.15); width: min(84vw, 300px); }
  body.menu-aberto .menu { transform: none; }
  body.menu-aberto .menu-fundo { display: block !important; position: fixed; inset: 62px 0 0 0; background: rgba(30,20,60,.35); z-index: 40; }
  .conteudo { padding: 20px 16px 50px; }
  .usuario-nome { display: none; }
}
@media (max-width: 560px) {
  h1 { font-size: 1.4rem; }
  .card { padding: 16px; }
  .grade-cards { grid-template-columns: 1fr; }
  .q-meta b { min-width: 96px; }
  .q-cabeca dl { grid-template-columns: 1fr; }
  .barra-acoes .btn { flex: 1 1 100%; }
  .barra-h .rot { flex-basis: 110px; }
  .esc-item span { width: 46px; height: 46px; }
  .marca-texto small { display: none; }
}

/* Impressão / "Salvar como PDF" */
@media print {
  body { background: #fff; }
  .topo, .menu, .menu-fundo, .no-print, .pular, .acoes, .btn { display: none !important; }
  .conteudo { padding: 0; max-width: none; }
  .card, .tabela-wrap { box-shadow: none; border-color: #ccc; }
  .estrutura { display: block; }
  a { color: #000; text-decoration: none; }
}
