:root {
  --bg: #19253a;
  --card: #16233f;
  --muted: #94a3b8;
  --accent: #06b6d4;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #ef4444;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  font-size: 18px;
}

html {
  height: 100%;
  margin: 0;
}

main {
  width: 100%;
  height: 100vh;
}

body {
  background: linear-gradient(180deg, #183166 0%, #0d3250 100%);
  color: #e6eef6;
  padding: 20px;
  height: 100%;
  margin: 0;
}

.btns {
  display: flex;
  justify-content: space-between;
}

.title-title {
  text-align: center;
  margin-bottom: 20px;
  font-size: 3rem;
  color: var(--accent);
}

form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--card);
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 15px;
}
form label {
  flex: 1 1 150px;
  display: flex;
  flex-direction: column;
  font-size: 1.5rem;
  color: var(--muted);
}
form input[type="text"],
form input[type="number"] {
  padding: 8px;
  margin-top: 6px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  color: inherit;
}
form button {
  background: var(--accent);
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  color: #042a32;
  font-weight: 600;
  cursor: pointer;
  margin-top: auto;
  font-size: 1rem;
}
form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

button {
  padding: 8px 12px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}
button:hover {
  opacity: 0.9;
}
button[onclick] {
  background: var(--accent);
  color: #042a32;
  margin-right: 6px;
}
button[onclick]:last-child {
  margin-right: 0;
}

.btn-borrarPesada {
  background: var(--danger);
  color: #042a32;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
}
thead th {
  text-align: left;
  padding: 1rem;
  color: var(--muted);
  font-size: 16px;
  background: rgba(255, 255, 255, 0.03);
}
tbody td {
  padding: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 20px;
}

tbody td button {
  padding: 1rem 1rem;
  border-radius: 6px;
  font-size: 16px;
}

.btn-editar {
  background: var(--accent);
  color: #042a32;
}
.btn-borrar {
  background: var(--danger);
  color: #042a32;
}

tbody td span.neto-low {
  background: rgba(16, 185, 129, 0.08);
  color: var(--success);
  padding: 4px 6px;
  border-radius: 999px;
  font-weight: 600;
}
tbody td span.neto-mid {
  background: rgba(245, 158, 11, 0.08);
  color: var(--warning);
  padding: 1rem 1rem;
  border-radius: 999px;
  font-weight: 600;
}
tbody td span.neto-high {
  background: rgba(239, 68, 68, 0.08);
  color: var(--danger);
  padding: 1rem 1rem;
  border-radius: 999px;
  font-weight: 600;
}

@media (max-width: 720px) {
  table,
  thead,
  tbody,
  tr,
  td,
  th {
    display: block;
    width: 100%;
  }
  thead {
    display: none;
  }
  tbody tr {
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.01);
    border-radius: 10px;
    padding: 8px;
  }
  tbody td {
    padding: 6px;
    border: none;
    position: relative;
  }
  tbody td:before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 4px;
  }
}


#buscador {
  width: 250px;
  padding: 10px 15px;
  margin: 15px 0;
  border: 5px solid var(--accent);
  border-radius: 25px;
  background: var(--muted);
  outline: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

#buscador:focus {
  border-color: var(--danger);
  box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
  background-color: white;
}

#matricula {
  text-transform: uppercase;
}