/* CONCRETO — estilo das telas de entrada, cadastro, plataforma e das telas novas (Obras, Concreteira, Insumos, Unidades, Trilhos).
   Mesmo visual da tela da Fábrica (padrao.css): cabeçalho preto, fundo cinza-claro, cartões brancos, botões pretos.
   --cor e --cor-texto são a cor da empresa (CONCRETO.aplicarMarca); aparecem na faixa do cabeçalho. */

:root {
  --cimento: #f4f5f7;   /* fundo */
  --laje: #FFFFFF;      /* superfícies */
  --grafite: #111111;   /* texto forte e botões */
  --brita: #6b7280;     /* texto secundário */
  --junta: #dde0e8;     /* bordas */
  --junta2: #c8ccd6;
  --campo: #f0f1f4;
  --cor: #E0A100;
  --cor-texto: #1a1a1a;
  --erro: #dc2626;
  --ok: #16a34a;
  --titulo: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --texto: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --sombra: 0 1px 3px rgba(0,0,0,.08);
  /* mesmos nomes do padrao.css (blocos compartilhados, como a equipe do dia) */
  --sf:#fff;--sf2:#f0f1f4;--bd:#dde0e8;--bd2:#c8ccd6;--tx:#1a1a1a;--tx2:#6b7280;--gd:#3a3f52;--bk:#111;
  --gr:#16a34a;--grb:#dcfce7;--rd:#dc2626;--rdb:#fee2e2;--yw:#d97706;--ywb:#fef3c7;--bl:#2563eb;--blb:#dbeafe;--pu:#7c3aed;--pub:#ede9fe;
  --sh:0 1px 3px rgba(0,0,0,.08);--r:8px;--rl:12px;
}
.empty{text-align:center;color:var(--tx2);padding:24px;font-size:13px;}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cimento); color: #1a1a1a; font: 400 14px/1.5 var(--texto); }

h1, h2, h3 { font-family: var(--titulo); font-weight: 800; line-height: 1.2; margin: 0; color: var(--grafite); }
h1 { font-size: 1.25rem; }
h2 { font-size: 1rem; }
h3 { font-size: .9375rem; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.secundario { color: var(--brita); }
.pequeno { font-size: .8125rem; }

/* ---------- formulários ---------- */

.campo { display: grid; gap: 5px; align-content: start; margin-bottom: 14px; }
.campo > .botao { justify-self: start; }
.campo > .botao.largo { justify-self: stretch; }
.campo label, .rotulo, .rotulo-campo {
  font-size: 11px; color: var(--brita); letter-spacing: .05em; text-transform: uppercase; font-weight: 600;
}
.campo .dica, .dica { font-size: .75rem; color: var(--brita); }

input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="number"], input[type="time"], select, textarea {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--junta2);
  border-radius: 8px;
  background: var(--campo);
  color: #1a1a1a;
  font: inherit; font-size: 13px;
  outline: none;
}
textarea { padding: 10px 12px; }
input:focus, select:focus, textarea:focus { border-color: #3a3f52; box-shadow: 0 0 0 3px rgba(58,63,82,.08); }
input::placeholder { color: #9A9CA0; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--grafite); outline-offset: 2px; }
input[type="color"] { width: 52px; height: 40px; padding: 2px; border: 1px solid var(--junta2); border-radius: 8px; background: var(--laje); cursor: pointer; }

.linha { display: grid; gap: 0 16px; }
@media (min-width: 560px) {
  .linha.dois { grid-template-columns: 1fr 1fr; }
  .linha.cidade-uf { grid-template-columns: 1fr 96px; }
}

.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 38px; padding: 0 16px;
  border: 1px solid transparent; border-radius: 8px;
  background: var(--grafite); color: #fff;
  font: 600 13px var(--texto);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: all .15s;
}
.botao:hover { opacity: .87; transform: translateY(-1px); }
.botao:active { transform: none; }
.botao:disabled { opacity: .5; cursor: wait; transform: none; }
.botao.largo { width: 100%; min-height: 44px; font-size: 14px; }
.botao.neutro { background: var(--laje); color: #3a3f52; border-color: var(--junta2); }
.botao.compacto { min-height: 32px; padding: 0 11px; font-size: 12px; }
.botao.perigo { background: #fee2e2; color: var(--erro); border-color: #fca5a5; }

.link { background: none; border: 0; padding: 0; color: #2563eb; font: inherit; text-decoration: underline; cursor: pointer; }

.aviso { padding: 11px 14px; border-radius: 8px; border: 1px solid; font-size: 13px; margin-bottom: 14px; }
.aviso.erro { background: #fee2e2; border-color: #fca5a5; color: #b91c1c; }
.aviso.ok { background: #dcfce7; border-color: #86efac; color: #15803d; }
.aviso.atencao { background: #fef3c7; border-color: #fcd34d; color: #92400e; }
.aviso.config { background: #fef3c7; border-color: #fcd34d; color: #92400e; }
.aviso.config a { color: #92400e !important; font-weight: 700; }

/* ---------- entrada (login) ---------- */

.entrada { min-height: 100vh; display: grid; background: #111; }
.entrada .patio-lado { display: none; }
.entrada .form-lado { display: grid; align-content: center; justify-items: center; padding: 32px 16px; }
.entrada .caixa { width: 100%; max-width: 380px; background: #fff; border-radius: 16px; padding: 36px 30px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.entrada .logo { display: block; width: 200px; margin-bottom: 28px; }
.entrada h1 { margin-bottom: 20px; font-size: 1.125rem; }
.entrada .rodape { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--junta); }

@media (min-width: 900px) {
  .entrada { grid-template-columns: minmax(0, 1.1fr) minmax(440px, .9fr); }
  .entrada .patio-lado { display: grid; align-content: end; padding: 56px; color: #fff; overflow: hidden; }
  .patio { width: min(100%, 560px); margin: 0 0 8px -24px; }
  .patio-lado p { max-width: 14ch; font: 800 clamp(2rem, 3.4vw, 3rem)/1.05 var(--titulo); letter-spacing: -.01em; }
}

/* ---------- cadastro / assinatura ---------- */

.cadastro { max-width: 680px; margin: 0 auto; padding: 32px 16px 64px; }
.cadastro .logo { display: block; width: 180px; margin-bottom: 28px; }
.cadastro h1 { margin-bottom: 6px; }
.cadastro .abertura { margin-bottom: 24px; color: var(--brita); }

.bloco {
  background: var(--laje); border: 1px solid var(--junta); border-radius: 12px;
  padding: 20px 20px 6px; margin-bottom: 16px; box-shadow: var(--sombra);
}
.bloco > h2 { margin-bottom: 16px; font-size: 14px; }
.bloco.fechado { padding-bottom: 20px; }

.cor-linha { display: flex; align-items: center; gap: 12px; }
.amostra { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 8px; background: var(--cor); color: var(--cor-texto); font-weight: 600; }

/* ---------- cabeçalho preto (igual ao da Fábrica) ---------- */

.topo { background: #111; border-bottom: 1px solid #2a2a2a; box-shadow: inset 0 -3px 0 var(--cor); position: sticky; top: 0; z-index: 50; }
.faixa { display: none; }
.topo-dentro { max-width: 1440px; margin: 0 auto; padding: 8px 12px; min-height: 52px; display: flex; align-items: center; gap: 10px; }
.topo .marca { display: flex; align-items: center; gap: 10px; min-width: 0; margin-right: auto; color: #fff; }
.topo .marca img { height: 30px; width: auto; background: #fff; border-radius: 4px; padding: 2px 5px; }
.topo .marca .nome, .topo .titulo-modulo { font: 800 13px var(--titulo); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topo .titulo-modulo small { display: block; font: 400 11px var(--texto); color: #888; }
.topo .quem { text-align: right; line-height: 1.25; color: #aaa; font-size: 11px; }
.topo .quem .papel { display: block; font-size: 10px; color: #777; }
.topo .acoes { display: flex; gap: 4px; align-items: center; }
.topo .botao.neutro, .topo .acoes .botao { background: none; border: 1px solid #3a3a3a; color: #999; min-height: 28px; padding: 0 9px; font-size: 11px; border-radius: 6px; }
.topo .botao.neutro:hover { border-color: #999; color: #fff; transform: none; }
/* abas dentro do cabeçalho preto, como o menu da Fábrica */
.abas { max-width: 1440px; margin: 0 auto; padding: 0 12px 8px; display: flex; gap: 2px; overflow-x: auto; }
.abas::-webkit-scrollbar { height: 0; }
.aba { padding: 6px 12px; border: 0; border-radius: 6px; background: none; color: #999; font: 500 12px var(--texto); white-space: nowrap; cursor: pointer; transition: all .15s; }
.aba:hover { background: #222; color: #fff; }
.aba[aria-selected="true"] { background: #fff; color: #111; font-weight: 700; }

.conteudo { max-width: 1440px; margin: 0 auto; padding: 18px 20px 64px; }
.conteudo > section > h1 { margin-bottom: 4px; }
.conteudo > section > .abertura { color: var(--brita); margin-bottom: 18px; }

.modulos { list-style: none; margin: 0; padding: 0; background: var(--laje); border: 1px solid var(--junta); border-radius: 12px; }
.modulos li { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; padding: 16px 18px; border-top: 1px solid var(--junta); }
.modulos li:first-child { border-top: 0; }
.modulos .telas { display: flex; flex-wrap: wrap; gap: 8px; flex-basis: 100%; }
.modulos .texto { margin-right: auto; max-width: 62ch; }
.modulos p { color: var(--brita); }
.etiqueta { flex: none; display: inline-flex; padding: 3px 9px; border-radius: 20px; background: #f0f1f4; color: var(--brita); font-size: 11px; font-weight: 600; border: 1px solid var(--junta2); }
.etiqueta.ativa { background: #dcfce7; color: #16a34a; border-color: #86efac; }
.etiqueta.inativa { background: #fee2e2; color: #dc2626; border-color: #fca5a5; }

.tabela-rolagem { overflow-x: auto; margin: 0 0 14px; border: 1px solid var(--junta); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--junta); white-space: nowrap; }
th { font-weight: 600; color: var(--brita); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; background: #f0f1f4; }
tr:last-child td { border-bottom: 0; }
td select { min-height: 32px; width: auto; }
td.quebra { white-space: normal; }

.logo-previa { display: flex; align-items: center; justify-content: center; width: 200px; height: 84px; padding: 8px; border: 1px dashed var(--junta2); border-radius: 8px; background: #f0f1f4; color: var(--brita); font-size: 12px; }
.logo-previa img { max-height: 100%; }
.logo-linha { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---------- login com Google ---------- */
.ou { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--brita); font-size: 12px; }
.ou::before, .ou::after { content: ""; flex: 1; height: 1px; background: var(--junta); }
.conectado { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }

.marcar-modulos { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 6px 0 10px; }
.marca-mod { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; cursor: pointer; white-space: nowrap; }
.marca-mod input { width: 17px; height: 17px; accent-color: #111; }

@media (max-width: 640px) {
  .topo-dentro { flex-wrap: wrap; gap: 6px; }
  .topo .quem { display: none; }
  .topo .acoes { width: 100%; overflow-x: auto; }
  .conteudo { padding: 12px 10px 48px; }
  input, select, textarea { font-size: 16px !important; }
  .entrada .caixa { padding: 28px 20px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
