* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f0f2f5;
  color: #333;
  padding-bottom: 80px;
}

/* Header Estilo Loja */
header {
  background: #1a1a1a; /* Preto/Chumbo */
  color: #fff;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 4px solid #f5b000; /* Amarelo/Dourado STROMBOLI */
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

header .logo {
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.4em;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
}

header .logo span { color: #f5b000; }

header nav { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
header nav a {
  color: #ccc;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95em;
  transition: 0.2s;
}
header nav a:hover { color: #fff; background: #333; }
header nav .btn-nova { background: #f5b000; color: #1a1a1a; }
header nav .btn-nova:hover { background: #ffc933; }

main { padding: 20px; max-width: 800px; margin: 0 auto; }
h2, h3 { color: #1a1a1a; font-weight: 800; letter-spacing: -0.5px; }

/* Cards do Painel */
.cards { display: flex; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.card {
  background: #fff; border-radius: 12px; padding: 20px;
  flex: 1; min-width: 140px; text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,.05);
  border-top: 4px solid #1a1a1a;
}
.card .num { display: block; font-size: 2.4em; font-weight: 900; color: #1a1a1a; margin-bottom: 4px; }

/* Lista de OS */
.lista-os { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.lista-os li {
  background: #fff; border-radius: 10px; padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  border-left: 5px solid #f5b000;
  transition: 0.2s;
}
.lista-os li:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.lista-os a { color: inherit; text-decoration: none; display: block; }
.os-topo { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.os-topo strong { font-size: 1.1em; color: #1a1a1a; }
.os-info { font-weight: 600; font-size: 1.1em; margin-bottom: 4px; }
.os-sub { color: #666; font-size: 0.9em; }

.badge {
  background: #eee; color: #333; font-size: 0.8em; padding: 4px 10px;
  border-radius: 20px; font-weight: 700; text-transform: uppercase;
}
/* Cores por status */
.badge-aberta { background: #e3f2fd; color: #0d47a1; }
.badge-em-andamento { background: #fff3e0; color: #e65100; }
.badge-concluida { background: #e8f5e9; color: #1b5e20; }
.badge-entregue { background: #f5f5f5; color: #616161; }

/* Formulários */
.form { display: flex; flex-direction: column; gap: 16px; }
.grupo {
  background: #fff; border: 1px solid #e0e0e0; border-radius: 12px;
  padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.03);
}
.grupo legend {
  font-weight: 800; color: #1a1a1a; padding: 0 10px;
  font-size: 1.05em; background: #f0f2f5; border-radius: 4px;
}
.grupo label { display: block; margin-bottom: 14px; font-weight: 600; color: #444; font-size: .95em; }
input, select, textarea {
  width: 100%; margin-top: 6px; font-size: 16px; padding: 12px;
  border: 1px solid #ccc; border-radius: 8px; font-family: inherit;
  background: #fafafa; transition: 0.2s;
}
input:focus, select:focus, textarea:focus { border-color: #f5b000; outline: none; background: #fff; }

.linha-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.linha-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.checkboxes { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }
.checkboxes label { display: flex; align-items: center; gap: 8px; font-weight: normal; margin-bottom: 0; cursor: pointer; }
.checkboxes input { width: auto; transform: scale(1.4); margin: 0; }

/* Botões */
button, .btn {
  display: inline-block; background: #1a1a1a; color: #fff;
  padding: 14px 20px; border: none; border-radius: 8px;
  font-size: 1em; font-weight: 700; cursor: pointer; text-decoration: none;
  text-align: center; transition: 0.2s;
}
button:hover, .btn:hover { background: #333; }
.btn-grande { font-size: 1.1em; padding: 18px; width: 100%; background: #f5b000; color: #1a1a1a; }
.btn-grande:hover { background: #ffc933; }

/* Blocos de detalhes */
.bloco {
  background: #fff; border-radius: 10px; padding: 20px;
  margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.bloco h4 { margin: 0 0 12px 0; color: #1a1a1a; font-size: 1.1em; border-bottom: 1px solid #eee; padding-bottom: 8px; }
.bloco p { margin: 8px 0; }

.flash { padding: 14px; border-radius: 8px; margin-bottom: 16px; font-weight: 600; }
.flash.ok { background: #e8f5e9; color: #1b5e20; border-left: 4px solid #4caf50; }
.flash.erro { background: #ffebee; color: #b71c1c; border-left: 4px solid #f44336; }

@media (max-width: 600px) {
  header { flex-direction: column; align-items: stretch; }
  header nav { justify-content: space-between; }
  .linha-2, .linha-3 { grid-template-columns: 1fr; }
}