/**
 * Fax Queue Slideout Styles
 */

/* Fax Queue Slideout Panel */
#slideout_faxQueue {
    position: fixed;
    top: 0;
    right: -620px;
    width: 620px;
    height: 100%;
    background: #ffffff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    z-index: 9998;
    overflow-y: auto;
}

#slideout_faxQueue.slideout_faxQueue_open {
    right: 0;
}

/* Fax Queue Item */
.fax_queue_item {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s;
    cursor: pointer;
}

.fax_queue_item:hover {
    background-color: #f8f9fa;
}

.fax_queue_item_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.fax_queue_patient_name {
    font-weight: 600;
    font-size: 14px;
    color: #212529;
}

.fax_queue_time {
    font-size: 12px;
    color: #6c757d;
}

.fax_queue_item_details {
    font-size: 13px;
    color: #495057;
    margin-bottom: 6px;
}

.fax_queue_item_details div {
    margin-bottom: 4px;
}

.fax_queue_item_actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

/* Status Badges */
.fax_status_badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fax_status_queued {
    background-color: #fff3cd;
    color: #856404;
}

.fax_status_sending {
    background-color: #cfe2ff;
    color: #084298;
}

.fax_status_delivered {
    background-color: #d1e7dd;
    color: #0f5132;
}

.fax_status_failed {
    background-color: #f8d7da;
    color: #842029;
}

.fax_status_incoming {
    background-color: #e7d6f8;
    color: #5a2d82;
}

/* Action Buttons */
.fax_action_btn {
    padding: 5px 12px;
    font-size: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.fax_action_btn:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.fax_retry_btn {
    background-color: #0d6efd;
    color: white;
}

.fax_view_details_btn {
    background-color: #6c757d;
    color: white;
}

.fax_cancel_btn {
    background-color: #dc3545;
    color: white;
}

/* Filter Buttons */
.fax_filter_btn {
    transition: all 0.2s;
    opacity: 0.7;
}

.fax_filter_btn:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.fax_filter_btn.active {
    opacity: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Empty State */
.fax_queue_empty {
    padding: 40px 20px;
    text-align: center;
    color: #6c757d;
}

.fax_queue_empty_icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.fax_queue_empty_text {
    font-size: 14px;
}

/* Loading State */
.fax_queue_loading {
    padding: 20px;
    text-align: center;
    color: #6c757d;
}

.fax_queue_loading_spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #007bff;
    animation: fax_spinner 0.6s linear infinite;
}

@keyframes fax_spinner {
    to { transform: rotate(360deg); }
}

/* Expandable Details */
.fax_queue_item_expandable {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.fax_queue_item.expanded .fax_queue_item_expandable {
    max-height: 500px;
}

.fax_queue_item_full_details {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #slideout_faxQueue {
        width: 100%;
        right: -100%;
    }
}

/* Scrollbar styling */
#slideout_faxQueue_container::-webkit-scrollbar {
    width: 8px;
}

#slideout_faxQueue_container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#slideout_faxQueue_container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

#slideout_faxQueue_container::-webkit-scrollbar-thumb:hover {
    background: #555;
}
