/*
 * Duration slider — replaces the «Длительность» tile inside the quick-add
 * leave panel. Light theme; tokens lifted verbatim from
 * designs/design_handoff_sidebar_slider_duration/FormSidebarSlider.jsx
 * (lines 32–241). See README.md "Theme conversion" table.
 */

.duration-slider {
    margin-top: 14px;
    padding: 18px;
    background: #fafaf7;
    border: 1px solid #ececec;
    border-radius: 12px;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.duration-slider__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.duration-slider__eyebrow {
    font-size: 11px;
    color: #666;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.duration-slider__subtitle {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

.duration-slider__header-right {
    text-align: right;
}

.duration-slider__value {
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
    /* color set inline from leave-type accent */
}

.duration-slider__unit {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

.duration-slider__slider-wrap {
    position: relative;
    height: 64px;
    margin-top: 16px;
}

.duration-slider__track {
    position: relative;
    height: 32px;
    background: #f4f4ee;
    border: 1px solid #e7e7e0;
    border-radius: 8px;
    cursor: pointer;
}

.duration-slider__heatbar {
    position: absolute;
    inset: 1px;
    display: flex;
    border-radius: 7px;
    overflow: hidden;
}

.duration-slider__heatcell {
    flex: 1;
    opacity: 0.55;
    /* background set inline from HeatColor::for() */
}

.duration-slider__range {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    border-radius: 8px;
    pointer-events: none;
    /* width, border, and box-shadow set inline; halo uses {accent}22 (~13% alpha) */
}

.duration-slider__handle {
    position: absolute;
    top: -6px;
    width: 18px;
    height: 44px;
    background: #fff;
    border-radius: 6px;
    transform: translateX(-9px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 0 0 1px #d8d8d0;
    pointer-events: none;
    cursor: grab;
}

.duration-slider__track:active .duration-slider__handle {
    cursor: grabbing;
}

.duration-slider__ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 10px;
    color: #888;
}

.duration-slider__breakdown {
    margin-top: 14px;
    padding: 12px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 10px;
}

.duration-slider__breakdown-eyebrow {
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 8px;
}

.duration-slider__breakdown-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.duration-slider__breakdown .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.duration-slider__breakdown .row__label {
    color: #444;
    display: flex;
    align-items: center;
    gap: 8px;
}

.duration-slider__breakdown .row__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.duration-slider__breakdown .row__value {
    font-weight: 700;
}

.duration-slider__helper {
    margin-top: 8px;
    font-size: 11px;
    color: #666;
}

.duration-slider__helper b {
    color: #111;
    font-weight: 700;
}
