* { box-sizing: border-box; }
body {
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  margin: 0;
  background: #f4f6f9;
  color: #1f2937;
}
.antet {
  background: #1e3a5f;
  color: #fff;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.antet-titlu { font-size: 20px; font-weight: 600; }
.meniu a {
  color: #cfe0f5;
  text-decoration: none;
  margin-left: 20px;
  font-size: 14px;
}
.meniu a:hover { color: #fff; text-decoration: underline; }
.meniu-user { color: #9db8db; margin-left: 20px; font-size: 13px; }

.continut { padding: 20px; max-width: 1200px; margin: 0 auto; }

.grid-principal {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}
@media (max-width: 900px) {
  .grid-principal { grid-template-columns: 1fr; }
}

.panou {
  background: #fff;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.panou h2 { margin-top: 0; font-size: 17px; color: #1e3a5f; }
.panou h3 { font-size: 15px; color: #1e3a5f; }
.panou h4 { margin: 4px 0; font-size: 14px; color: #1e3a5f; }

label { display: block; font-size: 13px; color: #4b5563; margin: 10px 0 4px; font-weight: 600; }
input[type="text"], input[type="date"], input[type="time"], input[type="number"], select, textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}
textarea { resize: vertical; }

.row-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  align-items: start;
}

.check-inline { display: flex; align-items: center; gap: 8px; font-weight: normal; margin-top: 14px; }
.check-inline input { width: auto; }

.btn-principal, .btn-secundar, .btn-link {
  cursor: pointer;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  padding: 9px 16px;
  margin-top: 12px;
}
.btn-principal {
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  display: inline-block;
}
.btn-principal:hover { background: #1d4ed8; }
.btn-principal:disabled { background: #93a8d8; cursor: not-allowed; }

.btn-secundar {
  background: #e5edfb;
  color: #1e3a5f;
}
.btn-secundar:hover { background: #d3e0f6; }

.btn-link {
  background: transparent;
  color: #2563eb;
  text-decoration: underline;
  padding: 4px 6px;
}

.actiuni-traseu { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.rand-punct {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.eticheta-punct { width: 90px; font-size: 12px; color: #6b7280; flex-shrink: 0; }
.rand-punct .input-punct { flex: 1; }
.btn-sterge-punct {
  background: transparent;
  border: none;
  color: #dc2626;
  cursor: pointer;
  font-size: 15px;
}

.manual-distanta {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  padding: 12px;
  border-radius: 8px;
  margin-top: 10px;
}

.rezultat-traseu {
  background: #eef4ff;
  border-radius: 6px;
  padding: 10px 12px;
  margin-top: 12px;
  font-size: 14px;
}

.avertisment {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  margin: 10px 0;
}
.note {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  margin: 10px 0;
}

.tabel-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #e5e7eb; white-space: nowrap; }
th { color: #6b7280; font-weight: 600; font-size: 12px; text-transform: uppercase; }

.rezumat-cheltuieli { margin-top: 18px; }
.rezumat-carduri {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.card-vehicul {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
}
.card-titlu { font-weight: 600; font-size: 13px; color: #1e3a5f; }
.card-curse { font-size: 12px; color: #6b7280; margin-top: 4px; }
.card-total { font-size: 18px; font-weight: 700; color: #2563eb; margin-top: 6px; }
.defalcare { font-size: 11px; color: #9ca3af; margin-top: 4px; }

.ruta-card {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.ruta-card.campean-card { border-color: #fbbf24; background: #fffbeb; }
.detaliu-plecare { font-size: 13px; padding: 4px 0; border-top: 1px dashed #e5e7eb; }
.detaliu-plecare:first-of-type { border-top: none; }

.autocomplete-dropdown {
  position: absolute;
  z-index: 1000;
  display: none;
  background: #fff;
  border: 1px solid #d1d5db;
  border-top: none;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  max-height: 220px;
  overflow-y: auto;
}
.autocomplete-item {
  padding: 8px 10px;
  font-size: 13px;
  cursor: pointer;
  border-top: 1px solid #f1f5f9;
}
.autocomplete-item:first-child { border-top: none; }
.autocomplete-item:hover { background: #eef4ff; }
