@charset "UTF-8";
:root {
  --sidebar-bg: #2d333b;
  --sidebar-bg-hover: #444c56;
  --sidebar-text: #ffffff;
  --sidebar-text-active: #a0aec0;
  --sidebar-border: #444c56;
  --header-bg: #ffffff;
  --header-text: #2d333b;
  --header-border: #e1e4e8;
  --content-bg: #f6f8fa;
  --content-text: #24292f;
  --font-primary: Arial, Helvetica, sans-serif;
  --font-size-menu: 14px;
  --font-size-header: 25px;
  --sidebar-width: 260px;
  --sidebar-collapsed: 0px;
  --header-height: 50px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --border-radius: 0px;
  --transition-fast: 0.15s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-menu);
  background-color: var(--content-bg);
  color: var(--content-text);
  line-height: 1.4;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.wrapper {
  display: flex;
  min-height: 100vh;
}
@media (max-width: 768px) {
  .wrapper {
    display: block;
  }
}

.header {
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  height: var(--header-height);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  display: flex;
  align-items: center;
  padding: 0 var(--space-lg);
  z-index: 100;
  transition: left var(--transition-fast);
}
.sidebar-hidden .header {
  left: 0;
}
@media (max-width: 768px) {
  .header {
    left: 0;
    padding: 0 var(--space-sm);
    height: auto;
    min-height: var(--header-height);
  }
}
.header__toggle {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--header-text);
  cursor: pointer;
  padding: var(--space-sm);
  margin-right: var(--space-md);
}
.header__toggle:hover {
  color: var(--sidebar-text-active);
}
@media (max-width: 768px) {
  .header__toggle {
    font-size: 16px;
    padding: var(--space-xs);
    margin-right: var(--space-sm);
  }
}
.header__title {
  font-size: var(--font-size-header);
  font-weight: 600;
  color: var(--header-text);
  letter-spacing: 0.5px;
}
@media (max-width: 768px) {
  .header__title {
    font-size: clamp(1rem, 4vw, var(--font-size-header));
  }
}

.content {
  margin-left: var(--sidebar-width);
  margin-top: var(--header-height);
  padding: var(--space-lg);
  flex: 1;
  transition: margin-left var(--transition-fast);
  width: 100%;
  box-sizing: border-box;
}
.sidebar-hidden .content {
  margin-left: 0;
}
@media (max-width: 768px) {
  .content {
    margin-left: 0;
    padding: var(--space-sm);
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
  }
}

.card-header-custom {
  background-color: #545556e5;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
}
@media (min-width: 768px) {
  .card-header-custom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
  }
}

.metrics-container {
  display: grid;
  justify-content: center;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding: 0.75rem;
  width: 100%;
  box-sizing: border-box;
}
@media (min-width: 576px) {
  .metrics-container {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 768px) {
  .metrics-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
  }
}

@media (min-width: 768px) {
  .metrics-container > div {
    flex: 1 1 150px;
    max-width: 200px;
    box-sizing: border-box;
  }
}
@media (min-width: 1200px) {
  .metrics-container > div {
    flex: 1 1 180px;
  }
}
.metric-box {
  background: white;
  padding: 1rem;
  border-radius: 0.375rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
  text-align: center;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
@media (min-width: 768px) {
  .metric-box {
    padding: 1rem;
  }
}

.cards-inferiores-container {
  display: flex;
  gap: 1rem;
  width: 100%;
  flex-wrap: wrap;
}
@media (min-width: 768px) {
  .cards-inferiores-container {
    flex-wrap: nowrap;
  }
}

.card-inferior {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 280px;
  width: 100%;
  box-sizing: border-box;
}
.card-inferior .card-header {
  padding: 0.75rem;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  font-weight: 600;
  text-align: center;
}
@media (min-width: 768px) {
  .card-inferior .card-header {
    padding: 1rem;
  }
}
.card-inferior .card-body {
  padding: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 0.5rem;
}
@media (min-width: 480px) {
  .card-inferior .card-body {
    flex-wrap: nowrap;
  }
}
@media (min-width: 768px) {
  .card-inferior .card-body {
    gap: 0.75rem;
    padding: 1rem;
  }
}

.card-metrica-item {
  background: white;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
  text-align: center;
  flex: 0 0 auto;
  align-self: flex-start;
}
@media (min-width: 768px) {
  .card-metrica-item {
    padding: 0.75rem 1rem;
  }
}

.card-header-azul {
  background-color: #8a8b8ce5 !important;
  color: white !important;
}

.card-header-verde {
  background-color: #e1f3d8e5 !important;
  color: black;
}

.card-header-amarillo {
  background-color: #f1e587e5 !important;
  color: black;
}

html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

.row {
  margin: 0;
}
@media (max-width: 768px) {
  .row {
    --bs-gutter-x: 0.5rem;
  }
}

.col-12 {
  padding: 0.25rem;
}
@media (min-width: 768px) {
  .col-12 {
    padding: 0.75rem;
  }
}

.modal-corporativo .modal-content {
  border: 1px solid var(--header-border);
  border-radius: 0.375rem;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
  overflow: hidden;
}
.modal-corporativo .modal-header {
  background-color: #545556e5;
  color: #ffffff;
  border-bottom: 1px solid #2E5A8F;
  padding: 1rem;
}
.modal-corporativo .modal-header .modal-title {
  font-size: 1.25rem;
  font-weight: 500;
}
.modal-corporativo .modal-header .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
  opacity: 0.8;
}
.modal-corporativo .modal-header .btn-close:hover {
  opacity: 1;
}
.modal-corporativo .modal-body {
  background-color: #ffffff;
  padding: 1.5rem;
  border-left: 1px solid var(--header-border);
  border-right: 1px solid var(--header-border);
}
.modal-corporativo .modal-footer {
  background-color: #f8f9fa;
  border-top: 1px solid var(--header-border);
  padding: 1rem;
}
.modal-corporativo .modal-footer .btn-secondary {
  background-color: #6c757d;
  border-color: #6c757d;
  color: #ffffff;
}
.modal-corporativo .modal-footer .btn-secondary:hover {
  background-color: #5a6268;
  border-color: #545b62;
}

.modal-ice .modal-content {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif !important;
  font-size: 1rem !important;
}

.modal-ice .modal-content * {
  font-family: inherit !important;
  font-size: inherit !important;
}

#seccion-encabezado {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif !important;
}
#seccion-encabezado .metrics-container,
#seccion-encabezado .metric-box,
#seccion-encabezado .metric-label,
#seccion-encabezado .metric-value {
  font-family: inherit !important;
}
#seccion-encabezado .metric-label {
  font-size: 1.1rem !important;
}
#seccion-encabezado .metric-value {
  font-size: 1.5rem !important;
}

.text-muted {
  color: var(--sidebar-text-active);
}

.card {
  background: #ffffff;
  border: 1px solid var(--header-border);
  border-radius: 0;
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
@media (max-width: 768px) {
  .card {
    padding: var(--space-sm);
    margin-bottom: var(--space-sm);
  }
}
.card__title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--content-text);
  border-bottom: 1px solid var(--header-border);
  padding-bottom: var(--space-sm);
}
@media (max-width: 768px) {
  .card__title {
    font-size: clamp(0.875rem, 3vw, 14px);
  }
}

.icon-back {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  line-height: 1;
}

.icon-chart {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  cursor: pointer;
  line-height: 1;
}

.style-code {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: bold;
  line-height: 1.2;
  word-break: break-word;
}

.style-name {
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  word-break: break-word;
  line-height: 1.3;
}

.status-badge {
  font-size: clamp(1rem, 3vw, 1.75rem);
  white-space: nowrap;
}
@media (max-width: 767px) {
  .status-badge {
    align-self: flex-end;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
  }
}

.metric-label {
  color: #6c757d;
  margin-bottom: 0.25rem;
  font-size: clamp(0.7rem, 2vw, 0.875rem);
  white-space: normal;
  line-height: 1;
}
@media (max-width: 480px) {
  .metric-label {
    font-size: clamp(0.65rem, 1.8vw, 0.75rem);
    margin-bottom: 0.125rem;
  }
}

.metric-value {
  color: #212529;
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  font-weight: bold;
  word-break: break-all;
  line-height: 1.2;
}
@media (max-width: 480px) {
  .metric-value {
    font-size: clamp(0.85rem, 2.2vw, 1rem);
  }
}

.card-metrica-label {
  color: #6c757d;
  margin-bottom: 0.25rem;
  font-size: clamp(0.7rem, 2vw, 0.875rem);
  line-height: 1.2;
}
@media (max-width: 480px) {
  .card-metrica-label {
    font-size: clamp(0.65rem, 1.8vw, 0.75rem);
  }
}

.card-metrica-value {
  color: #212529;
  font-size: clamp(0.85rem, 2.2vw, 1rem);
  font-weight: bold;
  word-break: break-all;
}
@media (max-width: 480px) {
  .card-metrica-value {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
  }
}

.text-fluid {
  font-size: clamp(0.875rem, 2vw, 1rem);
}

.title-responsive {
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  word-break: break-word;
}

.flex-fluid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.5rem, 2vw, 1rem);
}

.text-truncate-fluid {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .text-truncate-fluid {
    white-space: normal;
  }
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background-color: var(--sidebar-bg);
  color: var(--sidebar-text);
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 200;
  transition: transform var(--transition-fast);
  border-right: 1px solid var(--sidebar-border);
}
.sidebar::-webkit-scrollbar {
  width: 8px;
}
.sidebar::-webkit-scrollbar-track {
  background: var(--sidebar-bg);
}
.sidebar::-webkit-scrollbar-thumb {
  background: var(--sidebar-border);
}
.sidebar-hidden .sidebar {
  transform: translateX(-100%);
}
.sidebar__section {
  border-bottom: 1px solid var(--sidebar-border);
  padding: var(--space-md) 0;
}
.sidebar__section:last-child {
  border-bottom: none;
}
.sidebar__header {
  padding: var(--space-sm) var(--space-lg);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--sidebar-text-active);
  font-weight: 600;
}
.sidebar__item {
  position: relative;
}
.sidebar__item a {
  display: block;
  padding: 10px var(--space-lg);
  color: var(--sidebar-text);
  font-size: var(--font-size-menu);
  transition: all var(--transition-fast);
  cursor: pointer;
  border-left: 3px solid transparent;
}
.sidebar__item a:hover {
  background-color: var(--sidebar-bg-hover);
}
.sidebar__item.active > a {
  color: var(--sidebar-text-active);
  background-color: transparent;
  border-left-color: var(--sidebar-text-active);
  font-weight: 600;
}
.sidebar__item ul {
  display: none !important;
  /*background-color: rgba(0, 0, 0, 0.2);*/
}
.sidebar__item ul li a {
  padding-left: calc(var(--space-lg) * 2);
  font-size: 14px;
}
.sidebar__item ul li a:hover {
  background-color: var(--sidebar-bg-hover);
}
.sidebar__item.open ul {
  display: block !important;
}
.sidebar__divider {
  height: 1px;
  background-color: var(--sidebar-border);
  margin: var(--space-sm) var(--space-lg);
}

.wrapper.sidebar-hidden .sidebar {
  width: 0;
  overflow: hidden;
  opacity: 0;
}
.wrapper.sidebar-hidden .content {
  margin-left: 0;
}
.wrapper.sidebar-hidden .header__toggle {
  left: 1rem;
}

.dataTables_wrapper {
  font-family: var(--font-primary);
  font-size: clamp(11px, 2vw, 12px);
  width: 100% !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 767px) {
  .dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem;
    float: none !important;
  }
  .dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  .dataTables_wrapper .dataTables_paginate {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  .dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0.25rem 0.5rem;
    min-width: 2rem;
  }
}

.table {
  width: 100% !important;
  font-size: clamp(13px, 2.2vw, 15px);
  margin-bottom: 0;
}
.table thead th {
  background-color: var(--content-bg);
  border-bottom: 2px solid var(--header-border);
  font-weight: 600;
  padding: 0.5rem;
  white-space: normal;
}
@media (min-width: 768px) {
  .table thead th {
    padding: 0.75rem;
  }
}
.table tbody td {
  padding: 0.5rem;
  vertical-align: middle;
}
@media (min-width: 768px) {
  .table tbody td {
    padding: 0.75rem;
  }
}
.table tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
}
@media (max-width: 767px) {
  .table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table .d-none-mobile {
    display: none;
  }
}

.dt-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
@media (max-width: 767px) {
  .dt-buttons {
    justify-content: center;
    width: 100%;
  }
}
.dt-buttons .btn {
  font-size: clamp(11px, 2vw, 12px);
  padding: clamp(2px, 1vw, 4px) clamp(8px, 2vw, 12px);
  white-space: nowrap;
  flex: 0 0 auto;
  width: auto;
}
@media (max-width: 480px) {
  .dt-buttons .btn span:not(.sr-only) {
    display: none;
  }
  .dt-buttons .btn i {
    margin: 0 !important;
    font-size: 1rem;
  }
}

.table-responsive {
  width: 100% !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 0.375rem;
}
@media (max-width: 767px) {
  .table-responsive {
    border: 0;
    font-size: 11px;
  }
  .table-responsive table {
    min-width: 100%;
    width: 100%;
  }
}

.filtro-columna {
  width: 100%;
  max-width: 100%;
  font-size: clamp(10px, 2vw, 12px);
  padding: 0.25rem;
  box-sizing: border-box;
}
@media (max-width: 767px) {
  .filtro-columna {
    min-width: 60px;
    padding: 0.125rem;
  }
}

.col-header-destacada {
  background-color: #f1e587e5 !important;
  font-weight: 600;
}

@media (max-width: 767px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 200;
  }
  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 150;
  }
  .sidebar-overlay.active {
    display: block;
  }

  .header {
    left: 0;
  }

  .content {
    margin-left: 0;
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
    padding: var(--space-sm);
  }

  input, select, textarea {
    font-size: 16px;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .sidebar {
    width: 240px;
  }

  .header {
    left: 240px;
  }

  .content {
    margin-left: 240px;
  }
}
@media (min-width: 992px) {
  .sidebar {
    transform: translateX(0);
  }
  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .sidebar-overlay {
    display: none !important;
  }
}
@media (max-width: 767px) {
  .d-none-mobile {
    display: none !important;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .d-none-tablet {
    display: none !important;
  }
}

@media (min-width: 992px) {
  .d-none-desktop {
    display: none !important;
  }
}

.d-mobile-only {
  display: none !important;
}
@media (max-width: 767px) {
  .d-mobile-only {
    display: block !important;
  }
}

.d-tablet-only {
  display: none !important;
}
@media (min-width: 768px) and (max-width: 991px) {
  .d-tablet-only {
    display: block !important;
  }
}

.d-desktop-only {
  display: none !important;
}
@media (min-width: 992px) {
  .d-desktop-only {
    display: block !important;
  }
}

html, body {
  max-width: 100vw;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

* {
  -webkit-overflow-scrolling: touch;
}

.usuarios-container {
  padding: var(--space-md, 1rem);
}
@media (max-width: 768px) {
  .usuarios-container {
    padding: var(--space-sm, 0.5rem);
  }
}

.usuarios-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg, 1.5rem);
  flex-wrap: wrap;
  gap: var(--space-sm, 0.5rem);
}
@media (max-width: 576px) {
  .usuarios-header {
    flex-direction: column;
    align-items: stretch;
  }
  .usuarios-header .btn-icon {
    width: 100%;
    justify-content: center;
  }
}
.usuarios-header h2 {
  margin: 0;
  color: var(--content-text, #3b434a);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--primary-color, #434348);
  color: white;
  border: none;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.btn-icon:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.btn-icon i {
  font-size: 0.875rem;
}
@media (max-width: 480px) {
  .btn-icon span:not(.sr-only) {
    display: none;
  }
  .btn-icon i {
    margin: 0 !important;
    font-size: 1rem;
  }
}

.acciones-cell {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
@media (max-width: 480px) {
  .acciones-cell {
    gap: 0.25rem;
  }
}

.btn-action {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}
@media (max-width: 480px) {
  .btn-action {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
}
.btn-action.btn-edit {
  background-color: #c6bda6;
  color: #000;
}
.btn-action.btn-edit:hover {
  background-color: #e0a800;
  transform: scale(1.1);
}
.btn-action.btn-delete {
  background-color: #5d4447;
  color: #fff;
}
.btn-action.btn-delete:hover {
  background-color: #5d4447;
  transform: scale(1.1);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}
.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.status-badge.activo {
  background-color: #d4edda;
  color: #155724;
}
.status-badge.activo::before {
  background-color: #28a745;
}
.status-badge.inactivo {
  background-color: #f8d7da;
  color: #721c24;
}
.status-badge.inactivo::before {
  background-color: #dc3545;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  backdrop-filter: blur(2px);
}
.modal-overlay.active {
  display: flex;
}

.modal-container {
  background: #fff;
  border-radius: 0.5rem;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: modalSlideIn 0.3s ease;
}
.modal-container.modal-sm {
  max-width: 400px;
}
@media (max-width: 576px) {
  .modal-container {
    max-width: 100%;
    margin: 0.5rem;
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--header-border, #dee2e6);
}
.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--content-text, #212529);
}
.modal-header.modal-header-danger {
  background-color: #f8d7da;
  color: #721c24;
  border-bottom-color: #f5c6cb;
}
.modal-header.modal-header-danger h3 {
  color: #721c24;
  font-size: 1.1rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #6c757d;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}
.modal-close:hover {
  background-color: #f8f9fa;
  color: #000;
}

.modal-body {
  padding: 1.5rem;
}
@media (max-width: 576px) {
  .modal-body {
    padding: 1rem;
  }
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--header-border, #dee2e6);
  background-color: #f8f9fa;
  border-radius: 0 0 0.5rem 0.5rem;
}
.modal-footer.justify-center {
  justify-content: center;
}
@media (max-width: 576px) {
  .modal-footer {
    flex-direction: column-reverse;
  }
  .modal-footer .btn {
    width: 100%;
    justify-content: center;
  }
}

.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.375rem;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--content-text, #212529);
}

.form-control {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary-color, #007bff);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}
.form-control:disabled {
  background-color: #e9ecef;
}

.form-row {
  display: flex;
  gap: 1rem;
}
@media (max-width: 576px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
}
.form-row .col-6 {
  flex: 1;
}

.form-text {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #6c757d;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.btn.btn-primary {
  background-color: var(--primary-color, #5e6771);
  color: white;
}
.btn.btn-primary:hover {
  background-color: var(--primary-dark, #0056b3);
}
.btn.btn-secondary {
  background-color: #6c757d;
  color: white;
}
.btn.btn-secondary:hover {
  background-color: #545b62;
}
.btn.btn-danger {
  background-color: #915258;
  color: white;
}
.btn.btn-danger:hover {
  background-color: #c82333;
}

.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1060;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  padding: 1rem 1.5rem;
  border-radius: 0.375rem;
  color: white;
  font-weight: 500;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  animation: slideInRight 0.3s ease;
  max-width: 350px;
}
.toast.success {
  background-color: #28a745;
}
.toast.error {
  background-color: #dc3545;
}
.toast.warning {
  background-color: #ffc107;
  color: #000;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1070;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--primary-color, #007bff);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.text-center {
  text-align: center;
}

.text-muted {
  color: #6c757d;
  font-size: 0.875rem;
}

.dataTables_wrapper .dt-buttons .btn-agregar-wrapper {
  margin-left: auto;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}
.modal-overlay.active {
  display: flex;
}

.modal-container {
  background: #fff;
  border-radius: 0.5rem;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* =========================================================
   MODAL PARÁMETROS - NÓMINA
   ========================================================= */
#modalParametrosNomina .modal-dialog {
  max-width: 620px;
}

#modalParametrosNomina .modal-content {
  border-radius: 0;
  border: 1px solid #bfc3c7;
  box-shadow: none;
}

/* =========================================================
   CABECERA
   ========================================================= */
#modalParametrosNomina .modal-header {
  padding: 9px 12px;
  min-height: 42px;
  border-bottom: 1px solid #cfd3d7;
}

#modalParametrosNomina .nomina-modal-titulo {
  display: flex;
  align-items: center;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
}

#modalParametrosNomina .nomina-modal-titulo i {
  font-size: 14px;
}

#modalParametrosNomina .btn-close {
  font-size: 10px;
}

/* =========================================================
   CUERPO
   ========================================================= */
#modalParametrosNomina .modal-body {
  padding: 8px 12px 6px;
}

/* =========================================================
   TÍTULOS DE SECCIÓN
   ========================================================= */
#modalParametrosNomina .nomina-seccion-titulo {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

/* =========================================================
   PERIODO
   ========================================================= */
#modalParametrosNomina .nomina-periodo {
  padding: 2px 0 10px;
}

#modalParametrosNomina .nomina-periodo-campos {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-top: 4px;
  padding-left: 76px;
}

#modalParametrosNomina .nomina-periodo-campo {
  width: 150px;
}

#modalParametrosNomina .nomina-periodo-campo label {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 400;
}

#modalParametrosNomina .nomina-periodo-campo .form-control {
  height: 30px;
  padding: 3px 7px;
  font-size: 11px;
  border-radius: 5px;
}

/* =========================================================
   ENTIDADES
   ========================================================= */
#modalParametrosNomina .nomina-entidades {
  border-top: 1px solid #cfd3d7;
  border-bottom: 1px solid #cfd3d7;
  padding: 6px 0 8px;
  margin-bottom: 8px;
}

#modalParametrosNomina .nomina-fila-opciones {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

#modalParametrosNomina .nomina-fila-opciones:last-child {
  margin-bottom: 0;
}

#modalParametrosNomina .nomina-entidades-titulo {
  min-width: 150px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

#modalParametrosNomina .nomina-entidades-opciones,
#modalParametrosNomina .nomina-vista-opciones {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}

#modalParametrosNomina .nomina-entidades-opciones .form-check,
#modalParametrosNomina .nomina-vista-opciones .form-check {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding-left: 0;
}

#modalParametrosNomina .nomina-entidades-opciones .form-check-input,
#modalParametrosNomina .nomina-vista-opciones .form-check-input {
  position: static;
  float: none;
  margin: 0;
}

#modalParametrosNomina .nomina-entidades-opciones .form-check-label,
#modalParametrosNomina .nomina-vista-opciones .form-check-label {
  font-size: 11px;
  line-height: 1;
}

/* =========================================================
   CONCEPTOS
   ========================================================= */
#modalParametrosNomina .nomina-conceptos-header {
  align-items: center;
  padding: 7px 0 3px;
  font-size: 12px;
  font-weight: 600;
  border: 0;
}

#modalParametrosNomina .nomina-concepto-fila {
  min-height: 22px;
  padding: 1px 0;
  border: 0 !important;
  border-bottom: 1px solid transparent !important;
}

#modalParametrosNomina .nomina-concepto-fila > div:first-child {
  font-size: 11px;
  line-height: 18px;
}

#modalParametrosNomina .nomina-concepto-fila .form-check-input {
  width: 14px;
  height: 14px;
  margin-top: 0;
}

/* =========================================================
   FOOTER
   ========================================================= */
#modalParametrosNomina .nomina-modal-footer {
  display: flex;
  justify-content: space-between;
  padding: 7px 12px;
  border-top: 0;
}

#modalParametrosNomina .nomina-modal-footer .btn {
  padding: 4px 12px;
  font-size: 11px;
  border-radius: 5px;
}

@media (max-width: 576px) {
  #modalParametrosNomina .modal-dialog {
    max-width: calc(100% - 20px);
    margin: 10px auto;
  }

  #modalParametrosNomina .modal-body {
    padding: 8px 10px 6px;
  }

  /* PERIODO */
  #modalParametrosNomina .nomina-periodo-campos {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 5px;
    padding-left: 0;
  }

  #modalParametrosNomina .nomina-periodo-campo {
    width: 100%;
  }

  #modalParametrosNomina .nomina-periodo-campo .form-control {
    width: 100%;
    max-width: 100%;
  }

  /* ENTIDADES */
  #modalParametrosNomina .nomina-fila-opciones {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  #modalParametrosNomina .nomina-entidades-titulo {
    min-width: auto;
  }

  /* CONCEPTOS */
  #modalParametrosNomina .nomina-conceptos-header {
    font-size: 11px;
  }

  #modalParametrosNomina .nomina-concepto-fila > div:first-child {
    font-size: 10px;
  }

  #modalParametrosNomina .nomina-concepto-fila .form-check-input {
    width: 13px;
    height: 13px;
  }
}

/*# sourceMappingURL=main.css.map*/