/* DropDownList, DatePicker and Calendar popups. */
.yess-theme-host .k-dropdownlist,
.yess-theme-host .k-picker {
    min-height: var(--yess-control-height-md);
    border-color: var(--yess-input-border);
    border-radius: var(--yess-control-radius);
    background: var(--yess-input-background);
    color: var(--yess-input-foreground);
}

.yess-theme-host .k-dropdownlist:hover:not(.k-disabled),
.yess-theme-host .k-picker:hover:not(.k-disabled) {
    border-color: var(--yess-input-border-hover);
}

.yess-theme-host .k-dropdownlist.k-focus,
.yess-theme-host .k-picker.k-focus,
.yess-theme-host .k-dropdownlist:focus-within,
.yess-theme-host .k-picker:focus-within {
    border-color: var(--yess-input-border-focus);
    outline: var(--yess-control-focus-width) solid color-mix(in srgb, var(--yess-color-focus) 42%, transparent);
    outline-offset: var(--yess-control-focus-offset);
}

.yess-theme-host .k-picker .k-input-button,
.yess-theme-host .k-dropdownlist .k-input-button,
.yess-theme-host .k-dateinput .k-input-button {
    min-width: var(--yess-target-size-minimum);
    min-height: var(--yess-target-size-minimum);
    border-inline-start: 1px solid var(--yess-color-border);
    background: var(--yess-color-surface-subtle);
    color: var(--yess-color-text);
}

.yess-theme-host .k-picker .k-input-button:hover:not(.k-disabled),
.yess-theme-host .k-dropdownlist .k-input-button:hover:not(.k-disabled) {
    background: var(--yess-navigation-item-hover);
    color: var(--yess-color-primary);
}

.yess-theme-host .k-popup,
.yess-theme-host .k-animation-container .k-popup,
.yess-theme-host .k-list-container,
.yess-theme-host .k-calendar-container {
    border: var(--yess-control-border-width) solid var(--yess-popup-border);
    border-radius: var(--yess-radius-md);
    background: var(--yess-popup-background);
    color: var(--yess-popup-foreground);
    box-shadow: var(--yess-popup-shadow);
    overflow: hidden;
}

.yess-theme-host .k-calendar {
    border-color: var(--yess-popup-border);
    background: var(--yess-popup-background);
    color: var(--yess-popup-foreground);
}

.yess-theme-host .k-calendar .k-calendar-header,
.yess-theme-host .k-calendar .k-calendar-navigation,
.yess-theme-host .k-calendar .k-calendar-view {
    border-color: var(--yess-color-border);
    background: var(--yess-color-surface);
    color: var(--yess-color-text);
}

.yess-theme-host .k-calendar .k-calendar-header {
    min-height: var(--yess-control-height-lg);
    padding: var(--yess-space-2);
    background: var(--yess-color-surface-subtle);
}

.yess-theme-host .k-calendar .k-button,
.yess-theme-host .k-calendar .k-calendar-nav,
.yess-theme-host .k-calendar .k-calendar-title {
    min-width: var(--yess-target-size-minimum);
    min-height: var(--yess-target-size-minimum);
    border-radius: var(--yess-control-radius);
    background: transparent;
    color: var(--yess-color-text);
}

.yess-theme-host .k-calendar .k-button:hover:not(.k-disabled),
.yess-theme-host .k-calendar .k-calendar-nav:hover:not(.k-disabled),
.yess-theme-host .k-calendar .k-calendar-title:hover:not(.k-disabled) {
    background: var(--yess-navigation-item-hover);
    color: var(--yess-color-primary);
}

.yess-theme-host .k-calendar .k-calendar-th,
.yess-theme-host .k-calendar thead th {
    color: var(--yess-color-muted);
    font-weight: 700;
}

.yess-theme-host .k-calendar .k-calendar-td,
.yess-theme-host .k-calendar td {
    padding: 0.125rem;
    background: transparent;
    color: var(--yess-color-text);
}

.yess-theme-host .k-calendar .k-link,
.yess-theme-host .k-calendar .k-calendar-cell-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--yess-target-size-minimum);
    min-height: var(--yess-target-size-minimum);
    border-radius: 50%;
    color: inherit;
}

.yess-theme-host .k-calendar .k-calendar-td:hover .k-link,
.yess-theme-host .k-calendar td:hover .k-link,
.yess-theme-host .k-calendar .k-hover .k-link {
    background: var(--yess-popup-item-hover);
    color: var(--yess-color-text);
}

.yess-theme-host .k-calendar .k-selected .k-link,
.yess-theme-host .k-calendar .k-calendar-td.k-selected .k-link,
.yess-theme-host .k-calendar td.k-selected .k-link {
    background: var(--yess-selection-background);
    color: var(--yess-selection-foreground);
    font-weight: 700;
}

.yess-theme-host .k-calendar .k-today .k-link,
.yess-theme-host .k-calendar .k-calendar-td.k-today .k-link {
    outline: 2px solid var(--yess-color-information);
    outline-offset: -2px;
    font-weight: 700;
}

.yess-theme-host .k-calendar .k-other-month,
.yess-theme-host .k-calendar .k-out-of-range,
.yess-theme-host .k-calendar .k-disabled,
.yess-theme-host .k-calendar [aria-disabled="true"] {
    color: var(--yess-color-muted);
    opacity: var(--yess-control-disabled-opacity);
}

.yess-theme-host .k-calendar .k-link:focus-visible,
.yess-theme-host .k-calendar .k-focus .k-link,
.yess-theme-host .k-calendar .k-button:focus-visible {
    outline: var(--yess-control-focus-width) solid var(--yess-color-focus);
    outline-offset: var(--yess-control-focus-offset);
    box-shadow: none;
}

@media (forced-colors: active) {
    .yess-theme-host .k-popup,
    .yess-theme-host .k-calendar,
    .yess-theme-host .k-calendar .k-calendar-view {
        border-color: CanvasText;
        background: Canvas;
        color: CanvasText;
        forced-color-adjust: auto;
    }

    .yess-theme-host .k-calendar .k-selected .k-link,
    .yess-theme-host .k-list-item.k-selected {
        background: Highlight;
        color: HighlightText;
    }
}
