/* jquery.simple-datetimepicker.css */
.simple-dtpicker {
    display: none;
    position: absolute;
    background: #fff;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    font-family: Gilroy, sans-serif;
    min-width: 320px;
    user-select: none;
}

.simple-dtpicker.active {
    display: block;
}

.dtpicker-header {
    background: #363635;
    position: relative;
    padding: 8px 40px;
}

.dtpicker-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.dtpicker-month-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.2s;
    /* flex: 1; */
}

.dtpicker-month-selector:hover {
    /* background: #f0f0f0; */
}

.dtpicker-month-selector .month-year {
    /* font-size: 16px; */
    font-weight: 700;
    color: #FFFFFF;
}

.dtpicker-month-selector .dtpicker-arrow {
    font-size: 12px;
    transition: 0.2s;
    font-size: 0;
    display: block;
    width: 8px;
    height: 8px;
    border-bottom: 1px solid #fff;
    border-left: 1px solid #fff;
    transform: rotate(-45deg);
    margin-bottom: 8px;
}

.dtpicker-month-selector .dtpicker-arrow.open {
    transform: rotate(135deg);
    margin-bottom: 1px;
}

.dtpicker-time-selector {
     color:#fff;
     text-align: center;
     white-space: nowrap;
     padding: 3px 30px 3px  10px;
     border: 1px solid #EAEAEA;
     border-radius: 6px;
     position: relative;
}

.dtpicker-time-selector:after  {
    content:'';
    transition: 0.2s;
    font-size: 0;
    display: block;
    width: 8px;
    height: 8px;
    border-bottom: 1px solid #fff;
    border-left: 1px solid #fff;
    transform: rotate(-45deg);
    margin-bottom: 8px;
    position: absolute;
    top: 0;
    right: 10px;
    bottom: 8px;
    margin: auto;
}

.dtpicker-time-selector.open:after  {
    transform:rotate(135deg); 
     bottom: 0px;
}
.dtpicker-time-selector:hover {
    /* background: #f0f0f0; */
}

.dtpicker-time-selector .time-label {
    font-size: 12px;
    font-weight: 400;
}

.dtpicker-month-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50px;
    right: 0;
    background: #fff;
    margin-top: 4px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1001;
    max-width: 140px;
    box-shadow: 0px 4px 4px 0px #00000040;
}

.dtpicker-month-dropdown.open {
    display: block;
}

.dtpicker-month-dropdown .month-option {
    /* padding: 10px 15px; */
    cursor: pointer;
    transition: 0.15s;
    font-size: 14px;
    color: #333;
    /* border-bottom: 1px solid #f0f0f0; */
    padding: 2px 10px 2px 35px;
    position: relative;
}

.dtpicker-month-dropdown .month-option:before {
        content: '';
    border: 1px solid #AAAAAA;
    display: block;
    width: 12px;
    height: 12px;
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    margin: auto;
    border-radius: 50%;
    background: #fff;
}
.dtpicker-month-dropdown .month-option:last-child {
    border-bottom: none;
}

.dtpicker-month-dropdown .month-option:hover {
    background: #f5f5f5;
}

.dtpicker-month-dropdown .month-option.active {
    background: #000;
    /* font-weight: 600; */
    color: #fff;
}

.dtpicker-time-dropdown {
    display: none;
    position: absolute;
    top: 87%;
    right: 43px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-top: 4px;
    max-height: 230px;
    overflow-y: auto;
    z-index: 1001;
    min-width: 125px;
    padding: 5px 0;
}

.dtpicker-time-dropdown.open {
    display: block;
}

.dtpicker-time-dropdown .time-item {
    padding: 1px 10px 1px 40px;
    /* cursor: pointer; */
    transition: 0.15s;
    font-size: 12px;
    color: #000;
    position: relative;
}
.dtpicker-time-dropdown .time-item:before {
    content:'';
    border: 1px solid #AAAAAA;
    display: block;
    width: 12px;
    height: 12px;
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    margin: auto;
    border-radius: 50%;
    background: #fff;
}
.dtpicker-time-dropdown .time-item.selected:before {
    /* background:#000; */
    border-color: transparent;
}

.dtpicker-time-dropdown .time-item:last-child {
    border-bottom: none;
}

.dtpicker-time-dropdown .time-item:hover {
    /* background: #f5f5f5; */
}

.dtpicker-time-dropdown .time-item.selected {
    background: #000;
    /* font-weight: 600; */
    color: #fff;
}

.dtpicker-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #000;
    background: #F4F4F4;
    padding: 17px 30px;
}

.dtpicker-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 12px;
    padding: 10px 30px 0;
}

.dtpicker-days span {
    text-align: center;
    padding: 6px 0;
    /* border-radius: 4px; */
    /* cursor: pointer; */
    font-size: 12px;
    transition: 0.15s;
    font-weight: 700;
    color: #000;
}

.dtpicker-days span:hover:not(.empty):not(.disabled) {
    background: #000;
    color: #fff;
}

.dtpicker-days span.empty {
    /* visibility: hidden; */
    /* cursor: default; */
}

.dtpicker-days span.selected {
    background: #000;
    color: #fff;
    font-weight: 600;
}

.dtpicker-days span.today {
    font-weight: 700;
    color: #1a73e8;
}

.dtpicker-days span.today.selected {
    color: #fff;
}

.dtpicker-days span.weekend {
    /* color: #d32f2f; */
}

.dtpicker-days span.weekend.selected {
    color: #fff;
}

.dtpicker-days span.disabled {
    color: #000;
    /* cursor: not-allowed; */
    opacity: 0.3;
}

.dtpicker-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

/* Скрытие футера через параметр */
.simple-dtpicker.no-footer .dtpicker-footer {
    display: none;
}

.dtpicker-footer button {
    padding: 5px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: 0.15s;
}

.dtpicker-footer .btn-clear {
    background: #f5f5f5;
    color: #555;
}

.dtpicker-footer .btn-clear:hover {
    background: #e0e0e0;
}

.dtpicker-footer .btn-ok {
    background: #1a73e8;
    color: #fff;
}

.dtpicker-footer .btn-ok:hover {
    background: #1557b0;
}