/* Time wheel (iOS-style drum) and the from/to axis around it.
   Shared by both panels: courier trip modals in admin, pack transition in the workplace. */
.time-wheel-host {
    min-height: 84px;
    margin-top: 4px;
}

.time-wheel-picker {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

.time-wheel-picker__empty-surface {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: none;
    align-items: center;
    justify-content: center;
    font-variant-numeric: tabular-nums;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--color-text-tertiary, var(--color-text-secondary));
    pointer-events: none;
    z-index: 2;
    border-radius: 8px;
    background: var(--color-bg-surface);
}

.time-wheel-picker--time-empty .time-wheel-picker__empty-surface {
    display: flex;
}

.time-wheel-picker--time-empty .time-wheel-picker__col,
.time-wheel-picker--time-empty .time-wheel-picker__colon {
    opacity: 0.12;
}

.time-wheel-picker__col {
    position: relative;
    width: 4.5rem;
    max-width: 45%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    background: var(--color-bg-surface);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.time-wheel-picker__col::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    border-radius: 4px;
    pointer-events: none;
    background: var(--color-bg-surface-alt);
    opacity: 0.5;
    z-index: 0;
}

.time-wheel-picker__scroll {
    position: relative;
    z-index: 1;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: y mandatory;
    /* No scrollbar: this is a drum, the digits themselves show the position.
       With «always show scrollbars» a visible bar ate the column's right edge. */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.time-wheel-picker__scroll::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.time-wheel-picker__track {
    padding: 80px 0;
    box-sizing: content-box;
}

.time-wheel-picker__item {
    height: 40px;
    scroll-snap-align: center;
    scroll-snap-stop: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    font-variant-numeric: tabular-nums;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--color-text-primary);
    cursor: default;
}

/* Три видимых строки (Item_H=28px в time-wheel-picker.js) */
.time-wheel-picker--rows3 .time-wheel-picker__col {
    height: 84px;
}
.time-wheel-picker--rows3 .time-wheel-picker__col::after {
    height: 28px;
}
.time-wheel-picker--rows3 .time-wheel-picker__track {
    padding: 28px 0;
}
.time-wheel-picker--rows3 .time-wheel-picker__item {
    height: 28px;
    font-size: 0.98rem;
    scroll-snap-stop: normal;
}

/* Начало и окончание — в одной горизонтальной линии (колонки с барабанами на одной оси X) */
.courier-trip-wheels-xaxis {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}
.courier-trip-wheels-xaxis[hidden] { display: none; }
.courier-trip-wheels-xaxis__seg {
    flex: 1 1 0;
    min-width: 0;
}

.time-wheel-picker__colon {
    align-self: center;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    line-height: 1;
    flex: 0 0 auto;
}
