:root {
  color-scheme: light;
  font-family: "Instrument Sans", system-ui, sans-serif;
  background: #f4f6f2;
  color: #182b27;
  --texto-suave: #516761;
  --linha: #dce5de;
  --papel: #fff;
  --verde: #183b35;
  --menta: #c7f276;
  --raio: 18px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 300px; }
button, input, textarea, select { font: inherit; }
button, summary { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid #39845e; outline-offset: 3px;
}
svg { width: 21px; height: 21px; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; fill: none; flex: none; vertical-align: middle; }
.biblioteca { position: absolute; width: 0; height: 0; overflow: hidden; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.65rem, 4.7vw, 2.3rem); letter-spacing: -.045em; line-height: 1.1; }
h2 { font-size: 1.04rem; letter-spacing: -.018em; }
label, .campo-escolha { display: grid; gap: 7px; font-size: .88rem; font-weight: 650; min-width: 0; }
input, select, textarea, .escolha {
  width: 100%; min-width: 0; min-height: 47px; border: 1px solid #ccd9cf;
  border-radius: 10px; background: #fff; padding: 10px 12px; color: #182b27;
  font-size: 1rem; font-weight: 450;
}
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #687970; }
.escolha { display: flex; align-items: center; gap: 8px; text-align: left; }
button:disabled { cursor: not-allowed; opacity: .56; }
.botao, .icone-botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 11px; min-height: 46px; padding: 0 14px;
  font-size: .88rem; font-weight: 730; white-space: nowrap; text-align: center;
}
.botao svg { width: 19px; height: 19px; }
.primario { color: #14251b; background: var(--menta); border-color: #afd963; }
.primario:hover { background: #b5e563; }
.secundario { background: #f0f5ef; color: var(--verde); border-color: #d8e4d9; }
.secundario:hover { background: #e6efe4; }
.icone-botao { padding: 0; width: 44px; min-height: 44px; background: transparent; color: inherit; }
.icone-botao:hover { background: #78918624; }
.marca { display: inline-flex; align-items: center; gap: 5px; font-size: 1.17rem; font-weight: 820; white-space: nowrap; letter-spacing: -.025em; }
.marca b { font-weight: 500; }
.marca-icone { display: grid; place-items: center; width: 33px; height: 33px; margin-right: 3px; border-radius: 9px; background: var(--menta); color: #152e27; }
.marca-icone svg { width: 20px; height: 20px; }
.entrada { min-height: 100dvh; display: grid; place-items: center; padding: 20px; background: #142e2a; }
.login { width: min(100%, 420px); background: #f8faf5; padding: clamp(22px, 6vw, 38px); border-radius: 24px; }
.login h1 { margin: 24px 0 22px; }
.login form, dialog form, .bloco-form, #campo-veiculo { display: grid; gap: 14px; }
.login .botao { margin-top: 6px; justify-content: space-between; }
.cabecalho-mobile { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; color: #fff; background: #142e2a; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #35564d; color: #fff; font-size: .8rem; font-weight: 700; }
.lateral { position: fixed; inset: 0 auto 0 0; width: min(84vw, 262px); z-index: 4; background: #142e2a; color: #fff; padding: 20px 15px; display: flex; flex-direction: column; visibility: hidden; transform: translateX(-100%); }
.lateral.aberto { visibility: visible; transform: translateX(0); }
.lateral > .marca { margin: 2px 9px 34px; }
.lateral nav { display: grid; gap: 5px; }
.lateral nav a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 12px; border-radius: 10px; color: #d8e4df; font-size: .9rem; }
.lateral nav a:hover, .lateral nav a[aria-current] { background: #294840; color: #eaffcc; }
.operador { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 12px 0 0; border-top: 1px solid #3a524a; }
.operador > div { min-width: 0; flex: 1; }
.operador strong, .operador small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .83rem; }
.operador small { color: #c4d6ce; font-size: .74rem; margin-top: 2px; }
#fundo-menu { position: fixed; inset: 0; background: #1026218c; border: 0; z-index: 3; }
.conteudo { max-width: 1180px; margin: auto; padding: 18px 14px 34px; }
.boas-vindas { position: relative; isolation: isolate; display: grid; gap: 20px; overflow: hidden; color: #f8fdf5; background: #1b4238; padding: 24px 19px; border-radius: 20px; }
.boas-vindas p { color: #d2e5d9; font-size: .86rem; }
.boas-vindas #filial-inicio { color: #dcf4b6; font-weight: 700; margin-bottom: 9px; }
.boas-vindas h1 { margin-bottom: 8px; font-size: clamp(2rem, 6vw, 3rem); }
.acoes-inicio { display: flex; flex-wrap: wrap; gap: 8px; }
.acao-inicio { background: #ffffff12; color: #f8fdf5; border-color: #8ab69f; }
.acao-inicio:hover { background: #ffffff25; }
.marca-fundo { width: 144px; height: 144px; color: #ffffff14; position: absolute; right: -20px; bottom: -8px; z-index: -1; }
.atalhos { margin: 14px 0; display: grid; gap: 10px; }
.atalho { min-height: 76px; display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--linha); border-radius: var(--raio); background: #fff; }
.atalho:hover { border-color: #7eb49a; }
.atalho-icone { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 11px; color: #225b42; background: #e4f2e7; flex: none; }
.laranja { color: #875014; background: #f8ecd9; }
.atalho strong, .atalho small { display: block; }
.atalho small, .texto-suave { color: var(--texto-suave); font-size: .85rem; }
.atalho small { margin-top: 3px; }
.seta { margin-left: auto; color: var(--texto-suave); }
.painel { background: #fff; border: 1px solid var(--linha); border-radius: var(--raio); }
.recentes, .bloco-form, .filtros, .detalhes { padding: 15px; }
.titulo-linha { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.titulo-linha > a:not(.botao) { font-size: .84rem; font-weight: 700; color: #2b6649; white-space: nowrap; }
.titulo-linha > a:not(.botao) svg { width: 16px; }
.topo { margin: 4px 0 15px; }
.filtros { display: grid; gap: 10px; margin-bottom: 12px; }
.filtros > button { justify-self: start; }
.filtros-os, .dupla { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.filtros-os > :last-child { grid-column: 1 / -1; }
.lista { min-width: 0; }
.lista > p { padding: 14px; color: var(--texto-suave); font-size: .88rem; }
.linha-lista { width: 100%; display: flex; align-items: center; gap: 8px; padding: 12px 13px; min-height: 62px; border: 0; background: transparent; color: inherit; text-align: left; border-radius: 10px; }
.lista > .linha-lista + .linha-lista { border-top: 1px solid #ebefeb; }
.linha-lista:hover:is(a,button) { background: #f0f6ee; }
.linha-lista strong, .linha-lista small { display: block; overflow-wrap: anywhere; }
.linha-lista strong { font-size: .91rem; }
.linha-lista small { color: var(--texto-suave); font-size: .79rem; margin-top: 3px; }
.linha-lista > div { min-width: 0; flex: 1; }
.situacao { color: #30582c; background: #e9f5dc; border-radius: 999px; padding: 5px 9px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.paginacao { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 13px; font-size: .83rem; }
.voltar { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 11px; color: #38654f; font-size: .85rem; font-weight: 670; }
.voltar svg { width: 16px; }
#form-os { display: grid; gap: 12px; }
details > summary { font-weight: 650; font-size: .86rem; color: #38654f; }
details[open] > :not(summary) { margin-top: 10px; }
.rodape-form { display: grid; gap: 8px; padding-bottom: env(safe-area-inset-bottom, 0px); }
.rodape-form button { width: 100%; }
.item-os { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid var(--linha); }
.item-os input { min-height: 42px; }
.item-os .campos-item { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.detalhes { display: grid; gap: 14px; margin-bottom: 12px; }
.detalhes p { white-space: pre-wrap; overflow-wrap: anywhere; }
.detalhes h2 { margin-bottom: 3px; }
.aviso { position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%); max-width: calc(100vw - 24px); z-index: 5; padding: 12px 16px; border-radius: 10px; background: #153b30; color: #fff; box-shadow: 0 6px 22px #0003; }
.erro { color: #92271b; font-size: .88rem; font-weight: 650; }
dialog { width: min(520px, calc(100vw - 20px)); max-height: min(84dvh, 740px); color: inherit; border: 1px solid var(--linha); border-radius: 18px; padding: 15px; box-shadow: 0 20px 70px #112f2b42; }
dialog::backdrop { background: #0d29268a; }
dialog .titulo-linha { margin-bottom: 10px; }
dialog h2 { font-size: 1.23rem; }
dialog #acao-seletor { width: 100%; margin-top: 10px; }
dialog .lista { max-height: 46dvh; overflow: auto; }
.campo-busca { position: relative; margin-bottom: 8px; }
.campo-busca svg { position: absolute; top: 13px; left: 10px; color: var(--texto-suave); }
.campo-busca input { padding-left: 38px; }
fieldset { padding: 10px; min-width: 0; border: 1px solid var(--linha); border-radius: 10px; }
fieldset > .dupla + .dupla { margin-top: 8px; }
legend { font-size: .83rem; color: var(--texto-suave); }

@media (min-width: 680px) {
  .conteudo { padding: 26px; }
  .boas-vindas { padding: 32px; display: flex; align-items: flex-end; justify-content: space-between; }
  .marca-fundo { right: 13%; width: 182px; height: 182px; }
  .atalhos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filtros-os { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filtros-os > :last-child { grid-column: auto; }
  .rodape-form button { width: auto; justify-self: end; }
}
@media (min-width: 950px) {
  .cabecalho-mobile, #fundo-menu { display: none; }
  .lateral { width: 242px; visibility: visible; transform: none; padding: 24px 15px; }
  #aplicacao { padding-left: 242px; }
  .conteudo { padding: 34px; }
  .boas-vindas { min-height: 200px; }
  #form-os { max-width: 790px; }
}
