label {
  display: block;
  font: 1rem "Fira Sans", sans-serif;
}

body {
  background-color: #050505 !important;
  background-image: none !important;
  display: flex;
  flex-direction: column;
}

input,
label {
  margin: 0.4rem 0;
}

.font150 {
  font-size: 150%;
}

.font140 {
  font-size: 140%;
}

.font130 {
  font-size: 130%;
}

.font120 {
  font-size: 120%;
}

.font110 {
  font-size: 110%;
}

.font100 {
  font-size: 100% !important;
}

.font90 {
  font-size: 90% !important;
}

.font80 {
  font-size: 80% !important;
}

#loader {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
}

.loader-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(5, 5, 5, 0.9);
  /* Dark backdrop to clear background content */
  z-index: -1;
}

.loader-content {
  text-align: center;
  z-index: 10001;
}

.loader-logo {
  width: 280px;
  /* Wider logo as requested */
  height: auto;
  animation: pulse-loader 2s infinite ease-in-out;
}

@keyframes pulse-loader {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.05);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 0.8;
  }
}

.bg-black {
  background-color: black;
}

.bg-bordo {
  background-color: rgb(131, 0, 0);
}

.form-control {
  margin: 0px;
}

.navbar {
  position: sticky;
  top: 0px;
  z-index: 1030;
  background-color: #0f0f0f !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-content {
  background-color: rgb(36, 36, 36) !important;
  color: whitesmoke;
}

.input-group-text {
  background-color: rgb(51, 51, 51);
  color: whitesmoke;
}

.radio-grande {
  width: 25px;
  height: 25px;
  position: static;
}

.row {
  margin: 0;
  padding: 0;
  width: 100%;
}

@media (max-width: 1200px) {
  .modal-dialog {
    max-width: 100%;
  }
}

.pointer {
  cursor: pointer;
}

.bg-fullblack {
  background-color: #000000 !important;
}

#contenedor-tabla-busqueda-cliente {
  height: 70vh !important;
  overflow-y: scroll;
  /* display: -webkit-box; */
  /* position: relative; */
}

.close:hover {
  color: #fff;
}

.modal-header {
  align-items: center !important;
}

.close {
  color: #fff;
  opacity: 0.8 !important;
  background-color: #f00 !important;
  border-color: #f00 !important;
  border-radius: 10%;
  padding: 10px !important;
  justify-content: center;
  align-items: center;
  margin-right: 0.2vw !important;
  font-size: 1rem !important;
}

.fixedTop th {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0;
  background-color: #191919;
  border: 0;
}

#icono_usuario {
  height: 50px;
  width: 50px;
  border-radius: 50%;
}

.bg-orange {
  background-color: #013464;
}

.nav-item {
  margin-right: 2%;
  margin-left: 2%;
}

.btn-motivos {
  width: 100%;
  padding-top: 5rem;
  font-size: x-large;
  cursor: pointer;
}

.btn-motivos .row {
  justify-content: center;
}

.btn-resolucion-llamado {
  width: 100%;
  padding-top: 5rem;
  font-size: x-large;
  cursor: pointer;
  height: 100%;
  text-justify: center;
}

.btn-resolucion-llamado .row {
  justify-content: center;
}

.btn-solicitante {
  width: 100%;
  padding-top: 5rem;
  font-size: x-large;
  cursor: pointer;
}

.btn-solicitante .row {
  justify-content: center;
}

#contenedor-tabla-busqueda-cliente tr {
  cursor: pointer;
}

tr.odd td {
  background-color: inherit !important;
}

tr.even td {
  background-color: inherit !important;
}

thead th {
  background-color: inherit !important;
}

div.dataTables_scrollBody {
  border-left: 0px !important;
}

table.dataTable tbody td.select-checkbox:before {
  width: 30px;
  height: 30px;
  background-color: #fff;
  align-items: start !important;
  justify-content: center !important;
  margin: 0px !important;
}

table.dataTable tr.selected td.select-checkbox:after {
  color: rgb(0, 253, 0);
  text-shadow: none !important;
  font-size: 18px !important;
  font-weight: bold;
  margin: 0px !important;
  margin-bottom: 10%;
  width: 30px;
  height: 30px;
}

.pagina-actual {
  border-radius: 5px 5px 5px 5px;
  background-color: rgb(243, 243, 243);
  font-size: 1.1rem;
  font-weight: bold;
  padding-left: 20px;
}

@media (min-width: 1200px) {
  .pagina-actual {
    border-radius: 5px 5px 5px 5px;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 768px) {
  #modal-administrador input:not([type="radio"]) {
    min-width: -webkit-fill-available !important;
  }

  #modal-consorcio input:not([type="radio"]) {
    min-width: -webkit-fill-available !important;
  }
}

input {
  min-width: auto;
}

.logo-navbar {
  height: 55px;
  background-image: url(../img/logo.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center left;
  width: 200px;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgb(255 255 255);
}

.modal-footer .btn {
  width: -webkit-fill-available;
}

.img-usuario-tarjeta {
  max-height: 60px;
  max-width: 60px;
  height: 60px;
  width: 60px;
}

@media (max-width: 768px) {
  .img-usuario-tarjeta {
    max-height: 50px;
    max-width: 50px;
  }
}

@media (max-width: 1700px) {
  .img-usuario-tarjeta {
    max-height: 60px;
    max-width: 60px;
    height: 60px;
    width: 60px;
  }
}

.img-usuario-tarjeta-navbar {
  max-height: 30px;
  /* max-width: 30px; */
}

select,
input[type="date"],
input[type="time"] {
  border-radius: 10px;
  padding: 0.5rem;
  text-transform: uppercase;
}

input[type="date"],
input[type="time"] {
  text-align: center;
}

.hidden {
  display: none;
}

.miniatura-remito {
  display: flex;
  border-radius: 10px;
  height: 80px;
  width: 80px;
  background-color: black !important;
}

.miniatura-remito:hover {
  opacity: 0.5;
  cursor: pointer;
}

#img-zoom {
  max-height: 90vh;
}

.card-tecnico-cobros-pendientes {
  cursor: pointer;
}

.modal-xxl {
  width: 100%;
  height: 100% !important;
  max-height: 100%;
  margin: 0;
}

.modal-xxl .modal-content {
  height: 100%;
  max-height: 100%;
}

.modal-xxl .modal-body {
  height: 85%;
  max-height: 85%;
}

.reportes-container {
  display: inline-block;
  height: 94%;
  max-height: 94% !important;
  overflow-y: scroll;
  overflow-x: hidden;
}

.nuevo-reporte-container {
  display: inline-block;

  height: auto;
}

#modal-cobranza {
  height: 100%;
  max-height: 100%;
}

.modal-xxl .col-12 {
  height: inherit;
}

.falta-nota-para-administracion {
  background-image: url("../img/prohibido.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position-x: center;
  background-color: #9b0000 !important;
}

.bg-bordo {
  background-color: #5f0000 !important;
}

.no-editable {
  pointer-events: none;
}

#modal-administrador {
  z-index: 10000;
}

body::-webkit-scrollbar {
  width: 12px;
  /* width of the entire scrollbar */
}

body::-webkit-scrollbar-track {
  background: #050505;
  /* color of the tracking area */
}

body::-webkit-scrollbar-thumb {
  background-color: #333333;
  /* color of the scroll thumb */
  border-radius: 40px;
  /* roundness of the scroll thumb */
  border: 4px solid #050505;
  /* creates padding around scroll thumb */
}

.columna-titulo-sticky {
  position: sticky;
  top: var(--navbar-h, 76px);
  /* Dinámico: JS setea --navbar-h en tiempo real */
  z-index: 10;
  background-color: inherit;
  /* Inherits its column color */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
  margin-bottom: 5px;
}

.contenedor-comuna-panel {
  display: block !important;
  /* Fixes sticky overlap in flex containers */
  position: relative;
  overflow: visible !important;
}

/* Ensure content below doesn't get covered */
#llamadas-pendientes,
#trabajos-pendientes,
#trabajos-en-curso,
#trabajos-finalizados {
  padding-top: 5px;
  z-index: 1;
}

/* Modal and Backdrop Z-Index Fix to stay on top of Sidebars and Navbars */
.modal-backdrop {
  z-index: 10000 !important;
}

.modal {
  z-index: 10001 !important;
}

/* SweetAlert Z-Index - must be higher than any modal */
.swal2-container {
  z-index: 20000 !important;
}

.contenedor-comuna-panel {
  display: flex;
  flex-direction: column;
}

/* #all-btn-sidebar span {
  color: white;
} */
#all-btn-sidebar {
  color: white;
}

.pagina-actual a {
  color: rgb(0, 0, 0) !important;
}

.navbar-btn-paneles a {
  color: white;
}

/* Premium Dark Modal Styles */
.bg-dark-soft {
  background-color: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.modal-content {
  background-color: rgba(15, 15, 15, 0.96) !important;
  backdrop-filter: blur(70px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 80px #000000cc !important;
}

.modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 1.5rem !important;
}

.modal-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(0, 0, 0, 0.1);
  padding: 1.2rem !important;
}

.modal-backdrop.show {
  backdrop-filter: blur(4px);
  background-color: rgba(0, 0, 0, 0.6) !important;
}

.form-control.bg-dark {
  background-color: #111 !important;
  border: 1px solid #333 !important;
  color: #eee !important;
  border-radius: 6px !important;
  padding: 0.6rem 0.75rem !important;
  height: auto !important;
}

.form-control.bg-dark:focus {
  border-color: #0d6efd !important;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25) !important;
  background-color: #000 !important;
}

label.text-white.small {
  opacity: 0.7;
  letter-spacing: 0.5px;
}

#direccion {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff !important;
}

/* Flatpickr Dark Refinement */
.flatpickr-calendar.dark {
  background: #191919 !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
}

/* Time Slot Modern Picker */
.time-slots-container {
  display: flex;
  gap: 15px;
  margin-top: 5px;
}

.time-slots-column {
  flex: 1;
}

.time-slots-header {
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
  margin-bottom: 5px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  max-height: 160px;
  overflow-y: auto;
  padding: 8px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.time-slots-grid::-webkit-scrollbar {
  width: 4px;
}

.time-slots-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.time-slot-chip {
  padding: 8px 2px;
  font-size: 0.75rem;
  text-align: center;
  background: #1a1d21;
  color: #adb5bd;
  border: 1px solid #2d3238;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.time-slot-chip:hover {
  background: #2d3238;
  border-color: #495057;
  color: #fff;
  transform: translateY(-1px);
}

.time-slot-chip.selected {
  background: #0d6efd !important;
  border-color: #0d6efd !important;
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
}

/* Glassmorphism Design System */
.glass-card {
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  background-color: rgba(25, 25, 25, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.125) !important;
  border-radius: 16px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.glass-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  background-color: rgba(35, 35, 35, 0.85);
}

.glass-card-info {
  background-color: rgba(23, 162, 184, 0.15) !important;
  border-color: rgba(23, 162, 184, 0.3) !important;
}

.glass-card-warning {
  background-color: rgba(255, 193, 7, 0.15) !important;
  border-color: rgba(255, 193, 7, 0.3) !important;
}

.glass-card-primary {
  background-color: rgba(0, 123, 255, 0.15) !important;
  border-color: rgba(0, 123, 255, 0.3) !important;
}

.glass-card-success {
  background-color: rgba(40, 167, 69, 0.15) !important;
  border-color: rgba(40, 167, 69, 0.3) !important;
}

.glass-card-danger {
  background-color: rgba(220, 53, 69, 0.15) !important;
  border-color: rgba(220, 53, 69, 0.3) !important;
}

.glass-card-purple {
  background-color: rgba(162, 155, 254, 0.15) !important;
  border-color: rgba(162, 155, 254, 0.3) !important;
}

.glass-card-blue {
  background-color: rgba(116, 185, 255, 0.15) !important;
  border-color: rgba(116, 185, 255, 0.3) !important;
}

.glass-card-green {
  background-color: rgba(85, 239, 196, 0.15) !important;
  border-color: rgba(85, 239, 196, 0.3) !important;
}

.tracking-wider {
  letter-spacing: 0.1em;
}

.opacity-75 {
  opacity: 0.75;
}

.card-dashboard-unified {
  height: 100%;
}