/* main calendar modal */
.calendar_controls {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.calendar_controls-button {
    font-size: 2em;
}

.calendar_work-orders-due {
    color: #e74c3c;
}

.calendar_work-orders-assembled {
    color: #3498db;
}

#calendar_month-title {
    width: 40%;
    text-align: center;
}

.custom_alert_modal {
    max-height: 400px;
    overflow-y: auto;
    width: 100%;
}

.custom_alert_modal table {
    border-collapse: collapse;
    width: 100%;
    font-size: 14px;
}

.custom_alert_modal-table-header-row {
    background-color: #f3f3f3;
}

.custom_alert_modal-table-header {
    border-bottom: 1px solid #ccc;
    padding: 6px;
    text-align: center;
}

.custom_alert_modal-table-rows {
    text-align: center;
}

.custom_alert_modal-table-cells {
    border-bottom: 1px solid #eee;
    padding: 6px;
}

.legend {
    display: flex;
    gap: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px; 
    font-size: 14px;
}

.legend-box {
    width: 14px;
    height: 14px;
    border-radius: 2px;
    display: inline-block;
}

.legend-box.due {
    background-color: #e74c3c;
}

.legend-box.assembled {
    background-color: #3498db;
}

.calendar_modal-footer {
    margin-top: 15px;
    padding: 19px 20px 20px;
    text-align: right;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blocked_message_container {
    display: flex;
    justify-content: space-between;
}

/* custom DayPilot Modal theme */
.lifesaver_background, .lifesaver_confirm_background {
    opacity: 0.5;
    background-color: rgb(0, 0, 0);
}

.lifesaver_main, .lifesaver_confirm_main {
    border-radius: 6px;
    /* we need this max-width to keep resize behavior working */
    max-width: 90%;
}

.lifesaver_inner, .lifesaver_confirm_inner {
}

.lifesaver_content, .lifesaver_confirm_content {
    padding: 20px;
}

.lifesaver_buttons, .lifesaver_confirm_buttons {
    /** .modal-footer **/
    margin-top: 15px;
    padding: 19px 20px 20px;
    text-align: right;
    border-top: 1px solid #e5e5e5;
    /* need to switch position of DayPilot confirm and cancel buttons*/
    display: flex;
    flex-direction: row-reverse;
    gap: 5px;
}

.lifesaver_ok, .lifesaver_confirm_cancel {
    /** .btn-default **/
    color: #ffffff;
    background-color: #95a5a6;
    border-color: #95a5a6;
}
.lifesaver_ok:hover, .lifesaver_confirm_cancel:hover {
    color: #ffffff;
    background-color: #7f9293;
    border-color: #74898a;
}

.lifesaver_confirm_ok {
    /** .btn-primary **/
    color: #ffffff;
    background-color: #2c3e50;
    border-color: #2c3e50;
}

.lifesaver_confirm_ok:hover {
    color: #ffffff;
    background-color: #1e2a36;
    border-color: #161f29;
}

.lifesaver_confirm_ok,
.lifesaver_confirm_cancel,
.lifesaver_ok {
    /** .btn **/
    display: inline-block;
    margin-bottom: 0;
    font-weight: normal;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    background-image: none;
    border: 1px solid transparent;
    white-space: nowrap;
    padding: 10px 15px;
    font-size: 15px;
    line-height: 1.42857143;
    border-radius: 4px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
/********************************************/

