html {
  height: 100% !important;
}

body {
  height: 100% !important;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}

.toast-warning {
  background-color: rgb(248, 148, 6) !important;
}

.toast-success {
  background-color: rgb(81, 163, 81) !important;
}

.toast-error {
  background-color: rgb(189, 54, 47) !important;
}

.grecaptcha-badge {
  z-index: 10000;
}

#reconnect-modal {
  display: none;
  position: fixed;
  top: 0px;
  right: 0px;
  bottom: 0px;
  left: 0px;
  z-index: 1000 !important;
  overflow: hidden;
  background-color: rgb(255, 255, 255);
  opacity: 0.8;
  text-align: center;
  font-weight: bold;
  z-index: 10000;
  color: black !important;
}

.div-estado {
  width: 30px;
  height: 30px;
  -moz-border-radius: 50%;
  -webkit-border-radius: 50%;
  border-radius: 50%;
}

.div-exitoso {
  background: green;
}

.div-error {
  background: red;
}

.text-validacion-error {
  color: #f34343;
  font-weight: 500;
  font-size: 13px;
}

.form-group:has(> .text-validacion-error) .form-control {
  border-color: #f06e7a !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fa5c7c' viewBox='-2 -2 7 7'%3e%3cpath stroke='%23fa5c7c' d='M0 0l3 3m0-3L0 3'/%3e%3ccircle r='.5'/%3e%3ccircle cx='3' r='.5'/%3e%3ccircle cy='3' r='.5'/%3e%3ccircle cx='3' cy='3' r='.5'/%3e%3c/svg%3E");
  background-repeat: no-repeat;
  background-position: center right calc(0.375em + 0.1875rem);
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-group:has(> .text-validacion-error) .form-control:focus {
  border-color: #f06e7a !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-group {
  padding: 0 0.1rem;
}

.validation-errors {
  margin: 2rem;
  padding: 0.5rem 2rem 2rem 2rem;
  max-height: 300px;
  overflow: auto;
  color: #f34343;
}

.validation-errors:before {
  content: "Errores presentados, revise el formulario";
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 10px;
}

.validation-message {
  padding: 0.2rem;
  outline: 2px solid #f34343;
  border-radius: 10px;
  background: #ffece3;
  margin: 10px 0px;
}

.table th {
  color: white !important;
  background: #adadad !important;
}

.table th span {
  color: white !important;
}

.table th div span {
  color: white !important;
}

.table tr:nth-of-type(2n) {
  background: #f3f3f3 !important;
}

.table-responsive {
  max-height: 800px !important;
  overflow-y: auto !important;
}

@media (max-width: 1200px) {
  .table th {
    display: none;
  }

  .table td {
    display: grid;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
  }

  .table td:first-child {
    padding-top: 2rem;
  }

  .table td:last-child {
    padding-bottom: 2rem;
  }

  .table td::before {
    content: attr(data-cell) ": ";
    font-weight: 700;
    text-transform: capitalize;
  }

  td {
    text-align: center;
    justify-content: center;
    justify-items: center;
  }
}

.table-responsive {
  width: 100% !important;
}

/* MODAL ASISTENCIAS STARTS */

#modalAsistencias {
  width: clamp(300px, 80%, 1200px);
  padding: 0;
}

#modalAsistencias .modal__body {
  padding: 0 50px;
  max-height: 600px;
  overflow: auto;
  height: 100%;
}

.modal-close-btn {
  margin-right: 10px;
}

.table-asistencias {
  width: 100%;
  border-collapse: collapse;
}

.table-asistencias thead {
  box-shadow: 0px 0px 18px 0px rgba(0, 0, 0, 0.2);
  background-color: #fff;
}

.table-asistencias thead,
.table-asistencias thead th {
  position: sticky;
  top: 0;
}

.table-asistencias {
  border-radius: 10px;
}

.table-asistencias,
th,
td {
  border: 0.9px solid #eff0f1;
}

.table-asistencias .recomendado {
  outline: 2.5px solid #1a73e8;
  position: relative;
}

.table-asistencias .recomendado::before {
  content: "Recomendado";
  border: 2px solid #1a73e8;
  position: absolute;
  width: calc(100% + 4px);
  height: 46px;
  padding: 10px;
  border-radius: 0px 0px 8px 8px;
  background: #1a73e8;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  font-size: 16.2px;
  font-weight: 700;
  line-height: 25.2px;
  top: calc(100% - 15px);
  left: -2px;
}

.table-asistencias th {
  padding: 20px;
}

.table-asistencias th:nth-child(1) {
  color: #404ba5;
  font-size: 18px;
  font-weight: 700;
  line-height: 27px;
  text-align: left;
}

.table-asistencias__plan-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
}

.table-asistencias__plan-info span:nth-child(1) {
  color: #272b2f;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  line-height: 27px; /* 150% */
}

.table-asistencias__plan-info span:nth-child(2) {
  color: #33383e;
  font-size: 28.8px;
  font-weight: 700;
  line-height: 37.8px;
}

.table-asistencias__plan-info span:nth-child(2)::first-letter {
  color: #33383e;
  text-align: center;
  font-size: 21.6px;
  font-weight: 700;
  line-height: 30.6px; /* 141.667% */
}

.table-asistencias__plan-info span:nth-child(3) {
  color: #101e8e;
  text-align: center;
  font-size: 14.4px;
  font-weight: 400;
  line-height: 21.6px; /* 150% */
}

.table-asistencias td {
  padding: 11px;
}

.table-asistencias tbody tr:nth-child(1) td {
  padding-top: 50px;
}

.table-asistencias .info__asistencia {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.table-asistencias .info__asistencia span:nth-child(1) {
  color: #272b2f;
  font-size: 14px;
  font-weight: 700;
  line-height: 18px; /* 142.857% */
}

.table-asistencias .info__asistencia span:nth-child(2) {
  color: #5c6670;
  font-size: 12px;
  font-weight: 400;
  line-height: 16.2px;
}

.table-asistencias .column-asistencia {
  max-width: 300px;
}

.table-asistencias .no-cubre div,
.table-asistencias .cubre div {
  border-radius: 50%;
  width: 30px;
  height: 30px;
  text-align: center;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.table-asistencias .no-cubre div {
  border: 1px solid #e00000;
}

.table-asistencias .no-cubre img {
  content: url(../images/cross.svg);
}

.table-asistencias .no-cubre div {
  width: 27px;
  height: 27px;
}

td.no-aplica {
  text-align: center;
}

.table-asistencias .cubre img {
  content: url(../images/checkcubre.svg);
  margin: auto;
  width: 27px;
  height: 27px;
}

/* MODAL ASISTENCIAS ENDS */

.filters-container {
  display: flex;
  flex-wrap: wrap;
  padding: 0.5rem 1rem;
  margin: 0 0 1rem 0;
  gap: 10px;
  max-width: 100%;
  width: 100%;
  justify-content: center;
  align-items: center;
  align-content: center;
}

.filters-container__filter {
  flex-basis: 180px;
  flex-grow: 1;
  flex-shrink: 0.1;
  max-width: 300px;
}

.filters-container__clear-filter-btn {
  margin-top: var(--bs-body-font-size);
}

.pendency-card-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: center;
}

.pendency-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 10px;
  padding: 20px;
  gap: 20px;
  margin-top: 20px;
  transition: transform 1s;
}

.pendency-card span {
  font-weight: 600;
}

.pendency-card__header {
  border-radius: 10px;
  background-color: #00004c;
  color: #fff;
  padding: 20px 10px;
  min-width: 170px;
}

.pendency-card__header,
.pendency-card__prima,
.pendency-card__footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.pendency-card__prima {
  padding: 10px;
  border: 1px solid #000;
  border-radius: 10px;
  color: #000;
  gap: 5px;
}

.pendency-card__prima a {
  border: 1px solid #000;
  background-color: #9e1c64;
  color: #fff !important;
  padding: 5px 10px;
  border-radius: 10px;
}

.pendency-card__footer hr {
  border-top: 1px solid #808080;
  width: 90%;
}

.pendency-card.active {
  border-color: #3b76e1;
  transform: scale(1.2);
}

.pendency-card.active hr {
  border-top: 1px solid #3b76e1;
}

.buttons-cotizacion-container {
  display: flex;
  flex-wrap: wrap;
  flex-grow: 1;
  flex-shrink: 0;
  justify-content: space-evenly;
  align-content: center;
  align-items: center;
  gap: 15px;
}

.form-control {
  height: auto !important;
}

.input-filtro {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><g fill="currentColor"><path d="M192 112a80 80 0 1 1-80-80a80 80 0 0 1 80 80" opacity=".2"/><path d="m229.66 218.34l-50.06-50.06a88.21 88.21 0 1 0-11.32 11.31l50.06 50.07a8 8 0 0 0 11.32-11.32M40 112a72 72 0 1 1 72 72a72.08 72.08 0 0 1-72-72"/></g></svg>');
  background-repeat: no-repeat;
  background-position: center right calc(0.375em + 0.1875rem);
  background-size: calc(1em + 0.4rem) calc(1em + 0.4rem);
}

.img-filtro {
  content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><g fill="currentColor"><path d="M192 112a80 80 0 1 1-80-80a80 80 0 0 1 80 80" opacity=".2"/><path d="m229.66 218.34l-50.06-50.06a88.21 88.21 0 1 0-11.32 11.31l50.06 50.07a8 8 0 0 0 11.32-11.32M40 112a72 72 0 1 1 72 72a72.08 72.08 0 0 1-72-72"/></g></svg>');
  width: 25px;
  height: 25px;
}

.container-filtro a {
  position: absolute;
  right: 0;
  margin-right: 0.5rem;
  z-index: 20;
}

.container-filtro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.container-filtro .form-control {
  position: relative;
  z-index: 10;
}

.rz-dropdown-panel.rz-popup {
  z-index: 20000 !important;
}

.card-filtros {
  background-color: #fff;
  padding: 20px;
  margin-top: 10px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(56, 65, 74, 0.15);
  position: sticky;
  top: 20px;
  z-index: 10000;
}

.readonly {
  opacity: 0.7;
  pointer-events: none;
}

.subrayado {
  border-color: #695eef !important;
}

/* Clase para eliminar flechas de inputs numéricos */
.no-spinner::-webkit-outer-spin-button,
.no-spinner::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.no-spinner {
  -moz-appearance: textfield;
}
