/* Kit visual da Aluguemaq, marca V2 (cores tiradas do logo). Nomes das variáveis mantidos do protótipo. */
:root {
  --bg-app: #E9E7E3;          /* Concreto */
  --bg-sidebar: #1E1A17;      /* Obra */
  --bg-card: #FFFFFF;
  --bg-soft: #F3F1EE;
  --terracotta: #C4501D;      /* Tijolo botão: texto branco com contraste */
  --tijolo: #E1632C;          /* Tijolo: cor da marca */
  --telha: #83191B;
  --reboco: #FAC49C;
  --terracotta-hover: #A94418;
  --terracotta-soft: #FBE0D2;
  --amber: #C98A2B;
  --amber-soft: #F5E6C8;
  --good: #2F8F5B;
  --good-soft: #DCEADF;
  --blue: #2C5A8A;
  --blue-soft: #DDE7F2;
  --text-main: #1E1A17;
  --text-mute: #6B6058;
  --text-faint: #8F857C;
  --border: #D3CEC7;
  --radius-card: 14px;
  --radius-pill: 999px;
  --font-display: 'Archivo', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Barlow', 'Segoe UI', Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-body); font-size: 15px; background: var(--bg-app); color: var(--text-main); height: 100vh; overflow: hidden; }
[hidden] { display: none !important; }

/* ===== Login ===== */
#tela-login { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; gap: 28px; padding: 16px; }
.login-brand { display: flex; align-items: center; gap: 12px; }
.login-mark { width: 52px; height: 52px; display: block; }
.login-title { font-family: var(--font-display); font-weight: 900; font-stretch: 72%; font-size: 30px; line-height: .95; text-transform: uppercase; }
.login-title span { display: block; font-family: var(--font-body); font-weight: 500; font-stretch: 100%; font-size: 13.5px; text-transform: none; color: var(--text-mute); margin-top: 4px; }
.login-box { width: 100%; max-width: 320px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 30px 26px; }
.campo { display: block; margin-bottom: 14px; }
.campo span { display: block; font-size: 13px; font-weight: 600; color: var(--text-mute); margin-bottom: 6px; }
.campo input { width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--border); font-size: 15px; font-family: var(--font-body); color: var(--text-main); background: #fff; }
.campo input:focus { outline: 2px solid var(--terracotta-soft); border-color: var(--terracotta); }
.login-erro { font-size: 12.5px; color: var(--terracotta); margin: 0 0 12px; }
.btn-entrar { width: 100%; padding: 12px; border-radius: 10px; border: none; background: var(--terracotta); color: #fff; font-weight: 700; font-size: 14px; font-family: var(--font-body); cursor: pointer; }
.btn-entrar:hover { background: var(--terracotta-hover); }
.btn-entrar:disabled { opacity: .6; cursor: wait; }
.login-note { font-size: 12px; color: var(--text-faint); max-width: 320px; text-align: center; margin: 0; }
#aparelho-situacao { font-size: 14px; color: var(--text-mute); }
.btn-liberar { min-height: 48px; width: 100%; max-width: 320px; margin-top: 8px; border: 1px solid var(--border); border-radius: 10px; background: transparent; color: var(--text-mute); font-size: 16px; font-family: var(--font-body); cursor: pointer; }
.btn-liberar:hover { background: var(--bg-soft); }
.lembrar-senha { display: flex; align-items: center; gap: 10px; min-height: 48px; margin: -4px 0 8px; font-size: 16px; color: var(--text-main); cursor: pointer; }
.lembrar-senha input { width: 22px; height: 22px; accent-color: var(--terracotta); }
.pedidos-lista { display: flex; flex-direction: column; gap: 12px; margin: 14px 0; }
.pedido-item { border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.pedido-item p { margin: 0 0 12px; font-size: 16px; }
.pedido-item p span { display: block; color: var(--text-mute); font-size: 15px; }
.pedido-botoes { display: flex; gap: 10px; flex-wrap: wrap; }
.pedido-botoes .btn { flex: 1; min-height: 48px; }
.liberar-texto { font-size: 15px; color: var(--text-main); margin: 0 0 16px; line-height: 1.4; }

/* ===== Área logada ===== */
#tela-app { height: 100vh; display: flex; flex-direction: column; }
.topo { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; background: var(--bg-sidebar); color: #fff; padding: 10px 16px; flex-shrink: 0; }
.topo .marca { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 900; font-stretch: 75%; font-size: 17px; text-transform: uppercase; letter-spacing: .01em; }
.topo .marca .mark { width: 28px; height: 28px; display: block; }
.topo .divisor { width: 1px; height: 20px; background: rgba(255,255,255,0.18); }
.quem { font-size: 12.5px; color: #CFD3C7; }
.quem b { color: #fff; }
.ver-como { display: flex; flex-wrap: wrap; gap: 8px; }
.ver-como button { font-size: 12px; padding: 6px 12px; border-radius: var(--radius-pill); background: rgba(255,255,255,0.08); color: #CFD3C7; border: 1px solid rgba(255,255,255,0.14); cursor: pointer; font-family: var(--font-body); display: inline-flex; align-items: center; gap: 5px; }
.ver-como button:hover { background: rgba(255,255,255,0.16); color: #fff; }
.ver-como button.ativo { background: var(--terracotta); color: #fff; border-color: var(--terracotta); }
.aviso-prototipo { background: var(--reboco); color: #7A5410; font-size: 12px; padding: 7px 16px; flex-shrink: 0; }
#conteudo { flex: 1; border: none; width: 100%; }

/* ===== Carregando: compactador pulando ===== */
#carregando { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: rgba(233, 231, 227, .94); --cor-marca: var(--tijolo); --cor-estrutura: var(--bg-sidebar); --cor-fundo: var(--bg-app); }
#carregando[hidden] { display: none !important; }
.carregando-caixa { text-align: center; }
.carregando-caixa svg { width: 120px; height: auto; display: block; margin: 0 auto; }
.carregando-caixa p { margin: 8px 0 0; font-size: 13px; color: var(--text-mute); }

/* ===== Mostrar senha ===== */
.senha-caixa { position: relative; }
.senha-caixa input { padding-right: 88px; }
.btn-ver-senha { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--terracotta); font: 600 13px var(--font-body); padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.btn-ver-senha:hover { background: var(--terracotta-soft); }

/* ===== Botões do topo ===== */
.quem-papel { color: #CFD3C7; }
.topo-acoes { margin-left: auto; display: flex; gap: 4px; }
.btn-topo { font-size: 13px; color: #CFD3C7; background: none; border: none; cursor: pointer; display: flex; align-items: center; gap: 6px; font-family: var(--font-body); padding: 8px 10px; border-radius: 8px; }
.btn-topo:hover { color: #fff; background: rgba(255,255,255,0.08); }
.ver-como { order: 3; }
.topo-acoes { order: 4; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--reboco); outline-offset: 2px; }

/* ===== Aviso sem internet ===== */
.aviso-offline { background: var(--telha); color: #fff; font-size: 13px; font-weight: 600; padding: 8px 16px; flex-shrink: 0; display: flex; align-items: center; gap: 8px; }

/* ===== Guia rápido ===== */
#balcao, #pedidos-acesso { border: none; border-radius: var(--radius-card); padding: 0; width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 32px); color: var(--text-main); box-shadow: 0 20px 60px rgba(30, 26, 23, .35); }
#balcao::backdrop, #pedidos-acesso::backdrop { background: rgba(30, 26, 23, .7); }
#balcao h2, #pedidos-acesso h2 { font-family: var(--font-display); font-weight: 900; font-stretch: 75%; font-size: 26px; text-transform: uppercase; line-height: 1; margin: 0 0 8px; }
.balcao-nomes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.balcao-nomes button { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 14px; border-radius: 12px; border: 2px solid var(--border); background: var(--bg-card); color: var(--text-main); font: 700 17px var(--font-body); text-align: left; cursor: pointer; }
.balcao-nomes button:hover, .balcao-nomes button:focus-visible { border-color: var(--terracotta); background: var(--terracotta-soft); }
.balcao-inicial { width: 36px; height: 36px; border-radius: 50%; background: var(--reboco); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; flex: none; }
.btn-balcao { display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 4px 12px; border-radius: 10px; border: 1px solid #5A4F47; background: none; color: #fff; font: 15px var(--font-body); cursor: pointer; }
.btn-balcao:hover { background: rgba(255,255,255,0.08); }
.balcao-trocar { color: var(--reboco); font-weight: 600; text-decoration: underline; }
@media (max-width: 520px) { .balcao-nomes { grid-template-columns: 1fr; } }
#guia { border: none; border-radius: var(--radius-card); padding: 0; width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 32px); color: var(--text-main); box-shadow: 0 20px 60px rgba(30, 26, 23, .35); }
#guia::backdrop { background: rgba(30, 26, 23, .55); }
.guia-caixa { padding: 26px 24px 22px; }
.guia-mark { width: 44px; height: 44px; display: block; margin-bottom: 12px; }
#guia h2 { font-family: var(--font-display); font-weight: 900; font-stretch: 75%; font-size: 26px; text-transform: uppercase; line-height: 1; margin: 0 0 8px; }
.guia-sub { margin: 0 0 16px; color: var(--text-mute); line-height: 1.45; }
.guia-passos { margin: 0 0 16px; padding: 0; list-style: none; counter-reset: passo; }
.guia-passos li { counter-increment: passo; position: relative; padding: 0 0 12px 40px; line-height: 1.45; }
.guia-passos li::before { content: counter(passo); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%; background: var(--tijolo); color: #fff; font: 800 14px var(--font-display); display: flex; align-items: center; justify-content: center; }
.guia-passos li:last-child { color: var(--text-mute); }
.guia-passos li:last-child::before { background: var(--reboco); color: var(--telha); }
.guia-nota { font-size: 13px; color: var(--text-faint); margin: 0 0 16px; }

/* ===== Celular ===== */
@media (max-width: 700px) {
  .so-computador { display: none; }
  .topo { padding: 8px 12px; gap: 8px 10px; }
  .topo .marca-nome, .topo .divisor, .quem-papel { display: none; }
  .quem { font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ver-como { order: 5; width: 100%; flex-wrap: nowrap; overflow-x: auto; }
  .ver-como button { flex-shrink: 0; font-size: 13px; padding: 7px 12px; }
  .aviso-prototipo { padding: 6px 12px; }
}
