* { box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  background: #f4f5f0;
  color: #1c2a24;
}

.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.login-box {
  background: #fff;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  width: 100%;
  max-width: 340px;
}

.login-box h1 {
  margin: 0 0 4px 0;
  color: #1f4d3d;
}

.subtitulo {
  margin: 0 0 24px 0;
  color: #667;
  font-size: 14px;
}

.login-box form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-box label {
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
}

.login-box input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
}

.login-box button {
  margin-top: 20px;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #1f4d3d;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.login-box button:hover {
  background: #163a2e;
}

.alerta-erro {
  background: #fdecea;
  color: #b3261e;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 8px;
}

.topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: #fff;
  border-bottom: 1px solid #e2e2de;
}

.link-sair {
  background: none;
  border: none;
  color: #b3261e;
  cursor: pointer;
  font-size: 14px;
}

.conteudo {
  padding: 24px;
  max-width: 700px;
  margin: 0 auto;
}

.aviso-fase {
  background: #eef3ee;
  border-left: 4px solid #1f4d3d;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
  color: #35473d;
}

.marca {
  color: #1f4d3d;
  font-weight: 700;
  text-decoration: none;
  font-size: 18px;
}

.menu-topo a {
  color: #1f4d3d;
  text-decoration: none;
  font-weight: 600;
  margin-right: 16px;
}

.conteudo-estreita {
  max-width: 520px;
}

.conteudo-larga {
  max-width: 1400px;
}

#blocos-arrastaveis {
  column-width: 380px;
  column-gap: 16px;
}

#blocos-arrastaveis .bloco {
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 16px;
}

.cabecalho-pagina {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.botao {
  background: #1f4d3d;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.botao-secundario {
  background: #eef3ee;
  color: #1f4d3d;
  border: 1px solid #cdd9d2;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.botao-perigo {
  background: #fdecea;
  color: #b3261e;
  border: 1px solid #f3c6c1;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.tabela {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.tabela th, .tabela td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.tabela th {
  background: #f0f1eb;
  font-size: 12px;
  text-transform: uppercase;
  color: #667;
}

.badge {
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 12px;
  text-transform: capitalize;
  background: #eef3ee;
  color: #1f4d3d;
}

.badge-administrador { background: #1f4d3d; color: #fff; }
.badge-assistente { background: #e7edf5; color: #2a4a73; }
.badge-mecanico { background: #f5efe0; color: #7a5c1e; }
.badge-status { background: #eef3ee; color: #1f4d3d; text-transform: none; font-size: 13px; }

.texto-fraco {
  color: #888;
  font-size: 13px;
}

.bloco {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.bloco h2 {
  margin-top: 0;
  font-size: 16px;
  color: #1f4d3d;
}

.bloco p {
  margin: 6px 0;
}

.bloco-ausencia {
  border-left: 4px solid #f3c6c1;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form label {
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
}

.form input, .form select, .form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}

.form button {
  margin-top: 16px;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #1f4d3d;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.form-linha {
  flex-direction: row;
  align-items: center;
}

.linha-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400 !important;
}

.botoes-horas {
  display: flex;
  gap: 8px;
  margin: 10px 0;
}

.linha-inativa {
  opacity: 0.5;
}

.link-botao {
  background: none;
  border: none;
  color: #b3261e;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  text-decoration: underline;
  margin-left: 8px;
}

.menu-topo {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.popup-caixa {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  max-width: 360px;
  width: 90%;
}

.popup-caixa h3 {
  margin-top: 0;
  color: #1f4d3d;
}

.popup-botoes {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.linha-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.linha-item span:first-child {
  flex: 1;
}

.form-item-inline {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.form-item-inline input, .form-item-inline select {
  margin-top: 0;
  width: auto;
}

.subtitulo-checklist {
  font-size: 14px;
  color: #1f4d3d;
  margin: 16px 0 4px 0;
  text-transform: uppercase;
}

.linha-checklist {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
}

.botoes-simnao {
  display: flex;
  gap: 12px;
  font-size: 13px;
}

.bloco-etapa-foto {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.galeria-fotos {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0;
}

.foto-miniatura {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.tabela-execucao {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}

.tabela-execucao th, .tabela-execucao td {
  border: 1px solid #eee;
  padding: 6px;
  font-size: 13px;
}

.tabela-execucao input {
  width: 100%;
  border: none;
  padding: 4px;
  font-size: 13px;
}

.valor-money {
  font-weight: 600;
  color: #1f4d3d;
}

.botao-nova-os {
  margin-right: 12px;
}

.rotulo-secao {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7a8a80;
  font-weight: 700;
}

.faixa-topo {
  background: #1f4d3d;
  color: #fff;
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.faixa-topo h1 {
  margin: 6px 0 8px 0;
  font-size: 28px;
}

.faixa-topo p {
  margin: 0;
  color: #cfe0d7;
  max-width: 480px;
}

.faixa-topo .rotulo-secao {
  color: #9fd6bb;
}

.botao-claro {
  background: #fff;
  color: #1f4d3d;
  white-space: nowrap;
}

.cartoes-contagem {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.cartao-contagem {
  background: #fff;
  border-radius: 12px;
  padding: 16px 18px;
}

.numero-grande {
  font-size: 30px;
  font-weight: 700;
  color: #1f4d3d;
  margin: 4px 0 2px 0;
}

.grade-cards-os {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.card-os {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  display: block;
  border: 1px solid #eee;
  transition: box-shadow 0.15s ease;
}

.card-os:hover {
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.card-os-topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.card-os-cliente {
  font-weight: 600;
  font-size: 15px;
}

.card-os-bike {
  font-size: 13px;
  color: #667;
  margin: 2px 0 10px 0;
}

.card-os-rodape {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  border-top: 1px solid #f0f0f0;
  padding-top: 8px;
}

.card-os-rodape span {
  color: #1f4d3d;
  font-weight: 600;
}

.lista-sugestoes {
  position: relative;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  max-height: 220px;
  overflow-y: auto;
  margin-top: -2px;
}

.lista-sugestoes:empty {
  display: none;
  border: none;
}

.item-sugestao {
  padding: 10px 12px;
  cursor: pointer;
  font-size: 14px;
  border-bottom: 1px solid #f0f0f0;
}

.item-sugestao:hover {
  background: #eef3ee;
}

.item-sugestao-vazio {
  color: #999;
  cursor: default;
}

.item-sugestao-vazio:hover {
  background: none;
}

.botao-link-novo {
  align-self: flex-start;
  margin-top: 4px;
  font-size: 13px;
  padding: 6px 12px;
}

.bloco-inline-novo {
  background: #f7f9f6;
  border: 1px dashed #cdd9d2;
  border-radius: 8px;
  padding: 12px;
  margin-top: 8px;
}

.abas-cadastro {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 16px 0;
  border-bottom: 1px solid #e2e2de;
}

.aba-item {
  padding: 10px 16px;
  text-decoration: none;
  color: #667;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px 8px 0 0;
}

.aba-item.aba-ativa {
  background: #1f4d3d;
  color: #fff;
}

.acoes-cadastro {
  display: flex;
  gap: 10px;
  align-items: center;
}

.form-busca-cadastro input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  min-width: 220px;
}

.layout-ficha-tecnica {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 16px;
  align-items: start;
}

.painel-clientes .form input {
  margin-top: 8px;
}

.lista-clientes-ficha {
  margin-top: 12px;
  max-height: 520px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.item-cliente-ficha {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
}

.item-cliente-ficha span {
  font-size: 12px;
  color: #888;
}

.item-cliente-ficha:hover {
  background: #f0f1eb;
}

.item-cliente-ativo {
  background: #1f4d3d;
  color: #fff;
}

.item-cliente-ativo span {
  color: #cfe0d7;
}

.coluna-detalhes-ficha {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.item-bicicleta-ficha {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.card-historico-os {
  display: block;
  background: #f9faf8;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
}

.card-historico-os:hover {
  border-color: #cdd9d2;
}

.badges-checklist {
  margin-top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge-checklist {
  background: #eaf6ee;
  color: #1f4d3d;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
}

@media (max-width: 760px) {
  .layout-ficha-tecnica {
    grid-template-columns: 1fr;
  }
}

.link-com-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-nao-lida {
  background: #b3261e;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
  padding: 1px 7px;
  line-height: 1.4;
}

.layout-mensagens {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 16px;
  align-items: start;
}

.painel-contatos {
  padding: 16px;
}

.lista-contatos {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 560px;
  overflow-y: auto;
}

.item-contato {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
}

.item-contato:hover {
  background: #f0f1eb;
}

.item-contato-ativo {
  background: #1f4d3d;
  color: #fff;
}

.item-contato-ativo .texto-fraco {
  color: #cfe0d7;
}

.item-contato-topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.item-contato-tipo {
  text-transform: capitalize;
  font-size: 11px;
}

.item-contato-preview {
  font-size: 12px;
  color: #888;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-contato-ativo .item-contato-preview {
  color: #cfe0d7;
}

.painel-conversa {
  display: flex;
  flex-direction: column;
  height: 600px;
  padding: 0;
  overflow: hidden;
}

.cabecalho-conversa {
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  flex-direction: column;
}

.corpo-conversa {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bolha-mensagem {
  max-width: 70%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 14px;
}

.bolha-propria {
  align-self: flex-end;
  background: #1f4d3d;
  color: #fff;
  border-bottom-right-radius: 2px;
}

.bolha-outro {
  align-self: flex-start;
  background: #eef1ea;
  color: #222;
  border-bottom-left-radius: 2px;
}

.bolha-texto {
  white-space: pre-wrap;
  word-break: break-word;
}

.bolha-anexo {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: inherit;
}

.bolha-rodape {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  opacity: 0.75;
  margin-top: 4px;
}

.bolha-propria .link-botao {
  color: #ffd7d3;
}

.form-enviar-mensagem {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid #eee;
}

.form-enviar-mensagem input[type="text"] {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 20px;
  font-size: 14px;
}

.botao-anexo {
  cursor: pointer;
  font-size: 18px;
  padding: 6px;
}

@media (max-width: 760px) {
  .layout-mensagens {
    grid-template-columns: 1fr;
  }
}

.layout-mensagens-cliente {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.item-modelo-mensagem {
  border-top: 1px solid #f0f0f0;
  padding: 10px 0;
}

.texto-modelo-preview {
  white-space: pre-wrap;
  margin: 4px 0;
}

code {
  background: #eef1ea;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 12px;
}

@media (max-width: 900px) {
  .layout-mensagens-cliente {
    grid-template-columns: 1fr;
  }
}

.alerta-sucesso {
  background: #e6f4ea;
  color: #1e6b34;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 12px;
}

.bloco-backup-protecao {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: #eaf6ee;
  flex-wrap: wrap;
}

.bloco-backup-protecao h2 {
  margin: 0 0 4px 0;
}

.faixa-aviso-backup {
  background: #fff4e0;
  color: #7a5c1e;
  padding: 10px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  flex-wrap: wrap;
}

.faixa-aviso-backup a {
  color: #7a5c1e;
  font-weight: 700;
}

.link-botao-claro {
  background: none;
  border: none;
  color: #7a5c1e;
  text-decoration: underline;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
}

.bloco-arrastavel {
  position: relative;
  cursor: grab;
  transition: box-shadow 0.15s ease;
  padding-right: 40px;
}

.bloco-arrastavel::before {
  content: "⠿⠿";
  position: absolute;
  top: 14px;
  right: 14px;
  color: #b8c2bb;
  font-size: 16px;
  letter-spacing: -2px;
  cursor: grab;
}

.bloco-arrastavel:active {
  cursor: grabbing;
}

.bloco-arrastavel.sendo-arrastado {
  opacity: 0.4;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.bloco-arrastavel form, .bloco-arrastavel input, .bloco-arrastavel textarea,
.bloco-arrastavel select, .bloco-arrastavel button, .bloco-arrastavel a {
  cursor: auto;
}

.texto-vencido {
  color: #b3261e;
  font-weight: 700;
}

.link-ordenar {
  color: #667;
  text-decoration: none;
  font-weight: 700;
}

.link-ordenar:hover {
  color: #1f4d3d;
}

.botoes-variaveis {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.botao-variavel {
  background: #eef1ea;
  border: 1px solid #d8ded3;
  color: #1f4d3d;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 20px;
  cursor: pointer;
  font-family: monospace;
}

.botao-variavel:hover {
  background: #dde7dd;
}

.barra-notificacoes-os {
  position: fixed;
  top: 70px;
  left: 0;
  width: 220px;
  max-height: calc(100vh - 90px);
  background: #fff;
  border-right: 1px solid #e2e2de;
  border-radius: 0 10px 10px 0;
  box-shadow: 2px 0 8px rgba(0,0,0,0.05);
  z-index: 500;
  display: flex;
  transition: transform 0.2s ease;
}

.barra-notificacoes-os.minimizada {
  transform: translateX(-200px);
}

.botao-minimizar-notif {
  width: 20px;
  background: #1f4d3d;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.conteudo-barra-notif {
  padding: 12px;
  overflow-y: auto;
  flex: 1;
}

.conteudo-barra-notif h3 {
  margin: 0 0 8px 0;
  font-size: 13px;
  color: #1f4d3d;
}

.texto-fraco-barra {
  font-size: 12px;
  color: #999;
}

.card-notif-os {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  border-radius: 8px;
  margin-bottom: 6px;
  text-decoration: none;
  font-size: 12px;
  color: #333;
}

.card-notif-vermelho {
  background: #fdecea;
  border: 1px solid #f3c6c1;
}

.card-notif-vermelho strong {
  color: #b3261e;
}

.botao-minimizar-bloco {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: #999;
  margin-left: 8px;
  padding: 0 4px;
  vertical-align: middle;
  line-height: 1;
}

.botao-minimizar-bloco:hover {
  color: #1f4d3d;
}

.bloco-arrastavel.bloco-colapsado > *:not(h2) {
  display: none;
}

.bloco-arrastavel.bloco-colapsado {
  padding-bottom: 20px;
}

.barra-resumo-status {
  position: fixed;
  top: 70px;
  right: 0;
  width: 240px;
  max-height: calc(100vh - 90px);
  background: #fff;
  border-left: 1px solid #e2e2de;
  border-radius: 10px 0 0 10px;
  box-shadow: -2px 0 8px rgba(0,0,0,0.05);
  z-index: 500;
  display: flex;
  transition: transform 0.2s ease;
}

.barra-resumo-status.minimizada {
  transform: translateX(220px);
}

.conteudo-barra-resumo {
  padding: 12px;
  overflow-y: auto;
  flex: 1;
}

.conteudo-barra-resumo h3 {
  margin: 0 0 8px 0;
  font-size: 13px;
  color: #1f4d3d;
}

.titulo-grupo-status {
  font-size: 11px;
  text-transform: uppercase;
  color: #7a8a80;
  font-weight: 700;
  margin: 12px 0 4px 0;
}

.card-resumo-status {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  border-radius: 8px;
  margin-bottom: 4px;
  text-decoration: none;
  font-size: 12px;
  color: #333;
  background: #f7f9f6;
  border: 1px solid #eee;
}

.card-resumo-status:hover {
  background: #eef1ea;
}

.botao-minimizar-resumo {
  width: 20px;
  background: #1f4d3d;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.bloco-destacado {
  background: #fff8e1 !important;
  border: 2px solid #f0c330;
}

.botao-ok-destaque {
  background: #f0c330;
  color: #5c4500;
  border: none;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  margin-left: 10px;
  cursor: pointer;
  vertical-align: middle;
}

.botao-ok-destaque:hover {
  background: #e0b420;
}

/* ---- Layout dos cards: só arrasta no modo de edição (administrador) ---- */
.bloco-arrastavel {
  cursor: default;
}

.bloco-arrastavel::before {
  display: none;
}

.bloco-arrastavel:active {
  cursor: default;
}

body.modo-edicao-layout .bloco-arrastavel {
  cursor: grab;
  outline: 2px dashed #1f4d3d;
  outline-offset: 3px;
}

body.modo-edicao-layout .bloco-arrastavel::before {
  display: block;
}

body.modo-edicao-layout .bloco-arrastavel:active {
  cursor: grabbing;
}

/* ---- Aviso de alterações não salvas ---- */
.barra-nao-salvo {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff8e1;
  border: 2px solid #f0c330;
  border-radius: 12px;
  padding: 10px 16px;
  display: none;
  align-items: center;
  gap: 14px;
  z-index: 600;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  font-size: 14px;
  color: #5c4500;
}

.acoes-os {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.dica-salvar-tudo {
  font-size: 12px;
  color: #888;
  margin: 8px 0 0 0;
}

/* ---- Modelo obrigatório (Observações de execução — Peças) ---- */
.campo-invalido {
  border: 1px solid #b3261e !important;
  background: #fdecea;
}

.aviso-modelo {
  color: #b3261e;
  font-size: 13px;
  font-weight: 700;
  margin: 6px 0;
}

/* ---- Busca de peças (nome, marca ou modelo) ---- */
.picker-peca {
  position: relative;
  flex: 1 1 100%;
}

.picker-peca > input[type="text"] {
  width: 100%;
}

.picker-peca .lista-sugestoes {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 2px;
  z-index: 60;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.item-peca {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.item-peca-linha {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.item-peca-detalhe {
  font-size: 12px;
  color: #667;
}

.picker-selecionada {
  margin: 4px 0 0 0;
  font-size: 13px;
  color: #1f4d3d;
  font-weight: 600;
}

/* ---- Barra fixa da OS (congelada no topo ao rolar) ---- */
.barra-fixa-os {
  position: sticky;
  top: 0;
  z-index: 400;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  background: #f4f5f0;
  padding: 10px 0 12px 0;
  margin-bottom: 6px;
  box-shadow: 0 8px 10px -9px rgba(0, 0, 0, 0.35);
}

.barra-fixa-coluna {
  background: #fff;
  border: 1px solid #e8eae3;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  min-width: 0;
}

.barra-fixa-coluna h2 {
  margin: 0 0 4px 0;
  font-size: 13px;
  color: #1f4d3d;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.barra-fixa-coluna p {
  margin: 2px 0;
}

.barra-fixa-coluna .form {
  margin: 0;
}

.barra-fixa-coluna select {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 13px;
}

.barra-fixa-coluna .botao-secundario {
  padding: 3px 8px;
  font-size: 11px;
}

/* Em telas pequenas a barra ficaria alta demais: volta a rolar junto com a página. */
@media (max-width: 760px) {
  .barra-fixa-os {
    position: static;
  }
}

.aviso-leitura {
  background: #eef3ee;
  border: 1px solid #cdd9d2;
  color: #1f4d3d;
  border-radius: 10px;
  padding: 8px 12px;
  margin: 6px 0 10px 0;
  font-size: 13px;
}

.msg-aviso-mecanico {
  background: #fff3c4;
  border-radius: 8px;
  padding: 6px 10px;
  margin: 6px 0;
  font-size: 13px;
  color: #5c4500;
}
