/*//////////////////////////////////////////////////////////////////
[ FONT ]*/

@font-face {
  font-family: Poppins-Regular;
  src: url("../fonts/poppins/Poppins-Regular.ttf");
}

@font-face {
  font-family: Poppins-Medium;
  src: url("../fonts/poppins/Poppins-Medium.ttf");
}

@font-face {
  font-family: Poppins-Bold;
  src: url("../fonts/poppins/Poppins-Bold.ttf");
}

@font-face {
  font-family: Poppins-SemiBold;
  src: url("../fonts/poppins/Poppins-SemiBold.ttf");
}

:root {
  --primary: #224478;
  --dark: #101419;
  --light: #ffffff;
  --secondary: #a4b8c4;
  --dark-accent: #ac445b;
  --light-accent: #7689ad;
  --bg: #f1f1f1;
  --bg-dark: #101419;
  --bg-light: #ffffff;
  --bg-light2: #f9f9f9;
  --bg-light3: #f1f1f1;
  --border: #c4d2ee;
  --border-dark: #101419;
  --text: #333333;
  --text-dark: #101419;
  --text-light: #ffffff;
  --scrollbar-track: #edf2f7;
  --scrollbar-thumb: #7894b3;
  --scrollbar-thumb-hover: #557a9f;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

*::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border: 2px solid var(--scrollbar-track);
  border-radius: 8px;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

.width100 {
  width: 100%;
}

.height100 {
  height: 100%;
}

.pers-test {
  background: #b9d0f3;
  border-radius: 10px;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.08), 0px 4px 8px rgba(0, 0, 0, 0.06);
}

.stat-card {
  background: #b9d0f3;
  border: 1px solid #b9d0f3;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(20, 33, 61, 0.08);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  transform: translateZ(0);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
  backface-visibility: hidden;
}

.stat-card:hover {
  background: #bdd5f8;
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(20, 33, 61, 0.12);
}

.chart-card {
  min-height: 320px;
}


.chart-canvas {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.chart-canvas canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.table-card table {
  border-radius: 12px;
  overflow: hidden;
}

.report-payments-modal .modal-dialog {
  max-width: 1180px;
}

.report-payments-modal .modal-content {
  border-radius: 18px;
  overflow: hidden;
  background: #f3f7fc;
  box-shadow: 0 18px 44px rgba(20, 33, 61, 0.18);
}

.report-payments-modal .modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(164, 198, 233, 0.45);
}

.report-payments-modal-heading {
  min-width: 0;
}

.report-payments-modal-heading .modal-title {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.report-payments-modal-heading small {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  white-space: normal;
  overflow-wrap: anywhere;
}

.report-payments-modal .modal-body {
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(62, 106, 178, 0.08), transparent 32%),
    #f3f7fc;
}

.report-payments-modal .modal-footer {
  padding: 16px 24px 20px;
  border-top: 1px solid rgba(164, 198, 233, 0.45);
  background: #f3f7fc;
}

.report-payments-shell {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.report-payments-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.report-payments-kpi {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 96px;
  padding: 14px 16px;
  border: 1px solid rgba(185, 208, 243, 0.9);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(20, 33, 61, 0.08);
}

.report-payments-kpi-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #53657f;
}

.report-payments-kpi-value {
  font-size: 1.08rem;
  font-weight: 700;
  color: #101419;
  line-height: 1.15;
}

.report-payments-kpi-note {
  margin-top: auto;
  font-size: 0.84rem;
  color: #5d6d82;
}

.report-payments-kpi-total {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(236, 244, 255, 0.96));
}

.report-payments-kpi-paid {
  background: linear-gradient(180deg, rgba(240, 251, 246, 0.98), rgba(230, 247, 238, 0.98));
  border-color: rgba(0, 160, 90, 0.16);
}

.report-payments-kpi-paid .report-payments-kpi-value {
  color: #007845;
}

.report-payments-kpi-pending {
  background: linear-gradient(180deg, rgba(255, 250, 237, 0.98), rgba(251, 244, 224, 0.98));
  border-color: rgba(212, 160, 23, 0.22);
}

.report-payments-kpi-pending .report-payments-kpi-value {
  color: #8d6700;
}

.report-payments-kpi-date {
  background: linear-gradient(180deg, rgba(239, 245, 253, 0.98), rgba(232, 241, 252, 0.98));
  border-color: rgba(62, 106, 178, 0.18);
}

.report-payments-form-card,
.report-payments-table-card,
.report-payments-forecast-card {
  border: 1px solid rgba(185, 208, 243, 0.85);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(20, 33, 61, 0.08);
}

.report-payments-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(185, 208, 243, 0.65);
}

.report-payments-card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #14213d;
}

.report-payments-card-subtitle {
  margin-top: 0.25rem;
  color: #607188;
  font-size: 0.88rem;
}

.report-payments-form-card .card-body,
.report-payments-table-card .card-body {
  padding: 20px;
}

.report-payments-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.report-payments-actions .btn {
  min-width: 152px;
}

.report-payments-form-card.is-readonly {
  opacity: 0.78;
}

.report-payments-notes {
  resize: none;
  min-height: 96px;
}

.report-payments-counter {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #66778d;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.report-payments-table-card .table-responsive {
  border-radius: 14px;
}

.report-payments-table-card table {
  margin-bottom: 0;
}

.report-payments-table-card thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #eef4fb;
  color: #29456e;
  border-bottom-width: 1px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

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

.report-payments-table-card tbody tr.row-cancelled {
  background: rgba(220, 38, 38, 0.05);
}

.report-payments-table-card tbody tr.row-cancelled td {
  color: #6c7688;
}

.report-payments-table-card tbody tr.row-cancelled .badge {
  opacity: 0.95;
}

.report-payments-text-truncate {
  display: inline-block;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.report-payments-notes-preview {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  color: inherit;
  line-height: 1.35;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.report-payments-col-reference {
  width: 24%;
  min-width: 220px;
}

.report-payments-col-notes {
  width: 30%;
  min-width: 260px;
}

.report-payments-col-actions {
  width: 1%;
  white-space: nowrap;
}

.report-payments-btn-group .btn {
  padding: 0.22rem 0.45rem;
}

.report-payment-note-modal-content {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #1d2c46;
  line-height: 1.5;
}

.report-payments-empty {
  padding: 32px 20px;
  border: 1px dashed rgba(62, 106, 178, 0.22);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(239, 245, 253, 0.72), rgba(255, 255, 255, 0.96));
  text-align: center;
}

.report-payments-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: rgba(62, 106, 178, 0.12);
  color: #3e6ab2;
  font-size: 1.15rem;
}

.report-payments-empty-title {
  margin-bottom: 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: #1d2c46;
}

.report-payments-empty-text {
  margin: 0;
  color: #66778d;
}

.report-payments-form-card .alert,
.report-payments-table-card .alert {
  border-radius: 14px;
}

@media (max-width: 991.98px) {
  .report-payments-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {

  .report-payments-modal .modal-header,
  .report-payments-card-header {
    flex-direction: column;
    align-items: stretch;
  }

  .report-payments-modal .modal-body,
  .report-payments-modal .modal-footer {
    padding: 16px;
  }

  .report-payments-summary {
    grid-template-columns: 1fr;
  }

  .report-payments-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .report-payments-text-truncate {
    max-width: 180px;
  }
}


.manual-report-list-scroll {
  overflow: visible;
}



#selected-materials-table thead,
#selected-materials-table tbody tr,
#selected-services-table thead,
#selected-services-table tbody tr,
#selected-free-lines-table thead,
#selected-free-lines-table tbody tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}

#selected-materials-table tbody,
#selected-services-table tbody,
#selected-free-lines-table tbody {
  display: block;
  max-height: 240px;
  overflow-y: auto;
}

.manual-ref-cell {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.2;
}

.manual-discount-col,
.manual-discount-cell {
  width: 78px;
  min-width: 78px;
  white-space: nowrap;
}

.manual-actions-col,
.manual-actions-cell {
  width: 56px;
  min-width: 56px;
  text-align: center;
}



.chart-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #000;
}

.chart-legend-scroll {
  max-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
}

.client-chart-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  min-height: 0;
  align-items: start;
}

.client-chart-card {
  container-type: inline-size;
  container-name: client-chart-card;
}

.client-chart-canvas {
  min-height: 220px;
  max-height: 260px;
  position: relative;
}

.client-chart-canvas canvas {
  width: 100% !important;
  height: 100% !important;
}

.client-chart-legend {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(34, 68, 120, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
}

.client-chart-legend-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.client-chart-legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

.client-chart-legend-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-dark);
}

.client-chart-legend-value {
  color: rgba(16, 20, 25, 0.7);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@container client-chart-card (max-width: 519.98px) {
  .client-chart-legend-label {
    overflow: visible;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
  }
}

.tech-visits-shell {
  min-height: 240px;
}

.tech-visits-desktop {
  display: none;
}

.tech-visits-chart-panel {
  min-width: 0;
  min-height: 280px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.32);
  border: 1px solid rgba(34, 68, 120, 0.12);
}

.tech-visits-legend {
  min-width: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(34, 68, 120, 0.12);
  max-height: 420px;
  overflow-y: auto;
}

.tech-visits-legend-header {
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--text-dark);
}

.tech-visits-legend-item {
  display: grid;
  grid-template-columns: 12px 32px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.tech-visits-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.tech-visits-legend-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.tech-visits-legend-text {
  min-width: 0;
  color: var(--text-dark);
  overflow: hidden;
}

.tech-visits-legend-text strong,
.tech-visits-legend-text span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tech-visits-legend-text span {
  color: rgba(16, 20, 25, 0.68);
  font-size: 0.84rem;
}

.tech-visits-mobile {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tech-visits-mobile-empty {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(34, 68, 120, 0.12);
  color: rgba(16, 20, 25, 0.66);
}

.tech-visits-mobile-card {
  border-radius: 18px;
  border: 1px solid rgba(34, 68, 120, 0.12);
  background: rgba(255, 255, 255, 0.38);
  overflow: hidden;
}

.tech-visits-mobile-trigger {
  width: 100%;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  color: var(--text-dark);
}

.tech-visits-mobile-trigger[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.26);
}

.tech-visits-mobile-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
}

.tech-visits-mobile-meta,
.tech-visits-mobile-summary {
  min-width: 0;
}

.tech-visits-mobile-meta strong,
.tech-visits-mobile-meta span,
.tech-visits-mobile-summary strong,
.tech-visits-mobile-summary span {
  display: block;
}

.tech-visits-mobile-meta strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.98rem;
}

.tech-visits-mobile-meta span,
.tech-visits-mobile-summary span {
  color: rgba(16, 20, 25, 0.68);
  font-size: 0.82rem;
}

.tech-visits-mobile-summary {
  text-align: right;
}

.tech-visits-mobile-summary strong {
  font-size: 1rem;
}

.tech-visits-mobile-chevron {
  margin-left: 8px;
  transition: transform 0.2s ease;
}

.tech-visits-mobile-trigger[aria-expanded="true"] .tech-visits-mobile-chevron {
  transform: rotate(180deg);
}

.tech-visits-mobile-panel {
  display: none;
  padding: 0 16px 16px;
}

.tech-visits-mobile-panel.is-open {
  display: block;
}

.tech-visits-mobile-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 6px;
}

.tech-visits-mobile-item {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(34, 68, 120, 0.1);
}

.tech-visits-mobile-item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.tech-visits-mobile-item-time {
  font-weight: 700;
  color: var(--text-dark);
}

.tech-visits-mobile-item-incident {
  color: rgba(16, 20, 25, 0.68);
  font-size: 0.82rem;
  white-space: nowrap;
}

.tech-visits-mobile-item-title {
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.35;
}

.tech-visits-mobile-item-desc {
  margin-top: 6px;
  color: rgba(16, 20, 25, 0.72);
  font-size: 0.84rem;
  line-height: 1.35;
}

@container client-chart-card (min-width: 520px) {
  .client-chart-shell {
    grid-template-columns: minmax(190px, 230px) minmax(0, 1fr);
  }

  .client-chart-canvas {
    min-height: 210px;
    max-height: 250px;
  }

  .client-chart-legend {
    max-height: 250px;
  }
}

@media (min-width: 992px) {
  .tech-visits-desktop {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
    gap: 16px;
    align-items: start;
  }

  .tech-visits-mobile {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .tech-visits-chart-panel,
  .tech-visits-legend {
    display: none;
  }
}

/* Partículas login (capa detrás del formulario) */
.container-login100 {
  position: relative;
  overflow: hidden;
}

.login-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  /* detrás del form */
}

.wrap-login100 {
  position: relative;
  z-index: 1;
  /* encima de partículas */
}

.login-particles .particle {
  position: absolute;
  left: calc(var(--x) * 1%);
  width: calc(var(--s) * 1px);
  height: calc(var(--s) * 1px);
  border-radius: 50%;
  pointer-events: none;

  mix-blend-mode: screen;
  background-image: radial-gradient(rgba(200, 255, 255, 0.9),
      rgba(200, 255, 255, 0.9) 10%,
      rgba(200, 255, 255, 0) 56%);

  /* arranca fuera por abajo */
  transform: translate3d(calc(var(--dx) * 1px), 110vh, 0);
  opacity: 0;

  will-change: transform, opacity;

  /* IMPORTANTE: 1 sola vez y se queda al final (para que animationend sea “limpio”) */
  animation: particle-flight var(--d) linear var(--delay) 1 forwards;
}

@keyframes particle-flight {
  0% {
    transform: translate3d(calc(var(--dx) * 1px), 110vh, 0);
    opacity: 0;
  }

  12% {
    opacity: var(--o);
  }

  50% {
    opacity: calc(var(--o) * 0.75);
  }

  88% {
    opacity: var(--o);
  }

  100% {
    transform: translate3d(calc(var(--dx) * 1px), -20vh, 0);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-particles .particle {
    animation: none;
  }
}

.pers-light-grey {
  background: #dbe2ee;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.pers-light-green {
  background: linear-gradient(180deg, #d5e5d6 0%, #a7c3a7 100%);
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.pers-red {
  background: #f0544f;
  border-radius: 10px;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.08), 0px 4px 8px rgba(0, 0, 0, 0.06);
}

/*//////////////////////////////////////////////////////////////////
[ RESTYLE TAG ]*/
fo * {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}

body,
html {
  height: 100%;
  font-family: Poppins-Regular, sans-serif;
  background-color: #f9f8f6;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: auto;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/*---------------------------------------------*/
a {
  font-family: Poppins-Regular, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: var(--light);
  margin: 0px;
  text-transform: capitalize;
  transition: all 0.4s;
  -webkit-transition: all 0.4s;
  -o-transition: all 0.4s;
  -moz-transition: all 0.4s;
}

a:focus {
  outline: none !important;
}

a:hover {
  text-decoration: none;
  color: #fff;
}

/*---------------------------------------------*/
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0px;
  font-weight: bold;
}

h1 {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

p {
  font-family: Poppins-Regular, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: #666666;
  margin: 0px;
}

ul,
li {
  margin: 0px;
  list-style-type: none;
}

/* Timeline */
ul.timeline {
  list-style-type: none;
  position: relative;
}

ul.timeline:before {
  content: " ";
  background: var(--primary);
  display: inline-block;
  position: absolute;
  left: 29px;
  width: 2px;
  height: 100%;
  z-index: 400;
}

ul.timeline>li {
  margin: 20px 0;
  padding-left: 20px;
}

ul.timeline>li:before {
  content: " ";
  display: inline-block;
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--primary);
  left: 20px;
  width: 20px;
  height: 20px;
  z-index: 400;
}

.timeline-scroll {
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.timeline-dot-green:before {
  background: var(--bs-success) !important;
}

.timeline-dot-red:before {
  background: var(--bs-danger) !important;
}

/* --------------------------------------------------------- */
/* Override para timeline en modo zig-zag (solo si añades .zigzag) */
/* --------------------------------------------------------- */

ul.timeline.zigzag:before {
  left: 50% !important;
  margin-left: 0px;
}

ul.timeline.zigzag>li {
  position: relative;
  width: 50%;
  margin: 1rem 0;
  padding: 0;
}

ul.timeline.zigzag>li.left {
  left: 0;
  padding-right: 2rem;
  text-align: right;
}

ul.timeline.zigzag>li.right {
  left: 50%;
  padding-left: 2rem;
  text-align: left;
}

ul.timeline.zigzag>li.left:before {
  left: auto !important;
  right: 5px;
}

ul.timeline.zigzag>li.right:before {
  left: -25px !important;
}

/*---------------------------------------------*/
input {
  outline: none;
  border: none;
}

#new-form input,
textarea {
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 8px;
  transition: all 0.2s ease-in-out;
}

#new-form label {
  font-weight: bold;
}

#new-form input:focus,
textarea:focus {
  border: 1px solid #007bff;
  /* Azul brillante en focus */
  box-shadow: 0px 0px 5px rgba(0, 123, 255, 0.5);
  outline: none;
}

::placeholder {
  opacity: 0.6;
}

textarea {
  outline: none;
  border: none;
  resize: none;
}

textarea:focus,
input:focus {
  border-color: transparent !important;
}

input:focus::-webkit-input-placeholder {
  color: transparent;
}

input:focus:-moz-placeholder {
  color: transparent;
}

input:focus::-moz-placeholder {
  color: transparent;
}

input:focus:-ms-input-placeholder {
  color: transparent;
}

textarea:focus::-webkit-input-placeholder {
  color: transparent;
}

textarea:focus:-moz-placeholder {
  color: transparent;
}

textarea:focus::-moz-placeholder {
  color: transparent;
}

textarea:focus:-ms-input-placeholder {
  color: transparent;
}

input::-webkit-input-placeholder {
  color: #fff;
}

input:-moz-placeholder {
  color: #fff;
}

input::-moz-placeholder {
  color: #fff;
}

input:-ms-input-placeholder {
  color: #fff;
}

textarea::-webkit-input-placeholder {
  color: #fff;
}

textarea:-moz-placeholder {
  color: #fff;
}

textarea::-moz-placeholder {
  color: #fff;
}

textarea:-ms-input-placeholder {
  color: #fff;
}

label {
  margin: 0;
  display: block;
}

/*---------------------------------------------*/
button {
  outline: none !important;
  border: none;
  background: transparent;
}

button:hover {
  cursor: pointer;
}

iframe {
  border: none !important;
}

/*//////////////////////////////////////////////////////////////////
[ Utility ]*/
.txt1 {
  font-family: Poppins-Regular;
  font-size: 13px;
  color: #e5e5e5;
  line-height: 1.5;
}

/*//////////////////////////////////////////////////////////////////
[ login ]*/

.limiter {
  width: 100%;
  overflow-x: hidden;
  justify-content: center;
}

.container-login100 {
  width: 100%;
  min-height: 100vh;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 15px;
  justify-self: anchor-center;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  position: relative;
  z-index: 1;
}

.container-form {
  padding: 20px;
  border-radius: 20px;
  width: 99%;
  justify-self: center;
  align-self: center;
  z-index: 1;
}

.container-form-historial {
  padding: 20px;

  width: 99%;
  justify-self: center;
  align-self: center;
  z-index: 1;
}

.container-login100::before {
  content: "";
  display: block;
  position: absolute;
  z-index: -1;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(255, 255, 255, 0.15);
}

.wrap-login100 {
  width: 500px;
  border-radius: 10px;
  overflow: hidden;
  padding: 55px 55px 37px 55px;

  background: black;
  background: -webkit-linear-gradient(top, #101419, #224478);
  background: -o-linear-gradient(top, #101419, #224478);
  background: -moz-linear-gradient(top, #101419, #224478);
  background: linear-gradient(top, #101419, #224478);
}

.wrap-form {
  width: 1000px;
  border-radius: 10px;
  overflow: hidden;
  padding: 55px 55px 37px 55px;

  background: black;
  background: -webkit-linear-gradient(top, #101419, #224478);
  background: -o-linear-gradient(top, #101419, #224478);
  background: -moz-linear-gradient(top, #101419, #224478);
  background: linear-gradient(top, #101419, #224478);
}

.header-logo {
  color: white;
  background: -webkit-linear-gradient(top, #101419, #224478);
  background: -o-linear-gradient(top, #101419, #224478);
  background: -moz-linear-gradient(top, #101419, #224478);
  background: linear-gradient(top, #101419, #224478);
  box-shadow: 0px 6px 3px 0px rgba(0, 0, 0, 0.15);
  -webkit-box-shadow: 0px 6px 3px 0px rgba(0, 0, 0, 0.15);
  -moz-box-shadow: 0px 6px 3px 0px rgba(0, 0, 0, 0.15);
}

.wrapper {
  position: relative;
}

footer {
  bottom: 0;
  width: 100%;
  height: 150px;
  font-size: 12px;
  margin-top: auto;
  justify-content: center;
  align-items: center;
  background: -webkit-linear-gradient(bottom, #101419, #224478);
  background: -o-linear-gradient(bottom, #101419, #224478);
  background: -moz-linear-gradient(bottom, #101419, #224478);
  background: linear-gradient(bottom, #101419, #224478);
}

.nav-options {
  display: flex;
  justify-content: space-around;
}

.nav-options a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: black;
}

.footer-fix {
  bottom: 0;
  position: fixed !important;
  padding: 10px 0;
  width: 100%;
  height: 150px;
  font-size: 12px;
  display: flex;
  justify-content: center;
  z-index: 10;
  align-items: center;
  background: -webkit-linear-gradient(bottom, #101419, #224478);
  background: -o-linear-gradient(bottom, #101419, #224478);
  background: -moz-linear-gradient(bottom, #101419, #224478);
  background: linear-gradient(bottom, #101419, #224478);
}

.project-list>tbody>tr>td {
  padding: 12px 8px;
}

.project-list>tbody>tr>td .avatar {
  width: 22px;
  border: 1px solid #ccc;
}

.logo {
  display: block;
  justify-content: center;
  height: 100px;
  margin-left: 20px;
}

#organization-form:focus {
  background-color: #ac445b;
}

#department-form:focus {
  background-color: #ac445b;
}

/*------------------------------------------------------------------
[ Form ]*/

.form-wrapper {
  width: 100%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.login100-form {
  width: 100%;
}

.login100-form-logo {
  font-size: 60px;
  color: #333333;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 200px;
  height: 120px;
  border-radius: 50%;
  background-color: transparent;
  margin: 0 auto;
}

.login100-form-logo-img {
  width: 100%;
}

.login100-form-title {
  font-family: Poppins-Medium;
  font-size: 30px;
  color: #fff;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;

  display: block;
}

/*------------------------------------------------------------------
[ Input ]*/

.wrap-input100 {
  width: 100%;
  position: relative;
  border-bottom: 2px solid rgba(255, 255, 255, 0.24);
  margin-bottom: 30px;
}

.wrap-title {
  width: 100%;
  position: relative;
  border-bottom: 2px solid black;
  margin-bottom: 30px;
}

.input100 {
  font-family: Poppins-Regular;
  font-size: 16px;
  color: #fff;
  line-height: 1.2;

  display: block;
  width: 100%;
  height: 45px;
  background: transparent;
  padding: 0 5px 0 38px;
}

/*---------------------------------------------*/
.focus-input100 {
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.focus-input100::before {
  content: "";
  display: block;
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;

  -webkit-transition: all 0.4s;
  -o-transition: all 0.4s;
  -moz-transition: all 0.4s;
  transition: all 0.4s;

  background: #fff;
}

.focus-input100::after {
  font-family: Material-Design-Iconic-Font;
  font-size: 22px;
  color: #fff;

  content: attr(data-placeholder);
  display: block;
  width: 100%;
  position: absolute;
  top: 6px;
  left: 0px;
  padding-left: 5px;

  -webkit-transition: all 0.4s;
  -o-transition: all 0.4s;
  -moz-transition: all 0.4s;
  transition: all 0.4s;
}

.input100:focus {
  padding-left: 5px;
}

.input100:focus+.focus-input100::after {
  top: -22px;
  font-size: 18px;
}

.input100:focus+.focus-input100::before {
  width: 100%;
}

.has-val.input100+.focus-input100::after {
  top: -22px;
  font-size: 18px;
}

.has-val.input100+.focus-input100::before {
  width: 100%;
}

.has-val.input100 {
  padding-left: 5px;
}

.form-content {
  border-radius: 20px;
  padding: 40px;
}

.form-content-brb {
  border-radius: 0px 0px 20px 20px;
  padding: 40px;
}

.brtl {
  border-radius: 20px 0px 0px 0px;
}

.brtr {
  border-radius: 0px 20px 0px 0px;
}

/*==================================================================
[ Restyle Checkbox ]*/

.contact100-form-checkbox {
  padding-left: 5px;
  padding-top: 5px;
  padding-bottom: 35px;
}

.input-checkbox100 {
  display: none;
}

.label-checkbox100 {
  font-family: Poppins-Regular;
  font-size: 13px;
  color: #fff;
  line-height: 1.2;

  display: block;
  position: relative;
  padding-left: 26px;
  cursor: pointer;
}

.label-checkbox100::before {
  content: "\f26b";
  font-family: Material-Design-Iconic-Font;
  font-size: 13px;
  color: transparent;

  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 2px;
  background: #fff;
  left: 0;
  top: 50%;
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  transform: translateY(-50%);
}

.input-checkbox100:checked+.label-checkbox100::before {
  color: #555555;
}

/*------------------------------------------------------------------
[ Button ]*/
.container-login100-form-btn {
  width: 100%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.login100-form-btn {
  font-family: Poppins-Medium;
  font-size: 16px;
  color: #555555;
  line-height: 1.2;

  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  min-width: 120px;
  height: 50px;
  border-radius: 25px;

  background: #9152f8;
  background: -webkit-linear-gradient(bottom, #101419, #224478);
  background: -o-linear-gradient(bottom, #101419, #224478);
  background: -moz-linear-gradient(bottom, #101419, #224478);
  background: linear-gradient(bottom, #101419, #224478);
  position: relative;
  z-index: 1;

  -webkit-transition: all 0.4s;
  -o-transition: all 0.4s;
  -moz-transition: all 0.4s;
  transition: all 0.4s;
}

.form100-form-btn {
  font-family: Poppins-Medium;
  font-size: 16px;
  color: white;
  line-height: 1.2;

  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  min-width: 120px;
  height: 50px;
  border-radius: 25px;

  background-color: #537bb8;
  position: relative;
  z-index: 1;

  -webkit-transition: all 0.4s;
  -o-transition: all 0.4s;
  -moz-transition: all 0.4s;
  transition: all 0.4s;
}

.form100-form-btn::before {
  content: "";
  display: block;
  position: absolute;
  z-index: -1;
  width: 100%;
  height: 100%;
  border-radius: 25px;
  background-color: #224478;
  top: 0;
  left: 0;
  opacity: 1;

  -webkit-transition: all 0.4s;
  -o-transition: all 0.4s;
  -moz-transition: all 0.4s;
  transition: all 0.4s;
}

.form100-form-btn:hover {
  color: #fff;
}

.form100-form-btn:hover:before {
  opacity: 0;
}

.login100-form-btn::before {
  content: "";
  display: block;
  position: absolute;
  z-index: -1;
  width: 100%;
  height: 100%;
  border-radius: 25px;
  background-color: #fff;
  top: 0;
  left: 0;
  opacity: 1;

  -webkit-transition: all 0.4s;
  -o-transition: all 0.4s;
  -moz-transition: all 0.4s;
  transition: all 0.4s;
}

.login100-form-btn:hover {
  color: #fff;
}

.login100-form-btn:hover:before {
  opacity: 0;
}

/*------------------------------------------------------------------
[ Responsive ]*/

@media (max-width: 576px) {
  .wrap-login100 {
    padding: 55px 15px 55px 15px;
  }
}

/*------------------------------------------------------------------
[ Alert validate ]*/

.validate-input {
  position: relative;
}

.alert-validate::before {
  content: attr(data-validate);
  position: absolute;
  max-width: 70%;
  background-color: #fff;
  border: 1px solid #c80000;
  border-radius: 2px;
  padding: 4px 25px 4px 10px;
  top: 50%;
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  transform: translateY(-50%);
  right: 0px;
  pointer-events: none;

  font-family: Poppins-Regular;
  color: #c80000;
  font-size: 13px;
  line-height: 1.4;
  text-align: left;

  visibility: hidden;
  opacity: 0;

  -webkit-transition: opacity 0.4s;
  -o-transition: opacity 0.4s;
  -moz-transition: opacity 0.4s;
  transition: opacity 0.4s;
}

.alert-validate::after {
  content: "\f12a";
  font-family: FontAwesome;
  font-size: 16px;
  color: #c80000;

  display: block;
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  transform: translateY(-50%);
  right: 5px;
}

.alert-validate:hover:before {
  visibility: visible;
  opacity: 1;
}

@media (max-width: 992px) {
  .alert-validate::before {
    visibility: visible;
    opacity: 1;
  }
}

/*-- Saturn Pagination --*/

.saturn-pagination,
.visits-pagination,
.mir-pagination {
  float: right;
}

.saturn-pagination li,
.visits-pagination li,
.mir-pagination li {
  display: inline-block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  text-justify: center;
  align-content: space-evenly;
  background-color: #fff;
  border: 1px solid #c4d2ee;
  -webkit-transition: 0.2s all;
  transition: 0.2s all;
}

.saturn-pagination li+li,
.visits-pagination li+li,
.mir-pagination li+li {
  margin-left: 5px;
}

.saturn-pagination li:hover,
.visits-pagination li:hover,
.mir-pagination li:hover {
  background-color: #c4d2ee;
  color: #d10024;
}

.saturn-pagination li:hover a,
.visits-pagination li:hover a,
.mir-pagination li:hover a {
  color: white;
}

.saturn-pagination li.active,
.visits-pagination li.active,
.mir-pagination li.active {
  background-color: #224478;
  border-color: #224478;
  color: #fff;
  font-weight: 500;
  cursor: default;
}

.saturn-pagination a.active,
.visits-pagination a.active,
.mir-pagination a.active {
  color: white;
}

.saturn-pagination li a,
.visits-pagination li a,
.mir-pagination li a {
  display: block;
}

.saturn-filter {
  margin-bottom: 15px;
  margin-top: 15px;
}

.saturn-pagination-message,
.visits-pagination-message,
.mir-span {
  margin-right: 30px;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 12px;
}

.table a {
  color: #224478;
  text-decoration: underline;
}

.bg-personalizado {
  background-color: #224478;
}

.radius-right {
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
}

.radius-left {
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
}

/* Barra de busqueda */

.searchbar {
  margin-bottom: auto;
  margin-top: auto;
  height: 36px;
  background-color: #224478;
  border-radius: 30px;
  padding: 5px;
}

.searchbar:hover>.search_icon {
  background: white;
  color: #224478;
}

.search_icon {
  height: 20px;
  width: 20px;
  float: right;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  color: white;
  text-decoration: none;
}

/* Filtros */

.filter {
  color: #224478;
  border-color: #c4d2ee;
}

.stat-filter {
  font-size: small;
  color: var(--primary);
  border-color: #c4d2ee;
}

.stat-filter {
  border-color: #224478;
  outline: none;
}

.filter:focus {
  border-color: #224478;
  outline: none;
}

.incident-details {
  margin-top: 0.4rem;
  text-align: left;
}

.incident-mobile-details {
  display: none;
}

.incident-mobile-details-cell {
  display: none;
}

.incident-details summary {
  cursor: pointer;
  color: #224478;
  font-size: 0.82rem;
  font-weight: 600;
}

.incident-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1rem;
  margin-top: 0.65rem;
  padding: 0.7rem;
  border-radius: 0.45rem;
  border: 1px solid #c4d2ee;
  background: linear-gradient(135deg, #f7fbff, #e7f1ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
}

.incident-details-grid span {
  display: block;
  color: #6c757d;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.incident-details-grid strong {
  overflow-wrap: anywhere;
}

/* En escritorio mantenemos la columna de título compacta y truncamos el exceso. */
#ticket_list .incident-title-cell {
  width: 20rem;
  min-width: 16rem;
  max-width: 20rem;
  text-align: left;
}

#ticket_list .incident-title-cell .open-modal {
  display: inline;
  max-width: none;
  overflow-wrap: anywhere;
  vertical-align: middle;
  white-space: normal;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .saturn-pagination-size {
    display: none !important;
  }

  .wrap-login100 {
    width: 300px;
  }
}

@media (min-width: 1100px) {
  .card-table__mobile-title {
    display: none;
  }
}

@media (max-width: 1100px) {
  .list-admin-table-scroll {
    max-height: none;
    overflow-y: visible;
  }

  /* Aseguramos que la tabla ocupe todo el ancho y separe bien las "cards" */

  .visit-card {
    background-color: #e6e4e4;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 240px;
  }

  .visit-header {
    font-weight: bold;
    font-size: 0.95rem;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 6px;
  }

  .visit-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
    color: #444;
  }

  .visit-body .label {
    font-weight: 600;
    color: #666;
    margin-right: 4px;
  }

  .visit-tarifa {
    display: flex;
    flex-direction: column;
  }

  .visit-tarifa select {
    margin-top: 2px;
  }

  table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 20px;
  }

  thead {
    display: none;
  }

  tbody {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 20px;
    padding: 20px;
    scroll-snap-type: x mandatory;
  }

  /* Cada fila se muestra como una card */
  tr {
    display: block;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 260px;
    scroll-snap-align: start;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  /* Efecto hover para dar sensación de interactividad */
  tr:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  }

  /* Cada celda se convierte en un bloque con separación interna */
  td {
    display: block;
    margin-bottom: 12px;
    text-align: left;
    position: relative;
    font-size: 0.9rem;
    color: #333;
  }

  td:last-child {
    margin-bottom: 0;
  }

  /* Etiqueta superior para cada celda usando el atributo data-label */
  td::before {
    content: attr(data-label) ":";
    display: block;
    font-size: 0.75rem;
    font-weight: bold;
    color: #777;
    margin-bottom: 4px;
    text-transform: uppercase;
  }

  /* Si la celda no tiene data-label, no se muestra el pseudo-elemento */
  td:not([data-label])::before {
    display: none;
  }

  /* En modales de reports mantenemos tablas nativas (Bootstrap responsive),
     evitando la conversión global a cards en móvil. */
  #clientIncidentsModal table,
  #manualReportModal table,
  #editIncidentReportModal table,
  #editMaterialReportModal table,
  #reportPreviewModal table {
    border-spacing: 0;
  }

  #clientIncidentsModal thead,
  #manualReportModal thead,
  #editIncidentReportModal thead,
  #editMaterialReportModal thead,
  #reportPreviewModal thead {
    display: table-header-group;
  }

  #clientIncidentsModal tbody,
  #manualReportModal tbody,
  #editIncidentReportModal tbody,
  #editMaterialReportModal tbody,
  #reportPreviewModal tbody {
    display: table-row-group;
    overflow: visible;
    padding: 0;
    gap: 0;
    scroll-snap-type: none;
    -ms-overflow-style: auto;
    scrollbar-width: auto;
  }

  #clientIncidentsModal tr,
  #manualReportModal tr,
  #editIncidentReportModal tr,
  #editMaterialReportModal tr,
  #reportPreviewModal tr {
    display: table-row;
    background: transparent;
    box-shadow: none;
    width: auto;
    border-radius: 0;
    padding: 0;
  }

  #clientIncidentsModal td,
  #manualReportModal td,
  #editIncidentReportModal td,
  #editMaterialReportModal td,
  #reportPreviewModal td {
    display: table-cell;
    margin-bottom: 0;
    text-align: inherit;
  }

  #clientIncidentsModal td::before,
  #manualReportModal td::before,
  #editIncidentReportModal td::before,
  #editMaterialReportModal td::before,
  #reportPreviewModal td::before {
    content: none;
    display: none;
  }

  .saturn-pagination,
  .visits-pagination,
  .mir-pagination {
    display: none;
  }

  .saturn-pagination-message,
  .mir-span {
    display: none;
  }

  #ticket_list .incident-secondary-cell,
  #ticket_list td[data-label="Prioridad"] {
    display: none;
  }

  #ticket_list .incident-mobile-details {
    display: block;
  }

  #ticket_list .incident-mobile-details-cell {
    display: block;
  }

  #ticket_list .incident-title-cell .open-modal {
    display: inline;
    max-width: none;
    overflow-wrap: anywhere;
    vertical-align: middle;
    white-space: normal;
    line-height: 1.3;
  }

  #ticket_list .incident-title-cell {
    width: auto;
    min-width: 0;
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 768px) {
  #pending-client-incidents-alert,
  #active-incident-indicator {
    font-size: 0.88rem;
  }

  #pending-client-incidents-alert .fw-semibold,
  #active-incident-indicator .fw-semibold {
    line-height: 1.3;
  }

  #pending-client-incidents-alert .btn,
  #active-incident-indicator .btn {
    font-size: 0.82rem;
  }

  .incident-filters-panel.is-collapsed {
    display: none;
  }

  .incident-search-row {
    margin-top: 0 !important;
  }

  #ticket_list tbody {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 0.85rem;
    padding: 0.85rem;
  }

  #ticket_list tr {
    flex: 0 0 min(17rem, calc(100vw - 3rem));
    width: min(17rem, calc(100vw - 3rem));
    padding: 0.9rem;
  }

  #ticket_list td {
    margin-bottom: 0.7rem;
  }

  #ticket_list .incident-actions-cell {
    border-top: 1px solid #e9ecef;
    padding-top: 0.7rem;
  }

  #ticket_list .incident-details-grid {
    grid-template-columns: 1fr;
  }

  #filter .d-flex {
    flex-direction: column;
    /* Cambiar a diseño vertical */
    align-items: stretch;
  }

  #filter p {
    margin-bottom: 0.5rem;
    /* Reducir margen para pantallas pequeñas */
  }

  #filter select,
  #filter .searchbar input {
    width: 100%;
    /* Ocupa el ancho completo en dispositivos pequeños */
  }
}

@media print {
  .no-print {
    display: none !important;
  }
}

.back-to-top {
  position: fixed;
  display: none;
  right: 45px;
  bottom: 45px;
  z-index: 99;
}

.reports-actions-bar {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
}

.reports-actions-bar .form-check-label {
  font-weight: 600;
  color: #4c5158;
}

.reports-selected-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #6c757d;
  font-size: 0.95rem;
}

.reports-selected-counter .fw-semibold {
  color: #343a40;
}

.reports-download-btn {
  flex-shrink: 0;
}

.reports-action-btn {
  flex-shrink: 0;
}

@media (max-width: 576px) {
  .reports-actions-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .reports-action-btn {
    width: 100%;
  }
}

/*** Spinner ***/
#spinner {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
  z-index: 99999;
}

#spinner.show {
  transition: opacity 0.5s ease-out, visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}

/*** Button ***/
.btn {
  transition: 0.5s;
}

.btn-square {
  width: 38px;
  height: 38px;
}

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

.btn-lg-square {
  width: 48px;
  height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
  border-radius: 50px;
}

/*** Layout ***/
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 250px;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  scrollbar-color: rgba(255, 255, 255, 0.42) transparent;
  transition: 0.5s;
  z-index: 999;
}

.sidebar::-webkit-scrollbar {
  width: 8px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.42);
  border-color: transparent;
  border-radius: 8px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar .navbar,
.sidebar .navbar-nav {
  min-width: 0;
}

.sidebar .navbar {
  padding-right: 0.75rem;
}

.content {
  margin-left: 250px;
  min-height: 100vh;
  background: var(--secondary);
  transition: 0.5s;
}

@media (min-width: 992px) {
  .sidebar {
    margin-left: 0;
  }

  .sidebar.open {
    margin-left: -250px;
  }

  .content {
    width: calc(100% - 250px);
  }

  .content.open {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 991.98px) {
  html,
  body {
    overflow-x: hidden;
  }

  .sidebar {
    margin-left: -250px;
  }

  .sidebar.open {
    margin-left: 0;
  }

  .container-form {
    padding: 0px;
    border-radius: 20px;
    width: 95%;
    justify-self: center;
    align-self: center;
    z-index: 1;
  }

  .content {
    width: 100%;
    margin-left: 0;
  }

  .content,
  .container-fluid.position-relative.d-flex.p-0 {
    overflow-x: hidden;
  }
}

/*** Navbar ***/
.sidebar .navbar .navbar-nav .nav-link {
  padding: 7px 20px;
  color: var(--light);
  font-weight: 500;
  border-left: 3px solid var(--dark);
  border-radius: 0 30px 30px 0;
  outline: none;
}

.sidebar .navbar .navbar-nav .nav-link:hover,
.sidebar .navbar .navbar-nav .nav-link.active {
  color: var(--light);
  background: var(--dark);
  border-color: var(--primary);
}

.sidebar .navbar .navbar-nav .nav-link i {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  border-radius: 40px;
}

.sidebar .navbar .navbar-nav .nav-link:hover i,
.sidebar .navbar .navbar-nav .nav-link.active i {
  background: var(--primary);
}

.sidebar .navbar .dropdown-toggle::after {
  position: absolute;
  top: 15px;
  right: 15px;
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  transition: 0.5s;
}

.sidebar .navbar .dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(-180deg);
}

.sidebar .navbar .dropdown-item {
  padding-left: 25px;
  border-radius: 0 30px 30px 0;
  color: var(--light);
}

.sidebar .navbar .dropdown-item:hover,
.sidebar .navbar .dropdown-item.active {
  background: var(--primary);
}

.content .navbar .navbar-nav .nav-link {
  margin-left: 25px;
  padding: 12px 0;
  color: var(--light);
  outline: none;
}

.content .navbar .navbar-nav .nav-link:hover,
.content .navbar .navbar-nav .nav-link.active {
  color: var(--dark);
}

.content .navbar .sidebar-toggler,
.content .navbar .navbar-nav .nav-link i {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  border-radius: 40px;
}

.content .navbar .dropdown-item {
  color: var(--light);
}

.content .navbar .dropdown-item:hover,
.content .navbar .dropdown-item.active {
  background: var(--dark);
}

.content .navbar .dropdown-toggle::after {
  margin-left: 6px;
  vertical-align: middle;
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  transition: 0.5s;
}

.content .navbar .dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(-180deg);
}

.checking-mobile-toggle {
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.42rem 0.75rem;
  box-shadow: 0 6px 14px rgba(11, 32, 78, 0.22);
  backdrop-filter: blur(2px);
}

.checking-mobile-toggle:hover,
.checking-mobile-toggle:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.42);
}

.checking-mobile-toggle[data-state="on_shift"] {
  background: rgba(25, 135, 84, 0.3);
  border-color: rgba(25, 135, 84, 0.62);
}

.checking-mobile-toggle[data-state="on_break"] {
  background: rgba(255, 193, 7, 0.32);
  border-color: rgba(255, 193, 7, 0.72);
  color: #1f2937;
}

.checking-mobile-toggle[data-state="on_transport"] {
  background: rgba(13, 202, 240, 0.3);
  border-color: rgba(13, 202, 240, 0.66);
  color: #073b4c;
}

.checking-mobile-toggle[data-requires-regularization="true"] {
  background: rgba(255, 193, 7, 0.32);
  border-color: rgba(255, 193, 7, 0.72);
  color: #1f2937;
}

.checking-mobile-toggle[data-requires-regularization="true"]:hover,
.checking-mobile-toggle[data-requires-regularization="true"]:focus {
  background: rgba(255, 193, 7, 0.45);
  border-color: rgba(255, 193, 7, 0.9);
  color: #1f2937;
}

.checking-mobile-menu {
  min-width: 16rem;
  border: 0;
  border-radius: 0.8rem;
  padding: 0.45rem;
}

.content .navbar .checking-mobile-menu .dropdown-item {
  border-radius: 0.6rem;
  color: #1f2937;
  font-weight: 500;
  font-size: 0.88rem;
  padding: 0.52rem 0.65rem;
}

.content .navbar .checking-mobile-menu .dropdown-item:hover,
.content .navbar .checking-mobile-menu .dropdown-item:focus {
  background: #f0f4ff;
  color: #111827;
}

.disabled-row {
  opacity: 0.6;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 575.98px) {
  .content .navbar .navbar-nav .nav-link {
    margin-left: 15px;
  }

  #checking-navbar-controls {
    margin-right: 0.25rem !important;
  }

  .checking-mobile-menu {
    min-width: 14.2rem;
  }
}

.btn-call {
  background: linear-gradient(135deg, #224478 0%, #5b86e5 100%);
  color: #fff;
  border: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-call .bi {
  font-size: 1.4rem;
}

.btn-call:hover,
.btn-call:focus {
  transform: scale(1.08);
  color: white;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

@media (prefers-reduced-motion: no-preference) {
  .btn-call-pulse::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(91, 134, 229, 0.35);
    /* 5 s de duración total  ──► 1 s de animación + 4 s de “pausa” */
    animation: pulse 5s ease-out infinite;
    z-index: -1;
  }

  @keyframes pulse {

    /* ----- fase visible (≈1 s) ----- */
    0% {
      transform: scale(0.95);
      opacity: 0.8;
    }

    20% {
      transform: scale(1.5);
      opacity: 0;
    }

    /* ----- fase “quieta” (≈4 s) ----- */
    100% {
      transform: scale(1.5);
      opacity: 0;
    }
  }
}

.manual-autocomplete-dropdown {
  max-height: 220px;
  overflow-y: auto;
}

.manual-autocomplete-dropdown .list-group-item {
  padding: 0.35rem 0.5rem;
}

.manual-autocomplete-dropdown .suggestion-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.manual-autocomplete-dropdown .code-pill {
  flex: 0 0 auto;
  min-width: 72px;
}

.manual-autocomplete-dropdown .text-truncate {
  max-width: 100%;
}

.checking-modal .modal-content {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.06);
}

#checkingDayCloseModal,
#checkingDayCloseModal .modal-dialog,
#checkingDayCloseModal .modal-content,
#checkingDayCloseModal .modal-body,
#checkingDayCloseModal .checking-day-close-period {
  min-width: 0;
}

#checkingDayCloseModal {
  overflow-x: hidden;
}

#checkingDayCloseModal .checking-day-close-dialog {
  display: flex;
  align-items: stretch;
}

#checkingDayCloseModal .modal-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
}

#checkingDayCloseModal .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

#checkingDayCloseModal .checking-modal-heading {
  flex: 1 1 auto;
  min-width: 0;
}

#checkingDayCloseModal .btn-close {
  flex: 0 0 auto;
  margin-left: auto;
}

#checkingCheckoutWarningModal .modal-header {
  background: #faeeda;
  border-bottom: 1px solid #fac775;
  padding: 1rem 1.25rem;
}

#checkingCheckoutWarningModal .modal-title {
  color: #633806;
  font-weight: 500;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

#checkingCheckoutWarningModal .modal-title::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef9f27;
  flex-shrink: 0;
}

#checkingCheckoutWarningModal .modal-body {
  padding: 1.25rem;
  font-size: 0.9rem;
  color: #444;
  line-height: 1.6;
}

#checkingCheckoutWarningModal .modal-footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  gap: 8px;
}

#checkingDayCloseModal .modal-header {
  background: #e6f1fb;
  border-bottom: 1px solid #b5d4f4;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

#checkingDayCloseModal .modal-header-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  color: #185fa5;
}

#checkingDayCloseModal .modal-title {
  color: #0c447c;
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 2px;
}

#checkingDayCloseModal #checking-day-close-status-text {
  color: #185fa5;
  font-size: 0.78rem;
}

.checking-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin-bottom: 1rem;
}

.checking-stat-card {
  background: #f6f7f9;
  border-radius: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.checking-stat-card .stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
  margin-bottom: 4px;
}

.checking-stat-card .stat-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: #1a1a1a;
}

.checking-stat-card .stat-value.stat-danger {
  color: #c0392b;
}

.checking-progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.4rem;
}

.checking-progress-track {
  flex: 1;
  height: 5px;
  background: #eee;
  border-radius: 99px;
  overflow: hidden;
}

.checking-progress-fill {
  height: 100%;
  background: #185fa5;
  border-radius: 99px;
  transition: width 0.4s ease;
}

.checking-progress-label {
  font-size: 12px;
  color: #888;
  white-space: nowrap;
}

#checkingDayCloseModal h6 {
  font-size: 0.85rem;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 2px;
}

#checkingDayCloseModal .text-muted.small {
  font-size: 0.78rem;
}

.checking-day-close-period {
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 10px !important;
  overflow: hidden;
  padding: 0 !important;
  background: #fff !important;
}

.checking-period-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.checking-period-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checking-period-icon {
  width: 30px;
  height: 30px;
  background: #f3f4f6;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #666;
  flex-shrink: 0;
}

.checking-period-title {
  font-size: 0.83rem;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 1px;
}

.checking-period-range {
  font-size: 0.75rem;
  color: #888;
}

.checking-period-duration {
  font-size: 0.72rem !important;
  background: #e6f1fb !important;
  color: #185fa5 !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-color: #b5d4f4 !important;
  border-radius: 20px !important;
  padding: 3px 10px !important;
  font-weight: 400 !important;
}

.checking-period-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 16px 12px;
}

.checking-period-dates>div,
.checking-period-dates .form-control {
  min-width: 0;
  width: 100%;
}

.checking-period-dates .form-label {
  font-size: 0.72rem;
  color: #888;
  margin-bottom: 4px;
  font-weight: 400;
}

.checking-period-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: #f9fafb;
  flex-wrap: wrap;
}

.checking-period-actions-label {
  font-size: 0.72rem;
  color: #888;
  margin-right: 4px;
  white-space: nowrap;
}

.checking-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem !important;
  padding: 5px 11px !important;
  border-radius: 6px !important;
  font-weight: 400 !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  background: #fff !important;
  color: #444 !important;
  transition: background 0.12s, border-color 0.12s;
}

.checking-action-btn:hover {
  border-color: rgba(0, 0, 0, 0.2) !important;
}

.checking-action-btn.active[data-action="transport"] {
  background: #e1f5ee !important;
  border-color: #5dcaa5 !important;
  color: #0f6e56 !important;
}

.checking-action-btn.active[data-action="break"] {
  background: #faeeda !important;
  border-color: #ef9f27 !important;
  color: #854f0b !important;
}

.checking-action-btn.active[data-action="incident"] {
  background: #e6f1fb !important;
  border-color: #85b7eb !important;
  color: #185fa5 !important;
}

.checking-incident-panel {
  margin: 0 16px 16px;
  background: #f9fafb;
  border-radius: 8px;
  padding: 1rem !important;
  border: 1px solid rgba(0, 0, 0, 0.07) !important;
}

.checking-incident-panel .form-label {
  font-size: 0.75rem;
  color: #888;
  font-weight: 400;
  margin-bottom: 4px;
}

.checking-incident-search-status {
  min-height: 1rem;
}

.checking-incident-results {
  max-height: 220px;
  overflow-y: auto;
}

.checking-incident-results .list-group-item {
  display: block;
  border-radius: 6px;
  margin-bottom: 0.35rem;
  border: 1px solid rgba(13, 110, 253, 0.12);
  padding: 0.55rem 0.7rem;
}

.checking-incident-results .list-group-item:last-child {
  margin-bottom: 0;
}

.checking-save-incident-btn {
  font-size: 0.83rem;
  padding: 7px 18px;
  border-radius: 7px;
}

.checking-modal .modal-footer .btn {
  font-size: 0.85rem;
  border-radius: 7px;
  padding: 7px 18px;
}

.checking-modal .modal-footer .btn-secondary {
  background: transparent;
  color: #555;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.checking-modal .modal-footer .btn-primary {
  background: #185fa5;
  border-color: #185fa5;
}

.checking-modal .modal-footer .btn-outline-secondary {
  color: #555;
  border-color: rgba(0, 0, 0, 0.15);
}

.checking-incident-results .list-group-item.active {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.checking-incident-results .list-group-item:not(.active):hover,
.checking-incident-results .list-group-item:not(.active):focus {
  background: #f4f8fd;
  border-color: rgba(13, 110, 253, 0.24);
}

.checking-incident-results .list-group-item.checking-incident-placeholder {
  cursor: default;
  color: #6c757d;
  background: #fff;
  border-style: dashed;
  pointer-events: none;
}

@media (max-width: 991.98px) {
  #checkingDayCloseModal {
    padding: 0 !important;
  }

  #checkingDayCloseModal .checking-day-close-dialog {
    width: auto;
    max-width: none;
    height: calc(100vh - 1rem);
    height: calc(100dvh - 1rem);
    margin: 0.5rem;
  }

  #checkingDayCloseModal .modal-content {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
  }

  #checkingDayCloseModal .modal-header {
    padding-top: max(1rem, env(safe-area-inset-top));
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-left: max(1rem, env(safe-area-inset-left));
  }

  #checkingDayCloseModal .modal-body {
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-left: max(1rem, env(safe-area-inset-left));
  }

  #checkingDayCloseModal .modal-footer {
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
    padding-left: max(1rem, env(safe-area-inset-left));
  }
}

@media (max-width: 767.98px) {
  .checking-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .checking-stat-card {
    min-width: 0;
  }

  .checking-stat-card .stat-value {
    overflow-wrap: anywhere;
  }

  .checking-progress-row {
    flex-direction: column;
    align-items: stretch;
  }

  .checking-period-header,
  .checking-period-dates {
    padding-left: 12px;
    padding-right: 12px;
  }

  .checking-period-dates {
    grid-template-columns: 1fr;
  }

  .checking-period-actions {
    padding-left: 12px;
    padding-right: 12px;
  }

  .checking-incident-panel {
    margin-left: 12px;
    margin-right: 12px;
    margin-bottom: 12px;
  }
}
