/* Painel World Tec: mesma família visual do site (preto, laranja da logo, degradês). */
:root {
  --fundo: #f3f4f7;
  --superficie: #fff;
  --superficie-2: #f7f8fa;
  --borda: #e6e7ec;
  --texto: #18181b;
  --texto-2: #6b6b76;
  --texto-3: #9a9aa6;
  --laranja: #fb7b16;
  --laranja-escuro: #d9600a;
  --bordo: #7a1f33;
  --verde: #16803c;
  --verde-fundo: #e7f6ec;
  --vermelho: #c42b2b;
  --vermelho-fundo: #fdecec;
  --amarelo: #a86200;
  --amarelo-fundo: #fff4de;
  --azul: #2357c5;
  --azul-fundo: #e9effc;
  --lateral: 252px;
  --raio: 16px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --grad-laranja: linear-gradient(180deg, #ffa046 0%, #fb7b16 52%, #ec5f06 100%);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: Geist, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.45;
  color: var(--texto); background: var(--fundo); -webkit-font-smoothing: antialiased;
  caret-color: var(--laranja); accent-color: var(--laranja);
}
::selection { background: var(--laranja); color: #111; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--laranja); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num, .tabela td.num, .tabela th.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.mono { font-family: "Geist Mono", ui-monospace, monospace; font-size: .92em; }
.muted { color: var(--texto-2); }
.pequeno { font-size: 13px; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border: 0; border-radius: 11px; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease-out), box-shadow .2s var(--ease-out), transform .15s var(--ease-out), opacity .2s;
}
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-prim { background: var(--grad-laranja); color: #140800; box-shadow: 0 8px 20px -10px rgba(251, 123, 22, .8), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-prim:hover:not(:disabled) { box-shadow: 0 10px 24px -10px rgba(251, 123, 22, 1), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-sec { background: var(--superficie); color: var(--texto); box-shadow: inset 0 0 0 1px var(--borda); }
.btn-sec:hover:not(:disabled) { box-shadow: inset 0 0 0 1px #c9cad2; background: var(--superficie-2); }
.btn-escuro { background: #18181b; color: #fff; }
.btn-escuro:hover:not(:disabled) { background: #2a2a2f; }
.btn-perigo { background: var(--vermelho); color: #fff; }
.btn-perigo:hover:not(:disabled) { background: #a82222; }
.btn-pq { min-height: 32px; padding: 0 11px; font-size: 13px; border-radius: 9px; }
.btn-largo { width: 100%; }
.link { border: 0; background: none; padding: 0; color: var(--laranja-escuro); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.icone-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px;
  background: transparent; color: inherit; text-decoration: none; transition: background-color .2s var(--ease-out);
}
.icone-btn:hover { background: rgba(0, 0, 0, .06); }
.icone { flex: none; }

/* ---------- moldura ---------- */
.moldura { min-height: 100vh; }
.lateral {
  position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--lateral); display: flex; flex-direction: column; gap: 8px;
  padding: 18px 12px; color: #e8e8ec; overflow-y: auto;
  background:
    radial-gradient(260px 200px at 0% 100%, rgba(251, 123, 22, .22), transparent 70%),
    radial-gradient(240px 220px at 100% 0%, rgba(122, 31, 51, .45), transparent 70%),
    linear-gradient(180deg, #121014, #0a0a0b);
}
.lateral::after {
  content: ""; position: absolute; right: -70px; bottom: 90px; width: 220px; aspect-ratio: 314 / 364; pointer-events: none;
  background: url("../../img/maca.svg") center / contain no-repeat; opacity: .08;
}
.lateral-marca { display: block; padding: 6px 10px 18px; }
.lateral-marca img { height: 34px; width: auto; }
.lateral-nav { display: grid; gap: 2px; }
.lateral-item {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px;
  color: #b9b9c2; text-decoration: none; font-weight: 500; transition: background-color .2s var(--ease-out), color .2s var(--ease-out);
}
.lateral-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.lateral-item.ativo { color: #fff; background: linear-gradient(90deg, rgba(251, 123, 22, .22), rgba(251, 123, 22, .04)); }
.lateral-item.ativo::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--laranja); }
.lateral-item.ativo .icone { color: var(--laranja); }
.lateral-pe { margin-top: auto; display: grid; gap: 6px; position: relative; z-index: 1; }
.usuario { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.usuario-avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-laranja); color: #140800; font-weight: 700; }
.usuario-txt { display: grid; min-width: 0; flex: 1; }
.usuario-txt strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usuario-txt small { font-size: 12px; color: #9a9aa6; }
.usuario .icone-btn:hover { background: rgba(255, 255, 255, .1); }
.topo-movel { display: none; }
.veu { display: none; }
.conteudo { margin-left: var(--lateral); padding: 28px clamp(16px, 3vw, 40px) 64px; max-width: calc(1320px + var(--lateral)); }

/* ---------- cabeçalho de tela ---------- */
.tela-cab { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.tela-cab h1 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.tela-cab p { color: var(--texto-2); margin-top: 4px; }
.tela-acoes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- cartões, grades e indicadores ---------- */
.cartao { background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio); padding: 18px; }
.cartao + .cartao { margin-top: 16px; }
.cartao-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cartao-cab h2, .cartao-cab h3 { font-size: 16px; }
.grade-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grade-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.indicadores { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 18px; }
.indicador {
  position: relative; overflow: hidden; display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--raio);
  background: var(--superficie); border: 1px solid var(--borda);
}
.indicador-rotulo { font-size: 13px; color: var(--texto-2); }
.indicador-valor { font-size: 24px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.indicador-detalhe { font-size: 12.5px; color: var(--texto-2); }
.indicador.destaque { color: #fff; border: 0; background: radial-gradient(240px 160px at 100% 0%, rgba(255, 210, 150, .45), transparent 60%), linear-gradient(135deg, #ff9a3c, #f26a0c 55%, #b8350a); }
.indicador.destaque .indicador-rotulo, .indicador.destaque .indicador-detalhe { color: rgba(255, 255, 255, .85); }
.indicador.escuro { color: #fff; border: 0; background: radial-gradient(240px 160px at 100% 0%, rgba(251, 123, 22, .35), transparent 60%), linear-gradient(135deg, #1d1416, #0b0b0c); }
.indicador.escuro .indicador-rotulo, .indicador.escuro .indicador-detalhe { color: #b9b9c2; }
.indicador.bom .indicador-valor { color: var(--verde); }
.indicador.ruim .indicador-valor { color: var(--vermelho); }

/* ---------- tabelas ---------- */
.tabela-wrap { overflow-x: auto; border: 1px solid var(--borda); border-radius: var(--raio); background: var(--superficie); }
.tabela { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabela th { text-align: left; font-weight: 600; font-size: 12.5px; color: var(--texto-2); padding: 11px 14px; background: var(--superficie-2); border-bottom: 1px solid var(--borda); white-space: nowrap; }
.tabela td { padding: 11px 14px; border-bottom: 1px solid #f0f1f4; vertical-align: middle; }
.tabela tr:last-child td { border-bottom: 0; }
.tabela tbody tr { transition: background-color .15s; }
.tabela tbody tr.clicavel { cursor: pointer; }
.tabela tbody tr.clicavel:hover { background: #fff8f2; }
.miniatura { width: 44px; height: 44px; border-radius: 10px; object-fit: contain; background: var(--superficie-2); }
.bolinha { display: inline-block; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); vertical-align: middle; }

/* ---------- formulários ---------- */
.grade-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.campo { display: grid; gap: 6px; min-width: 0; }
.campo-largo { grid-column: 1 / -1; }
.campo-rotulo { font-size: 13px; font-weight: 600; color: #3a3a42; }
.campo-dica { font-size: 12px; color: var(--texto-2); }
.campo-erro { font-size: 12px; color: var(--vermelho); }
.campo input, .campo select, .campo textarea, .entrada {
  width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid #d9dae1; border-radius: 10px; background: #fff;
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.campo textarea { min-height: 90px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus, .entrada:focus { outline: none; border-color: var(--laranja); box-shadow: 0 0 0 3px rgba(251, 123, 22, .18); }
.campo input[type="color"] { padding: 4px; height: 40px; }
.caixa-marcar { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.caixa-marcar input { width: 18px; height: 18px; }

/* ---------- busca, abas, filtros ---------- */
.busca { position: relative; display: flex; align-items: center; color: var(--texto-2); }
.busca .icone { position: absolute; left: 12px; pointer-events: none; }
.busca input { min-height: 40px; width: min(320px, 100%); padding: 0 12px 0 38px; border: 1px solid #d9dae1; border-radius: 10px; background: #fff; }
.busca input:focus { outline: none; border-color: var(--laranja); box-shadow: 0 0 0 3px rgba(251, 123, 22, .18); }
.barra-filtros { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.abas { display: inline-flex; padding: 3px; border-radius: 12px; background: #e8e9ee; gap: 2px; overflow-x: auto; max-width: 100%; }
.abas button { border: 0; background: transparent; padding: 7px 13px; border-radius: 9px; font-size: 13.5px; font-weight: 500; color: var(--texto-2); white-space: nowrap; }
.abas button[aria-selected="true"] { background: #fff; color: var(--texto); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }

/* ---------- selos ---------- */
.selo { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.selo-neutro { background: #eeeff3; color: #4a4a55; }
.selo-ok { background: var(--verde-fundo); color: var(--verde); }
.selo-alerta { background: var(--amarelo-fundo); color: var(--amarelo); }
.selo-perigo { background: var(--vermelho-fundo); color: var(--vermelho); }
.selo-info { background: var(--azul-fundo); color: var(--azul); }
.selo-laranja { background: #fff0e3; color: var(--laranja-escuro); }

/* ---------- estados ---------- */
.vazio { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 40px 20px; color: var(--texto-2); border: 1px dashed #d6d7de; border-radius: var(--raio); background: var(--superficie); }
.vazio strong { color: var(--texto); font-size: 16px; }
.carregando { display: flex; align-items: center; gap: 12px; padding: 28px; color: var(--texto-2); }
.girando { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #e2e3e8; border-top-color: var(--laranja); animation: girar .8s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
.erro-caixa { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--vermelho-fundo); color: var(--vermelho); font-weight: 500; }
.tela-cheia { min-height: 100vh; display: grid; place-items: center; padding: 16px; }

/* ---------- barras ---------- */
.barras { display: grid; gap: 10px; }
.barra-linha { display: grid; grid-template-columns: minmax(90px, 160px) 1fr auto; gap: 12px; align-items: center; font-size: 13.5px; }
.barra-rotulo { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barra-trilho { height: 10px; border-radius: 6px; background: #eeeff3; overflow: hidden; }
.barra { display: block; height: 100%; border-radius: 6px; background: var(--grad-laranja); transition: width .6s var(--ease-out); }
.barra.verde { background: linear-gradient(90deg, #34c46a, #16803c); }
.barra.vermelha { background: linear-gradient(90deg, #f07a7a, #c42b2b); }
.barra.azul { background: linear-gradient(90deg, #6f9bf5, #2357c5); }
.barra-valor { font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---------- modal ---------- */
.modal { border: 0; padding: 0; width: min(var(--largura, 640px), calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); border-radius: 20px; background: var(--superficie); color: var(--texto); }
.modal::backdrop { background: rgba(10, 10, 12, .5); backdrop-filter: blur(4px); }
.modal[open] { animation: modal-entra .22s var(--ease-out); }
@keyframes modal-entra { from { opacity: 0; transform: scale(.96); } }
.modal-in { display: flex; flex-direction: column; max-height: calc(100dvh - 24px); }
.modal-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 12px 22px; border-bottom: 1px solid var(--borda); }
.modal-cab h2 { font-size: 18px; }
.modal-corpo { padding: 18px 22px 22px; overflow-y: auto; }
.modal-acoes { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.confirmar-texto { font-size: 15px; }

/* ---------- avisos ---------- */
.avisos { position: fixed; z-index: 100; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); display: grid; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.avisos[popover] { inset: auto 16px calc(16px + env(safe-area-inset-bottom)) auto; margin: 0; padding: 0; border: 0; background: transparent; overflow: visible; color: inherit; }
.avisos[popover]:not(:popover-open) { display: none; }
.aviso { padding: 12px 16px; border-radius: 12px; color: #fff; font-weight: 500; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .45); animation: aviso-entra .25s var(--ease-out); }
.aviso-ok { background: #18181b; }
.aviso-ok::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: #34c46a; vertical-align: middle; }
.aviso-erro { background: var(--vermelho); }
@keyframes aviso-entra { from { opacity: 0; transform: translateY(10px); } }

/* ---------- login ---------- */
.login {
  position: relative; isolation: isolate; overflow: hidden; min-height: 100vh; min-height: 100dvh; color: #f4f4f6;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr); align-items: center;
  background: #060607;
}
.login-luz {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(700px 520px at 18% 78%, rgba(251, 123, 22, .34), transparent 62%),
    radial-gradient(640px 520px at 62% 8%, rgba(122, 31, 51, .62), transparent 62%),
    radial-gradient(520px 420px at 100% 100%, rgba(251, 123, 22, .14), transparent 60%),
    linear-gradient(180deg, #0b0a0c, #050505);
}
.login-luz::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 30% 50%, #000 20%, transparent 70%);
}
.login-maca {
  position: absolute; z-index: -1; left: 8%; top: 50%; height: 118vh; width: auto; max-width: none; pointer-events: none;
  transform: translateY(-50%) rotate(-6deg); opacity: .12; filter: drop-shadow(0 0 40px rgba(255, 255, 255, .25));
}
.login-marca { position: relative; padding: 56px clamp(32px, 6vw, 96px); display: grid; gap: 22px; align-content: center; min-height: 100vh; }
.login-logo { width: 230px; height: auto; }
.login-marca h2 { font-size: clamp(2.2rem, 3.8vw, 3.6rem); letter-spacing: -0.04em; line-height: 1.02; max-width: 12ch; }
.grad { background: linear-gradient(92deg, #ffc27a 0%, #fb7b16 40%, #ff5a1f 72%, #c2410c 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-marca > p { color: #b9b9c2; font-size: 17px; max-width: 34ch; }
.login-modulos { position: relative; z-index: 1; list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; max-width: 430px; }
.login-modulos li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: #e8e8ec;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); backdrop-filter: blur(6px);
}
.login-modulos .icone { color: var(--laranja); }
.login-aparelhos { position: absolute; right: 0; bottom: 3%; width: min(34%, 300px); aspect-ratio: 1; pointer-events: none; }
.login-aparelhos img { position: absolute; width: 78%; height: auto; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .7)); animation: flutua-entra 1.2s var(--ease-out) both; }
.aparelho-a { left: 0; bottom: 0; transform: rotate(-10deg); }
.aparelho-b { right: 0; top: 0; transform: rotate(8deg); opacity: .9; animation-delay: .12s !important; }
@keyframes flutua-entra { from { opacity: 0; translate: 0 30px; } }

.login-lado { position: relative; display: grid; justify-items: center; align-content: center; gap: 18px; padding: 40px 24px; min-height: 100vh; }
.login-logo-movel { display: none; }
.login-caixa {
  position: relative; width: min(420px, 100%); display: grid; gap: 16px; padding: 34px 30px 28px; border-radius: 28px;
  background: linear-gradient(180deg, rgba(28, 22, 24, .82), rgba(14, 12, 13, .86));
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  animation: caixa-entra .6s var(--ease-out) both;
}
.login-caixa::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(251, 123, 22, .65), transparent 35%, transparent 70%, rgba(122, 31, 51, .8));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
@keyframes caixa-entra { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.login-cab { display: grid; gap: 6px; margin-bottom: 4px; }
.login-cab h1 { font-size: 26px; letter-spacing: -0.03em; }
.login-cab p { color: #a9a9b3; font-size: 14.5px; }
.login-selo { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #ffb062; background: rgba(251, 123, 22, .12); border: 1px solid rgba(251, 123, 22, .3); margin-bottom: 6px; }
.login-campo { display: grid; gap: 7px; }
.login-rotulo { font-size: 13px; font-weight: 600; color: #d4d4da; }
.login-entrada {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 14px; border-radius: 14px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); color: #8c8c96;
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out), background-color .2s var(--ease-out);
}
.login-entrada:focus-within { border-color: rgba(251, 123, 22, .8); background: rgba(251, 123, 22, .05); box-shadow: 0 0 0 4px rgba(251, 123, 22, .16); color: var(--laranja); }
.login-entrada input { flex: 1; min-width: 0; height: 48px; border: 0; background: transparent; color: #fff; font-size: 15.5px; outline: none; }
.login-entrada input::placeholder { color: #6e6e78; }
.login-entrada input:-webkit-autofill { -webkit-text-fill-color: #fff; transition: background-color 9999s; }
.login-olho { display: grid; place-items: center; width: 34px; height: 34px; margin-right: -6px; border: 0; border-radius: 9px; background: transparent; color: #9a9aa6; }
.login-olho:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.login-esqueci { justify-self: end; margin-top: -6px; border: 0; background: none; padding: 0; color: #c9c9d1; font-size: 13px; font-weight: 500; }
.login-esqueci:hover { color: var(--laranja); }
.login-aviso { font-size: 14px; font-weight: 500; padding: 10px 12px; border-radius: 12px; }
.login-aviso.erro { color: #ffb4b4; background: rgba(196, 43, 43, .16); border: 1px solid rgba(196, 43, 43, .4); }
.login-aviso.ok { color: #9ff0bd; background: rgba(22, 128, 60, .16); border: 1px solid rgba(52, 196, 106, .35); }
.login-botao { min-height: 52px; border-radius: 14px; font-size: 15.5px; margin-top: 4px; box-shadow: 0 16px 34px -14px rgba(251, 123, 22, .9), inset 0 1px 0 rgba(255, 255, 255, .4); }
.login-botao .girando { border-color: rgba(20, 8, 0, .25); border-top-color: #140800; }
.login-troca { text-align: center; color: #a9a9b3; font-size: 14px; }
.login-troca button { border: 0; background: none; padding: 0; color: #ffa046; font-weight: 600; }
.login-troca button:hover { color: #ffc27a; text-decoration: underline; text-underline-offset: 3px; }
.login-rodape { color: #6e6e78; font-size: 12.5px; }

@media (max-width: 960px) {
  .login { grid-template-columns: 1fr; }
  .login-marca { display: none; }
  .login-maca { left: 50%; top: 42%; height: 90vh; transform: translate(-30%, -50%) rotate(8deg); opacity: .1; }
  .login-lado { padding: calc(28px + env(safe-area-inset-top)) 18px calc(24px + env(safe-area-inset-bottom)); align-content: start; gap: 22px; }
  .login-logo-movel { display: block; width: 170px; height: auto; margin: 10px 0 6px; }
  .login-caixa { padding: 26px 20px 22px; border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .login-aparelhos img, .login-caixa { animation: none; }
}

/* ---------- celular ---------- */
@media (max-width: 980px) {
  .grade-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .lateral { transform: translateX(-100%); visibility: hidden; transition: transform .35s var(--ease-drawer), visibility 0s linear .35s; }
  .menu-aberto .lateral { transform: none; visibility: visible; transition: transform .35s var(--ease-drawer), visibility 0s; box-shadow: 20px 0 60px rgba(0, 0, 0, .4); }
  .veu { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(0, 0, 0, .45); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease-out); }
  .menu-aberto .veu { opacity: 1; pointer-events: auto; }
  .topo-movel {
    position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 8px 10px; padding-top: calc(8px + env(safe-area-inset-top)); color: #fff; background: #0b0b0c;
  }
  .topo-movel img { height: 28px; width: auto; }
  .topo-movel .icone-btn:hover { background: rgba(255, 255, 255, .1); }
  .conteudo { margin-left: 0; padding: 20px 14px 72px; }
  .grade-2, .grade-3, .grade-form { grid-template-columns: 1fr; }
  .tela-cab { align-items: stretch; }
  .tela-acoes { width: 100%; }
  .busca, .busca input { width: 100%; }
  .modal { width: 100vw; max-height: 94dvh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .modal[open] { animation: modal-sobe .3s var(--ease-drawer); }
  @keyframes modal-sobe { from { transform: translateY(100%); } }
  .modal-in { max-height: 94dvh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .15s !important; transition-duration: .15s !important; }
  .girando { animation-duration: 1.6s !important; }
}

/* ---------- impressão (contratos, recibos) ---------- */
@media print {
  .lateral, .topo-movel, .veu, .tela-cab .tela-acoes, .avisos, .nao-imprimir { display: none !important; }
  .conteudo { margin: 0; padding: 0; max-width: none; }
  body { background: #fff; }
}
