/* GCF Escalas — GCF Technology */
:root {
  --bg: #F3F3F1; --panel: #FFFFFF; --ink: #121212; --ink2: #3A3A3A; --muted: #6E6E6A; --line: #E2E2DE; --line2: #CFCFCA; --soft: #F0F0ED;
  --brand: #0B0B0B; --brand-ink: #FFFFFF; --focus: #2F6FEB;
  --ok: #1E7A4C; --ok-soft: #E3F3EA; --warn: #9A6200; --warn-soft: #FDF1D8; --bad: #B42318; --bad-soft: #FCE7E4; --info: #345E9E; --info-soft: #E6EEF9;
  /* códigos da escala */
  --DSR: #DCEAFB; --DSR-ink: #1C4D8C; --FD: #E1F2DF; --FD-ink: #2A6A26; --FF: #E7E5E2; --FF-ink: #5C5853;
  --FER: #FFF0C2; --FER-ink: #765400; --ANIV: #FCE3F0; --ANIV-ink: #9E1B5D; --FC: #ECE4FF; --FC-ink: #4D2E93;
  --FE: #D6F2EE; --FE-ink: #0D675F; --AT: #FDE3D3; --AT-ink: #973C0A; --H: #F4F4F2; --H-ink: #222;
  --sun: #FFF8E6; --closed: #FFE27A; --closed-ink: #5A4300;
  --r: 12px; --r-sm: 8px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 14.5px; line-height: 1.45; -webkit-text-size-adjust: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
a { color: inherit; }

/* ---------- carregando / login ---------- */
.splash { min-height: 100vh; display: grid; place-items: center; background: var(--brand); color: #fff; }
.splash img { width: 160px; opacity: .95; }
.splash p { text-align: center; color: #bbb; font-size: 13px; margin-top: 14px; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(1200px 600px at 50% -10%, #2a2a2a 0%, #0b0b0b 60%); }
.login .card { width: 100%; max-width: 380px; background: var(--panel); border-radius: 16px; padding: 28px 26px 22px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.login .logo { display: flex; justify-content: center; margin: -4px 0 18px; }
.login .logo img { width: 150px; }
.login h1 { font-size: 20px; margin: 0 0 4px; text-align: center; }
.login p.sub { margin: 0 0 18px; text-align: center; color: var(--muted); font-size: 13.5px; }
.login label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink2); margin: 12px 0 5px; }
.login input { width: 100%; padding: 11px 12px; border: 1px solid var(--line2); border-radius: 10px; background: #fff; font-size: 16px; }
.login .btn { width: 100%; justify-content: center; margin-top: 18px; padding: 12px; font-size: 15px; }
.login .erro { color: var(--bad); font-size: 13px; min-height: 18px; margin-top: 10px; text-align: center; }
.login .rodape { text-align: center; color: var(--muted); font-size: 11.5px; margin-top: 16px; }

/* ---------- entrada ---------- */
.login-page { min-height: 100vh; min-height: 100svh; padding: 28px 20px; background: #f5f5f3; }
.login-page .card { width: 100%; max-width: 380px; padding: 42px 34px 34px; border: 1px solid #e9e9e5; border-radius: 20px; background: #fff; box-shadow: 0 4px 8px #11111102, 0 18px 60px #11111106; }
.login-identity { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 38px; }
.login-identity img { display: block; width: 132px; height: auto; }
.login-identity span { color: #8b8b85; font-size: 10px; font-weight: 500; letter-spacing: .3em; padding-left: .3em; }
.login-page label { margin: 18px 0 8px; color: #494944; font-size: 12px; font-weight: 500; }
.login-password { position: relative; display: flex; align-items: center; }
.login-password > svg { position: absolute; left: 14px; width: 17px; height: 17px; color: #999992; pointer-events: none; }
.login-page .login-password input { height: 50px; padding: 12px 48px 12px 40px; border: 1px solid #e2e2dd; border-radius: 10px; background: #fafaf9; font-size: 16px; transition: border-color .18s, box-shadow .18s; }
.login-password input::placeholder { color: #a0a09a; font-size: 12px; }
.login-password input:focus { outline: none; border-color: #92928b; box-shadow: 0 0 0 3px #11111106; background: #fff; }
.login-password input[aria-invalid="true"] { border-color: var(--bad); }
.login-eye { position: absolute; right: 4px; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: #93938c; cursor: pointer; }
.login-eye:hover, .login-eye[aria-pressed="true"] { background: #efefec; color: #333; }
.login-eye svg { width: 18px; height: 18px; }
.login-hint { display: block; margin-top: 8px; color: #8b8b84; font-size: 11px; }
.login-caps { margin-top: 9px; color: #906000; font-size: 12px; }
.login-page .login-submit { height: 48px; justify-content: center; gap: 10px; padding: 12px 18px; margin-top: 22px; border: 1px solid #191919; border-radius: 10px; background: #191919; color: #fff; font-size: 13px; font-weight: 550; transition: background .18s; }
.login-page .login-submit:hover { background: #333; }
.login-page .erro { min-height: 0; margin-top: 14px; text-align: left; font-size: 12px; }
.login-page .erro:empty { display: none; }
.login-spinner { width: 15px; height: 15px; border: 2px solid #ffffff40; border-top-color: #fff; border-radius: 50%; animation: login-spin .7s linear infinite; }
@keyframes login-spin { to { transform: rotate(360deg); } }
@media (max-width: 420px) { .login-page .card { padding: 36px 26px 28px; } }
@media (prefers-reduced-motion: reduce) { .login-page * { transition: none !important; animation: none !important; } }

/* ---------- topo ---------- */
.topo { position: sticky; top: 0; z-index: 30; background: var(--brand); color: var(--brand-ink); }
.topo .in { max-width: 1440px; margin: 0 auto; display: flex; align-items: center; gap: 10px 16px; padding: 10px 16px; flex-wrap: wrap; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.marca img { height: 20px; display: block; }
.marca span { font-weight: 300; letter-spacing: .14em; font-size: 12px; text-transform: uppercase; color: #cfcfcf; border-left: 1px solid #444; padding-left: 10px; }
.loja-chip { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #e8e8e8; background: #1d1d1d; border: 1px solid #333; border-radius: 999px; padding: 4px 6px 4px 12px; max-width: 100%; }
.loja-chip b { color: #fff; font-weight: 700; }
.loja-chip select { background: transparent; border: 0; color: #fff; max-width: 240px; padding: 2px 4px; cursor: pointer; }
.loja-chip select option { color: #111; }
.mesnav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.mesnav button { background: #1d1d1d; border: 1px solid #333; color: #fff; width: 34px; height: 34px; border-radius: 9px; cursor: pointer; font-size: 18px; line-height: 1; display: grid; place-items: center; }
.mesnav button:hover { background: #2a2a2a; }
.mesnav .mes { position: relative; min-width: 158px; text-align: center; font-weight: 700; font-size: 15px; padding: 6px 10px; border-radius: 9px; cursor: pointer; }
.mesnav .mes:hover { background: #1d1d1d; }
.mesnav button.mes { background: none; border: 0; color: inherit; font-family: inherit; }
.mesnav .mes input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.salvo { font-size: 12px; color: #bdbdbd; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.salvo i { width: 8px; height: 8px; border-radius: 50%; background: #3ecf8e; display: inline-block; }
.salvo.salvando i { background: #f5c451; animation: pulsa 1s infinite; }
.salvo.erro i { background: #ff6b5b; }
.salvo.local i { background: #8ab4ff; }
@keyframes pulsa { 50% { opacity: .3; } }
.topo .sair { background: transparent; border: 1px solid #333; color: #ddd; border-radius: 9px; padding: 6px 10px; cursor: pointer; font-size: 12.5px; }
.topo .sair:hover { border-color: #666; color: #fff; }

.abas { background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: var(--topo-h, 54px); z-index: 25; }
.abas .in { max-width: 1440px; margin: 0 auto; display: flex; gap: 2px; padding: 0 12px; overflow-x: auto; scrollbar-width: none; }
.abas button { background: none; border: 0; padding: 13px 14px 11px; font-weight: 650; font-size: 14px; color: var(--muted); border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; display: flex; align-items: center; gap: 7px; }
.abas button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.abas button .bolha { font-size: 11px; font-weight: 800; background: var(--bad); color: #fff; border-radius: 999px; padding: 1px 7px; }
.abas button .bolha.aviso { background: #D18B00; }

main { max-width: 1440px; margin: 0 auto; padding: 16px 16px 60px; display: flex; flex-direction: column; gap: 14px; }

/* ---------- elementos comuns ---------- */
.btn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--brand); background: var(--brand); color: var(--brand-ink); font-weight: 650; padding: 9px 14px; border-radius: 10px; cursor: pointer; font-size: 13.5px; white-space: nowrap; text-decoration: none; }
.btn:hover { background: #2b2b2b; }
.btn.sec { background: var(--panel); color: var(--ink); border-color: var(--line2); }
.btn.sec:hover { border-color: var(--ink); background: var(--panel); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink2); }
.btn.ghost:hover { background: var(--soft); }
.btn.perigo { background: var(--panel); color: var(--bad); border-color: #EBC1BB; }
.btn.perigo:hover { border-color: var(--bad); }
.btn.peq { padding: 6px 10px; font-size: 12.5px; border-radius: 8px; }
.btn[disabled] { opacity: .45; cursor: default; pointer-events: none; }
.btn svg { width: 16px; height: 16px; flex: 0 0 16px; }
.painel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.painel > h2, .sec-t { font-size: 17px; margin: 0 0 4px; font-weight: 750; letter-spacing: -.01em; }
.painel > p.sub, .sec-s { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.grade-campos { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 14px; }
.campo { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.campo > span { font-size: 12px; font-weight: 650; color: var(--ink2); }
.campo > small { font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.campo input, .campo select, .campo textarea, .inp { width: 100%; padding: 8px 10px; border: 1px solid var(--line2); border-radius: 9px; background: #fff; font-size: 14px; min-width: 0; }
.campo input:focus, .campo select:focus, .inp:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(0,0,0,.07); }
.inp.t { width: 92px; }
.linha { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tog { display: inline-flex; border: 1px solid var(--line2); border-radius: 10px; overflow: hidden; background: #fff; }
.tog button { border: 0; background: transparent; padding: 7px 12px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink2); }
.tog button + button { border-left: 1px solid var(--line2); }
.tog button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.chk { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13.5px; }
.chk input { width: 17px; height: 17px; accent-color: #111; }
.vazio { padding: 26px; text-align: center; color: var(--muted); }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--soft); color: var(--ink2); }
.tag.lider { background: #111; color: #fff; }

/* ---------- barra da escala ---------- */
.barra { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.barra .esp { flex: 1; }
.barra .grupo { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.aviso-box { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--r); padding: 12px 14px; border: 1px solid; }
.aviso-box.info { background: var(--info-soft); border-color: #C6D6F0; color: #1F3F70; }
.aviso-box.warn { background: var(--warn-soft); border-color: #F0D8A4; color: #6A4300; }
.aviso-box.ok { background: var(--ok-soft); border-color: #BFE3CE; color: #155C38; }
.aviso-box .txt { flex: 1; font-size: 13.5px; }
.aviso-box .txt > b { display: block; font-size: 14px; margin-bottom: 2px; }
.aviso-box ol { margin: 6px 0 0; padding-left: 18px; }
.aviso-box li { margin: 2px 0; }

.conf { border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.conf > summary { list-style: none; cursor: pointer; padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-weight: 700; }
.conf > summary::-webkit-details-marker { display: none; }
.conf > summary .ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 14px; flex: 0 0 26px; }
.conf.ok > summary .ic { background: var(--ok); }
.conf.aviso > summary .ic { background: #D18B00; }
.conf.erro > summary .ic { background: var(--bad); }
.conf > summary .det { margin-left: auto; font-weight: 500; font-size: 12.5px; color: var(--muted); }
.conf ul { list-style: none; margin: 0; padding: 0 8px 10px; max-height: 320px; overflow: auto; }
.conf li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 8px; border-radius: 8px; font-size: 13.5px; cursor: pointer; }
.conf li:hover { background: var(--soft); }
.conf li .nv { flex: 0 0 auto; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 2px 7px; border-radius: 999px; margin-top: 1px; }
.nv.erro { background: var(--bad-soft); color: var(--bad); }
.nv.aviso { background: var(--warn-soft); color: var(--warn); }
.nv.info { background: var(--info-soft); color: var(--info); }

/* ---------- planilha ---------- */
.folha-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: auto; max-height: calc(100vh - 170px); position: relative; }
table.folha { border-collapse: separate; border-spacing: 0; font-size: 12px; min-width: 100%; }
.folha th, .folha td { border-right: 1px solid #C9C7C2; border-bottom: 1px solid #C9C7C2; padding: 0 3px; height: 28px; text-align: center; white-space: nowrap; }
.folha .nm { position: sticky; left: 0; z-index: 3; background: var(--panel); text-align: left; padding: 0 8px; min-width: 210px; max-width: 250px; overflow: hidden; text-overflow: ellipsis; font-weight: 650; border-left: 0; }
.folha .hr { min-width: 112px; font-size: 11px; font-weight: 600; line-height: 1.15; padding: 2px 6px; }
.folha .hr small { display: block; font-size: 9.5px; color: var(--muted); font-weight: 600; }
.folha .fn { min-width: 120px; text-align: left; font-size: 11px; font-weight: 600; color: var(--ink2); padding: 0 6px; }
.folha .d { min-width: 34px; width: 34px; font-weight: 800; font-size: 10.5px; }
.folha thead th { position: sticky; z-index: 4; background: #161616; color: #fff; font-weight: 700; }
.folha thead th.fn, .folha thead th.hr { color: #fff; }
.folha thead tr.t1 th { top: 0; height: 26px; }
.folha thead tr.t2 th { top: 26px; height: 24px; }
.folha thead tr.t3 th { top: 50px; height: 22px; font-size: 9px; letter-spacing: -.02em; }
.folha thead th.nm { z-index: 6; background: #161616; color: #fff; }
.folha thead th.dom { background: #4A4A4A; }
.folha thead th.fch { background: var(--closed) !important; color: var(--closed-ink) !important; }
.folha thead th.sf { box-shadow: inset 0 -3px 0 #3ecf8e; }
.folha thead th.hoje { box-shadow: inset 0 0 0 2px #8ab4ff; }
.folha thead tr.t3 th { background: #2a2a2a; color: #ddd; font-weight: 700; }
.folha thead tr.t3 th.fch { font-weight: 900; }
.folha tr.turma td { background: #DADAD6; color: #111; font-weight: 800; text-transform: uppercase; font-size: 11px; }
.folha tr.turma td.nm { background: #DADAD6; }
.folha tr.tot td { background: #2B2B2B; color: #fff; font-weight: 800; font-size: 11px; }
.folha tr.tot td.nm { background: #2B2B2B; }
.folha tr.geral td { background: #0B0B0B; color: #fff; font-weight: 800; font-size: 11px; }
.folha tr.geral td.nm { background: #0B0B0B; }
.folha tr.info td { background: var(--soft); font-weight: 700; font-size: 11px; color: var(--ink2); }
.folha tr.info td.nm { background: var(--soft); }
.folha tr.info td.alto { color: var(--bad); background: var(--bad-soft); }
.folha tr.p td.nm { cursor: default; }
.folha tr.p:hover td.nm { background: #F7F7F5; }
.folha td.c { cursor: pointer; position: relative; }
.folha td.c:hover { outline: 2px solid #111; outline-offset: -2px; }
.folha td.dom { background: var(--sun); }
.folha td.fch { background: repeating-linear-gradient(45deg, #EEEDEA, #EEEDEA 4px, #E4E2DE 4px, #E4E2DE 8px); color: #8a857f; cursor: default; }
.folha td.fch:hover { outline: 0; }
.folha td.DSR { background: var(--DSR); color: var(--DSR-ink); }
.folha td.FD { background: var(--FD); color: var(--FD-ink); }
.folha td.FF { color: var(--FF-ink); }
.folha td.FER { background: var(--FER); color: var(--FER-ink); font-size: 9.5px; }
.folha td.ANIV { background: var(--ANIV); color: var(--ANIV-ink); font-size: 8.5px; letter-spacing: -.03em; }
.folha td.FC { background: var(--FC); color: var(--FC-ink); }
.folha td.FE { background: var(--FE); color: var(--FE-ink); }
.folha td.AT { background: var(--AT); color: var(--AT-ink); }
.folha td.H { background: var(--H); color: var(--H-ink); font-size: 8.5px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.folha td.man::after { content: ""; position: absolute; top: 2px; right: 2px; width: 6px; height: 6px; border-radius: 50%; background: #E08A00; }
.folha td.err { box-shadow: inset 0 0 0 2px var(--bad); }
.folha td.flash { animation: flash 1.6s ease 2; }
@keyframes flash { 0%,100% { box-shadow: inset 0 0 0 0 transparent; } 40% { box-shadow: inset 0 0 0 3px #2F6FEB; background-color: #dbe7ff; } }
.folha td.sel { outline: 3px solid #2F6FEB !important; outline-offset: -3px; }

.legenda { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--ink2); align-items: center; }
.legenda span { display: inline-flex; align-items: center; gap: 6px; }
.legenda i { font-style: normal; font-weight: 800; font-size: 10px; min-width: 34px; text-align: center; padding: 3px 4px; border-radius: 5px; border: 1px solid rgba(0,0,0,.08); }
.lg-DSR { background: var(--DSR); color: var(--DSR-ink); } .lg-FD { background: var(--FD); color: var(--FD-ink); } .lg-FF { background: var(--FF); color: var(--FF-ink); }
.lg-FER { background: var(--FER); color: var(--FER-ink); } .lg-ANIV { background: var(--ANIV); color: var(--ANIV-ink); } .lg-FC { background: var(--FC); color: var(--FC-ink); }
.lg-FE { background: var(--FE); color: var(--FE-ink); } .lg-AT { background: var(--AT); color: var(--AT-ink); } .lg-T { background: #fff; color: #999; }
.lg-man { background: #fff; position: relative; } .lg-man::after { content: ""; position: absolute; top: 2px; right: 3px; width: 6px; height: 6px; border-radius: 50%; background: #E08A00; }

table.tab { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.tab th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: 8px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tab td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tab td.n { text-align: right; font-variant-numeric: tabular-nums; }
.tab th.n { text-align: right; }
.rolagem { overflow-x: auto; }

/* ---------- menu da célula ---------- */
.pop { position: fixed; z-index: 60; background: var(--panel); border: 1px solid var(--line2); border-radius: 14px; box-shadow: 0 16px 50px rgba(0,0,0,.22); width: 300px; padding: 8px; }
.pop .cab { padding: 6px 8px 8px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.pop .cab b { display: block; font-size: 14px; }
.pop .cab span { font-size: 12px; color: var(--muted); }
.pop .ops { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.pop .op { display: flex; align-items: center; gap: 8px; border: 1px solid transparent; background: transparent; text-align: left; padding: 7px 8px; border-radius: 9px; cursor: pointer; font-size: 12.5px; line-height: 1.15; }
.pop .op:hover { background: var(--soft); border-color: var(--line); }
.pop .op[aria-current="true"] { border-color: #111; background: var(--soft); font-weight: 700; }
.pop .op i { font-style: normal; font-weight: 800; font-size: 9.5px; min-width: 34px; text-align: center; padding: 3px 2px; border-radius: 5px; }
.pop .op.w { grid-column: 1 / -1; }
.pop .hor { display: flex; gap: 6px; align-items: center; padding: 6px 8px; flex-wrap: wrap; font-size: 12.5px; }
.pop .hor input { width: 88px; padding: 6px 8px; border: 1px solid var(--line2); border-radius: 8px; }
.pop .rod { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pop .rod .dica { flex: 1; font-size: 11.5px; color: var(--ok, #1E7A4C); font-weight: 600; padding-left: 6px; }
.pop .cab .pop-pas { display: block; margin-top: 4px; font-size: 11.5px; color: #6A4300; background: var(--warn-soft); border-radius: 6px; padding: 4px 6px; }
.pop .rod .btn { flex: 1; justify-content: center; }
.veu { position: fixed; inset: 0; z-index: 55; background: transparent; }

/* ---------- janelas ---------- */
.modal-fundo { position: fixed; inset: 0; z-index: 70; background: rgba(10,10,10,.45); display: grid; place-items: center; padding: 16px; }
.modal { background: var(--panel); border-radius: 16px; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 24px 70px rgba(0,0,0,.3); }
.modal.larga { max-width: 760px; }
.modal .mh { display: flex; align-items: center; gap: 10px; padding: 16px 18px 10px; position: sticky; top: 0; background: var(--panel); z-index: 1; }
.modal .mh h3 { margin: 0; font-size: 17px; flex: 1; }
.modal .mh .x { border: 0; background: var(--soft); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 18px; line-height: 1; }
.modal .mb { padding: 4px 18px 14px; }
.modal .mf { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 18px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; position: sticky; bottom: 0; background: var(--panel); }
.modal textarea { width: 100%; min-height: 260px; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12.5px; border: 1px solid var(--line2); border-radius: 10px; padding: 10px; resize: vertical; }

.toast-box { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: #111; color: #fff; border-radius: 10px; padding: 10px 16px; font-size: 13.5px; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: min(92vw, 520px); pointer-events: auto; animation: sobe .2s ease; }
.toast.erro { background: var(--bad); }
@keyframes sobe { from { transform: translateY(8px); opacity: 0; } }
.carregando { position: fixed; inset: 0; z-index: 95; background: rgba(255,255,255,.6); display: grid; place-items: center; font-weight: 700; }
.carregando div { background: #111; color: #fff; padding: 12px 18px; border-radius: 12px; }

/* ---------- equipe ---------- */
.eq td { padding: 6px 6px; }
.eq .inp { padding: 6px 8px; font-size: 13.5px; }
.eq td.ord { white-space: nowrap; width: 1%; }
.eq td.ord button { border: 1px solid var(--line); background: #fff; border-radius: 7px; width: 26px; height: 26px; cursor: pointer; color: var(--ink2); }
.eq td.ord button:hover { border-color: #111; }
.eq tr.hp td { background: var(--soft); border-bottom: 1px solid var(--line); font-size: 12.5px; }
.eq .nome { min-width: 190px; }
.eq .cargo { min-width: 150px; }
.eq select.inp { min-width: 92px; }
.eq .ausb { white-space: nowrap; }
@media (max-width: 900px) {
  .eq thead { display: none; }
  .eq, .eq tbody, .eq tr, .eq td { display: block; width: 100%; }
  .eq tr.pes { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 8px; background: #fff; }
  .eq tr.hp { margin: -12px 0 10px; border-radius: 0 0 12px 12px; padding: 8px; }
  .eq td { border: 0; padding: 4px 2px; display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 8px; }
  .eq td::before { content: attr(data-l); font-size: 12px; color: var(--muted); font-weight: 600; }
  .eq td.ord { display: flex; gap: 6px; justify-content: flex-end; width: 100%; }
  .eq td[data-l="#"] { display: none; }
  .eq td.ord::before { content: none; }
}

/* ---------- dias do mês ---------- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal .cab { font-size: 11.5px; font-weight: 800; color: var(--muted); text-align: center; padding: 4px 0; }
.cal .dia { min-height: 96px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 7px 8px; cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 3px; position: relative; }
.cal .dia:hover { border-color: #111; }
.cal .dia .nd { font-weight: 800; font-size: 16px; display: flex; align-items: center; gap: 6px; }
.cal .dia .fer { font-size: 11px; font-weight: 700; color: #7A5600; line-height: 1.2; }
.cal .dia .st { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 8px; align-self: flex-start; }
.cal .dia .st.ab { background: var(--ok-soft); color: var(--ok); }
.cal .dia .st.fe { background: var(--closed); color: var(--closed-ink); }
.cal .dia .mv { font-size: 11px; color: var(--muted); margin-top: auto; }
.cal .dia .bd { display: flex; gap: 4px; flex-wrap: wrap; }
.cal .dia .bd span { font-size: 10px; font-weight: 800; border-radius: 6px; padding: 1px 6px; background: var(--soft); color: var(--ink2); }
.cal .dia .bd span.sf { background: #DFF5E8; color: #176B3E; }
.cal .dia.fechado { background: repeating-linear-gradient(45deg, #FAFAF8, #FAFAF8 6px, #F2F1EE 6px, #F2F1EE 12px); }
.cal .dia.dom .nd { color: #8A5A00; }
.cal .dia.mudou::after { content: "editado"; position: absolute; top: 7px; right: 8px; font-size: 9.5px; font-weight: 800; color: #E08A00; text-transform: uppercase; }
.cal .vz { min-height: 96px; }
@media (max-width: 700px) {
  .cal { gap: 3px; }
  .cal .dia, .cal .vz { min-height: 74px; padding: 5px; }
  .cal .dia .nd { font-size: 14px; }
  .cal .dia .mv, .cal .dia .fer { font-size: 9.5px; }
  .cal .dia .st { font-size: 9.5px; padding: 0 5px; }
  .cal .dia.mudou::after { content: "•"; font-size: 16px; top: 2px; right: 5px; }
}

/* ---------- configurações ---------- */
.cfg { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 14px; align-items: start; }
.cfg .painel.full { grid-column: 1 / -1; }
.cfg .pilha { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.horas td, .horas th { padding: 5px 6px; }
.horas .inp { width: 96px; }
.horas td.dn { font-weight: 700; width: 90px; }
.regra { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.regra:last-child { border-bottom: 0; }
.regra .t b { display: block; font-size: 14px; }
.regra .t small { color: var(--muted); font-size: 12px; }
.versoes { max-height: 280px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.versoes div { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-bottom: 1px solid var(--line); font-size: 13px; }
.versoes div:last-child { border-bottom: 0; }
.versoes div span { flex: 1; }

.rodape { text-align: center; color: var(--muted); font-size: 11.5px; padding: 8px 0 0; }
.rodape img { height: 12px; vertical-align: -1px; opacity: .7; }

/* ---------- celular ---------- */
@media (max-width: 760px) {
  body { font-size: 14px; }
  .topo .in { padding: 8px 12px; gap: 8px; }
  .marca span { display: none; }
  .mesnav { margin-left: 0; order: 5; width: 100%; justify-content: space-between; }
  .mesnav .mes { flex: 1; }
  .loja-chip { order: 4; font-size: 12px; }
  .salvo span { display: none; }
  main { padding: 12px 10px 60px; }
  .painel { padding: 14px 14px; }
  .folha-wrap { max-height: calc(100vh - 210px); }
  .folha .nm { min-width: 128px; max-width: 128px; font-size: 11.5px; padding: 0 6px; }
  .folha .hr, .folha .fn { display: none; }
  .barra .btn .lbl-l { display: none; }
  .pop { left: 8px !important; right: 8px; bottom: 8px; top: auto !important; width: auto; border-radius: 16px; }
}

/* ---------- impressão ---------- */
#impressao { display: none; }
@media print {
  @page { size: A4 landscape; margin: 7mm; }
  html, body { background: #fff !important; }
  body > *:not(#impressao) { display: none !important; }
  #impressao { display: block !important; color: #000; }
  #impressao * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
#impressao .pi-cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; border-bottom: 2px solid #000; padding-bottom: 4px; margin-bottom: 6px; }
#impressao .pi-cab h1 { margin: 0; font-size: 17px; }
#impressao .pi-cab p { margin: 0; font-size: 10px; color: #333; }
#impressao .pi-cab img { height: 18px; }
#impressao table.folha { font-size: 9px; width: 100%; }
#impressao .folha th, #impressao .folha td { height: auto; padding: 2px 1px; border-color: #777; position: static !important; }
#impressao .folha .nm { min-width: 0; max-width: none; padding: 1px 4px; position: static; }
#impressao .folha .hr { min-width: 0; font-size: 8px; padding: 1px 3px; }
#impressao .folha .fn { min-width: 0; font-size: 8px; padding: 1px 3px; }
#impressao .folha .d { min-width: 0; width: auto; font-size: 8px; }
#impressao .folha td.man::after { display: none; }
#impressao .folha td.err { box-shadow: none; }
#impressao .legenda { font-size: 9px; margin-top: 6px; gap: 4px 10px; }
#impressao .legenda i { min-width: 26px; font-size: 8px; padding: 1px 3px; }
#impressao .pi-rod { display: flex; justify-content: space-between; font-size: 8.5px; color: #444; margin-top: 6px; }

/* ---------- ajuste automático ---------- */
.auto-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: #E3F4EA; color: #155C38; font-size: 13px; font-weight: 700; border: 1px solid #BFE3CE; cursor: help; white-space: nowrap; }
.auto-chip svg { width: 15px; height: 15px; }
.auto-chip.encerrado { background: var(--soft); color: var(--ink2); border-color: var(--line); }
.folha td.ajustou { animation: ajustou 2.8s ease-out 1; }
@keyframes ajustou { 0%, 35% { box-shadow: inset 0 0 0 3px #1E9E5A; background-color: #CFF1DC; } 100% { box-shadow: inset 0 0 0 0 transparent; } }
.folha td.c.pas { opacity: .5; }
.folha td.c.pas:hover { opacity: 1; }
.toast { display: flex; align-items: center; gap: 14px; }
.toast.ajuste { background: #123D27; }
.toast button { flex: none; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); border-radius: 8px; padding: 5px 10px; font-weight: 700; font-size: 12.5px; cursor: pointer; }
.toast button:hover { background: rgba(255,255,255,.12); }
@media print { .toast-box { display: none !important; } }

/* ---------- hoje / amanhã ---------- */
.hoje-box { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 10px; }
.hj { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; display: flex; flex-direction: column; gap: 7px; }
.hj-c { display: flex; align-items: baseline; gap: 8px; }
.hj-c b { font-size: 15px; }
.hj-c span { font-size: 13px; color: var(--muted); font-weight: 600; }
.hj-c em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 700; color: var(--ok); background: var(--ok-soft); padding: 2px 8px; border-radius: 999px; }
.hj-l { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.hj-l i { font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-right: 2px; }
.hj .pes { display: inline-flex; align-items: baseline; gap: 5px; font-size: 13px; font-weight: 650; padding: 3px 9px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); }
.hj .pes small { font-size: 11px; font-weight: 600; color: var(--muted); }
.hj .pes.lid { border-color: #111; }
.hj .pes.DSR { background: var(--DSR); color: var(--DSR-ink); border-color: transparent; }
.hj .pes.FE { background: var(--FE); color: var(--FE-ink); border-color: transparent; }
.hj .pes.AT { background: var(--AT); color: var(--AT-ink); border-color: transparent; }
.hj .pes.ANIV { background: var(--ANIV); color: var(--ANIV-ink); border-color: transparent; }
.hj .pes.FC { background: var(--FC); color: var(--FC-ink); border-color: transparent; }
.hj .pes[class*=" "] small { color: inherit; opacity: .8; }
.hj.fechado p { margin: 0; font-size: 13px; }
@media (max-width: 700px) {
  .conf > summary .det { display: none; }
  .rolagem .tab td, .rolagem .tab th { white-space: nowrap; }
  .hj { padding: 9px 11px; }
}

/* ---------- quadro simples ---------- */
.gs-wrap { background: var(--panel); }
table.gs { border-collapse: separate; border-spacing: 0; font-size: 12px; min-width: 100%; }
.gs th, .gs td { height: 40px; min-width: 40px; width: 40px; text-align: center; border-bottom: 1px solid #ECEBE7; border-right: 1px solid #F2F1EE; padding: 0; white-space: nowrap; }
.gs .nm { position: sticky; left: 0; z-index: 2; background: var(--panel); text-align: left; padding: 3px 12px; min-width: 200px; max-width: 230px; width: 210px; border-right: 1px solid var(--line2); }
.gs .nm b { display: block; font-size: 13.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.gs .nm small { display: block; font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.gs thead th { position: sticky; top: 0; z-index: 3; background: var(--panel); height: 62px; cursor: pointer; vertical-align: top; padding-top: 7px; border-bottom: 2px solid #D9D7D2; }
.gs thead th.nm { z-index: 4; vertical-align: middle; font-size: 15px; font-weight: 800; padding-top: 0; cursor: default; }
.gs thead th.nm small { font-weight: 500; }
.gs thead .wd { display: block; font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.gs thead .n { display: block; font-size: 15px; font-weight: 800; line-height: 24px; width: 26px; margin: 0 auto; border-radius: 999px; }
.gs thead .mk { display: block; height: 15px; font-size: 8.5px; font-weight: 800; color: #9A6200; letter-spacing: -.02em; }
.gs thead .mk svg { width: 17px; height: 15px; }
.gs thead th:hover .n { background: var(--soft); }
.gs thead th.dom .wd, .gs thead th.dom .n { color: #B26B00; }
.gs thead th.fch .wd, .gs thead th.fch .n { color: #B5B1AA; }
.gs thead th.hoje .n, .gs thead th.hoje:hover .n { background: #111; color: #fff; }
.gs thead th.hoje .wd { color: #111; }
.gs .ns { border-left: 2px solid #A8A49C; }
.gs td.cam, .gs th.cam { background-color: #FFF6DD; }
.gs tr.tg td { background: #F4F3F0; height: 34px; border-bottom: 1px solid #E4E2DD; }
.gs tr.tg td.nm { background: #F4F3F0; }
.gs tr.tg td.nm b { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; }
.gs tr.p:hover td.nm { background: #F9F9F7; }
.gs td.c { cursor: pointer; position: relative; }
.gs td.c:hover { outline: 2px solid #111; outline-offset: -2px; }
.gs td.fo { background-color: var(--DSR); color: var(--DSR-ink); font-weight: 800; font-size: 10px; }
.gs td.FE { background-color: var(--FE); color: var(--FE-ink); font-weight: 800; font-size: 9.5px; }
.gs td.AT { background-color: var(--AT); color: var(--AT-ink); font-weight: 800; font-size: 9.5px; }
.gs td.ANIV { background-color: var(--ANIV); color: var(--ANIV-ink); font-weight: 800; font-size: 9.5px; }
.gs td.FC { background-color: var(--FC); color: var(--FC-ink); font-weight: 800; font-size: 9.5px; }
.gs td.H { background-color: var(--H); color: var(--H-ink); font-weight: 800; font-size: 10px; }
.gs td.x { background: repeating-linear-gradient(45deg, #F4F3F0, #F4F3F0 4px, #ECEAE6 4px, #ECEAE6 8px); }
.gs td.pas { opacity: .45; }
.gs td.c.pas:hover { opacity: 1; }
.gs td.man::after { content: ""; position: absolute; top: 3px; right: 3px; width: 6px; height: 6px; border-radius: 50%; background: #E08A00; }
.gs td.err { box-shadow: inset 0 0 0 2px var(--bad); }
.gs td.flash { animation: flash 1.6s ease 2; }
.gs td.sel { outline: 3px solid #2F6FEB !important; outline-offset: -3px; }
.gs td.ajustou { animation: ajustou 2.8s ease-out 1; }
.gs tr.tt td { height: 26px; font-size: 11.5px; font-weight: 700; color: #8a857f; background: #FBFBFA; }
.gs tr.tt td.nm { font-size: 11px; font-weight: 600; text-align: right; background: #FBFBFA; }
.gs tr.tt td.baixo { color: var(--bad); background-color: var(--bad-soft); }
.gs tr.tl td { height: 30px; font-weight: 800; font-size: 12px; background: #111; color: #fff; border-bottom: 0; border-right-color: #2a2a2a; }
.gs tr.tl td.nm { background: #111; font-size: 12px; }
.gs tr.tl td.x { background: #2a2a2a; }
.lg-x { background: repeating-linear-gradient(45deg, #F4F3F0, #F4F3F0 4px, #ECEAE6 4px, #ECEAE6 8px); }
.lg-cam { background: #FFF6DD; color: #9A6200; display: inline-grid; place-items: center; }
.lg-cam svg { width: 16px; height: 13px; }
.cam-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: #8A5A00; background: #FFF1C9; border-radius: 999px; padding: 1px 8px; }
.cam-tag svg { width: 14px; height: 12px; }
.pop .op.sempre { border: 1px dashed #C9A23A; background: #FFFBEF; margin-top: 2px; align-items: flex-start; }
.pop .op.sempre svg { width: 16px; height: 16px; color: #C9A23A; flex: none; margin-top: 1px; }
.pop .op.sempre span { display: flex; flex-direction: column; font-weight: 700; }
.pop .op.sempre small { font-weight: 500; color: var(--muted); font-size: 11px; }
.pop .op.sempre.on { border-style: solid; background: #FFF3CC; }
@media (max-width: 700px) {
  .gs .nm { min-width: 128px; width: 128px; max-width: 128px; padding: 3px 8px; }
  .gs .nm b { font-size: 12.5px; }
  .gs th, .gs td { min-width: 36px; width: 36px; }
}

/* ---------- painel do dia (inteligente) ---------- */
.pop { width: 372px; padding: 0; max-height: calc(100vh - 16px); overflow-y: auto; border-radius: 16px; }
.pop .cab { display: flex; align-items: center; gap: 10px; padding: 12px 12px 10px 16px; margin: 0; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); z-index: 1; }
.pop .cab .pc-t { flex: 1; min-width: 0; }
.pop .cab .pc-t b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop .cab .pc-t span { font-size: 12.5px; color: var(--muted); }
.pop .cab .pc-st { flex: none; font-size: 11.5px; font-weight: 800; padding: 4px 9px; border-radius: 999px; border: 1px solid rgba(0,0,0,.08); }
.pop .cab .x { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--soft); font-size: 18px; line-height: 1; cursor: pointer; color: var(--ink2); }
.pop .cab .x:hover { background: #e6e4df; }
.pop .pop-pas { margin: 10px 14px 0; font-size: 12px; color: #6A4300; background: var(--warn-soft); border-radius: 8px; padding: 6px 9px; }
.pop .pc-sec { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.pop .pc-tit { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--ink2); }
.pop .pc-sub { margin: 2px 0 8px; font-size: 12.5px; color: var(--muted); }
.pop .mini { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.pop .md { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 2px 7px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font: inherit; color: var(--ink); min-width: 0; }
.pop .md .wd { font-size: 9.5px; font-weight: 800; color: var(--muted); display: inline-flex; align-items: center; gap: 2px; }
.pop .md .wd svg { width: 11px; height: 10px; color: #9A6200; }
.pop .md .n { font-size: 15px; font-weight: 800; line-height: 1.1; }
.pop .md .st { font-size: 9.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.pop .md.fol { background: var(--DSR); border-color: #BFD3F2; }
.pop .md.fol .st { color: var(--DSR-ink); }
.pop .md.fch { background: repeating-linear-gradient(45deg, #F4F3F0, #F4F3F0 4px, #ECEAE6 4px, #ECEAE6 8px); color: #aaa; }
.pop .md.cam:not(.fol) { background-color: #FFF6DD; }
.pop .md.atual { border: 2px solid #111; }
.pop .md.alvo { cursor: pointer; border: 2px dashed #1E9E5A; }
.pop .md.alvo.warn { border-color: #D49A1A; }
.pop .md.alvo:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,.12); }
.pop .md .pt, .pop .pc-leg .pt { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: #1E9E5A; }
.pop .md.warn .pt, .pop .pc-leg .pt.warn { background: #D49A1A; }
.pop .pc-leg { margin: 8px 0 0; font-size: 11.5px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.pop .pc-leg .pt { position: static; display: inline-block; }
.pop .trocas { display: flex; flex-direction: column; gap: 5px; }
.pop .troca { display: flex; align-items: center; gap: 10px; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 10px; cursor: pointer; font: inherit; color: var(--ink); }
.pop .troca:hover { border-color: #111; background: var(--soft); }
.pop .troca svg { width: 18px; height: 18px; flex: none; color: #2F6FEB; }
.pop .troca span { display: flex; flex-direction: column; min-width: 0; }
.pop .troca b { font-size: 13px; }
.pop .troca small { font-size: 11.5px; color: var(--muted); }
.pop .troca.warn svg { color: #D49A1A; }
.pop .pc-sec .ops { margin-top: 8px; }
.pop .op i { min-width: 18px; width: 18px; height: 18px; padding: 0; border-radius: 6px; border: 1px solid rgba(0,0,0,.12); }
.pop .op { padding: 8px 9px; font-size: 13px; border-color: var(--line); background: #fff; }
.pop .op.sempre { margin-top: 6px; }
.pop .hor-d { margin-top: 8px; }
.pop .hor-d summary { cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--ink2); padding: 4px 0; }
.pop .hor { padding: 6px 0 0; }
.pop .rod { margin: 0; padding: 10px 14px; border-top: 0; }
.pop .rod .btn { flex: none; }
.lg-H { background: var(--H); color: var(--H-ink); }
.pop.sheet { left: 0 !important; right: 0; bottom: 0; top: auto !important; width: 100%; max-height: 86vh; border-radius: 18px 18px 0 0; animation: sobe .2s ease; }
.pop.sheet .md .n { font-size: 14px; }
.veu { background: rgba(0,0,0,.08); }
/* arrastar folga */
.gs td[draggable="true"], .folha td[draggable="true"] { cursor: grab; }
td.origem-d { opacity: .45; }
td.alvo-d { box-shadow: inset 0 0 0 2px #1E9E5A; background-image: repeating-linear-gradient(45deg, rgba(30,158,90,.08), rgba(30,158,90,.08) 5px, transparent 5px, transparent 10px); }
td.alvo-d:hover { background-color: #CFF1DC; }
.pop .troca em.ot { font-style: normal; font-size: 10.5px; font-weight: 700; color: #8A5A00; background: #FFF1C9; border-radius: 999px; padding: 1px 7px; margin-left: 4px; }

/* ---------- arrastar folgas e pessoas ---------- */
.gs .nmw { display: flex; align-items: center; gap: 6px; min-width: 0; }
.gs .nmt { min-width: 0; flex: 1; }
.gs .grip { flex: none; width: 18px; height: 30px; display: grid; place-items: center; color: #B9B5AE; cursor: grab; border-radius: 6px; touch-action: none; margin-left: -6px; }
.gs .grip svg { width: 16px; height: 16px; }
.gs tr.p:hover .grip { color: #555; background: var(--soft); }
.gs td.arr { cursor: grab; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
body.arrastando, body.arrastando * { cursor: grabbing !important; -webkit-user-select: none; user-select: none; }
.arr-fant { position: fixed; z-index: 120; pointer-events: none; background: #111; color: #fff; border-radius: 12px; padding: 8px 12px; box-shadow: 0 12px 30px rgba(0,0,0,.3); max-width: 280px; display: flex; flex-direction: column; gap: 1px; }
.arr-fant b { font-size: 13px; }
.arr-fant small { font-size: 11.5px; color: #cfcfcf; }
.arr-fant em { font-style: normal; font-size: 11.5px; color: #FFD27A; margin-top: 2px; }
td.origem-d { opacity: .35; }
td.alvo-d { box-shadow: inset 0 0 0 2px #1E9E5A; background-image: repeating-linear-gradient(45deg, rgba(30,158,90,.10), rgba(30,158,90,.10) 5px, transparent 5px, transparent 10px); }
td.alvo-t { box-shadow: inset 0 0 0 2px #2F6FEB; }
td.alvo-w { box-shadow: inset 0 0 0 2px #D49A1A; }
td.sobre { background: #CFF1DC !important; box-shadow: inset 0 0 0 3px #1E9E5A; }
td.alvo-t.sobre { background: #D8E5FF !important; box-shadow: inset 0 0 0 3px #2F6FEB; }
td.alvo-w.sobre { background: #FFF0C9 !important; box-shadow: inset 0 0 0 3px #D49A1A; }
.gs tr.origem-r td { opacity: .4; }
.gs tr.ins-a td { box-shadow: inset 0 3px 0 #1E9E5A; }
.gs tr.ins-d td { box-shadow: inset 0 -3px 0 #1E9E5A; }
.gs tr.tg.zona-on td { background: #D8F2E2 !important; }
.gs tr.vazio-t td { height: 40px; background: #FCFCFB; }
.gs tr.vazio-t small { color: var(--muted); font-style: italic; }
.dica-arr { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 12.5px; color: var(--ink2); background: var(--panel); border: 1px dashed var(--line2); border-radius: 10px; padding: 8px 12px; }
.dica-arr svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: #8a857f; }

/* ---------- folgas coletivas ---------- */
.gs td.fo.col, .lg-col { background: #DCDDFB; color: #2E3192; box-shadow: inset 0 -3px 0 #8C90EC; }
.gs thead .mk-col { color: #5B60D6; display: inline-flex; } .gs thead .mk-col svg { width: 11px; height: 11px; }
.pop .pop-col { display: flex; gap: 8px; align-items: flex-start; background: #EEEFFE; color: #2E3192; border-radius: 8px; padding: 8px 10px; font-size: 12.5px; margin: 0 0 10px; line-height: 1.4; }
.pop .pop-col svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.pop .pop-col a { color: inherit; font-weight: 700; }
.evc { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 0 0 10px; }
.evc.passou { opacity: .6; }
.evc-t { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.evc-t > b { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; }
.evc-t > b svg { width: 15px; height: 15px; color: #5B60D6; }
.evc-b { margin-left: auto; display: flex; gap: 6px; }
.evc-g { display: grid; grid-template-columns: 90px 1fr; gap: 0 10px; padding: 6px 0 0; font-size: 13px; }
.evc-g small { grid-column: 2; color: var(--muted); }
.ev-gs { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 10px; margin-top: 12px; }
.evg { border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px; background: #FBFBFA; }
.evg-cab { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.evg-cab .inp { font-weight: 800; flex: 1; min-width: 0; }
.evx { border: 0; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); padding: 0 4px; }
.ev-tit { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--ink2); }
.ev-sub { margin: 2px 0 8px; font-size: 12.5px; color: var(--muted); }
.evd, .evp { display: flex; flex-wrap: wrap; gap: 6px; margin: 5px 0 10px; align-items: center; }
.evd input[type=date] { width: 150px; }
.chip-d { display: inline-flex; align-items: center; gap: 4px; background: #DCDDFB; color: #2E3192; border-radius: 999px; padding: 4px 4px 4px 10px; font-size: 12.5px; font-weight: 700; }
.chip-d button { border: 0; background: rgba(255,255,255,.75); border-radius: 50%; width: 20px; height: 20px; cursor: pointer; color: inherit; font-size: 13px; line-height: 1; padding: 0; }
.chip-p { border: 1px solid var(--line2); background: #fff; border-radius: 10px; padding: 5px 10px; cursor: pointer; text-align: left; display: flex; flex-direction: column; line-height: 1.25; font: inherit; color: var(--ink); }
.chip-p b { font-size: 13px; } .chip-p small { font-size: 11px; color: var(--muted); }
.chip-p.on { background: var(--ink); border-color: var(--ink); color: #fff; } .chip-p.on small { color: #CFCFCA; }
.chip-p.outro { opacity: .45; }
.evt { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.evt-l { display: grid; grid-template-columns: 120px 1fr auto; gap: 4px 12px; align-items: center; border: 1px solid var(--line); border-left: 4px solid var(--ok); border-radius: 8px; padding: 8px 10px; }
.evt-l.warn { border-left-color: var(--warn); background: var(--warn-soft); }
.evt-d b { display: block; font-size: 13.5px; } .evt-d small { color: var(--muted); font-size: 11.5px; }
.evt-p { font-size: 13px; }
.evt-h { display: flex; align-items: center; gap: 4px; font-size: 12.5px; } .evt-h .inp { width: 104px; }
.evt-s { grid-column: 1 / -1; font-size: 12.5px; color: var(--ok); font-weight: 600; }
.evt-l.warn .evt-s { color: var(--warn); }
.ev-sug { margin-top: 8px; }
.ev-av { margin-top: 10px; } .ev-av p { margin: 4px 0; font-size: 13px; } .ev-av .warn { color: var(--warn); font-weight: 600; }
@media (max-width: 640px) { .evt-l { grid-template-columns: 1fr; } .evc-g { grid-template-columns: 1fr; } .evc-g small { grid-column: 1; } }
@media (max-width: 640px) { .modal .regra { grid-template-columns: 1fr; } .modal .regra .inp { width: 100% !important; } }
.evt-h > span { font-size: 12px; color: var(--muted); font-weight: 700; margin-right: 2px; }
.evt-pl { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.evt-pp { display: grid; grid-template-columns: 90px 110px auto 1fr auto; gap: 8px; align-items: center; font-size: 12.5px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; }
.evt-pp .pap { color: var(--muted); font-size: 11.5px; }
.evt-pp .hh { display: flex; align-items: center; gap: 4px; } .evt-pp .hh .inp { width: 100px; padding: 4px 6px; }
.evt-pp .alm { color: var(--info); font-weight: 600; white-space: nowrap; }
.evt-pp .th { text-align: right; } .evt-pp .th em { font-style: normal; color: var(--warn); font-weight: 700; } .evt-pp .th.mal { color: var(--bad); font-weight: 700; }
.evt-rc { grid-column: 1 / -1; }
.evc-ds { margin-top: 8px; border-top: 1px dashed var(--line2); padding-top: 6px; display: flex; flex-direction: column; gap: 4px; }
.evc-d { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; align-items: baseline; }
.evc-d > b { min-width: 80px; } .evc-p { margin-right: 10px; } .evc-p small { color: var(--info); }
@media (max-width: 640px) { .evt-pp { grid-template-columns: 1fr 1fr; } .evt-pp .hh { grid-column: 1 / -1; } .evt-pp .th { text-align: left; } }
.ev-cfg { border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; margin: 8px 0 10px; background: #FBFBFA; }

/* =================================================================== */
/* Movimento (1.7): entradas, janelas, avisos, abas e escolhas          */
/* =================================================================== */
:root { --ease: cubic-bezier(.2,.8,.2,1); --mola: cubic-bezier(.34,1.56,.64,1); }
@keyframes entra { from { opacity: 0; transform: translateY(12px); } }
@keyframes aparece { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: scale(.92); } }
@keyframes popSai { to { opacity: 0; transform: scale(.96); } }
@keyframes folhaSobe { from { transform: translateY(100%); } }
@keyframes folhaDesce { to { transform: translateY(100%); } }

/* abas: a barrinha desliza até a aba escolhida */
.abas .in { position: relative; }
.abas button { transition: color .2s; }
.abas button:hover { color: var(--ink); }
.abas button[aria-selected="true"] { border-bottom-color: transparent; }
.aba-ind { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--ink); border-radius: 3px 3px 0 0; transition: transform .38s var(--ease), width .38s var(--ease); pointer-events: none; }
.abas .bolha.pula { animation: pula .55s var(--mola); }
@keyframes pula { from { transform: scale(.3); } }

/* a tela entra em cascata ao trocar de aba, mês ou loja */
#vista.entra > *, #vista.entra > .cfg > *, #vista.entra > .cfg > .pilha > * { animation: entra .5s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 45ms); }
#vista.entra > .cfg, #vista.entra > .cfg > .pilha { animation: none; }
#vista.entra .gs tbody tr { animation: linha .45s var(--ease) backwards; animation-delay: calc(140ms + var(--k, 0) * 22ms); }
@keyframes linha { from { opacity: 0; transform: translateY(6px); } }
#vista.entra.prox > .folha-wrap { animation: daDireita .45s var(--ease) backwards; }
#vista.entra.ant > .folha-wrap { animation: daEsquerda .45s var(--ease) backwards; }
@keyframes daDireita { from { opacity: 0; transform: translateX(36px); } }
@keyframes daEsquerda { from { opacity: 0; transform: translateX(-36px); } }
#vista.entra .cal .dia { animation: diaIn .42s var(--ease) backwards; animation-delay: calc(90ms + var(--k, 0) * 11ms); }
@keyframes diaIn { from { opacity: 0; transform: translateY(8px) scale(.96); } }

/* botões, cartões e campos */
.btn { transition: background-color .18s, border-color .18s, color .18s, box-shadow .18s, transform .12s var(--ease); }
.btn:active { transform: scale(.96); }
.btn:not(.sec):not(.ghost):not(.perigo):hover { box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.mesnav button, .topo .sair, .eq td.ord button, .pop .op, .pop .troca, .pop .md, .chip-p, .chip-d button, .modal .mh .x, .pop .cab .x { transition: background-color .15s, border-color .15s, color .15s, transform .12s var(--ease), box-shadow .15s; }
.mesnav button:active, .eq td.ord button:active, .pop .op:active, .pop .troca:active, .chip-p:active, .modal .mh .x:active, .pop .cab .x:active { transform: scale(.94); }
.modal .mh .x:hover, .pop .cab .x:hover { transform: rotate(90deg); }
.pop .md.alvo { transition: transform .18s var(--mola), box-shadow .18s; }
.cal .dia { transition: border-color .2s, transform .22s var(--ease), box-shadow .22s; }
.cal .dia:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.08); }
.evc, .hj { transition: box-shadow .25s, border-color .25s; }
.evc:hover, .hj:hover { box-shadow: 0 6px 18px rgba(0,0,0,.06); border-color: var(--line2); }
.campo input, .campo select, .inp { transition: border-color .15s, box-shadow .2s; }
.conf > summary { transition: background-color .15s; }
.conf > summary:hover { background: #FAFAF8; }
.conf li { transition: background-color .15s, transform .18s var(--ease); }
.conf li:hover { transform: translateX(3px); }
details.abrindo > *:not(summary) { animation: desce .3s var(--ease); }
@keyframes desce { from { opacity: 0; transform: translateY(-6px); } }

/* botões de escolha: a marca preta desliza */
.tog { position: relative; }
.tog button { position: relative; z-index: 1; transition: color .2s; }
.tog button:not([aria-pressed="true"]):hover { background: var(--soft); }
.tog-pill { position: absolute; top: 0; bottom: 0; left: 0; z-index: 0; background: var(--ink); transition: transform .3s var(--ease), width .3s var(--ease); }
.tog.anim button[aria-pressed="true"] { background: transparent; }

/* janelas */
.modal-fundo { animation: aparece .22s ease both; }
.modal-fundo .modal { animation: modalIn .34s var(--mola) both; }
.modal-fundo.sai { animation: modalFundoSai .19s ease forwards; pointer-events: none; }
.modal-fundo.sai .modal { animation: modalSai .19s ease forwards; }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes modalSai { to { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes modalFundoSai { to { opacity: 0; } }

/* painel do dia */
.pop.abre { animation: popIn .26s var(--mola) both; }
.pop.sheet.abre { animation: folhaSobe .34s var(--ease) both; }
.pop.sai { animation: popSai .16s ease forwards; pointer-events: none; }
.pop.sheet.sai { animation: folhaDesce .2s ease forwards; }
.veu { animation: aparece .2s ease both; }
.pop.abre .mini .md { animation: mdIn .34s var(--mola) backwards; }
.pop.abre .mini .md:nth-child(2) { animation-delay: .03s; } .pop.abre .mini .md:nth-child(3) { animation-delay: .06s; }
.pop.abre .mini .md:nth-child(4) { animation-delay: .09s; } .pop.abre .mini .md:nth-child(5) { animation-delay: .12s; }
.pop.abre .mini .md:nth-child(6) { animation-delay: .15s; } .pop.abre .mini .md:nth-child(7) { animation-delay: .18s; }
@keyframes mdIn { from { opacity: 0; transform: translateY(6px) scale(.9); } }
.pop .md.alvo .pt { animation: ponto 1.8s ease-in-out infinite; }
@keyframes ponto { 0% { box-shadow: 0 0 0 0 rgba(30,158,90,.5); } 70%, 100% { box-shadow: 0 0 0 6px rgba(30,158,90,0); } }
.pop .md.alvo.warn .pt { animation-name: pontoW; }
@keyframes pontoW { 0% { box-shadow: 0 0 0 0 rgba(212,154,26,.5); } 70%, 100% { box-shadow: 0 0 0 6px rgba(212,154,26,0); } }

/* avisos */
.toast { animation: toastIn .4s var(--mola) both; }
.toast.sai { animation: toastSai .22s ease forwards; pointer-events: none; }
@keyframes toastIn { from { opacity: 0; transform: translateY(18px) scale(.95); } }
@keyframes toastSai { to { opacity: 0; transform: translateY(10px) scale(.97); } }

/* quadrinhos da escala */
.gs td.c { transition: background-color .2s; }
.gs td.pousou, .folha td.pousou { animation: pousa .55s var(--mola); }
.gs td.pousou.ajustou, .folha td.pousou.ajustou { animation: pousa .55s var(--mola), ajustou 2.8s ease-out; }
@keyframes pousa { 0% { transform: scale(.5); opacity: .2; } 100% { transform: none; opacity: 1; } }
.arr-fant { animation: popIn .22s var(--mola); }
td.alvo-d { animation: alvoD 1.3s ease-in-out infinite; }
td.alvo-t { animation: alvoT 1.3s ease-in-out infinite; }
td.alvo-w { animation: alvoW 1.3s ease-in-out infinite; }
td.sobre { animation: none; }
@keyframes alvoD { 50% { box-shadow: inset 0 0 0 4px rgba(30,158,90,.55); } }
@keyframes alvoT { 50% { box-shadow: inset 0 0 0 4px rgba(47,111,235,.55); } }
@keyframes alvoW { 50% { box-shadow: inset 0 0 0 4px rgba(212,154,26,.6); } }

/* salvo / carregando / abertura */
.salvo.feito i { animation: feito .7s var(--mola); }
@keyframes feito { 0% { transform: scale(.3); box-shadow: 0 0 0 0 rgba(62,207,142,.8); } 60% { transform: scale(1.35); } 100% { transform: none; box-shadow: 0 0 0 9px rgba(62,207,142,0); } }
.carregando { animation: aparece .25s ease .1s both; }
.carregando div { display: flex; align-items: center; gap: 10px; animation: modalIn .34s var(--mola) .1s both; }
.giro { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: login-spin .7s linear infinite; }
.splash img { animation: respira 2.4s ease-in-out infinite; }
.login-page .card { animation: loginIn .6s var(--ease) backwards; }
.login-identity img { animation: entra .6s var(--ease) .1s backwards; }
.login-identity span { animation: aparece .6s ease .28s backwards; }
.login-page .card > label, .login-page .card > .login-password, .login-page .card > .login-hint { animation: entra .5s var(--ease) .2s backwards; }
.login-page .login-submit { animation: entra .5s var(--ease) .28s backwards; }
.login-page .login-submit:active { transform: scale(.98); }
.login-page .erro:not(:empty) { animation: treme .42s; }
@keyframes loginIn { from { opacity: 0; transform: translateY(18px) scale(.98); } }
@keyframes respira { 50% { opacity: .5; transform: scale(.97); } }

/* =================================================================== */
/* Seletor de horas                                                    */
/* =================================================================== */
input.hora { cursor: pointer; font-variant-numeric: tabular-nums; font-weight: 650; letter-spacing: .02em; min-width: 92px; padding-left: 29px !important; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a857f' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") 9px 50% / 15px no-repeat; }
input.hora::placeholder { color: #B9B5AE; font-weight: 500; }
input.hora:hover { border-color: #9A968F; }
input.hora.hs-on { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0,0,0,.08); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23121212' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
input.hora.treme { animation: treme .42s; border-color: var(--bad); }
@keyframes treme { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.pop .hor input.hora { width: 100px; }
.hsel { position: fixed; z-index: 111; width: 304px; background: var(--panel); border: 1px solid var(--line2); border-radius: 16px; box-shadow: 0 18px 50px rgba(0,0,0,.22); padding: 12px; animation: popIn .24s var(--mola) both; -webkit-user-select: none; user-select: none; }
.hsel.sai { animation: popSai .15s ease forwards; pointer-events: none; }
.hsel.sheet { left: 0; right: 0; bottom: 0; top: auto; width: 100%; border-radius: 20px 20px 0 0; padding: 10px 16px calc(16px + env(safe-area-inset-bottom)); animation: folhaSobe .32s var(--ease) both; }
.hsel.sheet::before { content: ""; display: block; width: 38px; height: 4px; border-radius: 4px; background: var(--line2); margin: 0 auto 8px; }
.hsel.sheet.sai { animation: folhaDesce .2s ease forwards; }
.hs-veu { position: fixed; inset: 0; z-index: 110; background: rgba(0,0,0,.32); animation: aparece .2s ease both; }
.hs-cab { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.hs-rot { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.hs-vis { display: flex; align-items: center; gap: 14px; }
.hs-v { font-size: 34px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; min-width: 108px; text-align: center; }
.hs-v i { font-style: normal; color: #B9B5AE; margin: 0 1px; }
.hs-v.vz { color: #C9C7C2; }
.hs-aj { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line2); background: #fff; font-size: 19px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background-color .15s, transform .1s; touch-action: manipulation; color: var(--ink); }
.hs-aj:hover { background: var(--soft); } .hs-aj:active { transform: scale(.88); }
.hs-info { font-size: 12px; color: var(--ok); font-weight: 650; min-height: 17px; text-align: center; }
.hs-info .mal { color: var(--bad); } .hs-info .muted { font-weight: 500; }
.hs-tit { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 10px 2px 5px; }
.hs-h, .hs-m { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; border-radius: 10px; }
.hs-h button, .hs-m button { border: 0; background: var(--soft); border-radius: 9px; height: 34px; font-weight: 700; font-size: 13.5px; cursor: pointer; font-variant-numeric: tabular-nums; color: var(--ink); transition: background-color .15s, color .15s, transform .12s; touch-action: manipulation; }
.hs-h button:hover, .hs-m button:hover { background: #E4E2DD; }
.hs-h button:active, .hs-m button:active { transform: scale(.9); }
.hs-h button.mad { color: #A39F98; background: #F8F8F6; }
.hs-h button[aria-pressed="true"], .hs-m button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.hs-m.chama { animation: chama .6s ease; }
@keyframes chama { 0% { box-shadow: 0 0 0 0 rgba(47,111,235,.45); } 100% { box-shadow: 0 0 0 9px rgba(47,111,235,0); } }
.hs-sug { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.hs-sug button { display: flex; align-items: center; gap: 10px; border: 1px dashed #8CC4A4; background: var(--ok-soft); color: #155C38; border-radius: 10px; padding: 7px 10px; font-size: 12.5px; font-weight: 600; cursor: pointer; text-align: left; transition: background-color .15s, transform .12s; animation: entra .35s var(--ease) .08s backwards; }
.hs-sug button:hover { background: #D3EEDD; } .hs-sug button:active { transform: scale(.97); }
.hs-sug b { font-size: 15px; font-variant-numeric: tabular-nums; }
.hs-rod { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.hs-limpar { border: 0; background: transparent; color: var(--muted); font-weight: 650; cursor: pointer; padding: 6px 4px; border-radius: 8px; }
.hs-limpar:hover { color: var(--bad); }
.hsel.sheet .hs-h button, .hsel.sheet .hs-m button { height: 44px; font-size: 15.5px; }
.hsel.sheet .hs-v { font-size: 40px; }
.hsel.sheet .hs-ok { padding: 11px 26px; font-size: 14.5px; }
@media (max-width: 640px) { .modal-fundo .modal { animation-name: modalSobe; } }
@keyframes modalSobe { from { opacity: 0; transform: translateY(40px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
