/* Custom Jalali Calendar Dark Theme */

div.calendar {
    position: absolute;
    z-index: 9999;
}

.calendar,
.calendar table {
    border: 1px solid #3a3f4b;
    font-size: 12px;
    color: #e0e0e0;
    cursor: default;
    background: #1e2230;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.calendar {
    border-color: #3a3f4b;
}

.calendar thead tr {
    background: #191C24;
    color: #fff;
}

.calendar thead .title {
    font-weight: bold;
    text-align: center;
    padding: 8px;
    background: #191C24;
    color: #fff;
    font-size: 14px;
}

.calendar thead .name {
    border-bottom: 1px solid #3a3f4b;
    padding: 6px;
    text-align: center;
    color: #6C7293;
}

.calendar thead .button {
    text-align: center;
    padding: 6px;
    background: #191C24;
    color: #6C7293;
    font-weight: bold;
    border-radius: 4px;
}

.calendar thead .hilite {
    background: #EB1616;
    border-bottom: 1px solid #3a3f4b;
    padding: 6px;
    color: #fff;
}

.calendar thead .active {
    background: #EB1616;
    color: #fff;
    padding: 7px 5px 4px 7px;
}

.calendar thead .daynames {
    background: #191C24;
}

.calendar tbody .day {
    font-family: Vazir, tahoma, sans-serif;
    width: 2.2em;
    color: #e0e0e0;
    text-align: center;
    padding: 6px;
}

.calendar tbody .day.othermonth {
    font-size: 85%;
    color: #555;
}

.calendar tbody .day.othermonth.oweekend {
    color: #666;
}

.calendar table .wn {
    padding: 6px;
    border-right: 1px solid #3a3f4b;
    background: #191C24;
    color: #6C7293;
}

.calendar tbody .rowhilite td,
.calendar tbody .rowhilite td.wn {
    background: #252a3a;
}

.calendar tbody td.today {
    font-weight: bold;
    color: #EB1616;
}

.calendar tbody td.hilite {
    background: #EB1616;
    padding: 5px 7px 5px 5px;
    border: none;
    border-radius: 4px;
    color: #fff;
}

.calendar tbody td.active {
    padding: 6px;
}

.calendar tbody td.weekend {
    color: #ff6b6b;
}

.calendar tbody td.selected {
    font-weight: bold;
    border: 1px solid #EB1616;
    padding: 5px 7px 5px 5px;
    background: #EB1616;
    color: #fff;
    border-radius: 4px;
}

.calendar tbody .disabled {
    color: #444;
}

.calendar tbody .emptycell {
    visibility: hidden;
}

.calendar tbody .emptyrow {
    display: none;
}

.calendar tfoot .footrow {
    text-align: center;
    background: #191C24;
    color: #fff;
    border-radius: 0 0 8px 8px;
}

.calendar tfoot .ttip {
    padding: 6px;
    background: #191C24;
    color: #6C7293;
}

.calendar tfoot .hilite {
    background: #EB1616;
    border: 1px solid #EB1616;
    color: #fff;
    padding: 5px;
}

.calendar tfoot .active {
    background: #c41212;
    padding: 6px 5px 3px 5px;
}

.calendar .combo {
    position: absolute;
    display: none;
    top: 0;
    left: 0;
    width: 5em;
    cursor: default;
    border: 1px solid #3a3f4b;
    background: #1e2230;
    color: #e0e0e0;
    z-index: 100;
    font-size: 90%;
    border-radius: 4px;
}

.calendar .combo .label {
    text-align: center;
    padding: 4px;
}

.calendar .combo .hilite {
    background: #EB1616;
    color: #fff;
}

.calendar .combo .active {
    background: #c41212;
    color: #fff;
}

.calendar td.time {
    border-top: 1px solid #3a3f4b;
    padding: 6px;
    text-align: center;
    background: #191C24;
    border-radius: 0 0 8px 8px;
}

.calendar td.time .hour,
.calendar td.time .minute,
.calendar td.time .ampm {
    padding: 2px 6px;
    font-weight: bold;
    background: #1e2230;
    color: #e0e0e0;
    border-radius: 4px;
}

.calendar td.time .hour,
.calendar td.time .minute {
    font-family: monospace;
}

.calendar td.time .ampm {
    text-align: center;
}

.calendar td.time .colon {
    padding: 2px 4px;
    font-weight: bold;
}

.calendar td.time span.hilite {
    background: #EB1616;
    color: #fff;
}

.calendar td.time span.active {
    background: #c41212;
    color: #fff;
}

.button {
    display: inline-block !important;
}
