/* Articulat CF - Bold */
@font-face {
  font-family: "Articulat CF Bold";
  src:
    url("../fonts/ArticulatCF-Bold.otf") format("opentype"),
    url("../fonts/ArticulatCF-Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}

/* Articulat CF - Bold Oblique */
@font-face {
  font-family: "Articulat CF Bold";
  src:
    url("../fonts/ArticulatCF-BoldOblique.otf") format("opentype"),
    url("../fonts/ArticulatCF-BoldOblique.ttf") format("truetype");
  font-weight: bold;
  font-style: oblique;
}

/* Articulat CF - DemiBold */
@font-face {
  font-family: "Articulat CF DemiBold";
  src:
    url("../fonts/ArticulatCF-DemiBold.otf") format("opentype"),
    url("../fonts/ArticulatCF-DemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

/* Articulat CF - DemiBold Oblique */
@font-face {
  font-family: "Articulat CF DemiBold";
  src:
    url("../fonts/ArticulatCF-DemiBoldOblique.otf") format("opentype"),
    url("../fonts/ArticulatCF-DemiBoldOblique.ttf") format("truetype");
  font-weight: 600;
  font-style: oblique;
}

/* Articulat CF - ExtraBold */
@font-face {
  font-family: "Articulat CF ExtraBold";
  src:
    url("../fonts/ArticulatCF-ExtraBold.otf") format("opentype"),
    url("../fonts/ArticulatCF-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
}

/* Articulat CF - ExtraBold Oblique */
@font-face {
  font-family: "Articulat CF ExtraBold";
  src:
    url("../fonts/ArticulatCF-ExtraBoldOblique.otf") format("opentype"),
    url("../fonts/ArticulatCF-ExtraBoldOblique.ttf") format("truetype");
  font-weight: 800;
  font-style: oblique;
}

/* Articulat CF - ExtraLight */
@font-face {
  font-family: "Articulat CF ExtraLight";
  src:
    url("../fonts/ArticulatCF-ExtraLight.otf") format("opentype"),
    url("../fonts/ArticulatCF-ExtraLight.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
}

/* Articulat CF - Heavy */
@font-face {
  font-family: "Articulat CF Heavy";
  src:
    url("../fonts/ArticulatCF-Heavy.otf") format("opentype"),
    url("../fonts/ArticulatCF-Heavy.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
}

/* Articulat CF - Heavy Oblique */
@font-face {
  font-family: "Articulat CF Heavy";
  src:
    url("../fonts/ArticulatCF-HeavyOblique.otf") format("opentype"),
    url("../fonts/ArticulatCF-HeavyOblique.ttf") format("truetype");
  font-weight: 900;
  font-style: oblique;
}

/* Articulat CF - Light */
@font-face {
  font-family: "Articulat CF Light";
  src:
    url("../fonts/ArticulatCF-Light.otf") format("opentype"),
    url("../fonts/ArticulatCF-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

/* Articulat CF - Light Oblique */
@font-face {
  font-family: "Articulat CF Light";
  src:
    url("../fonts/ArticulatCF-LightOblique.otf") format("opentype"),
    url("../fonts/ArticulatCF-LightOblique.ttf") format("truetype");
  font-weight: 300;
  font-style: oblique;
}

/* Articulat CF - Medium */
@font-face {
  font-family: "Articulat CF Medium";
  src:
    url("../fonts/ArticulatCF-Medium.otf") format("opentype"),
    url("../fonts/ArticulatCF-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

/* Articulat CF - Medium Oblique */
@font-face {
  font-family: "Articulat CF Medium";
  src:
    url("../fonts/ArticulatCF-MediumOblique.otf") format("opentype"),
    url("../fonts/ArticulatCF-MediumOblique.ttf") format("truetype");
  font-weight: 500;
  font-style: oblique;
}

/* Articulat CF - Normal (Regular) */
@font-face {
  font-family: "Articulat CF Normal";
  src:
    url("../fonts/ArticulatCF-Normal.otf") format("opentype"),
    url("../fonts/ArticulatCF-Normal.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

/* Articulat CF - Normal Oblique */
@font-face {
  font-family: "Articulat CF Normal";
  src:
    url("../fonts/ArticulatCF-NormalOblique.otf") format("opentype"),
    url("../fonts/ArticulatCF-NormalOblique.ttf") format("truetype");
  font-weight: 400;
  font-style: oblique;
}

/* ==================== VARIABLES DE COLORES REBRANDING ==================== */
:root {
  /* Colores principales */
  --primary-yellow: #f0c400;
  --primary-dark: #190007;
  --background-beige: #ebeae0;
  --secondary-bg: transparent;
  --ghost: #e7e6e4;
  --white: #ffffff;

  /* Titulos, campos de textos, encabezados */
  --text-color: #504e49;

  /* Colores secundarios del sidebar */
  --sidebar-bg: #2f353a;
  --sidebar-active: #4a5056;
  --sidebar-hover: #3a4046;

  /* Colores de estado */
  --success-green: #28a745;
  --danger-red: #dc3545;
  --warning-orange: #fd7e14;
  --info-blue: #17a2b8;

  /* Border bottom */
  --border-bottom: #c8ced3;

  /* Paleta extendida de colores para iconos */
  --color-purple: #9c27b0;
  --color-deep-purple: #673ab7;
  --color-indigo: #3f51b5;
  --color-blue: #2196f3;
  --color-light-blue: #03a9f4;
  --color-cyan: #00bcd4;
  --color-teal: #009688;
  --color-green: #4caf50;
  --color-light-green: #8bc34a;
  --color-lime: #cddc39;
  --color-yellow: #ffeb3b;
  --color-amber: #ffc107;
  --color-orange: #ff9800;
  --color-deep-orange: #ff5722;
  --color-red: #f44336;
  --color-pink: #e91e63;
  --color-magenta: #e91e63;

  /* Border radius */
  --border-radius-card: 16px;
  --border-radius-btn: 24px;
  --border-radius-tag: 16px;

  /* Tipografías */
  --font-normal: "Articulat CF Normal", sans-serif;
  --font-medium: "Articulat CF Medium", sans-serif;
  --font-bold: "Articulat CF Bold", sans-serif;
  --font-demibold: "Articulat CF DemiBold", sans-serif;

  /* Tonos de gris */
  --shades-400: #9d9a95;

  /* Sombras */
  --shadow-card: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-dropdown: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-focus-yellow: 0 0 0 3px rgba(240, 196, 0, 0.15);
}

/* Aplicación global */
*,
body,
html {
  font-family: var(--font-normal);
}

body {
  background-color: var(--background-beige);
}

a {
  text-decoration: none;
}

a:where(:hover) {
  text-decoration: underline;
}

/* Colores */

.primary-color {
  color: var(--primary-yellow) !important;
}

.secondary-color {
  color: var(--sidebar-bg) !important;
}

.bg-dark {
  background-color: var(--primary-dark) !important;
}

.bg-white {
  background-color: var(--white) !important;
}

.container-logo {
  display: flex;
  align-items: center;
  padding-left: 15px;
}

.border-radius-20 {
  border-radius: var(--border-radius-card) !important;
}

/* ==================== BOTONES REBRANDING ==================== */

.btn {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  border: 2px solid transparent;
  border-radius: var(--border-radius-btn);
  /* padding: 0.5rem 1.5rem; */
  font-family: var(--font-demibold);
  /* transition: all 0.3s ease; */
}

.btn:hover {
  cursor: pointer;
}

/* BOTON PERFILES */

.btn-profile {
  background-color: var(--primary-yellow);
  color: var(--primary-dark) !important;
  border: 2px solid var(--primary-yellow) !important;
  font-size: 16px !important;
}

/* ===== BOTÓN PRIMARIO (Amarillo) ===== */
.btn-primary {
  background-color: var(--primary-yellow) !important;
  color: var(--primary-dark) !important;
  border: 2px solid var(--primary-yellow) !important;
  font-size: 16px !important;
}

.btn-primary:hover {
  background-color: #d4af00 !important;
  border-color: #d4af00 !important;
  color: var(--primary-dark) !important;
  box-shadow: 0 4px 8px rgba(240, 196, 0, 0.25);
}

.btn-primary:active,
.btn-primary.active {
  background-color: #b89500 !important;
  border-color: #b89500 !important;
  color: var(--primary-dark) !important;
  /* transform: translateY(0); */
}

.btn-primary:disabled,
.btn-primary.disabled {
  background-color: #c8c8c8 !important;
  border-color: #c8c8c8 !important;
  color: #8c8c8c !important;
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-primary.loading {
  background-color: #e0e0e0 !important;
  border-color: #e0e0e0 !important;
  color: #999 !important;
  cursor: wait;
  position: relative;
}

/* ===== BOTÓN SECUNDARIO (Outline dark) ===== */
.btn-secondary {
  background-color: transparent !important;
  color: var(--primary-dark) !important;
  border: 2px solid var(--primary-dark) !important;
  font-size: 16px !important;
}

.btn-secondary:hover,
.show>.btn-secondary.dropdown-toggle {
  background-color: var(--primary-dark) !important;
  color: var(--white) !important;
  border-color: var(--primary-dark) !important;
  box-shadow: 0 4px 8px rgba(25, 0, 7, 0.25);
  /*    transform: translateY(-1px); */
}

.btn-secondary:active,
.btn-secondary.active {
  background-color: #0d0003 !important;
  border-color: #0d0003 !important;
  color: var(--white) !important;
  /* transform: translateY(0); */
}

.btn-secondary:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(25, 0, 7, 0.25);
}

.btn-secondary:disabled,
.btn-secondary.disabled {
  background-color: transparent !important;
  border-color: #c8c8c8 !important;
  color: #8c8c8c !important;
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-secondary.loading {
  background-color: transparent !important;
  border-color: #e0e0e0 !important;
  color: #999 !important;
  cursor: wait;
}

/* ===== BOTÓN SECUNDARIO CON ICONO ===== */
.btn-secondary.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
}

.btn-secondary.btn-icon i,
.btn-secondary.btn-icon svg {
  font-size: 18px;
}

/* ===== BOTÓN GHOST (Sin fondo, sin borde) ===== */
.btn-ghost {
  background-color: transparent !important;
  color: var(--primary-dark) !important;
  border: 2px solid transparent !important;
  font-size: 16px !important;
}

.btn-ghost:hover {
  background-color: transparent !important;
  color: var(--primary-dark) !important;
  border-color: transparent !important;
  text-decoration: none;
}

.btn-ghost:active,
.btn-ghost.active {
  background-color: transparent !important;
  color: #0d0003 !important;
  border-color: transparent !important;
}

.btn-ghost:disabled,
.btn-ghost.disabled {
  background-color: transparent !important;
  border-color: transparent !important;
  color: #c8c8c8 !important;
  cursor: not-allowed;
  opacity: 0.6;
}

/* ===== BOTÓN CON ICONO (Circular) ===== */
.btn-icon-only {
  width: 48px;
  height: 48px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.btn-icon-only.btn-primary {
  background-color: var(--primary-yellow) !important;
  border-color: var(--primary-yellow) !important;
}

.btn-icon-only.btn-primary:hover {
  background-color: #d4af00 !important;
  border-color: #d4af00 !important;
}

.btn-icon-only.btn-secondary {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
  color: var(--white) !important;
}

.btn-icon-only.btn-secondary:hover {
  background-color: #2d000a !important;
  border-color: #2d000a !important;
}

.btn-icon-only i,
.btn-icon-only svg {
  font-size: 20px;
}

.btn-icon-only.btn-sm {
  width: 32px;
  height: 32px;
}

.btn-icon-only.btn-sm i,
.btn-icon-only.btn-sm svg {
  font-size: 16px;
}

/* ===== TAMAÑOS DE BOTONES ===== */
.btn-xs {
  padding: 0.1rem 0.5rem !important;
  font-size: 12px !important;
  border-radius: 16px !important;
  line-height: 1.3 !important;
}

.btn-sm {
  /* padding: 0.200rem !important; */
  font-size: 14px !important;
  border-radius: var(--border-radius-card) !important;
  line-height: 1.4 !important;
}

.btn-md {
  padding: 0.5rem 1.5rem !important;
  font-size: 16px !important;
  border-radius: 24px !important;
  line-height: 1.5 !important;
}

.btn-lg {
  padding: 0.75rem 2rem !important;
  font-size: 18px !important;
  border-radius: 28px !important;
  line-height: 1.5 !important;
}

/* ===== VARIANTES DE COLOR ===== */
/* Success (Verde) */
.btn-success {
  background-color: var(--success-green) !important;
  color: var(--white) !important;
  border: 2px solid var(--success-green) !important;
}

.btn-success:hover {
  background-color: #218838 !important;
  border-color: #218838 !important;
  box-shadow: 0 4px 8px rgba(40, 167, 69, 0.25);
  /* transform: translateY(-1px); */
}

.btn-success:disabled,
.btn-success.disabled {
  background-color: #c8c8c8 !important;
  border-color: #c8c8c8 !important;
  color: #8c8c8c !important;
  opacity: 0.6;
}

/* Danger (Rojo) */
.btn-danger {
  background-color: var(--danger-red) !important;
  color: var(--white) !important;
  border: 2px solid var(--danger-red) !important;
}

.btn-danger:hover {
  background-color: #c82333 !important;
  border-color: #c82333 !important;
  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.25);
  /* transform: translateY(-1px); */
}

.btn-danger:disabled,
.btn-danger.disabled {
  background-color: #c8c8c8 !important;
  border-color: #c8c8c8 !important;
  color: #8c8c8c !important;
  opacity: 0.6;
}

/* Warning (Naranja) */
.btn-warning {
  background-color: var(--warning-orange) !important;
  color: var(--white) !important;
  border: 2px solid var(--warning-orange) !important;
}

.btn-warning:hover {
  background-color: #e8590c !important;
  border-color: #e8590c !important;
  box-shadow: 0 4px 8px rgba(253, 126, 20, 0.25);
  /* transform: translateY(-1px); */
}

.btn-warning:disabled,
.btn-warning.disabled {
  background-color: #c8c8c8 !important;
  border-color: #c8c8c8 !important;
  color: #8c8c8c !important;
  opacity: 0.6;
}

/* Info (Azul) */
.btn-info {
  background-color: var(--info-blue) !important;
  color: var(--white) !important;
  border: 2px solid var(--info-blue) !important;
}

.btn-info:hover {
  background-color: #138496 !important;
  border-color: #138496 !important;
  box-shadow: 0 4px 8px rgba(23, 162, 184, 0.25);
  /* transform: translateY(-1px); */
}

.btn-info:disabled,
.btn-info.disabled {
  background-color: #c8c8c8 !important;
  border-color: #c8c8c8 !important;
  color: #8c8c8c !important;
  opacity: 0.6;
}

/* Tertiary (Gris) */
.btn-tertiary {
  background-color: #c8ced3 !important;
  color: #23282c !important;
  border: 2px solid #c8ced3 !important;
}

.btn-tertiary:hover {
  background-color: #b3bbc2 !important;
  border-color: #acb5bc !important;
  color: #23282c !important;
  box-shadow: 0 4px 8px rgba(200, 206, 211, 0.25);
  /* transform: translateY(-1px); */
}

.btn-tertiary:disabled,
.btn-tertiary.disabled {
  background-color: #e0e0e0 !important;
  border-color: #e0e0e0 !important;
  color: #999 !important;
  opacity: 0.6;
}

/* Alineación específica para btn-group */
.btn-group {
  display: inline-flex !important;
  align-items: center !important;
}

.btn-group .btn,
.btn-group .dropdown {
  align-items: center !important;
}

.btn-group .dropdown-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* ==================== TABS NAVS ==================== */

/* ==================== END TABS NAVS ==================== */

/* ==================== SIDEBAR REBRANDING ==================== */

/* Navegación base del sidebar — override Bootstrap 5 flex horizontal */
.sidebar .nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* li padre ocupa todo el ancho del sidebar */
.sidebar .nav-item {
  width: 100%;
}

/* Sub-menús: ocultos por defecto, solo visible cuando el padre tiene .open */
.sidebar .nav-dropdown-items {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0 0 4px 0;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease;
}

.sidebar .nav-dropdown.open>.nav-dropdown-items {
  display: block;
  max-height: 500px;
  /* suficiente para cualquier sub-menú */
}

/* Indicador visual de que el item es expandible */
.sidebar .nav-dropdown-toggle::after {
  content: '▾';
  float: right;
  font-size: 10px;
  opacity: 0.6;
  transition: transform 0.25s ease;
  line-height: 1.8;
  margin-left: 6px;
}

.sidebar .nav-dropdown.open>.nav-dropdown-toggle::after {
  transform: rotate(180deg);
}

/* Sub-items: indentados y font más pequeño */
.sidebar .nav-dropdown-items .nav-link {
  padding-left: 2.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  margin: 2px 8px;
}

.sidebar .nav-link {
  display: flex;
  align-items: center;
  padding: 0.8rem 1rem;
  text-decoration: none;
  background: transparent;
  color: var(--background-beige);
  transition:
    background-color 0.3s ease,
    color 0.4s ease,
    padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    margin 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    border-radius 0.3s ease;
  border-radius: 20px;
  margin: 4px 8px;
  font-family: var(--font-medium);
  font-weight: 800;
  white-space: normal;
  line-height: 1.3;
}

.sidebar .nav-link.active {
  background: #473339 !important;
  color: var(--white) !important;
  border: none !important;
  border-radius: var(--border-radius-card) !important;
}

.sidebar .nav-link.active .nav-icon {
  color: var(--white) !important;
}

.sidebar .nav-link:hover {
  background: #473339 !important;
  color: var(--white) !important;
  border-radius: var(--border-radius-card) !important;
}

.sidebar .nav-link.active:hover {
  background: #473339 !important;
  color: var(--white) !important;
}

.sidebar .nav-dropdown.open .nav-link {
  color: var(--white);
}

.sidebar .nav-link .nav-icon {
  display: inline-block;
  width: 1.09375rem;
  margin: 0 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--background-beige);
  text-align: center;
  transition: color 0.3s ease;
}

/* ===== COLORES DE ICONOS DEL SIDEBAR ===== */
/* Según paleta de colores del sistema de diseño */

/* Amarillo - Home/Dashboard */
.sidebar .nav-link .nav-icon.icon-yellow {
  color: #f0c400;
}

.sidebar .nav-link.active .nav-icon.icon-yellow {
  color: #f0c400;
}

/* Verde Lima - Colaboradores/Employees */
.sidebar .nav-link .nav-icon.icon-lime {
  color: #8bc34a;
}

.sidebar .nav-link.active .nav-icon.icon-lime {
  color: #8bc34a;
}

/* Verde - Schedules/Horarios */
.sidebar .nav-link .nav-icon.icon-green {
  color: #4caf50;
}

.sidebar .nav-link.active .nav-icon.icon-green {
  color: #4caf50;
}

/* Cyan - Dispositivos/Devices */
.sidebar .nav-link .nav-icon.icon-cyan {
  color: #00bcd4;
}

.sidebar .nav-link.active .nav-icon.icon-cyan {
  color: #00bcd4;
}

/* Azul - Reportes/Reports */
.sidebar .nav-link .nav-icon.icon-blue {
  color: #2196f3;
}

.sidebar .nav-link.active .nav-icon.icon-blue {
  color: #2196f3;
}

/* Índigo - Configuración */
.sidebar .nav-link .nav-icon.icon-indigo {
  color: #3f51b5;
}

.sidebar .nav-link.active .nav-icon.icon-indigo {
  color: #3f51b5;
}

/* Púrpura - Salir/Logout */
.sidebar .nav-link .nav-icon.icon-purple {
  color: #9c27b0;
}

.sidebar .nav-link.active .nav-icon.icon-purple {
  color: #9c27b0;
}

/* Magenta - Extras */
.sidebar .nav-link .nav-icon.icon-magenta {
  color: #e91e63;
}

.sidebar .nav-link.active .nav-icon.icon-magenta {
  color: #e91e63;
}

/* Naranja - Alertas */
.sidebar .nav-link .nav-icon.icon-orange {
  color: #ff9800;
}

.sidebar .nav-link.active .nav-icon.icon-orange {
  color: #ff9800;
}

/* Deep Orange - Asistencias */
.sidebar .nav-link .nav-icon.icon-deep-orange {
  color: #ff5722;
}

.sidebar .nav-link.active .nav-icon.icon-deep-orange {
  color: #ff5722;
}

/* Teal - Sucursales/Punchsites */
.sidebar .nav-link .nav-icon.icon-teal {
  color: #009688;
}

.sidebar .nav-link.active .nav-icon.icon-teal {
  color: #009688;
}

/* Light Blue - Información */
.sidebar .nav-link .nav-icon.icon-light-blue {
  color: #03a9f4;
}

.sidebar .nav-link.active .nav-icon.icon-light-blue {
  color: #03a9f4;
}

/* Hover mantiene el color del icono */
.sidebar .nav-link:hover .nav-icon.icon-yellow,
.sidebar .nav-link:hover .nav-icon.icon-lime,
.sidebar .nav-link:hover .nav-icon.icon-green,
.sidebar .nav-link:hover .nav-icon.icon-cyan,
.sidebar .nav-link:hover .nav-icon.icon-blue,
.sidebar .nav-link:hover .nav-icon.icon-indigo,
.sidebar .nav-link:hover .nav-icon.icon-purple,
.sidebar .nav-link:hover .nav-icon.icon-magenta,
.sidebar .nav-link:hover .nav-icon.icon-orange,
.sidebar .nav-link:hover .nav-icon.icon-deep-orange,
.sidebar .nav-link:hover .nav-icon.icon-teal,
.sidebar .nav-link:hover .nav-icon.icon-light-blue {
  filter: brightness(1.1);
}

@media (min-width: 992px) {
  .sidebar-minimized .sidebar .sidebar-minimizer img {
    display: none;
    overflow: hidden;
  }
}

@media (min-width: 992px) {
  .sidebar-minimized .sidebar {
    flex: 0 0 64px;
    width: 64px;
    min-width: 64px;
    max-width: 64px;
    overflow: hidden;
  }
}

@media (min-width: 992px) {
  .sidebar-minimized .sidebar .sidebar-nav {
    overflow: hidden;
    width: 64px;
  }
}

@media (min-width: 992px) {
  .sidebar-minimized .sidebar .nav {
    width: 64px;
    padding: 4px 2px;
  }
}

/* Ocultar texto y centrar icono en modo comprimido */
@media (min-width: 992px) {

  /* Se aplica en estado comprimido Y en estado oculto (sidebar slide-out).
     Sin esto, al remover sidebar-minimized el font-size vuelve a normal
     instantáneamente aunque el sidebar tarde 0.4s en salir de pantalla. */
  .sidebar-minimized .sidebar .nav-link,
  body.sidebar-fixed:not(.sidebar-lg-show) .sidebar .nav-link {
    font-size: 0;
    justify-content: center;
    padding: 0.6rem 0;
    margin: 4px 0;
    width: 100%;
    overflow: hidden;
  }

  .sidebar-minimized .sidebar .nav-link .nav-icon,
  body.sidebar-fixed:not(.sidebar-lg-show) .sidebar .nav-link .nav-icon {
    font-size: 1.1rem !important;
    margin: 0;
  }

  /* Ocultar la flecha ▾ del dropdown toggle */
  .sidebar-minimized .sidebar .nav-dropdown-toggle::after {
    display: none;
  }

  /* Sub-menús siempre ocultos en estado comprimido */
  .sidebar-minimized .sidebar .nav-dropdown-items {
    display: none !important;
  }
}

@media (min-width: 992px) {
  .sidebar-minimized .sidebar .nav-item:hover>.nav-link {
    background: var(--sidebar-active) !important;
    color: var(--white) !important;
    border-radius: 8px;
  }
}

/* ==================== CARDS Y CONTENEDORES ==================== */
.card {
  border-radius: var(--border-radius-card) !important;
  border: 1px solid #e0e0e0;
  box-shadow: var(--shadow-card);
}

.card-header {
  /* background-color: #ffffff;
  border-bottom: 2px solid var(--primary-yellow); */
  border-radius: var(--border-radius-card) var(--border-radius-card) 0 0 !important;
  /* font-weight: 600; */
}

/* ==================== TABS REBRANDING ==================== */

/* Tabs como botones - estilo general */
.nav-tabs {
  border-bottom: none;
}

.nav-tabs .nav-item {
  margin-bottom: 0;
}

/* Tab no seleccionado - fondo ghost */
.nav-tabs .nav-link {
  border: none;
  border-radius: 16px;
  background-color: var(--ghost);
  color: var(--text-color);
  padding: 0.375rem 0.75rem;
  font-size: 14px;
  font-family: var(--font-demibold);
  transition: all 0.3s ease;
  margin-right: 0.25rem;
}

/* Tab seleccionado - fondo dark */
.nav-tabs .nav-link.active,
#main-wrapper>div.animated>div.card>ul.nav-tabs>li>a.nav-link.active {
  background-color: var(--primary-dark);
  color: var(--white);
  border: none;
  font-weight: 600;
}

/* Hover en tabs */
.nav-tabs .nav-link:hover {
  background-color: var(--sidebar-hover);
  color: var(--white);
  border: none;
  list-style: none;
}

/* Hover en tab activo */
.nav-tabs .nav-link.active:hover {
  background-color: var(--primary-dark);
  color: var(--white);
}

/* Tabs como botones btn (compatibilidad con estructura actual) */
.nav .btn-secondary {
  background-color: var(--primary-dark) !important;
  color: var(--white) !important;
  border: none !important;
  border-radius: 16px !important;
}

.nav .btn-ghost {
  background-color: var(--ghost) !important;
  color: var(--text-color) !important;
  border: none !important;
  border-radius: 16px !important;
}

.nav .btn-secondary:hover {
  background-color: var(--primary-dark) !important;
  color: var(--white) !important;
}

.nav .btn-ghost:hover {
  background-color: var(--sidebar-hover) !important;
  color: var(--white) !important;
}

.btn-group-sm>.btn,
.btn-sm {
  padding: 0.375rem 0.75rem !important;
}

/* ==================== ASIDE MENU ==================== */
/* ==================== ASIDE MENU — Bootstrap 5 offcanvas style ==================== */
.aside-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  height: 100%;
  z-index: 1045;
  background-color: #ffffff;
  border-left: 1px solid #e0e0e0;
  border-radius: 20px 0 0 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  overflow: hidden;
}

/* Visible cuando body tiene aside-menu-show */
body.aside-menu-show .aside-menu {
  transform: translateX(0);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
}

/* Backdrop */
.aside-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1044;
  background: rgba(0, 0, 0, 0.25);
}

body.aside-menu-show .aside-backdrop {
  display: block;
}

.aside-menu .nav-tabs .nav-link {
  padding: 6px 16px;
  border-top-left-radius: 0.25rem;
  border-top-right-radius: 0.25rem;
}

.aside-menu .nav-tabs .nav-link.active {
  color: var(--primary-dark);
  background-color: var(--primary-yellow);
  border-top: 0;
  border-bottom: var(--primary-yellow) 2px solid;
  font-weight: 600;
}

.aside-menu .nav-tabs .nav-item:first-child .nav-link:hover {
  border-left: #c8ced3 1px solid;
}

.aside-menu .nav-tabs .nav-item .nav-link:hover {
  border-top: #c8ced3 1px solid;
}

.aside-menu .nav-tabs .detail #home-tab {
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 10px;
  padding-bottom: 10px;
}

.aside_content .card {
  border: none;
}

/* Header colapsable del aside */
.aside_content .aside-collapsible-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  gap: 8px;
}

.aside_content .aside-collapsible-header:hover {
  background-color: var(--ghost, #f5f5f5);
}

/* Ícono chevron */
.aside_content .aside-chevron {
  font-size: 20px;
  color: var(--primary-dark);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

/* Rotar cuando el collapse está abierto */
.aside_content .aside-collapsible-header[aria-expanded="true"] .aside-chevron {
  transform: rotate(180deg);
}

.aside_content {
  overflow-y: auto;
  flex: 1;
}

.header-fixed .app-body {
  margin-top: 0px;
}

/* ==================== VIDEO BACKGROUND ==================== */
#video-background {
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0 auto;
}

#video-background video {
  width: 100%;
  height: 100%;
}

#video-background:before {
  content: "";
  position: absolute;
  background: rgba(0, 0, 0, 0.4);
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

/* ==================== FORMULARIOS ==================== */
.text-muted {
  font-weight: 800 !important;
}

.required::after {
  content: " *";
  color: var(--danger-red);
}

.custom-inline-form {
  vertical-align: top;
  padding: 0.375rem 0.75rem;
}

.input-xs {
  height: 22px;
  padding: 2px 5px;
  font-size: 12px;
  line-height: 1.5;
  border-radius: 18px;
}

.form-label-rebranding {
  color: var(--text-color);
  font-size: 14px;
  font-family: var(--font-medium);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.form-control-rebranding {
  border-radius: 16px;
  border: 1px solid var(--text-color);
  color: var(--text-color);
  /* font-size: 18px; */
  font-family: var(--font-medium);
  /* padding: 0.65rem 1rem; */
  min-height: fit-content;
  min-width: fit-content;
  background-color: var(--white);
  transition: border-color 0.2s ease;
}

.form-control-rebranding:focus {
  border: 2px solid var(--primary-yellow);
  box-shadow: 0 0 0 0.1rem rgba(240, 196, 0, 0.35);
}

/* Input rebranding estilo Figma */
.rebrand-input-container {
  display: flex;
  width: 290px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.rebrand-input-field {
  position: relative;
  display: flex;
  width: 100%;
}

.rebrand-input-control {
  display: flex;
  padding: 10px 16px;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  width: 100%;
  border-radius: var(--border-radius-tag);
  border: 1px solid var(--shades-400);
  background: #FFF;
}

.rebrand-input-legend {
  display: flex;
  padding: 0 4px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  position: absolute;
  left: 14px;
  top: -10px;
  background: #FFF;
}

.select-wrapper {
  position: relative;
}

/* .select-wrapper::after {
    content: '\25BC';
    color: var(--text-color);
    position: absolute;
    top: 50%;
    right: 18px;
    pointer-events: none;
    transform: translateY(-50%);
} */

/* .select-wrapper select.form-control-rebranding {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 48px;
    background-color: transparent;
} */

/* ==================== DROPDOWNS REBRANDING ==================== */
/* Excluye dropdowns de DataTables */

/* Botón dropdown principal */
.dropdown-toggle:not(.dt-button) {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;

  font-family: var(--font-normal);
  font-size: 14px;
  color: var(--text-color);
  background-color: var(--white);
  border: 2px solid var(--primary-yellow);
  border-radius: 24px;
  cursor: pointer;
  /* transition: all 0.3s ease; */
  min-width: fit-content;
}

.dropdown-toggle:not(.dt-button):hover {
  background-color: var(--ghost);
  border-color: var(--primary-yellow);
  box-shadow: 0 2px 4px rgba(240, 196, 0, 0.15);
}

.dt-buttons>.btn-group>.dt-button-collection {
  border: 2px solid var(--primary-yellow);
  border-radius: 24px;
  box-shadow: var(--shadow-dropdown);
}

.dt-buttons>.btn-group>.dropdown-menu.show {
  min-width: 200px;
  max-height: 300px;
  overflow-y: auto;
}

/* Tablets: evitar scrollbar visible "feo" en el dropdown de Tareas */
#tablets_wrapper .dt-buttons>.btn-group>.dropdown-menu.show {
  max-height: 70vh;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#tablets_wrapper .dt-buttons>.btn-group>.dropdown-menu.show::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.dropdown-toggle:not(.dt-button):focus,
.dropdown-menu:not(.dt-button-collection .dropdown-menu):focus,
.dropdown-toggle:not(.dt-button).show,
.dropdown-menu:not(.dt-button-collection .dropdown-menu).show {
  outline: none;
  box-shadow: var(--shadow-focus-yellow);
  border-color: var(--primary-yellow);
}

.dropdown-toggle:not(.dt-button).show::after,
.dropdown-menu:not(.dt-button-collection .dropdown-menu).show::after {
  transform: rotate(180deg);
}

/* Dropdown menu */
.dropdown-menu:not(.dt-button-collection),
.dropdown-menu:not(.dt-button-collection)>.dropdown-menu {
  padding: 0.5rem;
  background-color: var(--white);
  border: 2px solid var(--primary-yellow);
  border-radius: 20px;
  box-shadow: var(--shadow-dropdown);
  margin-top: 0.5rem;
  min-width: 200px;
  max-height: 300px;
  overflow-y: auto;
}

/* Dropdown items */
.dropdown-item:not(.dt-button),
.dropdown-menu:not(.dt-button-collection .dropdown-menu).show::after {
  padding: 0.625rem 1rem;
  font-family: var(--font-normal);
  font-size: 14px;
  color: var(--text-color);
  border-radius: 16px;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
  background-color: transparent;
  border: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dropdown-item:not(.dt-button):hover {
  background-color: var(--ghost);
  color: var(--primary-dark);
}

.dropdown-item:not(.dt-button):active,
.dropdown-item:not(.dt-button).active {
  background-color: var(--primary-yellow);
  color: var(--primary-dark);
  font-weight: 600;
}

/* Checkmark para items activos */
.dropdown-item:not(.dt-button).active::after {
  content: "✓";
  font-size: 18px;
  font-weight: bold;
  margin-left: 12px;
  color: var(--primary-dark);
}

.dropdown-item:not(.dt-button):disabled,
.dropdown-item:not(.dt-button).disabled {
  color: #c8c8c8;
  cursor: not-allowed;
  background-color: transparent;
}

/* Dropdown con tags/chips removibles */
.dropdown-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  background-color: var(--ghost);
  border: 1px solid var(--primary-yellow);
  border-radius: 16px;
  font-family: var(--font-normal);
  font-size: 13px;
  color: var(--text-color);
  margin: 0.125rem;
}

.dropdown-tag-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  background-color: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-color);
  font-size: 14px;
  line-height: 1;
  transition: all 0.2s ease;
}

.dropdown-tag-remove:hover {
  background-color: var(--primary-dark);
  color: var(--white);
}

.dropdown-tag-remove::before {
  content: "×";
  font-weight: bold;
}

/* Contenedor de tags múltiples en dropdown */
.dropdown-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  border: 2px solid var(--primary-yellow);
  border-radius: 24px;
  background-color: var(--white);
  min-height: 44px;
  cursor: pointer;
}

.dropdown-tags-container:hover {
  background-color: var(--ghost);
  box-shadow: 0 2px 4px rgba(240, 196, 0, 0.15);
}

/* Placeholder para dropdown vacío */
.dropdown-placeholder {
  color: #999;
  font-style: normal;
}

/* Dropdown divider */
.dropdown-divider:not(.dt-button-collection .dropdown-divider) {
  height: 1px;
  margin: 0.5rem 0;
  background-color: var(--ghost);
  border: none;
}

/* Dropdown header */
.dropdown-header:not(.dt-button-collection .dropdown-header) {
  padding: 0.5rem 1rem;
  font-family: var(--font-demibold);
  font-size: 12px;
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Scrollbar personalizado para dropdown menu */
.dropdown-menu:not(.dt-button-collection)::-webkit-scrollbar {
  width: 6px;
}

.dropdown-menu:not(.dt-button-collection)::-webkit-scrollbar-track {
  background: transparent;
}

.dropdown-menu:not(.dt-button-collection)::-webkit-scrollbar-thumb {
  background-color: var(--ghost);
  border-radius: 10px;
}

/* ==================== SELECT INPUTS ESTILO DROPDOWN ==================== */
/* Estilos para elementos select con apariencia de dropdown */
select {
  display: block;
  width: 100%;

  font-family: var(--font-normal);
  font-size: 14px;
  color: var(--text-color);
  background-color: var(--white);
  border: 2px solid var(--primary-yellow);
  border-radius: 24px;
  cursor: pointer;
  padding: 0.5rem 1rem;

  /* Flecha personalizada */
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23504E49' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;

  /* Evitar que el texto largo desborde el contenedor */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

select:hover {
  background-color: var(--ghost);
  border-color: var(--primary-yellow);
  box-shadow: 0 2px 4px rgba(240, 196, 0, 0.15);
}

select:focus {
  outline: none;
  box-shadow: var(--shadow-focus-yellow);
  border-color: var(--primary-yellow);
}

select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #f5f5f5;
}

/* Opciones del select */
select option {
  padding: 0.625rem 1rem;
  font-family: var(--font-normal);
  font-size: 14px;
  color: var(--text-color);
  background-color: var(--white);
}

select option:hover {
  background-color: var(--ghost);
}

select option:checked {
  background-color: var(--primary-yellow);
  color: var(--primary-dark);
  font-weight: 600;
}

.select-sm {
  /* padding: 0.25rem 0.75rem !important; */
  font-size: 12px !important;
  border-radius: 16px !important;
}

.select-md {
  padding: 0.5rem 1.5rem !important;
  font-size: 16px !important;
  border-radius: 24px !important;
}

.select-lg {
  padding: 0.75rem 2rem !important;
  font-size: 18px !important;
  border-radius: 28px !important;
}

/* Campos de texto - Rebranding */
/* .form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="tel"],
input[type="url"],
textarea,
select.form-control {
    border-radius: 16px !important;
    border: 1px solid var(--text-color) !important;
    color: var(--text-color) !important;
    font-size: 18px !important;
    font-family: var(--font-medium);
    padding: 0.5rem 1rem !important;
} */

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
  color: #9d9a95 !important;
  font-size: 15px !important;
  font-family: var(--font-medium) !important;
}

/* Labels de campos de texto */
label,
.form-label,
.control-label {
  color: var(--text-color) !important;
  font-size: 14px !important;
  font-family: var(--font-medium) !important;
  font-weight: 500 !important;
  margin-bottom: 0.5rem !important;
}

label[for="punchsite"],
label[for="punchkind"],
label[for="punches-exceptions"] {
  margin-bottom: 0 !important;
}

/* input[type="search"]:focus,
select:focus,
textarea:focus {
    border-color: var(--primary-yellow) !important;
    box-shadow: 0 0 0 0.2rem rgba(240, 196, 0, 0.25) !important;
    outline: none !important;
} */

/* ==================== SCHEDULE TEMPLATES ==================== */
.create-schedule-container {
  margin: auto;
  width: 60%;
  padding: 10px;
}

#schedule-form input,
#schedule-form>a {
  margin-bottom: 10px;
}

#schedule-form a {
  display: block;
  cursor: pointer;
}

#schedule-list>a,
#schedule-list #accordion div.card {
  margin-bottom: 10px;
}

#templates-column .card-body {
  padding: 0;
  margin-top: 4px;
  margin-bottom: 10px;
}

#id_schedule_template {
  margin-bottom: 10px;
}

/* ==================== EXCEPTIONS TEMPLATES ==================== */
#modal-table {
  border-bottom: 1px solid #e9ecef;
}

#modal-table td,
#modal-table th {
  padding: 5px;
}

#modal-table th {
  width: 200px;
}

#employee-nav a.nav-link {
  border: var(--sidebar-bg) 1px solid;
}

/* ==================== EMAIL REPORT ==================== */
#email-settings input[type="submit"] {
  margin-top: 10px;
}

/* ==================== EMPLOYEE TIMESHEET ==================== */
#selector-semana div button>button.btn-ghost,
#selector-semana div button>button.btn-ghost:hover {
  background-color: transparent;
  border-color: transparent;
}

#selector-semana div button>button {
  padding: 2px;
}

/* Bootstrap 5: .float-end (alias .pull-right para retro-compatibilidad) */
.float-end,
.pull-right {
  float: right;
}

#table-hoja-horario ul {
  padding-left: 0;
  list-style: none;
  margin-bottom: 0;
}

#table-hoja-horario li {
  height: 21px;
}

/* ==================== HEADER Y USER INFO ==================== */
.user_detail {
  float: left;
}

/* ==================== RESPONSIVE - TABLET ==================== */
@media only screen and (max-width: 767px) {

  .card-header .pull-right,
  .card-header .pull-right>* {
    width: 100%;
  }

  .help_icon {
    display: none;
  }
}

/* ==================== RESPONSIVE - MOBILE ==================== */
@media only screen and (max-width: 576px) {
  .card-header .row .btn-group {
    display: inline;
  }

  .card-header .row .btn-group>* {
    border: none;
  }

  .card>.nav .nav-item {
    width: 100%;
  }

  html:not([dir="rtl"]) .sidebar-show.sidebar-fixed .app-footer,
  html:not([dir="rtl"]) .sidebar-show.sidebar-fixed .main {
    margin-left: 0;
  }
}

@media (min-width: 992px) {

  html:not([dir="rtl"]) .sidebar-lg-show.sidebar-fixed .app-footer,
  html:not([dir="rtl"]) .sidebar-lg-show.sidebar-fixed .main {
    margin-left: 0;
  }
}

/* ==================== BOTONES DISABLED ==================== */
.btn-success.disabled,
.btn-success:disabled {
  cursor: auto;
}

/* ==================== HELP SYSTEM ==================== */
#app-help {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 500px;
  padding-top: 55px;
}

.app-help_show {
  margin-right: 500px;
}

#app-help .card {
  height: 100%;
  margin-bottom: 0;
  border-radius: 0;
  border-bottom: 0;
  border-right: 0;
  border-top: 0;
}

.help_list .list-group-item-action {
  cursor: pointer;
}

.help_icon>i {
  color: #73818f;
  font-size: 1.5em;
  cursor: pointer;
}

.help_icon_active>i {
  color: var(--primary-dark);
}

.help_active {
  background-color: #e2e4e8;
}

.help_icon>i:hover {
  color: var(--primary-dark);
}

#help_focus {
  display: none;
  background-color: #130c0ca8;
  width: 100%;
  height: 100%;
  margin-right: 500px;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 9999;
}

.help_detail {
  display: none;
  color: #5c6873;
}

/* ==================== MENU HOVER COLOR ==================== */
.menu_hover_color>a,
.menu_hover_color>a>* {
  background-color: var(--primary-yellow) !important;
  color: var(--primary-dark) !important;
}

/* ==================== LOADING SPINNER ==================== */
.load {
  text-align: center;
}

.lds-ring {
  display: inline-block;
  position: relative;
  width: 64px;
  height: 64px;
}

.lds-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 51px;
  height: 51px;
  margin: 6px;
  border: 6px solid var(--primary-yellow);
  border-radius: 50%;
  animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: var(--primary-yellow) transparent transparent transparent;
}

.lds-ring div:nth-child(1) {
  animation-delay: -0.45s;
}

.lds-ring div:nth-child(2) {
  animation-delay: -0.3s;
}

.lds-ring div:nth-child(3) {
  animation-delay: -0.15s;
}

@keyframes lds-ring {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* ==================== BOOTSTRAP SPINNERS ==================== */
@keyframes spinner-border {
  to {
    transform: rotate(360deg);
  }
}

.spinner-border {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  vertical-align: text-bottom;
  border: 0.25em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border 0.75s linear infinite;
}

.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.2em;
}

@keyframes spinner-grow {
  0% {
    transform: scale(0);
  }

  50% {
    opacity: 1;
  }
}

.spinner-grow {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  vertical-align: text-bottom;
  background-color: currentColor;
  border-radius: 50%;
  opacity: 0;
  animation: spinner-grow 0.75s linear infinite;
}

.spinner-grow-sm {
  width: 1rem;
  height: 1rem;
}

/* ==================== UTILIDADES ==================== */
/* Bootstrap 5: .visually-hidden (alias .sr-only para retro-compatibilidad) */
.visually-hidden,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.visually-hidden-focusable:active,
.visually-hidden-focusable:focus,
.sr-only-focusable:active,
.sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

.text-primary {
  color: var(--primary-yellow) !important;
}

a.text-primary:hover,
a.text-primary:focus {
  color: #d9b000 !important;
}

/* Bootstrap 5: .img-fluid (alias .img-responsive para retro-compatibilidad) */
.img-fluid,
.img-responsive {
  max-width: 100%;
  height: auto;
}

/* ==================== EVENTS ==================== */
#events {
  margin-bottom: 1em;
  padding: 1em;
  background-color: #f6f6f6;
  border: 1px solid #999;
  border-radius: 3px;
  height: 100px;
  overflow: auto;
}

/* ==================== LOGIN PAGE STYLES - OPTIMIZADO ==================== */

/* Login wrapper y card */
.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.login-card {
  background-color: #ffffff;
  border-radius: 16px;
  width: 360px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  position: relative;
  text-align: center;
}

.login-card .logo-icon {
  position: absolute;
  top: -40px;
  right: -40px;
  display: flex;
  padding: 10px;
}

.login-card .logo-icon img {
  width: 58px;
  height: 60px;
}

/* Login typography */
.login-title {
  font-family: var(--font-bold);
  font-size: 48px;
  font-weight: bold;
  color: var(--primary-dark);
  margin-bottom: 0;
}

.login-subtitle {
  font-size: 22px;
  margin-top: -10px;
  margin-bottom: 30px;
  text-align: start;
  font-weight: 300;
}

.login-description {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 25px;
}

.login-logo {
  width: 312px;
  margin-bottom: 10px;
}

/* Login form — inputs-container (Figma) */
.login-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 44px;
  align-self: stretch;
}

/* Input wrapper — text field (Figma) */
.input-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
}

/* fieldset — frame 37 (Figma) */
.input-wrapper fieldset {
  display: flex;
  padding: 10px 16px;
  align-items: center;
  gap: 10px;
  align-self: stretch;
  border-radius: 16px;
  border: 1px solid var(--text-color);
  background: #FFF;
  margin: 0;
  transition: border-color 0.2s ease;
}

.input-wrapper fieldset:hover {
  border-color: #666;
}

.input-wrapper fieldset:focus-within {
  border-color: var(--primary-yellow);
  border-width: 2px;
  outline: none;
  box-shadow: none;
}

/* legend — frame 235 (Figma) */
.input-wrapper legend {
  display: flex;
  padding: 0 4px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  position: absolute;
  left: 14px;
  top: -10px;
  background: #FFF;
  font-size: 13px;
  font-weight: 700;
  max-width: fit-content;
  margin: 0;
  color: var(--text-color);
}

.input-wrapper input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
  color: #333;
  padding: 0;
  height: 100%;
  line-height: normal;
  min-width: 0;
}

.input-wrapper input::placeholder {
  color: #999;
  font-size: 14px;
  /* Reducido de 16px a 14px */
}

.input-wrapper input:focus {
  outline: none;
  box-shadow: none;
}

/* Password field con toggle */
.input-wrapper.password-field {
  position: relative;
}

.input-wrapper.password-field input {
  padding-right: 0;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  z-index: 10;
  outline: none;
  height: 32px;
  width: 32px;
}

.toggle-password:hover {
  color: #333;
}

.toggle-password:focus {
  outline: none;
  box-shadow: none;
}

.toggle-password .material-symbols-outlined,
.toggle-password .material-symbols-rounded {
  font-size: 18px;
  /* Reducido de 20px a 18px */
  user-select: none;
  color: var(--primary-dark);
}

/* Botón de login */
.btn-login {
  background-color: var(--primary-yellow);
  border: none;
  border-radius: 16px;
  color: var(--primary-dark);
  font-weight: bold;
  padding: 12px 0;
  width: 100%;
  font-size: 18px;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.2s ease;
  font-family: var(--font-bold);
  position: relative;
}

.btn-login:hover {
  background-color: #e1b800;
  /* transform: translateY(-1px); */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-login:active {
  /* transform: scale(0.98); */
  border-style: none;
}

.btn-login:disabled {
  background-color: #d4c89c;
  cursor: not-allowed;
  opacity: 0.8;
}

.btn-login .btn-text {
  display: inline-block;
}

.btn-login .btn-spinner {
  margin-left: 8px;
  vertical-align: middle;
}

button:focus {
  outline: none;
}

/* Footer del login: versión + olvidaste contraseña */
.login-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
}

/* Forgot password link */
.forgot-password {
  font-weight: 700;
  font-size: 14px;
  color: var(--primary-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.forgot-password:hover {
  color: var(--primary-yellow);
}

/* Version text */
.version-text {
  font-size: 12px;
  color: #777;
  margin: 0;
}

/* Alert styles */
.alert {
  border-radius: var(--border-radius-card) !important;
  padding: 15px 20px;
  margin-bottom: 15px;
  font-size: 14px;
  text-align: left;
  border: none !important;
}

.alert-primary,
.alert-info {
  background-color: #e3f2fd;
  color: #1976d2;
}

.alert-danger {
  background-color: #ffebee;
  color: #c62828;
}

.alert-warning {
  background-color: #fff3e0;
  color: #e65100;
}

/* Decoración en login - esquina inferior derecha */
.login-decoration {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 300px;
  height: 200px;
  pointer-events: none;
  z-index: 1;
}

.login-decoration img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom right;
}

/* Responsive para decoración */
@media (max-width: 768px) {
  .login-decoration {
    width: 200px;
    height: 150px;
  }
}

@media (max-width: 576px) {
  .login-decoration {
    width: 150px;
    height: 100px;
  }
}

.alert-success {
  background-color: #e8f5e9;
  color: #2e7d32;
}

/* Autofill browser override */
.input-wrapper input:-webkit-autofill,
.input-wrapper input:-webkit-autofill:hover,
.input-wrapper input:-webkit-autofill:focus,
.input-wrapper input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px white inset !important;
  box-shadow: 0 0 0 30px white inset !important;
  -webkit-text-fill-color: #333 !important;
}

.input-wrapper input:-webkit-autofill {
  -webkit-background-clip: text;
  background-clip: text;
}

/* ==================== HEADER/NAVBAR REBRANDING ==================== */

/* Navbar general */
.navbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  border-bottom: 1px solid var(--border-bottom);
  flex-shrink: 0;
}

.navbar-nav .dropdown-menu {
  position: absolute;
  float: none;
}

.app-header.navbar {
  background-color: #ffffff;
  border-bottom: 2px solid #e0e0e0;
}

/* Logo y branding - COMBINADO */
.navbar-brand {
  display: flex;
  align-items: center;
  padding: 10px;
  gap: 0;
}

.navbar-brand-combined {
  display: flex;
  align-items: center;
  gap: 0;
}

.navbar-brand-icon {
  width: 35px;
  height: 35px;
  margin-right: 5px;
  z-index: 2;
}

.navbar-brand-logo {
  height: 32px;
  width: auto;
  margin-left: 5px;
  z-index: 1;
}

/* Remover estilos de minimized (ya no se necesita) */
.navbar-brand-full,
.navbar-brand-minimized {
  display: none !important;
}

/* Sidebar togglers */
.navbar-toggler {
  color: var(--sidebar-bg);
  border-radius: 8px;
  /* transition: all 0.3s ease; */
}

.navbar-toggler:hover {
  border-color: var(--sidebar-bg);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(25, 0, 7, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* User dropdown */
.user-dropdown {
  display: flex;
  align-items: center;
}

.user-dropdown-trigger {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.user-dropdown-trigger:hover {
  background-color: #f5f5f5;
}

.user_detail {
  display: flex;
  align-items: center;
}

.user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0 1rem !important;
  text-decoration: none;
  line-height: 1.3;
}

.user-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--primary-dark);
  font-family: var(--font-bold);
}

.user-company {
  font-size: 12px;
  color: #666;
  font-weight: 400;
}

.user-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--primary-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  transition: transform 0.3s ease;
}

.user-avatar:hover {
  transform: scale(1.05);
}

.user-avatar .img-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
}

/* Dropdown menu */
.user-dropdown-menu {
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  box-shadow: var(--shadow-dropdown);
  min-width: 250px;
  margin-top: 0.5rem;
}

.user-dropdown-menu .dropdown-header {
  background-color: #f5f5f5;
  padding: 1rem;
  font-size: 14px;
  border-radius: 12px 12px 0 0;
}

.user-dropdown-menu .dropdown-header strong {
  color: var(--primary-dark);
  font-family: var(--font-bold);
}

.user-dropdown-menu .dropdown-divider {
  margin: 0;
  border-top: 1px solid #e0e0e0;
}

.user-dropdown-menu .dropdown-item {
  padding: 0.75rem 1.5rem;
  font-size: 14px;
  color: var(--primary-dark);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-dropdown-menu .dropdown-item i {
  color: var(--sidebar-bg);
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.user-dropdown-menu .dropdown-item:hover {
  background-color: #f5f5f5;
  color: var(--primary-dark);
  padding-left: 1.75rem;
}

.user-dropdown-menu .dropdown-item.logout-item:hover {
  background-color: #fff3cd;
}

.user-dropdown-menu .dropdown-item:active {
  background-color: var(--primary-yellow);
  color: var(--primary-dark);
}

/* Help icon */
.help_icon {
  display: flex;
  align-items: center;
  margin-right: 1rem;
}

.help_icon i {
  color: var(--sidebar-bg);
  font-size: 1.5em;
  cursor: pointer;
  transition: color 0.3s ease;
}

.help_icon i:hover {
  color: var(--primary-yellow);
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .navbar-brand-icon {
    width: 40px;
    height: 40px;
  }

  .navbar-brand-logo {
    height: 28px;
  }

  .user-info {
    display: none;
  }

  .user-avatar {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 576px) {
  .navbar-brand {
    padding: 0.25rem 0.5rem;
  }

  .navbar-brand-icon {
    width: 35px;
    height: 35px;
    padding: 6px;
  }

  .navbar-brand-logo {
    height: 24px;
  }

  .user-dropdown-trigger {
    padding: 0.5rem 1rem;
  }

  .user-avatar {
    width: 35px;
    height: 35px;
    padding: 6px;
  }
}

/* ==================== MAIN REBRANDING ==================== */

/* Control de altura y scroll */
html {
  height: 100%;
  overflow: hidden;
}

body {
  height: 100%;
  overflow: hidden;
  padding: 0;
  box-sizing: border-box;
}

body.app {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.app-body {
  flex: 1;
  display: flex;
  overflow: hidden;
  min-height: 0;
  gap: 15px;
  /* Espacio entre sidebar y main */
  padding: 10px;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  height: 100%;
  padding: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  margin: 0rem 0rem;
  padding: 0rem 0.5rem 0.5rem;
  font-size: medium;
  font-weight: 800;
  list-style: none;
  background-color: transparent;
  border-radius: 0;
  position: sticky;
  top: 0;
  z-index: 20;
  border: none;
  transition: left .25s, right .25s, width .25s;
  flex-shrink: 0;
}

.breadcrumb-item {
  color: var(--text-color);
}

.breadcrumb-item>a,
.breadcrumb-item>a:visited {
  color: var(--primary-dark);
  text-decoration: none;
}

.breadcrumb-item>a:hover,
.breadcrumb-item>a:focus {
  color: var(--text-color);
  text-decoration: none;
}

.breadcrumb-item.active {
  color: var(--text-color);
}

.container-title>span {
  font-size: x-large;
  color: var(--text-color);
  font-family: var(--font-bold);
}

#main-wrapper {
  flex: 1;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  padding: 0rem 0.5rem 0rem 0.5rem;
}

#main-wrapper>.animated {
  min-height: 100%;
}

/* Solo en vistas con tablas se mueve el scroll al contenedor de tabla. */
/* #main-wrapper:has(.table-responsive),
#main-wrapper:has(.dataTables_wrapper) {
  overflow: hidden;
} */

#main-wrapper:has(.table-responsive)>.animated,
#main-wrapper:has(.dataTables_wrapper)>.animated {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#main-wrapper:has(.table-responsive-xxl)>.animated.fadeIn>.card-fill-height {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  width: 100%;
}

#main-wrapper:has(.table-responsive-xxl)>.animated.fadeIn {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* El scroll debe vivir dentro de la tabla, no estirar el card infinitamente */
.card-fill-height .table-responsive-xxl {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  overflow: auto;
}

/* El scroll debe ocurrir dentro de las tablas, no en todo el main. */
#main-wrapper .table-responsive {
  max-height: calc(100vh - 260px);
  overflow: auto;
}

#main-wrapper .dataTables_wrapper {
  min-height: 0;
}

.card-fill-height .dataTables_wrapper {
  width: 100%;
  min-width: 0;
}

#main-wrapper .dataTables_wrapper .dt-scroll-body,
#main-wrapper .dataTables_wrapper .dataTables_scrollBody {
  max-height: calc(100vh - 300px) !important;
  overflow: auto !important;
}

/* Convierte .animated.fadeIn en flex-column si contiene cualquier tabla
   (con o sin DataTables, con o sin -xxl) */
#main-wrapper:has(.table-responsive, .table-responsive-xxl, .dataTables_wrapper)>.animated.fadeIn {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* El contenedor blanco se estira, sin importar qué tipo de wrapper de tabla tenga adentro */
#main-wrapper>.animated.fadeIn>.card-fill-height {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* El scroll queda contenido dentro del wrapper de tabla, sea cual sea */
.card-fill-height .table-responsive,
.card-fill-height .table-responsive-xxl {
  flex: 1;
  overflow: auto;
  overflow-x: hidden;
}

/* 1. Arreglo flex-shrink horizontal (afecta a Tablets y en general a todos) */
.card-fill-height,
.card-fill-height .table-responsive,
.card-fill-height .table-responsive-xxl {
  min-width: 0;
}

/* Ajustes para pantallas de menor altura */
@media only screen and (max-height: 700px) {
  body {
    padding: 10px;
  }

  body.app {
    height: calc(100% - 20px);
  }

  .app-body {
    gap: 10px;
  }

  .navbar {
    margin-bottom: 10px;
  }

  #main-wrapper {
    padding: 0.5rem;
  }

  .breadcrumb {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}

@media only screen and (max-height: 600px) {
  body {
    padding: 5px;
  }

  body.app {
    height: calc(100% - 10px);
  }

  .app-body {
    gap: 5px;
  }

  .navbar {
    margin-bottom: 5px;
  }

  #main-wrapper {
    padding: 0.25rem;
  }

  .card {
    margin-bottom: 0.5rem;
  }
}

/* Ajustes responsive para dispositivos móviles */
@media (max-width: 991px) {
  body {
    padding: 10px;
  }

  body.app {
    height: calc(100% - 20px);
  }

  .app-body {
    gap: 10px;
  }

  .navbar {
    margin-bottom: 10px;
  }
}

@media (max-width: 576px) {
  body {
    padding: 5px;
  }

  body.app {
    height: calc(100% - 10px);
  }

  .app-body {
    gap: 5px;
  }

  .navbar {
    margin-bottom: 5px;
    border-radius: 10px;
  }

  .main,
  .sidebar {
    border-radius: 10px;
  }
}

/* ==================== EMPLOYEE REBRANDING ==================== */

/* Asegurar que el contenido no se desborde */
table.dataTable td.actions-column {
  white-space: nowrap;
  vertical-align: middle !important;
  padding: 0.75rem 0.5rem !important;
}

/* .table td,
.table th {
  padding: 0.75rem;
  vertical-align: top;
  border-top: none;
} */

.table thead th {
  vertical-align: bottom;
  border-bottom: none;
}

.table tbody td {
  vertical-align: middle;
}

#empleados2 thead,
#empleados thead {
  border-bottom: none;
  color: var(--background-beige);
  background-color: var(--primary-dark);
}

/* Bootstrap 5 aplica background-color directamente en cada th/td via
   `.table > :not(caption) > * > *`, por lo que el !important es necesario
   para que el fondo oscuro del thead se aplique en las celdas. */
#empleados2 thead th,
#empleados thead th {
  background-color: var(--primary-dark) !important;
  color: #FFF !important;
  font-family: var(--font-bold);
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

#empleados2,
#empleados {
  width: 100% !important;
  border-radius: 16px;
  border: 1px solid #c8ced3 !important;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

#empleados2 tbody td,
#empleados2 tbody td a {
  color: #000;

  /* Body XS (p2) */
  font-family: var(--font-normal);
  font-size: 15px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

#empleados2 thead tr:first-child th:first-child,
#empleados thead tr:first-child th:first-child {
  border-radius: 15px 0 0 0;
}

#empleados2 thead tr:first-child th:last-child,
#empleados thead tr:first-child th:last-child {
  border-radius: 0 15px 0 0;
}

#table-assign-punchsites thead {
  border-bottom: none;
  color: var(--background-beige);
  background-color: var(--primary-dark);
}

#table-assign-punchsites {
  width: 100% !important;
  border-radius: 16px;
  border: 1px solid var(--sidebar-hover);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

#table-assign-punchsites thead tr th:first-child {
  border-radius: 20px 0 0 0;
  width: 32px;
}

#table-assign-punchsites thead tr th:last-child {
  border-radius: 0 20px 0 0;
}

#table-assign-punchsites tbody tr td:first-child {
  text-align: center;
}

#empleados_disabled {
  width: 100% !important;
  border-radius: 16px;
  border: 1px solid var(--sidebar-hover);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

#empleados_disabled thead {
  width: 100% !important;
  border-bottom: none;
  color: var(--background-beige);
  background-color: var(--primary-dark);
  border-radius: 20px 20px 0 0;
}

#empleados_disabled thead tr th:first-child {
  border-radius: 20px 0 0 0;
}

#empleados_disabled thead tr th:last-child {
  border-radius: 0 20px 0 0;
}

#employee_profile .employee-profile-picture-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  align-self: flex-start;
  height: 100%;
}

#employee_profile .employee-profile-picture {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 220px;
  object-position: top center;
}

/* Employee Profile - Enrollment modal and status */
.loading_status>div,
.loading_status>div>div {
  width: 20px;
  height: 20px;
}

.loading_status {
  float: right;
  padding-left: 3px;
  margin-top: -5px;
  display: none;
}

.preview-wrap {
  margin-top: 8px;
  border-radius: 12px;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 2px dashed;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preview-wrap:hover,
.preview-wrap.drag-over {
  transform: translateY(-1px);
}

.preview-wrap.has-image {
  border-style: solid;
}

.preview-wrap img {
  max-width: 100%;
  max-height: 420px;
  display: block;
}

.image-rotation-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.image-rotation-auto {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-weight: 600;
}

.placeholder-text {
  padding: 20px;
  text-align: center;
}

.placeholder-text strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.hidden-file-input {
  display: none;
}

.btn-camera {
  padding: 6px 10px;
  margin-right: 6px;
}

.camera-panel {
  margin-top: 10px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.camera-selector-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
}

.camera-selector-label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.camera-video {
  width: 100%;
  max-height: 380px;
  display: block;
  object-fit: cover;
}

.camera-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px;
}

.status-box {
  margin-top: 14px;
  border-radius: 8px;
  padding: 10px 12px;
  border: 1px solid;
  min-height: 44px;
}

#enrollEmployeeModal .modal-content {
  position: relative;
}

.enroll-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.82);
  border-radius: inherit;
}

.enroll-loading-overlay.is-visible {
  display: flex;
}

.enroll-loading-dialog {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

@media (max-width: 767px) {
  #enrollEmployeeModal .modal-footer {
    text-align: center;
  }

  #btnUpload {
    margin-bottom: 8px;
  }
}

/* ==================== PUNCHSITE REBRANDING ==================== */

/* .table td,
.table th {
  padding: 0.75rem;
  vertical-align: top;
  border-top: none;
} */

.table thead th {
  vertical-align: bottom;
  border-bottom: none;
}

/* Contenedor general de los botones */
div.dt-buttons.btn-group {
  display: flex;
  flex-wrap: wrap;
}

.btn-group .buttons-collection {
  border-radius: 16px !important;
}

#tablaSucursales .toggle-active-punchsite .spinner-border {
  display: inline-block;
  width: 14px;
  height: 14px;
  vertical-align: middle;
}

#bulkPunchsites .bulk-company { overflow-wrap: anywhere; }
#bulkPunchsites .bulk-transfer { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); gap: 16px; align-items: center; }
#bulkPunchsites .bulk-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 42px; margin: 0; font-size: 15px; padding: 5px 6px; }
#bulkPunchsites .bulk-list-select-all { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0; cursor: pointer; padding: 5px 6px; }
#bulkPunchsites .bulk-list-select-all .form-check-input { flex: 0 0 auto; width: 1.3rem; height: 1.3rem; margin: 0; }
#bulkPunchsites input[type="checkbox"] { width: 1.3rem; height: 1.3rem; }
#bulkPunchsites .bulk-list { height: 300px; overflow-y: auto; border: 1px solid #dee2e6; border-radius: 6px; background: #fff; }
#bulkPunchsites .bulk-list-wrap { position: relative; }
#bulkPunchsites .bulk-list-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; background: #fff; border: 1px solid #dee2e6; border-radius: 6px; }
#bulkPunchsites .bulk-list-loading[hidden] { display: none; }
#bulkPunchsites .bulk-list-loading .spinner-border { display: inline-block; width: 2rem; height: 2rem; }
#bulkPunchsites #bulkDeleteTable { margin-bottom: 0; }
#bulkPunchsites #bulkDeleteTable td,
#bulkPunchsites #bulkLeftTable td,
#bulkPunchsites #bulkRightTable td { vertical-align: middle; overflow-wrap: anywhere; }
#bulkPunchsites #bulkDeleteTable td:first-child,
#bulkPunchsites #bulkLeftTable td:first-child,
#bulkPunchsites #bulkRightTable td:first-child { width: 2.5rem; }
#bulkPunchsites .bulk-delete-checkbox,
#bulkPunchsites .bulk-status-checkbox { margin: 0; }
#bulkPunchsites #bulkDeleteTable_wrapper .dt-info,
#bulkPunchsites #bulkLeftTable_wrapper .dt-info,
#bulkPunchsites #bulkRightTable_wrapper .dt-info { padding-top: 8px; }
#bulkPunchsites #bulkDeleteTable_wrapper .dt-paging,
#bulkPunchsites #bulkLeftTable_wrapper .dt-paging,
#bulkPunchsites #bulkRightTable_wrapper .dt-paging { padding-top: 4px; }
#bulkPunchsites #bulkLeftTable,
#bulkPunchsites #bulkRightTable { margin-bottom: 0; }
#bulkPunchsites #bulkLeftTable th,
#bulkPunchsites #bulkLeftTable td,
#bulkPunchsites #bulkRightTable th,
#bulkPunchsites #bulkRightTable td { height: 38px; padding: 4px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#bulkPunchsites .form-check { display: flex; align-items: center; gap: 8px; padding: 5px 6px; min-height: 32px; }
#bulkPunchsites .form-check .form-check-input { flex: 0 0 auto; width: 1.3rem; height: 1.3rem; margin: 0; }
#bulkPunchsites .bulk-arrows { display: flex; flex-direction: column; gap: 12px; }
#bulkPunchsites .bulk-arrows button { width: 44px; height: 44px; padding: 8px; border: 2px solid var(--primary-dark) !important; color: var(--primary-dark); }
#bulkPunchsites .bulk-arrows button:not(:disabled):hover { background-color: transparent !important; border-color: var(--primary-dark) !important; color: var(--primary-dark) !important; box-shadow: none; }
#bulkPunchsites .bulk-arrows button:disabled { border-color: #c8c8c8 !important; color: #8c8c8c; opacity: 1; cursor: not-allowed; }
#bulkPunchsites .bulk-arrows button:focus-visible { box-shadow: 0 0 0 0.2rem rgba(25, 0, 7, 0.25); }
#bulkPunchsites .modal-footer { gap: 8px; }
#bulkPunchsites .bulk-summary { flex: 1 1 180px; font-size: 14px; }
#bulkPunchsites #bulkSiteSaveSpinner { display: inline-block; flex: 0 0 auto; }
#bulkPunchsites #bulkSiteSaveSpinner[hidden] { display: none; }
#bulkPunchsites .nav-tabs button { min-height: 44px; }
#bulkPunchsiteConfirm .bulk-confirm-names { max-height: 140px; overflow-y: auto; overflow-wrap: anywhere; }
#bulkPunchsiteConfirm .modal-body { overflow-wrap: anywhere; }
@media (max-width: 991.98px) {
    #bulkPunchsites .bulk-transfer { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    #bulkPunchsites .bulk-arrows { flex-direction: row; justify-content: center; }
    #bulkPunchsites .bulk-arrows .material-symbols-rounded { transform: rotate(90deg); }
}
@media (max-width: 575.98px) {
  #bulkPunchsites #bulkLeftTable,
  #bulkPunchsites #bulkRightTable { min-width: 36rem; }
}

/* ==================== DATATABLES — BOTONES DE EXPORTACIÓN (GLOBAL) ==================== */
/* Aplica a todas las tablas que usan dataTable3 (Excel, PDF, Imprimir, PageLength) */

/* Alinear verticalmente botones y buscador en la misma fila */
.dt-container>div.row:first-child {
  align-items: center;
}

/* Contenedor de botones: flex con gap */
div.dt-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0.5rem 0;
}

/* Cada botón: estilo btn-secondary uniforme, redondeado individual */
div.dt-buttons>.btn,
div.dt-buttons>.btn-group>.btn {
  background-color: transparent !important;
  color: var(--primary-dark) !important;
  border: 2px solid var(--primary-dark) !important;
  font-size: 14px !important;
  border-radius: var(--border-radius-card) !important;
  margin: 0 !important;
}

div.dt-buttons>.btn:hover,
div.dt-buttons>.btn-group>.btn:hover {
  background-color: var(--primary-dark) !important;
  color: var(--white) !important;
  border-color: var(--primary-dark) !important;
}

/* Dropdown del selector de cantidad */
.dt-length {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* #tablaSucursales thead {
  border-bottom: none;
  color: var(--background-beige);
  background-color: var(--primary-dark);
} */

/* #tablaSucursales thead th {
    background-color: var(--primary-dark) !important;
    color: #FFF !important;
    font-family: var(--font-bold);
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
} */

/* Mantener solo scroll horizontal en el wrapper */
.table-responsive-xxl:has(#tablaSucursales) {
  overflow-x: hidden;
  overflow-y: visible;
  max-height: none;
}

#tablaSucursales thead tr th:first-child {
  border-radius: 16px 0 0 0;
}

#tablaSucursales thead tr th:last-child {
  border-radius: 0 16px 0 0;
}

#tablaSucursales {
  width: 100% !important;
  border-radius: 16px;
  border: 1px solid #c8ced3 !important;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

#tablaSucursales thead,
#tablaSucursales tbody {
  display: block;
  width: 100%;
}

#tablaSucursales tbody {
  max-height: var(--tabla-sucursales-body-max-height, calc(100vh - 405px));
  overflow-y: auto;
  overflow-x: hidden;
}

#tablaSucursales thead tr,
#tablaSucursales tbody tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}

#tablaSucursales tbody td,
#tablaSucursales tbody td a {
  color: #000;
  font-family: var(--font-normal);
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

/* Ajuste de anchos para evitar que Acciones desborde al resto de columnas */
#tablaSucursales thead tr th:nth-child(1),
#tablaSucursales tbody tr td:nth-child(1) {
  width: 18%;
}

#tablaSucursales thead tr th:nth-child(2),
#tablaSucursales tbody tr td:nth-child(2) {
  width: 30%;
}

#tablaSucursales thead tr th:nth-child(3),
#tablaSucursales tbody tr td:nth-child(3) {
  width: 12%;
}

#tablaSucursales thead tr th:nth-child(4),
#tablaSucursales tbody tr td:nth-child(4) {
  width: 16%;
}

#tablaSucursales thead tr th:nth-child(5),
#tablaSucursales tbody tr td:nth-child(5) {
  width: 24%;
}

/* Permite cortar contenido largo para que no fuerce overflow horizontal */
#tablaSucursales tbody tr td:nth-child(1),
#tablaSucursales tbody tr td:nth-child(2),
#tablaSucursales tbody tr td:nth-child(3) {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#tablaSucursales tbody tr td:nth-child(1) a {
  display: inline-block;
  max-width: 100%;
}

/* Compactar acciones para que entren dentro de su columna */
#tablaSucursales tbody tr td:nth-child(5) {
  white-space: nowrap;
  text-align: center;
}

#tablaSucursales tbody tr td:nth-child(5) .btn-group {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 4px !important;
  justify-content: center;
  align-items: center;
}

#tablaSucursales tbody tr td:nth-child(5) .material-symbols-rounded,
#tablaSucursales tbody tr td:nth-child(5) .material-symbols-outlined {
  font-size: 18px;
  line-height: 1;
}

/* Estilos para los inputs de búsqueda en el thead de tablaSucursales */
#tablaSucursales thead th,
#employees thead th {
  position: relative;
  padding: 10px;
}

#tablaSucursales thead .table_search,
#empleados thead .table_search,
#employees thead .table_search {
  width: 100%;
  margin-top: 8px;
}

#tablaSucursales_disabled {
  width: 100% !important;
  border-radius: 16px;
  border: 1px solid var(--sidebar-hover);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

#tablaSucursales_disabled thead {
  width: 100% !important;
  border-bottom: none;
  color: var(--background-beige);
  background-color: var(--primary-dark);
  border-radius: 20px 20px 0 0;
}

#tablaSucursales_disabled thead tr th:first-child {
  border-radius: 20px 0 0 0;
}

#tablaSucursales_disabled thead tr th:last-child {
  border-radius: 0 20px 0 0;
}

/* ==================== EN PUNCHSITE REBRANDING ==================== */

/* ==================== DEVICES -MORPHO- REBRANDING ==================== */

/* #morphos thead {
  border-bottom: none;
  color: var(--background-beige);
  background-color: var(--primary-dark);
} */

/* #morphos thead th {
    background-color: var(--primary-dark) !important;
    color: #FFF !important;
    font-family: var(--font-bold);
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
} */

#morphos thead tr th:first-child {
  border-radius: 16px 0 0 0;
}

#morphos thead tr th:last-child {
  border-radius: 0 16px 0 0;
}

#morphos>thead>tr>th:first-child {
  width: 32px;
}

#morphos {
  width: 100% !important;
  border-radius: 16px;
  border: 1px solid #c8ced3 !important;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

/* Scroll interno: solo el tbody se desplaza, el thead queda fijo */
#morphos thead,
#morphos tbody {
  display: block;
  width: 100%;
}

#morphos tbody {
  max-height: var(--tabla-morphos-body-max-height, calc(100vh - 430px));
  overflow-y: auto;
  overflow-x: hidden;
}

#morphos thead tr,
#morphos tbody tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}

/* Anchos de columna: Asignar | Nombre | Estado | Sucursales | Acciones */
#morphos thead tr th:nth-child(1),
#morphos tbody tr td:nth-child(1) {
  width: 5%;
  text-align: center;
}

#morphos thead tr th:nth-child(2),
#morphos tbody tr td:nth-child(2) {
  width: 30%;
}

#morphos thead tr th:nth-child(3),
#morphos tbody tr td:nth-child(3) {
  width: 18%;
}

#morphos thead tr th:nth-child(4),
#morphos tbody tr td:nth-child(4) {
  width: 27%;
}

#morphos thead tr th:nth-child(5),
#morphos tbody tr td:nth-child(5) {
  width: 20%;
  text-align: center;
}

/* Evitar scroll horizontal en el wrapper externo */
.table-responsive-xxl:has(#morphos) {
  overflow-x: hidden;
  overflow-y: visible;
  max-height: none;
}

#morphos tbody td,
#morphos tbody td a {
  color: #000;
  font-family: var(--font-normal);
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.device_action_loading>div,
.loading_status_device>div,
.device_action_loading>div>div,
.loading_status_device>div>div {
  width: 20px;
  height: 20px;
}

.device_action_loading {
  float: right;
  display: none;
}

#set_license-btn {
  border-radius: var(--border-radius-card) !important;
}

/* Morpho: botones de acción individuales (se mantienen por especificidad) */

.dt-buttons button.morpho-action-btn {
  border-radius: var(--border-radius-card) !important;
  margin: 0 2px;
}

/* ==================== END DEVICES -MORPHO- REBRANDING ==================== */

/* ==================== DEVICES -TABLETS- REBRANDING ==================== */

/* Usar una regla más específica para anular los estilos de DataTables */

/* #tablets thead {
  border-bottom: none;
  color: var(--background-beige);
  background-color: var(--primary-dark);
}

#tablets thead th {
    background-color: var(--primary-dark) !important;
    color: #FFF !important;
    font-family: var(--font-bold);
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
} */

#tablets {
  width: 100% !important;
  border-radius: 16px;
  border: 1px solid #c8ced3 !important;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

#tablets tbody td,
#tablets tbody td a {
  color: #000;

  /* Body XS (p2) */
  font-family: var(--font-normal);
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

#tablets thead tr th:first-child {
  border-radius: 20px 0 0 0;
}

#tablets thead tr th:last-child {
  border-radius: 0 20px 0 0;
}

/* Tablets: gap heredado de regla global div.dt-buttons */

/* Para que el texto sea legible en el fondo azul */
#tablets.dataTable tbody tr.selected td>a,
#tablets.dataTable tbody tr.selected td>div>a,
#tablets.dataTable tbody tr.selected td>span,
#tablets.dataTable tbody tr.selected:hover {
  color: white !important;
}

.spinner-border {
  display: none;
}

.device-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  /* Asegura que ocupe todo el ancho de la celda */
}

/* Estilos para el modal de contraseña */
#confirmPassword .password-container {
  max-width: 400px;
  margin: 0 auto;
}

#confirmPassword #password {
  font-family: "Consolas", monospace;
  letter-spacing: 1px;
  font-size: 1.2rem;
  background-color: #f8f9fa;
}

#confirmPassword .modal-content {
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#confirmPassword .modal-header {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

#confirmPassword .btn {
  border-radius: 4px;
}

#confirmPassword #copy-success {
  height: 20px;
  font-size: 0.85rem;
}

/* Animación para el botón de generar otra contraseña */
#generate-password:hover i {
  animation: spin 1s linear;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Efecto de hover para el botón de copiar */
#copy-password:hover {
  background-color: #f0f0f0;
}

/* Mejora visual para el input de contraseña */
#password:focus {
  box-shadow: none;
  border-color: #80bdff;
}

/* ==================== END DEVICES -TABLETS- REBRANDING ==================== */

/* ==================== PUNCHSITE DEVICES REBRANDING ==================== */

/* #devices thead {
  border-bottom: none;
  color: var(--background-beige);
  background-color: var(--primary-dark);
}

#devices thead th {
  background-color: var(--primary-dark) !important;
  color: #fff !important;
  font-family: var(--font-bold);
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
} */

#devices,
#phones thead tr th:first-child {
  border-radius: 15px 0 0 0;
}

#devices,
#phones thead tr th:last-child {
  border-radius: 0 15px 0 0;
}

#devices,
#phones {
  width: 100% !important;
  border-radius: 16px;
  border: 1px solid #c8ced3 !important;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

/* #devices tbody td,
#devices tbody td a {
  color: #000;
  font-family: var(--font-normal);
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
} */

/* ==================== END PUNCHSITE DEVICES REBRANDING ==================== */

/* ==================== PUNCHSITE ENROLL EMPLOYEES REBRANDING ==================== */

#employees thead tr th:first-child {
  border-radius: 16px 0 0 0;
}

#employees thead tr th:last-child {
  border-radius: 0 16px 0 0;
}

#employees {
  width: 100% !important;
  border-radius: 16px;
  border: 1px solid #c8ced3 !important;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

#employees tbody td,
#employees tbody td a {
  color: #000;
  font-family: var(--font-normal);
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

/* ==================== END PUNCHSITE ENROLL EMPLOYEES REBRANDING ==================== */

/* ==================== REPORTS REBRANDING ==================== */

td.details-control {
  background: url('/static/images/dashboard/details_open.png') no-repeat center center;
  cursor: pointer;
}

tr.details td.details-control {
  background: url('/static/images/dashboard/details_close.png') no-repeat center center;
}

.table .table {
  background-color: #f5f5f5;
}

#rotatemplates-table {
  border: 1px solid #d8d8d8;
  border-radius: 16px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

#rotatemplates-table thead th:first-child {
  border-top-left-radius: 16px;
}

#rotatemplates-table thead th:last-child {
  border-top-right-radius: 16px;
}

#rotatemplates-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 16px;
}

#rotatemplates-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 16px;
}

#punches-reports thead {
  border-bottom: none;
  color: var(--background-beige);
  background-color: var(--primary-dark);
}

/* Checkbox "seleccionar todos" — mismo aspecto que los del tbody */
#punches-reports thead input[type="checkbox"] {
  background-color: var(--white) !important;
  border-color: var(--primary-dark) !important;
  border-radius: 8px !important;
}

/* Checkbox "seleccionar todos" morphos — mismo aspecto que los del tbody */
#morphos thead input[type="checkbox"] {
  background-color: var(--white) !important;
  border-color: var(--primary-dark) !important;
  border-radius: 8px !important;
}

#punches-reports thead input[type="checkbox"]:checked::after {
  color: var(--primary-dark) !important;
}

#punches-reports thead tr th:first-child {
  border-radius: 20px 0 0 0;
}

#punches-reports thead tr th:last-child {
  border-radius: 0 20px 0 0;
}

#punches-reports {
  width: 100% !important;
  border-radius: 16px;
  border: 1px solid var(--sidebar-hover);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

#managers thead {
  border-bottom: none;
  color: var(--background-beige);
  background-color: var(--primary-dark);
}

#managers thead th {
  background-color: var(--primary-dark) !important;
  color: #FFF !important;
  font-family: var(--font-bold);
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

#managers thead tr th:first-child {
  border-radius: 20px 0 0 0;
}

#managers thead tr th:last-child {
  border-radius: 0 20px 0 0;
}

#managers {
  width: 100% !important;
  border-radius: 16px;
  border: 1px solid var(--sidebar-hover);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

#managers tbody td,
#managers tbody td a {
  color: #000;

  /* Body XS (p2) */
  font-family: var(--font-normal);
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

/* #permission_profile_table thead {
    border-bottom: none;
    color: var(--background-beige);
    background-color: var(--primary-dark);
} */

/* #permission_profile_table thead th {
    background-color: var(--primary-dark) !important;
    color: #FFF !important;
    font-family: var(--font-bold);
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
} */

#permission_profile_table thead tr th:first-child {
  border-radius: 16px 0 0 0;
}

#permission_profile_table thead tr th:last-child {
  border-radius: 0 16px 0 0;
}

#permission_profile_table {
  width: 100% !important;
  border-radius: 16px;
  border: 1px solid #c8ced3 !important;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

#permission_profile_table tbody td,
#permission_profile_table tbody td a {
  color: #000;
  font-family: var(--font-normal);
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

/* #employees-table thead {
    border-bottom: none;
    color: var(--background-beige);
    background-color: var(--primary-dark);
} */

/* #employees-table thead tr th:first-child {
    border-radius: 20px 0 0 0;
}

#employees-table thead tr th:last-child {
    border-radius: 0 20px 0 0;
} */

/* #employees-table {
    width: 100% !important;
    border-radius: 16px;
    border: 1px solid var(--sidebar-hover);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
} */

#report-table thead {
  border-bottom: none;
  color: var(--background-beige);
  background-color: var(--primary-dark);
}

#report-table thead tr th:first-child {
  border-radius: 20px 0 0 0;
}

#report-table thead tr th:last-child {
  border-radius: 0 20px 0 0;
}

#report-table {
  width: 100% !important;
  border-radius: 16px;
  border: 1px solid var(--sidebar-hover);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

#employee-punchsites thead {
  border-bottom: none;
  color: var(--background-beige);
  background-color: var(--primary-dark);
}

#employee-punchsites thead tr th:first-child {
  border-radius: 20px 0 0 0;
}

#employee-punchsites thead tr th:last-child {
  border-radius: 0 20px 0 0;
}

#employee-punchsites {
  width: 100% !important;
  border-radius: 16px;
  border: 1px solid var(--sidebar-hover);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

.buttons-uncheck {
  border-radius: 0px 16px 16px 0px !important;
}

/* ==================== END REPORTS REBRANDING ==================== */

/* ==================== TABLAS PENDIENTES DE REBRANDING ==================== */
/* Aplica el mismo estilo que tablaSucursales/morphos/empleados2             */

#counting-rules thead,
#exceptions thead,
#month-timecard thead,
#table-assign-employees thead,
#table-assign-managers thead,
#table-assign-morphos thead,
#table-assign-sites thead,
#tags thead,
#subcompanies thead,
#holiday_table thead,
#paycode_table thead,
#actual_employees thead,
#morpho-configs thead,
#printers thead,
#timecard-employees thead,
#punches-timecard-table thead {
  border-bottom: none;
  color: var(--background-beige);
  background-color: var(--primary-dark);
}

#counting-rules thead th,
#exceptions thead th,
#month-timecard thead th,
#table-assign-employees thead th,
#table-assign-managers thead th,
#table-assign-morphos thead th,
#table-assign-sites thead th,
#tags thead th,
#subcompanies thead th,
#holiday_table thead th,
#paycode_table thead th,
#actual_employees thead th,
#morpho-configs thead th,
#printers thead th,
#timecard-employees thead th,
#punches-timecard-table thead th {
  background-color: var(--primary-dark) !important;
  color: #FFF !important;
  font-family: var(--font-bold);
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

#counting-rules thead tr th:first-child,
#exceptions thead tr th:first-child,
#month-timecard thead tr th:first-child,
#table-assign-employees thead tr th:first-child,
#table-assign-managers thead tr th:first-child,
#table-assign-morphos thead tr th:first-child,
#table-assign-sites thead tr th:first-child,
#tags thead tr th:first-child,
#subcompanies thead tr th:first-child,
#holiday_table thead tr th:first-child,
#paycode_table thead tr th:first-child,
#actual_employees thead tr th:first-child,
#morpho-configs thead tr th:first-child,
#printers thead tr th:first-child,
#timecard-employees thead tr th:first-child,
#punches-timecard-table thead tr th:first-child {
  border-radius: 20px 0 0 0;
}

#counting-rules thead tr th:last-child,
#exceptions thead tr th:last-child,
#month-timecard thead tr th:last-child,
#table-assign-employees thead tr th:last-child,
#table-assign-managers thead tr th:last-child,
#table-assign-morphos thead tr th:last-child,
#table-assign-sites thead tr th:last-child,
#tags thead tr th:last-child,
#subcompanies thead tr th:last-child,
#holiday_table thead tr th:last-child,
#paycode_table thead tr th:last-child,
#actual_employees thead tr th:last-child,
#morpho-configs thead tr th:last-child,
#printers thead tr th:last-child,
#timecard-employees thead tr th:last-child,
#punches-timecard-table thead tr th:last-child {
  border-radius: 0 20px 0 0;
}

#counting-rules,
#exceptions,
#month-timecard,
#table-assign-employees,
#table-assign-managers,
#table-assign-morphos,
#table-assign-sites,
#tags,
#subcompanies,
#holiday_table,
#paycode_table,
#actual_employees,
#morpho-configs,
#printers,
#timecard-employees,
#punches-timecard-table {
  width: 100% !important;
  border-radius: 16px;
  border: 1px solid var(--sidebar-hover);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

#counting-rules tbody td,
#counting-rules tbody td a,
#exceptions tbody td,
#exceptions tbody td a,
#month-timecard tbody td,
#month-timecard tbody td a,
#table-assign-employees tbody td,
#table-assign-employees tbody td a,
#table-assign-managers tbody td,
#table-assign-managers tbody td a,
#table-assign-morphos tbody td,
#table-assign-morphos tbody td a,
#table-assign-sites tbody td,
#table-assign-sites tbody td a,
#tags tbody td,
#tags tbody td a,
#subcompanies tbody td,
#subcompanies tbody td a,
#holiday_table tbody td,
#holiday_table tbody td a,
#paycode_table tbody td,
#paycode_table tbody td a,
#actual_employees tbody td,
#actual_employees tbody td a,
#morpho-configs tbody td,
#morpho-configs tbody td a,
#printers tbody td,
#printers tbody td a,
#timecard-employees tbody td,
#timecard-employees tbody td a,
#punches-timecard-table tbody td,
#punches-timecard-table tbody td a {
  color: #000;
  font-family: var(--font-normal);
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

/* ==================== END TABLAS PENDIENTES DE REBRANDING ==================== */

/* ==================== REJECTED PUNCHES TABLE ==================== */
#punchsites_employees thead {
  border-bottom: none;
  color: var(--background-beige);
  background-color: var(--primary-dark);
}

#punchsites_employees thead th {
  background-color: var(--primary-dark) !important;
  color: #FFF !important;
  font-family: var(--font-bold);
  font-size: 14px;
  font-weight: 700;
  line-height: normal;
}

#punchsites_employees thead tr th:first-child {
  border-radius: 20px 0 0 0;
}

#punchsites_employees thead tr th:last-child {
  border-radius: 0 20px 0 0;
}

#punchsites_employees {
  width: 100% !important;
  border-radius: 16px;
  border: 1px solid var(--sidebar-hover);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

#punchsites_employees tbody td,
#punchsites_employees tbody td a {
  color: #000;
  font-family: var(--font-normal);
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
}

/* Buscador estilo employees para punchsites_employees */
#punchsites_employees_wrapper .dt-search {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

#punchsites_employees_wrapper.employees-search-ready .dt-search {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

#punchsites_employees_wrapper .dt-search .employees-search-label {
  margin: 0 0 0 auto;
  width: 353px;
  max-width: 100%;
}

#punchsites_employees_wrapper .dt-search .employees-search-shell {
  display: flex;
  width: 353px;
  max-width: 100%;
  padding: 3px 15px;
  align-items: center;
  gap: 12px;
  border-radius: 24px;
  border: 1.7px solid var(--primary-dark);
  background: #FFF;
}

#punchsites_employees_wrapper .dt-search .employees-search-shell:focus-within {
  border-color: var(--primary-dark);
  box-shadow: none;
}

#punchsites_employees_wrapper .dt-search .employees-search-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#punchsites_employees_wrapper .dt-search .employees-search-input-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1 0 0;
  min-width: 0;
}

#punchsites_employees_wrapper .dt-search input.employees-search-input {
  border: none;
  box-shadow: none;
  background: transparent;
  width: 100%;
  height: 24px;
  min-height: 24px;
  margin: 0;
  padding: 0;
  color: #9d9a95;
  font-family: var(--font-medium);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  caret-color: #6a6762;
  box-sizing: border-box;
}

#punchsites_employees_wrapper .dt-search input.employees-search-input::placeholder {
  color: #9d9a95 !important;
  font-family: var(--font-medium);
  font-size: 16px !important;
}

#punchsites_employees_wrapper .dt-search input.employees-search-input:focus {
  outline: none;
  border: none !important;
  box-shadow: none;
}

#punchsites_employees_wrapper .dt-search .employees-search-clear {
  display: inline-flex;
  align-items: center;
  flex: 1 0 0;
  border: none;
  background: transparent;
  padding: 0;
  margin-left: 8px;
  cursor: pointer;
  max-width: 24px;
}

#punchsites_employees_wrapper .dt-search .employees-search-clear.is-hidden {
  visibility: hidden;
  pointer-events: none;
}

#rejected-punches-table thead {
  border-bottom: none;
  color: var(--background-beige);
  background-color: var(--primary-dark);
}

#rejected-punches-table thead th {
  background-color: var(--primary-dark) !important;
  color: #FFF !important;
  font-family: var(--font-bold);
  font-size: 14px;
  font-weight: 700;
  line-height: normal;
}

#rejected-punches-table thead tr th:first-child {
  border-radius: 20px 0 0 0;
}

#rejected-punches-table thead tr th:last-child {
  border-radius: 0 20px 0 0;
}

#rejected-punches-table {
  width: 100% !important;
  border-radius: 16px;
  border: 1px solid var(--sidebar-hover);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

#rejected-punches-table tbody td {
  color: var(--text-color);
  font-family: var(--font-normal);
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
}

/* ==================== SIDEBAR REBRANDING ==================== */

.sidebar {
  display: flex;
  flex-direction: column;
  padding: 0;
  color: var(--text-color);
  background: var(--primary-dark);
  transition:
    margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    min-width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    flex 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 20px;
  height: 100%;
  overflow: hidden;
}

.sidebar .sidebar-nav {
  position: relative;
  -ms-flex: 1;
  flex: 1;
  overflow-x: hidden;
  overflow-y: hidden;
  width: 200px;
}

.sidebar-nav {
  transition: width 0.32s ease;
}

@media (min-width: 992px) {
  .sidebar-fixed .sidebar {
    position: relative;
    /* Cambiado de fixed a relative */
    z-index: 1019;
    width: 200px;
    height: 100%;
    overflow: hidden;
  }
}

@media (min-width: 992px) {
  html:not([dir="rtl"]) .sidebar-lg-show .sidebar {
    margin-left: 0;
    /* El margen se maneja con gap en app-body */
    overflow: hidden;
  }
}

html:not([dir="rtl"]) .sidebar {
  margin-left: -215px;
  overflow: hidden;
}

/* Cuando el sidebar está visible en desktop */
@media (min-width: 992px) {
  html:not([dir="rtl"]) .sidebar-lg-show .sidebar {
    margin-left: 0;
    overflow: hidden;
  }
}

@media (min-width: 992px) {
  .sidebar-minimized .sidebar .sidebar-minimizer {
    position: fixed;
    bottom: 10px;
    width: 50px;
    height: 50px;
    border-radius: 20px;
    background-color: transparent;
    overflow: hidden;
  }
}

/* Sidebar minimizado - Solo aplica cuando NO está lg-show */
@media (min-width: 992px) {
  html:not([dir="rtl"]) .sidebar-minimized:not(.sidebar-lg-show) .sidebar {
    margin-left: -65px;
  }
}

/* Cuando está minimizado Y visible - priorizar visible */
@media (min-width: 992px) {
  html:not([dir="rtl"]) .sidebar-lg-show.sidebar-minimized .sidebar {
    margin-left: 0 !important;
  }
}

@media (min-width: 992px) {
  .sidebar-minimized.sidebar-fixed .sidebar {
    width: 64px;
  }
}

/* ==================== DATATABLE REBRANDING ==================== */

/* Input de búsqueda global de DataTables */
div.dt-container div.dt-search input,
#empleados_wrapper .dt-search input,
#punchsites_employees input .search {
  border: 1px solid var(--ghost);
  padding: 8px 0px 8px 20px;
  outline: none;
  background-repeat: no-repeat;
  background-position: 10px center;
  /* font-size: 13px; */
  color: var(--text-color);
}

/* Input de búsqueda por columna en table_search */
.table_search input.form-control,
.table_search input.input-sm,
#empleados_nombre,
#empleados_identificador,
#empleados_correo,
#month-timecard_colaborador,
#month-timecard_identificador_nacional {
  border-radius: 20px;
  border: 1px solid var(--ghost);
  padding: 8px 0px 8px 20px;
  outline: none;
  background-repeat: no-repeat;
  background-position: 10px center;
  font-size: 8px;
  color: var(--text-color);
  width: 100%;
  margin-top: 5px;
}

.table_search input.form-control:focus,
.table_search input.input-sm:focus,
#empleados_nombre,
#empleados_identificador,
#empleados_correo,
#month-timecard_colaborador,
#month-timecard_identificador_nacional {
  border-color: var(--primary-yellow);
  box-shadow: 0 0 0 0.2rem rgba(240, 196, 0, 0.25);
}

.dt-search label,
#empleados_wrapper .dt-search label {
  font-weight: normal;
  color: #777;
}

/* Neutralizar margin-bottom !important del label global dentro del buscador DataTables */
.dt-search .employees-search-label {
  margin-bottom: 0 !important;
}

/* Buscador custom para tabla de empleados */
#empleados2_wrapper .dt-search,
#empleados_wrapper .dt-search,
#tablaSucursales_wrapper .dt-search,
#morphos_wrapper .dt-search,
#tablets_wrapper .dt-search,
#managers_wrapper .dt-search,
#permission_profile_table_wrapper .dt-search,
#devices_wrapper .dt-search,
#employees_wrapper .dt-search,
#employee-punchsites_wrapper .dt-search {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  float: none;
  text-align: right;
}

/* Evita el parpadeo del input nativo al iniciar DataTables en empleados */
#empleados2_wrapper .dt-search,
#tablaSucursales_wrapper .dt-search,
#morphos_wrapper .dt-search,
#tablets_wrapper .dt-search,
#managers_wrapper .dt-search,
#permission_profile_table_wrapper .dt-search,
#devices_wrapper .dt-search,
#employees_wrapper .dt-search,
#employee-punchsites_wrapper .dt-search {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

#empleados2_wrapper.employees-search-ready .dt-search,
#tablaSucursales_wrapper.employees-search-ready .dt-search,
#morphos_wrapper.employees-search-ready .dt-search,
#tablets_wrapper.employees-search-ready .dt-search,
#managers_wrapper.employees-search-ready .dt-search,
#permission_profile_table_wrapper.employees-search-ready .dt-search,
#devices_wrapper.employees-search-ready .dt-search,
#employees_wrapper.employees-search-ready .dt-search,
#employee-punchsites_wrapper.employees-search-ready .dt-search {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

#empleados2_wrapper .dt-search .employees-search-label,
#empleados_wrapper .dt-search .employees-search-label,
#tablaSucursales_wrapper .dt-search .employees-search-label,
#morphos_wrapper .dt-search .employees-search-label,
#tablets_wrapper .dt-search .employees-search-label,
#managers_wrapper .dt-search .employees-search-label,
#permission_profile_table_wrapper .dt-search .employees-search-label,
#devices_wrapper .dt-search .employees-search-label,
#employees_wrapper .dt-search .employees-search-label,
#employee-punchsites_wrapper .dt-search .employees-search-label {
  margin: 0 0 0 auto;
  width: 353px;
  max-width: 100%;
}

#empleados2_wrapper .dt-search .employees-search-shell,
#empleados_wrapper .dt-search .employees-search-shell,
#tablaSucursales_wrapper .dt-search .employees-search-shell,
#morphos_wrapper .dt-search .employees-search-shell,
#tablets_wrapper .dt-search .employees-search-shell,
#managers_wrapper .dt-search .employees-search-shell,
#permission_profile_table_wrapper .dt-search .employees-search-shell,
#devices_wrapper .dt-search .employees-search-shell,
#employees_wrapper .dt-search .employees-search-shell,
#employee-punchsites_wrapper .dt-search .employees-search-shell {
  display: flex;
  width: 353px;
  max-width: 100%;
  padding: 3px 15px 3px 15px;
  align-items: center;
  gap: 12px;
  border-radius: var(--border-radius-btn);
  border: 2px solid var(--primary-dark);
  background: #fff;
}


#empleados2_wrapper .dt-search .employees-search-shell:focus-within,
#empleados_wrapper .dt-search .employees-search-shell:focus-within,
#tablaSucursales_wrapper .dt-search .employees-search-shell:focus-within,
#morphos_wrapper .dt-search .employees-search-shell:focus-within,
#tablets_wrapper .dt-search .employees-search-shell:focus-within,
#managers_wrapper .dt-search .employees-search-shell:focus-within,
#permission_profile_table_wrapper .dt-search .employees-search-shell:focus-within,
#devices_wrapper .dt-search .employees-search-shell:focus-within,
#employees_wrapper .dt-search .employees-search-shell:focus-within,
#employee-punchsites_wrapper .dt-search .employees-search-shell:focus-within {
  border: 1.7px solid var(--primary-dark);
  box-shadow: none;
}

#empleados2_wrapper .dt-search .employees-search-icon,
#empleados_wrapper .dt-search .employees-search-icon,
#tablaSucursales_wrapper .dt-search .employees-search-icon,
#morphos_wrapper .dt-search .employees-search-icon,
#tablets_wrapper .dt-search .employees-search-icon,
#managers_wrapper .dt-search .employees-search-icon,
#permission_profile_table_wrapper .dt-search .employees-search-icon,
#devices_wrapper .dt-search .employees-search-icon,
#employees_wrapper .dt-search .employees-search-icon,
#employee-punchsites_wrapper .dt-search .employees-search-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  aspect-ratio: 1/1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#empleados2_wrapper .dt-search .employees-search-input-wrap,
#empleados_wrapper .dt-search .employees-search-input-wrap,
#tablaSucursales_wrapper .dt-search .employees-search-input-wrap,
#morphos_wrapper .dt-search .employees-search-input-wrap,
#tablets_wrapper .dt-search .employees-search-input-wrap,
#managers_wrapper .dt-search .employees-search-input-wrap,
#permission_profile_table_wrapper .dt-search .employees-search-input-wrap,
#devices_wrapper .dt-search .employees-search-input-wrap,
#employees_wrapper .dt-search .employees-search-input-wrap,
#employee-punchsites_wrapper .dt-search .employees-search-input-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1 0 0;
  min-width: 0;
}

#empleados2_wrapper .dt-search input.employees-search-input,
#empleados_wrapper .dt-search input.employees-search-input,
#tablaSucursales_wrapper .dt-search input.employees-search-input,
#morphos_wrapper .dt-search input.employees-search-input,
#tablets_wrapper .dt-search input.employees-search-input,
#managers_wrapper .dt-search input.employees-search-input,
#permission_profile_table_wrapper .dt-search input.employees-search-input,
#devices_wrapper .dt-search input.employees-search-input,
#employees_wrapper .dt-search input.employees-search-input,
#employee-punchsites_wrapper .dt-search input.employees-search-input {
  border: none;
  box-shadow: none;
  background: transparent;
  width: 100%;
  height: 24px;
  min-height: 24px;
  margin: 0;
  padding: 0;
  color: var(--shades-400, #9d9a95);
  font-family: var(--font-medium);
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
  vertical-align: middle;
  caret-color: #6a6762;
  box-sizing: border-box;
}

#empleados2_wrapper .dt-search input.employees-search-input::placeholder,
#empleados_wrapper .dt-search input.employees-search-input::placeholder,
#tablaSucursales_wrapper .dt-search input.employees-search-input::placeholder,
#morphos_wrapper .dt-search input.employees-search-input::placeholder,
#tablets_wrapper .dt-search input.employees-search-input::placeholder,
#managers_wrapper .dt-search input.employees-search-input::placeholder,
#permission_profile_table_wrapper .dt-search input.employees-search-input::placeholder,
#devices_wrapper .dt-search input.employees-search-input::placeholder,
#employees_wrapper .dt-search input.employees-search-input::placeholder,
#employee-punchsites_wrapper .dt-search input.employees-search-input::placeholder {
  color: var(--shades-400, #9d9a95) !important;
  font-family: var(--font-medium) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 24px !important;
}

#empleados2_wrapper .dt-search input.employees-search-input:focus,
#empleados_wrapper .dt-search input.employees-search-input:focus,
#tablaSucursales_wrapper .dt-search input.employees-search-input:focus,
#morphos_wrapper .dt-search input.employees-search-input:focus,
#tablets_wrapper .dt-search input.employees-search-input:focus,
#managers_wrapper .dt-search input.employees-search-input:focus,
#permission_profile_table_wrapper .dt-search input.employees-search-input:focus,
#devices_wrapper .dt-search input.employees-search-input:focus,
#employees_wrapper .dt-search input.employees-search-input:focus,
#employee-punchsites_wrapper .dt-search input.employees-search-input:focus {
  outline: none;
  border: none !important;
  box-shadow: none;
}

#empleados2_wrapper .dt-search .employees-search-clear,
#empleados_wrapper .dt-search .employees-search-clear,
#tablaSucursales_wrapper .dt-search .employees-search-clear,
#morphos_wrapper .dt-search .employees-search-clear,
#tablets_wrapper .dt-search .employees-search-clear,
#managers_wrapper .dt-search .employees-search-clear,
#permission_profile_table_wrapper .dt-search .employees-search-clear,
#devices_wrapper .dt-search .employees-search-clear,
#employees_wrapper .dt-search .employees-search-clear,
#employee-punchsites_wrapper .dt-search .employees-search-clear {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  flex: 1 0 0;
  border: none;
  background: transparent;
  padding: 0;
  margin-left: 8px;
  cursor: pointer;
  max-width: 24px;
}

#empleados2_wrapper .dt-search .employees-search-clear.is-hidden,
#empleados_wrapper .dt-search .employees-search-clear.is-hidden,
#tablaSucursales_wrapper .dt-search .employees-search-clear.is-hidden,
#morphos_wrapper .dt-search .employees-search-clear.is-hidden,
#tablets_wrapper .dt-search .employees-search-clear.is-hidden,
#managers_wrapper .dt-search .employees-search-clear.is-hidden,
#permission_profile_table_wrapper .dt-search .employees-search-clear.is-hidden,
#devices_wrapper .dt-search .employees-search-clear.is-hidden,
#employees_wrapper .dt-search .employees-search-clear.is-hidden,
#employee-punchsites_wrapper .dt-search .employees-search-clear.is-hidden {
  visibility: hidden;
  pointer-events: none;
}

/* ===== Selectores tipo “Filtrar por” ===== */
.dt-container select.custom-select,
.filters select.form-control,
#tablaSucursales thead tr th div input,
#table-assign-punchsites thead tr th div input,
#morphos thead tr th div input,
#tablets thead tr th div input,
#punches-reports thead tr th div input,
#employees thead tr th div input,
#empleados_nombre,
#empleados_identificador,
#empleados_correo,
#month-timecard_colaborador,
#month-timecard_identificador_nacional,
#managers_nombre,
#managers_email,
#devices_nombre,
#devices_estado_en_línea,
#devices_tipo,
#devices_vinculado,
#managers_correo,
#managers_acceso_a_todas_las_sucursales,
#permission_profile_table_nombre,
#permission_profile_table_detalle_de_permisos,
#permission_profile_table_acción,
#table-assign-employees_empleado,
#table-assign-employees_identificador,
#filter-person_name,
#filter-badge_number,
#filter-device_name,
#filter-effective_datetime,
#filter-rejection_status,
#exceptions_fecha,
#exceptions_colaborador,
#exceptions_identificador,
#exceptions_tipo,
#exceptions_marcar_como_revisado,
#rotatemplates-table_nombre,
#rotatemplates-table_dias,
#employee-punchsites_nombre,
#employee-punchsites_dirección,
#employee-punchsites_enrolado_free_flow,
#managers_acceso_a_todos_los_colaboradores,
#employees-table_name_filter,
#employees-table_identity_filter,
#paycode_table_código,
#paycode_table_descripción,
#paycode_table_ausentismo,
#paycode_table_por_defecto,
#paycode_table_acción,
#holiday_table_nombre,
#holiday_table_intervalo_de_fecha,
#holiday_table_código_de_pago,
#holiday_table_acción,
#table-assign-employees_colaborador,
#morpho-configs_nombre,
#printers_nombre,
#printers_ip,
#printers_puerto,
#table-assign-sites_sucursal,
#table-assign-sites_dirección,
#subcompanies_identificador,
#subcompanies_nombre,
#subcompanies_rut,
#tags_nombre,
#tags_color {
  border-radius: 20px;
  border: none;
  background-color: #3a3a3a;
  color: #ccc;
  padding: 6px 10px;
  font-size: 14px;
  appearance: none;
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  cursor: pointer;
}

.dt-container select.custom-select:focus,
.filters select.form-control:focus {
  outline: none;
}

/* ==================== PAGINATION TABLE EMPLOYEE REBRANDING ==================== */

/* Botones de paginación - Círculos perfectos */
.dt-container .dt-paging .dt-paging-button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 9px;
  text-align: center;
  cursor: pointer;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--primary-dark);
  transition: all 0.2s ease;
  font-family: var(--font-bold);
}

/* Hover en botones NO activos - Gris */
.dt-container .dt-paging .dt-paging-button:hover {
  background-color: #e0e0e0;
  color: var(--primary-dark);
}

/* Botón activo - Amarillo SIN fondo gris */
.dt-container .dt-paging .dt-paging-button.current {
  background-color: var(--primary-yellow);
  color: var(--primary-dark);
  border-color: var(--primary-yellow);
}

/* Quitar fondo gris en active/focus/hover del botón activo */
.dt-container .dt-paging .dt-paging-button.current:hover,
.dt-container .dt-paging .dt-paging-button.current:focus,
.dt-container .dt-paging .dt-paging-button.current:active {
  background-color: var(--primary-yellow) !important;
  color: var(--primary-dark) !important;
  cursor: default;
  outline: none;
}

/* Quitar outline y fondo gris de todos los estados focus/active */
.dt-container .dt-paging .dt-paging-button:focus,
.dt-container .dt-paging .dt-paging-button:active {
  outline: none;
  box-shadow: none;
}

/* Botones deshabilitados */
.dt-container .dt-paging .dt-paging-button.disabled,
.dt-container .dt-paging .dt-paging-button.disabled:hover {
  opacity: 0.4;
  cursor: not-allowed;
  background-color: transparent !important;
}

/* Previous y Next - Ajustar si son más anchos */
.dt-container .dt-paging .dt-paging-button.previous,
.dt-container .dt-paging .dt-paging-button.next {
  width: auto;
  min-width: 40px;
  padding: 0 12px;
  border-radius: 20px;
}

/* Si usas clases de Bootstrap */
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--primary-dark);
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-bold);
}

.page-link:hover {
  background-color: #e0e0e0;
  color: var(--primary-dark);
}

.page-item.active .page-link {
  background-color: var(--primary-yellow) !important;
  color: var(--primary-dark) !important;
  border-color: var(--primary-yellow);
}

.page-item.active .page-link:hover,
.page-item.active .page-link:focus,
.page-item.active .page-link:active {
  background-color: var(--primary-yellow) !important;
  cursor: default;
  outline: none;
}

.page-link:focus,
.page-link:active {
  outline: none;
  box-shadow: none;
}

.page-item:first-child .page-link {
  margin-left: 0;
  border-radius: 50% !important;
}

.page-item .page-link {
  border-radius: 50% !important;
}

/* ==================== CUSTOMS REBRANDING ==================== */
.gap-1 {
  gap: 0.5rem !important;
}

.gap-2 {
  gap: 1rem !important;
}

.gap-3 {
  gap: 1.5rem !important;
}

.gap-4 {
  gap: 2rem !important;
}

.gap-5 {
  gap: 3rem !important;
}

/* ==================== CHECKBOX REBRANDING ==================== */

/* Ocultar el checkbox nativo */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 24px;
  height: 24px;
  border: 2px solid var(--primary-dark);
  border-radius: 8px;
  background-color: var(--white);
  cursor: pointer;
  position: relative;
  /* transition: all 0.3s ease; */
  margin: 0;
  vertical-align: middle;
}

/* Hover en checkbox */
input[type="checkbox"]:hover {
  border-color: var(--primary-dark);
  box-shadow: 0 2px 8px rgba(240, 196, 0, 0.2);
}

/* Checkbox checked - fondo amarillo */
input[type="checkbox"]:checked {
  background-color: var(--white);
  border-color: var(--primary-dark);
}

/* Marca de check cuando está seleccionado */
input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  top: 55%;
  left: 45%;
  transform: translate(-50%, -50%);
  color: var(--primary-dark);
  font-size: 16px;
  font-weight: bold;
}

/* Focus para accesibilidad */
input[type="checkbox"]:focus {
  outline: none;
  box-shadow: var(--text-color);
}

/* Checkbox disabled */
input[type="checkbox"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

input[type="checkbox"]:disabled:hover {
  border-color: var(--text-color);
  box-shadow: none;
}

/* Labels asociados a checkboxes */
label:has(> input[type="checkbox"]),
.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

/* Variante de tamaño pequeño */
input[type="checkbox"].checkbox-sm {
  width: 18px;
  height: 18px;
  border-radius: 6px;
}

input[type="checkbox"].checkbox-sm:checked::after {
  font-size: 12px;
}

/* Variante de tamaño grande */
input[type="checkbox"].checkbox-lg {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

input[type="checkbox"].checkbox-lg:checked::after {
  font-size: 20px;
}

.img-fluid {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* ==================== END CUSTOMS REBRANDING ==================== */

#tablaSucursales_wrapper {
  width: 100% !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

#tablaSucursales_wrapper table {
  width: 100% !important;
}

#tablaSucursales_wrapper .dt-layout-table {
  width: 100% !important;
}