:root {
  --es-blue: #0b2d4d;
  --es-blue-2: #144f80;
  --es-light: #f4f7fb;
  --es-line: #d9e1ec;
}
body { background: var(--es-light); color: #172033; }
.auth-bg { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, #09243f, #14527e); }
.login-box { width: min(440px, 92vw); background: #fff; border-radius: 8px; padding: 32px; box-shadow: 0 20px 60px rgba(0,0,0,.22); }
.brand-logo { max-height: 58px; max-width: 240px; object-fit: contain; }
.topbar {
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--es-line);
  box-shadow: 0 12px 30px rgba(11, 45, 77, .08);
  backdrop-filter: blur(10px);
}
.topbar .container-fluid {
  gap: 14px;
}
.user-actions {
  margin-left: auto;
}
.app-nav {
  align-items: center;
  background: #eef4fb;
  border: 1px solid #d7e2ef;
  border-radius: 8px;
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px;
}
.app-nav .nav-link {
  border-radius: 6px;
  color: #25445f;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
  padding: 10px 12px;
  white-space: nowrap;
}
.app-nav .nav-link:hover,
.app-nav .nav-link.active {
  background: var(--es-blue);
  color: #fff;
}
.navbar-toggler {
  border-color: #cad6e4;
  border-radius: 8px;
}
.metric { border: 1px solid var(--es-line); border-radius: 8px; background: #fff; padding: 18px; }
.metric strong { font-size: 30px; color: var(--es-blue); }
.card-es { border: 1px solid var(--es-line); border-radius: 8px; background: #fff; }
.btn-primary { background: var(--es-blue); border-color: var(--es-blue); }
.btn-primary:hover { background: var(--es-blue-2); border-color: var(--es-blue-2); }
.tablet-card { min-height: 130px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 20px; font-weight: 700; }
.form-control, .form-select { min-height: 44px; }
textarea.form-control { min-height: 110px; }
.status-dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.status-green { background: #1f9d55; }
.status-yellow { background: #d6a200; }
.status-red { background: #d93025; }
.status-gray { background: #929aa5; }
.photo-thumb { width: 140px; height: 100px; object-fit: cover; border-radius: 6px; border: 1px solid var(--es-line); }
.control-board {
  background: #f7f9fc;
  border: 1px solid var(--es-line);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(11, 45, 77, .08);
  min-height: calc(100vh - 150px);
  padding: 18px;
}
.control-board-head {
  align-items: center;
  border-bottom: 1px solid var(--es-line);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
}
.control-board-head h1 {
  color: var(--es-blue);
  font-size: 22px;
  font-weight: 900;
  margin: 0;
}
.control-board-head span {
  color: #64748b;
  font-size: 13px;
}
.control-filter {
  width: min(320px, 100%);
}
.control-empty {
  color: #64748b;
  padding: 20px;
}
.generator-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.generator-board-dark {
  gap: 10px;
}
.generator-tile {
  background: #f3f4f6;
  border: 1px solid #cfd4dc;
  border-radius: 8px;
  color: #1f2937;
  min-height: 128px;
  padding: 10px;
  text-align: center;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.generator-tile:hover {
  border-color: #9aa3af;
  box-shadow: 0 10px 24px rgba(31, 41, 55, .12);
  color: #111827;
  transform: translateY(-1px);
}
.generator-tile-dark {
  background: linear-gradient(180deg, #d7dbe1, #bfc5cf);
  border: 1px solid #8f98a5;
  border-radius: 8px;
  min-height: 142px;
  padding: 10px 12px;
}
.generator-tile-dark:hover {
  border-color: #cbd5e1;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 12px 28px rgba(0,0,0,.35);
}
.generator-tile-link {
  color: #1f2937;
  display: grid;
  grid-template-rows: 46px auto auto auto;
  text-decoration: none;
}
.generator-tile-dark.generator-tile-link {
  color: #111827;
  grid-template-rows: 64px 28px 24px;
}
.generator-tile-dark.generator-tile-link:hover {
  color: #111827;
}
.generator-tile-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 60px;
}
.generator-tile-link:hover {
  color: #111827;
}
.generator-icon {
  align-items: center;
  display: flex;
  height: 58px;
  justify-content: center;
  margin: 0 auto;
  width: 86px;
}
.generator-icon img {
  display: block;
  filter: drop-shadow(0 6px 8px rgba(15, 23, 42, .18));
  max-height: 56px;
  max-width: 82px;
  object-fit: contain;
}
.generator-icon-dark img {
  max-height: 62px;
  max-width: 92px;
}
.generator-traffic-off {
  background: #252b33;
  border: 1px solid #111827;
  border-radius: 999px;
  display: grid;
  gap: 5px;
  padding: 6px 5px;
  width: 28px;
}
.generator-traffic-off span {
  border: 1px solid rgba(0,0,0,.35);
  border-radius: 50%;
  display: block;
  height: 14px;
  opacity: .52;
  width: 14px;
}
.generator-traffic-off span:nth-child(1) { background: #7f1d1d; }
.generator-traffic-off span:nth-child(2) { background: #854d0e; }
.generator-traffic-off span:nth-child(3) { background: #14532d; }
.generator-client {
  color: #111827;
  display: block;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  min-height: 30px;
  overflow: hidden;
}
.generator-tile-dark .generator-client {
  color: #07101f;
  font-size: 13px;
  line-height: 1.1;
  min-height: 20px;
}
.generator-site {
  color: #4b5563;
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  min-height: 28px;
  overflow: hidden;
}
.generator-tile-dark .generator-site {
  color: #273244;
  font-size: 11px;
}
.generator-site-power {
  align-items: center;
  color: #273244;
  display: flex;
  font-size: 11px;
  font-weight: 800;
  gap: 6px;
  justify-content: center;
  line-height: 1.1;
  min-height: 22px;
  overflow: hidden;
}
.generator-site-power span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.generator-site-power strong {
  color: #0b2d4d;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 900;
}
.generator-power {
  color: #0b2d4d;
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-top: 4px;
}
.generator-meta {
  color: #6b7280;
  display: block;
  font-size: 11px;
  margin-top: 4px;
}
.generator-dots {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-top: 5px;
}
.generator-dots-top {
  align-items: center;
  justify-content: flex-end;
  margin: 0;
}
.generator-dots-top .status-dot {
  border: 1px solid rgba(255,255,255,.38);
  height: 10px;
  width: 10px;
}
.generator-board {
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 18px 14px;
}
.generator-board-dark {
  gap: 18px 14px;
}
.generator-tile,
.generator-tile-dark {
  aspect-ratio: 1.34 / 1;
  background: var(--generator-status-bg, #d9d9d9);
  border: 2px solid #050505;
  border-radius: 24px;
  box-shadow: none;
  min-height: 0;
  margin-bottom: 28px;
  padding: 0;
  position: relative;
}
.generator-status-bg-red {
  --generator-status-bg: #fecaca;
}
.generator-status-bg-yellow {
  --generator-status-bg: #fef08a;
}
.generator-status-bg-green {
  --generator-status-bg: #bbf7d0;
}
.generator-status-bg-gray {
  --generator-status-bg: #d9d9d9;
}
.generator-tile:hover,
.generator-tile-dark:hover {
  border-color: #050505;
  box-shadow: 0 12px 24px rgba(0,0,0,.18);
  transform: translateY(-2px);
}
.generator-tile-link,
.generator-tile-dark.generator-tile-link {
  color: #030303;
  display: block;
}
.generator-tile-link:hover,
.generator-tile-dark.generator-tile-link:hover {
  color: #030303;
}
.generator-tile-top {
  align-items: center;
  display: flex;
  inset: 32px 62px 40px 22px;
  justify-content: center;
  position: absolute;
}
.generator-icon,
.generator-icon-dark {
  height: 100%;
  margin: 0;
  width: 100%;
}
.generator-icon img,
.generator-icon-dark img {
  filter: none;
  height: 100%;
  max-height: none;
  max-width: none;
  object-fit: contain;
  width: 100%;
}
.generator-battery-widget {
  align-items: center;
  display: flex;
  gap: 7px;
  position: absolute;
  right: 16px;
  top: 42px;
}
.generator-battery-bar {
  background: #111827;
  border: 1px solid #030712;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 1px 2px rgba(0,0,0,.2);
  display: flex;
  height: 68px;
  overflow: hidden;
  padding: 2px;
  position: relative;
  width: 12px;
}
.generator-battery-bar::before {
  background: rgba(255,255,255,.18);
  border-radius: 999px 999px 0 0;
  content: "";
  height: 14px;
  left: 3px;
  position: absolute;
  right: 3px;
  top: 3px;
  z-index: 1;
}
.generator-battery-bar > span {
  align-self: flex-end;
  background: linear-gradient(0deg, #16a34a, #22c55e);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(34,197,94,.55);
  display: block;
  min-height: 4px;
  width: 100%;
}
.fuel-bar-red > span {
  background: linear-gradient(0deg, #b91c1c, #ef4444);
  box-shadow: 0 0 10px rgba(239,68,68,.55);
}
.fuel-bar-yellow > span {
  background: linear-gradient(0deg, #ca8a04, #facc15);
  box-shadow: 0 0 10px rgba(250,204,21,.55);
}
.fuel-bar-green > span {
  background: linear-gradient(0deg, #16a34a, #22c55e);
  box-shadow: 0 0 10px rgba(34,197,94,.55);
}
.fuel-bar-gray > span {
  background: linear-gradient(0deg, #64748b, #94a3b8);
  box-shadow: 0 0 8px rgba(148,163,184,.38);
}
.generator-mini-lights {
  display: grid;
  gap: 10px;
}
.pilot-light {
  background: radial-gradient(circle at 35% 28%, #364152 0 10%, #111827 42%, #020617 82%);
  border: 1px solid #4b5563;
  border-radius: 50%;
  box-shadow: inset 0 1px 2px rgba(255,255,255,.22), inset 0 -3px 5px rgba(0,0,0,.58), 0 0 0 1px #94a3b8;
  display: block;
  height: 16px;
  width: 16px;
}
.pilot-light-red {
  animation: generator-red-pulse 1.1s ease-in-out infinite;
  background: radial-gradient(circle at 35% 28%, #ffb4b4 0 10%, #ff4d4d 28%, #dc2626 58%, #7f1d1d 92%);
  border-color: #ef4444;
}
.pilot-light-yellow {
  animation: generator-yellow-pulse 1.1s ease-in-out infinite;
  background: radial-gradient(circle at 35% 28%, #fff6a8 0 10%, #fde047 28%, #facc15 58%, #854d0e 92%);
  border-color: #facc15;
}
.pilot-light-green {
  animation: generator-green-pulse 1.1s ease-in-out infinite;
  background: radial-gradient(circle at 35% 28%, #86efac 0 10%, #22c55e 28%, #10b981 58%, #14532d 92%);
  border-color: #07a94e;
}
.generator-board,
.generator-board-dark {
  gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(315px, 1fr));
}
.generator-command-card,
.generator-command-card.generator-tile-dark {
  --generator-accent: #38bdf8;
  --generator-card-glow: rgba(56, 189, 248, .16);
  aspect-ratio: auto;
  background:
    linear-gradient(145deg, rgba(23, 32, 40, .98), rgba(8, 13, 18, .99) 48%, rgba(18, 25, 31, .98)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 1px, transparent 1px 7px);
  border: 1px solid rgba(148, 163, 184, .42);
  border-radius: 24px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.05),
    inset 0 22px 42px rgba(255,255,255,.035),
    0 16px 30px rgba(15, 23, 42, .22);
  color: #f8fafc;
  display: grid;
  gap: 10px;
  grid-template-rows: 76px 138px 84px 40px;
  margin: 0;
  min-height: 362px;
  overflow: hidden;
  padding: 10px;
  position: relative;
  text-decoration: none;
}
.generator-command-card::before {
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 20px;
  content: "";
  inset: 7px;
  pointer-events: none;
  position: absolute;
}
.generator-command-card.generator-card-planned {
  background:
    linear-gradient(145deg, #8d96a3, #6f7884 48%, #858e9a),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 7px);
  border-color: #4b5563;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.12),
    inset 0 22px 42px rgba(255,255,255,.08),
    0 16px 30px rgba(75, 85, 99, .2);
}
.generator-card-planned .generator-card-top,
.generator-card-planned .battery-status-panel {
  background: linear-gradient(145deg, #7d8793, #68727d);
  border-color: rgba(55, 65, 81, .55);
}
.generator-card-planned .generator-machine {
  background: linear-gradient(160deg, #9aa3af, #7d8793);
  border-color: rgba(75, 85, 99, .6);
}
.generator-card-planned .fuel-module {
  background: transparent;
  border-left-color: rgba(75, 85, 99, .6);
}
.generator-card-planned .fuel-gauge {
  background: linear-gradient(180deg, #6b7280, #4b5563);
  border-color: #374151;
}
.generator-card-planned .battery-status-pill.status-pill-red {
  background: rgba(107, 114, 128, .45);
  color: #f8fafc;
}
.generator-status-bg-red {
  --generator-accent: #ef4444;
  --generator-card-glow: rgba(239, 68, 68, .18);
}
.generator-status-bg-yellow {
  --generator-accent: #facc15;
  --generator-card-glow: rgba(250, 204, 21, .16);
}
.generator-status-bg-green {
  --generator-accent: #22c55e;
  --generator-card-glow: rgba(34, 197, 94, .16);
}
.generator-status-bg-gray {
  --generator-accent: #94a3b8;
  --generator-card-glow: rgba(148, 163, 184, .14);
}
.generator-command-card:hover,
.generator-command-card.generator-tile-dark:hover {
  border-color: rgba(226, 232, 240, .62);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.06),
    inset 0 22px 42px rgba(255,255,255,.04),
    0 18px 34px rgba(15, 23, 42, .3),
    0 0 22px var(--generator-card-glow);
  color: #f8fafc;
  transform: translateY(-2px);
}
.generator-card-top {
  align-items: center;
  background: linear-gradient(135deg, rgba(8, 24, 38, .96), rgba(12, 19, 28, .98));
  border: 1px solid rgba(56, 189, 248, .18);
  border-radius: 17px;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.06), 0 10px 18px rgba(0,0,0,.22);
  display: grid;
  gap: 16px;
  grid-template-columns: 92px 1fr;
  padding: 11px 16px;
  position: relative;
}
.generator-card-top::after {
  background: linear-gradient(180deg, transparent, rgba(226,232,240,.54), transparent);
  content: "";
  height: 54px;
  left: 106px;
  position: absolute;
  top: 11px;
  width: 1px;
}
.generator-card-icon {
  align-items: center;
  display: flex;
  height: 52px;
  justify-content: center;
}
.generator-card-icon img {
  filter: brightness(0) invert(1) drop-shadow(0 3px 5px rgba(0,0,0,.55));
  height: 52px;
  object-fit: contain;
  width: 78px;
}
.generator-power-block {
  display: grid;
  justify-items: start;
  line-height: 1;
  padding-left: 10px;
}
.generator-power-block span {
  align-items: baseline;
  display: flex;
  gap: 6px;
}
.generator-power-block strong {
  color: #fff;
  font-size: 48px;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 2px 5px rgba(0,0,0,.7);
}
.generator-power-block small {
  color: #cbd5e1;
  font-size: 20px;
  font-weight: 900;
}
.generator-power-block em {
  color: #94a3b8;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .12em;
  margin-top: 3px;
}
.generator-card-main {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) 116px;
  min-width: 0;
}
.generator-machine {
  align-items: center;
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 16px;
  box-shadow: inset 0 0 22px rgba(255,255,255,.035), 0 12px 18px rgba(0,0,0,.24);
  display: flex;
  height: 100%;
  justify-content: center;
  min-width: 0;
}
.generator-machine-phase-green {
  background: rgba(22, 163, 74, .32);
  border-color: rgba(34, 197, 94, .72);
  box-shadow:
    inset 0 0 34px rgba(34,197,94,.2),
    inset 0 0 0 999px rgba(34,197,94,.04),
    0 0 18px rgba(34,197,94,.2);
}
.generator-machine-phase-yellow {
  background: linear-gradient(160deg, rgba(202, 138, 4, .36), rgba(15, 23, 42, .86));
  border-color: rgba(250, 204, 21, .68);
  box-shadow: inset 0 0 24px rgba(250,204,21,.12), 0 0 18px rgba(250,204,21,.22);
}
.generator-machine-phase-red {
  background: linear-gradient(160deg, rgba(185, 28, 28, .38), rgba(15, 23, 42, .86));
  border-color: rgba(239, 68, 68, .68);
  box-shadow: inset 0 0 24px rgba(239,68,68,.14), 0 0 18px rgba(239,68,68,.24);
}
.generator-machine img {
  filter: brightness(0) invert(1) drop-shadow(0 8px 10px rgba(0,0,0,.55));
  height: 96px;
  object-fit: contain;
  opacity: .95;
  width: 145px;
}
.fuel-module {
  align-items: center;
  border-left: 1px solid rgba(226,232,240,.38);
  display: grid;
  grid-template-columns: 48px 22px;
  grid-template-rows: auto auto 1fr;
  height: 100%;
  justify-content: center;
  padding-left: 12px;
}
.fuel-title {
  color: #cbd5e1;
  font-size: 10px;
  font-weight: 900;
  grid-column: 1 / 3;
  letter-spacing: .08em;
  text-align: center;
}
.fuel-value {
  color: #fff;
  font-size: 31px;
  font-weight: 900;
  grid-column: 1 / 3;
  line-height: 1;
  margin: 3px 0 6px;
  text-align: center;
  text-shadow: 0 2px 5px rgba(0,0,0,.8);
}
.fuel-value small {
  color: #e2e8f0;
  font-size: 16px;
  font-weight: 900;
  margin-left: 2px;
}
.fuel-gauge {
  align-items: end;
  background: linear-gradient(180deg, #020617, #0b1218);
  border: 2px solid #475569;
  border-radius: 12px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.08), inset 0 0 18px rgba(0,0,0,.8), 0 0 12px rgba(0,0,0,.4);
  display: flex;
  grid-column: 1;
  grid-row: 3;
  height: 76px;
  justify-self: end;
  overflow: hidden;
  padding: 4px;
  width: 32px;
}
.fuel-fill {
  border-radius: 8px;
  display: block;
  width: 100%;
}
.fuel-state-red .fuel-fill {
  background: linear-gradient(0deg, #b91c1c, #ff4d4d);
  box-shadow: 0 0 14px rgba(239,68,68,.72);
}
.fuel-state-yellow .fuel-fill {
  background: linear-gradient(0deg, #ca8a04, #fde047);
  box-shadow: 0 0 14px rgba(250,204,21,.72);
}
.fuel-state-green .fuel-fill {
  background: linear-gradient(0deg, #16a34a, #2cff63);
  box-shadow: 0 0 14px rgba(34,197,94,.78);
}
.fuel-state-gray .fuel-fill {
  background: linear-gradient(0deg, #64748b, #cbd5e1);
  box-shadow: 0 0 10px rgba(148,163,184,.45);
}
.fuel-scale {
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  font-size: 10px;
  font-weight: 900;
  grid-column: 2;
  grid-row: 3;
  height: 76px;
  justify-content: space-between;
  line-height: 1;
}
.battery-status-panel {
  background: linear-gradient(145deg, rgba(15, 27, 36, .98), rgba(7, 12, 18, .98));
  border: 1px solid rgba(56, 189, 248, .16);
  border-radius: 16px;
  box-shadow: inset 0 0 18px rgba(255,255,255,.035), 0 10px 18px rgba(0,0,0,.2);
  display: grid;
  overflow: hidden;
}
.battery-status-row {
  align-items: center;
  color: #e2e8f0;
  display: grid;
  font-size: 13px;
  font-weight: 900;
  grid-template-columns: 1fr auto;
  letter-spacing: .03em;
  min-width: 0;
  padding: 8px 10px;
}
.battery-status-row + .battery-status-row {
  border-top: 1px solid rgba(148,163,184,.2);
}
.battery-status-pill {
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 9px;
  display: flex;
  gap: 5px;
  min-width: 112px;
  padding: 5px 7px;
}
.battery-status-pill strong {
  font-size: 11px;
  font-weight: 900;
}
.battery-status-pill small {
  color: rgba(255,255,255,.82);
  font-size: 10px;
  font-weight: 900;
  margin-left: auto;
}
.battery-status-pill .pilot-light {
  flex: 0 0 auto;
  height: 10px;
  width: 10px;
}
.status-pill-green {
  background: rgba(22, 163, 74, .18);
  color: #4ade80;
}
.status-pill-yellow {
  background: rgba(202, 138, 4, .18);
  color: #facc15;
}
.status-pill-red {
  background: rgba(185, 28, 28, .2);
  color: #f87171;
}
.status-pill-gray {
  background: rgba(100, 116, 139, .18);
  color: #cbd5e1;
}
.generator-card-footer {
  align-content: center;
  display: grid;
  min-width: 0;
  text-align: center;
}
.generator-card-footer strong,
.generator-card-footer em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.generator-card-footer strong {
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}
.generator-card-footer em {
  color: #94a3b8;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  margin-top: 2px;
}
.generator-board,
.generator-board-dark {
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(246px, 1fr));
}
.generator-command-card,
.generator-command-card.generator-tile-dark {
  border-radius: 18px;
  gap: 7px;
  grid-template-rows: 51px 96px 64px 26px;
  min-height: 262px;
  padding: 7px;
}
.generator-command-card::before {
  border-radius: 15px;
  inset: 5px;
}
.generator-card-top {
  border-radius: 13px;
  gap: 10px;
  grid-template-columns: 56px minmax(0, 1fr);
  padding: 7px 9px;
}
.generator-card-top::after {
  height: 34px;
  left: 66px;
  top: 8px;
}
.generator-power-block {
  justify-items: center;
  padding-left: 0;
  text-align: center;
}
.generator-power-block span {
  display: grid;
  gap: 0;
  justify-items: center;
}
.generator-power-block strong {
  font-size: 29px;
  font-weight: 780;
}
.generator-power-block small {
  color: #aeb8c6;
  font-size: 12px;
  font-weight: 720;
  margin-top: -2px;
}
.generator-title-block {
  align-content: center;
  display: grid;
  min-width: 0;
}
.generator-title-block strong,
.generator-title-block em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.generator-title-block strong {
  color: #f8fafc;
  font-size: 19px;
  font-weight: 740;
  line-height: 1.05;
}
.generator-card-main {
  gap: 7px;
  grid-template-columns: minmax(0, 1fr) 80px;
}
.generator-machine {
  border-radius: 14px;
}
.generator-machine img {
  height: 72px;
  width: 112px;
}
.fuel-module {
  grid-template-columns: 32px 18px;
  padding-left: 7px;
}
.fuel-title {
  font-size: 8px;
  font-weight: 760;
  letter-spacing: .06em;
}
.fuel-value {
  font-size: 23px;
  font-weight: 760;
  margin: 2px 0 5px;
}
.fuel-value small {
  font-size: 12px;
  font-weight: 720;
}
.fuel-gauge {
  border-radius: 10px;
  height: 57px;
  padding: 3px;
  width: 23px;
}
.fuel-fill {
  border-radius: 7px;
}
.fuel-scale {
  font-size: 8px;
  font-weight: 700;
  height: 57px;
}
.battery-status-panel {
  border-radius: 14px;
}
.battery-status-row {
  font-size: 10px;
  font-weight: 680;
  grid-template-columns: 23px minmax(67px, 1fr) 78px 35px;
  letter-spacing: .02em;
  padding: 5px 7px;
}
.battery-row-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.battery-row-icon {
  color: #4ade80;
  display: block;
  height: 20px;
  justify-self: center;
  position: relative;
  width: 15px;
}
.battery-row-icon::before {
  border: 2px solid currentColor;
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(74,222,128,.28);
  content: "";
  inset: 4px 1px 0;
  position: absolute;
}
.battery-row-icon::after {
  background: currentColor;
  content: "";
  position: absolute;
}
.battery-icon-soh::after {
  border-radius: 2px;
  bottom: 3px;
  height: 12px;
  left: 5px;
  opacity: .18;
  width: 7px;
}
.battery-icon-soc::after {
  clip-path: polygon(50% 0, 88% 0, 64% 40%, 100% 40%, 38% 100%, 52% 56%, 18% 56%);
  height: 13px;
  left: 4px;
  top: 8px;
  width: 10px;
}
.battery-status-pill {
  border-radius: 8px;
  gap: 5px;
  justify-content: center;
  min-width: 0;
  padding: 3px 5px;
}
.battery-status-pill strong {
  font-size: 9px;
  font-weight: 720;
}
.battery-status-pill .pilot-light {
  height: 8px;
  width: 8px;
}
.battery-status-percent {
  color: #f8fafc;
  font-size: 12px;
  font-weight: 720;
  justify-self: end;
}
.generator-card-footer {
  align-content: center;
  background: #cfd4dc;
  border: 1px solid #aeb7c4;
  border-radius: 14px;
  min-height: 0;
}
.generator-card-footer.generator-visit-bg-green {
  background: #bbf7d0;
  border-color: #22c55e;
}
.generator-card-footer.generator-visit-bg-yellow {
  background: #fef08a;
  border-color: #eab308;
}
.generator-card-footer.generator-visit-bg-red {
  background: #fecaca;
  border-color: #ef4444;
}
.generator-card-footer.generator-visit-bg-gray {
  background: #cfd4dc;
  border-color: #aeb7c4;
}
.generator-card-footer.generator-visit-bg-black {
  background: #050505;
  border-color: #050505;
}
.generator-card-footer.generator-visit-bg-black em {
  color: #fff;
}
.generator-card-footer strong {
  display: none;
}
.generator-card-footer em {
  color: #111827;
  font-size: 12px;
  font-weight: 720;
}

@media (min-width: 992px) {
  .generator-board,
  .generator-board-dark {
    gap: 12px;
    grid-template-columns: repeat(auto-fill, 194px);
    justify-content: center;
  }
  .generator-command-card,
  .generator-command-card.generator-tile-dark {
    border-radius: 15px;
    gap: 5px;
    grid-template-rows: 38px 76px 49px 20px;
    height: 206px;
    min-height: 0;
    padding: 5px;
    width: 194px;
  }
  .generator-command-card::before {
    border-radius: 12px;
    inset: 4px;
  }
  .generator-card-top {
    border-radius: 11px;
    gap: 7px;
    grid-template-columns: 41px minmax(0, 1fr);
    padding: 5px 7px;
  }
  .generator-card-top::after {
    height: 25px;
    left: 48px;
    top: 6px;
  }
  .generator-power-block strong {
    font-size: 22px;
    line-height: .92;
  }
  .generator-power-block small {
    font-size: 9px;
    line-height: 1;
  }
  .generator-title-block strong {
    font-size: 13px;
    line-height: 1.05;
  }
  .generator-card-main {
    gap: 5px;
    grid-template-columns: minmax(0, 1fr) 58px;
  }
  .generator-machine {
    border-radius: 10px;
  }
  .generator-machine img {
    height: 52px;
    width: 82px;
  }
  .fuel-module {
    grid-template-columns: 24px 14px;
    padding-left: 5px;
  }
  .fuel-title {
    font-size: 6px;
    letter-spacing: .04em;
  }
  .fuel-value {
    font-size: 17px;
    margin: 1px 0 3px;
  }
  .fuel-value small {
    font-size: 9px;
  }
  .fuel-gauge {
    border-radius: 7px;
    border-width: 1px;
    height: 43px;
    padding: 2px;
    width: 17px;
  }
  .fuel-fill {
    border-radius: 5px;
  }
  .fuel-scale {
    font-size: 7px;
    height: 43px;
  }
  .battery-status-panel {
    border-radius: 10px;
  }
  .battery-status-row {
    font-size: 7px;
    grid-template-columns: 16px minmax(48px, 1fr) 58px 27px;
    padding: 3px 5px;
  }
  .battery-row-icon {
    height: 15px;
    width: 12px;
  }
  .battery-row-icon::before {
    border-radius: 2px;
    border-width: 1px;
    inset: 3px 1px 0;
  }
  .battery-icon-soc::after {
    height: 9px;
    left: 3px;
    top: 6px;
    width: 7px;
  }
  .battery-status-pill {
    border-radius: 7px;
    gap: 3px;
    padding: 2px 4px;
  }
  .battery-status-pill strong {
    font-size: 7px;
  }
  .battery-status-pill .pilot-light {
    height: 7px;
    width: 7px;
  }
  .battery-status-percent {
    font-size: 9px;
  }
  .generator-card-footer {
    border-radius: 10px;
  }
  .generator-card-footer em {
    font-size: 8px;
  }
}
.generator-traffic-off {
  align-content: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  display: grid;
  gap: 5px;
  position: absolute;
  right: 18px;
  top: 38px;
  padding: 0;
  width: 28px;
}
.generator-traffic-off span {
  background: radial-gradient(circle at 35% 28%, #364152 0 10%, #111827 42%, #020617 82%);
  border: 2px solid #4b5563;
  border-radius: 50%;
  box-shadow:
    inset 0 2px 4px rgba(255,255,255,.18),
    inset 0 -4px 8px rgba(0,0,0,.65),
    0 0 0 2px #9ca3af;
  display: block;
  height: 28px;
  opacity: 1;
  position: relative;
  width: 28px;
}
.generator-traffic-off span:nth-child(1),
.generator-traffic-off span:nth-child(2),
.generator-traffic-off span:nth-child(3) {
  background: radial-gradient(circle at 35% 28%, #364152 0 10%, #111827 42%, #020617 82%);
  border-color: #4b5563;
}
.generator-traffic-off.status-light-red span:nth-child(1) {
  animation: generator-red-pulse 1s ease-in-out infinite;
  background: radial-gradient(circle at 35% 28%, #ffb4b4 0 10%, #ff4d4d 28%, #dc2626 58%, #7f1d1d 92%);
  border-color: #ef4444;
}
.generator-traffic-off.status-light-yellow span:nth-child(2) {
  animation: generator-yellow-pulse 1s ease-in-out infinite;
  background: radial-gradient(circle at 35% 28%, #fff6a8 0 10%, #fde047 28%, #facc15 58%, #854d0e 92%);
  border-color: #facc15;
}
.generator-traffic-off.status-light-green span:nth-child(3) {
  animation: generator-green-pulse 1s ease-in-out infinite;
  background: radial-gradient(circle at 35% 28%, #86efac 0 10%, #22c55e 28%, #10b981 58%, #14532d 92%);
  border-color: #07a94e;
}
@keyframes generator-red-pulse {
  0%, 100% { filter: brightness(.98); box-shadow: inset 0 4px 8px rgba(255,255,255,.38), inset 0 -6px 10px rgba(127,29,29,.45), 0 0 0 2px #9ca3af, 0 0 5px rgba(239,68,68,.45); }
  50% { filter: brightness(1.22); box-shadow: inset 0 5px 9px rgba(255,255,255,.52), inset 0 -6px 10px rgba(127,29,29,.28), 0 0 0 2px #9ca3af, 0 0 17px rgba(239,68,68,.9); }
}
@keyframes generator-yellow-pulse {
  0%, 100% { filter: brightness(.98); box-shadow: inset 0 4px 8px rgba(255,255,255,.38), inset 0 -6px 10px rgba(161,98,7,.45), 0 0 0 2px #9ca3af, 0 0 5px rgba(250,204,21,.45); }
  50% { filter: brightness(1.16); box-shadow: inset 0 5px 9px rgba(255,255,255,.52), inset 0 -6px 10px rgba(161,98,7,.28), 0 0 0 2px #9ca3af, 0 0 17px rgba(250,204,21,.9); }
}
@keyframes generator-green-pulse {
  0%, 100% {
    filter: brightness(.98);
    box-shadow: inset 0 4px 8px rgba(255,255,255,.38), inset 0 -6px 10px rgba(0,92,43,.45), 0 0 0 2px #9ca3af, 0 0 5px rgba(9,184,90,.45);
  }
  50% {
    filter: brightness(1.22);
    box-shadow: inset 0 5px 9px rgba(255,255,255,.52), inset 0 -6px 10px rgba(0,92,43,.28), 0 0 0 2px #9ca3af, 0 0 17px rgba(9,184,90,.9);
  }
}
.generator-kva-badge {
  background: #030303;
  color: #ffff00;
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(12px, .82vw, 15px);
  font-weight: 800;
  left: 20px;
  line-height: 1;
  min-width: 58px;
  padding: 4px 8px;
  position: absolute;
  text-align: center;
  top: 10px;
  white-space: nowrap;
  z-index: 1;
}
.generator-site-line {
  bottom: 16px;
  color: #030303;
  display: block;
  font-size: clamp(14px, 1.08vw, 18px);
  font-weight: 900;
  left: 12px;
  line-height: 1.05;
  overflow: hidden;
  position: absolute;
  right: 58px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.generator-client,
.generator-tile-dark .generator-client {
  bottom: -26px;
  color: #172033;
  font-size: 12px;
  font-weight: 800;
  left: 4px;
  line-height: 1.1;
  min-height: 0;
  overflow: hidden;
  position: absolute;
  right: 4px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.generator-site-power {
  bottom: 47px;
  color: #030303;
  display: block;
  font-size: clamp(12px, 1vw, 17px);
  font-weight: 900;
  left: 16px;
  line-height: 1.05;
  min-height: 0;
  overflow: hidden;
  position: absolute;
  right: 16px;
  text-align: center;
}
.generator-site-power span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.generator-site-power strong {
  background: #030303;
  color: #ffff00;
  display: block;
  font-size: clamp(22px, 2vw, 34px);
  font-weight: 900;
  left: 30px;
  line-height: 1;
  min-width: 120px;
  padding: 8px 16px;
  position: absolute;
  text-align: center;
  top: calc(-100% - 158px);
  white-space: nowrap;
}
.admin-client-filter {
  min-width: min(420px, 100%);
}
.admin-secondary-panel {
  opacity: .96;
}
.admin-list-head {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 16px;
}
.admin-add-btn {
  font-weight: 900;
  min-height: 44px;
  min-width: 132px;
}
.admin-list-table {
  margin-bottom: 0;
}
.admin-list-table thead th {
  color: #334155;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}
.admin-list-table td {
  vertical-align: middle;
}
.generator-detail-form {
  border-top: 1px solid var(--es-line);
  padding-top: 12px;
}
.generator-gps-form {
  border-top: 1px solid var(--es-line);
  padding-top: 12px;
}
.generator-assign-form {
  border-top: 1px solid #d7dce4;
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  text-align: left;
}
.generator-assign-form .form-label {
  color: #4b5563;
  font-size: 12px;
  font-weight: 800;
  margin: 0;
}
.generator-hero-card {
  background: #07111f;
  border-color: #1e334e;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 14px 28px rgba(7, 17, 31, .18);
  color: #e5edf7;
}
.generator-hero-card h2 {
  color: #fff;
  font-weight: 900;
}
.generator-hero-card .btn-outline-primary {
  border-color: rgba(203, 213, 225, .7);
  color: #e5edf7;
}
.generator-hero-card .btn-outline-primary:hover {
  background: #e5edf7;
  border-color: #e5edf7;
  color: #07111f;
}
.generator-main-photo {
  aspect-ratio: 4 / 3;
  border: 1px solid #213956;
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}
.generator-photo-empty {
  align-items: center;
  aspect-ratio: 4 / 3;
  background: #0d1b2d;
  border: 1px dashed #334155;
  border-radius: 8px;
  color: #9fb1c8;
  display: flex;
  justify-content: center;
}
.generator-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.generator-detail-grid div {
  background: #f8fbff;
  border: 1px solid var(--es-line);
  border-radius: 8px;
  padding: 10px;
}
.generator-detail-grid span {
  color: #64748b;
  display: block;
  font-size: 12px;
  margin-bottom: 3px;
}
.generator-detail-grid strong {
  color: #172033;
  display: block;
  font-size: 15px;
}
.status-command-panel {
  background: #07111f;
  border: 1px solid #1e334e;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 14px 28px rgba(7, 17, 31, .18);
  color: #e5edf7;
  height: 100%;
  overflow: auto;
  padding: 16px;
}
.status-command-head {
  align-items: flex-start;
  border-bottom: 1px solid rgba(148,163,184,.22);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
}
.status-command-head h2 {
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  margin: 0;
}
.status-command-head span {
  color: #9fb1c8;
  display: block;
  font-size: 12px;
  margin-top: 3px;
}
.status-attention {
  background: rgba(250, 204, 21, .12);
  border: 1px solid rgba(250, 204, 21, .38);
  border-radius: 8px;
  color: #fde68a;
  font-size: 12px;
  line-height: 1.35;
  margin: 8px 0 0;
  padding: 7px 9px;
}
.fuel-widget {
  background: #0d1b2d;
  border: 1px solid #213956;
  border-radius: 8px;
  margin-bottom: 10px;
  padding: 10px 12px;
}
.fuel-widget-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}
.fuel-widget-top span {
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 800;
}
.fuel-widget-top strong {
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}
.fuel-bar {
  background: #111827;
  border: 1px solid #334155;
  border-radius: 999px;
  height: 18px;
  overflow: hidden;
}
.fuel-bar span {
  background: var(--status-color, #64748b);
  border-radius: inherit;
  display: block;
  height: 100%;
  min-width: 3px;
  transition: width .2s ease;
}
.status-green { --status-color: #10b981; }
.status-yellow { --status-color: #facc15; }
.status-red { --status-color: #ef4444; }
.status-gray { --status-color: #64748b; }
.battery-gauge-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.battery-gauge-card {
  background: #0d1b2d;
  border: 1px solid #213956;
  border-radius: 8px;
  padding: 10px;
}
.battery-gauge-card h3 {
  color: #dbeafe;
  font-size: 14px;
  font-weight: 900;
  margin: 0 0 10px;
}
.gauge-pair {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.gauge {
  align-items: center;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at center, #0d1b2d 0 53%, transparent 54%),
    conic-gradient(var(--status-color, #64748b) calc(var(--value) * 1%), #1f2937 0);
  border: 1px solid rgba(148,163,184,.28);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  max-height: 130px;
  min-width: 0;
}
.gauge div {
  text-align: center;
}
.gauge strong {
  color: #fff;
  display: block;
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
}
.gauge span {
  color: #cbd5e1;
  display: block;
  font-size: 11px;
  font-weight: 900;
  margin-top: 4px;
}
.gauge-help {
  border-top: 1px solid rgba(148,163,184,.18);
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding-top: 8px;
}
.gauge-help span {
  color: #b8c7d9;
  display: block;
  font-size: 11px;
  line-height: 1.25;
}
.gauge-help strong {
  color: #fff;
}
.recommended-actions {
  background: #0a1626;
  border: 1px solid #213956;
  border-radius: 8px;
  margin-top: 10px;
  max-height: 150px;
  overflow: auto;
  padding: 10px 12px;
}
.recommended-actions h3 {
  color: #f8fafc;
  font-size: 13px;
  font-weight: 900;
  margin: 0 0 8px;
}
.recommended-actions ul {
  margin: 0;
  padding-left: 18px;
}
.recommended-actions li,
.recommended-actions p {
  color: #dbeafe;
  font-size: 13px;
  margin: 0 0 5px;
}
.status-empty {
  color: #cbd5e1;
  font-size: 13px;
  padding: 8px 0;
}
.summary-head {
  align-items: center;
  border-bottom: 1px solid var(--es-line);
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
}
.summary-head img {
  max-height: 48px;
  max-width: 190px;
}
@media print {
  body { background: #fff; }
  .topbar,
  .summary-actions { display: none !important; }
  main { width: 100% !important; max-width: none !important; padding: 0 !important; }
  .container-fluid,
  .row { display: block !important; margin: 0 !important; padding: 0 !important; }
  .print-summary { border: 0; padding: 0 !important; }
}
.tech-home {
  min-height: calc(100vh - 110px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.tech-grid {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.tech-action {
  min-height: 150px;
  border-radius: 8px;
  background: linear-gradient(180deg, #103b63, #0b2d4d);
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 16px 34px rgba(11, 45, 77, .24);
  border: 1px solid rgba(255,255,255,.16);
}
.tech-action:hover {
  color: #fff;
  background: linear-gradient(180deg, #155487, #0c355b);
  transform: translateY(-1px);
}
.tech-action-route {
  background: linear-gradient(180deg, #dc2626, #991b1b);
}
.tech-action-route:hover {
  background: linear-gradient(180deg, #ef4444, #b91c1c);
}
.tech-action-future {
  opacity: .94;
}
.tech-route {
  display: grid;
  gap: 12px;
}
.tech-route-status {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #9a3412;
  font-weight: 800;
  padding: 12px;
}
.tech-route-card {
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--es-line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  padding: 14px;
}
.tech-route-number {
  align-items: center;
  background: #dc2626;
  border-radius: 8px;
  color: #fff;
  display: flex;
  font-size: 24px;
  font-weight: 900;
  justify-content: center;
}
.tech-route-main {
  min-width: 0;
}
.tech-route-main strong,
.tech-route-main span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tech-route-main strong {
  color: var(--es-blue);
  font-size: 18px;
  font-weight: 900;
}
.tech-route-main span,
.tech-route-detail {
  color: #475569;
  font-size: 14px;
}
.tech-route-detail {
  margin-top: 5px;
}
.tech-route-map {
  align-items: center;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-width: 112px;
}
.tech-history-list {
  display: grid;
  gap: 10px;
}
.tech-history-item {
  align-items: center;
  background: #fff;
  border: 1px solid var(--es-line);
  border-radius: 8px;
  color: #172033;
  display: grid;
  gap: 12px;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  padding: 12px;
  text-decoration: none;
}
.tech-history-item:hover {
  border-color: var(--es-blue);
  color: #172033;
}
.tech-history-icon {
  align-items: center;
  border-radius: 8px;
  color: #fff;
  display: flex;
  font-size: 24px;
  font-weight: 900;
  height: 56px;
  justify-content: center;
  width: 56px;
}
.history-icon-relevamiento { background: #2563eb; }
.history-icon-mantenimiento { background: #16a34a; }
.history-icon-visita { background: #f59e0b; }
.history-icon-informe { background: #7c3aed; }
.history-icon-otro { background: #64748b; }
.tech-history-main {
  min-width: 0;
}
.tech-history-main strong,
.tech-history-main em,
.tech-history-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tech-history-main strong {
  color: var(--es-blue);
  font-size: 13px;
  font-weight: 900;
}
.tech-history-main em {
  font-style: normal;
  font-weight: 900;
}
.tech-history-main small,
.tech-history-date small {
  color: #64748b;
}
.tech-history-date {
  color: #172033;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}
.wizard-shell {
  max-width: 1040px;
  margin: 0 auto;
}
.wizard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.wizard-header h1 {
  margin: 0;
  color: var(--es-blue);
  font-size: 28px;
  font-weight: 800;
}
.wizard-header p {
  margin: 4px 0 0;
  text-align: right;
  color: #5b6677;
}
.wizard-form {
  background: #fff;
  border: 1px solid var(--es-line);
  border-radius: 8px;
  padding: 22px;
}
.wizard-section {
  display: none;
  min-height: 430px;
}
.wizard-section.active {
  display: block;
}
.wizard-form-edit .wizard-section {
  display: block;
  min-height: 0;
  margin-bottom: 22px;
}
.wizard-form-edit .wizard-nav {
  display: none;
}
.admin-maintenance-toggle {
  background: #f8fbff;
  border: 2px solid var(--es-line);
  border-radius: 8px;
  margin-bottom: 18px;
  padding: 14px;
}
.wizard-section h2 {
  color: var(--es-blue);
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 18px;
}
.wizard-help {
  color: #5b6677;
  font-size: 17px;
  margin-bottom: 18px;
}
.client-name-input {
  min-height: 70px;
  font-size: 28px;
  font-weight: 700;
}
.photo-seal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.photo-seal span {
  border: 1px solid #8fa0b3;
  border-radius: 4px;
  background: #f7f9fc;
  color: #5b6677;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  padding: 6px 8px;
  text-transform: uppercase;
}
.photo-seal strong {
  color: #0b2d4d;
  display: inline-block;
  font-size: 12px;
  margin-left: 4px;
  max-width: 210px;
  overflow-wrap: anywhere;
  vertical-align: bottom;
}
.upload-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}
.panel-photo-box {
  border: 4px solid #050505;
  border-radius: 8px;
  background: #0b2d4d;
  color: #fff;
  padding: 16px;
}
.panel-photo-box .form-label {
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.panel-photo-box p {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}
.photo-capture-button {
  background: #15a34a;
  border: 2px solid #0f8a3d;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
  min-height: 62px;
  min-width: 230px;
  padding: 14px 22px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(21, 163, 74, .28);
}
.photo-capture-button:hover {
  background: #18b653;
  color: #fff;
}
.photo-capture-button input {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  width: 1px;
}
.photo-box-optional {
  border-color: #14395f;
}
.check-title {
  color: var(--es-blue);
  font-size: 24px;
  font-weight: 900;
  margin: 8px 0 0;
}
.check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.check-grid-wide {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.check-option input {
  position: absolute;
  opacity: 0;
}
.check-option span {
  align-items: center;
  background: #f7f9fc;
  border: 2px solid var(--es-line);
  border-radius: 8px;
  color: #172033;
  cursor: pointer;
  display: flex;
  font-size: 20px;
  font-weight: 800;
  justify-content: center;
  min-height: 62px;
  padding: 12px;
  text-align: center;
}
.check-option input:checked + span {
  background: #0b2d4d;
  border-color: #0b2d4d;
  color: #fff;
}
.battery-measurements {
  display: grid;
  gap: 14px;
}
.battery-measurement {
  border: 1px solid var(--es-line);
  border-radius: 8px;
  background: #f8fbff;
  padding: 14px;
}
.battery-measurement h4 {
  color: var(--es-blue);
  font-size: 18px;
  font-weight: 900;
  margin: 0 0 10px;
}
.upload-preview-item {
  border: 1px solid var(--es-line);
  border-radius: 8px;
  background: #f8fbff;
  padding: 8px;
  width: 150px;
}
.upload-preview-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  margin-bottom: 8px;
}
.upload-preview-item .btn {
  width: 100%;
}
.existing-photos-panel {
  border: 1px solid var(--es-line);
  border-radius: 8px;
  background: #fff;
  margin-bottom: 18px;
  padding: 16px;
}
.existing-photos-panel h2 {
  color: var(--es-blue);
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 6px;
}
.existing-photos-panel p {
  color: #5b6677;
  margin-bottom: 14px;
}
.existing-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.existing-photo {
  border: 2px solid var(--es-line);
  border-radius: 8px;
  background: #f8fbff;
  padding: 8px;
}
.existing-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  margin-bottom: 8px;
}
.existing-photo span {
  display: block;
  font-size: 12px;
  min-height: 34px;
}
.existing-photo strong {
  color: #111;
  font-size: 12px;
  margin-left: 4px;
}
.wizard-textarea {
  min-height: 310px;
}
.wizard-nav {
  border-top: 1px solid var(--es-line);
  margin-top: 22px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.wizard-nav .btn,
.wizard-save {
  min-width: 190px;
  min-height: 58px;
  font-weight: 800;
}
.maintenance-list {
  display: grid;
  gap: 10px;
}
.maintenance-item {
  align-items: center;
  background: #fff;
  border: 1px solid var(--es-line);
  border-radius: 8px;
  color: #172033;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 14px;
  text-decoration: none;
}
.maintenance-item:hover {
  border-color: var(--es-blue);
  color: #172033;
}
.maintenance-item-green {
  background: #16a34a;
  border-color: #15803d;
  color: #fff;
}
.maintenance-item-blue {
  background: #0b2d4d;
  border-color: #0b2d4d;
  color: #fff;
}
.maintenance-item-green:hover,
.maintenance-item-blue:hover {
  color: #fff;
}
.maintenance-item-green strong,
.maintenance-item-green span,
.maintenance-item-green small,
.maintenance-item-green .maintenance-distance,
.maintenance-item-blue strong,
.maintenance-item-blue span,
.maintenance-item-blue small,
.maintenance-item-blue .maintenance-distance {
  color: #fff;
}
.maintenance-item strong,
.maintenance-item span,
.maintenance-item small {
  display: block;
}
.maintenance-item strong {
  color: var(--es-blue);
  font-size: 18px;
  font-weight: 900;
}
.maintenance-item span {
  font-weight: 800;
}
.maintenance-item small {
  color: #64748b;
}
.maintenance-distance {
  color: var(--es-blue);
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 900;
}
.maintenance-section-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.maintenance-section {
  background: #fff;
  border: 1px solid var(--es-line);
  border-radius: 8px;
  padding: 16px;
}
.maintenance-section h2 {
  color: var(--es-blue);
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 12px;
}
.maintenance-check-row {
  align-items: center;
  border-bottom: 1px solid #edf2f7;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) 70px 78px;
  padding: 8px 0;
}
.maintenance-check-row span {
  font-weight: 700;
}
.maintenance-check-row label {
  align-items: center;
  display: flex;
  gap: 5px;
  font-weight: 900;
  margin: 0;
}
.maintenance-table input {
  min-height: 40px;
}
.maintenance-search-results {
  display: grid;
  gap: 8px;
}
.maintenance-search-item {
  align-items: center;
  background: #f8fbff;
  border: 1px solid var(--es-line);
  border-radius: 8px;
  color: #172033;
  display: none;
  justify-content: space-between;
  padding: 10px 12px;
  text-decoration: none;
}
.maintenance-search-item:hover {
  border-color: var(--es-blue);
  color: #172033;
}
.maintenance-confirm {
  text-align: center;
}
.maintenance-main-photo,
.maintenance-main-photo-empty {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--es-line);
  border-radius: 8px;
  margin: 0 auto;
  max-height: 420px;
  object-fit: cover;
  width: min(100%, 620px);
}
.maintenance-main-photo-empty {
  align-items: center;
  background: #f8fbff;
  color: #64748b;
  display: flex;
  font-weight: 900;
  justify-content: center;
}
.maintenance-confirm h3 {
  color: var(--es-blue);
  font-size: 26px;
  font-weight: 900;
  margin: 18px 0;
}
.maintenance-confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.maintenance-measurement-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.maintenance-measurement-card {
  background: #f8fbff;
  border: 1px solid var(--es-line);
  border-radius: 8px;
  overflow: hidden;
}
.maintenance-measurement-card h3 {
  background: #eef4fb;
  color: var(--es-blue);
  font-size: 13px;
  font-weight: 900;
  margin: 0;
  padding: 9px 10px;
}
.maintenance-measurement-row {
  align-items: center;
  border-top: 1px solid var(--es-line);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 8px 10px;
}
.maintenance-measurement-row span {
  color: #334155;
  font-weight: 700;
}
.maintenance-measurement-row strong {
  color: #0b2d4d;
  font-size: 15px;
  font-weight: 900;
  text-align: right;
}
@media (max-width: 768px) {
  .maintenance-section-grid {
    grid-template-columns: 1fr;
  }
  .maintenance-item {
    align-items: flex-start;
    flex-direction: column;
  }
  .maintenance-check-row {
    grid-template-columns: minmax(0, 1fr) 58px 66px;
  }
}
.map-shell {
  background: #07111f;
  border: 1px solid #1e334e;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 14px 28px rgba(7, 17, 31, .18);
  min-height: calc(100vh - 140px);
  padding: 14px;
}
.map-body {
  background: #07111f;
  margin: 0;
  overflow: hidden;
}
.map-shell-full {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  height: 100vh;
  min-height: 100vh;
  padding: 0;
}
.map-head {
  align-items: center;
  border-bottom: 1px solid rgba(148,163,184,.22);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
}
.map-head-compact {
  background: #07111f;
  border-bottom: 1px solid rgba(148,163,184,.25);
  gap: 12px;
  height: 58px;
  margin: 0;
  padding: 8px 12px;
}
.map-head h1 {
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  margin: 0;
}
.map-head span {
  color: #9fb1c8;
  display: block;
  font-size: 13px;
  margin-top: 3px;
}
.map-count {
  color: #dbeafe;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.map-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: flex-end;
  min-width: 0;
}
.map-filter-form,
.map-filters .form-select {
  width: min(260px, 100%);
}
.map-head-compact .map-filter-form,
.map-head-compact .map-filters .form-select {
  max-width: 260px;
  min-width: 190px;
  width: 22vw;
}
.map-theme-toggle {
  background: #2563eb;
  border: 1px solid rgba(219,234,254,.72);
  color: #fff;
  flex: 0 0 auto;
  font-weight: 800;
  min-width: 116px;
}
.map-theme-toggle:hover,
.map-theme-toggle:focus {
  background: #1d4ed8;
  border-color: #bfdbfe;
  color: #fff;
}
.generator-map {
  background: #0d1b2d;
  border: 1px solid #213956;
  border-radius: 8px;
  height: calc(100vh - 235px);
  min-height: 520px;
  overflow: hidden;
}
.map-shell-full .generator-map {
  border: 0;
  border-radius: 0;
  height: calc(100vh - 58px);
  min-height: 0;
}
.generator-map.map-theme-dark .leaflet-tile-pane {
  filter: brightness(1.55) contrast(.95) saturate(1.12);
}
.generator-map.map-theme-light .leaflet-tile-pane {
  filter: brightness(1.02) contrast(1.04) saturate(1.08);
}
.generator-map-empty {
  align-items: center;
  color: #cbd5e1;
  display: flex;
  font-weight: 800;
  justify-content: center;
  text-align: center;
}
.planner-layout {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(360px, 420px) minmax(0, 1fr);
}
.planner-filter-form {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(220px, 1fr) 170px 180px auto auto;
}
.planner-filter-form-client {
  grid-template-columns: 170px 220px auto;
}
.planner-client-layout {
  display: grid;
}
.planner-panel {
  max-height: calc(100vh - 142px);
  overflow: auto;
  padding-right: 4px;
}
.planner-list {
  display: grid;
  gap: 10px;
}
.planner-site {
  background: #fff;
  border: 1px solid var(--es-line);
  border-radius: 8px;
  padding: 12px;
}
.planner-site-accordion {
  padding: 0;
}
.planner-site-accordion summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  list-style: none;
  padding: 12px;
}
.planner-site-accordion summary::-webkit-details-marker {
  display: none;
}
.planner-site-accordion summary::after {
  color: #64748b;
  content: "Editar";
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
}
.planner-site-accordion[open] summary {
  border-bottom: 1px solid var(--es-line);
}
.planner-site-accordion[open] summary::after {
  content: "Cerrar";
}
.planner-site-accordion > .planner-coords,
.planner-site-accordion > .small,
.planner-site-accordion > form,
.planner-site-accordion > .d-flex {
  margin-left: 12px;
  margin-right: 12px;
}
.planner-site-accordion > .planner-coords {
  margin-top: 10px;
}
.planner-site-accordion > .d-flex {
  margin-bottom: 12px;
}
.planner-site strong,
.planner-site span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.planner-site span,
.planner-coords {
  color: #64748b;
  font-size: 13px;
}
.planner-badge {
  border-radius: 999px;
  flex: 0 0 auto;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  padding: 4px 8px;
}
.planner-badge-done {
  background: #dcfce7;
  color: #166534;
}
.planner-badge-pending {
  background: #fef3c7;
  color: #92400e;
}
.planner-inline-form {
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr) auto;
}
.planner-inline-form:has(input[type="date"]) {
  grid-template-columns: 132px minmax(0, 1fr) auto;
}
.planner-map-wrap {
  min-width: 0;
}
.planner-map {
  height: calc(100vh - 330px);
  min-height: 390px;
}
.planner-client-map {
  height: calc(100vh - 330px);
  min-height: 430px;
}
.planner-route {
  background: #fff;
  border: 1px solid var(--es-line);
  border-radius: 8px;
  margin-top: 12px;
  padding: 14px;
}
.planner-calendar-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.planner-route-day + .planner-route-day {
  border-top: 1px solid var(--es-line);
  margin-top: 12px;
  padding-top: 12px;
}
.planner-calendar-day + .planner-calendar-day {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}
.planner-calendar-day {
  background: #f8fbff;
  border: 1px solid var(--es-line);
  border-radius: 8px;
  padding: 10px;
}
.planner-route-day > strong {
  color: var(--es-blue);
  display: block;
  margin-bottom: 8px;
}
.planner-route ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 22px;
}
.planner-route li span,
.planner-route li em {
  display: block;
}
.planner-route li span {
  font-weight: 800;
}
.planner-route li em {
  color: #64748b;
  font-size: 13px;
  font-style: normal;
}
.map-location-pin {
  --map-pin-color: #94a3b8;
  --map-pin-glow: rgba(148, 163, 184, .72);
  --pin-hop-delay: 0s;
  --pin-hop-duration: 1.35s;
  animation: map-pin-hop var(--pin-hop-duration) ease-in-out infinite;
  animation-delay: var(--pin-hop-delay);
  display: block;
  height: 42px;
  position: relative;
  width: 34px;
  will-change: transform;
}
.map-location-pin > span {
  background: var(--map-pin-color);
  border: 2px solid rgba(255,255,255,.82);
  border-radius: 50% 50% 50% 0;
  box-shadow: 0 0 0 1px rgba(15,23,42,.88), 0 0 16px var(--map-pin-glow);
  display: block;
  height: 30px;
  left: 2px;
  position: absolute;
  top: 0;
  transform: rotate(-45deg);
  width: 30px;
}
.map-location-pin > span::before {
  background: #0f172a;
  border-radius: 50%;
  content: "";
  height: 11px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 11px;
}
.map-location-pin::after {
  animation: map-location-pulse 1.2s ease-out infinite;
  background: var(--map-pin-color);
  border-radius: 50%;
  bottom: 0;
  box-shadow: 0 0 18px var(--map-pin-glow);
  content: "";
  height: 12px;
  left: 50%;
  opacity: .48;
  position: absolute;
  transform: translateX(-50%);
  width: 12px;
}
.map-location-red {
  --map-pin-color: #ef4444;
  --map-pin-glow: rgba(239, 68, 68, .82);
}
.map-location-yellow {
  --map-pin-color: #facc15;
  --map-pin-glow: rgba(250, 204, 21, .82);
}
.map-location-green {
  --map-pin-color: #10b981;
  --map-pin-glow: rgba(16, 185, 129, .82);
}
.map-location-gray {
  --map-pin-color: #cbd5e1;
  --map-pin-glow: rgba(203, 213, 225, .68);
}
.map-location-white {
  --map-pin-color: #fff;
  --map-pin-glow: rgba(255, 255, 255, .82);
}
.map-location-white > span {
  border-color: #111827;
}
@keyframes map-pin-pulse {
  0% { opacity: .6; transform: scale(.82); }
  100% { opacity: 0; transform: scale(1.6); }
}
@keyframes map-location-pulse {
  0% { opacity: .56; transform: translateX(-50%) scale(.8); }
  100% { opacity: 0; transform: translateX(-50%) scale(2.8); }
}
@keyframes map-pin-hop {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(-5px); }
  60% { transform: translateY(0); }
}
@media (max-width: 768px) {
  .topbar .container-fluid { align-items: center; }
  .brand-logo { max-height: 48px; max-width: 190px; }
  .navbar-collapse { flex-basis: 100%; order: 4; }
  .app-nav {
    align-items: stretch;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--es-line);
    border-radius: 0;
    margin-top: 10px;
    padding: 10px 0 0;
  }
  .app-nav .nav-link {
    background: #eef4fb;
    padding: 12px 14px;
  }
  .user-actions {
    gap: 8px !important;
  }
  .user-actions .small {
    display: none;
  }
  .tablet-card { min-height: 105px; font-size: 18px; }
  .tech-home { min-height: calc(100vh - 90px); padding: 10px; align-items: stretch; }
  .tech-grid { grid-template-columns: 1fr; gap: 12px; }
  .tech-action { min-height: 105px; font-size: 24px; }
  .tech-route-card { grid-template-columns: 42px minmax(0, 1fr); }
  .tech-route-map { grid-column: 1 / -1; min-height: 50px; }
  .wizard-header { align-items: flex-start; }
  .wizard-header h1 { font-size: 22px; }
  .wizard-header p { text-align: left; }
  .wizard-form { padding: 14px; }
  .wizard-section { min-height: 460px; }
  .wizard-section h2 { font-size: 22px; }
  .wizard-nav .btn, .wizard-save { min-width: 0; width: 100%; }
  .client-name-input { min-height: 64px; font-size: 24px; }
  .photo-seal { gap: 6px; }
  .photo-seal span { font-size: 10px; padding: 5px 7px; }
  .photo-seal strong { font-size: 11px; max-width: 160px; }
  .check-grid, .check-grid-wide { grid-template-columns: 1fr 1fr; }
  .check-option span { min-height: 54px; font-size: 17px; }
  .map-head { align-items: stretch; flex-direction: column; }
  .map-filters { justify-content: stretch; }
  .map-filter-form,
  .map-filters .form-select { width: 100%; }
  .generator-map { height: calc(100vh - 290px); min-height: 420px; }
  .planner-filter-form { grid-template-columns: 1fr; width: 100%; }
  .planner-layout { grid-template-columns: 1fr; }
  .planner-panel { max-height: none; }
  .planner-map { height: 480px; min-height: 480px; }
  .planner-inline-form,
  .planner-inline-form:has(input[type="date"]) { grid-template-columns: 1fr; }
  .map-shell-full .map-head {
    align-items: center;
    flex-direction: row;
    overflow-x: auto;
  }
  .map-shell-full .map-filters {
    justify-content: flex-end;
  }
  .map-shell-full .map-filter-form,
  .map-shell-full .map-filters .form-select {
    flex: 0 0 auto;
    min-width: 180px;
    width: 180px;
  }
  .map-shell-full .map-theme-toggle {
    min-width: 112px;
  }
  .map-shell-full .generator-map {
    height: calc(100vh - 58px);
    min-height: 0;
  }
}
