:root {
    --default-text-color: #2b2b2b;
    --nav-dropdown-delay: 0.15s;
    --color-creado-sin-enviar: rgb(255, 255, 190);
    --color-aceptado: rgb(190, 255, 190);
    --color-rechazado: rgb(255, 190, 190);
    --color-no-revisado: rgb(220, 245, 255);
    --color-planificado: rgb(230, 230, 230);/* rgb(215 194 175); rgb(230, 204, 180); */
    --color-archivado: rgb(150, 150, 150);
    --color-trabajo: rgb(6, 136, 136);
    --color-desplazamiento: rgb(255, 145, 0);
    --color-incidencia: rgb(255, 29, 13);
    --color-iverwind-blue: #416973;
    --color-iverwind-green: #507869;
    --color-iverwind-orange: #FAAF46;
    --color-planificacion-festivo: #fa8746;
  }
  
  body {
    padding: 0px;
    /* font: 14px "Lucida Grande", Helvetica, Arial, sans-serif; */
    font: 14px 'Segoe UI','Helvetica Neue','Droid Sans',Arial,Tahoma,Geneva,Sans-serif;
    color: var(--default-text-color);
  }
  
  /* Common header with logo, logout button and nav menu */
  #header-md-screen {
    margin: 0px 0px 10px 0px;
  
    img.logo-md-header {
      height: 63px;
      margin-top: 10px;
      margin-left: -2px;
    }
  
    >*{
      padding: 0px;
    }
    
    >:nth-child(2) {
      /* Align items to center */
      display: flex;
      justify-content: center;
      align-items: flex-end;
    }

    >:nth-child(3) {
      /* Align items to bottom right */
      display: flex;
      justify-content: flex-end;
      align-items: flex-end;
    }
  
    .btn-logout {
      vertical-align: middle;
      padding: 4px 27px;
      margin-right: 15px;
      font-size: 14px;
      background: linear-gradient(#eaeaea, #e0e0e0);
      border: 1px solid #c3c3c3;
      border-radius: 4px;
      box-shadow: inset 0px 1px 0px 0px rgba(255,255,255,0.35), 0px 1px 3px 0px rgba(0,0,0,0.1);
    }
  
  
  }
  
  #navbar {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    margin: 0px 0px 0px 0px;
    border-bottom: 1px solid #d7d7d7;
  
    a {
      color: var(--default-text-color);
      transition: color 0s;
    }
  
    .nav {
      padding-bottom: 2px;
    }
  
    .nav-link {
      padding: 5px 18px 6px 26px;

      /* Poner cursor basico si no se encuentra atributo href en el elemento (a) */
      &:not([href]) {
        cursor: default;
      }
    }
  
    .nav-item {
      display: flex;
      position: relative;
      background-color: unset;
  
      .dropdown-menu{
        display: block; /*none*/
        position: absolute;
        min-width: 160px;
        box-shadow: 0px 1px 6px 0px rgba(0,0,0,0.15);
        z-index: 1000;
        padding: 0px;
        margin: 0px;
        border: 1px solid #d8d8d8;
        border-radius: 0px;
        top: 100%;
        transform: scaleY(0%);
        transform-origin: top;
        transition: transform 0.05s var(--nav-dropdown-delay);
        
        * {
          color: var(--default-text-color) !important;
          font-size: 14px;
        }
  
        .dropdown-item:hover {
          background-color: var(--color-iverwind-blue); /*Solvento: #1279c0;*/
          color: white !important;
        }
      }
      
      &:hover {
        background-color: var(--color-iverwind-blue); /*Solvento: #1279c0;*/
  
        * {
          color: white;
        }
  
        .dropdown-menu {
          display: block;
          transform: scaleY(100%);
        }
      }
    }
  
    .bi {
      font-size: 9px;
      padding-right: 13px;
  
      &::before {
        vertical-align: -1.125em;
        transform: scaleX(1.125);
      }
    }
  
    .separator {
      margin: 0px 3px;
      padding: 0px;
      height: 28.6px;
      border-left: 1px solid #d7d7d7;
      /* background-color: #d7d7d7; */
    }

    #usuarioIdentificado {
      display: flex;
      align-items: center;
      gap: 5px;
      padding-right: 10px;
    }
    
  }

  #index-buttons {
    margin: 10px 0px 10px 0px;
    display: flex;
    justify-content: center;
    align-items: center;
  
    >div {
      margin: 10px 0px;
      padding: 0px 10px;

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

      div {
        padding: 10px 20px;
        text-align: center;
        /* background: linear-gradient(#eaeaea, #e0e0e0); */
        border: 1px solid #c3c3c3;
        border-radius: 5px;
        /* box-shadow: inset 0px 1px 0px 0px rgba(255,255,255,0.35), 0px 1px 3px 0px rgba(0,0,0,0.1); */

        &:hover {
          filter: brightness(1.075);
          box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.25);
        }

        &.blue-btn {
          background-color: #4480DB;
          color: white;
        }

        &.green-btn {
          background-color: #2D9662;
          color: white;
        }

        &.red-btn {
          background-color: #CC3300;
          color: white;
        }

        &.orange-btn {
          background-color: #e6ac0d;
          color: white;
        }

        &.purple-btn {
          background-color: #6f42c1;
          color: white;
        }
        
        h2 {
          /* No wrap and ... on overflow */
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;

        }


      }
    }
  }
  
  #main-container {
    margin-top: 20px;
    max-width: 95%;
  
    .section-title {
      margin-bottom: 1.5rem;
    }

    .row{
      
      span.info-selection {
        display: none;
      }
      
      &.selected {
        span.info-selection {
          display: unset;
        }
      }
    }
  }

  .filters-section {
    /* display: flex;
    justify-content: start;
    gap: 30px; */

    section {
      display: inline-flex;
      gap: 10px;
      
      label {
        margin: auto 0px;
        text-wrap: nowrap;
        font-weight: bold;
      }

      input {
        /* background-color: #2D9662; */
        box-shadow: 0px 0px 3px 0px rgba(0,0,0,0.2);
      }
      
      &:hover {
        input {
          box-shadow: 0px 0px 6px 2px rgba(0,0,0,0.2);
        }
      }
    }
  }
  
  .custom-table {
    a:hover {
      cursor: pointer;
      /* filter: brightness(0.75); */
    }

    tr {
      &.link-selection {
        border: 4px dashed #46a7fa;

        span.link-selector {
            border: 3px solid #46a7fa;
            border-radius: 6px;
            padding: 4px;
            background-color: #46a7fa;
            color: white;
            font-weight: bold;

            &:hover {
              font-weight: unset;
              color: unset;
              background-color: unset;
            }
        }
      }
    }
  
    th {
      background: #ddd; /*linear-gradient(#ececec, #fbfbfb);*/

      .sortable {
        filter: brightness(0.85); /* Asignado debido al color de background asignado (#ddd) */
      }
  
      div {
        color: #212121;
      }
    }
  
  
    td {
      background-color: #fdfdff;
  
      /* Estados del Parte */
      &:has(> span.creado-sin-enviar) {
        background-color: var(--color-creado-sin-enviar);
      }
  
      &:has(> span.aceptado) {
        background-color: var(--color-aceptado);
      }
      
      &:has(> span.rechazado) {
        background-color: var(--color-rechazado);
      }
  
      &:has(> span.no-revisado) {
        background-color: var(--color-no-revisado);
      }
      
      &:has(> span.planificado) {
        background-color: var(--color-planificado);
      }
  
      &:has(> span.archivado) {
        background-color: var(--color-archivado);
      }
      
      &:not(.avoid-span) {
        &:has(> span) {
          font-weight: 500;
          font-size: 0.9em;
          color: rgba(0, 0, 0, 0.75);
        }
      }

      &:has(> span.wtg) {
        span:hover {
          background-color: #3897f1;
          color: white;
          cursor: pointer;
        }
      }
      
      &.typeTrabDespInci {
        position: relative;

        /* Color del rectángulo del before */
        &:has(> span.T)::before {
          /* T → Trabajo */
          background-color: var(--color-trabajo);
        }

        &:has(> span.D)::before {
          /* D → Desplazamiento */
          background-color: var(--color-desplazamiento);
        }

        &:has(> span.I)::before {
          /* I → Incidencia */
          background-color: var(--color-incidencia);
        }

        &::before {
          content: '';
          position: absolute;
          left: 0; /* Coloca el rectángulo en el lateral izquierdo */
          top: 0;
          bottom: 0;
          width: 0.5em; /* Ancho del rectángulo (Cambiar por 6px si se quiere un tamaño fijo) */
          opacity: 0.65;
        }
      }

      &.link-selector {
        span:hover {
          cursor: pointer;
          border: 3px solid #46a7fa;
          border-radius: 6px;
          padding: 4px;
          color: #46a7fa;
          font-weight: bold;
        }
      }

      small.urgente {
        color: red;
        font-weight: bold;
      }

      &:has(> span.info-busqueda) {
        /* background-color: #ff061a; */
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
        /* max-width: 150px; */
      }
    }

    td:has(>i.value-as-icon):has(>small) {
      display: flex;
      flex-direction: column;
    }
  
    .value-as-icon {
      font-size: 2em;
      cursor: pointer;
      
      span.hidden {
        display: none;
      }
      
      &.no-hover {
        cursor: default;
      }
  
      &.green-font-color, +small.green-font-color {
        color: rgb(0, 200, 0);
  
        &:not(.no-hover):hover {
          filter: brightness(0.75);
        }
      }

      &.dark-green-font-color, +small.dark-green-font-color {
        color: rgb(0, 100, 0);
  
        &:not(.no-hover):hover {
          filter: brightness(0.75);
        }
      }
  
      &.blue-font-color, +small.blue-font-color {
        color: rgb(56, 151, 241);
  
        &:not(.no-hover):hover {
          filter: brightness(0.75);
        }
      }

      &.red-font-color, +small.red-font-color {
        color: rgb(241, 62, 56);
  
        &:not(.no-hover):hover {
          filter: brightness(0.75);
        }
      }

      &.yellow-font-color, +small.yellow-font-color {
        color: rgb(241, 161, 56);
  
        &:not(.no-hover):hover {
          filter: brightness(0.75);
        }
      }

      &.disabled {
        color: #d7d7d7;
        cursor: not-allowed;

        &:hover {
          filter: brightness(1);
        }
      }

      +small {
        font-size: 0.7em;
        font-weight: 500;
      }
    }
  
    .no-records-found {    
      div {
        padding: 10px 0px;
        display: flex;
        justify-content: center;
        align-items: center;
  
        i {
          padding-left: 10px;
          font-weight: bold;
          color: #6c757d;
        }
      }
    }
    
    &#partes-list-table {
      
      td {
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1em;
        max-width: 200px;
      }
  
      @media (max-width: 1700px) {
        td {
          max-width: 150px;
        }
      }
  
      @media (max-width: 1600px) {
        td {
          max-width: 100px;
        }
      }
  
      /* &.table-hover>tbody>tr:hover {
        td {
          background-color: #c4e7ff;
        }
      } */
  
      
    }

    span.card-view-value:has(>.tag) {
      margin-top: 5px;
      margin-bottom: 5px;
    }
  }

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

  button.btn-default {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    /* box-shadow: 0px 0px 3px 0px rgba(0,0,0,0.1); */

    &:hover {
      filter: brightness(1.1);
    }

    &:active {
      filter: brightness(0.9);
    }

    &.btn-add {
      width: 100%;
      background-color: #1ebd6dc4;
      color: white;
      
      &:hover {
        background-color: #1ebd6d;
        filter: brightness(1.1);
        color: white;
        /* font-weight: bold; */
      }
      
      &:active {
        background-color: #1ebd6d;
        filter: brightness(0.9);
        color: white;
      }
    }

    &.btn-edit {
      width: 100%;
      background-color: #1e68bdc4;
      color: white;
      
      &:hover {
        background-color: #1e75bd;
        filter: brightness(1.1);
        color: white;
        /* font-weight: bold; */
      }
      
      &:active {
        background-color: #1e75bd;
        filter: brightness(0.9);
        color: white;
      }
    }

    &.btn-trabajo {
      width: 100%;
      background-color: var(--color-trabajo);
      color: white;
      font-size: 1.2em;
      
      &:hover {
        background-color: var(--color-trabajo);
        color: white;
      }
      
      &:active {
        background-color: var(--color-trabajo);
        color: white;
      }
    }

    &.btn-desplazamiento {
      width: 100%;
      background-color: var(--color-desplazamiento);
      color: white;
      font-size: 1.2em;
      
      &:hover {
        filter: brightness(1.2);
        background-color: var(--color-desplazamiento);
        color: white;
      }
      
      &:active {
        filter: brightness(0.9);
        background-color: var(--color-desplazamiento);
        color: white;
      }
    }

    &.btn-incidencia {
      width: 100%;
      background-color: var(--color-incidencia);
      color: white;
      font-size: 1.2em;
      
      &:hover {
        filter: brightness(2);
        background-color: var(--color-incidencia);
        color: white;
      }
      
      &:active {
        filter: brightness(0.9);
        background-color: var(--color-incidencia);
        color: white;
      }
    }
  }

  button.btn:disabled {
    /* filter: brightness(0.75); */
    opacity: 0.65;
  }
  
  .form-switch {
    padding-right: calc(var(--bs-gutter-x)* .5);
    padding-left: calc(var(--bs-gutter-x)* .5);
    
    input {
      float: none !important;
      margin-left: 0 !important;
      padding-left: 1.1em;
    }
  }
  
  select.estado-colores {
    &.activo {
      background-color: rgb(220, 255, 220);
    }
    &.estropeado {
      background-color: rgb(255, 220, 220);
    }
    &.revision {
      background-color: rgb(220, 220, 255);
    }
    &.extraviado {
      background-color: rgb(220, 220, 220);
    }
    &.baja {
      background-color: rgb(150, 150, 150);
    }
  
    option {
     
      &.activo {
        background-color: rgb(220, 255, 220);
      }
      &.estropeado {
        background-color: rgb(255, 220, 220);
      }
      &.revision {
        background-color: rgb(220, 220, 255);
      }
      &.extraviado {
        background-color: rgb(220, 220, 220);
      }
      &.baja {
        background-color: rgb(150, 150, 150);
      }
    }
  }
  
  table.no-selectable-text td{
    user-select: none;
  }
  
  .btn.hovered {
    color: var(--bs-btn-hover-color);
    background-color: var(--bs-btn-hover-bg);
    border-color: var(--bs-btn-hover-border-color);
  }

  .modal.view-only {
    input:disabled {
      background-color: unset;  /* No mostrar el fondo gris de los inputs deshabilitados */
    }

    textarea:disabled {
      background-color: unset;  /* No mostrar el fondo gris de los textarea deshabilitados */
      padding: 8px;
    }
  }
  
  .modal-body {
    padding: 25px 40px;
  }

  #trabajoModalLineaEnlazado {
    margin-top: 20px;

    &:has(.collapse.show) {

      #trabajoModalLineaLabelEnlazado::after { 
        content: "▲";
      }
      
    }

    #trabajoModalLineaLabelEnlazado::after {
      content: "▼";
      font-size: small;
      margin-left: 5px;
    }
    
    &:has(.collapse) {

      #trabajoModalLineaLabelEnlazado::after { 
        content: "▼";
      }
      
    }
        
    &:has(.collapse.show) {
      
      #trabajoModalLineaLabelEnlazado::after { 
        content: "▲";
      }

    }
  }

  #image-carousel, .image-carousel {
    #image-carrousel-list, .splide__list {
      img {
        width: 100%;
        height: auto;
      }
    }

    .splide__slide {
      .tooltip-type {
        position: absolute;
        top: 0;
        left: 0;
        background-color: rgba(0, 0, 0, 0.75);
        color: white;
        padding: 10px;
        font-size: 1em;
        border-radius: 0px 0px 5px 0px;
        opacity: 0%;
        transition: opacity 0.2s;
      }

      .delete-icon {
        position: absolute;
        top: 0;
        right: 0;
        background-color: rgb(255, 255, 255);
        color: rgb(241, 62, 56);
        padding: 10px;
        font-weight: bold;
        font-size: 2em;
        border-radius: 0px 0px 0px 5px;
        opacity: 0%;
        transition: opacity 0.2s;
        cursor: pointer;
      }

      &:hover {
        .tooltip-type, .delete-icon {
          opacity: 100%;
        }
      }
    }

    .splide__pagination {
      display: flex !important; /* Mostrar los puntos de paginación en línea. Para solventar bug en el que solo aparecian si se cambiaba el tamaño de la ventana */
    }
  }

  #yearSelectorSection .selectize-control.multi .selectize-input > div.item { /* Añadir a los elementos de los selects MULTIPLE del plugin selectize estilo personalizado */
    background: var(--color-iverwind-blue);
    color: #ffffff;
    font-weight: 500;

    &.active {
      background-color: var(--color-iverwind-orange);
    }
  }

  #parteAccordionCollapseGeneralController {
    left: 10px;
    bottom: 30px;
    width: fit-content;

    &.collapsed .round-icon-btn::after {
      transform: rotate(0deg);
    }

    /* Botón redondo cuyo contenido es un icono */
    .round-icon-btn {
      width: 60px;
      height: 60px;
      border-radius: 50%;
      /* background-color: #f8f9fa; */
      /* background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e"); */
      box-shadow: 0px 0px 3px 0px rgba(0,0,0,0.2);
      display: flex;
      justify-content: center;
      align-items: center;
      cursor: pointer;
  
      &:hover {
        background-color: var(--color-iverwind-orange);
        
        &::after {
          filter: brightness(100);
        }
      }
      
      &::after {
        color: #DEE2E6;
        font-size: 2em;
        width: 75%;
        height: 75%;
        content: "";
        vertical-align: middle;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
        background-size: contain; /* Ajusta el tamaño de la imagen de fondo */
        background-repeat: no-repeat;
        background-position: center; /* Centra la imagen de fondo */
        transition: transform 0.5s ease; /* Añade una transición para el giro */
        transform: rotate(-180deg);
      }

    }
  }
  
  .accordion-button:not(.collapsed) {
    background-color: var(--color-iverwind-orange);
    color: white;
  }

  .accordion-button:focus { /* Usado para quitar los bordes que se muestran al haber interaccionado con un botón del accordion */
    outline: none !important;
    border: none;
    box-shadow: none;
  }

  .accordion-button:disabled {
    background-color: gainsboro;
    color: white;
  }

  #trabajoModalComentarios {
    label>button {
      color: white;
      font-weight: 500;
      font-size: smaller;
      max-height: 26px;
      border: none;

      &.soporte-tecnico {
        margin-left: 5px;
      }

      /* & disabled*/
      &:disabled {
        background-color: #d7d7d7;
        color: #6c757d;
      }
    }
  }

  .parteCambioEstadoObservacion {
    border: 1px solid #d7d7d7;
    border-radius: 8px;
    margin-bottom: 10px;
    
    .header {
      padding: 10px;
      display: flex;
      vertical-align: middle;
      border-bottom: 1px solid #d7d7d7;

      .avatar {
        width: 45px;
        height: 45px;
        border-radius: 12px;
        background-color: #1279c0;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
      }

      p {
        margin-top: auto;
        margin-bottom: auto;
        padding: 0px 10px;
        font-weight: bold;
        font-size: 1.2em;
      }

      .extra-info {
        display: flex;
        flex-flow: column;
        justify-content: space-around;
        align-items: flex-end;

        .estado {
          font-weight: 600;
          font-size: 1.2em;
          border: solid 2px;
          border-color: rgb(0 0 0 / 38%);
          border-radius: 12px;
          padding: 0px 8px 2px 8px;
          margin-top: 5px;
          
          &.creado-sin-enviar {
            background-color: var(--color-creado-sin-enviar);
          }

          &.aceptado {
            background-color: var(--color-aceptado);
          }

          &.rechazado {
            background-color: var(--color-rechazado);
          }

          &.no-revisado {
            background-color: var(--color-no-revisado);
          }

          &.planificado {
            background-color: var(--color-planificado);
          }

          &.archivado {
            background-color: var(--color-archivado);
          }
        }
      }
    }
    
    .body {
      padding: 10px;
      font-size: 1.2em;    
    }
  
  }

  .tag {
    font-weight: 600;
    font-size: 1.2em;
    border: solid 2px;
    border-color: rgb(0 0 0 / 38%);
    border-radius: 12px;
    padding: 0px 8px 2px 8px;
    margin-top: 5px;
    
    &.creado-sin-enviar {
      background-color: var(--color-creado-sin-enviar);
    }

    &.aceptado {
      background-color: var(--color-aceptado);
    }

    &.rechazado {
      background-color: var(--color-rechazado);
    }

    &.no-revisado {
      background-color: var(--color-no-revisado);
    }

    &.planificado {
      background-color: var(--color-planificado);
    }

    &.archivado {
      background-color: var(--color-archivado);
    }

    &.trabajo {
      background-color: var(--color-trabajo);
    }

    &.desplazamiento {
      background-color: var(--color-desplazamiento);
    }

    &.incidencia {
      background-color: var(--color-incidencia);
    }

    &.si {
      background-color: rgb(133, 249, 154);
    }

    &.no {
      background-color: rgb(215, 215, 215);
    }

    &.apto {
      background-color: rgb(133, 249, 154);
    }

    &.no-apto {
      background-color: rgb(249, 133, 133);
    }

    &.en-curso {
      background-color: rgb(249, 208, 133);
    }

    &.ok {
      background-color: rgb(25, 135, 84);
      color: white;
    }
    
    &.no-ok {
      background-color: rgb(220, 53, 69);
      color: white;
    }
    
    &.rework {
      background-color: rgb(255, 193, 7);
      color: white;
    }
  }
  
  
  .btn.btn-outline {
    border: 1px solid #212529;
    box-shadow: 0px 0px 3px 0px rgba(0,0,0,0.2);
    
    &:hover {
      background-color: #e0e0e0;
    }
  }
  
  .btn.btn-outline.bi.bi-plus-lg::before {
    color: rgb(0, 200, 0);
    font-size: 1.2em;
    margin-right: 0.2em;
  }

  .info-icon {
    /* color: #007bff; */
    color: var(--color-iverwind-blue);
    font-size: 1.2em;
    cursor: pointer;
  }

  .info-tooltip {
    --bs-tooltip-bg: var(--color-iverwind-blue);
    --bs-tooltip-color: white;
    --bs-tooltip-max-width: 350px;
    --bs-tooltip-padding-y: 7px;
    --bs-tooltip-opacity: 1;

    &.long-tooltip {
      --bs-tooltip-max-width: 700px;
      text-align: left;
    }
  }

  #materialModalFooter {
    justify-content: space-between;
  }
  
  .end-table-accion {
    margin-top: 10px;
  
    #printHojaEntregaButton {
      padding: 0px;
      margin: 0px;
      background-color: unset;
      border: none;
      color: #1279c0;
      font-size: 14px;
      cursor: pointer;
      
      &:hover {
        text-decoration: underline;
      }
  
      span {
        font-size: 1.3em;
        padding-right: 0.35em;
      }
    }
  }
  
  .full-screen-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 2000;
    display: none;
    justify-content: center;
  
    .spinner-border {
      margin: auto;
      color: var(--color-iverwind-green);

      &.with-progress-bar {
        margin: auto auto 20px auto;
      }
    }

    .progress {
      margin: 0px auto;
      width: 150px;
      height: 5px;

      .progress-bar {
        background-color: var(--color-iverwind-orange);
      }
    }
    
    .progress-status {
      margin: 10px auto auto auto;
      display: flex;
      align-items: center;
      color: #bdbdc0;
      background-color: #ffffffc0;
      box-shadow: 0 0 20px 10px #ffffffc0;
    }
  }
  
  #footer-md-screen {
    position: fixed;
    bottom: 0px;
    width: 100%;
    margin: 0px;
    padding: 0px;
    border-top: 1px solid #d7d7d7;
    background-color: white;
    z-index: 100;
    /* make it invisible to interact with the elements below (to allow the scroll when dragging an element) */
    pointer-events: none;
  
    p {
      margin: 0px;
      padding: 2px 0px;
    }
  }
  
  *:has(> #footer-md-screen) {
    &::after {
      content: "";
      display: block;
      margin-bottom: 50px;
    }
  }

  #UMContainer, #partesPlanificadosContainer {
    .UMCard {
      border: 1px solid #d7d7d7;
      border-radius: 8px;
      padding: 10px;
      margin-bottom: 20px;

      &.success {
        outline: 4px solid #198754;
        box-shadow: 0 0 6px 2px #198754;
      }

      &.warning {
        outline: 4px solid #ffc107;
        box-shadow: 0 0 6px 2px #ffc107;
      }

      &.danger {
        outline: 4px solid #dc3545;
        box-shadow: 0 0 6px 2px #dc3545;
      }

      .UMCardHeader {
        display: flex;
        justify-content: space-between;
        align-items: center;

        .UMAddEmployees {
          display: flex;
          align-items: center;
          gap: 10px;
          min-width: 50%;

          select {
            min-width: 150px;
          }
        }

        .UMAddedEmployees {
          margin-left: 10px;

          span.badge {
            background-color: var(--color-iverwind-blue);
            color: white;
            font-weight: 500;
            font-size: 1rem;

            &:first-child {
              background-color: var(--color-iverwind-green);
              border: 3px solid var(--color-iverwind-orange);
            }

            &.modifyButton {
              display: inline-flex;
              align-items: center;
              cursor: pointer;
              i::before {
                transition: transform 0.5s ease-in-out;
              }
              &:hover i::before {
                transform: rotate(125deg);
              }
            }
          }
        }

        .partePlanificadoEmployees {
          justify-content: end;
          display: flex;
          flex-wrap: wrap;
          column-gap: 10px;
          row-gap: 5px;
        }

        .UMTecnicosSelect.selectize-control.multi .selectize-input > div.item { /* Añadir a los elementos de los selects MULTIPLE del plugin selectize estilo personalizado */
          background: var(--color-iverwind-blue);
          color: #ffffff;
          font-weight: 500;

          &:first-child {
            background-color: var(--color-iverwind-green);
            border: 3px solid var(--color-iverwind-orange);
          }

          &.active {
            background-color: var(--color-iverwind-orange);
          }
        }
      }

      .UMCardBody {
        margin-top: 10px;
        margin-bottom: 10px;
        gap: 10px;

        table.PlanificacionTable {
          tfoot {
            th {
              background: white;
              color: black;
            }
          }

          th {
            background: var(--color-iverwind-orange);

            div {
              padding-left: 5px;
              padding-right: 5px;
            }

            &.lineaTipo {
              width: 10px;

              * {
                padding: 0px;
              }
            }

            &.num-total-wtg {
              font-size: x-small;
              
              div.th-inner {
                padding-top: 0px;
                padding-bottom: 0px;
                white-space: wrap;
              }
            }

            &.dia {
              width: 40px;

              &>div {
                display: grid;
                padding: 0px;

                span {
                  font-size: 0.8em;
                  color: #b00000;
                }
              }

              &.festivo {
                background-color: var(--color-planificacion-festivo);
              }
              
              /* &.festivo::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                border-top: 4px solid #f00;
                border-left: 4px solid #f00;
                border-right: 4px solid #f00;
                pointer-events: none;
                z-index: 1;
              } */
            }
      
            .sortable {
              filter: brightness(0.85); /* Asignado debido al color de background asignado (#ddd) */
            }
        
            div {
              color: white;
            }
          }
        
          tr {
            &.reorder-rows-on-drag-class {
              /* border: 2px solid var(--color-iverwind-orange); */
              box-shadow: none;
              td {
                background-color: #fff2a9;
              }
            }

            &:has(> td.lineaTipo > span.material) {
              td.servicio, td.descripcionServicio {
                color: brown;
                font-weight: 500;
              }
            }

            &:hover {
              td.acciones span.add-row {
                position: absolute;
                display: block;
                top: 0%;
                left: 50%;
                transform: translate(-50%, -50%);
              }
            }
          }
        
          td {
            background-color: #fdfdff;
        
            &.one-line {
              white-space: nowrap;
              overflow: hidden;
              text-overflow: ellipsis;
            }

            &.lineaTipo {
              width: 10px;
              padding: 0px;
              
              &:has(> span.trabajo) {
                background-color: var(--color-trabajo);
              }

              &:has(> span.desplazamiento) {
                background-color: var(--color-desplazamiento);
              }

              &:has(> span.incidencia) {
                background-color: var(--color-incidencia);
              }
            }

            &:has(> * span .value-as-icon) {
              padding: 0px;
            }

            &.parque-enlace {
              &>div {
                display: flex;
                justify-content: space-evenly;
  
                img.windy-icon {
                  aspect-ratio: 1/1;
                  height: 1.5em;
                }
              }
            }

            &.descripcionServicio {
              position: relative;

              .edit-button {
                position: absolute;
                bottom: 0;
                right: 0;
                padding: 4px;
                font-size: 12px;

                &:hover {
                  background-color: rgba(0, 0, 0, 0.1);
                  cursor: pointer;
                }
              }
            }

            &.tiempo-ciclo {
              /* padding: 0px; */

              a {
                display: block;
                /* padding: 5px; */
                text-align: center;
                /* font-weight: bold; */
                cursor: pointer;
                /* font-size: 1.2em; */
                color: black;
                text-decoration: none;
                border: none;

                &:hover {
                  border-bottom: 1px solid black;
                }
              }
            }

            &.tecnicos-asignados {
              padding: 0px;

              a {
                border: none;
                display: inline-grid;
                gap: 0.2em;
                padding: 0.2em;
              }

              span.badge {
                background-color: var(--color-iverwind-blue);
                color: white;
                font-weight: 500;
                font-size: 0.8rem;

                &.responsable {
                  background-color: var(--color-iverwind-green);
                  border: 3px solid var(--color-iverwind-orange);
                }
              }
            }

            /* &.cantidad-a-enviar {
              
            } */

            &.dia {
              padding: 0px;

              a {
                display: block;
                padding: 5px;
                text-align: center;
                font-weight: bold;
                cursor: pointer;
                font-size: 1.2em;
                color: black;
                text-decoration: none;
                border: none;
              }

              &:not(:has(a.editable-empty)) {
                background-color: #ffff00ad;
              }

              &.festivo {
                position: relative;
              }
              
              &.festivo::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                /* border-left: 4px solid var(--color-planificacion-festivo);  /* Borde izquierdo */
                /* border-right: 4px solid var(--color-planificacion-festivo); /* Borde derecho */
                pointer-events: none;         /* No interfiere con la interacción */
                background-color: var(--color-planificacion-festivo);
                opacity: 0.15;
                z-index: 1;
              }
            }
      
            &.custom-div-rows {
              display: table-cell;
              text-align: center;
              padding: 0px;

              .add-line-button {
                background-color: #1ebd6dcc;
                color: white;
                border: none;
                border-radius: 5px;
                padding: 5px 15px;
                cursor: pointer;
                font-weight: bold;
                font-size: 1.2em;

                &:hover {
                  background-color: #1ebd6d;
                  filter: brightness(1.1);
                }

                &:active {
                  background-color: #1ebd6d;
                  filter: brightness(0.9);
                }
              }

              div.custom-div-rows-cells-container {
                display: block; 
                width: 100%;

                div.custom-div-rows-cell {
                  padding: 5px;
                  border-bottom: 1px solid #d7d7d7;

                  &:last-child {
                    border-bottom: none;
                  }
                }

                &.dia {
                  font-weight: 500;

                  &.festivo {
                    div.custom-div-rows-cell {
                      background-color: var(--color-planificacion-festivo);
                      color: white;
                    }
                  }
                }
              }

              span.facturacion-titulo {
                font-size: 0.85em;
              }

              span.facturacion-tipo {
                font-size: 0.8em;
              }

              span.facturacion-total {
                font-weight: 500;
                font-size: 1.15em;

                &.elemento-de-grupo {
                  font-size: 0.85em;
                  text-wrap-mode: nowrap;
                }
              }
            }

            &.acciones {
              position: relative;

              span.add-row {
                display: none;

                .value-as-icon::before {
                  background-color: white;
                  border: 4px solid #eaeaec;
                  border-radius: 4px;
                }

              }
            }
          }
        
          .value-as-icon {
            font-size: 2.2em;
            cursor: pointer;
            
            span.hidden {
              display: none;
            }

            &.small {
              font-size: 1.9em;
            }
            
            &.no-hover {
              cursor: default;
            }
        
            &.green-font-color {
              color: rgb(0, 200, 0);
        
              &:not(.no-hover):hover {
                filter: brightness(0.75);
              }
            }

            &.btn-primary-font-color {
              color: #1ebd6d;
              &::before {
                transform: scale(0.85);
                transition: transform 0.1s;
              }
        
              &:not(.no-hover):hover {
                &::before {
                  transform: scale(1);
                }
              }
            }
        
            &.blue-font-color {
              color: rgb(56, 151, 241);
        
              &:not(.no-hover):hover {
                filter: brightness(0.75);
              }
            }
      
            &.red-font-color {
              color: rgb(241, 62, 56);
        
              &:not(.no-hover):hover {
                filter: brightness(0.75);
              }
            }

            &.purple-font-color {
              color: rgb(111, 66, 193);
        
              &:not(.no-hover):hover {
                filter: brightness(0.75);
              }
            }

            &.gray-font-color {
              color: rgb(110, 110, 110);
        
              &:not(.no-hover):hover {
                filter: brightness(0.75);
              }
            }
      
            &.disabled {
              color: #d7d7d7;
              cursor: not-allowed;
      
              &:hover {
                filter: brightness(1);
              }
            }
          }
        
          .no-records-found {    
            div {
              padding: 10px 0px;
              display: flex;
              justify-content: center;
              align-items: center;
        
              i {
                padding-left: 10px;
                font-weight: bold;
                color: #6c757d;
              }
            }
          }

          .disable-interaction {
            pointer-events: none;
            text-decoration: none;
            
            * {
              pointer-events: none;
              text-decoration: none;
            }
          }
        }
      }

      .UMCardFooter {
        display: flex;
        justify-content: space-between;

        .UMCardFooterComentario {
          display: flex;
          justify-content: flex-start;
          min-width: 50%;
          gap: 10px;
          align-items: center;
          vertical-align: middle;
          font-weight: 500;
        }

        .UMCardFooterButtons {
          display: flex;
          justify-content: flex-end;
          flex-direction: row;
          flex-wrap: wrap;
          align-items: flex-end;
          gap: 10px;
        }

        &.UMCardContactos {
          flex-direction: column;
          gap: 10px;

          .UMCardFooterContactosTecnicos, .UMCardFooterContactosParques {
            display: flex;
            justify-content: flex-start;
            flex-wrap: wrap;
            gap: 11px;
  
            .UMCardContacto {
              padding: 15px;
              border: 1px solid #d7d7d7;
              border-radius: 8px;
  
              p {
                margin: 0px;
                padding: 0px;
                margin-bottom: 5px;
    
                b {
                  font-weight: 500;
                }
              }
            }
          }
        }
      }
    }
  }

  .UMTecnicosSelectModal.selectize-control.multi .selectize-input > div.item { /* Añadir a los elementos de los selects MULTIPLE del plugin selectize estilo personalizado */
    background: var(--color-iverwind-blue);
    color: #ffffff;
    font-weight: 500;

    &:first-child {
      background-color: var(--color-iverwind-green);
      border: 3px solid var(--color-iverwind-orange);
    }

    &.active {
      background-color: var(--color-iverwind-orange);
    }
  }

.checklist-icon, span.card-view-value {
  /* Clase que reciben las celdas de las columnas de checklist de las tablas del parte TrabajosRealizados y TrabajosNoProgramados */
  
  .empty {
    /* Sin checklist creado */
    /* color: #ae0000; */
    color: #d4d4d4;
  }

  .eliminado {
    /* El checklist existente está eliminado */
    color: #ff0000;
  }

  .creado-sin-enviar {
    /* El checklist existente está creado sin haber sido firmado todavía */
    color: #3897f1;
  }

  .firmado {
    /* El checklist existente está firmado */
    color: #00c800;
  }

  .aceptado {
    /* El checklist existente está firmado */
    color: #008500;
  }
}

.checklist-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  .tag {
    font-weight: 500;
    font-size: 0.6em;
    padding: 0px 4px 2px 4px;
  }
}

.selectorHerramienta.selectize-control {

  .selectize-input div:has(> span) {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    align-items: flex-start;

    span {
      line-height: 1.3em;
    }
    
    span.descripcion {
      font-size: 1em;
    }

    span.numSerie, span.fechaCalibracion {
      font-size: 0.9em;

      &.fechaCalibracion {
        font-style: italic;
      }
    }
  }

  .selectize-dropdown div:has(> span) {
    margin: 0px 5px 5px 5px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    align-items: flex-start;

    span {
      line-height: 1.3em;
    }
    
    span.descripcion {
      font-size: 1em;
    }
    
    span.numSerie, span.fechaCalibracion {
      font-size: 0.9em;
      color: #707070;

      &.numSerie {
        font-weight: 500;
      }

      &.fechaCalibracion {
        font-style: italic;
      }
      
    }
  }
}

.botonesAutoRespuesta {
  /* Botones de auto-respuesta */
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 10px;
  /* margin-bottom: 10px;*/
  button {
    color: white !important; /* Después de haber sacado .botonesAutoRespuesta de #checklistPreguntasContainer, se ha puesto !important para evitar que en hover o en click se vea negro */
    font-weight: 500;
    font-size: smaller;
    max-height: 26px;
    border: none;
    &.ok {
      background-color: #19875430;

      &:hover {
        background-color: #198754;
      }
    }
    &.noOk {
      background-color: #dc354530;

      &:hover {
        background-color: #dc3545;
      }
    }
    &.reparar {
      background-color: #ffc10730;

      &:hover {
        background-color: #ffc107;
      }
    }
    &.reemplazar {
      background-color: #ff990030;  
      
      &:hover {
        background-color: #ff9900;
      }
    }
    &.na {
      background-color: #4b78a030;
      
      &:hover {
        background-color: #4b78a0;
      }
    }
  }
}

#checklistPreguntasContainer {
  padding: 0;

  .grupo {
    /* Apartado */
    display: flex;
    flex-direction: row;
    column-gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;

  }

  .elemento {
    /* Pregunta */
    border-bottom: 1px solid #d7d7d7;
    padding-bottom: 10px;

    &.is-invalid {
      border-radius: 5px;
      border: 3px dashed red;
    }

    .preguntaDescripcion {
      /* Descripción/Enunciado de la pregunta */
      display: flex;
      align-items: center;
    }

    .preguntaRespuesta {
      /* Sección de respuesta a la pregunta */
      display: flex;
      flex-direction: row;
      flex-wrap: nowrap;
      justify-content: flex-end;
      padding: 3px 0px;
      overflow-x: auto;
      scrollbar-width: thin;


      .preguntaRespuestaElement {
        /* Elemento de respuesta */
        text-wrap: nowrap;
        padding: 0px 3px;
        
        &.valorRequerido {
          width: 100%;
          min-width: 20px;
          input {
            /* resaltar el borde del input */
            border: 1px solid #696969;
          }
        }

        .btn {
          color: white;
          font-weight: 500;
        }

        .btn-check:disabled+.btn {
          opacity: 1;
        }

        &.ok {
          .btn {
            background-color: #19875430;
          }
          
          .btn-check:checked+.btn {
            background-color: #198754;
          }
        }
        &.noOk {
          .btn {
            background-color: #dc354530;
          }
          
          .btn-check:checked+.btn {
            background-color: #dc3545;
          }
        }
        &.reparar {
          .btn {
            background-color: #ffc10730;
          }
          
          .btn-check:checked+.btn {
            background-color: #ffc107;
          }
        }
        &.reemplazar {
          .btn {
            background-color: #ff990030;  
          }
          
          .btn-check:checked+.btn {
            background-color: #ff9900;
          }
        }
        &.na {
          .btn {
            background-color: #4b78a030;
          }
          
          .btn-check:checked+.btn {
            background-color: #4b78a0;
          }
        }
      }
    }

    .preguntaComentario {
      /* Sección de comentario a la pregunta cuando se ha marcado como NoOK*/
      padding: 0px;
      
      max-height: 0; /* Comienza colapsado */
      overflow: hidden; /* Oculta contenido que excede el max-height */
      transition: max-height 0.3s cubic-bezier(0.5, 0, 0.1, 1);; /* Transición suave */
      
      /* El estilo cuando está visible */
      &.visible {
        max-height: 500px; /* Ajusta según el contenido esperado */
      }
    }
  }
}

#checklistSeccionFinal {
  border: 0.8px solid #dee2e6;
  border-radius: 5px;
  padding: 20px;

  #checklistSeccionFinalApartados>div {
    margin-bottom: 13px;
  }

  #checklistSeccionFinalResultado {

    &.is-invalid {
      border-radius: 5px;
      border: 3px dashed red;
    }
    
    .respuestaFinal {
      /* Elemento de respuesta */
      text-wrap: nowrap;
      margin-bottom: 6px;
  
      .btn {
        color: white;
        font-weight: 500;
        border: 2px solid;
        width: 100%;
      }

      .btn-check:disabled+.btn {
        opacity: 1;
      }
  
      &.ok {
        .btn {
          background-color: #19875430;
          border-color: #0c613930;
        }
        
        .btn-check:checked+.btn {
          background-color: #198754;
          border-color: #0c6139;
        }
      }
      &.noOk {
        .btn {
          background-color: #dc354530;
          border-color: #af1c2b30;
        }
        
        .btn-check:checked+.btn {
          background-color: #dc3545;
          border-color: #af1c2b;
        }
      }
      &.rework {
        .btn {
          background-color: #ffc10730;
          border-color: #ff990030;
        }
        
        .btn-check:checked+.btn {
          background-color: #ffc107;
          border-color: #ff9900;
        }
      }
    }
  }

  #checklistSeccionFinalModificaEstadoAparato {
    &.is-invalid {
      border-radius: 5px;
      border: 3px dashed red;
    }
    
    .respuestaFinal {
      /* Elemento de respuesta */
      /* text-wrap: nowrap; */
      margin-bottom: 6px;
  
      .btn {
        color: white;
        font-weight: 500;
        border: 2px solid;
        width: 100%;
        background-color: #86868630;
        border-color: #61616130;
      }

      .btn-check:disabled+.btn {
        opacity: 1;
      }
  
      .btn-check:checked+.btn {
        background-color: #0d6efd;
        border-color: #0e57c5;
      }

      p {
        margin: 5px 0 0 0;
        font-size: smaller;
        text-align: justify;
        color: #bbbbbb;
      }

      &:has(.btn-check:checked) {
        p {
          color: inherit;
        }
      }
    }
  }

  
}
#checklistSeccionFinalBotones {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 10px;
  margin-top: 10px;

  &.sticky {
    width: fit-content;
    margin-left: auto;
    position: sticky;
    bottom: 30px;
    background-color: white;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    z-index: 100;
  }
}

.section-header-border-bottom {
  border-bottom: 3px solid var(--color-iverwind-orange);
  padding-left: 0px;
  margin-bottom: 10px;

  h4 {
    margin-bottom: 0px;
  }
}

.checklistCabeceraCategoria {
  border-bottom: 1px solid var(--color-iverwind-orange);
  padding-left: 0px;
  margin-bottom: 5px;

  h5 {
    margin-bottom: 0px;
    margin-top: 10px;
  }
}

.checklistCabeceraElement {
  /* Elemento de la cabecera de creación y edición de plantillas de checklist */
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  padding: 6px 12px 3px 12px;

  &:has(> label:hover,
          > input:hover):not(.readonly) {
    /* background-color: var(--color-iverwind-orange); */
    box-shadow: 0px 0px 0px 2px var(--color-iverwind-orange);
    -webkit-box-shadow: 0px 0px 0px 2px var(--color-iverwind-orange);
    -moz-box-shadow: 0px 0px 0px 2px var(--color-iverwind-orange);
  }

  &:has(> input:checked) {
    background-color: var(--color-iverwind-orange);
    color: white;
  }

  &:not(.readonly) {
    label, input {
      cursor: pointer;
    }
  }

  label {
    width: 100%;

    .plantillaCabeceraLabelName {
      font-weight: 500;
      font-size: 1.2em;
    }
    
    .plantillaCabeceraLabelTipo {
      font-size: 0.9em;
    }

  }

  input:checked {
    background-color: var(--color-iverwind-blue);
    border-color: var(--color-iverwind-blue);
  }
}

#puntosControlContainer {
  display: flex;
  flex-direction: column;
  /* gap: 10px; */

  &> div.col-12 {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 13px;

    &:hover:not(.readonly) {
      cursor: grab;
    }

    &.apartado-draggable {
      display: flex;
      flex-direction: column;
      align-items: end;
      margin-bottom: 20px;


      &:hover:not(:has(.puntoDeControl-draggable:hover)):not(.readonly) {
        background-color: #f8f9fa;
      }
      
      &.draggedElement {
        /* display: none; */
        opacity: 0.3;
      }

      &.drag-over {
        border-bottom: 2px dashed var(--color-iverwind-orange);
        border-right: 2px dashed var(--color-iverwind-orange);
        border-left: 2px dashed var(--color-iverwind-orange);

        background: linear-gradient(to bottom, transparent 94%, var(--color-iverwind-orange) 94%) left;
      }

      &.drag-over-puntoControl {
        border: 2px dashed var(--color-iverwind-orange);
        
        box-shadow: 0px 0px 1px 3px var(--color-iverwind-orange) inset;
        -webkit-box-shadow: 0px 0px 1px 3px var(--color-iverwind-orange) inset;
        -moz-box-shadow: 0px 0px 1px 3px var(--color-iverwind-orange) inset;
      }

      &.deleteApartado {
        border: 3px solid #dc3545;
      }
    }

    .checklistPuntosControlApartado {
      /* Apartado */
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      width: 100%;
      
      &> header {
        display: flex;
        justify-content: space-between;
        flex-direction: row;
        flex-wrap: wrap-reverse;
        gap: 10px;
        width: 100%;

        .inputsApartado {
          display: flex;
          flex-direction: row;
          justify-content: flex-start;
          align-items: baseline;
          flex-wrap: wrap;
          gap: 10px;

          .apartadoNumber {
            margin: 0px;
            padding: 5px;
          }

          input {
            min-width: 300px;
            width: auto;
            font-size: 1.2em;
          }
        }
      }
    }

    .checklistPuntosControlContainer {
      margin-top: 10px;
      margin-bottom: 10px;
      width: 100%;

      &.row {
        margin-left: 0px;
        margin-right: 0px;
      }
      
      .puntoDeControl-draggable {
        margin: 0px;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        padding: 13px;
        margin-bottom: 10px;
        background-color: white;

        &:last-child {
          margin-bottom: 0px;
        }

        &:hover:not(.readonly) {
          background-color: #f8f9fa;
        }

        &> header {
          padding-right: 0px;
          margin-bottom: 5px;
        }

        &.drag-over-puntoControl {
          border-bottom: 2px dashed var(--color-iverwind-orange);
          border-right: 2px dashed var(--color-iverwind-orange);
          border-left: 2px dashed var(--color-iverwind-orange);

          background: linear-gradient(to bottom, transparent 94%, var(--color-iverwind-orange) 94%) left;
        }

        .deletePuntoControl button {
          padding: 0.15rem 0.3rem;
          font-size: 0.8rem;
        }

        .puntoControlCheckboxes {
          padding-right: 0px;

          &> div.form-check {
            padding-right: 5px;
            input[type="checkbox"] {
              &:checked {
                &.NA {
                  background-color: #4b78a0;
                  border-color: #4b78a0;
                }
                &.OK {
                  background-color: #198754;
                  border-color: #198754;
                }
                &.No-OK {
                  background-color: #dc3545;
                  border-color: #dc3545;
                }
                &.Reparar {
                  background-color: #ffc107;
                  border-color: #ffc107;
                }
                &.Reemplazar {
                  background-color: #ff9900;
                  border-color: #ff9900;
                }
              }
            }
          }

          &> .valorRequerido {
            padding: 0px;
          }
        }

        &.deletePuntoControl {
          border: 3px solid #dc3545;
        }

      }
    }
  }

  
}

i.bi-circle-fill {
  &.completado, &.completed {
    color: #28a745; /* Verde */
  }

  &.en-curso, &.in-progress {
    color: #ffc107; /* Amarillo */
  }

  &.pendiente, &.pending {
    color: #6c757d; /* Gris */
  }

  &.eliminado, &.deleted {
    color: #a72828; /* Rojo */
  }
}

#checklists-list-table {
  .num-serie-editable {
    i {
      display: none;
      padding-left: 5px;
    }
  }

  td:has(> .num-serie-editable) {
    cursor: pointer;

    &:hover {
      color: rgb(56, 151, 241);
  
      .num-serie-editable {
        i {
          display: inline;
        }
      }
    }
  }
}

#pedidos-list-cliente-table {
  tr {
    &:has(td.parque) {
      td {
        background-color: #f2e6d94d;
      }
    }
    &:has(td.pedido) {
      td {
        background-color: #c2ebdc4d;
      }
    }
    &:has(td.linea) {
      td {
        background-color: #d1d8fa4d;
      }
    }
    &:has(td.linea-enlazada) {
      td {
        background-color: #fafaffcc;
      }
    }

    &:hover {
      td {
        filter: brightness(0.9);
      }
      &.treegrid-collapsed {
        cursor: url('/images/cursors/arrow-bar-down.svg'), auto; /* Cambia el cursor al pasar por encima de una fila colapsada */
      }
      &.treegrid-expanded {
        cursor: url('/images/cursors/arrow-90deg-up.svg'), auto; /* Cambia el cursor al pasar por encima de una fila expandida. Posibilidad de cambiar por arrow-bar-up.svg para mostrar extactamente el opuesto al mostrado cuando la fila está colapsada pero se ha dejado un icono diferente para mostrar mayor diferencia */
      }
    }

    td:has(.pedido-cliente-icon-container) {
      text-wrap: nowrap;
    }

    .pedido-cliente-icon-container {
      display: inline-flex;
      flex-direction: row;
      /* justify-content: space-between; */
      width: 100%;

      .pedido-cliente-icon {
        width: 22px;
        margin-right: 5px;
        opacity: 0.7;
      }
    }
  }

  span.treegrid-expander {
    pointer-events: none; /* Evita que el icono de expander bloquee la interacción con los elementos de la fila. IMPORTANTE: en la tabla, debe haber un "onClickRow (row, $element) {$element.treegrid('toggle')}" configurado para hacer que la fila pueda seguir siendo expandida y colapsada */
  }
}

#pedidos-documento-reparacion-seleccionar-fotos-materiales-table {
  div:has(>.image) {
    width: 100%;
    padding: 10px;
    border: 2px solid #ffffff00;
    
    &:has(>.image.selected) {
      box-shadow: 0px 0px 0px 5px var(--color-iverwind-orange) inset;
      -webkit-box-shadow: 0px 0px 0px 5px var(--color-iverwind-orange) inset;
      -moz-box-shadow: 0px 0px 0px 5px var(--color-iverwind-orange) inset;
    }
  }

  .image {
    width: 100%;
  }
}

#documentoReparacionSeleccionarFotosContainer {
  .foto-card {
    padding: 10px;
    border: 2px solid #ffffff00;

    &.selected {
      box-shadow: 0px 0px 0px 5px var(--color-iverwind-orange) inset;
      -webkit-box-shadow: 0px 0px 0px 5px var(--color-iverwind-orange) inset;
      -moz-box-shadow: 0px 0px 0px 5px var(--color-iverwind-orange) inset;
    }
  }
}

#correoButton {
  left: 7px;
  bottom: 30px;
  right: auto;
  width: fit-content;
  margin-left: 7px;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-end;
  max-height: 85%;

  /* Botón redondo cuyo contenido es un icono */
  .round-icon-btn {
    max-width: 80px;
    max-height: 80px;
    min-width: 80px;
    min-height: 80px;
    border-radius: 50%;
    box-shadow: 0px 0px 3px 0px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;

    
    i::before {
      font-size: 42px;
      transform-origin: top;
      color: #0000002e;
    }
    
    &.active {
      background-color: #4695d9;
      color: white;

      i::before {
      color: unset;
    }

      &:hover {
        background-color: #2579c2;
        
        &::after {
          filter: brightness(100);
        }
      }
    }
  }
}

#notificacion-frecuencia-table {
  th.frecuencia:hover {
    cursor: pointer;
    box-shadow: 0px 0px 0px 1px #767676 inset;
    
  }

  td:has(> i.bi):hover {
    cursor: pointer;
    box-shadow: 0px 0px 0px 1px #767676 inset;
  }
}

.sub-input-info {
  font-size: 0.9em;
  font-style: italic;
  color: #6c757d;
  margin-top: 5px;
  margin-left: 3px;
}

button {
  .ignore-click-events {
    pointer-events: none;
  }

  &:hover {
    .ignore-click-events {
      color: var(--color-iverwind-orange);
    }
  }
}

#notificacionPanel {
  right: 7px;
  bottom: 30px;
  left: auto;
  width: fit-content;
  margin-left: 7px;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-end;
  max-height: 85%;

  .notificacion-panel-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    border: 1px solid #dee2e6;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0px 0px 3px 0px rgba(0,0,0,0.2);
    padding: 10px;
    margin-bottom: 7px;
    overflow-y: auto;
    scrollbar-width: thin;
    
    transform-origin: bottom;
    transform: scaleY(1);
    transition: transform 0.2s ease-out;

    &.hidden {
      transform: scaleY(0);
      display: none;  /* Esto es necesario para evitar que el tamaño del panel bloquee la interacción con los elementos que "tapa" aunque esté oculto. Hace que la transición no funcione TODO: Cambiar transición por animación */
    }

    .notificacion-panel-container-header {
      * {
        margin: 0px;
        padding: 0px;
      }
    }

    .notificacion-panel-container-body {
      display: flex;
      flex-direction: column;
      gap: 10px;

      .notificacion-panel-item {
        padding: 10px;
        border: 1px solid #dee2e6;
        border-radius: 8px;

        .notificacion-panel-item-header {
          display: flex;
          justify-content: space-between;
          flex-direction: row;
          flex-wrap: nowrap;
          align-items: baseline;

          * {
            margin: 0px;
            padding: 0px;
          }

          .eliminar-notificacion {
            color: #000000;
            background-color: rgba(255, 255, 255, 0);
            border: 0px solid #00000000;
            border-radius: 5px;
            font-size: 1.5em;
            cursor: pointer;
            line-height: 0;
            padding: 0;
            margin-left: 10px;

            &:hover {
              color: white;
              background-color: #dc3545;
              border: 0px solid #00000000;
            }
          }
        }

        .notificacion-panel-item-body {
          margin: 8px 0px;

          p {
            margin: 0px;
            padding: 0px;
          }
        }

        .notificacion-panel-item-footer {
          display: flex;
          justify-content: flex-end;
          gap: 10px;
          font-size: 0.9em;
          font-style: italic;
        }

        &.DELETE {
          background-color: var(--color-rechazado);
        }

        &.POST {
          background-color: var(--color-aceptado);
        }

        &.PATCH, &.PUT {
          background-color: var(--color-no-revisado);
        }

        &.WARN {
          background-color: var(--color-creado-sin-enviar);
        }

        &.DISABLE {
          background-color: var(--color-archivado);
        }
      }
    }
  }

  /* Botón redondo cuyo contenido es un icono */
  .round-icon-btn {
    max-width: 60px;
    max-height: 60px;
    min-width: 60px;
    min-height: 60px;
    border-radius: 50%;
    box-shadow: 0px 0px 3px 0px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;

    &:hover {
      background-color: var(--color-iverwind-orange);
      
      &::after {
        filter: brightness(100);
      }
    }

    i::before {
      font-size: xx-large;
      transform-origin: top;
    }

    &.active {
      border: 3px solid var(--color-iverwind-orange);

      i::before {
        animation: rotate-bell 0.65s infinite ease-in-out;
      }
    }
  }
}
/* 
@keyframes rotate-bell-paused {
  0% {
    transform: rotate(0deg);
  }
} */

@keyframes rotate-bell {
  0% {
    transform: rotate(15deg);
  }
  50% {
    transform: rotate(-15deg);
  }
  100% {
    transform: rotate(15deg);
  }
}