/* Own styles on top of Bootstrap. Keep this file small. */

/* Time fields have an own picker (core/forms.js). The browser's symbol
   would open the browser's picker on top of it. Devices without a mouse
   keep the symbol and the picker of their system. */
@media (pointer: fine) {
  input[type="time"]::-webkit-calendar-picker-indicator {
    display: none;
  }
}

.time-picker {
  position: absolute;
  /* Above the form buttons stuck to the bottom of the window. */
  z-index: 1030;
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  box-shadow: var(--bs-box-shadow);
}

.time-picker-column {
  /* The script measures the entries from the top of their column. */
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: 15rem;
  overflow-y: auto;
  scrollbar-width: thin;
}

.time-picker-column button {
  flex-shrink: 0;
  padding: 0.25rem 0.75rem;
  color: var(--bs-body-color);
  background: none;
  border: 0;
  border-radius: var(--bs-border-radius-sm);
  font-variant-numeric: tabular-nums;
}

.time-picker-column button:hover {
  background: var(--bs-tertiary-bg);
}

.time-picker-column button.active {
  color: #fff;
  background: var(--bs-primary);
}
