@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Raleway:wght@400;600;700&display=swap');

:root {
  --bg-deep:        #050d1a;
  --bg-surface:     #0a1628;
  --bg-card:        #0d1f3c;
  --bg-card-hover:  #112347;

  --turquoise:      #00e5cc;
  --turquoise-dim:  #00b8a4;
  --celeste:        #a8d8f0;
  --celeste-dim:    #7bbedd;
  --celeste-glow:   rgba(168, 216, 240, 0.18);

  --text-primary:   #e8f4fd;
  --text-secondary: #8dafc8;
  --text-muted:     #4a6580;

  --border:         rgba(0, 229, 204, 0.25);
  --border-strong:  rgba(0, 229, 204, 0.6);

  --glow-turquoise: 0 0 12px rgba(0, 229, 204, 0.4);
  --glow-celeste:   0 0 18px rgba(168, 216, 240, 0.3);
  --shadow-card:    0 4px 24px rgba(0, 0, 0, 0.5);
}

/* â”€â”€ Base â”€â”€ */
html {
  font-size: 15px;
  position: relative;
  min-height: 100%;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  html { font-size: 16px; }
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: 'Inter', 'Raleway', system-ui, sans-serif;
  background-image:
    radial-gradient(ellipse 80% 40% at 50% -10%, rgba(0,229,204,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 60% 30% at 90% 100%, rgba(168,216,240,0.05) 0%, transparent 60%);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* â”€â”€ Contenedor Principal Responsive â”€â”€ */
.main-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  flex: 1;
}

.content-wrapper {
  width: 100%;
}

@media (max-width: 1200px) {
  .main-container {
    max-width: 100%;
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .main-container {
    padding: 1rem;
  }
}

@media (max-width: 576px) {
  .main-container {
    padding: 0.75rem;
  }
}

/* â”€â”€ Navbar â”€â”€ */
.navbar-dark-custom {
  background: rgba(5, 13, 26, 0.95) !important;
  border-bottom: 1px solid var(--border) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,229,204,0.08);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar-dark-custom .container-fluid {
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .navbar-dark-custom .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.navbar-brand-custom {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  color: var(--turquoise) !important;
  text-shadow: var(--glow-turquoise);
  transition: text-shadow 0.3s;
}

.navbar-brand-custom:hover {
  text-shadow: 0 0 20px rgba(0,229,204,0.8);
}

.nav-link-custom {
  color: var(--text-secondary) !important;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.25s, text-shadow 0.25s;
  padding: 0.4rem 0.9rem !important;
  border-radius: 6px;
}

.nav-link-custom:hover,
.nav-link-custom.active {
  color: var(--celeste) !important;
  text-shadow: 0 0 8px rgba(168,216,240,0.5);
  background: rgba(168,216,240,0.06);
}

/* â”€â”€ Cards â”€â”€ */
.card, .card-dark {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover, .card-dark:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card), var(--glow-celeste);
  border-color: var(--border-strong);
}

/* â”€â”€ Stat cards â”€â”€ */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--turquoise), var(--celeste));
  opacity: 0.7;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), 0 0 20px rgba(0,229,204,0.15);
  border-color: var(--turquoise-dim);
}

.stat-card .stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--turquoise);
  text-shadow: var(--glow-turquoise);
  line-height: 1;
}

.stat-card .stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.3rem;
}

.stat-card .stat-icon {
  font-size: 1.6rem;
  color: var(--celeste);
  opacity: 0.8;
  transition: opacity 0.25s, filter 0.25s;
}

.stat-card:hover .stat-icon {
  opacity: 1;
  filter: drop-shadow(0 0 6px var(--celeste));
}

/* Responsive Stat Cards */
@media (max-width: 768px) {
  .stat-card {
    padding: 1.2rem 1.4rem;
  }

  .stat-card .stat-number {
    font-size: 1.75rem;
  }

  .stat-card .stat-label {
    font-size: 0.72rem;
  }

  .stat-card .stat-icon {
    font-size: 1.4rem;
  }
}

@media (max-width: 576px) {
  .stat-card {
    padding: 1rem 1.2rem;
  }

  .stat-card .stat-number {
    font-size: 1.5rem;
  }

  .stat-card .stat-label {
    font-size: 0.68rem;
  }

  .stat-card .stat-icon {
    font-size: 1.2rem;
  }
}

/* â”€â”€ Section titles â”€â”€ */
.section-title {
  font-family: 'Raleway', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  margin-top: 1rem;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
  margin-left: 0.5rem;
}

.section-title .title-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--turquoise);
  box-shadow: var(--glow-turquoise);
  flex-shrink: 0;
}

/* â”€â”€ Header con BotÃ³n de AcciÃ³n (Responsive) â”€â”€ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  margin-top: 1rem;
  gap: 1rem;
}

@media (max-width: 768px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .section-header .btn-rrhh-primary,
  .section-header .btn-rrhh {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1rem;
  }
}

/* â”€â”€ Tables â”€â”€ */
.table-dark-custom {
  --bs-table-bg: transparent;
  --bs-table-border-color: var(--border);
  color: var(--text-primary);
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  margin-bottom: 0;
}

.table-dark-custom thead th {
  background: rgba(0, 229, 204, 0.08);
  color: var(--turquoise);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-strong);
  border-top: none;
  white-space: nowrap;
}

.table-dark-custom tbody tr {
  transition: background 0.2s, box-shadow 0.2s;
  border-bottom: 1px solid var(--border);
}

.table-dark-custom tbody tr:hover {
  background: rgba(168, 216, 240, 0.05);
  box-shadow: inset 3px 0 0 var(--turquoise);
}

.table-dark-custom tbody td {
  padding: 0.8rem 1rem;
  vertical-align: middle;
  color: var(--text-primary);
  font-size: 0.92rem;
  border-top: none;
  border-bottom: 1px solid rgba(0,229,204,0.08);
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
  min-width: 80px;
}

.table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 3rem;
  width: 100%;
  max-width: 100%;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

/* Desktop: Sin scroll horizontal */
@media (min-width: 1024px) {
  .table-responsive {
    overflow-x: visible;
  }
}

/* Responsive Tables */
@media (max-width: 768px) {
  .table-dark-custom thead th {
    font-size: 0.65rem;
    padding: 0.65rem 0.75rem;
  }

  .table-dark-custom tbody td {
    font-size: 0.85rem;
    padding: 0.65rem 0.75rem;
  }

  .table-wrapper {
    margin-bottom: 2rem;
  }
}

@media (max-width: 576px) {
  .table-dark-custom thead th {
    font-size: 0.6rem;
    padding: 0.5rem 0.6rem;
  }

  .table-dark-custom tbody td {
    font-size: 0.8rem;
    padding: 0.5rem 0.6rem;
  }
}

/* â”€â”€ Buttons â”€â”€ */
.btn:focus, .btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 2px rgba(0,229,204,0.35);
  outline: none;
}

.btn-rrhh {
  background: var(--bg-deep);
  color: var(--turquoise);
  border: 1px solid var(--turquoise-dim);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  padding: 0.42rem 1rem;
  box-shadow: 0 0 8px rgba(0,229,204,0.15);
  transition: background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.2s;
  white-space: nowrap;
}

.btn-rrhh:hover, .btn-rrhh:focus {
  background: var(--celeste);
  color: var(--bg-deep);
  border-color: var(--turquoise);
  box-shadow: 0 0 16px rgba(168,216,240,0.5), 0 0 6px rgba(0,229,204,0.3);
  transform: translateY(-1px);
}

.btn-rrhh-danger {
  background: var(--bg-deep);
  color: #f07070;
  border: 1px solid rgba(240,112,112,0.4);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  padding: 0.42rem 1rem;
  box-shadow: 0 0 8px rgba(240,112,112,0.1);
  transition: background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.2s;
  white-space: nowrap;
}

.btn-rrhh-danger:hover, .btn-rrhh-danger:focus {
  background: #f07070;
  color: var(--bg-deep);
  border-color: #f07070;
  box-shadow: 0 0 16px rgba(240,112,112,0.4);
  transform: translateY(-1px);
}

.btn-rrhh-primary {
  background: linear-gradient(135deg, rgba(0,229,204,0.15), rgba(168,216,240,0.1));
  color: var(--turquoise);
  border: 1px solid var(--turquoise);
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  padding: 0.55rem 1.4rem;
  box-shadow: 0 0 12px rgba(0,229,204,0.2);
  transition: background 0.25s, color 0.25s, box-shadow 0.3s, transform 0.2s;
}

.btn-rrhh-primary:hover, .btn-rrhh-primary:focus {
  background: var(--turquoise);
  color: var(--bg-deep);
  box-shadow: 0 0 24px rgba(0,229,204,0.5);
  transform: translateY(-2px);
}

/* â”€â”€ Forms â”€â”€ */
.form-control-dark, .form-select-dark {
  background: rgba(5,13,26,0.8);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.92rem;
  padding: 0.55rem 0.9rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.form-control-dark:focus, .form-select-dark:focus {
  background: rgba(10,22,40,0.95);
  border-color: var(--turquoise);
  box-shadow: 0 0 0 3px rgba(0,229,204,0.15);
  color: var(--text-primary);
  outline: none;
}

.form-control-dark::placeholder { color: var(--text-muted); }

.form-label-dark {
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.form-select-dark option {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* â”€â”€ Footer â”€â”€ */
.footer-dark {
  background: rgba(5,13,26,0.95);
  border-top: 1px solid var(--border) !important;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 0.8rem 0;
  margin-top: auto;
}

.footer-dark .container-fluid {
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .footer-dark {
    font-size: 0.75rem;
  }

  .footer-dark .container-fluid {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

/* â”€â”€ Badge â”€â”€ */
.badge-dept {
  background: rgba(0,229,204,0.12);
  color: var(--turquoise);
  border: 1px solid rgba(0,229,204,0.3);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  letter-spacing: 0.04em;
}

/* â”€â”€ Scrollbar â”€â”€ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--turquoise-dim); }

/* â”€â”€ Alert â”€â”€ */
.alert-dark-danger {
  background: rgba(240,112,112,0.1);
  border: 1px solid rgba(240,112,112,0.35);
  color: #f09090;
  border-radius: 10px;
}

/* â”€â”€ Animations â”€â”€ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeInUp 0.4s ease both; }
.fade-in-delay-1 { animation: fadeInUp 0.4s ease 0.05s both; }
.fade-in-delay-2 { animation: fadeInUp 0.4s ease 0.1s both; }
.fade-in-delay-3 { animation: fadeInUp 0.4s ease 0.15s both; }

/* â”€â”€ Misc â”€â”€ */
.divider-glow {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  margin: 2rem 0;
}

.text-turquoise { color: var(--turquoise); }
.text-celeste   { color: var(--celeste); }
.text-muted-dark { color: var(--text-muted); }

/* â”€â”€ Legacy compat â”€â”€ */
.thead-custom th {
  background: rgba(0,229,204,0.08);
  color: var(--turquoise);
  border-color: var(--color-primary-dark);
}

/* Botones - transiciÃ³n global */
.btn {
  transition: all 0.2s ease;
}

.btn:hover {
  transform: scale(1.03);
}

/* btn-primary (Nuevo) */
.btn-primary {
  background-color: var(--color-secondary) !important;
  border-color: var(--color-secondary) !important;
  color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--color-secondary-dark) !important;
  border-color: var(--color-secondary-dark) !important;
  color: #fff !important;
}

/* btn-secondary */
.btn-secondary {
  background-color: var(--color-accent) !important;
  border-color: var(--color-accent) !important;
  color: var(--color-text) !important;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: var(--color-accent-dark) !important;
  border-color: var(--color-accent-dark) !important;
  color: var(--color-text) !important;
}

/* btn-edit (reemplaza btn-warning) */
.btn-edit {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-text);
}

.btn-edit:hover,
.btn-edit:focus {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-text);
}

/* btn-delete (reemplaza btn-danger) */
.btn-delete {
  background-color: #C96F5D;
  border-color: #C96F5D;
  color: #fff;
}

.btn-delete:hover,
.btn-delete:focus {
  background-color: #A95748;
  border-color: #A95748;
  color: #fff;
}

/* Textos secundarios */
.text-muted {
  color: var(--color-text-light) !important;
}

/* Footer */
.footer {
  background-color: var(--color-card);
  color: var(--color-text-light);
}
/* --------------------------------------------------------------
   RESPONSIVE DESIGN - OPTIMIZACIONES COMPLETAS
   -------------------------------------------------------------- */

/* -- Breakpoint: Laptops (1200px) -- */
@media (max-width: 1200px) {
  .main-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  .stat-card .stat-number {
    font-size: 1.85rem;
  }
}

/* -- Breakpoint: Tablets (768px) -- */
@media (max-width: 768px) {
  /* Grid KPI Cards: 2 columnas */
  .row.g-3 > [class*='col-md-3'] {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  /* Títulos más compactos */
  h1, h2 {
    font-size: 1.3rem !important;
  }
  
  /* Botones de acción en columna */
  .d-flex.justify-content-between {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 1rem;
  }
  
  .btn-rrhh-primary,
  .btn-rrhh {
    width: 100%;
    text-align: center;
  }
  
  /* Separación de secciones */
  .divider-glow {
    margin: 1.5rem 0;
  }
  
  /* Cards con menos padding */
  .card, .card-dark, .table-wrapper {
    padding: 1rem;
  }
}

/* -- Breakpoint: Móviles (576px) -- */
@media (max-width: 576px) {
  /* Grid KPI Cards: 1 columna */
  .row.g-3 > [class*='col'] {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  /* Tipografía reducida */
  html {
    font-size: 14px;
  }
  
  h1, h2 {
    font-size: 1.2rem !important;
  }
  
  /* Navbar colapsada por defecto */
  .navbar-brand-custom {
    font-size: 1.1rem;
  }
  
  /* Formularios full width */
  .form-control-dark,
  .form-select-dark {
    font-size: 0.88rem;
  }
  
  /* Botones más grandes para touch */
  .btn-rrhh,
  .btn-rrhh-primary,
  .btn-rrhh-danger {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
  
  /* Tablas: forzar scroll horizontal */
  .table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .table-dark-custom {
    min-width: 600px;
  }
}

/* -- Prevención de Scroll Horizontal -- */
* {
  max-width: 100%;
}

img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

.container,
.container-fluid,
.row {
  max-width: 100%;
  overflow-x: hidden;
}

/* -- Ajustes de Espaciado Vertical -- */
.mb-4 { margin-bottom: 2rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mt-3 { margin-top: 1rem !important; }

@media (max-width: 768px) {
  .mb-4 { margin-bottom: 1.5rem !important; }
  .mb-5 { margin-bottom: 2rem !important; }
}

@media (max-width: 576px) {
  .mb-4 { margin-bottom: 1.25rem !important; }
  .mb-5 { margin-bottom: 1.75rem !important; }
}

/* -- Optimización de Formularios Responsive -- */
@media (max-width: 768px) {
  .row.g-3 {
    gap: 0.75rem !important;
  }
  
  [class*='col-md'] {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* Desktop: Sin scroll horizontal */
@media (min-width: 1024px) {
  .table-responsive {
    overflow-x: visible;
  }
}

/* Anchos específicos de columnas para tabla Empleados */
.table-dark-custom th:nth-child(1),
.table-dark-custom td:nth-child(1) { width: 90px; }
.table-dark-custom th:nth-child(2),
.table-dark-custom td:nth-child(2) { width: 110px; white-space: nowrap; }
.table-dark-custom th:nth-child(3),
.table-dark-custom td:nth-child(3) { width: 110px; white-space: nowrap; }
.table-dark-custom th:nth-child(4),
.table-dark-custom td:nth-child(4) { width: 60px; text-align: center; }
.table-dark-custom th:nth-child(5),
.table-dark-custom td:nth-child(5) { width: 95px; }
.table-dark-custom th:nth-child(6),
.table-dark-custom td:nth-child(6) { max-width: 220px; white-space: normal; word-break: break-word; }
.table-dark-custom th:nth-child(7),
.table-dark-custom td:nth-child(7) { width: 110px; }
.table-dark-custom th:nth-child(8),
.table-dark-custom td:nth-child(8) { width: 130px; }
.table-dark-custom th:nth-child(9),
.table-dark-custom td:nth-child(9) { width: 110px; }
.table-dark-custom th:nth-child(10),
.table-dark-custom td:nth-child(10) { width: 70px; text-align: center; }
.table-dark-custom th:nth-child(11),
.table-dark-custom td:nth-child(11) { width: 170px; text-align: center; }


/* Botones de acción inline (Editar y Eliminar en una línea) */
.table-dark-custom .action-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: nowrap;
}

.table-dark-custom .action-buttons .btn {
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  white-space: nowrap;
}

/* Estilos específicos para evitar word-break vertical en correos y teléfonos */
.table-dark-custom tbody td {
  white-space: nowrap;
}

/* Permitir wrap solo en descripciones y campos largos */
.table-dark-custom tbody td[style*="white-space:normal"],
.table-dark-custom tbody td.allow-wrap {
  white-space: normal !important;
  word-break: break-word;
}

/* Anchos específicos para tabla Departamentos (6 columnas) */
.table-dark-custom.table-departamentos th:nth-child(1),
.table-dark-custom.table-departamentos td:nth-child(1) { width: 50px; text-align: center; }
.table-dark-custom.table-departamentos th:nth-child(2),
.table-dark-custom.table-departamentos td:nth-child(2) { width: 160px; font-weight: 600; }
.table-dark-custom.table-departamentos th:nth-child(3),
.table-dark-custom.table-departamentos td:nth-child(3) { 
  min-width: 400px; 
  max-width: 600px; 
  white-space: normal; 
  word-break: break-word;
  line-height: 1.5;
  padding: 1rem 1.2rem;
}
.table-dark-custom.table-departamentos th:nth-child(4),
.table-dark-custom.table-departamentos td:nth-child(4) { width: 110px; }
.table-dark-custom.table-departamentos th:nth-child(5),
.table-dark-custom.table-departamentos td:nth-child(5) { width: 100px; text-align: center; }
.table-dark-custom.table-departamentos th:nth-child(6),
.table-dark-custom.table-departamentos td:nth-child(6) { width: 170px; text-align: center; }



/* -- Alertas TempData (Dark Premium) -- */
.alert {
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid;
  font-size: 0.92rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Success Alert */
.alert-success-custom {
  background: linear-gradient(135deg, rgba(0, 229, 204, 0.15), rgba(0, 229, 204, 0.08));
  border-color: rgba(0, 229, 204, 0.4);
  color: var(--turquoise);
}

.alert-success-custom i {
  color: var(--turquoise);
  font-size: 1.1rem;
}

.alert-success-custom strong {
  color: var(--turquoise);
  font-weight: 600;
}

/* Error Alert */
.alert-danger-custom {
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.15), rgba(220, 53, 69, 0.08));
  border-color: rgba(220, 53, 69, 0.4);
  color: #ff6b81;
}

.alert-danger-custom i {
  color: #ff6b81;
  font-size: 1.1rem;
}

.alert-danger-custom strong {
  color: #ff6b81;
  font-weight: 600;
}

/* Warning Alert */
.alert-warning-custom {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 193, 7, 0.08));
  border-color: rgba(255, 193, 7, 0.4);
  color: #ffc107;
}

.alert-warning-custom i {
  color: #ffc107;
  font-size: 1.1rem;
}

.alert-warning-custom strong {
  color: #ffc107;
  font-weight: 600;
}

/* Info Alert */
.alert-info-custom {
  background: linear-gradient(135deg, rgba(168, 216, 240, 0.15), rgba(168, 216, 240, 0.08));
  border-color: rgba(168, 216, 240, 0.4);
  color: var(--celeste);
}

.alert-info-custom i {
  color: var(--celeste);
  font-size: 1.1rem;
}

.alert-info-custom strong {
  color: var(--celeste);
  font-weight: 600;
}

/* Close button */
.btn-close-white {
  filter: brightness(0) invert(1);
  opacity: 0.6;
}

.btn-close-white:hover {
  opacity: 1;
}

/* Auto-dismiss animation */
.alert.fade-out {
  animation: fadeOut 0.5s ease-out forwards;
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

