html {
    height: 100%;
  }
  body {
    margin:0;
    padding:0;
    font-family: sans-serif;
    background: linear-gradient(#141e30, #243b55);
  }
  
  .login-box {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    padding: 40px;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,.5);
    box-sizing: border-box;
    box-shadow: 0 15px 25px rgba(0,0,0,.6);
    border-radius: 10px;
  }
  
  .login-box h2 {
    margin: 0 0 30px;
    padding: 0;
    color: #fff;
    text-align: center;
  }
  
  .login-box .user-box {
    position: relative;
  }
  
  .login-box .user-box input {
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    color: #fff;
    margin-bottom: 30px;
    border: none;
    border-bottom: 1px solid #fff;
    outline: none;
    background: transparent;
  }
  .login-box .user-box label {
    position: absolute;
    top:0;
    left: 0;
    padding: 10px 0;
    font-size: 16px;
    color: #fff;
    pointer-events: none;
    transition: .5s;
  }
  
  .login-box .user-box input:focus ~ label,
  .login-box .user-box input:valid ~ label {
    top: -20px;
    left: 0;
    color: #03e9f4;
    font-size: 12px;
  }
  
  .login-box form a {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    color: #03e9f4;
    font-size: 16px;
    text-decoration: none;
    text-transform: uppercase;
    overflow: hidden;
    transition: .5s;
    margin-top: 40px;
    letter-spacing: 4px
  }
  
  .login-box a:hover {
    background: #03e9f4;
    color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 5px #03e9f4,
                0 0 25px #03e9f4,
                0 0 50px #03e9f4,
                0 0 100px #03e9f4;
  }
  
  .login-box a span {
    position: absolute;
    display: block;
  }
  
  .login-box a span:nth-child(1) {
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #03e9f4);
    animation: btn-anim1 1s linear infinite;
  }
  
  @keyframes btn-anim1 {
    0% {
      left: -100%;
    }
    50%,100% {
      left: 100%;
    }
  }
  
  .login-box a span:nth-child(2) {
    top: -100%;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, #03e9f4);
    animation: btn-anim2 1s linear infinite;
    animation-delay: .25s
  }
  
  @keyframes btn-anim2 {
    0% {
      top: -100%;
    }
    50%,100% {
      top: 100%;
    }
  }
  
  .login-box a span:nth-child(3) {
    bottom: 0;
    right: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(270deg, transparent, #03e9f4);
    animation: btn-anim3 1s linear infinite;
    animation-delay: .5s
  }
  
  @keyframes btn-anim3 {
    0% {
      right: -100%;
    }
    50%,100% {
      right: 100%;
    }
  }
  
  .login-box a span:nth-child(4) {
    bottom: -100%;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(360deg, transparent, #03e9f4);
    animation: btn-anim4 1s linear infinite;
    animation-delay: .75s
  }
  
  @keyframes btn-anim4 {
    0% {
      bottom: -100%;
    }
    50%,100% {
      bottom: 100%;
    }
  }

  .error-message {
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff0000;
    color: #ff0000;
    padding: 10px;
    margin-bottom: 20px;
    text-align: center;
    border-radius: 5px;
}

.login-box button {
    border: none;
    background: transparent;
    color: #03e9f4;
    font-size: 16px;
    text-transform: uppercase;
    overflow: hidden;
    transition: .5s;
    letter-spacing: 4px;
    cursor: pointer;
}

.login-box button:hover {
    background: #03e9f4;
    color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 5px #03e9f4,
                0 0 25px #03e9f4,
                0 0 50px #03e9f4,
                0 0 100px #03e9f4;
}


.syro-background {
  background: linear-gradient(#141e30, #243b55);
  min-height: 100vh;
}

.syro-background .container {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
}

.syro-background h2,
.syro-background label,
.syro-background th {
  color: #fff;
}

.syro-background .table {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}

.syro-background .table thead th {
  border-color: rgba(255, 255, 255, 0.2);
}

.syro-background .table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(255, 255, 255, 0.05);
}

.syro-background .form-control,
.syro-background .form-select {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.syro-background .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.syro-background .btn-primary {
  background-color: #03e9f4;
  border-color: #03e9f4;
}

.syro-background .btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

.syro-background .dataTables_wrapper {
  color: #fff;
}

.syro-background .dataTables_length,
.syro-background .dataTables_filter,
.syro-background .dataTables_info,
.syro-background .dataTables_paginate {
  color: #fff;
}

.syro-background .dataTables_wrapper .dataTables_paginate .paginate_button {
  color: #fff !important;
}

.syro-background .dataTables_wrapper .dataTables_paginate .paginate_button.current,
.syro-background .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  color: #333 !important;
}

.syro-background .modal-content {
  background-color: #243b55;
  color: #fff;
}

.syro-background .modal-header,
.syro-background .modal-footer {
  border-color: rgba(255, 255, 255, 0.2);
}

.syro-background .close {
  color: #fff;
}

/* Estilos para tarjetas móviles */
.preventivo-card {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 1rem;
}

.preventivo-card .card-header {
  background-color: rgba(36, 59, 85, 0.8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.preventivo-card .card-body {
  padding: 1rem;
}

.preventivo-card .card-title {
  color: #fff;
  margin: 0;
}

.preventivo-card .btn-group {
  display: flex;
  gap: 0.5rem;
}

.preventivo-card .btn {
  padding: 0.375rem 0.75rem;
  border-radius: 0.25rem;
}

/* Agregar al final de tu archivo CSS */
.logo-container {
  text-align: center;
  margin-bottom: 30px;
}

.logo {
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
}

.login-box {
  background: rgba(0, 32, 96, 0.7); /* Color azul MAFRA con transparencia */
}

.login-box .user-box input:focus ~ label,
.login-box .user-box input:valid ~ label {
  color: #00B0F0; /* Color celeste MAFRA */
}

.login-box button {
  color: #00B0F0; /* Color celeste MAFRA */
}

.login-box button:hover {
  background: #00B0F0;
}

/* Estilos adicionales para el dashboard */
.navbar {
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
}



.card:hover {
  transform: translateY(-5px);
}

.table {
  margin-bottom: 0;
}

.badge {
  padding: 0.5em 1em;
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  margin: 0 0.1rem;
}

/* Colores institucionales */
.bg-primary {
  background-color: #002060 !important;
}

.text-primary {
  color: #00B0F0 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
      padding: 10px;
  }
}

/* Ajustar estilos para tarjetas móviles */
.activity-card {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 10px;
}

.activity-content {
  margin-bottom: 15px;
}

.activity-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.activity-details {
  color: #333;
}

.activity-details p {
  margin-bottom: 5px;
}

.activity-buttons {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.activity-buttons .btn {
  text-align: center;
  padding: 8px;
}

.btn-info {
  background-color: #00B0F0;
  border-color: #00B0F0;
  color: white;
}

.btn-warning {
  background-color: #ffc107;
  border-color: #ffc107;
  color: black;
}

/* Estilos para la página de usuarios */

.card-header {
  background-color: rgba(0, 32, 96, 0.5);
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table {
  color: white;
}

.table thead th {
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.table td {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dataTables_wrapper {
  color: white;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
  color: white;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  color: white !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: #00B0F0 !important;
  border-color: #00B0F0 !important;
  color: white !important;
}

.btn-primary {
  background-color: #00B0F0;
  border-color: #00B0F0;
}

.btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

/* Agregar al styles.css */

/* Estilos para DataTables */
.dataTables_wrapper {
  color: #243b55 !important; /* Color más oscuro para texto normal */
}

table.dataTable thead th {
  color: white !important;
  background-color: #243b55 !important;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1) !important;
}

table.dataTable tbody td {
  color: #243b55 !important; /* Color más oscuro para el texto de las celdas */
  background-color: white !important; /* Fondo blanco para las celdas */
  border-bottom: 1px solid #dee2e6 !important;
}

.dataTables_wrapper .dataTables_length, 
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info {
  color: white !important;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  color: #243b55 !important;
  background-color: white !important;
  border: 1px solid #dee2e6 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  color: white !important;
  background: transparent !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  color: white !important;
  background: #00B0F0 !important;
  border-color: #00B0F0 !important;
}


/* Estilos para los inputs de búsqueda y select */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: white !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  padding: 5px 10px;
}

.dataTables_wrapper .dataTables_length select option {
  background-color: #243b55;
  color: white;
}

/* Ocultar la flecha del select nativo */
select.form-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: none !important;
  padding-right: 8px;
}

/* Estilo para el contenedor de botones */
.dt-buttons {
  margin-bottom: 1rem;
}

/* Alinear la búsqueda a la derecha */
.dataTables_filter {
  text-align: right;
  margin-bottom: 1rem;
}

.dataTables_length {
  float: left;
  padding-top: 0.5em;
}

.dataTables_info {
  text-align: center;
  padding-top: 0.5em !important;
}

.dataTables_paginate {
  float: right;
}

@media (max-width: 768px) {
  /* Turno Actual */
  .bg-primary.card-body {
      background-color: #002060 !important;
      border-radius: 15px;
      padding: 15px;
      margin-bottom: 20px;
  }

  .bg-primary .card-title {
      color: white;
      font-size: 22px;
      margin: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
  }

  /* Registrar Actividad Card */
  .card.registro-actividad {
      background: rgba(255, 255, 255, 0.95);
      border-radius: 20px;
      padding: 20px;
      margin-bottom: 20px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }

  .registro-actividad .card-title {
      color: #002060;
      font-size: 24px;
      font-weight: 600;
      margin-bottom: 25px;
      text-align: center;
  }

  /* Botones de Actividad */
  .d-grid {
      gap: 15px !important;
  }

  #btnIniciarActividad, #btnFinalizarActividad {
      min-height: 60px;
      font-size: 20px;
      border-radius: 15px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      border: none;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      padding: 15px;
  }

  #btnIniciarActividad {
      background-color: #00B0F0;
      color: white;
  }

  #btnFinalizarActividad {
      background-color: #4CAF50;
      color: white;
  }

  #btnFinalizarActividad:disabled {
      background-color: #E0E0E0;
      color: #9E9E9E;
      opacity: 0.8;
  }

  /* Badge de Estado */
  .badge {
      font-size: 16px;
      padding: 10px 20px;
      border-radius: 25px;
      background-color: rgba(108, 117, 125, 0.95);
      color: white;
      font-weight: 500;
      margin-top: 15px;
      display: inline-block;
  }

  /* Actividades de Hoy Card */
  .card.actividades-hoy {
      background: white;
      border-radius: 15px;
      margin-top: 20px;
      overflow: hidden;
  }

  .actividades-hoy .card-header {
      background-color: #002060;
      color: white;
      padding: 15px 20px;
      font-size: 20px;
      font-weight: 500;
      border: none;
  }

  .actividades-hoy .card-body {
      padding: 15px;
      min-height: 100px;
  }

  /* Iconos */
  .bi {
      font-size: 24px;
      margin-right: 8px;
  }
}


/* Estilos para el escáner QR */
#video {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

#qr-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.scan-area {
  width: 250px;
  height: 250px;
  border: 2px solid #fff;
  border-radius: 10px;
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.5);
}

.card-body {
  position: relative;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 10px;
}

#qr-overlay p {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px 20px;
  border-radius: 20px;
  margin-top: 20px;
}

.swal-wide {
  width: 600px !important;
  background-color: white !important;
}

.swal2-popup {
  background-color: white !important;
}

.swal2-title {
  color: #333 !important;
}

.form-label {
  color: #333 !important;
}



.form-control:focus, .form-select:focus {
  border-color: #80bdff !important;
  box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25) !important;
}

/* Sobrescribir estilos para el modal de áreas */
.syro-modal {
  background-color: #243b55 !important;
  color: white !important;
}

.syro-modal .modal-header,
.syro-modal .modal-body,
.syro-modal .modal-footer {
  background-color: #243b55 !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.syro-modal .form-label {
  color: white !important;
}

.syro-modal .form-control,
.syro-modal .form-select {
  background-color: #2c4766 !important;
  color: white !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.syro-modal .form-control:focus,
.syro-modal .form-select:focus {
  background-color: #2c4766 !important;
  border-color: #0d6efd !important;
  color: white !important;
}

.syro-modal .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

.syro-modal .modal-title {
  color: white !important;
}

.syro-modal .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.syro-modal select option {
  background-color: #243b55 !important;
  color: white !important;
}

/* Agregar en styles.css */
.nav-tabs {
  background-color: rgba(52, 58, 64, 0.8);
  border-radius: 4px;
  border: none;
}

.nav-tabs .nav-link {
  color: #fff;
  border: none;
  padding: 10px 20px;
}

.nav-tabs .nav-link.active {
  background-color: rgba(0, 123, 255, 0.3);
  color: #fff;
  border: none;
}

.nav-tabs .nav-link:hover {
  border: none;
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-tabs .nav-link.active {
  color: #00B0F0;
  background: transparent;
  border-bottom: 2px solid #00B0F0;
}

/* Agregar en styles.css */
.table thead th {
  background-color: rgba(0, 32, 96, 0.8);
  color: white;
  border-bottom: none;
  padding: 1rem;
}

.table tbody td {
  color: white;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.table-hover tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.table thead {
  background-color: #002060;
  color: white;
}

.table thead th {
  border: none;
  padding: 12px;
}


/* Estilo base para todas las tarjetas */
.card {
  border: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: 0 0 15px rgba(0,0,0,.1);
  transition: transform 0.3s ease;
}

/* Ajustar el padding del card-body */
.card-body {
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

/* Consolidar estilos de cabecera */
.card-header {
  background-color: rgba(0, 32, 96, 0.5);
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 1.5rem;
}

/* Estilos para el DateRangePicker */
.daterangepicker {
  background-color: #243b55;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: white;
}

.daterangepicker .calendar-table {
  background-color: #243b55;
  border: none;
}

.daterangepicker td.off, 
.daterangepicker td.off.in-range, 
.daterangepicker td.off.start-date, 
.daterangepicker td.off.end-date {
  background-color: transparent;
  color: rgba(255, 255, 255, 0.3);
}

.daterangepicker td.active, 
.daterangepicker td.active:hover {
  background-color: #00B0F0;
}

.daterangepicker .ranges {
  background-color: #243b55;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.daterangepicker .ranges li {
  color: white;
  padding: 8px 12px;
}

.daterangepicker .ranges li:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.daterangepicker .ranges li.active {
  background-color: #00B0F0;
}

.daterangepicker .drp-buttons {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.daterangepicker .drp-selected {
  color: white;
}

.daterangepicker .applyBtn {
  background-color: #00B0F0;
  border-color: #00B0F0;
}

.daterangepicker .cancelBtn {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

/* Ajuste para el input */
#daterange {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Estilos específicos para DataTables en el dashboard */
.dataTables_wrapper .btn-group {
  margin-bottom: 15px;
}

.dataTables_wrapper .btn {
  margin-right: 5px;
}

/* Consistencia en el estilo de las tablas */
.table {
  width: 100% !important;
  margin-bottom: 1rem;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  padding-top: 0.85em;
  margin-top: 10px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: #00B0F0 !important;
  border-color: #00B0F0 !important;
  color: white !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:not(.current):hover {
  background: rgba(0, 176, 240, 0.2) !important;
  border-color: rgba(0, 176, 240, 0.2) !important;
}

/* Asegurar que los botones de acciones se vean bien */
.table .d-flex {
  justify-content: center;
}

.table td {
  vertical-align: middle;
}

/* Estilos para los badges de estado */
.status-badge {
  display: inline-block;
  padding: 0.35em 0.65em;
  font-size: 0.85em;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.375rem;
}

.status-en-proceso {
  background-color: #17a2b8;
  color: white;
}

.status-completada {
  background-color: #28a745;
  color: white;
}

.status-pendiente {
  background-color: #ffc107;
  color: black;
}

/* Estilos para la paginación personalizada */
.custom-pagination {
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-pagination .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.2);
}

.custom-pagination .btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.custom-pagination .pagination-info {
  font-size: 0.9rem;
}

.search-container .input-group-text {
  padding-left: 0;
}

.search-container .table-search::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Estilos para la paginación personalizada completa */
.full-pagination-container {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 15px;
}

.export-buttons .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-right: 5px;
}

.custom-pagination {
  margin-top: 15px;
  padding: 10px 0;
}

.custom-pagination .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.2);
}

.custom-pagination .btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.custom-pagination .pagination-info {
  font-size: 0.9rem;
}

.search-container .input-group-text {
  padding-left: 0;
}

.search-container .table-search::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-select option {
  background-color: #243b55;
  color: white;
}

/* Mejorar contraste para tablas en dashboard */
.tab-pane .table {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
}

.tab-pane .table thead th {
  background-color: #002060 !important;
  color: white !important;
  font-weight: 600;
  padding: 12px 15px;
}

.tab-pane .table tbody tr {
  background-color: rgba(255, 255, 255, 0.85) !important;
}

.tab-pane .table tbody tr:nth-child(odd) {
  background-color: rgba(255, 255, 255, 0.95) !important;
}

.tab-pane .table tbody td {
  color: #333 !important;
  border-color: rgba(0, 0, 0, 0.1);
  padding: 10px 15px;
}

/* Mejorar contraste en paginación */
.full-pagination-container {
  background-color: rgba(0, 32, 96, 0.3);
  border-radius: 0 0 8px 8px;
  padding: 15px;
  margin-top: 0;
}

/* Ajustar campos de paginación */
.page-size-container select,
.search-container input,
.search-container .input-group-text {
  background-color: rgba(255, 255, 255, 0.9) !important;
  color: #333 !important;
  border-color: rgba(0, 0, 0, 0.2) !important;
}

/* Mantener color de botones de acción */
.tab-pane .table .btn-info,
.tab-pane .table .btn-success,
.tab-pane .table .btn-warning {
  color: white !important;
}

/* Ajustar badges de estado */
.tab-pane .table .status-badge {
  font-weight: 600;
}

/* Ajustes para el campo de búsqueda en la paginación personalizada */
.full-pagination-container .search-container {
  margin: 0 10px;
}

.full-pagination-container .search-container .input-group {
  height: 38px;
  width: 280px !important;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background-color: white;
}

.full-pagination-container .search-container .input-group-text {
  background-color: white !important;
  color: #243b55 !important;
  border: none;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0 10px;
}

.full-pagination-container .search-container .table-search {
  height: 100%;
  background-color: white !important;
  color: #333 !important;
  border: none !important;
  padding-left: 10px;
  box-shadow: none !important;
}

/* Ajustes para alinear todos los elementos de la paginación */
.full-pagination-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.custom-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Ajustar el selector de registros por página */
.page-size-container select {
  height: 38px;
  border-radius: 4px;
}

/* Ajustar el ícono de búsqueda */
.search-container .bi-search {
  font-size: 14px;
  color: #555;
}

/* Estilo para los botones de navegación */
.pagination-controls .btn {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Mejorar contraste en DateRangePicker */
.daterangepicker .ranges li:hover {
  background-color: rgba(0, 176, 240, 0.3) !important; /* Azul MAFRA con transparencia */
  color: white !important;
  font-weight: 500;
}

/* Mejorar visualización para el item activo en hover */
.daterangepicker .ranges li.active:hover {
  background-color: #00B0F0 !important;
  color: white !important;
  font-weight: 600;
}

/* Mejorar contraste para los días en calendario */
.daterangepicker td.available:hover {
  background-color: rgba(0, 176, 240, 0.3) !important;
  color: white !important;
  font-weight: bold;
}

/* Estilo para opción actualmente seleccionada */
.daterangepicker .ranges li.active {
  background-color: #00B0F0 !important;
  color: white !important;
  font-weight: 600;
}

/* Mejorar visualización de opciones en menú desplegable */
.daterangepicker .ranges {
  padding: 5px 0;
}

.daterangepicker .ranges li {
  padding: 10px 12px;
  border-radius: 4px;
  margin: 2px 5px;
  transition: all 0.2s ease;
}

/* Personalización de tooltips */
.tooltip {
  font-family: Arial, sans-serif;
  font-size: 13px;
}

.tooltip .tooltip-inner {
  background-color: #002060;
  color: white;
  border-radius: 4px;
  padding: 6px 10px;
  max-width: 200px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tooltip .tooltip-arrow {
  border-top-color: #002060 !important;
}

/* Asegurarse que los tooltips estén por encima de otros elementos */
.tooltip {
  z-index: 1080 !important;
}

/* Evitar que los tooltips bloqueen interacciones */
.tooltip-inner {
  pointer-events: none;
}

/* Estilo para tareas extras */
.actividades-hoy .badge.badge-extra {
  background-color: #9c27b0;  /* Púrpura para destacar las extras */
}

/* Separador de secciones */
.section-divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
}

.section-divider .divider-line {
  flex-grow: 1;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.1);
}

.section-divider .divider-text {
  padding: 0 1rem;
  font-weight: 600;
  color: #495057;
}

/* Añade estos estilos justo antes del cierre de la etiqueta </style> en dashboard_worker.php */

/* Estilos para el separador de secciones */
.section-divider {
  display: flex;
  align-items: center;
  margin: 2rem 0;
}

.divider-line {
  flex-grow: 1;
  height: 1px;
  background-color: #dee2e6;
}

.divider-text {
  padding: 0 1rem;
  font-weight: 600;
  font-size: 1.2rem;
  color: #002060;
}

/* Estilos específicos para la tabla de asignación de pendientes */
.pending-workers-table {
  color: white !important;
}

.pending-workers-table thead th {
  color: white !important;
  background-color: #002060 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
  padding: 10px !important;
  font-weight: 600 !important;
}

.pending-workers-table tbody tr {
  background-color: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.pending-workers-table tbody td {
  padding: 10px !important;
  color: white !important;
  background-color: transparent !important;
}

/* Neutralizar otros estilos que puedan interferir */
.pending-workers-table tbody td * {
  color: white !important;
}

/* Excepciones para badges y botones */
.pending-workers-table .badge {
  color: inherit !important;
}

.pending-workers-table .btn {
  color: inherit !important;
}


/* Cuerpo con ligero gradiente */
.mobile-activity-card .card-body {
  background: linear-gradient(to bottom, rgba(36, 59, 85, 0.8), rgba(30, 48, 70, 0.8));
  padding: 16px;
}

/* Estilos para títulos más llamativos */
.mobile-activity-card .card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Espaciado mejorado para la información */
.mobile-activity-card p {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
}

.mobile-activity-card p:last-of-type {
  border-bottom: none;
}

.mobile-activity-card strong {
  color: #00B0F0;
  font-weight: 600;
}

/* Botones más atractivos */
.mobile-activity-card .action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.mobile-activity-card .btn {
  flex: 1;
  min-width: 80px;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Ajuste para los badges de estado */
.mobile-activity-card .status-badge {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 30px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  letter-spacing: 0.5px;
}

/* Colores específicos para cada estado */
.mobile-activity-card .status-en-proceso {
  background: linear-gradient(135deg, #00B0F0, #0077cc);
  color: white;
}

.mobile-activity-card .status-completada {
  background: linear-gradient(135deg, #28a745, #1e7e34);
  color: white;
}

.mobile-activity-card .status-pendiente {
  background: linear-gradient(135deg, #ffc107, #d39e00);
  color: black;
}

.mobile-activity-card .status-en-revision {
  background: linear-gradient(135deg, #9c27b0, #7b1fa2);
  color: white;
}

/* =========================================
   SISTEMA RESPONSIVO FINAL - ESTÉTICO
   ========================================= */

/* Control de visibilidad responsiva */
@media (max-width: 767px) {
  .table-responsive,
  .dashboard-table,
  .table,
  .nav-tabs {
    display: none !important;
    visibility: hidden !important;
  }
  
  .mobile-activity-cards,
  .mobile-tab-container {
    display: block !important;
    visibility: visible !important;
  }
}

@media (min-width: 768px) {
  .mobile-activity-cards,
  .mobile-tab-container {
    display: none !important;
  }
}

/* NAVEGACIÓN MÓVIL MEJORADA */
.mobile-tab-container {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.mobile-tab-container .header {
  background: linear-gradient(to right, #0056b3, #007bff);
  color: white;
  font-size: 22px;
  font-weight: bold;
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-tab-container .nav-options {
  display: flex;
  overflow-x: auto;
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  padding: 0;
  margin: 0;
  scrollbar-width: none;
}

.mobile-tab-container .nav-options::-webkit-scrollbar {
  display: none;
}

.mobile-tab-container .nav-option {
  padding: 12px 20px;
  color: #495057;
  white-space: nowrap;
  text-align: center;
  position: relative;
  font-weight: 500;
  flex: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-tab-container .nav-option.active {
  color: #007bff;
  font-weight: 600;
  background-color: rgba(0, 123, 255, 0.05);
}

.mobile-tab-container .nav-option.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: #007bff;
}

/* TARJETAS MÓVILES CON FONDOS MÁS CLAROS */
.mobile-activity-card {
  background-color: #ffffff;
  border-radius: 12px;
  margin-bottom: 18px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: transform 0.2s ease;
  border: none;
}

.mobile-activity-card .card-header {
  background: linear-gradient(to right, #0056b3, #0077cc);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: none;
}

.mobile-activity-card .card-body {
  background: white;
  padding: 16px;
}

.mobile-activity-card .card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: white;
  text-shadow: none;
}

.mobile-activity-card p {
  margin-bottom: 10px;
  padding-bottom: 10px;
  color: #495057;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-activity-card p:last-of-type {
  border-bottom: none;
}

.mobile-activity-card .field-label {
  color: #0056b3;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 3px;
  display: block;
}

.mobile-activity-card .field-value {
  color: #495057;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-activity-card .field-value:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.mobile-activity-card strong {
  color: #0056b3;
  font-weight: 600;
}

.mobile-activity-card .action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.mobile-activity-card .btn {
  flex: 1;
  min-width: 80px;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Badges de estado más estéticos */
.mobile-activity-card .status-badge {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 30px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.mobile-activity-card .status-en-proceso {
  background-color: #17a2b8;
  color: white;
}

.mobile-activity-card .status-completada {
  background-color: #28a745;
  color: white;
}

.mobile-activity-card .status-pendiente {
  background-color: #ffc107;
  color: #212529;
}

.mobile-activity-card .status-en-revision {
  background-color: #9c27b0;
  color: white;
}

/* Estilos para campos dentro de tarjetas */
.mobile-activity-card .tipo-field {
  color: #0056b3;
}

.mobile-activity-card .responsable-field {
  color: #495057;
  font-weight: 500;
}

.mobile-activity-card .fecha-field {
  color: #6c757d;
}

.mobile-activity-card .motivo-field {
  color: #fd7e14;
  font-weight: 500;
}

/* Mensaje "No hay actividades" más estético */
.mobile-activity-cards .alert-info {
  background-color: #e3f2fd;
  color: #0c5460;
  border: none;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* MEJORA DE BOTONES EN TARJETAS MÓVILES */
.mobile-activity-card .btn {
  padding: 12px 15px;
  margin-bottom: 0;
  font-size: 15px;
  font-weight: 500;
  border-radius: 12px;
  transition: all 0.2s ease;
  flex: 1;
  min-width: 90px;
  text-align: center;
}

.mobile-activity-card .action-buttons {
  display: flex;
  gap: 8px;
  margin-top: 15px;
}

/* Estilos específicos por tipo de botón */
.mobile-activity-card .btn-info {
  background: #00B0F0;
  border-color: #00B0F0;
  color: white;
  box-shadow: 0 4px 10px rgba(0, 176, 240, 0.3);
}

.mobile-activity-card .btn-info:hover,
.mobile-activity-card .btn-info:active {
  background: #0094cc;
  border-color: #0094cc;
  transform: translateY(-2px);
}

.mobile-activity-card .btn-success {
  background: #28a745;
  border-color: #28a745;
  color: white;
  box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}

.mobile-activity-card .btn-success:hover,
.mobile-activity-card .btn-success:active {
  background: #218838;
  border-color: #1e7e34;
  transform: translateY(-2px);
}

.mobile-activity-card .btn-warning {
  background: #ffc107;
  border-color: #ffc107;
  color: #212529;
  box-shadow: 0 4px 10px rgba(255, 193, 7, 0.3);
}

.mobile-activity-card .btn-warning:hover,
.mobile-activity-card .btn-warning:active {
  background: #e0a800;
  border-color: #d39e00;
  transform: translateY(-2px);
}

/* Ícono dentro del botón */
.mobile-activity-card .btn i {
  margin-right: 5px;
  font-size: 16px;
}

/* Mejora para dispositivos más pequeños */
@media (max-width: 380px) {
  .mobile-activity-card .action-buttons {
    flex-direction: column;
  }
  
  .mobile-activity-card .btn {
    width: 100%;
  }
}

/* CORRECCIÓN PARA MENSAJE "NO HAY ACTIVIDADES" */
.mobile-activity-cards .alert,
.mobile-activity-cards .alert-info,
.tab-pane .alert {
  background-color: #e3f2fd;
  color: #0c5460;
  border: none !important;
  border-radius: 10px;
  padding: 15px;
  margin: 15px 0;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  font-size: 16px;
  font-weight: 500;
}

/* Eliminar TODOS los posibles bordes rojos de debugging */
.mobile-activity-cards > *,
.tab-pane > * {
  border-color: transparent !important;
  outline: none !important;
}

/* Estilos para las tarjetas de trabajadores en el modal de asignación */
.worker-card .card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.worker-card .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.worker-card .card-title {
  font-size: 1.1rem;
  color: white;
}

.worker-card .card-text {
  color: rgba(255, 255, 255, 0.8);
}

.worker-card .badge {
  font-size: 0.8rem;
  padding: 0.4rem 0.6rem;
}

/* Hacer el modal de asignar pendiente más amigable en móvil */
@media (max-width: 767px) {
  #assignPendingModal .modal-dialog {
      margin: 0.5rem;
      max-width: none;
  }
  
  #assignPendingModal .modal-content {
      border-radius: 1rem;
  }
  
  #assignPendingModal .modal-body {
      padding: 1rem;
  }
  
  #assignPendingModal .btn-lg {
      padding: 0.75rem 1rem;
      font-size: 1.1rem;
  }
  
  #trabajador-search {
      font-size: 1rem;
      padding: 0.75rem;
      height: auto;
  }
}

/* Ajuste específico para el badge de estado en tarjetas móviles */
.mobile-activity-card .card-header .status-badge,
.mobile-activity-card .card-header .badge {
  margin-left: auto; /* Empuja el badge hacia la derecha */
  margin-right: 0;   /* Elimina cualquier margen derecho */
}

/* Asegurar que el título no ocupe demasiado espacio */
.mobile-activity-card .card-header .card-title {
  max-width: 70%;    /* Limita el ancho del título */
  margin-right: 10px; /* Espacio entre el título y el badge */
}



/* Estilos para modal de fotos responsivo */
.photo-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.photo-modal-header {
  background-color: #002060;
  color: white;
  padding: 15px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1;
}

.photo-modal-content {
  padding: 15px;
  flex: 1;
  overflow-y: auto;
}

.photo-modal-footer {
  background-color: #002060;
  padding: 10px;
  text-align: center;
  position: sticky;
  bottom: 0;
}

.photo-modal-close {
  background-color: #00B0F0;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.photo-section {
  margin-bottom: 20px;
}

.photo-section h5 {
  margin-bottom: 15px;
  color: white;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 8px;
}

.photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.photo-card {
  width: 100%;
  background-color: #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.photo-card-header {
  padding: 8px 10px;
  background-color: #002060;
  color: white;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.photo-card img {
  width: 100%;
  display: block;
  max-height: 300px;
  object-fit: contain;
  background-color: #fff;
}

@media (min-width: 768px) {
  .photo-card {
      width: calc(50% - 15px);
  }
}

.no-photos-message {
  color: white;
  text-align: center;
  background-color: rgba(255,255,255,0.1);
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

/* Mejoras para el modal de supervisión */
.supervision-modal-popup {
  border-radius: 10px;
  overflow: hidden;
}

.supervision-modal-content {
  padding: 0;
}

/* Mejoras de contraste para la tabla de supervisión */
.table-bordered td, .table-bordered th {
  border: 1px solid #dee2e6;
}

.table-danger {
  background-color: #f8d7da !important;
  border-color: #f5c6cb !important;
}

.table-light {
  background-color: #f8f9fa !important;
  border-color: #e9ecef !important;
}

/* Responsive para dispositivos móviles */
@media (max-width: 767.98px) {
  .supervision-modal-container {
      padding: 5px !important;
  }
  
  .supervision-modal-popup {
      margin: 0 !important;
  }
  
  .table td, .table th {
      padding: 0.5rem;
  }
}

/* Mejoras para la sección de Supervisiones Recientes */
.supervision-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #5d76a8;
  color: white;
  border-radius: 5px 5px 0 0;
  margin-bottom: 0;
}

.supervision-header h4 {
  margin: 0;
  font-weight: 600;
}

.export-buttons-container {
  background-color: #f8f9fa;
  padding: 10px 15px;
  border-left: 1px solid #dee2e6;
  border-right: 1px solid #dee2e6;
  display: flex;
  gap: 8px;
}

.export-buttons-container .btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  font-weight: 500;
}

/* Mejoras para la tabla de supervisiones */
.supervision-table {
  border: 1px solid #dee2e6;
  border-radius: 0 0 5px 5px;
  overflow: hidden;
}

.supervision-table thead th {
  background-color: #002060 !important;
  color: white !important;
  border-bottom: 2px solid #001540 !important;
  padding: 12px 15px !important;
  font-weight: 600 !important;
}

.supervision-table tbody td {
  padding: 10px 15px !important;
  vertical-align: middle !important;
  border-bottom: 1px solid #dee2e6 !important;
}

.supervision-table tbody tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.02);
}

.supervision-table tbody tr:hover {
  background-color: rgba(0, 123, 255, 0.03);
}

.supervision-table .badge {
  padding: 6px 10px;
  font-weight: normal;
  font-size: 0.875rem;
}

/* Mejoras responsivas */
@media (max-width: 767px) {
  .supervision-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
  }
  
  .export-buttons-container {
      padding: 8px;
      flex-wrap: wrap;
      justify-content: center;
      width: 100%;
  }
}

/***********************************************/

/* Estilos para extensiones nocturnas */
.extension-nocturna {
  background-color: rgba(13, 110, 253, 0.1);
  border-left: 4px solid #0d6efd;
}

.extension-badge {
  background-color: #0d6efd;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
}

.extension-badge i {
  margin-right: 4px;
}

.extension-nocturna-mobile .card-header {
  background: linear-gradient(to right, #0d6efd, #6610f2);
}

.extension-info {
  text-align: center;
}

.extension-info .badge {
  font-size: 14px;
  padding: 8px 12px;
}