/* LocMoveis — estilos compartilhados */
@font-face { font-family: 'Jakarta'; src: url('/fonts/jakarta-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Jakarta'; src: url('/fonts/jakarta-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Jakarta'; src: url('/fonts/jakarta-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Jakarta'; src: url('/fonts/jakarta-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Jakarta'; src: url('/fonts/jakarta-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }

:root {
  --teal: #0F4C5C;
  --teal-2: #136476;
  --teal-claro: #E3EFF1;
  --coral: #F28C38;
  --coral-esc: #D9701C;
  --coral-claro: #FDEBDC;
  --fundo: #F6F4EF;
  --cartao: #FFFFFF;
  --texto: #142A30;
  --suave: #5E7277;
  --linha: #E3E0D8;
  --verde: #1E8E5A;
  --verde-claro: #DFF3E8;
  --verm: #C8382E;
  --verm-claro: #FBE3E0;
  --amar: #A86B00;
  --amar-claro: #FFF1D1;
  --raio: 14px;
  --sombra: 0 1px 2px rgba(15, 76, 92, .06), 0 4px 16px rgba(15, 76, 92, .06);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Jakarta', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--fundo); color: var(--texto); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal-2); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .4em; letter-spacing: -.01em; }
.num { font-variant-numeric: tabular-nums; }
.suave { color: var(--suave); }
.peq { font-size: 13px; }
.oculto { display: none !important; }

/* botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 10px; padding: 10px 16px; font: inherit; font-weight: 700; font-size: 14px;
  cursor: pointer; text-decoration: none; transition: background .15s, transform .05s; white-space: nowrap;
  background: var(--teal); color: #fff; min-height: 42px;
}
.btn:hover { background: var(--teal-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: wait; }
.btn.coral { background: var(--coral); color: #fff; }
.btn.coral:hover { background: var(--coral-esc); }
.btn.claro { background: var(--teal-claro); color: var(--teal); }
.btn.claro:hover { background: #d3e6e9; }
.btn.linha { background: transparent; color: var(--teal); box-shadow: inset 0 0 0 1.5px var(--linha); }
.btn.linha:hover { background: #fff; }
.btn.perigo { background: var(--verm-claro); color: var(--verm); }
.btn.perigo:hover { background: #f7d2cd; }
.btn.verde { background: var(--verde); }
.btn.verde:hover { background: #18774b; }
.btn.peq { padding: 6px 11px; min-height: 34px; font-size: 13px; border-radius: 8px; }
.btn.grande { padding: 14px 22px; font-size: 16px; border-radius: 12px; }
.btn.bloco { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* formulários */
.campo { display: flex; flex-direction: column; gap: 5px; }
.campo > span { font-size: 13px; font-weight: 600; color: var(--suave); }
.campo small { color: var(--suave); font-size: 12px; }
input, select, textarea {
  font: inherit; color: var(--texto); background: #fff; border: 1.5px solid var(--linha); border-radius: 10px;
  padding: 10px 12px; min-height: 44px; width: 100%; outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--teal-2); box-shadow: 0 0 0 3px rgba(19, 100, 118, .15); }
input[type=checkbox] { width: 20px; height: 20px; min-height: 0; accent-color: var(--teal); }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-weight: 500; }
.check input { margin-top: 2px; flex: none; }
.grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grade .inteiro { grid-column: 1 / -1; }
@media (max-width: 600px) { .grade { grid-template-columns: 1fr; } }

/* cartões e etiquetas */
.cartao { background: var(--cartao); border-radius: var(--raio); box-shadow: var(--sombra); padding: 18px; }
.etq { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.etq.verde { background: var(--verde-claro); color: var(--verde); }
.etq.verm { background: var(--verm-claro); color: var(--verm); }
.etq.amar { background: var(--amar-claro); color: var(--amar); }
.etq.cinza { background: #EEEBE4; color: var(--suave); }
.etq.teal { background: var(--teal-claro); color: var(--teal); }

/* avisos (toast) */
#toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); }
.toast { background: var(--texto); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.2); font-weight: 600; animation: sobe .2s ease-out; }
.toast.erro { background: var(--verm); }
.toast.ok { background: var(--verde); }
@keyframes sobe { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 860px) { #toasts { bottom: 86px; } }

/* modal */
.modal-fundo { position: fixed; inset: 0; background: rgba(11, 46, 55, .45); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px; overflow-y: auto; animation: aparece .15s; }
.modal { background: #fff; border-radius: 18px; width: min(100%, 560px); padding: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.25); position: relative; }
.modal.largo { width: min(100%, 760px); }
.modal h3 { font-size: 20px; padding-right: 36px; }
.modal .fechar { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 10px; border: 0; background: #F1EEE7; cursor: pointer; font-size: 20px; color: var(--suave); }
.modal .acoes { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
@keyframes aparece { from { opacity: 0; } }
@media (max-width: 600px) {
  .modal-fundo { padding: 0; align-items: flex-end; }
  .modal { border-radius: 18px 18px 0 0; max-height: 94vh; overflow-y: auto; }
  .modal .acoes .btn { flex: 1; }
}

/* tabelas/listas */
.lista { display: flex; flex-direction: column; gap: 10px; }
.item {
  background: #fff; border-radius: 12px; box-shadow: var(--sombra); padding: 14px 16px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: center;
}
.item.clic { cursor: pointer; transition: box-shadow .15s; }
.item.clic:hover { box-shadow: 0 0 0 2px var(--teal-claro), var(--sombra); }
.item .tit { font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.item .sub { color: var(--suave); font-size: 13px; }
.item .dir { text-align: right; }
.item .valor { font-weight: 800; font-size: 16px; }
.vazio { text-align: center; padding: 40px 20px; color: var(--suave); background: #fff; border-radius: var(--raio); border: 2px dashed var(--linha); }
.vazio b { color: var(--texto); display: block; font-size: 16px; margin-bottom: 4px; }

table.tab { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tab th { text-align: left; color: var(--suave); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px; border-bottom: 1.5px solid var(--linha); }
table.tab td { padding: 10px; border-bottom: 1px solid #EFECE5; }
table.tab td.r, table.tab th.r { text-align: right; }
.rolagem { overflow-x: auto; }

.logo-txt { font-weight: 800; letter-spacing: -.02em; color: var(--teal); }
.logo-txt b { color: var(--coral); font-weight: 800; }
