/* Painel administrativo — JPL */
:root { --azul: #1677e5; --azul-hover: #0f63c4; --marinho: #0b2547; --texto: #18212f; --texto-2: #4a5566; --muted: #6b7686; --linha: #e1e6ee; --fundo: #f3f5f9; --verde: #16a34a; --verm: #dc2626; --fonte: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--fonte); background: var(--fundo); color: var(--texto); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2 { margin: 0; line-height: 1.25; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
.ic { width: 1em; height: 1em; flex-shrink: 0; }
.adm-wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.adm-main { padding-top: 32px; padding-bottom: 80px; }

/* Logo */
.logo { display: inline-flex; align-items: center; }
.logo img { height: 34px; width: auto; display: block; }

/* Topo */
.adm-topo { background: var(--marinho); color: #fff; position: sticky; top: 0; z-index: 20; }
.adm-topo__in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.adm-topo__logo { display: flex; align-items: center; gap: 14px; }
.adm-topo__titulo { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.7); line-height: 1.2; }
.adm-nav { display: flex; gap: 4px; }
.adm-nav a { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 6px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.8); position: relative; }
.adm-nav a:hover, .adm-nav a.ativo { color: #fff; }
.adm-nav a.ativo::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -2px; height: 2px; background: #3a95f5; }
.adm-nav .ic { width: 18px; height: 18px; }
.badge { background: #ef4444; color: #fff; font-size: 11px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: grid; place-items: center; }
.adm-aviso { background: #fff7e0; border-bottom: 1px solid #f5dfa0; color: #7a5b00; font-size: 14px; padding: 10px 0; }
.adm-aviso .adm-wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.adm-aviso a { font-weight: 700; text-decoration: underline; }

/* Cabeçalho de página */
.adm-cab { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.adm-cab h1 { font-size: 26px; color: var(--marinho); }
.adm-cab p { margin: 4px 0 0; color: var(--muted); }
.adm-voltar { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.adm-voltar:hover { color: var(--azul); }

/* Botões */
.adm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 7px; border: 1.5px solid transparent; font-weight: 700; font-size: 14px; cursor: pointer; transition: .15s; white-space: nowrap; }
.adm-btn .ic { width: 17px; height: 17px; }
.adm-btn--azul { background: var(--azul); color: #fff; }
.adm-btn--azul:hover { background: var(--azul-hover); }
.adm-btn--azul:disabled { opacity: .6; cursor: wait; }
.adm-btn--claro { background: #fff; border-color: var(--linha); color: var(--marinho); }
.adm-btn--claro:hover { border-color: var(--azul); color: var(--azul); }
.adm-btn--perigo { background: #fff; border-color: #f3c4c4; color: var(--verm); }
.adm-btn--perigo:hover { background: var(--verm); color: #fff; }
.adm-btn--peq { padding: 8px 12px; font-size: 13px; }
.adm-btn--cheio { width: 100%; }
.adm-icone { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 7px; border: 1.5px solid var(--linha); background: #fff; cursor: pointer; color: var(--muted); transition: .15s; }
.adm-icone .ic { width: 18px; height: 18px; }
.adm-icone:hover { color: var(--azul); border-color: var(--azul); }
.adm-icone.ligado { color: #d99a00; border-color: #f1d27a; background: #fffaf0; }
.adm-icone.ligado .ic { fill: currentColor; }

/* Alertas */
.adm-alerta { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 14.5px; }
.adm-alerta .ic { width: 19px; height: 19px; margin-top: 1px; }
.adm-alerta--ok { background: #e8f8ee; color: #136c38; border: 1px solid #bfe7cd; }
.adm-alerta--erro { background: #fdeeee; color: #9b1c1c; border: 1px solid #f5caca; }
.adm-alerta--aviso { background: #fff7e0; color: #7a5b00; border: 1px solid #f3dc9a; }
.adm-alerta[hidden] { display: none; }
.adm-info { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: #1f5f9e; background: #eef6ff; border-radius: 8px; padding: 10px 12px; margin: 0 0 16px; }
.adm-info .ic { width: 16px; height: 16px; margin-top: 2px; }

/* Pílulas */
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 20px; background: #eef1f5; color: var(--muted); }
.pill .ic { width: 12px; height: 12px; fill: currentColor; }
.pill--verde { background: #e3f6ea; color: #157a3c; }
.pill--amarelo { background: #fff4d6; color: #946400; }
.pill--vermelho { background: #fdeaea; color: #b42323; }
.pill--azul { background: #e5f0fd; color: var(--azul); }

/* Lista de obras */
.adm-lista { display: grid; gap: 12px; }
.adm-item { display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid var(--linha); border-radius: 10px; padding: 12px; }
.adm-item--rascunho { background: #fafbfc; }
.adm-item--rascunho .adm-item__img img { opacity: .55; }
.adm-item__img { width: 120px; aspect-ratio: 4 / 3; border-radius: 7px; overflow: hidden; background: #e7ebf0; flex-shrink: 0; }
.adm-item__img img { width: 100%; height: 100%; object-fit: cover; }
.adm-item__semfoto { width: 100%; height: 100%; display: grid; place-items: center; color: #9aa6b5; }
.adm-item__semfoto .ic { width: 30px; height: 30px; }
.adm-item__info { flex: 1; min-width: 0; }
.adm-item__tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.adm-item h2 { font-size: 17px; color: var(--marinho); }
.adm-item h2 a:hover { color: var(--azul); }
.adm-item p { margin: 3px 0 0; color: var(--muted); font-size: 13.5px; }
.adm-item__acoes { display: flex; align-items: center; gap: 8px; }
.adm-item__acoes form { display: flex; gap: 8px; }
.adm-dica { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; margin-top: 18px; }
.adm-dica .ic { color: #d99a00; fill: currentColor; }
.adm-vazio { text-align: center; background: #fff; border: 2px dashed var(--linha); border-radius: 12px; padding: 60px 20px; }
.adm-vazio > .ic { width: 46px; height: 46px; color: #a9b4c2; margin: 0 auto 12px; }
.adm-vazio h2 { font-size: 19px; color: var(--marinho); margin-bottom: 6px; }
.adm-vazio p { color: var(--muted); margin: 0 0 20px; }

/* Formulário */
.adm-form { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.adm-col { display: grid; gap: 24px; min-width: 0; }
.adm-lateral { display: grid; gap: 24px; position: sticky; top: 88px; }
.adm-card { background: #fff; border: 1px solid var(--linha); border-radius: 12px; padding: 24px; }
.adm-card h2 { font-size: 16px; color: var(--marinho); margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.adm-card h2 small { font-size: 12px; background: #eef1f5; color: var(--muted); padding: 2px 9px; border-radius: 10px; }
.adm-card__cab { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.adm-card__cab h2 { margin: 0; }
.adm-card--perigo { border-color: #f5d2d2; }
.adm-campo { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.adm-campo > span { font-size: 13px; font-weight: 700; color: var(--marinho); }
.adm-campo small { font-weight: 500; color: var(--muted); }
.adm-campo input, .adm-campo select, .adm-campo textarea { width: 100%; padding: 11px 13px; border: 1.5px solid var(--linha); border-radius: 7px; background: #fbfcfe; font-size: 15px; }
.adm-campo textarea { resize: vertical; }
.adm-campo input:focus, .adm-campo select:focus, .adm-campo textarea:focus { outline: 0; border-color: var(--azul); background: #fff; box-shadow: 0 0 0 3px rgba(22,119,229,.12); }
.adm-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.adm-ajuda { color: var(--muted); font-size: 13.5px; margin: 0 0 16px; }

/* Interruptores */
.adm-switch { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; cursor: pointer; }
.adm-switch input { position: absolute; opacity: 0; }
.adm-switch > span { width: 40px; height: 23px; border-radius: 12px; background: #cfd6df; position: relative; flex-shrink: 0; transition: .2s; margin-top: 1px; }
.adm-switch > span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.adm-switch input:checked + span { background: var(--azul); }
.adm-switch input:checked + span::after { left: 20px; }
.adm-switch input:focus-visible + span { box-shadow: 0 0 0 3px rgba(22,119,229,.3); }
.adm-switch strong { display: block; font-size: 14px; color: var(--marinho); }
.adm-switch small { color: var(--muted); font-size: 12.5px; }

/* Fotos */
.adm-dropzone { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 22px; border: 2px dashed var(--linha); border-radius: 10px; color: var(--muted); font-size: 14px; cursor: pointer; margin-bottom: 16px; transition: .2s; text-align: center; }
.adm-dropzone .ic { width: 24px; height: 24px; }
.adm-dropzone:hover, .adm-dropzone.ativo { border-color: var(--azul); background: #f0f6fe; color: var(--azul); }
.adm-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.adm-fotos:empty { display: none; }
.adm-fotos--novas { margin-top: 12px; }
.adm-foto { position: relative; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #e7ebf0; border: 2px solid transparent; }
.adm-foto img { width: 100%; height: 100%; object-fit: cover; }
.adm-foto:has(input[name=capa]:checked) { border-color: #f0b400; }
.adm-foto__capa { position: absolute; top: 6px; left: 6px; cursor: pointer; }
.adm-foto__capa input { position: absolute; opacity: 0; }
.adm-foto__capa span { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; padding: 4px 8px; border-radius: 20px; background: rgba(7,24,47,.65); color: #fff; }
.adm-foto__capa .ic { width: 12px; height: 12px; }
.adm-foto__capa input:checked + span { background: #f0b400; color: #3d2c00; }
.adm-foto__capa input:checked + span .ic { fill: currentColor; }
.adm-foto__capa input:focus-visible + span { outline: 2px solid #fff; }
.adm-foto__barra { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: flex-end; gap: 4px; padding: 6px; background: linear-gradient(transparent, rgba(7,24,47,.7)); }
.adm-foto__barra button, .adm-foto__barra label { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 6px; background: rgba(255,255,255,.92); color: var(--marinho); cursor: pointer; font-size: 14px; font-weight: 700; }
.adm-foto__barra .ic { width: 16px; height: 16px; }
.adm-foto__barra .remover input { position: absolute; opacity: 0; pointer-events: none; }
.adm-foto__barra .remover:hover, .adm-foto__barra .tirar:hover { color: var(--verm); }
.adm-foto__barra .mover:first-child { margin-right: auto; }
.adm-foto.removendo { border-color: var(--verm); }
.adm-foto.removendo img { opacity: .3; filter: grayscale(1); }
.adm-foto.removendo .remover { background: var(--verm); color: #fff; }
.adm-foto.removendo::after { content: "Será removida"; position: absolute; top: 50%; left: 0; right: 0; text-align: center; transform: translateY(-50%); font-size: 12px; font-weight: 700; color: var(--verm); }
.adm-foto__tag { position: absolute; top: 6px; left: 6px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 20px; background: var(--azul); color: #fff; }
.adm-foto--nova { border-color: #b9d7fa; border-style: dashed; }
.adm-foto__baixa { position: absolute; top: 34px; left: 6px; font-size: 10.5px; font-weight: 700; padding: 3px 7px; border-radius: 20px; background: #f59e0b; color: #fff; }
.adm-foto--nova .adm-foto__baixa { top: 32px; }
.adm-foto.baixa { border-color: #f59e0b; }
.adm-foto__status { position: absolute; inset: auto 6px 42px 6px; font-size: 11.5px; color: #fff; background: var(--verm); border-radius: 5px; padding: 3px 6px; display: none; }
.adm-foto.falhou .adm-foto__status { display: block; }
.adm-foto.enviando img { opacity: .5; }
.adm-foto.enviando::after { content: ""; position: absolute; top: 50%; left: 50%; width: 26px; height: 26px; margin: -13px; border: 3px solid #fff; border-top-color: var(--azul); border-radius: 50%; animation: gira .8s linear infinite; }
.adm-foto.ok { border-color: var(--verde); border-style: solid; }
@keyframes gira { to { transform: rotate(360deg); } }
.adm-progresso { margin-top: 14px; }
.adm-progresso__barra { height: 8px; background: #e7ebf0; border-radius: 4px; overflow: hidden; }
.adm-progresso__barra i { display: block; height: 100%; width: 0; background: var(--azul); transition: width .3s; }
.adm-progresso span { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }

/* Mensagens */
.adm-msgs { display: grid; gap: 12px; }
.adm-msg { background: #fff; border: 1px solid var(--linha); border-radius: 10px; padding: 18px 20px; }
.adm-msg--nova { border-left: 4px solid var(--azul); }
.adm-msg header { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.adm-msg header strong { color: var(--marinho); }
.adm-msg header .pill { margin-left: 6px; }
.adm-msg time { color: var(--muted); font-size: 13px; }
.adm-msg p { margin: 0 0 14px; color: var(--texto-2); white-space: normal; }
.adm-msg footer { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.adm-msg__acoes { display: flex; gap: 8px; margin-left: auto; }

/* Login */
.login { min-height: calc(100vh - 120px); display: grid; place-items: center; }
.login__card { width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--linha); border-radius: 14px; padding: 36px 32px; box-shadow: 0 20px 50px rgba(11,37,71,.08); }
.login__logo { margin-bottom: 22px; }
.login__logo .logo img { height: 46px; }
.login h1 { font-size: 22px; color: var(--marinho); }
.login p { color: var(--muted); margin: 6px 0 22px; }
.login__voltar { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; color: var(--muted); font-size: 14px; }
.login__voltar:hover { color: var(--azul); }

@media (max-width: 900px) {
  .adm-form { grid-template-columns: 1fr; }
  .adm-lateral { position: static; }
  .adm-nav span { display: none; }
  .adm-nav a { padding: 9px; }
  .adm-nav a.ativo::after { left: 9px; right: 9px; }
}
@media (max-width: 600px) {
  .adm-wrap { padding: 0 14px; }
  .adm-main { padding-top: 22px; }
  .adm-topo__titulo { display: none; }
  .adm-item { flex-wrap: wrap; }
  .adm-item__img { width: 96px; }
  .adm-item__info { flex: 1 1 calc(100% - 120px); }
  .adm-item__acoes { width: 100%; justify-content: flex-end; border-top: 1px solid var(--linha); padding-top: 10px; }
  .adm-grid2 { grid-template-columns: 1fr; }
  .adm-card { padding: 18px; }
  .adm-fotos { grid-template-columns: 1fr 1fr; }
  .adm-msg__acoes { margin-left: 0; }
}

/* Carrossel */
.adm-inline { display: inline; margin: 0; }
.adm-ic-inline { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; background: var(--azul); color: #fff; vertical-align: -5px; }
.adm-ic-inline .ic { width: 15px; height: 15px; }
.adm-icone--off { opacity: .35; cursor: default; }
.adm-icone--off:hover { color: var(--muted); border-color: var(--linha); }
.adm-dica--azul .ic { color: var(--azul); fill: none; }
.adm-dica a { color: var(--azul); font-weight: 700; text-decoration: underline; }
.pill--azul .ic { fill: none; }
.adm-card h2 .ic { width: 20px; height: 20px; color: var(--azul); }
.adm-vazio--peq { padding: 36px 20px; border-width: 2px; }
.adm-carr { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.adm-carr__item { border: 1px solid var(--linha); border-radius: 10px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.adm-carr__prev { position: relative; aspect-ratio: 16 / 9; background: #0b2547; }
.adm-carr__prev > img:first-child { width: 100%; height: 100%; object-fit: cover; }
.adm-carr__mob { position: absolute; right: 10px; bottom: 10px; width: 54px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; border: 2px solid #fff; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.adm-carr__num { position: absolute; top: 10px; left: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--azul); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.adm-carr__oculta { position: absolute; top: 10px; left: 46px; right: 10px; font-size: 11.5px; font-weight: 700; background: rgba(220,38,38,.9); color: #fff; padding: 4px 8px; border-radius: 5px; }
.adm-carr__info { padding: 12px 14px 4px; display: grid; gap: 6px; }
.adm-carr__info strong { color: var(--marinho); font-size: 14.5px; }
.adm-carr__aviso { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; color: #946400; }
.adm-carr__aviso .ic { width: 14px; height: 14px; margin-top: 2px; }
.adm-carr__acoes { display: flex; gap: 6px; align-items: center; padding: 10px 14px 14px; margin-top: auto; }
.adm-carr__acoes .adm-inline:last-child { margin-left: auto; }
.adm-escolha { padding: 18px 0; border-top: 1px solid var(--linha); }
.adm-escolha:first-of-type { border-top: 0; padding-top: 4px; }
.adm-escolha h3 { font-size: 14.5px; color: var(--marinho); margin: 0 0 12px; display: flex; gap: 8px; align-items: center; }
.adm-foto.no-carrossel { border-color: var(--azul); }
.adm-carr-btn { position: absolute; right: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 0; border-radius: 7px; background: rgba(255,255,255,.94); color: var(--marinho); font-size: 12.5px; font-weight: 700; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.adm-carr-btn .ic { width: 17px; height: 17px; }
.adm-carr-btn:hover { color: var(--azul); }
.adm-carr-btn.ligado { background: var(--azul); color: #fff; }
.adm-carr-btn.ligado:hover { background: var(--verm); }
.adm-carr-btn.ligado:hover span { font-size: 0; }
.adm-carr-btn.ligado:hover span::after { content: "Tirar"; font-size: 12.5px; }
.adm-carr-btn.desligado { opacity: .5; cursor: not-allowed; }
/* Ícone de carrossel em cada foto (editor da obra) */
.adm-foto__carr { position: absolute; top: 6px; right: 6px; cursor: pointer; }
.adm-foto__carr input { position: absolute; opacity: 0; }
.adm-foto__carr span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 7px; background: rgba(7,24,47,.65); color: #fff; transition: .15s; }
.adm-foto__carr .ic { width: 17px; height: 17px; }
.adm-foto__carr:hover span { background: rgba(7,24,47,.85); }
.adm-foto__carr input:checked + span { background: var(--azul); box-shadow: 0 0 0 2px #fff; }
.adm-foto__carr input:focus-visible + span { outline: 2px solid #fff; }
.adm-foto:has(.adm-foto__carr input:checked) { border-color: var(--azul); }
.adm-foto:has(input[name=capa]:checked):has(.adm-foto__carr input:checked) { border-color: #f0b400; }
@media (max-width: 600px) { .adm-carr { grid-template-columns: 1fr; } }

/* =========================================================
   SISTEMA DE ORDENS DE SERVIÇO
   ========================================================= */
.adm-nav { align-items: center; }
.adm-nav__sep { width: 1px; height: 22px; background: rgba(255,255,255,.18); margin: 0 6px; }
.adm-cab__acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.adm-cab h1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cinza { color: var(--muted); }
.txt-alerta { color: #b45309; font-weight: 700; }
small.txt-alerta, td small { display: block; }
.adm-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.adm-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; margin: 6px 0 16px; cursor: pointer; }
.adm-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--azul); flex-shrink: 0; }
.adm-btn--grande { padding: 17px 22px; font-size: 15.5px; }
.adm-campo small.cinza { font-size: 12px; }

/* Status */
.st { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; white-space: nowrap; letter-spacing: .01em; vertical-align: middle; }
.st--peq { font-size: 10.5px; padding: 2px 7px; margin-left: 6px; }
.st--azul { background: #e5f0fd; color: #1460c2; }
.st--amarelo { background: #fff4d6; color: #8a5d00; }
.st--vermelho { background: #fdeaea; color: #b42323; }
.st--roxo { background: #efe9fd; color: #5b34c2; }
.st--laranja { background: #ffedd9; color: #b45309; }
.st--verde { background: #e3f6ea; color: #157a3c; }
.st--cinza { background: #eef1f5; color: var(--muted); }
.adm-cab h1 .st { font-size: 13px; }

/* Abas e filtros */
.abas { display: flex; gap: 4px; border-bottom: 1px solid var(--linha); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.abas a { padding: 11px 14px; font-weight: 700; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.abas a b { font-size: 11.5px; background: #eef1f5; color: var(--muted); padding: 1px 7px; border-radius: 10px; margin-left: 4px; }
.abas a:hover { color: var(--marinho); }
.abas a.ativo { color: var(--azul); border-bottom-color: var(--azul); }
.abas a.ativo b { background: var(--azul); color: #fff; }
.filtros-adm { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.filtros-adm .adm-campo { margin: 0; min-width: 220px; }
.adm-campo--busca { flex: 1; position: relative; }
.adm-campo--busca .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 17px; height: 17px; }
.adm-campo--busca input { padding-left: 38px; }

/* Tabelas */
.tbl-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--linha); border-radius: 10px; }
.adm-card .tbl-wrap { border-radius: 8px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 11px 14px; background: #f7f9fc; border-bottom: 1px solid var(--linha); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--linha); vertical-align: top; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr[onclick] { cursor: pointer; }
.tbl tbody tr[onclick]:hover td { background: #f7faff; }
.tbl td small { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.tbl strong { color: var(--marinho); }
.tbl a { color: var(--marinho); }
.num { text-align: right !important; }
.nowrap { white-space: nowrap; }
.tbl--edit td { padding: 8px 6px; vertical-align: middle; }
.tbl--edit td:first-child { padding-left: 10px; }
.tbl--edit input, .tbl--edit select, .tbl--edit textarea { width: 100%; padding: 9px 10px; border: 1.5px solid var(--linha); border-radius: 6px; background: #fbfcfe; font-size: 14px; }
.tbl--edit textarea { resize: none; min-height: 40px; line-height: 1.4; overflow: hidden; }
.tbl--edit input:focus, .tbl--edit select:focus, .tbl--edit textarea:focus { outline: 0; border-color: var(--azul); background: #fff; }
.tbl--edit [data-orc-tot] { font-weight: 700; color: var(--marinho); }
.orc-form [data-orc-add] { margin: 12px 0 0; }
.orc-totais { margin: 14px 0 18px auto; max-width: 340px; display: grid; gap: 6px; }
.orc-totais > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14.5px; }
.orc-totais span { color: var(--muted); }
.orc-totais input { width: 130px; text-align: right; padding: 8px 10px; border: 1.5px solid var(--linha); border-radius: 6px; }
.orc-totais__total { background: #eef4fc; padding: 10px 12px; border-radius: 8px; margin-top: 4px; }
.orc-totais__total span, .orc-totais__total b { color: var(--marinho); font-size: 17px; font-weight: 800; }
.orc-botoes { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; border-top: 1px solid var(--linha); padding-top: 16px; margin-top: 4px; }

/* Layout da OS */
.os-layout { display: grid; grid-template-columns: 1fr 340px; gap: 22px; align-items: start; }
.os-main, .os-lado { display: grid; gap: 22px; min-width: 0; }
.os-lado { position: sticky; top: 84px; }
.adm-card h2 small { margin-left: 2px; }
.adm-card--destaque { border: 2px solid var(--azul); box-shadow: 0 8px 30px rgba(22,119,229,.12); }
.adm-card--ok { border-color: #bfe7cd; background: #fbfefc; }
h3.sub { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 22px 0 10px; }
.obs { background: #f7f9fc; border-radius: 8px; padding: 12px 14px; color: var(--texto-2); font-size: 14.5px; margin: 12px 0; }
.dados { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 0 0 6px; }
.dados--3 { grid-template-columns: repeat(3, 1fr); margin-top: 14px; }
.dados dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.dados dd { margin: 2px 0 0; font-weight: 600; color: var(--marinho); font-size: 14.5px; word-break: break-word; }
.dados dd a { color: var(--azul); }
.dados dd .ic { width: 13px; height: 13px; vertical-align: -1px; }

/* Barra de progresso do fluxo */
.progresso { list-style: none; padding: 0; margin: 0 0 22px; display: flex; background: #fff; border: 1px solid var(--linha); border-radius: 10px; padding: 14px 16px; overflow-x: auto; }
.progresso li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: #a3adbb; position: relative; min-width: 82px; text-align: center; }
.progresso li span { width: 14px; height: 14px; border-radius: 50%; background: #dfe5ec; border: 3px solid #fff; box-shadow: 0 0 0 2px #dfe5ec; position: relative; z-index: 1; }
.progresso li::before { content: ""; position: absolute; top: 6px; right: 50%; width: 100%; height: 2px; background: #dfe5ec; }
.progresso li:first-child::before { display: none; }
.progresso li.feito { color: var(--marinho); }
.progresso li.feito span { background: var(--verde); box-shadow: 0 0 0 2px var(--verde); }
.progresso li.feito::before, .progresso li.atual::before { background: var(--verde); }
.progresso li.atual { color: var(--azul); }
.progresso li.atual span { background: var(--azul); box-shadow: 0 0 0 2px var(--azul), 0 0 0 6px rgba(22,119,229,.18); }
.progresso li.recusado { color: var(--verm); }
.progresso li.recusado span { background: var(--verm); box-shadow: 0 0 0 2px var(--verm); }
.progresso--cancelado { opacity: .5; }

/* Fotos */
.os-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 14px; }
.os-foto { position: relative; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #e7ebf0; display: block; }
.os-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.os-foto:hover img { transform: scale(1.04); }
.os-foto__etapa { position: absolute; top: 6px; left: 6px; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 20px; color: #fff; background: #64748b; text-transform: uppercase; letter-spacing: .04em; }
.os-foto__etapa--antes { background: #d97706; }
.os-foto__etapa--durante { background: var(--azul); }
.os-foto__etapa--depois { background: var(--verde); }
.os-foto__leg { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; font-size: 11.5px; color: #fff; background: linear-gradient(transparent, rgba(7,24,47,.8)); }

/* Linha do tempo */
.linha-tempo { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--linha); display: grid; gap: 14px; }
.linha-tempo li { position: relative; font-size: 13.5px; }
.linha-tempo li::before { content: ""; position: absolute; left: -22px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--azul); }
.linha-tempo li:first-child::before { background: var(--azul); }
.linha-tempo time { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.linha-tempo span { color: var(--marinho); font-weight: 600; }
.linha-tempo small { display: block; color: var(--muted); }

/* Aprovação / caixas de ação */
.aprov { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 8px; margin-top: 16px; font-size: 14px; }
.aprov .ic { width: 22px; height: 22px; flex-shrink: 0; }
.aprov--ok { background: #e8f8ee; color: #136c38; }
.aprov--nao { background: #fdeeee; color: #9b1c1c; }
.aside-gap { margin-top: 10px; }
.mini-form { display: grid; gap: 0; margin-top: 10px; }
.mini-form .adm-campo { margin-bottom: 12px; }
details.mais { margin-top: 14px; border-top: 1px solid var(--linha); padding-top: 12px; }
details.mais summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--muted); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
details.mais summary::-webkit-details-marker { display: none; }
details.mais summary::after { content: "▾"; font-size: 11px; }
details.mais[open] summary::after { content: "▴"; }
details.mais summary:hover { color: var(--azul); }
details.mais--caixa { border: 2px dashed var(--linha); border-radius: 10px; padding: 14px 16px; margin-top: 18px; }
details.mais--caixa summary { color: var(--azul); }
details.mais--caixa summary .ic { width: 17px; height: 17px; }
.link-perigo { background: none; border: 0; color: var(--verm); font-weight: 700; font-size: 13.5px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; padding: 6px 0; }
.link-perigo .ic { width: 15px; height: 15px; }
.link-perigo:hover { text-decoration: underline; }
.assin-ver { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; background: #f7f9fc; border-radius: 8px; padding: 12px; margin: 10px 0 16px; }
.assin-ver img { width: 220px; max-width: 100%; height: 90px; object-fit: contain; background: #fff; border: 1px solid var(--linha); border-radius: 6px; }
.assin-ver strong { color: var(--marinho); }
.assin-ver small { color: var(--muted); }
.adm-card--ok > .adm-btn { margin-bottom: 6px; }

/* Usuários */
.senha-box { display: flex; gap: 14px; background: #eef6ff; border: 1px solid #c3dcfb; border-radius: 10px; padding: 16px 18px; margin-bottom: 20px; color: #134e8f; }
.senha-box > .ic { width: 24px; height: 24px; flex-shrink: 0; }
.senha-box strong { color: var(--marinho); }
.senha-box p { margin: 6px 0; font-size: 14.5px; }
.senha-box__senha { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 17px; background: #fff; padding: 2px 8px; border-radius: 5px; border: 1px solid #c3dcfb; letter-spacing: .04em; color: var(--marinho); user-select: all; }
.senha-box small { color: #3b6aa3; }
.usr-lista { display: grid; gap: 10px; }
.usr { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--linha); border-radius: 9px; flex-wrap: wrap; }
.usr--off { opacity: .6; }
.usr__ini { width: 36px; height: 36px; border-radius: 50%; background: #e5f0fd; color: var(--azul); display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.usr__info { flex: 1; min-width: 160px; font-size: 14px; }
.usr__info strong { color: var(--marinho); }
.usr__info small { display: block; color: var(--muted); font-size: 12.5px; word-break: break-word; }
.usr__info > small:first-of-type { display: inline; }
.usr__acoes { display: flex; gap: 6px; align-items: center; }
.os-lado .usr__acoes { width: 100%; justify-content: flex-end; }

/* Configurações */
.dica-provedor { font-size: 12.5px; background: #f7f9fc; border-radius: 8px; padding: 10px 12px; margin-bottom: 16px; color: var(--texto-2); line-height: 1.8; }
.linha-form { display: flex; gap: 10px; flex-wrap: wrap; }
.linha-form input { flex: 1; min-width: 200px; padding: 11px 13px; border: 1.5px solid var(--linha); border-radius: 7px; }
.email-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.email-log li { display: flex; gap: 10px; font-size: 13px; }
.email-log li .ic { width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; }
.email-log li.ok .ic { color: var(--verde); }
.email-log li.erro .ic { color: var(--verm); }
.email-log strong { display: block; color: var(--marinho); font-weight: 600; }
.email-log small { display: block; color: var(--muted); word-break: break-word; }

/* ---------- Áreas do cliente e do técnico ---------- */
.portal-rodape { text-align: center; font-size: 13px; color: var(--muted); padding: 10px 16px 40px; }
.portal-rodape a { color: var(--azul); font-weight: 600; }
.login__ajuda { font-size: 13.5px; margin: 18px 0 0 !important; }
.login__ajuda a { color: var(--azul); font-weight: 700; }
.titulo-lista { font-size: 15px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 34px 0 12px; }
.destaque-acao { display: flex; gap: 14px; align-items: flex-start; background: #fff7e0; border: 1px solid #f3dc9a; border-radius: 10px; padding: 16px 18px; margin-bottom: 20px; color: #7a5b00; }
.destaque-acao > .ic { width: 24px; height: 24px; flex-shrink: 0; }
.destaque-acao strong { display: block; color: #5c4400; margin-bottom: 4px; }
.destaque-acao a { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--azul); padding: 4px 0; }
.destaque-acao a .ic { width: 15px; height: 15px; }
.cards-os { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.card-os { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--linha); border-radius: 12px; padding: 12px; transition: box-shadow .2s, border-color .2s; }
.card-os:hover { border-color: #b9d7fa; box-shadow: 0 8px 24px rgba(11,37,71,.08); }
.card-os__img { width: 92px; aspect-ratio: 1; border-radius: 9px; overflow: hidden; background: #eef3fa; display: grid; place-items: center; color: #9db4d3; flex-shrink: 0; }
.card-os__img img { width: 100%; height: 100%; object-fit: cover; }
.card-os__img .ic { width: 32px; height: 32px; }
.card-os__info { flex: 1; min-width: 0; display: grid; gap: 3px; }
.card-os__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card-os__top small { color: var(--muted); font-weight: 700; font-size: 12px; }
.card-os strong { color: var(--marinho); font-size: 15.5px; line-height: 1.3; }
.card-os small { color: var(--muted); font-size: 13px; display: flex; gap: 5px; align-items: center; }
.card-os small .ic { width: 13px; height: 13px; flex-shrink: 0; }
.card-os__valor { font-weight: 800; color: var(--marinho); font-size: 14px; }
.card-os--tec { padding: 16px; }
.card-os__seta { width: 22px; height: 22px; color: #b5c0cd; }
.card-os__data { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 700; color: var(--marinho); margin-top: 4px; }
.card-os__data .ic { width: 15px; height: 15px; color: var(--azul); }
.card-os__data.hoje { color: var(--azul); }
.card-os--feita { opacity: .75; }
.decisao { border-top: 1px solid var(--linha); margin-top: 18px; padding-top: 16px; }
.decisao__sim { display: grid; gap: 4px; }
.decisao__sim .adm-btn { justify-self: start; }

/* Técnico */
.tec-iniciar { display: grid; gap: 8px; margin-bottom: 22px; text-align: center; }
.tec-iniciar small { color: var(--muted); }
.tec { display: grid; gap: 22px; }
.tec-botoes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.tec-foto-btn { position: relative; display: grid; justify-items: center; gap: 6px; padding: 16px 8px; border-radius: 12px; border: 2px solid var(--linha); background: #fff; cursor: pointer; font-weight: 800; color: var(--marinho); font-size: 14px; transition: .15s; }
.tec-foto-btn .ic { width: 28px; height: 28px; }
.tec-foto-btn:active { transform: scale(.97); }
.tec-foto-btn--antes .ic { color: #d97706; }
.tec-foto-btn--durante .ic { color: var(--azul); }
.tec-foto-btn--depois .ic { color: var(--verde); }
.tec-foto-btn:hover { border-color: var(--azul); }
.tec-foto-btn b { position: absolute; top: 6px; right: 8px; font-size: 11px; background: #eef1f5; color: var(--muted); border-radius: 10px; padding: 1px 7px; }
.tec-galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tec-galeria:empty::before { content: "Nenhuma foto ainda."; color: var(--muted); font-size: 14px; }
.tec-foto { position: relative; border-radius: 9px; overflow: hidden; background: #eef1f5; border: 1px solid var(--linha); }
.tec-foto a { display: block; aspect-ratio: 4 / 3; }
.tec-foto img { width: 100%; height: 100%; object-fit: cover; }
.tec-foto__del { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 7px; border: 0; background: rgba(255,255,255,.92); color: var(--verm); display: grid; place-items: center; cursor: pointer; font-weight: 800; }
.tec-foto__del .ic { width: 15px; height: 15px; }
.tec-foto__leg { width: 100%; border: 0; border-top: 1px solid var(--linha); padding: 8px 10px; font-size: 13px; background: #fff; }
.tec-foto__leg:focus { outline: 2px solid var(--azul); outline-offset: -2px; }
.tec-foto__status { position: absolute; left: 6px; right: 6px; top: 40%; text-align: center; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.9); border-radius: 6px; padding: 4px; color: var(--marinho); }
.tec-foto.enviando img { opacity: .5; }
.tec-foto.falhou { border-color: var(--verm); }
.tec-foto.falhou .tec-foto__status { color: var(--verm); }
.tec-relatorio { width: 100%; padding: 12px 14px; border: 1.5px solid var(--linha); border-radius: 8px; font-size: 15px; resize: vertical; background: #fbfcfe; }
.tec-relatorio:focus { outline: 0; border-color: var(--azul); background: #fff; }
.assin { position: relative; border: 2px dashed #b9c6d6; border-radius: 12px; background: #fff; height: 220px; margin: 4px 0 14px; touch-action: none; }
.assin canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.assin__dica { position: absolute; left: 0; right: 0; bottom: 48px; text-align: center; color: #b5c0cd; font-size: 15px; pointer-events: none; border-top: 1.5px solid #dfe5ec; margin: 0 24px; padding-top: 6px; }
.assin.assinado .assin__dica { opacity: 0; }
.assin__limpar { position: absolute; top: 8px; right: 8px; display: inline-flex; gap: 5px; align-items: center; font-size: 12.5px; font-weight: 700; border: 1px solid var(--linha); background: #fff; border-radius: 6px; padding: 5px 9px; cursor: pointer; color: var(--muted); }
.assin__limpar .ic { width: 13px; height: 13px; }

@media (max-width: 1240px) {
  .adm-nav a span:not(.adm-nav__curto) { display: none; }
  .adm-nav a { padding: 9px; }
}
@media (max-width: 1000px) {
  .os-layout { grid-template-columns: 1fr; }
  .os-lado { position: static; }
}
@media (max-width: 760px) {
  .adm-nav__curto, .adm-nav__sep { display: none; }
  .adm-topo__in { gap: 8px; }
  .adm-nav { gap: 0; overflow-x: auto; scrollbar-width: none; }
  .adm-grid3 { grid-template-columns: 1fr; }
  .dados, .dados--3 { grid-template-columns: 1fr 1fr; }
  .tbl--edit thead { display: none; }
  .tbl--edit tr { display: grid; grid-template-columns: 1fr 1fr 1fr 40px; gap: 6px; padding: 10px; border-bottom: 1px solid var(--linha); }
  .tbl--edit td { padding: 0; border: 0; }
  .tbl--edit td:first-child { grid-column: 1 / -1; padding: 0; }
  .tbl--edit td[data-orc-tot] { display: none; }
  .cards-os { grid-template-columns: 1fr; }
  .portal .adm-topo__titulo { display: none; }
}
@media (max-width: 520px) {
  .dados, .dados--3 { grid-template-columns: 1fr; }
  .tec-foto-btn { padding: 14px 4px; font-size: 13px; }
  .tec-galeria { grid-template-columns: 1fr 1fr; }
  .adm-cab h1 { font-size: 22px; }
}

/* ---------- Condomínios, adesão e fechamento ---------- */
.adesao { max-width: 860px; margin: 0 auto; }
.adesao__topo { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.adesao__topo .logo img { height: 44px; }
.adesao__cond { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--marinho); background: #fff; border: 1px solid var(--linha); padding: 8px 14px; border-radius: 30px; }
.adesao__cond .ic { color: var(--azul); width: 18px; height: 18px; }
.adesao__intro { background: var(--marinho); color: #fff; border-radius: 14px; padding: 28px 30px; margin-bottom: 22px; }
.adesao__intro h1 { font-size: 26px; margin-bottom: 8px; }
.adesao__intro p { color: rgba(255,255,255,.85); margin: 0 0 18px; }
.adesao__passos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.adesao__passos li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: rgba(255,255,255,.9); }
.adesao__passos b { width: 26px; height: 26px; border-radius: 50%; background: var(--azul); display: grid; place-items: center; flex-shrink: 0; font-size: 13px; }
.adesao__form { display: grid; gap: 20px; }
.adesao__form .adm-card h2 small { font-weight: 600; background: none; padding: 0; }
.adesao__ok { text-align: center; padding: 40px 28px; }
.adesao__ok > .ic { width: 54px; height: 54px; color: var(--verde); margin: 0 auto 12px; display: block; }
.adesao__ok h1 { font-size: 26px; color: var(--marinho); margin-bottom: 10px; }
.adesao__ok p { color: var(--texto-2); }
.adesao__ok .senha-box { text-align: left; max-width: 460px; margin: 18px auto; }
.adesao__aceite { background: #eef6ff; border-radius: 8px; padding: 12px 14px; margin: 14px 0 16px; }
.termo { max-height: 280px; overflow-y: auto; background: #f7f9fc; border: 1px solid var(--linha); border-radius: 8px; padding: 16px 18px; font-size: 13.5px; line-height: 1.65; color: var(--texto-2); }
.campo-erro { color: var(--verm); font-size: 12.5px; font-weight: 600; display: block; }
.com-erro input, .com-erro select, .com-erro textarea { border-color: #f1a5a5 !important; background: #fff8f8 !important; }
.adm-card.com-erro { border-color: #f1a5a5; }
.convite { display: grid; gap: 4px; }
.convite textarea { font-size: 13.5px; line-height: 1.55; background: #f7f9fc; }
.copiar { display: flex; gap: 8px; }
.copiar input { flex: 1; min-width: 0; font-size: 13.5px; background: #f7f9fc; }
.convite__botoes { display: flex; gap: 8px; flex-wrap: wrap; }
.passos-mini { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14px; color: var(--texto-2); }
.fech-filtro { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.fech-filtro .adm-campo { margin: 0; min-width: 200px; }
.fech-botoes { display: flex; gap: 8px; }
.fech-resumo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.fech-resumo > div { background: #f7f9fc; border-radius: 10px; padding: 12px 14px; }
.fech-resumo small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.fech-resumo b { font-size: 22px; color: var(--marinho); }
.fech-resumo__total { background: #eef4fc !important; }
.fech-resumo__total b { color: var(--azul); }
.fech-enviado { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: #136c38; background: #e8f8ee; border-radius: 8px; padding: 9px 12px; }
.fech-enviado .ic { width: 17px; height: 17px; }
.fech-enviar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--linha); margin-top: 16px; padding-top: 16px; }
.tbl tr.tbl-sub td { background: #f7f9fc; font-weight: 700; color: var(--marinho); font-size: 13px; }
.tbl tr.tbl-total td { background: #eef4fc; font-weight: 800; color: var(--marinho); font-size: 15px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.kpi { background: #fff; border: 1px solid var(--linha); border-radius: 12px; padding: 16px 18px; transition: border-color .2s; }
.kpi:hover { border-color: var(--azul); }
.kpi small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.kpi b { font-size: 26px; color: var(--marinho); }
.kpi--destaque { background: var(--marinho); border-color: var(--marinho); }
.kpi--destaque small { color: rgba(255,255,255,.7); }
.kpi--destaque b { color: #fff; }
.link-seta-adm { display: inline-flex; gap: 6px; align-items: center; font-size: 13.5px; font-weight: 700; color: var(--azul); }
.link-seta-adm .ic { width: 15px; height: 15px; }
@media (max-width: 760px) {
  .adesao__passos { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .fech-resumo { grid-template-columns: 1fr 1fr; }
  .fech-resumo__total { grid-column: 1 / -1; }
  .adesao__intro { padding: 22px 20px; }
}
@media (max-width: 460px) { .adesao__passos { grid-template-columns: 1fr; } .copiar { flex-direction: column; } }

.primeiro { max-width: 620px; margin: 10px auto 0; }
.primeiro > h1 { font-size: 26px; color: var(--marinho); margin: 18px 0 6px; }
.primeiro > p { color: var(--texto-2); margin: 0 0 20px; }
.primeiro .login__logo img { height: 46px; }
.grid-interno { gap: 0 12px; }
.end-grid { display: grid; grid-template-columns: 150px 1fr 110px; gap: 0 14px; align-items: start; }
.end-grid .end-cep { grid-column: 1; }
.end-grid .end-status { grid-column: 2 / 4; align-self: center; font-size: 13px; color: var(--muted); padding-top: 10px; }
.end-grid .end-rua { grid-column: 1 / 3; }
.end-grid .end-comp { grid-column: 1 / 2; }
.end-grid .end-bairro { grid-column: 2 / 4; }
.end-grid .end-cidade { grid-column: 1 / 3; }
.end-status.ok { color: var(--verde); }
.end-status.erro { color: var(--verm); }
.mapa-box { margin: 14px 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--linha); background: #eef1f5; }
.mapa-box iframe { width: 100%; border: 0; display: block; }
.mapa-box__botoes { display: flex; gap: 8px; padding: 10px; background: #fff; flex-wrap: wrap; }
@media (max-width: 600px) {
  .end-grid { grid-template-columns: 1fr 90px; }
  .end-grid .end-cep { grid-column: 1 / 3; }
  .end-grid .end-status { grid-column: 1 / 3; padding: 0 0 8px; }
  .end-grid .end-rua { grid-column: 1 / 3; }
  .end-grid .end-comp, .end-grid .end-bairro, .end-grid .end-cidade { grid-column: 1 / 3; }
}

/* Aviso de atualização automática */
.ao-vivo { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 300; display: flex; align-items: center; gap: 12px; background: var(--marinho); color: #fff; padding: 10px 10px 10px 18px; border-radius: 40px; box-shadow: 0 12px 30px rgba(11,37,71,.3); font-size: 14px; font-weight: 600; animation: aoVivo .3s ease; max-width: calc(100vw - 24px); }
.ao-vivo button { border: 0; border-radius: 30px; padding: 8px 16px; font-weight: 700; cursor: pointer; background: var(--azul); color: #fff; }
.ao-vivo .ao-vivo__x { background: transparent; color: rgba(255,255,255,.7); padding: 8px 10px; }
@keyframes aoVivo { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

.cobranca { display: flex; gap: 10px; align-items: center; background: #eef4fc; color: #134e8f; border-radius: 8px; padding: 10px 14px; margin-top: 14px; font-size: 14px; }
.cobranca .ic { width: 18px; height: 18px; flex-shrink: 0; }
.cobranca--direto { background: #fff4d6; color: #7a5b00; }
.cobranca-check { background: #fff7e0; border: 1px solid #f3dc9a; border-radius: 8px; padding: 12px 14px; }
small.pgto-direto { color: #946400 !important; font-weight: 700; }

/* ---------- Responsivo: correções gerais ---------- */
/* itens de grid não podem crescer além da tela por causa de tabelas/campos largos */
.os-layout > *, .os-main > *, .os-lado > *, .adm-form > *, .adm-grid2 > *, .adm-grid3 > *, .dados > *,
.kpis > *, .fech-resumo > *, .end-grid > *, .cards-os > *, .adesao__passos > *, .adm-card { min-width: 0; }
/* logo nunca é espremido */
.adm-topo__logo, .logo { flex-shrink: 0; }
.logo img { max-width: none; flex-shrink: 0; }
.adm-nav { min-width: 0; }
@media (max-width: 760px) {
  .adm-topo__in { min-width: 0; }
  .adm-nav { flex: 0 1 auto; }
}
@media (max-width: 600px) {
  .adm-topo .logo img { height: 28px; }
}
/* painel da JPL no celular: menu de ícones numa segunda linha, com rolagem lateral */
@media (max-width: 760px) {
  .adm-topo--admin .adm-topo__in { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 2px; row-gap: 4px; }
  .adm-topo--admin .adm-nav { width: 100%; justify-content: space-between; overflow-x: auto; }
  .adm-topo--admin .adm-nav a { padding: 10px 8px; }
}
.card-os__top { flex-wrap: wrap; row-gap: 4px; }
@media (max-width: 420px) { .card-os__img { width: 72px; } }

/* Celular: barra de etapas compacta, orçamento empilhado e tabelas em cartões */
@media (max-width: 600px) {
  .progresso { padding: 12px 8px 10px; overflow: hidden; }
  .progresso li { min-width: 0; font-size: 0; gap: 6px; }
  .progresso li.atual, .progresso li.recusado { font-size: 11px; white-space: nowrap; }
  .progresso li:first-child.atual { align-items: flex-start; }
  .progresso li:last-child.atual { align-items: flex-end; }

  .tbl--orc thead { display: none; }
  .tbl--orc, .tbl--orc tbody { display: block; }
  .tbl--orc tr { display: grid; grid-template-columns: auto auto 1fr auto; column-gap: 4px; align-items: baseline; padding: 11px 14px; border-bottom: 1px solid var(--linha); }
  .tbl--orc tbody tr:last-child { border-bottom: 0; }
  .tbl--orc td { padding: 0; border: 0 !important; font-size: 13px; color: var(--muted); }
  .tbl--orc td:first-child { grid-column: 1 / -1; font-size: 14.5px; font-weight: 600; color: var(--marinho); margin-bottom: 3px; }
  .tbl--orc td:nth-child(4)::before { content: "× "; }
  .tbl--orc td:nth-child(5) { padding-left: 10px; font-weight: 700; color: var(--marinho); font-size: 14px; }
  .orc-totais { max-width: none; }

  .tbl--resp thead { display: none; }
  .tbl--resp, .tbl--resp tbody, .tbl--resp tr, .tbl--resp td { display: block; width: 100%; }
  .tbl--resp tr { padding: 12px 14px; border-bottom: 1px solid var(--linha); }
  .tbl--resp tbody tr:last-child { border-bottom: 0; }
  .tbl--resp td { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 4px 0; border: 0 !important; text-align: right; }
  .tbl--resp td.num { text-align: right; }
  .tbl--resp td::before { content: attr(data-label); flex: none; max-width: 42%; text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
  .tbl--resp td[data-label=""]::before { display: none; }
  .tbl--resp td[data-label=""] { justify-content: flex-end; }
  .tbl--resp .tbl__v { min-width: 0; overflow-wrap: anywhere; }
  .tbl--resp td:first-child { text-align: left; font-size: 15px; padding-bottom: 6px; }
  .tbl--resp td:first-child::before { display: none; }
  .tbl--resp td small, .tbl--resp td .st { margin-left: auto; }
  .tbl--resp td:first-child small { margin-left: 0; }
  .tbl--resp .nowrap { white-space: normal; }
}
@media (max-width: 600px) {
  .tbl--resp tr.tbl__soma { display: flex; justify-content: space-between; gap: 12px; background: #f7f9fc; }
  .tbl--resp tr.tbl__soma td { width: auto; padding: 0; font-size: 14px; }
  .tbl--resp tr.tbl__soma td:first-child { font-size: 14px; padding: 0; text-align: left; }
}
@media (max-width: 600px) { .tbl--resp tr.tbl__soma td:last-child { white-space: nowrap; } }
.fech-periodo { display: flex; gap: 10px; }
.fech-filtro .fech-periodo .adm-campo { min-width: 0; }
.fech-periodo .adm-campo:first-child select { min-width: 150px; }
.fech-periodo .adm-campo:last-child select { min-width: 96px; }

/* ======================================================================
   Menu lateral (painel da JPL e áreas do Cliente, Condomínio e Técnico)
   ====================================================================== */
:root { --lat-w: 248px; --lat-min: 76px; }
.lat { position: fixed; z-index: 40; top: 0; left: 0; bottom: 0; width: var(--lat-w); background: var(--marinho); color: #fff; display: flex; flex-direction: column; transition: width .22s ease, transform .25s ease; overflow: hidden; }
.com-lateral { padding-left: var(--lat-w); transition: padding-left .22s ease; }
.lat__topo { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 68px; padding: 0 14px 0 20px; flex: none; border-bottom: 1px solid rgba(255,255,255,.08); }
.lat__logo { display: block; flex: none; overflow: hidden; }
.lat__logo .logo img { height: 32px; }
.lat__recolher, .lat__fechar, .lat-barra__btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; border: 0; background: transparent; color: rgba(255,255,255,.7); cursor: pointer; flex: none; transition: background .15s, color .15s; }
.lat__recolher:hover, .lat__fechar:hover, .lat-barra__btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.lat__recolher .ic, .lat__fechar .ic, .lat-barra__btn .ic { width: 20px; height: 20px; transition: transform .22s; }
.lat__fechar { display: none; }
.lat__area { padding: 16px 20px 6px; white-space: nowrap; flex: none; }
.lat__area small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #3a95f5; }
.lat__area strong { display: block; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.9); overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.lat__nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 6px 12px 12px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }
.lat__grupo { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.4); padding: 18px 10px 6px; white-space: nowrap; }
.lat__item { position: relative; display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; margin: 2px 0; border-radius: 8px; font-size: 14.5px; font-weight: 600; color: rgba(255,255,255,.75); white-space: nowrap; transition: background .15s, color .15s; }
.lat__item .ic { width: 20px; height: 20px; flex: none; }
.lat__item:hover { background: rgba(255,255,255,.07); color: #fff; }
.lat__item.ativo { background: #1677e5; color: #fff; box-shadow: 0 6px 16px -8px rgba(22,119,229,.9); }
.lat__rot { flex: 1; overflow: hidden; text-overflow: ellipsis; transition: opacity .15s; }
.lat__item .badge { flex: none; }
.lat__rodape { flex: none; padding: 10px 12px 16px; border-top: 1px solid rgba(255,255,255,.08); }
.lat-fundo, .lat-barra { display: none; }

/* Recolhido: só os ícones (computador) */
@media (min-width: 901px) {
  .lat-min .lat { width: var(--lat-min); }
  .lat-min .com-lateral { padding-left: var(--lat-min); }
  .lat-min .lat__topo { flex-direction: column; justify-content: center; height: auto; padding: 16px 0 10px; gap: 10px; }
  .lat-min .lat__logo { width: 30px; }
  .lat-min .lat__logo .logo img { height: 30px; max-width: none; }
  .lat-min .lat__recolher .ic { transform: scaleX(-1); }
  .lat-min .lat__area { display: none; }
  .lat-min .lat__grupo { font-size: 0; padding: 10px 0 4px; margin: 0 14px; border-top: 1px solid rgba(255,255,255,.1); }
  .lat-min .lat__grupo:first-child { border-top: 0; }
  .lat-min .lat__nav, .lat-min .lat__rodape { padding-left: 14px; padding-right: 14px; }
  .lat-min .lat__item { justify-content: center; padding: 0; gap: 0; }
  .lat-min .lat__rot { opacity: 0; width: 0; flex: 0 0 0; }
  .lat-min .lat__item .badge { position: absolute; top: 3px; right: 3px; min-width: 16px; height: 16px; font-size: 10px; }
}

/* Celular e tablet: barra no topo + menu que abre por cima */
@media (max-width: 900px) {
  .com-lateral { padding-left: 0; }
  .lat { width: min(280px, 84vw); transform: translateX(-102%); box-shadow: 0 0 40px rgba(0,0,0,.35); }
  .lat-aberto .lat { transform: none; }
  .lat__recolher { display: none; }
  .lat__fechar { display: grid; }
  .lat-fundo { display: block; position: fixed; inset: 0; z-index: 39; background: rgba(7,20,40,.5); opacity: 0; pointer-events: none; transition: opacity .25s; }
  .lat-aberto .lat-fundo { opacity: 1; pointer-events: auto; }
  .lat-aberto { overflow: hidden; }
  .lat-barra { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 30; height: 56px; padding: 0 12px 0 6px; background: var(--marinho); color: #fff; }
  .lat-barra__logo .logo img { height: 28px; }
  .lat-barra__area { margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
.os-lado { top: 24px; }
@media print { .lat, .lat-barra, .lat-fundo { display: none !important; } .com-lateral { padding-left: 0 !important; } }

/* ---------- Visualizador de fotos ---------- */
.lbx { position: fixed; inset: 0; z-index: 100; background: rgba(5,14,28,.97); display: flex; align-items: center; justify-content: center; animation: lbx-in .18s ease; }
.lbx[hidden] { display: none; }
@keyframes lbx-in { from { opacity: 0; } }
.lbx-aberto, .lbx-aberto body { overflow: hidden; }
.lbx svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lbx__topo { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 6px; padding: 12px 14px; z-index: 2; }
.lbx__cont { margin-right: auto; color: rgba(255,255,255,.8); font-size: 14px; font-weight: 600; padding-left: 6px; }
.lbx__btn, .lbx__nav { display: grid; place-items: center; border: 0; cursor: pointer; color: #fff; background: rgba(255,255,255,.1); border-radius: 50%; transition: background .15s; }
.lbx__btn { width: 42px; height: 42px; }
.lbx__btn:hover, .lbx__nav:hover { background: rgba(255,255,255,.22); }
.lbx__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; z-index: 2; }
.lbx__nav svg { width: 28px; height: 28px; }
.lbx__nav--ant { left: 18px; } .lbx__nav--prox { right: 18px; }
.lbx--uma .lbx__nav { display: none; }
.lbx__fig { margin: 0; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 66px 90px 24px; }
.lbx__fig img { max-width: 100%; max-height: calc(100% - 56px); object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); transition: opacity .2s; user-select: none; }
.lbx--carregando .lbx__fig img { opacity: .25; }
.lbx__carrega { position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; margin: -17px; border: 3px solid rgba(255,255,255,.25); border-top-color: #fff; border-radius: 50%; animation: lbx-gira .8s linear infinite; display: none; }
.lbx--carregando .lbx__carrega { display: block; }
@keyframes lbx-gira { to { transform: rotate(360deg); } }
.lbx__fig figcaption { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: #fff; font-size: 15px; font-weight: 500; text-align: center; max-width: 720px; }
.lbx__fig figcaption[hidden] { display: none; }
.lbx__etapa { position: static !important; flex: none; }
@media (max-width: 700px) {
  .lbx__fig { padding: 62px 8px 20px; }
  .lbx__nav { top: auto; bottom: 18px; transform: none; width: 46px; height: 46px; }
  .lbx__nav--ant { left: 14px; } .lbx__nav--prox { right: 14px; }
  .lbx__fig img { max-height: calc(100% - 110px); }
  .lbx__fig figcaption { font-size: 14px; padding: 0 60px; flex-wrap: wrap; justify-content: center; }
}

/* ---------- App web: botão de instalar ---------- */
.login__lembrar { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
.login__lembrar .ic { width: 13px; height: 13px; }
.app-instalar { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 16px; padding: 12px 14px; text-align: left; cursor: pointer; border: 1.5px dashed #b9d7fa; background: #f3f8ff; border-radius: 10px; color: var(--marinho); transition: .15s; }
.app-instalar:hover { border-style: solid; border-color: var(--azul); }
.app-instalar[hidden] { display: none; }
.app-instalar > .ic { width: 34px; height: 34px; padding: 7px; border-radius: 8px; background: var(--azul); color: #fff; flex: none; }
.app-instalar strong { display: block; font-size: 14.5px; }
.app-instalar small { display: block; font-size: 12.5px; color: var(--muted); }
button.lat__item { width: 100%; border: 0; background: transparent; font: inherit; font-size: 14.5px; cursor: pointer; text-align: left; }
.lat__item--app { color: #9ccaff; }
.lat__item[hidden] { display: none; }
.app-ajuda { position: fixed; inset: 0; z-index: 110; background: rgba(5,14,28,.6); display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
.app-ajuda__caixa { position: relative; background: #fff; border-radius: 16px; padding: 24px 22px 18px; max-width: 420px; width: 100%; box-shadow: 0 20px 50px rgba(0,0,0,.3); animation: lbx-in .2s ease; }
.app-ajuda h2 { font-size: 18px; color: var(--marinho); margin: 0 30px 12px 0; }
.app-ajuda ol { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 8px; font-size: 15px; }
.app-ajuda svg { width: 18px; height: 18px; vertical-align: -3px; fill: none; stroke: var(--azul); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.app-ajuda p { margin: 0; font-size: 14px; color: var(--muted); }
.app-ajuda__x { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border: 0; background: #f1f4f8; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); }
/* app instalado: respeita a área do relógio/notch do celular */
.app-instalado .lat-barra { padding-top: env(safe-area-inset-top); height: calc(56px + env(safe-area-inset-top)); }
.app-instalado .lat__topo { padding-top: env(safe-area-inset-top); }

/* ---------- Notificações (sininho) ---------- */
.lat__sino { position: relative; display: grid; place-items: center; width: 36px; height: 36px; margin-left: auto; border-radius: 8px; border: 0; background: transparent; color: rgba(255,255,255,.8); cursor: pointer; flex: none; transition: background .15s, color .15s; }
.lat__sino:hover { background: rgba(255,255,255,.1); color: #fff; }
.lat__sino .ic { width: 20px; height: 20px; }
.lat__sino .badge { position: absolute; top: -3px; right: -5px; min-width: 17px; height: 17px; font-size: 10.5px; padding: 0 4px; border: 2px solid var(--marinho); box-sizing: content-box; }
.lat__sino .badge[hidden] { display: none; }
.lat__sino--novo .ic { animation: sino 1s ease; transform-origin: 50% 0; }
@keyframes sino { 0%,100% { transform: rotate(0); } 15% { transform: rotate(16deg); } 30% { transform: rotate(-14deg); } 45% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 75% { transform: rotate(3deg); } }
.lat__topo .lat__recolher { margin-left: 0; }
.lat-barra .lat__sino { margin-left: 4px; }
@media (min-width: 901px) { .lat-min .lat__sino { margin: 0; } }

.avisos { position: fixed; inset: 0; z-index: 90; background: rgba(7,20,40,.25); }
.avisos[hidden] { display: none; }
.avisos__caixa { position: absolute; top: 12px; left: calc(var(--lat-w) + 12px); width: 400px; max-height: calc(100vh - 24px); display: flex; flex-direction: column; background: #fff; border-radius: 14px; box-shadow: 0 24px 60px -12px rgba(7,20,40,.45); overflow: hidden; animation: avisos-in .18s ease; }
.lat-min .avisos__caixa { left: calc(var(--lat-min) + 12px); }
@keyframes avisos-in { from { opacity: 0; transform: translateY(-6px); } }
.avisos__cab { display: flex; align-items: center; gap: 10px; padding: 16px 16px 12px 20px; border-bottom: 1px solid var(--linha); }
.avisos__cab h2 { font-size: 17px; color: var(--marinho); margin-right: auto; }
.avisos__todas { border: 0; background: none; color: var(--azul); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; padding: 4px; }
.avisos__x { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #f1f4f8; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.avisos__push { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding: 12px 20px; background: #f3f8ff; border-bottom: 1px solid var(--linha); font-size: 13.5px; color: var(--texto-2); }
.avisos__push[hidden] { display: none; }
.avisos__push > span { flex: 1 1 200px; }
.avisos__ok { color: var(--verde); font-weight: 700; }
.avisos__link { border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.avisos__lista { overflow-y: auto; overscroll-behavior: contain; }
.avisos__vazio { text-align: center; color: var(--muted); padding: 40px 24px; margin: 0; font-size: 14px; }
.aviso { display: flex; gap: 12px; padding: 14px 20px; border-bottom: 1px solid #eef1f5; transition: background .15s; position: relative; }
.aviso:hover { background: #f7faff; }
.aviso__ic { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #eef3f9; color: #64748b; }
.aviso__ic .ic { width: 18px; height: 18px; }
.aviso__txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.aviso__txt strong { font-size: 14px; color: var(--marinho); font-weight: 600; line-height: 1.35; }
.aviso__txt span { font-size: 13px; color: var(--texto-2); line-height: 1.45; overflow-wrap: anywhere; }
.aviso__txt small { font-size: 12px; color: var(--muted); }
.aviso--novo { background: #f5f9ff; }
.aviso--novo .aviso__ic { background: var(--azul); color: #fff; }
.aviso--novo .aviso__txt strong { font-weight: 800; }
.aviso--novo::after { content: ""; position: absolute; top: 20px; right: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--azul); }
@media (max-width: 900px) {
  .avisos { background: rgba(7,20,40,.45); }
  .avisos__caixa, .lat-min .avisos__caixa { left: 8px; right: 8px; top: calc(8px + env(safe-area-inset-top)); width: auto; max-height: calc(100vh - 16px - env(safe-area-inset-top)); }
  .avisos-aberto, .avisos-aberto body { overflow: hidden; }
}
@media (max-width: 900px) { .lat .lat__sino { display: none; } }
