* { box-sizing: border-box; }
:root {
  --bg-1: #fdfaf3;
  --bg-2: #edf7f2;
  --ink: #1d2a35;
  --primary: #0f766e;
  --primary-2: #0b5c56;
  --secondary: #f59e0b;
  --line: #d9e2ea;
}
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
  color: var(--ink);
}
.wrap {
  max-width: 1320px;
  margin: 28px auto;
  background: #ffffffd9;
  backdrop-filter: blur(4px);
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(23, 56, 61, 0.12);
}
h1 {
  margin-top: 0;
  color: #0f5258;
}
.header, .actions, .search { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.header { justify-content: space-between; margin-bottom: 16px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.search { margin-bottom: 16px; }
input[type="text"], input[type="number"], input[type="file"], input[type="password"], select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #c8d3df;
  border-radius: 8px;
  background: #fff;
}
.btn {
  display: inline-block;
  text-decoration: none;
  border: 0;
  background: linear-gradient(180deg, #149a90, var(--primary));
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.3);
}
.btn.muted { background: linear-gradient(180deg, #8a98a8, #6b7785); }
.ok, .error {
  padding: 10px 12px;
  border-radius: 8px;
  margin: 8px 0 16px;
}
.ok { background: #d1e7dd; color: #0f5132; }
.error { background: #f8d7da; color: #842029; }
.table-wrap { overflow-x: auto; }
table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  font-size: 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
th, td {
  border-bottom: 1px solid #eef2f6;
  border-right: 1px solid #eef2f6;
  padding: 8px;
  white-space: nowrap;
}
th {
  background: #f4f8fb;
  text-align: left;
  font-weight: 700;
}
th.col-bodega44 {
  background: #fecaca !important;
  color: #7f1d1d !important;
}
th.col-bodega-alameda {
  background: #fde68a !important;
  color: #78350f !important;
}
th.col-laser {
  background: #bfdbfe !important;
  color: #1e3a8a !important;
}
th.col-software {
  background: #ddd6fe !important;
  color: #4c1d95 !important;
}
th.col-pintura {
  background: #bbf7d0 !important;
  color: #14532d !important;
}
th.col-armado {
  background: #fbcfe8 !important;
  color: #831843 !important;
}
th.col-listo {
  background: #bae6fd !important;
  color: #0c4a6e !important;
}
th.col-total-bodegas {
  background: #fed7aa !important;
  color: #7c2d12 !important;
}
.tabla-acc tbody td:nth-child(2) { background: #fff1f2; }
.tabla-acc tbody td:nth-child(3) { background: #fffbeb; }
.tabla-acc tbody td:nth-child(4) { background: #eff6ff; }
.tabla-acc tbody td:nth-child(5) { background: #f5f3ff; }
.tabla-acc tbody td:nth-child(6) { background: #f0fdf4; }
.tabla-acc tbody td:nth-child(7) { background: #fdf2f8; }
.tabla-acc tbody td:nth-child(8) { background: #f0f9ff; }
.tabla-acc tbody td:nth-child(9) { background: #fff7ed; }

.tabla-carcasa tbody td:nth-child(3) { background: #fff1f2; }
.tabla-carcasa tbody td:nth-child(4) { background: #fffbeb; }
.tabla-carcasa tbody td:nth-child(5) { background: #eff6ff; }
.tabla-carcasa tbody td:nth-child(6) { background: #f0f9ff; }
.tabla-carcasa tbody td:nth-child(7) { background: #fff7ed; }
thead tr:first-child th.group-a {
  background: #d9f3ef;
  color: #0f5258;
}
thead tr:first-child th.group-mid {
  background: #fff3da;
  color: #8a5a00;
}
thead tr:first-child th.group-b {
  background: #dbeafe;
  color: #1e40af;
}
tbody tr:hover { background: #f8fcff; }
.sep-left {
  border-left: 3px solid #b7c6d6 !important;
}
.sep-right {
  border-right: 3px solid #b7c6d6 !important;
}
.link { color: #0f766e; text-decoration: none; margin-right: 8px; }
.link.danger { color: #c1121f; }
.grid-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
label span { display: block; margin-bottom: 4px; font-size: 13px; color: #495057; }
.check { display: flex; align-items: center; gap: 8px; }
.check span { margin: 0; }
.footer-note {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid #e4ecf2;
  text-align: center;
  font-size: 13px;
  color: #5d6b79;
}
