#mpdatepicker-modal {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 99999;
    font-family: VazirCodeX, "Vazir Code", sans-serif;
    font-size: 11pt;
    display: none;
    align-content: center;
    justify-content: center;
    direction: rtl;
}
.mpdatepicker {
    background: no-repeat 3px;
    text-align: center;
    padding: 7px;
    padding-left: 25px;
    border: 1px solid silver;
    background-position-x: 5px;
    background-position-y: 2px;
    direction: rtl;
}
#mpdatepicker-block {
    font-family: VazirCodeX;
    direction: rtl;
    text-align: center;
    padding: 10px 0;
    border-radius: 4px 4px 0 0;
    background: #fff;
    min-height: 200px;
    margin: auto;
    width: 400px;
    box-shadow: 0 0 30px #444;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    max-width: 100%;
}
#mpdatepicker-block.static {
    position: static;
    margin: inherit;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    direction: rtl;
}
#mpdatepicker-block table {
    width: 95%;
    margin: auto;
    box-shadow: none;
}
#mpdatepicker-block table th {
    width: 14.28571%;
    text-align: center !important;
    padding: 7px;
    font-weight: 900;
}
#mpdatepicker-block table td {
    padding: 7px 3px;
    cursor: pointer;
    text-align: center !important;
    border: solid 3px transparent;
}
#mpdatepicker-block table td.mp-other-month {
    color: gray;
}
#mpdatepicker-block table td.selected {
    border: solid 2px #39f;
    border-radius: 3px;
}
#mpdatepicker-block table td.today {
    font-weight: 900;
    text-shadow: 0 0 3px #333;
}
#mpdatepicker-block table td:hover {
    background: hsl(var(--secondary));
}
.rotate {
    -webkit-transform: rotate(-90deg);
    -moz-transform: rotate(-90deg);
    -ms-transform: rotate(-90deg);
    -o-transform: rotate(-90deg);
}
.mpbtn {
    padding: 10px;
    cursor: pointer;
    font-family: arial;
    padding-bottom: 4px;
}
.mpbtn:hover {
    background: hsl(var(--secondary));
}
.mpfleft {
    float: left;
    font-size: 30px;
    padding-top: 0;
}
.mpfright {
    float: right;
    font-size: 30px;
    padding-top: 0;
}
.mpheader {
    margin: 5px auto;
}
.mp-picked {
    margin: 2px;
    border: 3px solid hsl(var(--primary)) !important;
    border-radius: 4px 4px 0 0;
}
.mp-today,
.mp-today-td {
    font-weight: 900;
    color: hsl(var(--primary));
    text-shadow: 0px 0px 2px #000;
}
.mpdatepicker {
    padding-left: calc(1.5em + 0.75rem);
    background-position: center left calc(0.375em + 0.1875rem);
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}
#mpmonth {
    display: inline-block;
    padding: 5px;
    font-weight: 700;
    position: relative;
    width: 25%;
    text-align: center;
}
#mpmonth:hover {
    background: hsl(var(--secondary));
}
#mpmonth ul {
    display: none;
    position: absolute;
    background: #fff;
    list-style: none;
    padding: 5px 0;
    bottom: -200px;
    right: -20px;
    border-radius: 4px;
    box-shadow: 1px 1px 7px #000;
}
@media (max-height: 1000px) {
    #mpmonth ul {
        width: 250px;
    }
    #mpmonth ul li {
        width: 47%;
        float: right;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
    }
}
#mpmonth ul li {
    padding: 5px;
    width: 120px;
    font-weight: 100;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}
#mpmonth ul li:hover {
    /* border-bottom: 2px solid #13a7c7; */
    background: hsl(var(--secondary));
}
#mpmonth span {
    display: block;
    text-align: center;
    cursor: pointer;
}
#mpyear {
    width: 25%;
    text-align: center;
    padding: 5px;
    display: inline-block;
    color: gray;
}
#mpyear input {
    width: 6em;
    text-align: center;
    padding: 5px;
    border: 0;
    outline: 0;
}
#mpyear input:focus {
    outline: #b1dcfb 3px solid;
}
.mp-footer {
    display: block;
    padding: 0 5%;
}
.mp-footer a {
    width: 30%;
    display: inline-block;
    padding: 7px;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    cursor: pointer;
}
.mp-footer a.mp-close:hover {
    background: hsl(var(--secondary));
}
.mp-footer a.mp-today:hover {
    background: hsl(var(--secondary));
}
.mp-footer a.mp-clear:hover {
    background: hsl(var(--secondary));
}
.mp-footer input {
    width: 3.3em;
    text-align: center;
}
.mptimepicker {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    direction: ltr;
}
.mptimepicker * {
    transition: 0.2s;
}
.mptimepicker > div {
    height: 85px;
    overflow: hidden;
    cursor: ns-resize;
    position: relative;
}
.mptimepicker .mp-holder {
    position: absolute;
    top: 2em;
    left: 0;
    right: 0;
    line-height: 1.706em;
}
.mp-select-item {
    color: #666;
}
.mp-select-item.active {
    color: #000;
    font-size: 19px !important;
    background: #00000033;
}
