/* Il time originale conserva valore e invio HTML; il testo è solo l'interfaccia. */
.telaioTime-wrap {
  position: relative;
  width: 12rem;
  max-width: 100%;
}

span.telaioTime-wrap {
  display: block;
}

.telaioTime-wrap > input.telaioTime {
  min-height: 44px;
  padding-inline-end: 3.25rem;
}

.telaioTime-wrap > input.telaioTime-originale {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 0;
  clip-path: inset(50%);
  overflow: hidden;
  pointer-events: none;
}

.telaioTime-pulsante {
  position: absolute;
  inset-inline-end: .25rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #487297;
  background: transparent;
  border: 0;
  border-radius: var(--bs-border-radius, .375rem);
  touch-action: manipulation;
}

.telaioTime-pulsante:hover:not(:disabled) {
  background: var(--bs-tertiary-bg, #f8f9fa);
}

.telaioTime-pulsante:disabled {
  opacity: .5;
}

.telaioTime-pulsante:focus-visible {
  outline: 2px solid var(--bs-primary, #0d6efd);
  outline-offset: -2px;
}

.telaioTime-sfondo {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgb(0 0 0 / 15%);
  touch-action: none;
}

.telaioTime-selettore {
  position: fixed;
  width: 23rem;
  max-width: calc(100vw - 1rem);
  max-height: calc(100dvh - 1rem);
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: .75rem;
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: var(--bs-border-radius-lg, .5rem);
  background: var(--bs-body-bg, #fff);
  color: var(--bs-body-color, #212529);
  box-shadow: 0 .5rem 1.5rem rgb(0 0 0 / 20%);
}

.telaioTime-selettore button,
.telaioTime-selettore select,
.telaioTime-selettore input {
  min-height: 44px;
  font-size: 1rem;
  touch-action: manipulation;
}

.telaioTime-colonne {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(4.25rem, 1fr));
  gap: .75rem;
}

.telaioTime-colonne > div,
.telaioTime-colonne .form-control,
.telaioTime-colonne .form-select {
  min-width: 0;
}

.telaioTime-footer {
  display: flex;
  gap: .375rem;
}

.telaioTime-footer > button {
  flex: 1;
  min-width: 0;
  padding-inline: .375rem;
}

@media (max-width: 575.98px) {
  .telaioTime-sfondo {
    background: rgb(0 0 0 / 35%);
  }

  .telaioTime-selettore {
    width: calc(100vw - 1rem);
    padding-bottom: max(.75rem, env(safe-area-inset-bottom));
  }
}
