
/* smart-date-time-picker */
smart-date-time-picker {
    width: var(--smart-date-time-picker-default-width);
    min-width: var(--smart-editor-addon-width);
    height: var(--smart-date-time-picker-default-height);
    min-height: var(--smart-editor-height);
}

    smart-date-time-picker.smart-element {
        overflow: visible;
    }

    smart-date-time-picker[hover] {
        border-color: var(--smart-ui-state-border-hover);
    }

.smart-date-time-picker .smart-ripple {
    background: var(--smart-background);
}

smart-date-time-picker > .smart-container,
.smart-date-time-picker.smart-container {
    display: flex;
    position: relative;
    align-items: center;
}



    smart-date-time-picker > .smart-container > input,
    .smart-date-time-picker.smart-container > input,
    .smart-date-time-picker .smart-spin-buttons-container,
    .smart-date-time-picker .smart-drop-down-button.smart-calendar-button {
        height: 100%;
    }

.smart-date-time-picker .smart-input.smart-date-time-input {
    width: 100%;
    border: none;
    background: inherit;
    padding: var(--smart-editor-label-padding);
    outline: none;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    text-align: inherit;
}

.smart-date-time-picker[disabled] .smart-input.smart-date-time-input {
    background-color: transparent;
    user-select: none;
}

.smart-date-time-picker > .smart-container > .smart-label,
.smart-date-time-picker > .smart-container > .smart-hint {
    display: none;
}

/*Spin and Calendar Button position*/
.smart-date-time-picker .smart-spin-buttons-container {
    display: none;
    width: var(--smart-editor-addon-width);
    border-radius: 0;
}

.smart-date-time-picker .smart-spin-button {
    --smart-button-padding: 0;
    display: block;
    width: 100%;
    height: 50%;
    border: none;
    min-height: 0;
    color: var(--smart-surface-color);
    background-color: var(--smart-surface);
    border: none;
    border-width: 0px;
    border-color: var(--smart-border);
    border-left-width: var(--smart-border-width);
    border-style: solid;
    font-weight: 500;
    border-radius: 0;
}

.smart-date-time-picker[spin-buttons-position="left"] .smart-spin-button {
    border-right-width: var(--smart-border-width);
    border-left-width: 0px;
}

    .smart-date-time-picker[spin-buttons-position="left"] .smart-spin-button:first-child {
        border-top-left-radius: var(--smart-border-top-left-radius);
    }

    .smart-date-time-picker[spin-buttons-position="left"] .smart-spin-button:last-child {
        border-bottom-left-radius: var(--smart-border-bottom-left-radius);
    }

.smart-date-time-picker .smart-spin-button:first-child {
    border-bottom-width: 1px;
}

.smart-date-time-picker .smart-spin-button[hover],
.smart-date-time-picker .smart-drop-down-button.smart-calendar-button[hover] {
    background-color: var(--smart-ui-state-hover);
    color: var(--smart-ui-state-color-hover);
    border-color: var(--smart-ui-state-border-hover);
}

.smart-date-time-picker .smart-spin-button[active],
.smart-date-time-picker .smart-drop-down-button.smart-calendar-button[active] {
    background-color: var(--smart-ui-state-active);
    color: var(--smart-ui-state-color-active);
    border-color: var(--smart-ui-state-border-active);
}

.smart-date-time-picker .smart-drop-down-button.smart-calendar-button {
    display: none;
    width: var(--smart-editor-addon-width);
    cursor: pointer;
    background-color: var(--smart-surface);
    color: var(--smart-surface-color);
    border-color: var(--smart-border);
    border-width: 0px;
    border-left-width: var(--smart-border-width);
    border-style: solid;
    border-top-right-radius: var(--smart-border-top-right-radius);
    border-bottom-right-radius: var(--smart-border-bottom-right-radius);
    overflow: hidden;
}

    .smart-date-time-picker .smart-drop-down-button.smart-calendar-button:after {
        width: 100%;
        height: 100%;
        font-family: var(--smart-font-family-icon);
        font-style: normal;
        font-weight: normal;
        color: inherit;
        font-size: var(--smart-arrow-size);
        display: inline-block;
        text-decoration: inherit;
        font-variant: normal;
        text-transform: none;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
    }

.smart-date-time-picker[readonly] .smart-drop-down-button.smart-calendar-button,
.smart-date-time-picker[disabled] .smart-drop-down-button.smart-calendar-button {
    cursor: default;
}

.smart-date-time-picker .smart-drop-down-button.smart-calendar-button:after,
.smart-drop-down.smart-date-time-drop-down .smart-today-element:after {
    content: var(--smart-icon-calendar);
}



.smart-date-time-picker .smart-drop-down-button.smart-calendar-button.time:after {
    content: var(--smart-icon-clock);
}

.smart-date-time-picker[spin-buttons] {
    min-width: calc(var(--smart-editor-addon-width));
}

    .smart-date-time-picker:not([spin-buttons]) .smart-input.smart-date-time-input,
    .smart-date-time-picker[spin-buttons]:not([spin-buttons-position="left"]) .smart-input.smart-date-time-input {
        border-top-left-radius: var(--smart-border-top-left-radius);
        border-bottom-left-radius: var(--smart-border-bottom-left-radius);
    }

    .smart-date-time-picker[spin-buttons] .smart-input.smart-date-time-input {
        width: calc(100% - var(--smart-editor-addon-width));
    }

    .smart-date-time-picker[spin-buttons] .smart-spin-buttons-container {
        display: block;
    }

.smart-date-time-picker[calendar-button] {
    min-width: var(--smart-editor-addon-width);
}

    .smart-date-time-picker[calendar-button] .smart-input.smart-date-time-input {
        width: calc(100% - var(--smart-editor-addon-width));
    }

    .smart-date-time-picker[calendar-button] .smart-drop-down-button.smart-calendar-button {
        display: block;
        position: relative;
    }

.smart-date-time-picker .smart-drop-down-button.smart-calendar-button.smart-drop-down-button-pressed {
    color: var(--smart-ui-state-color);
}

    .smart-date-time-picker .smart-drop-down-button.smart-calendar-button.smart-drop-down-button-pressed[hover]:after {
        color: var(--smart-ui-state-color-hover);
    }

.smart-date-time-picker[spin-buttons][calendar-button] {
    min-width: calc(var(--smart-editor-addon-width) + var(--smart-editor-addon-width));
}

    .smart-date-time-picker[spin-buttons][calendar-button] .smart-input.smart-date-time-input {
        width: calc(100% - var(--smart-editor-addon-width) - var(--smart-editor-addon-width));
    }

.smart-date-time-picker:not([spin-buttons]):not([calendar-button]) .smart-input.smart-date-time-input,
.smart-date-time-picker:not([spin-buttons])[calendar-button-position="left"] .smart-input.smart-date-time-input,
.smart-date-time-picker:not([calendar-button])[spin-buttons-position="left"] .smart-input.smart-date-time-input,
.smart-date-time-picker[calendar-button-position="left"][spin-buttons-position="left"] .smart-input.smart-date-time-input {
    border-top-right-radius: var(--smart-border-top-right-radius);
    border-bottom-right-radius: var(--smart-border-bottom-right-radius);
}

.smart-date-time-picker[calendar-button-position="left"] .smart-drop-down-button {
    border-left: none;
    border-right-width: var(--smart-border-width);
    border-top-left-radius: var(--smart-border-top-left-radius);
    border-bottom-left-radius: var(--smart-border-bottom-left-radius);
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.smart-date-time-picker[calendar-button][calendar-button-position="left"][spin-buttons][spin-buttons-position="left"] .smart-spin-button:first-child {
    border-top-left-radius: 0;
}

.smart-date-time-picker[calendar-button][calendar-button-position="left"][spin-buttons][spin-buttons-position="left"] .smart-spin-button:last-child {
    border-bottom-left-radius: 0;
}

.smart-date-time-picker:not([calendar-button])[spin-buttons]:not([spin-buttons-position="left"]) .smart-spin-button:first-child,
.smart-date-time-picker[calendar-button-position="left"][spin-buttons]:not([spin-buttons-position="left"]) .smart-spin-button:first-child {
    border-top-right-radius: var(--smart-border-top-right-radius);
}

.smart-date-time-picker:not([calendar-button])[spin-buttons]:not([spin-buttons-position="left"]) .smart-spin-button:last-child,
.smart-date-time-picker[calendar-button-position="left"][spin-buttons]:not([spin-buttons-position="left"]) .smart-spin-button:last-child {
    border-bottom-right-radius: var(--smart-border-bottom-right-radius);
}
/*End of Spin and Calendar button position*/


.smart-drop-down.smart-date-time-drop-down .smart-header,
.smart-drop-down.smart-date-time-drop-down .smart-footer {
    cursor: initial;
}

.smart-drop-down.smart-date-time-drop-down .smart-date-time-picker-footer {
    height: 100%;
}

.smart-drop-down.smart-date-time-drop-down .smart-date-time-picker-footer,
.smart-drop-down.smart-date-time-drop-down .smart-am-pm-element {
    width: 100%;
}

.smart-drop-down.smart-date-time-drop-down .smart-date-time-picker-footer,
.smart-drop-down.smart-date-time-drop-down .smart-footer-component,
.smart-drop-down.smart-date-time-drop-down .smart-footer-component-today {
    display: flex;
    padding: 1px;
}

.smart-drop-down.smart-date-time-drop-down .smart-footer-component-today {
    font-family: var(--smart-font-family-icon);
}

.smart-drop-down.smart-date-time-drop-down .smart-footer-component > input {
    outline: none;
    border: var(--smart-border-width) solid var(--smart-border);
    text-align: center;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    height: 100%;
}

.smart-drop-down.smart-date-time-drop-down .smart-footer-component-today {
    border: var(--smart-border-width) solid transparent;
}

.smart-drop-down.smart-date-time-drop-down .smart-footer-component > input:focus,
.smart-drop-down.smart-date-time-drop-down .smart-footer-component:focus {
    border-color: var(--smart-outline);
}

.smart-drop-down.smart-date-time-drop-down .smart-footer-component-hour smart-repeat-button,
.smart-drop-down.smart-date-time-drop-down .smart-footer-component-minute smart-repeat-button {
    border-radius: 0px;
    margin: 0px;
    margin-left: -1px;
    width: 100%;
    height: 50%;
}

    .smart-drop-down.smart-date-time-drop-down .smart-footer-component-hour smart-repeat-button:last-child,
    .smart-drop-down.smart-date-time-drop-down .smart-footer-component-minute smart-repeat-button:last-child {
        border-top-color: transparent;
    }

.smart-drop-down.smart-date-time-drop-down .smart-footer-component-hour button,
.smart-drop-down.smart-date-time-drop-down .smart-footer-component-minute button {
    border-radius: 0px;
    padding: 0px;
}

.smart-drop-down.smart-date-time-drop-down .smart-footer-component-hour,
.smart-drop-down.smart-date-time-drop-down .smart-footer-component-minute {
    width: 30%;
}

.smart-drop-down.smart-date-time-drop-down .smart-footer-component-ampm,
.smart-drop-down.smart-date-time-drop-down .smart-footer-component-today,
.smart-drop-down.smart-date-time-drop-down .smart-footer-component > span {
    width: 30%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.smart-drop-down.smart-date-time-drop-down .smart-hour-element,
.smart-drop-down.smart-date-time-drop-down .smart-minute-element {
    width: 60%;
}

.smart-drop-down.smart-date-time-drop-down .smart-footer-component-today {
    align-items: center;
    justify-content: center;
}

.smart-drop-down.smart-date-time-drop-down .smart-today-element {
    cursor: pointer;
    outline: none;
}

    .smart-drop-down.smart-date-time-drop-down .smart-today-element:focus {
        border-color: var(--smart-outline);
    }

.smart-drop-down.smart-date-time-drop-down .smart-drop-down-header {
    height: var(--smart-bar-height);
    width: 100%;
    display: flex;
    align-items: center;
}

    .smart-drop-down.smart-date-time-drop-down .smart-drop-down-header > div {
        width: 50%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        background-color: var(--smart-primary);
        color: var(--smart-primary-color);
        opacity: var(--smart-date-time-picker-header-opacity);
    }

        .smart-drop-down.smart-date-time-drop-down .smart-drop-down-header > div:focus {
            text-decoration: underline;
        }

    .smart-drop-down.smart-date-time-drop-down .smart-drop-down-header > .smart-selected {
        background-color: var(--smart-primary);
        border-color: var(--smart-primary);
        color: var(--smart-primary-color);
        opacity: var(--smart-date-time-picker-header-opacity-active);
    }

.smart-drop-down.smart-date-time-drop-down .smart-drop-down-content {
    width: 100%;
    height: calc(100% - var(--smart-bar-height));
}

    .smart-drop-down.smart-date-time-drop-down .smart-drop-down-content.partial {
        height: 100%;
    }

.smart-date-time-picker .smart-drop-down.smart-date-time-drop-down,
.smart-drop-down.smart-date-time-drop-down {
    padding: 0px !important;
}

    .smart-drop-down.smart-date-time-drop-down smart-calendar,
    .smart-drop-down.smart-date-time-drop-down smart-time-picker {
        border: none;
        width: 100%;
        height: 100%;
        min-width: 0;
        min-height: 0;
        border-radius: 0px;
    }

    .smart-drop-down.smart-date-time-drop-down smart-time-picker {
        min-width: initial;
    }

        .smart-drop-down.smart-date-time-drop-down smart-time-picker .smart-hour-minute-container {
            font-size: 40px;
        }

    .smart-drop-down.smart-date-time-drop-down[drop-down-display-mode="classic"] .smart-calendar-container,
    .smart-drop-down.smart-date-time-drop-down[drop-down-display-mode="timePicker"] .smart-calendar-container {
        height: 100%;
    }

.smart-date-time-picker .smart-hidden {
    display: none;
}


.smart-drop-down.smart-date-time-drop-down .smart-drop-down-header :focus,
.smart-drop-down.smart-date-time-drop-down .smart-footer-component-today:focus {
    outline: none;
}

smart-date-time-picker > .smart-container > .smart-content,
.smart-date-time-picker.smart-container > .smart-content {
    display: flex;
    height: 100%;
    width: 100%;
}


/* Microsoft Edge-specific fix */
.smart-drop-down.smart-date-time-drop-down.smart-visibility-hidden.not-in-view {
    left: -9999px;
    top: -9999px;
    transition: none;
}

/* --- Right-To-Left --- */

.smart-date-time-picker[right-to-left] .smart-input.smart-date-time-input,
.smart-date-time-picker[right-to-left] > .smart-container > .smart-label,
.smart-date-time-picker[right-to-left] .smart-hint {
    direction: rtl;
}

/* --- */
