:root {
  --ink: #1C2321; --muted: #5B6461; --linha: #E1E4E1; --linha2: #EEF0EE; --fundo: #F5F6F4; --branco: #FFFFFF;
  --teal: #0F5C63; --teal-escuro: #0A4247; --teal-claro: #E3F0EF; --menu: #10302F; --menu-ativo: #1F4A48; --menu-txt: #D5E2E0; --menu-sub: #B9CFCC;
  --verde: #1F6B45; --verde-claro: #E4F2EA; --verm: #A3361B; --verm-claro: #FBE9E3; --amar: #6E5300; --amar-claro: #FBF3D9;
  --roxo: #4B3592; --roxo-claro: #EEE9F8; --ouro: #F2C14E;
}
.aw, .aw * { box-sizing: border-box; }
.aw { margin: 0; font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--fundo); font-size: 15px; }
.aw a { color: var(--teal); }
.aw a:hover { color: var(--teal-escuro); }
.aw button, .aw input, .aw select, .aw textarea { font: inherit; color: inherit; }
.aw h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.aw h2 { margin: 0; font-size: 16px; font-weight: 800; }
.aw .carregando { padding: 40px; color: var(--muted); }
.aw .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* estrutura */
.aw-shell .shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.aw-shell .menu { flex: 1 1 220px; max-width: 100%; background: var(--menu); color: #F2F5F4; padding: 24px 16px; display: flex; flex-direction: column; gap: 24px; }
.aw-shell .marca { display: flex; align-items: center; gap: 12px; padding: 0 8px; }
.aw .logo, .aw-shell .logo { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; background: var(--ouro); color: var(--menu); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.aw-shell .marca strong { display: block; font-size: 15px; }
.aw-shell .marca span { font-size: 12px; color: var(--menu-sub); }
.aw-shell .menu nav { display: flex; flex-direction: column; gap: 4px; }
.aw-shell .menu nav a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--menu-txt); text-decoration: none; font-size: 14px; font-weight: 600; }
.aw-shell .menu nav a:hover { background: #18403E; color: #fff; }
.aw-shell .menu nav a.ativo { background: var(--menu-ativo); color: #fff; font-weight: 700; }
.aw-shell .menu .badge { font-size: 12px; background: var(--ouro); color: var(--menu); border-radius: 999px; padding: 2px 8px; font-weight: 800; }
.aw-shell .menu .badge.cinza { background: #2E5E5B; color: #fff; }
.aw-shell .ponto { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
.aw-shell .ponto::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: currentColor; }
.aw-shell .ponto.on { color: #9FD8B8; }
.aw-shell .ponto.off { color: #F4A58A; }
.aw-shell .ponto.sim { color: var(--menu-sub); }
.aw-shell .usuario { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 12px 8px 0; border-top: 1px solid #2E5E5B; }
.aw-shell .usuario .av { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 999px; background: var(--ouro); color: var(--menu); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.aw-shell .usuario .quem { flex: 1 1 120px; min-width: 0; }
.aw-shell .usuario b { display: block; font-size: 13px; }
.aw-shell .usuario .quem span { font-size: 12px; color: var(--menu-sub); }
.aw-shell .usuario .botoes { flex: 1 1 100%; display: flex; gap: 12px; padding-left: 38px; }
.aw-shell .usuario button { background: none; border: 0; color: var(--menu-sub); font-size: 12px; font-weight: 700; cursor: pointer; padding: 4px; text-decoration: underline; }
.aw-shell .conteudo { flex: 999 1 560px; min-width: 0; padding: 32px 40px 64px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 700px) {
.aw-shell .conteudo { padding: 20px 16px 48px; }
.aw h1 { font-size: 24px; }
}
/* cabeçalho de página */
.aw .cab { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.aw .cab .tit { display: flex; flex-direction: column; gap: 6px; }
.aw .olho { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.aw .sub { font-size: 14px; color: var(--muted); }
.aw .acoes { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
/* botões e campos */
.aw .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 8px; border: 1px solid #C9CFCB; background: var(--branco); color: var(--ink); font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; }
.aw .btn:hover { border-color: #9AA39F; color: var(--ink); }
.aw .btn.pri { background: var(--teal); border-color: var(--teal); color: #fff; }
.aw .btn.pri:hover { background: var(--teal-escuro); color: #fff; }
.aw .btn.ok { background: var(--verde-claro); border-color: var(--verde); color: var(--verde); }
.aw .btn.perigo { color: var(--verm); }
.aw .btn.peq { min-height: 34px; padding: 0 10px; font-size: 13px; }
.aw .btn:disabled { opacity: .55; cursor: not-allowed; }
.aw .campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.aw .campo label, .aw .campo .rot { font-size: 13px; font-weight: 700; }
.aw .campo input, .aw .campo select, .aw .campo textarea, .aw input.in, .aw select.in { min-height: 44px; padding: 0 12px; border-radius: 8px; border: 1px solid #C9CFCB; background: #fff; font-size: 14px; min-width: 0; width: 100%; }
.aw .campo textarea { padding: 10px 12px; line-height: 1.5; resize: vertical; }
.aw input:focus, .aw select:focus, .aw textarea:focus, .aw .btn:focus-visible, .aw a:focus-visible, .aw button:focus-visible { outline: 3px solid #86C5C0; outline-offset: 1px; }
.aw .linha-campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
/* blocos */
.aw .card { background: var(--branco); border: 1px solid var(--linha); border-radius: 12px; }
.aw .card.pad { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.aw .card .topo { padding: 14px 18px; border-bottom: 1px solid var(--linha); display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.aw .kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.aw .kpi { background: #fff; border: 1px solid var(--linha); border-radius: 12px; padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; }
.aw .kpi span { font-size: 13px; font-weight: 700; color: var(--muted); }
.aw .kpi strong { font-size: 28px; font-weight: 800; }
.aw .kpi.verde { background: var(--verde-claro); border-color: transparent; }
.aw .kpi.verde span { color: var(--verde); }
.aw .kpi.verm { background: var(--verm-claro); border-color: transparent; }
.aw .kpi.verm span { color: var(--verm); }
.aw .kpi.amar { background: var(--amar-claro); border-color: transparent; }
.aw .kpi.amar span { color: var(--amar); }
.aw .kpi.teal { background: var(--teal-claro); border-color: transparent; }
.aw .kpi.teal span { color: var(--teal); }
.aw .kpi.escuro { background: var(--menu); border-color: transparent; color: #fff; }
.aw .kpi.escuro span { color: var(--menu-sub); }
.aw .duas { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.aw .duas > .larga { flex: 999 1 460px; min-width: 0; }
.aw .duas > .estreita { flex: 1 1 300px; min-width: 0; }
.aw .grade-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.aw .vazio { padding: 18px; color: var(--muted); font-size: 14px; }
.aw .aviso-amarelo { background: var(--amar-claro); color: #5C4500; border-radius: 10px; padding: 12px 16px; font-size: 14px; line-height: 1.5; }
.aw .aviso-verde { background: var(--verde-claro); color: #17533A; border-radius: 10px; padding: 12px 16px; font-size: 14px; line-height: 1.5; }
.aw .aviso-verm { background: var(--verm-claro); color: #8A2D16; border-radius: 10px; padding: 12px 16px; font-size: 14px; line-height: 1.5; }
/* listas e tabelas */
.aw .lista { list-style: none; margin: 0; padding: 0; }
.aw .lista li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 16px; min-height: 48px; border-bottom: 1px solid var(--linha2); }
.aw .lista li:last-child { border-bottom: 0; }
.aw .nome { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.aw .mini { font-size: 12px; color: var(--muted); }
.aw .tabela-caixa { overflow-x: auto; }
.aw table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.aw table.t th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; padding: 10px 16px; background: #FAFBFA; border-bottom: 1px solid var(--linha); white-space: nowrap; }
.aw table.t td { padding: 10px 16px; border-bottom: 1px solid var(--linha2); vertical-align: middle; }
.aw table.t tr.sel td { background: var(--teal-claro); }
.aw table.t tr.clica { cursor: pointer; }
.aw table.t tr.clica:hover td { background: #F3F8F7; }
.aw .num { text-align: right; font-variant-numeric: tabular-nums; }
/* selos */
.aw .pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.aw .pill.vai { background: var(--verde-claro); color: var(--verde); }
.aw .pill.nao { background: var(--verm-claro); color: var(--verm); }
.aw .pill.sem { background: var(--amar-claro); color: var(--amar); }
.aw .pill.pend { background: #F0F1EF; color: #4A524F; }
.aw .pill.forte { background: #C2410C; color: #fff; }
.aw .tag { font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 4px; letter-spacing: .02em; }
.aw .tag.repo { color: var(--roxo); background: var(--roxo-claro); }
.aw .tag.cod { color: var(--teal); background: var(--teal-claro); font-size: 12px; padding: 3px 8px; border-radius: 6px; }
.aw .tag.cheia { color: #fff; background: #6B7470; }
.aw .tag.vaga { color: #fff; background: var(--teal); }
.aw .chip { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid #C9CFCB; background: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
.aw .chip.on { background: var(--menu); border-color: var(--menu); color: #fff; }
.aw .abas { display: flex; gap: 4px; border-bottom: 1px solid #D9DDDA; flex-wrap: wrap; }
.aw .abas button { min-height: 44px; padding: 0 16px; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 800; cursor: pointer; }
.aw .abas button.on { border-bottom-color: var(--teal); color: var(--teal); }
/* grade */
.aw .grade { min-width: 760px; display: grid; grid-template-columns: 110px repeat(3, minmax(0, 1fr)); }
.aw .grade > div { border-bottom: 1px solid var(--linha); }
.aw .grade .gh { padding: 12px 16px; background: #FAFBFA; font-size: 13px; font-weight: 800; border-left: 1px solid var(--linha); }
.aw .grade .gh:first-child { border-left: 0; }
.aw .grade .gd { padding: 12px 16px; display: flex; flex-direction: column; justify-content: center; }
.aw .grade .gc { padding: 8px; border-left: 1px solid var(--linha); display: flex; gap: 8px; min-height: 92px; }
.aw .tcard { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 8px; background: #F3F8F7; border: 1px solid #D5E5E3; color: var(--ink); text-decoration: none; }
.aw .tcard:hover { border-color: var(--teal); color: var(--ink); }
.aw .tcard .nomes { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aw .semturma { flex: 1; display: flex; align-items: center; justify-content: center; border: 1px dashed #D9DDDA; border-radius: 8px; font-size: 12px; color: #6B7470; }
/* reposições */
.aw .vaga-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; text-align: left; padding: 14px 16px; border-radius: 12px; border: 2px solid var(--linha); background: #fff; cursor: pointer; }
.aw .vaga-card.on { border-color: var(--teal); box-shadow: 0 2px 8px rgba(16,48,47,.08); }
.aw .cand { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 10px; border: 1px solid var(--linha); flex-wrap: wrap; }
.aw .pos { width: 36px; height: 36px; border-radius: 999px; background: var(--menu); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.aw .etq { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: #F3F4F2; }
.aw .etq.roxo { background: var(--roxo-claro); color: var(--roxo); }
.aw .etq.verde { background: var(--verde-claro); color: var(--verde); }
.aw .balao { background: #fff; border-radius: 10px 10px 10px 2px; padding: 10px 12px; font-size: 14px; line-height: 1.45; white-space: pre-line; max-width: 560px; }
.aw .zap { background: #ECE5DA; border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
/* disponibilidade */
.aw .disp { display: grid; grid-template-columns: 56px repeat(3, minmax(0, 1fr)); gap: 6px; font-size: 12px; align-items: center; }
.aw .disp button { min-height: 34px; border-radius: 6px; border: 1px solid #D9DDDA; background: #fff; color: #6B7470; font-weight: 800; cursor: pointer; font-size: 12px; }
.aw .disp button.on { background: var(--teal); border-color: var(--teal); color: #fff; }
/* login */
.aw .login-fundo { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 16px; background: var(--menu); }
.aw .login { width: 100%; max-width: 400px; background: #fff; border-radius: 16px; padding: 36px 32px; display: flex; flex-direction: column; gap: 20px; }
.aw .login .marca-l { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.aw .login .logo { width: 60px; height: 60px; font-size: 18px; border-radius: 14px; }
/* celular da professora */
.aw .cel { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--fundo); display: flex; flex-direction: column; }
.aw .cel header { background: var(--menu); color: #fff; padding: 22px 20px; display: flex; flex-direction: column; gap: 6px; }
.aw .cel header a, .aw .cel header button.link { color: var(--menu-sub); font-weight: 700; font-size: 14px; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.aw .cel header h1 { font-size: 24px; color: #fff; }
.aw .cel .corpo { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.aw .turma-cel { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 14px; background: #fff; border: 1px solid var(--linha); color: var(--ink); text-decoration: none; }
.aw .turma-cel.foco { border: 2px solid var(--teal); }
.aw .aluno-cel { background: #fff; border: 1px solid var(--linha); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.aw .vv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.aw .vv button { min-height: 50px; border-radius: 10px; border: 2px solid #C9CFCB; background: #fff; font-size: 16px; font-weight: 800; cursor: pointer; }
.aw .vv button.veio { background: var(--verde); border-color: var(--verde); color: #fff; }
.aw .vv button.faltou { background: var(--verm); border-color: var(--verm); color: #fff; }
.aw .lista-vagas { max-height: 72vh; overflow-y: auto; padding-right: 4px; display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 700px) {
.aw .lista-vagas { max-height: 50vh; }
}

/* ===== Ateliê Wesley Neto — tema do mockup aprovado, por cima do s1 =====
   .aw-shell = estrutura (menu verde + conteúdo) · .aw = componentes das telas do ateliê.
   Telas do s1 (Usuários, Auditoria) continuam com o Bootstrap dentro do mesmo menu. */
body.aw-body { background: var(--fundo); margin: 0; }
.aw-shell { font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); }
.aw-shell .menu .logo-img { display: block; width: 168px; max-width: 100%; height: auto; }
.aw-shell .marca { flex-direction: column; align-items: flex-start; gap: 6px; }
.aw-shell .marca span { font-size: 12px; color: var(--menu-sub); }
.aw-shell .menu nav .sec { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #7FA19D; padding: 14px 12px 4px; }
.aw-shell .usuario .botoes a, .aw-shell .usuario .botoes button { background: none; border: 0; color: var(--menu-sub); font-size: 12px; font-weight: 700; cursor: pointer; padding: 4px; text-decoration: underline; }
.aw-shell .usuario .botoes form { display: inline; margin: 0; }
.aw-shell .conteudo > .flash-stack { margin: 0; }
@media (min-width: 900px) { .aw-shell .menu { flex: 0 0 236px; position: sticky; top: 0; height: 100vh; overflow-y: auto; } }
.aw.pagina { display: flex; flex-direction: column; gap: 20px; background: transparent; }
.aw .btn:active, .aw .btn:focus { background: var(--branco); }
.aw .btn.pri:active, .aw .btn.pri:focus { background: var(--teal); color: #fff; }
.aw .btn.ok:active, .aw .btn.ok:focus { background: var(--verde-claro); }
.aw .card { box-shadow: none; }
.aw form.inline { display: inline; margin: 0; }
.aw details.conf { position: relative; }
.aw details.conf > summary { list-style: none; cursor: pointer; }
.aw details.conf > summary::-webkit-details-marker { display: none; }
.aw details.conf .menu-conf { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; background: #fff; border: 1px solid var(--linha); border-radius: 10px; box-shadow: 0 8px 24px rgba(16,48,47,.14); padding: 10px; display: flex; flex-direction: column; gap: 6px; min-width: 190px; }
.aw .disp label { min-height: 34px; border-radius: 6px; border: 1px solid #D9DDDA; background: #fff; color: #6B7470; font-weight: 800; cursor: pointer; font-size: 12px; display: flex; align-items: center; justify-content: center; margin: 0; }
.aw .disp input { position: absolute; opacity: 0; pointer-events: none; }
.aw .disp label:has(input:checked) { background: var(--teal); border-color: var(--teal); color: #fff; }
.aw .vv label { min-height: 50px; border-radius: 10px; border: 2px solid #C9CFCB; background: #fff; font-size: 16px; font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: center; margin: 0; }
.aw .vv input { position: absolute; opacity: 0; pointer-events: none; }
.aw .vv label.v:has(input:checked) { background: var(--verde); border-color: var(--verde); color: #fff; }
.aw .vv label.f:has(input:checked) { background: var(--verm); border-color: var(--verm); color: #fff; }
.aw .vv input:disabled + span { opacity: .6; }
.aw .wa-qr { width: 200px; height: 200px; border-radius: 10px; border: 1px solid var(--linha); }
.aw .cel header form { margin: 0; }
.aw .cel .rodape { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
@media print { .aw-shell .menu { display: none; } }
/* s1 dentro do tema: botão principal na cor do ateliê */
.btn-brand { background: #0F5C63; border-color: #0F5C63; color: #fff; }
.btn-brand:hover, .btn-brand:focus { background: #0A4247; border-color: #0A4247; color: #fff; }
.aw-shell .usuario .botoes { flex-wrap: wrap; gap: 2px 8px; }
.aw-shell .usuario .botoes a, .aw-shell .usuario .botoes button { white-space: nowrap; }
.aw-shell .topo-menu { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.aw-shell .menu-btn { display: none; min-height: 40px; padding: 0 14px; border-radius: 8px; border: 1px solid #2E5E5B; background: transparent; color: #fff; font-weight: 700; font-size: 14px; }
@media (max-width: 899px) {
  .aw-shell .menu { padding: 14px 16px; gap: 14px; flex-basis: 100%; }
  .aw-shell .menu .logo-img { width: 130px; }
  .aw-shell .menu-btn { display: inline-flex; align-items: center; }
  .aw-shell .menu:not(.aberto) nav, .aw-shell .menu:not(.aberto) .usuario { display: none; }
}

/* ===== Rodapé padrão Erenhatec (versão + novidades) ===== */
:root{
  --sidebar-width: 236px;    /* largura do menu lateral do ateliê (no celular o menu fica em cima: 0) */
  --cl-azul: #0a6ed1;        /* cor de destaque (versão no hover, botão, tag) */
  --cl-azul-claro: #e3f2fd;  /* fundo do hover da versão e da tag */
  --cl-topo: #354a5f;        /* fundo do topo da janela de novidades */
}

/* ---------- Rodapé ---------- */
.app-footer{
  position: fixed; bottom: 0; left: var(--sidebar-width, 0px); right: 0; z-index: 50;
  height: 24px; box-sizing: border-box; overflow: hidden;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 0 24px; border-top: 1px solid #eaecf0; background: #fff;
  color: #98a2b3; font-size: 11px; line-height: 1;
}
/* Versão clicável: no hover ganha fundo azul claro e texto azul */
.app-footer .ver-btn{
  background: none; border: 0; padding: 3px 8px; border-radius: 12px;
  color: inherit; font: inherit; letter-spacing: .03em; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
  transition: background .15s, color .15s;
}
.app-footer .ver-btn:hover,
.app-footer .ver-btn:focus-visible{ background: var(--cl-azul-claro); color: var(--cl-azul); outline: 0; }
.app-footer .ver-btn svg{ width: 11px; height: 11px; fill: currentColor; opacity: .7; }

.aw-shell .conteudo{ padding-bottom: 48px; } .aw .cel .corpo{ padding-bottom: 40px; } .aw .login-fundo{ padding-bottom: 40px; }   /* conteúdo não fica atrás da barra */
#toastBox{ bottom: 24px !important; }

/* ---------- Janela "Novidades" ---------- */
.cl-fundo{ position: fixed; inset: 0; z-index: 1060; background: rgba(16,24,40,.45);
  display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; animation: clFade .2s ease; }
.cl-modal{ width: 100%; max-width: 800px; max-height: calc(100vh - 96px); display: flex; flex-direction: column;
  background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.25); font-size: 14px; color: #1d2939; }
.cl-modal-topo{ display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: var(--cl-topo); color: #fff; }
.cl-modal-topo h5{ margin: 0; font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.cl-modal-topo svg{ width: 18px; height: 18px; fill: currentColor; }
.cl-fechar{ margin-left: auto; background: none; border: 0; color: #fff; opacity: .8; cursor: pointer; padding: 4px; line-height: 0; }
.cl-fechar:hover{ opacity: 1; }
.cl-fechar svg{ width: 16px; height: 16px; }
.cl-corpo{ overflow-y: auto; padding: 4px 18px 14px; }
.cl-ver{ padding: 14px 4px 10px; border-bottom: 1px solid #eaecf0; }
.cl-ver:last-child{ border-bottom: 0; }
.cl-ver:not(.atual){ opacity: .85; }
.cl-head{ display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cl-num{ font-weight: 800; font-size: 15px; }
.cl-ver.atual .cl-num{ color: var(--cl-azul); }
.cl-tag{ font-size: 11px; font-weight: 700; background: var(--cl-azul-claro); color: var(--cl-azul); border-radius: 10px; padding: 2px 9px; }
.cl-data{ margin-left: auto; font-size: 12px; color: #667085; }
.cl-tit{ font-weight: 600; margin: 4px 0 6px; }
.cl-ver ul{ margin: 0; padding-left: 20px; }
.cl-ver li{ margin: 3px 0; line-height: 1.45; font-size: 13px; }

/* ---------- Aviso "Sistema atualizado" (1x por versão) ---------- */
.cl-aviso{ position: fixed; left: calc(var(--sidebar-width, 0px) + 16px); bottom: 40px; z-index: 1050;
  display: flex; gap: 12px; align-items: flex-start; max-width: 380px; padding: 12px 36px 12px 14px;
  background: #fff; border: 1px solid #bbdefb; border-left: 4px solid var(--cl-azul); border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0,0,0,.18); animation: clIn .35s ease; font-size: 12.5px; }
.cl-aviso-ic{ width: 34px; height: 34px; border-radius: 50%; background: var(--cl-azul-claro); color: var(--cl-azul);
  display: flex; align-items: center; justify-content: center; flex: none; }
.cl-aviso-ic svg{ width: 15px; height: 15px; fill: currentColor; }
.cl-aviso-txt{ display: flex; flex-direction: column; gap: 2px; color: #667085; }
.cl-aviso-txt b{ font-size: 13.5px; color: #1d2939; }
.cl-aviso-ver{ align-self: flex-start; margin-top: 6px; background: var(--cl-azul); color: #fff; border: 0; border-radius: 7px;
  padding: 5px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.cl-aviso-ver:hover{ background: #0854a0; }
.cl-aviso-x{ position: absolute; top: 6px; right: 8px; background: none; border: 0; font-size: 20px; line-height: 1; color: #667085; cursor: pointer; padding: 2px 6px; }

@keyframes clIn{ from{ transform: translateY(16px); opacity: 0 } to{ transform: none; opacity: 1 } }
@keyframes clFade{ from{ opacity: 0 } to{ opacity: 1 } }

/* Celular / menu recolhido */
@media (max-width: 899px){
  .app-footer{ left: 0; padding: 0 14px; flex-direction: row; text-align: left; gap: 12px; }
  .cl-aviso{ left: 12px; right: 12px; bottom: 32px; max-width: none; }
}
/* Impressão: rodapé e aviso não saem no papel */
@media print{ .app-footer, .cl-aviso, .cl-fundo{ display: none !important; } }

/* telas sem menu lateral (login e celular da professora) */
.sem-menu .app-footer, .sem-menu .cl-aviso{ left: 0; }
.sem-menu .cl-aviso{ left: 16px; }

/* chamada aberta pela Sara/Wesley dentro do sistema (com o menu) */
.aw .cel.cel-embutido { margin: 0; max-width: 620px; min-height: auto; border-radius: 14px; overflow: hidden; border: 1px solid var(--linha); }

/* ===== Responsivo: valores grandes e telas do s1 (Usuários, Auditoria) dentro do menu ===== */
.aw .kpi { min-width: 0; }
.aw .kpi strong { font-size: clamp(20px, 2.2vw + 8px, 28px); overflow-wrap: anywhere; line-height: 1.15; }
.aw-shell .conteudo { min-width: 0; }
.aw-shell .conteudo .form-control, .aw-shell .conteudo .form-select { min-width: 0; }
.aw-shell .conteudo .d-flex > .form-control { flex: 1 1 0; }
.aw-shell .conteudo .dt-layout-table .dt-layout-cell, .aw-shell .conteudo .table-responsive { overflow-x: auto; max-width: 100%; }
.aw .kpi strong { font-size: clamp(18px, 1.1vw + 11px, 28px); white-space: normal; overflow-wrap: normal; word-break: keep-all; }
/* Grade no celular: um dia embaixo do outro, com o período escrito em cada bloco */
@media (max-width: 700px) {
  .aw .grade { min-width: 0; display: block; }
  .aw .grade .gh { display: none; }
  .aw .grade .gd { flex-direction: row; gap: 8px; align-items: baseline; background: #FAFBFA; border-top: 1px solid var(--linha); }
  .aw .grade .gc { border-left: 0; min-height: 0; flex-wrap: wrap; padding: 8px 12px; }
  .aw .grade .gc::before { content: attr(data-per); flex: 0 0 52px; font-size: 12px; font-weight: 800; color: var(--muted); padding-top: 10px; }
  .aw .grade .gc .semturma { min-height: 36px; }
  .aw .grade .tcard { flex: 1 1 200px; }
}
@media (max-width: 899px) {
  .aw-shell .shell { align-content: flex-start; }   /* página curta: o menu não estica */
}
@media (max-width: 700px) {
  .aw .grade .gc { display: flex; flex-direction: column; gap: 8px; position: relative; padding-left: 72px; }
  .aw .grade .gc::before { position: absolute; left: 14px; top: 8px; padding-top: 10px; }
  .aw .grade .gc > .tcard { flex: 0 0 auto; width: 100%; min-width: 0; }
  .aw .grade .gc .nomes { display: block; max-width: 100%; }
  .aw .grade .gd { justify-content: flex-start; }
}
/* Alunos no celular: ficha escolhida aparece primeiro (a lista vem depois) */
@media (max-width: 899px) {
  .aw .duas > .estreita.card[aria-label="Ficha do aluno"] { position: static; max-height: none; }
  .aw .duas > .ficha-aberta { order: -1; }
}

/* ---------- barra do topo (título da tela, post-its, data, usuário) ---------- */
.aw-shell .area { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; }
.aw-shell .area > .conteudo { flex: 1 1 auto; }
.aw-shell .topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; padding: 10px 40px; background: #fff; border-bottom: 1px solid var(--linha); font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); position: sticky; top: 0; z-index: 1020; }
.aw-shell .tb-tit { display: flex; flex-direction: column; min-width: 0; }
.aw-shell .tb-tit span { font-size: 13px; color: var(--muted); }
.aw-shell .tb-tit b { font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aw-shell .tb-acoes { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.aw-shell .tb-ico { position: relative; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--linha); background: #FAFBFA; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.aw-shell .tb-ico:hover { border-color: #C9CFCB; }
.aw-shell .tb-badge { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #D93636; color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.aw-shell .tb-cal { width: 42px; height: 44px; border-radius: 8px; border: 1px solid var(--linha); background: #fff; overflow: hidden; display: flex; flex-direction: column; align-items: center; line-height: 1; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.aw-shell .tb-cal-top { display: block; width: 100%; height: 9px; background: #D93636; flex-shrink: 0; }
.aw-shell .tb-cal b { font-size: 17px; font-weight: 800; margin-top: 4px; }
.aw-shell .tb-cal-mes { font-size: 8px; font-weight: 800; color: #D93636; margin-top: 2px; letter-spacing: .04em; }
.aw-shell .tb-user { position: relative; }
.aw-shell .tb-user summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; min-height: 44px; padding: 0 6px; border-radius: 10px; user-select: none; }
.aw-shell .tb-user summary::-webkit-details-marker { display: none; }
.aw-shell .tb-user summary:hover { background: var(--linha2); }
.aw-shell .tb-av { width: 34px; height: 34px; border-radius: 999px; background: var(--ouro); color: var(--menu); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.aw-shell .tb-nome { font-size: 15px; font-weight: 800; }
.aw-shell .tb-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 230px; background: #fff; border: 1px solid var(--linha); border-radius: 10px; box-shadow: 0 10px 28px rgba(16,48,47,.14); padding: 6px 0; z-index: 1030; }
.aw-shell .tb-quem { padding: 10px 16px 12px; border-bottom: 1px solid var(--linha); display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.aw-shell .tb-quem span { font-size: 14px; color: var(--ink); word-break: break-all; }
.aw-shell .tb-quem em { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .04em; background: var(--linha2); color: var(--ink); border-radius: 6px; padding: 3px 8px; }
.aw-shell .tb-menu a, .aw-shell .tb-menu .tb-sair { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 16px; font-size: 15px; color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; font-family: inherit; text-align: left; }
.aw-shell .tb-menu a:hover, .aw-shell .tb-menu .tb-sair:hover { background: var(--linha2); }
.aw-shell .tb-menu form { margin: 0; border-top: 1px solid var(--linha); margin-top: 4px; padding-top: 4px; }
.aw-shell .tb-menu .tb-sair { color: var(--verm); }
@media (max-width: 700px) {
  .aw-shell .topbar { padding: 8px 16px; min-height: 60px; position: static; }
  .aw-shell .tb-tit span, .aw-shell .tb-nome, .aw-shell .tb-cal { display: none; }
  .aw-shell .tb-acoes { gap: 8px; }
}

/* ---------- WhatsApp: pausa do número e chaves deslizantes ---------- */
.aw-shell .ponto.pausado { color: var(--ouro); }
.aw .chave-sw { position: relative; width: 52px; height: 30px; border-radius: 999px; background: #C9CFCB; border: 0; padding: 0; flex-shrink: 0; cursor: pointer; transition: background .15s; }
.aw .chave-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: left .15s; }
.aw .chave-sw[aria-checked="true"] { background: var(--teal); }
.aw .chave-sw[aria-checked="true"]::after { left: 25px; }
.aw .chave-sw.grande { width: 64px; height: 36px; }
.aw .chave-sw.grande::after { width: 30px; height: 30px; }
.aw .chave-sw.grande[aria-checked="true"] { background: var(--verde); }
.aw .chave-sw.grande[aria-checked="true"]::after { left: 31px; }
.aw .chave-sw:focus-visible { outline: 3px solid var(--ouro); outline-offset: 2px; }
.aw .chave-sw:disabled { opacity: .6; cursor: default; }
.aw .chave { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--fundo); }
.aw .chave .h { width: 64px; flex-shrink: 0; font-weight: 800; }
.aw .chave .t { flex: 1; min-width: 0; }
.aw .chave .t b { font-size: 14px; }
.aw .chave .st { font-size: 12px; font-weight: 800; color: var(--muted); }
.aw .chave .st.on { color: var(--teal); }
.aw .pausa-box { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; }
.aw .pausa-box .linha { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.aw .pausa-box .info { flex: 1 1 260px; min-width: 0; }
.aw .pausa-box .big { font-size: 20px; font-weight: 800; }
.aw .card.pausa-box.pausado { background: var(--amar-claro); border: 2px solid #E9C766; }
@media (max-width: 700px) { .aw .chave .h { width: 52px; } .aw .chave .st { display: none; } }

/* ---------- avisos e janelas (dialogo.js): centralizados, no visual do ateliê ---------- */
.awd-toasts { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 20100; display: flex; flex-direction: column; align-items: center; gap: 10px; width: min(520px, calc(100vw - 32px)); pointer-events: none; }
.awd-toast { pointer-events: auto; width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; background: #fff; color: var(--ink); border: 1px solid var(--linha); border-radius: 14px; box-shadow: 0 14px 36px rgba(16,48,47,.18); font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15px; font-weight: 600; line-height: 1.4; opacity: 0; transform: translateY(-14px) scale(.98); transition: opacity .2s, transform .2s; }
.awd-toast.awd-in { opacity: 1; transform: none; }
.awd-toast .awd-msg { flex: 1; min-width: 0; }
.awd-x { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; flex-shrink: 0; }
.awd-x:hover { background: var(--linha2); color: var(--ink); }
.awd-ico { width: 38px; height: 38px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.awd-ico.awd-success { background: var(--verde-claro); color: var(--verde); }
.awd-ico.awd-danger { background: var(--verm-claro); color: var(--verm); }
.awd-ico.awd-warning { background: var(--amar-claro); color: #8A6A00; }
.awd-ico.awd-info { background: var(--teal-claro); color: var(--teal); }
.awd-fundo { position: fixed; inset: 0; z-index: 20000; background: rgba(16,48,47,.45); display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; transition: opacity .18s; backdrop-filter: blur(2px); }
.awd-fundo.awd-in { opacity: 1; }
.awd-caixa { width: min(460px, 100%); background: #fff; color: var(--ink); border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.28); padding: 24px; display: flex; flex-direction: column; gap: 18px; font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif; transform: translateY(10px) scale(.97); transition: transform .18s; }
.awd-fundo.awd-in .awd-caixa { transform: none; }
.awd-topo { display: flex; gap: 14px; align-items: flex-start; }
.awd-topo .awd-ico { width: 46px; height: 46px; }
.awd-tit { margin: 2px 0 4px; font-size: 19px; font-weight: 800; line-height: 1.25; }
.awd-txt { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.awd-campo { display: flex; flex-direction: column; gap: 6px; }
.awd-lbl { font-size: 13px; font-weight: 800; }
.awd-campo textarea { width: 100%; box-sizing: border-box; border: 1px solid #C9CFCB; border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 15px; resize: vertical; min-height: 84px; }
.awd-campo textarea:focus { outline: 3px solid var(--teal-claro); border-color: var(--teal); }
.awd-err { font-size: 13px; color: var(--verm); font-weight: 700; min-height: 1em; }
.awd-botoes { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.awd-btn { min-height: 46px; padding: 0 20px; border-radius: 10px; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; border: 1px solid #C9CFCB; background: #fff; color: var(--ink); }
.awd-btn:hover { border-color: #9AA39F; }
.awd-btn.awd-sim { background: var(--teal); border-color: var(--teal); color: #fff; }
.awd-btn.awd-sim:hover { background: var(--teal-escuro); }
.awd-btn.awd-sim.awd-perigo { background: var(--verm); border-color: var(--verm); }
.awd-btn.awd-sim.awd-perigo:hover { background: #82290F; }
.awd-btn:focus-visible { outline: 3px solid var(--ouro); outline-offset: 2px; }
html.awd-trava { overflow: hidden; }
@media (max-width: 520px) { .awd-botoes .awd-btn { flex: 1 1 auto; } .awd-caixa { padding: 20px; } }
