#btn-volver-barra-usuarios {
  background: #0b3d91 !important;
  color: #fff !important;
  border: 2px solid #fff !important;
  border-radius: 16px !important;
  padding: 0.35rem 1.2rem 0.35rem 0.9rem !important;
  font-size: 1.08rem !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  box-shadow: 0 2px 8px rgba(11,61,145,0.07);
  transition: background 0.18s, color 0.18s;
  text-decoration: none !important;
}
#btn-volver-barra-usuarios i {
  color: #fff !important;
  font-size: 1.1em !important;
  font-weight: 700 !important;
  margin-right: 0.5em;
}
#btn-volver-barra-usuarios:hover {
  background: #083b8a !important;
  color: #fff !important;
  border-color: #fff !important;
}

/* Ultra refuerzo: grid de permisos 3 columnas desktop, 1 móvil */
.usuarios-editar-container form .permisos-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 0.8rem !important;
  margin-top: 0.4rem !important;
}
@media (max-width: 768px) {
  .usuarios-editar-container form .permisos-grid {
    grid-template-columns: 1fr !important;
  }
}
.usuarios-editar-container .header-bar .btn-volver-barra {
  background: #0b3d91 !important;
  color: #fff !important;
  border: 2px solid #fff !important;
  border-radius: 16px !important;
  padding: 0.35rem 1.2rem 0.35rem 0.9rem !important;
  font-size: 1.08rem !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  box-shadow: 0 2px 8px rgba(11,61,145,0.07);
  transition: background 0.18s, color 0.18s;
}
.usuarios-editar-container .header-bar .btn-volver-barra i {
  color: #fff !important;
  font-size: 1.1em !important;
  font-weight: 700 !important;
}
.usuarios-editar-container .header-bar .btn-volver-barra:hover {
  background: #083b8a !important;
  color: #fff !important;
  border-color: #fff !important;
  text-decoration: none !important;
}

/* Refuerzo máximo: grid de permisos 3 columnas desktop, 1 móvil */
.usuarios-editar-container .permisos-grid,
.usuarios-editar-container form .permisos-grid,
.usuarios-editar-container > .permisos-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 0.8rem !important;
  margin-top: 0.4rem !important;
}
@media (max-width: 768px) {
  .usuarios-editar-container .permisos-grid,
  .usuarios-editar-container form .permisos-grid,
  .usuarios-editar-container > .permisos-grid {
    grid-template-columns: 1fr !important;
  }
}
/* === Botón Volver barra de títulos === */
.btn-volver-barra {
  background: #0b3d91 !important;
  color: #fff !important;
  border: 2px solid #fff !important;
  border-radius: 16px !important;
  padding: 0.35rem 1.2rem 0.35rem 0.9rem !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  box-shadow: 0 2px 8px rgba(11,61,145,0.07);
  transition: background 0.18s, color 0.18s;
}
.btn-volver-barra:hover {
  background: #083b8a !important;
  color: #fff !important;
  border-color: #fff !important;
  text-decoration: none !important;
}

/* Refuerzo: permisos-grid 3 columnas desktop, 1 móvil */
.usuarios-editar-container .permisos-grid,
.permisos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 0.8rem;
  margin-top: 0.4rem;
}
@media (max-width: 768px) {
  .usuarios-editar-container .permisos-grid,
  .permisos-grid {
    grid-template-columns: 1fr !important;
  }
}
/* Padding para formularios */
form,
.form-box,
.formulario,
.form-container {
  padding: 10px !important;
}

/* =============================================================
   AeroSGO 2025 - Hoja de estilo unificada
   Propósito: concentrar tokens, layout, menú lateral y componentes
   ============================================================= */

/* CRÍTICO: Eliminar scrollbar del sidebar - máxima especificidad */
#sidebar,
#sidebar * {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

#sidebar::-webkit-scrollbar,
#sidebar *::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

:root {
  --color-primary: #0b3d91;
  --color-surface: #f5f6f8;
  --color-surface-strong: #161b22;
  --color-text: #1f2933;
  --color-muted: #6b7280;
  --sidebar-width: 300px;
  --radius: 8px;
  --shadow-sm: 0 2px 5px rgba(0, 0, 0, .14);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, .18);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --font-base: 'Roboto', sans-serif;
}

/* Base */
body {
  margin: 0;
  padding-top: 45px;
  font-family: var(--font-base);
  background: var(--color-surface);
  color: var(--color-text);
  overflow-x: hidden;
  position: relative;
}

body>* {
  margin-top: 0 !important;
}

/* === Global: Ocultar flechas de incremento en inputs numéricos === */
/* Chrome, Safari, Edge, Opera */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}

/* === Botones de acción y variantes === */
.btn-action,
.btn.btn-sm.btn-action,
.btn-sm.btn-outline-primary,
.btn-sm.btn-outline-warning,
.btn-sm.btn-outline-danger,
.btn-sm.btn-outline-info,
.btn-nav-mes {
  border-radius: 4px !important;
  position: relative;
  transition: all 0.2s ease !important;
  border: 1px solid !important;
  border-left-width: 8px !important;
  padding: 0.375rem 0.75rem !important;
  padding-left: 6px !important;
  font-weight: 600 !important;
  font-size: 0.68rem !important;
  cursor: pointer !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.15rem !important;
  white-space: nowrap !important;
}

.btn-action:hover,
.btn-sm.btn-outline-primary:hover,
.btn-sm.btn-outline-warning:hover,
.btn-sm.btn-outline-danger:hover,
.btn-sm.btn-outline-info:hover,
.btn-nav-mes:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.12) !important;
}

.btn-sm.btn-outline-primary {
  background: #0d6efd !important;
  color: white !important;
  border-color: #0d6efd !important;
}

.btn-sm.btn-outline-primary:hover {
  background: #0b5ed7 !important;
  color: white !important;
  border-color: #0b5ed7 !important;
}

.btn-sm.btn-outline-warning {
  background: #ffc107 !important;
  color: #212529 !important;
  border-color: #ffc107 !important;
}

.btn-sm.btn-outline-warning:hover {
  background: #e0a800 !important;
  color: #212529 !important;
  border-color: #e0a800 !important;
}

.btn-sm.btn-outline-danger {
  background: #dc3545 !important;
  color: white !important;
  border-color: #dc3545 !important;
}

.btn-sm.btn-outline-danger:hover {
  background: #bb2d3b !important;
  color: white !important;
  border-color: #bb2d3b !important;
}

.btn-sm.btn-outline-info {
  background: #0dcaf0 !important;
  color: #212529 !important;
  border-color: #0dcaf0 !important;
}

.btn-sm.btn-outline-info:hover {
  background: #31d2f2 !important;
  color: #212529 !important;
  border-color: #31d2f2 !important;
}

.btn-nav-mes {
  background: transparent !important;
  color: #0d6efd !important;
  border-color: #0d6efd !important;
}

.btn-nav-mes:hover {
  background: #0d6efd !important;
  color: white !important;
  transform: translateX(2px) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
  text-decoration: none !important;
}

/* === Ficha container fix === */
.ficha-container {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.ficha-container .header-bar {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* === Calendario navegación === */
.calendario-navegacion {
  background: white;
  padding: 0.3rem 0.6rem;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Overlay blur effect when sidebar is open */

/* Overlay deshabilitado temporalmente para evitar bloqueo de interacción */
/* body::before, body.sidebar-open::before { display: none !important; } */

header {
  background: var(--color-primary);
  color: #fff;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-2);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  box-shadow: var(--shadow-sm);
}

header .logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: 1.1rem;
}

header .user-info {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

header .header-bar {
  color: #fff;
}

/* Layout principal */
#sidebar {
  width: var(--sidebar-width);
  background: var(--menu-bg, #083b8a);
  color: var(--menu-text, #ffffff);
  position: fixed;
  top: 40px;
  left: 0;
  bottom: 0;
  overflow-y: scroll;
  transition: transform .3s ease, box-shadow .3s ease;
  z-index: 2500;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  /* Sombra pronunciada para que se note flotante sobre el contenido */
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.55), 18px 0 55px rgba(0, 0, 0, 0.35);
}

#sidebar.closed {
  transform: translateX(calc(var(--sidebar-width) * -1));
}

#sidebar.open {
  transform: translateX(0);
  z-index: 2600;
  box-shadow: 12px 0 38px rgba(0, 0, 0, 0.6), 20px 0 60px rgba(0, 0, 0, 0.4);
}

/* #content styling - transitions handled by JavaScript */
#content {
  transition: transform 0.3s ease, filter 0.3s ease !important;
  will-change: transform, filter;
}

@media (max-width: 768px) {
  #sidebar {
    transform: translateX(-100%);
  }

  #sidebar.open {
    transform: translateX(0);
    z-index: 2600;
  }

  #sidebar.open~#content {
    transform: translateX(0);
    filter: blur(3px) brightness(0.6);
  }
}

/* Menú lateral */
#sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--menu-text, #ffffff);
  font-size: calc(var(--menu-font-size, 1rem) + 2px);
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: 0;
  white-space: nowrap;
  width: 100%;
  position: relative;
}

#sidebar a:hover,
#sidebar a.active {
  background: var(--hover-bg, rgba(255, 255, 255, 0.15));
  color: #ffffff;
}

#sidebar a i {
  width: 25px;
  text-align: center;
}

#sidebar span {
  opacity: 1;
}

#sidebar>ul.nav {
  padding: 18px 0 0 0 !important;
  margin: 0;
}

#sidebar .nav,
#sidebar ul {
  padding: 0 !important;
  margin: 0;
  list-style: none;
}

#sidebar li {
  margin: 0;
  padding: 0;
}

/* Carpetas destacadas */
#sidebar a[data-tipo="carpeta"] {
  font-size: calc(var(--menu-font-size, 1rem) + 3px);
  font-weight: 600;
  background: rgba(76, 175, 80, 0.2);
  border-left: 4px solid rgba(76, 175, 80, 0.8);
  padding-left: 10px;
}

#sidebar a[data-tipo="carpeta"]:hover {
  background: rgba(76, 175, 80, 0.35);
  border-left-color: rgba(76, 175, 80, 1);
}

.submenu {
  display: none;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.submenu.show {
  display: flex;
  animation: slideDown 0.3s ease forwards;
}

.submenu li {
  padding-left: 10px;
}

.submenu a {
  color: rgba(255, 255, 255, 0.95);
  border-radius: 0;
  position: relative;
  font-size: calc(var(--menu-font-size, 1rem) + 2px);
}

.submenu a:hover {
  background: var(--hover-bg, rgba(255, 255, 255, 0.15));
  color: #ffffff;
}

@keyframes slideDown {
  from {
    opacity: 0;
    height: 0;
  }

  to {
    opacity: 1;
    height: auto;
  }
}

.fa-chevron-down.rotate {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

/* Componentes genéricos */
.card {
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.table {
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--color-primary);
  border: none;
}

.btn-primary:hover {
  filter: brightness(0.95);
}

.btn-primary:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

.form-control {
  background-color: #fff;
  border: 1px solid #d1d5db;
  color: var(--color-text);
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.15rem rgba(11, 61, 145, 0.15);
}

.form-control.is-invalid {
  border-color: #dc3545;
}

.form-control.is-invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, .25);
}

/* Página de login */
.auth-body {
  background: linear-gradient(145deg, #0d1117, #1a1f27);
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.auth-card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  width: 360px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  animation: fadeIn 0.6s ease;
}

.auth-card h4 {
  color: #ffffff;
}

.auth-card .form-control {
  background-color: #0d1117;
  border: 1px solid #30363d;
  color: #ffffff;
}

.auth-card .form-control:focus {
  background-color: #0d1117;
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: none;
}

.auth-card .input-group-text {
  background-color: #0d1117;
  border: 1px solid #30363d;
  cursor: pointer;
  color: #ffffff;
}

.auth-card .input-group-text:hover {
  color: var(--color-primary);
}

.auth-footer {
  color: #aaaaaa;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Encabezados de módulos (helicópteros/vehículos) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;500;600&display=swap');

.header-bar {
  background: var(--color-primary);
  box-shadow: none;
  border-radius: 4px;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.alert-container,
.alert-page {
  padding-top: 0;
  margin-top: 0 !important;
}

.alert-header-tight {
  margin-top: 0;
  margin-bottom: 0;
}

.header-title span {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #fff;
}

.btn-mini {
  font-size: 0.74rem;
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
}

.btn-mini i {
  margin-right: 3px;
}

.mini-text {
  font-size: 0.8rem;
}

.doc-chip {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

.text-90 {
  font-size: 0.9rem;
}

.text-80 {
  font-size: 0.8rem;
}

.text-10 {
  font-size: 10px;
}

.text-115 {
  font-size: 1.15rem;
}

.text-70 {
  font-size: 0.7rem;
}

.mt-0 {
  margin-top: 0 !important;
}

.rounded-14 {
  border-radius: 14px !important;
}

.max-w-300 {
  max-width: 300px;
}

.max-w-160 {
  max-width: 160px;
}

.max-w-700 {
  max-width: 700px;
}

.max-w-920 {
  max-width: 920px;
}

.max-w-1200 {
  max-width: 1200px;
}

.w-fit {
  width: fit-content;
}

.w-auto-fit {
  width: auto !important;
}

.nowrap {
  white-space: nowrap;
}

.thumb-140 {
  height: 140px;
  object-fit: cover;
}

.thumb-220 {
  max-height: 220px;
  object-fit: cover;
}

.h-32 {
  height: 32px !important;
}

.h-26 {
  height: 26px !important;
}

.max-h-400 {
  max-height: 400px;
}

.icon-preview {
  width: 36px;
  height: 36px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.opacity-value {
  width: 36px;
  text-align: right;
}

.user-icon-preview i {
  color: var(--user-icon-color, #007bff);
  font-size: 20px;
}

.no-arrows::-webkit-outer-spin-button,
.no-arrows::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.no-arrows {
  -moz-appearance: textfield;
  appearance: textfield;
}

.min-w-320 {
  min-width: 320px;
}

.ps-bg-soft {
  background: #f4f6fa;
  padding: 8px 0 0 0;
}

.ps-table {
  background: #f8f9fa;
}

.ps-row-head {
  background: #d1d5db;
  font-weight: 700;
  font-size: 0.75rem;
}

.ps-cell-label {
  background: #e9ecef;
  font-weight: bold;
  text-align: right;
  padding-right: 8px !important;
  font-size: 0.8rem;
}

.ps-cell-small {
  font-size: 0.75rem;
}

.ps-summary-box {
  background: #e6f2fa;
  border-radius: 6px;
  border: 1.5px solid #b6d6ee;
}

.ps-summary-row {
  font-size: 0.9rem;
}

.ps-col-label {
  width: 120px;
}

.ps-col-month {
  width: 10%;
}

.periodos-servicio {
  font-family: 'Roboto Condensed', sans-serif;
}

.pilot-chip {
  position: relative;
  min-width: 95px;
  max-width: 95px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: left;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  padding: 0 5px 0 20px;
  margin-right: 5px;
  margin-bottom: 2px;
  background: #fff;
  border: 1px solid #b6d6ee;
  box-shadow: 0 1px 2px #0001;
  color: #036;
}

.pilot-chip span {
  position: relative;
  z-index: 1;
  margin-left: 4px;
}

.pilot-chip svg {
  position: absolute;
  left: 0;
  top: 0;
}

.btn-icon-filter {
  --icon-color: #036;
  color: var(--icon-color);
  border-color: var(--icon-color);
  border-width: 1.5px;
}

.btn-icon-filter:hover,
.btn-icon-filter.active {
  background: var(--icon-color);
  color: #fff;
}

.icon-lg {
  font-size: 17px;
}

.work-type-icon {
  color: var(--work-color, #999);
  width: 18px;
  display: inline-block;
  text-align: center;
}

.work-type-icon-lg {
  width: 20px;
  font-size: 16px;
}

.tf-icon-btn {
  --tf-color: #036;
  color: var(--tf-color) !important;
  border-color: var(--tf-color) !important;
  border-width: 2px !important;
  min-width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 5px;
  font-size: 0.75rem;
  border-radius: 6px;
  background: #fff !important;
  transition: all .2s;
}

.tf-icon-btn:hover,
.tf-icon-btn.active {
  background: var(--tf-color) !important;
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
  transform: translateY(-1px);
}

.tf-icon-btn .fa {
  font-size: 0.85rem;
}

.tf-th-tipo {
  width: 80px;
}

.tf-th-cot {
  width: 140px;
}

.tf-th-cliente {
  width: 120px;
}

.tf-th-acopio {
  width: 140px;
}

.tf-th-heli {
  width: 100px;
}

.tf-th-monto {
  width: 100px;
}

.tf-th-acciones {
  width: 100px;
}

.icon-tipo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--icon-color, #444);
}

.icon-tipo .badge-version {
  margin-left: 6px;
}

.icon-tipo span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.futuro-incendio-particular {
  --tf-color: #ff9800;
  --icon-color: #ff9800;
}

.futuro-secado-de-frutales {
  --tf-color: #00bcd4;
  --icon-color: #00bcd4;
}

.futuro-control-de-heladas {
  --tf-color: #2196f3;
  --icon-color: #2196f3;
}

.futuro-fumigacion {
  --tf-color: #8bc34a;
  --icon-color: #8bc34a;
}

.futuro-transporte-de-pasajeros {
  --tf-color: #f7cb4d;
  --icon-color: #f7cb4d;
}

.futuro-incendio-sernapred {
  --tf-color: #f44336;
  --icon-color: #f44336;
}

.futuro-carga-colgante {
  --tf-color: #7baaf7;
  --icon-color: #7baaf7;
}

.futuro-otros {
  --tf-color: #9e9e9e;
  --icon-color: #9e9e9e;
}

.tf-header-fumi {
  background: linear-gradient(135deg, #1e824c, #27ae60);
  border-bottom: 2px solid #1a6b3f;
}

.tf-header-heladas {
  background: linear-gradient(135deg, #2196f3, #1976d2);
  border-bottom: 2px solid #1565c0;
}

.tf-header-carga {
  background: linear-gradient(135deg, var(--color-trabajo, #0d6efd), var(--color-trabajo-dark, #0b5ed7));
  border-bottom: 2px solid var(--color-trabajo-darker, #0a4ea8);
}

.tf-badge-cot {
  font-size: 11px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 4px 8px;
  background-color: rgba(255, 255, 255, 0.9) !important;
}

.loc-colored {
  border-left: 4px solid var(--loc-color, #e5e7eb);
}

.bg-disabled {
  background-color: #f0f0f0 !important;
}

.kml-file-item {
  border-left: 4px solid var(--kml-color, #0d6efd);
}

.kml-file-item-name {
  color: var(--kml-color, #0d6efd);
}

.kml-empty {
  text-align: center;
  color: #9ca3af;
  padding: 8px 4px;
  font-size: 10px;
  min-width: 120px;
}

.marker-shadow {
  text-shadow: 2px 2px 4px #000, -2px -2px 4px #000;
}

.map-popup {
  font-size: 0.8rem;
  line-height: 1.3;
}

.map-popup-alt {
  color: #555;
}

.dist-label-box {
  background: #fff;
  border: 1px solid #555;
  padding: 0 2px;
  border-radius: 6px;
  color: #000;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  white-space: nowrap;
}

.marker-base-icon {
  color: #d90429;
  font-size: 24px;
}

.marker-acopio-icon {
  color: #f39c12;
  font-size: 24px;
}

.marker-trabajo-icon {
  color: #2980b9;
  font-size: 24px;
}

.marker-waypoint-icon {
  color: #ffcc00;
  font-size: 21px;
}

.kml-modal-input {
  margin-top: 10px;
}

.kml-btn-full {
  width: 100%;
  margin-top: 2px;
}

.badge-compact {
  font-size: 11px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 4px 8px;
}

.badge-xs {
  font-size: 10px;
}

.max-w-25ch {
  max-width: 25ch;
}

.badge-glass-light {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.text-color-a {
  color: var(--color-a, inherit);
}

.text-color-b {
  color: var(--color-b, inherit);
}

.btn-var-primary {
  background-color: var(--btn-color, #0d6efd);
  border-color: var(--btn-color, #0d6efd);
}

.loc-base-red {
  --loc-color: #d90429;
}

.loc-trabajo-blue {
  --loc-color: #2196f3;
}

.kml-color-primary {
  --kml-color: #2196f3;
}

.kml-color-default {
  --kml-color: #0d6efd;
}

.veh-container {
  margin-top: 10;
}

.veh-header-tight {
  margin-top: 0;
  margin-bottom: 0;
}

.form-12 {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 12px;
}

.form-12 .form-label {
  font-size: 12px;
  margin-bottom: 2px;
}

.form-12 .form-control,
.form-12 .form-select,
.form-12 textarea {
  font-size: 12px;
  padding: 2px 6px;
}

.form-12 .form-check-label {
  font-size: 12px;
}

.form-12 .form-check-input {
  transform: scale(1.05);
  cursor: pointer;
}

.calendar-month {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.62rem;
}

.calendar-month thead th {
  text-align: center;
  font-size: 14px;
  padding: 4px 2px;
  border-bottom: 1px solid #dfe6ee;
}

.calendar-month thead th:not(:last-child) {
  border-right: 1px solid #dfe6ee;
}

.calendar-month td.day {
  min-height: 72px;
  padding: 2px !important;
  border-radius: 8px;
  vertical-align: top;
  border: 1.5px solid #e3eaf2;
  background: #f8fafc;
}

.calendar-month td.empty {
  min-height: 72px;
  padding: 3px !important;
  border-radius: 8px;
  vertical-align: top;
  border: 1.5px solid #e3eaf2;
  background: #f9f9f9;
}

.calendar-month .date {
  display: block;
  text-align: center;
  background: #e6f2fa;
  color: #036;
  padding: 0.5px 0;
  margin: 0 -1px 0.5px -1px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 1px;
  border-bottom: 1px solid #b6d6ee;
}

.calendar-month .pilot-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0.25px;
}

.calendar-month .pilot-row .meta {
  font-size: 10px;
  font-weight: bold;
  color: #065;
  text-align: center;
  line-height: 1;
  margin-top: 0.25px;
  width: 100%;
}

.meta-right {
  text-align: right;
  width: 100%;
  display: block;
  padding-right: 4px;
}

.ps-resumen-btn {
  background: #e6f2fa;
  color: #036;
  border: 1.5px solid #b6d6ee;
  font-weight: 600;
}

/* Listados compactos reutilizados (bases, proveedores, módulo económico) */
.compact-ui {
  font-family: 'Roboto Condensed', sans-serif !important;
  font-size: 11px !important;
}

.compact-ui .table th,
.compact-ui .table td {
  padding: 3px 5px !important;
  vertical-align: middle !important;
}

.compact-ui .btn-compact {
  padding: 1px 4px !important;
  font-size: 9px !important;
  line-height: 1 !important;
}

.compact-ui .sortable::after {
  content: ' ⇅';
  font-size: 0.7em;
  color: #bbb;
}

.compact-ui .sortable.table-active::after {
  content: ' ⇵';
  color: #fff;
}

.compact-ui #paginador button {
  margin: 0 1px;
  padding: 1px 6px !important;
  font-size: 10px;
}

.compact-ui td i.fa-solid {
  cursor: default;
  font-size: 13px;
}

.compact-ui td i.fa-solid:hover {
  opacity: 0.85;
  transform: scale(1.1);
  transition: all 0.15s ease;
}

/* Usuarios (listado + formularios) */
.usuarios-container {
  font-size: 0.83rem;
  padding-top: 0;
}

.usuarios-container .table {
  font-size: 0.83rem;
}

.usuarios-container .table th {
  font-size: 0.81rem;
  font-weight: 600;
  padding: 0.6rem 0.7rem;
}

.usuarios-container .table td {
  padding: 0.55rem 0.7rem;
}

.usuarios-container .badge {
  font-size: 0.68rem !important;
  padding: 0.22rem 0.48rem;
}

.usuarios-container .btn-sm {
  font-size: 0.7rem !important;
  padding: 0.2rem 0.4rem;
}

.usuarios-crear-container,
.usuarios-editar-container {
  font-size: 0.81rem;
}

.compact-form {
  font-size: 0.73rem;
}

.compact-form .form-label {
  font-size: 0.68rem;
  margin-bottom: 1px;
}

.compact-form .form-control,
.compact-form .form-select {
  font-size: 0.70rem;
  padding: 2px 4px;
  height: 25px;
  line-height: 1;
}

.compact-form .form-control-color {
  width: 32px;
  height: 25px;
  padding: 0;
}

.compact-form .row.g-3 {
  row-gap: 0.2rem;
  column-gap: 0.2rem;
}

.compact-form .card {
  padding: 0.9rem !important;
}

.compact-form h6 {
  font-size: 0.76rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 0.4rem;
  margin-top: 0.4rem;
}

.compact-form .btn-sm {
  font-size: 0.70rem;
  padding: 2px 6px;
}

.compact-form .form-check-label {
  font-size: 0.68rem;
}

.compact-form table {
  margin-top: 0.4rem;
}

.compact-form table td,
.compact-form table th {
  padding: 0.24rem 0.33rem;
  font-size: 0.68rem;
}

.color-picker-panel {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 8px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
  max-width: 320px;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

.color-swatch.selected {
  box-shadow: 0 0 0 3px rgba(31,91,216,0.15), 0 0 0 1px #1f5bd8 inset;
  transform: translateY(-1px);
}

.color-preview-box {
  width: 44px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.current-color-box {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.14);
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
  display: inline-block;
}
/* Integrar cuadro dentro del botón de paleta */
.btn#togglePalette { display:inline-flex; align-items:center; gap:8px; padding-left:8px; }
.btn#togglePalette .current-color-box { margin-left:6px; border:2px solid rgba(255,255,255,0.9); min-width:18px; min-height:18px; }

.opacity-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
}

.opacity-row input[type=range] {
  flex: 1;
}

.quick-swatches {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.quick-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.color-input-row {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
}

.color-input-row input {
  width: 90px;
  height: 26px;
}

.color-picker-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.color-picker-panel.absolute {
  position: absolute;
  top: 40px;
  left: 0;
  z-index: 20;
}

/* .permisos-grid: 3 columnas desktop, 1 móvil (FORZADO con alta especificidad) */
.usuarios-editar-container .permisos-grid,
.permisos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 0.8rem;
  margin-top: 0.4rem;
}

/* Botón blanco outline redondeado (pill) para headers oscuros */
.btn-outline-white {
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  color: #fff !important;
  background: transparent !important;
  border-radius: 50px !important;
  /* Pill shape */
  padding: 0.3rem 1rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: #fff !important;
  color: #fff !important;
}

@media (max-width: 768px) {

  .usuarios-editar-container .permisos-grid,
  .permisos-grid {
    grid-template-columns: 1fr !important;
  }
}

.permisos-module-card {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 0;
  background: #fff;
  overflow: hidden;
}

.permisos-module-card .module-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: #1f5bd8;
  margin: 0;
  padding: 0.4rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.permisos-module-card .module-name i {
  font-size: 0.75rem;
}

.permisos-module-card .permisos-content {
  padding: 0.4rem 0.5rem;
  background: #f8f9fa;
}

.permisos-module-card .permisos-checkboxes {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.permisos-module-card .permisos-checkboxes label {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.69rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 0;
}

.permisos-module-card .permisos-checkboxes input[type="checkbox"] {
  width: 14px;
  height: 14px;
}

/* Helicópteros */
.heli-container,
.heli-page,
.heli-ficha {
  font-size: 0.9rem;
  padding-top: 0;
  margin-top: 0 !important;
}

.heli-header-tight {
  margin-top: 0;
  margin-bottom: 0;
}

.heli-container .header-bar,
.heli-page .header-bar {
  margin-top: 0 !important;
}

.heli-card,
.ficha-card {
  border-radius: 4px;
  border: 1px solid #000 !important;
}

.heli-page .card {
  border: 1px solid #000 !important;
}

.heli-card .card-body,
.ficha-card .card-body {
  padding: 0.85rem;
}

.heli-card .card-title,
.veh-card .card-title {
  font-size: 1rem;
}

.ficha-label {
  font-weight: 600;
  color: #444;
  font-size: 0.82rem;
}

.grid-datos .item {
  border-bottom: 1px dashed #e1e1e1;
  padding: 5px 0;
}

.grid-datos .item:last-child {
  border-bottom: none;
}

.doc-card {
  border-radius: 10px;
  padding: 0.75rem;
}

.doc-card h6 {
  font-size: 0.9rem;
}

.heli-page .form-control-sm,
.heli-page .form-select-sm {
  font-size: 12px !important;
  padding: 3px 6px !important;
  height: 26px !important;
}

.heli-page .form-label {
  font-size: 11px !important;
  font-weight: 600 !important;
  margin-bottom: 2px !important;
  color: #333;
}

.heli-page .btn-sm {
  font-size: 11px !important;
  padding: 4px 10px !important;
}

.heli-page .card {
  max-width: 780px;
  margin: 0 auto;
}

.heli-page .card-body {
  padding: 15px !important;
}

.heli-page h4 {
  font-size: 15px !important;
  font-weight: 700 !important;
  margin-bottom: 10px !important;
}

.heli-page h6 {
  font-size: 12px !important;
  font-weight: 600 !important;
  margin-bottom: 6px !important;
}

.heli-page .bg-light {
  background-color: #f8f9fa !important;
  padding: 8px !important;
  border-radius: 4px;
  margin-bottom: 8px;
}

.heli-page textarea.form-control {
  font-size: 12px !important;
  padding: 4px 6px !important;
}

.heli-page .img-fluid {
  max-height: 120px !important;
}

.heli-page .row.g-3 {
  --bs-gutter-y: 6px;
  --bs-gutter-x: 8px;
}

.heli-page .mb-3 {
  margin-bottom: 8px !important;
}

.heli-page .pt-2 {
  padding-top: 8px !important;
}

.heli-page .doc-card textarea {
  min-height: 55px;
}

.heli-page .btn-xs {
  font-size: 10px !important;
  padding: 2px 8px !important;
}

.heli-page .badge-doc {
  font-size: 10px;
}

/* Vehículos */
.veh-container,
.veh-page,
.veh-ficha {
  font-size: 0.9rem;
  padding-top: 0;
  margin-top: 0 !important;
}

.veh-container .header-bar,
.veh-page .header-bar {
  margin-top: 0 !important;
}

.veh-card {
  border-radius: 4px;
  border: 1px solid #000 !important;
}

.veh-ficha .card,
.veh-page .card {
  border: 1px solid #000 !important;
}

.veh-card .card-body {
  padding: 0.85rem;
}

.veh-label {
  font-weight: 600;
  color: #444;
  font-size: 0.82rem;
}

.veh-page .card-shell {
  max-width: 780px;
  margin: 0 auto;
}

.veh-page .compact-block {
  background: #f6f7fb;
  border-radius: 14px;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
}

.veh-page .section-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #4d5e91;
  margin-bottom: 0.45rem;
}

.veh-page .row.g-tight {
  --bs-gutter-x: 12px;
  --bs-gutter-y: 12px;
}

.veh-page .form-label {
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.veh-page .form-control,
.veh-page .form-select {
  font-size: 0.85rem;
  padding: 0.35rem 0.55rem;
}

.veh-page .sub-panel {
  border: 1px solid #e1e5f2;
  border-radius: 4px;
  padding: 0.85rem;
  background: #fff;
  min-height: 120px;
}

.veh-page .thumb-img {
  height: 95px;
  object-fit: cover;
  border-radius: 10px;
}

.veh-page .btn-guardar {
  font-size: 0.85rem;
  padding: 0.4rem 1.4rem;
  border-radius: 9px;
}

.veh-ficha .doc-chip {
  font-size: 0.78rem;
}