/* printEscala · telas de acesso. vitena | comunicação digital. */
@font-face { font-family: 'Instrument Sans'; font-weight: 400; font-display: swap; src: url(fonts/instrument-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-weight: 500; font-display: swap; src: url(fonts/instrument-sans-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-weight: 600; font-display: swap; src: url(fonts/instrument-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-weight: 700; font-display: swap; src: url(fonts/instrument-sans-latin-700-normal.woff2) format('woff2'); }
:root {
  --roxo: #4B4A9E; --roxo-esc: #3f3e8a; --rosa: #F5EAF4; --lilas: #C084D8; --txt: #1A1930; --txt2: #5d5c74;
  --linha: #e4e2ee; --fundo: #f7f6fb; --branco: #fff;
  --ok-txt: #2f7a52; --at-txt: #8a5a12; --ri-txt: #a33a3a;
  --r-card: 20px; --r-bloco: 14px; --r-ctl: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: hidden; }
body { font-family: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; letter-spacing: -0.01em; color: var(--txt); background: var(--fundo); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
h1, h2 { letter-spacing: -0.025em; margin: 0; line-height: 1.15; }
h1 { font-size: 28px; } h2 { font-size: 18px; }
button, input, select { font: inherit; letter-spacing: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--lilas); outline-offset: 2px; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Tela de entrada ---------- */
.ent { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
.ent-marca { background: var(--roxo); color: #fff; padding: 22px 20px 26px; display: flex; flex-direction: column; gap: 18px; position: relative; overflow: hidden; }
.ent-marca-topo { display: flex; align-items: center; gap: 12px; }
.ent-logo { width: 44px; height: 44px; border-radius: 13px; background: #fff; padding: 5px; flex: none; }
.ent-marca-topo strong { display: block; font-size: 19px; letter-spacing: -0.025em; }
.ent-marca-topo span { display: block; font-size: 12.5px; opacity: .78; }
.ent-marca-meio h2 { font-size: 24px; letter-spacing: -0.03em; text-wrap: balance; }
.ent-lista { display: none; list-style: none; margin: 18px 0 0; padding: 0; flex-direction: column; gap: 14px; }
.ent-lista li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; opacity: .95; text-wrap: pretty; }
.ent-lista .ic { width: 36px; height: 36px; border-radius: 11px; background: rgba(255,255,255,.14); display: grid; place-items: center; flex: none; color: #fff; }
.ent-regua { display: none; }
.ent-regua svg { width: 100%; height: 34px; stroke: var(--lilas); stroke-width: 1.4; opacity: .9; }
.ent-form { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 22px 14px 24px; gap: 20px; }
.ent-cartao { width: 100%; max-width: 420px; background: var(--branco); border: 1px solid var(--linha); border-radius: var(--r-card); padding: 26px 22px; display: flex; flex-direction: column; gap: 16px; }
.ent-cartao .sub, .sub { margin: -6px 0 0; color: var(--txt2); font-size: 14.5px; text-wrap: pretty; }
.ent-rodape { margin: 0; font-size: 12.5px; color: var(--txt2); text-align: center; }
.nota { margin: 0; font-size: 13px; color: var(--txt2); text-align: center; }
.divisor { display: flex; align-items: center; gap: 10px; color: var(--txt2); font-size: 12.5px; font-weight: 600; }
.divisor::before, .divisor::after { content: ''; flex: 1; height: 1px; background: var(--linha); }
.pill-largo { width: 100%; min-height: 46px; font-size: 15px; }
@media (min-width: 960px) {
  .ent { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-rows: 1fr; }
  .ent-marca { padding: 44px 52px; justify-content: space-between; }
  .ent-marca-meio { max-width: 470px; }
  .ent-marca-meio h2 { font-size: 40px; line-height: 1.08; }
  .ent-lista { display: flex; margin-top: 30px; }
  .ent-regua { display: block; }
  .ent-form { padding: 40px; justify-content: center; }
  .ent-cartao { padding: 34px 32px; }
}

/* ---------- Formulários ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.campo > span, .campo > legend { font-size: 13px; font-weight: 600; color: var(--txt2); padding: 0; }
.campo input:not([type=radio]):not([type=checkbox]), .campo select { width: 100%; min-width: 0; min-height: 48px; border: 1px solid var(--linha); border-radius: var(--r-ctl); background: var(--branco); padding: 11px 14px; font-size: 16px; }
.campo select { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234B4A9E' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.campo input:focus, .campo select:focus { outline: none; border-color: var(--roxo); box-shadow: 0 0 0 3px rgba(75,74,158,.16); }
.senha-in { position: relative; }
.senha-in input { padding-right: 52px !important; }
.ver-senha { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--txt2); display: grid; place-items: center; cursor: pointer; }
.ver-senha:hover, .ver-senha.on { color: var(--roxo); background: var(--rosa); }
.medidor { height: 6px; border-radius: 999px; background: var(--fundo); border: 1px solid var(--linha); overflow: hidden; }
.medidor i { display: block; height: 100%; width: 0; border-radius: 999px; background: #cfcbe2; transition: width .2s; }
.medidor i.fraca { background: #ec8a8a; } .medidor i.boa { background: #f0b866; } .medidor i.forte { background: #6cc495; }
.medidor-txt { font-size: 12.5px; color: var(--txt2); }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; cursor: pointer; color: var(--txt2); }
.check input, .opcao input { width: 20px; height: 20px; accent-color: var(--roxo); flex: none; margin: 0; }
.opcao { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; padding: 12px; border: 1px solid var(--linha); border-radius: var(--r-bloco); cursor: pointer; }
.opcao input { margin-top: 1px; }
.opcao:has(input:checked) { border-color: var(--roxo); background: var(--rosa); }
.grade-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 460px) { .grade-2 { grid-template-columns: 1fr; } }

/* ---------- Botões (pílula) ---------- */
.pill, .pill-sec, .pill-ghost, .pill-perigo { border-radius: 999px; border: 1px solid transparent; cursor: pointer; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.pill { background: var(--roxo); color: #fff; min-height: 46px; padding: 10px 22px; }
.pill:hover { background: var(--roxo-esc); }
.pill-grande { width: 100%; min-height: 52px; font-size: 16px; }
.pill-sec { background: var(--branco); border-color: var(--linha); color: var(--roxo); min-height: 38px; padding: 7px 14px; font-size: 13.5px; }
.pill-sec:hover { border-color: var(--roxo); }
.pill-perigo { background: var(--branco); border-color: #f1c9c9; color: var(--ri-txt); min-height: 38px; padding: 7px 14px; font-size: 13.5px; }
.pill-perigo:hover { background: #fdf1f1; }
.pill-ghost { background: transparent; color: var(--roxo); min-height: 38px; padding: 7px 13px; font-size: 14px; }
.pill-ghost:hover { background: var(--rosa); }
button.enviando { opacity: .6; cursor: progress; }

/* ---------- Alertas ---------- */
.alerta { display: flex; gap: 10px; align-items: flex-start; border-radius: var(--r-bloco); padding: 11px 14px; font-size: 14px; }
.alerta svg { margin-top: 1px; }
.alerta.erro { background: rgba(236,138,138,.16); color: var(--ri-txt); }
.alerta.ok { background: rgba(108,196,149,.17); color: var(--ok-txt); }
.link-caixa { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; background: var(--branco); border: 1px solid var(--linha); border-radius: var(--r-bloco); padding: 8px; }
.link-caixa input { flex: 1 1 220px; min-width: 0; border: 0; background: var(--fundo); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; color: var(--txt); }

/* ---------- Telas internas ---------- */
.int-topo { position: sticky; top: 0; z-index: 5; background: var(--branco); border-bottom: 1px solid var(--linha); }
.int-topo-in { max-width: 1180px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.int-marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.int-marca img { width: 32px; height: 32px; border-radius: 9px; }
.so-mob { display: none; }
@media (max-width: 640px) { .so-desk { display: none; } .so-mob { display: inline; } .int-marca small { display: none; } .int-nav { width: 100%; justify-content: space-between; } .int-nav .pill-ghost { padding: 7px 9px; font-size: 13.5px; } }
.int-marca span { display: flex; flex-direction: column; line-height: 1.1; }
.int-marca strong { color: var(--roxo); font-size: 17px; letter-spacing: -0.025em; }
.int-marca small { font-size: 11.5px; color: var(--txt2); }
.int-nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.int-nav form { margin: 0; }
.int { max-width: 1180px; margin: 0 auto; padding: 20px 14px 40px; display: flex; flex-direction: column; gap: 16px; }
.int-cab { display: flex; flex-direction: column; gap: 10px; }
.int-grade { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
@media (min-width: 980px) { .int-grade { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); } }
.cartao { background: var(--branco); border: 1px solid var(--linha); border-radius: var(--r-card); padding: 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dados { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
.dados dt { color: var(--txt2); } .dados dd { margin: 0; font-weight: 600; word-break: break-word; }
.usuarios { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.usr { border: 1px solid var(--linha); border-radius: var(--r-bloco); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.usr-topo { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.usr-id { display: flex; gap: 12px; align-items: center; min-width: 0; }
.usr-id div { display: flex; flex-direction: column; min-width: 0; }
.usr-id strong { font-size: 15px; word-break: break-word; }
.usr-id strong small { font-weight: 500; color: var(--txt2); }
.usr-id span:not(.avatar) { font-size: 13px; color: var(--txt2); word-break: break-all; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--rosa); color: var(--roxo); display: grid; place-items: center; font-weight: 700; flex: none; }
.usr-selos { display: flex; gap: 6px; flex-wrap: wrap; }
.selo { border-radius: 999px; padding: 4px 11px; font-size: 12.5px; font-weight: 600; }
.selo.ok { background: rgba(108,196,149,.18); color: var(--ok-txt); }
.selo.at { background: rgba(240,184,102,.22); color: var(--at-txt); }
.selo.ri { background: rgba(236,138,138,.2); color: var(--ri-txt); }
.selo.neutro { background: var(--fundo); color: var(--txt2); }
.usr-info { margin: 0; font-size: 13px; color: var(--txt2); }
.usr-acoes { display: flex; gap: 6px; flex-wrap: wrap; }
.usr-acoes form { margin: 0; }
