:root {
    --lg-control-ink: #172033;
    --lg-control-muted: #667085;
    --lg-control-line: #dfe6ee;
    --lg-control-soft: #f7f9fc;
    --lg-control-blue: #2563eb;
}

.lg-control-select {
    position: relative;
    width: 100%;
    min-width: 0;
    font-size: 14px;
    line-height: 1.4;
}

.lg-control-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

.lg-control-select-button,
.lg-control-date {
    width: 100%;
    min-width: 0;
    height: 42px;
    border: 1px solid var(--lg-control-line);
    border-radius: 8px;
    background: #fff;
    color: var(--lg-control-ink);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .025);
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.lg-control-select-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 11px 0 13px;
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.lg-control-select-button:hover,
.lg-control-date:hover {
    border-color: #bcc9d8;
    background: #fbfcfe;
}

.lg-control-select-button:focus-visible,
.lg-control-select.is-open .lg-control-select-button,
.lg-control-date:focus-visible,
.lg-control-date.active {
    outline: 0;
    border-color: #79a8f8;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
    background: #fff;
}

.lg-control-select-button > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lg-control-select-button svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    color: #8a98aa;
    transition: transform .16s ease;
}

.lg-control-select.is-open .lg-control-select-button svg {
    transform: rotate(180deg);
}

.lg-control-menu {
    position: fixed;
    z-index: 12050;
    display: grid;
    gap: 3px;
    max-height: min(280px, calc(100vh - 24px));
    padding: 6px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--lg-control-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(15, 23, 42, .16), 0 2px 8px rgba(15, 23, 42, .07);
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.lg-control-menu[hidden] {
    display: none;
}

.lg-control-option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18px;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 38px;
    padding: 8px 9px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #344054;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
}

.lg-control-option span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.lg-control-option svg {
    display: none;
    width: 16px;
    height: 16px;
    color: var(--lg-control-blue);
}

.lg-control-option:hover,
.lg-control-option.is-focused {
    background: #f3f6fa;
    color: #172033;
}

.lg-control-option.is-selected {
    background: #eef4ff;
    color: #1d4ed8;
    font-weight: 800;
}

.lg-control-option.is-selected svg {
    display: block;
}

.lg-control-option:disabled {
    color: #aab4c2;
    cursor: not-allowed;
}

.lg-control-date {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 10px 0 12px;
    cursor: pointer;
}

.lg-control-date .lgnewui-time-left {
    min-width: 0;
    gap: 9px;
}

.lg-control-date .lgnewui-time-prefix {
    color: #8492a6;
}

.lg-control-date .lgnewui-time-prefix svg,
.lg-control-date-arrow svg {
    width: 16px;
    height: 16px;
}

.lg-control-date .lgnewui-time-value {
    min-width: 0;
    overflow: hidden;
    color: var(--lg-control-ink);
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lg-control-date .lgnewui-time-value.placeholder {
    color: #98a2b3;
    font-weight: 500;
}

.lg-control-date-arrow {
    display: grid;
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 6px;
    background: var(--lg-control-soft);
    color: #8492a6;
}

.lg-control-date.is-invalid {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .11);
}

.ndp-popover {
    --ndp-radius: 8px;
    --ndp-accent: #2563eb;
    --ndp-accent-bg: rgba(37, 99, 235, .1);
    z-index: 12100;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .18), 0 2px 8px rgba(15, 23, 42, .06);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.ndp-title-btn,
.ndp-nav-btn,
.ndp-btn-confirm,
.ndp-btn-text,
.ndp-day-cell,
.ndp-year-item,
.ndp-month-item {
    border-radius: 6px;
    letter-spacing: 0;
}

.pcm-field > .lg-control-select,
.pcm-field > .lg-control-date {
    align-self: end;
}

.sg-filter > label > .lg-control-select {
    min-width: 148px;
}

@media (max-width: 640px) {
    .lg-control-select-button,
    .lg-control-date {
        height: 44px;
    }

    .lg-control-menu {
        max-height: min(320px, calc(100vh - 20px));
    }

    .lg-control-option {
        min-height: 42px;
        font-size: 14px;
    }

    .sg-filter > label > .lg-control-select {
        min-width: 0;
    }
}
