﻿/* ---------- Fluent fit: make MaskedInput look like it's the DropDownBox input (no nested frame) ---------- */
.dx-duration-ddb .dx-duration-ddb-input {
    width: 100%;
}
.dx-duration-ddb .dxbl-text-edit-template {
    padding: 0px 0px 0px 4px !important;
}
.dxbl-text-edit-template .dx-duration-mi {
    border: 0 !important;
}
/* ---------- Roller styles ---------- */
.dx-duration-popup {
    padding: .75rem;
    min-width: 360px;
}

.dx-duration-popup-range {
    font-size: .85em;
    opacity: .75;
    margin-bottom: .5rem;
}

.dx-duration-actions {
    display: flex;
    gap: .5rem;
    justify-content: flex-end;
    margin-top: .75rem;
}

/* Roller (scroll wheels) */
.dx-duration-roller {
    position: relative;
    display: flex;
    gap: .25rem;
    height: calc(32px * 5);
}

.dx-duration-wheel {
    position: relative;
    flex: 1;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    overscroll-behavior: contain;
    scrollbar-width: none; /* Firefox */
    padding-top: calc((32px * 5)/2 - 32px/2);
    padding-bottom: calc((32px * 5)/2 - 32px/2);
    border-radius: 8px;
}

    .dx-duration-wheel::-webkit-scrollbar {
        display: none;
    }

.dx-duration-item {
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center;
    user-select: none;
    cursor: pointer;
    opacity: .75;
}

.dx-duration-item-selected {
    opacity: 1;
    font-weight: 600;
}

.dx-duration-overlay {
    pointer-events: none;
    position: absolute;
    inset: 0;
}

.dx-duration-center {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 32px;
    transform: translateY(-50%);
    border-top: 1px solid rgba(0,0,0,.10);
    border-bottom: 1px solid rgba(0,0,0,.10);
    border-radius: 8px;
}

.dx-duration-fade {
    position: absolute;
    left: 0;
    right: 0;
    height: 45%;
}

.dx-duration-fade-top {
    top: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,1), rgba(255,255,255,0));
}

.dx-duration-fade-bottom {
    bottom: 0;
    background: linear-gradient(to top, rgba(255,255,255,1), rgba(255,255,255,0));
}

/* /* Dark mode (Fluent dark uses dark background; keep it subtle) */
