.slabs_loader {
	width: 100%	;
	text-align: center;
}

#overview_time_weekly .panel-group
{
	height: 500px;
}


.select_advisor                {margin:0; padding:0; list-style:none; text-align:center;}
.select_advisor > li           {display:inline-block; margin:0 5px;}
.select_advisor > li > a       {background-color:#f2f2f2; border:#EEE 1px solid; display:block; color:#666; text-decoration:none; padding:5px;}
.select_advisor > li > a > .fa {color:#f2f2f2; float:left; margin-right:5px;}
.select_advisor > li > a span  {display:block; overflow:auto; text-align:left;}
.select_advisor > li > a:focus {background-color:#9accff; color:#FFF;}
.select_advisor > li.active > a{background-color:#9accff; color:#FFF;}

/* QR Code Authentication Modal Styling */
#qr-code-modal .modal-dialog {
    max-width: 450px;
    margin: 30px auto;
}

#qr-code-modal .modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 15px 20px;
}

#qr-code-modal .modal-title {
    font-weight: 600;
    color: #343a40;
    font-size: 18px;
}

#qr-code-modal .modal-body {
    padding: 30px 20px;
    background-color: #ffffff;
}

#qr-code-container {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#qr-code-loading {
    padding: 40px 0;
}

#qr-code-loading .fa-spinner {
    color: #007bff;
    margin-bottom: 15px;
}

#qr-code-loading p {
    color: #6c757d;
    font-size: 14px;
    margin: 10px 0 0 0;
}

#qr-code-display {
    width: 100%;
    text-align: center;
}

#qr-code-image {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 2px solid #e9ecef;
}

#qr-code-image img {
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#qr-code-modal .alert-info {
    background-color: #e7f3ff;
    border-color: #b8daff;
    color: #004085;
    margin: 20px 0;
    padding: 15px;
    border-radius: 6px;
}

#qr-code-modal .alert-info strong {
    font-weight: 600;
}

#qr-code-modal .alert-info ul {
    margin-bottom: 0;
    padding-left: 20px;
}

#qr-code-modal .alert-info li {
    margin-bottom: 5px;
    font-size: 13px;
}

#qr-code-status {
    margin-top: 15px;
}

#qr-code-timer {
    font-weight: bold;
    color: #dc3545;
    font-family: 'Courier New', monospace;
    font-size: 16px;
}

#qr-code-error .alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    margin: 20px 0;
    padding: 15px;
    border-radius: 6px;
}

#qr-code-modal .modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 15px 20px;
    justify-content: space-between;
}

#qr-code-modal .modal-footer .btn {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 4px;
    font-weight: 500;
}

#qr-code-modal .modal-footer .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #ffffff;
}

#qr-code-modal .modal-footer .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    color: #ffffff;
}

#qr-code-modal .modal-footer .btn:hover {
    transform: translateY(-1px);
    transition: all 0.2s ease-in-out;
}

/* Responsive design for smaller screens */
@media (max-width: 576px) {
    #qr-code-modal .modal-dialog {
        max-width: 95%;
        margin: 15px auto;
    }
    
    #qr-code-modal .modal-body {
        padding: 20px 15px;
    }
    
    #qr-code-image img {
        max-width: 200px;
    }
    
    #qr-code-modal .alert-info li {
        font-size: 12px;
    }
}

/* Animation for modal appearance */
#qr-code-modal.fade .modal-dialog {
    transform: translateY(-50px);
    transition: transform 0.3s ease-out;
}

#qr-code-modal.show .modal-dialog {
    transform: translateY(0);
}

/* Loading animation enhancement */
@keyframes qr-pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

#qr-code-loading {
    animation: qr-pulse 2s ease-in-out infinite;
}

/* Success state styling */
.qr-code-success {
    color: #28a745 !important;
}

.qr-code-success .fa-check-circle {
    color: #28a745;
    font-size: 24px;
    margin-bottom: 10px;
}

/* Hamburger menu enhancement for QR option */
.dropdown-menu li:last-child a {
    border-top: 1px solid #e9ecef;
    margin-top: 5px;
    padding-top: 10px;
    font-weight: 500;
    color: #007bff;
}

.dropdown-menu li:last-child a:hover {
    background-color: #f8f9fa;
    color: #0056b3;
}

/* SMS Chat Button Styling */
.open-sms-chat-btn {
    width: 50%;
    font-size: 14px;
    padding: 8px 16px;
}

/* SMS Chat Modal Styling */
#smsChatModal .modal-dialog {
    width: 500px;
}

#smsChatModal .modal-content {
    border-radius: 12px;
    overflow: hidden;
    height: 700px;
    display: flex;
    flex-direction: column;
}

.sms-chat-modal-content {
    position: relative;
}

/* Real-time Indicator */
.sms-realtime-indicator {
    position: absolute;
    top: 10px;
    right: 50px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(76, 175, 80, 0.9);
    color: white;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    animation: smsPulse 2s infinite;
}

@keyframes smsPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.sms-status-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: smsBlink 1s infinite;
}

@keyframes smsBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Chat Header */
.sms-chat-header {
    background: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%);
    color: white;
    padding: 15px 20px;
    border: none;
}

.sms-chat-header .modal-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.sms-chat-header .close {
    color: white;
    opacity: 0.8;
    font-size: 28px;
    text-shadow: none;
}

.sms-chat-header .close:hover {
    opacity: 1;
}

.sms-customer-phone {
    font-size: 13px;
    opacity: 0.9;
    margin-top: 2px;
}

/* Chat Messages Area */
.sms-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0,0,0,.02) 10px, rgba(0,0,0,.02) 20px);
    max-height: 450px;
}

.sms-message {
    display: flex;
    margin-bottom: 15px;
    animation: smsMessageSlide 0.3s ease;
}

@keyframes smsMessageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sms-message.customer {
    justify-content: flex-start;
}

.sms-message.advisor {
    justify-content: flex-end;
}

.sms-message-bubble {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
    word-wrap: break-word;
}

.sms-message.customer .sms-message-bubble {
    background: white;
    color: #333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.sms-message.advisor .sms-message-bubble {
    background: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%);
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.sms-message-text {
    margin: 0;
    line-height: 1.4;
    font-size: 15px;
}

.sms-message-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    font-size: 11px;
    opacity: 0.7;
}

.sms-message.customer .sms-message-meta {
    color: #666;
}

.sms-message.advisor .sms-message-meta {
    color: white;
    justify-content: flex-end;
}

.sms-message-time {
    font-weight: 500;
}

.sms-message-status {
    display: flex;
    align-items: center;
}

.sms-message-status i {
    font-size: 12px;
}

/* Date Divider */
.sms-date-divider {
    text-align: center;
    margin: 20px 0;
}

.sms-date-divider span {
    background: rgba(0,0,0,0.1);
    color: #666;
    padding: 5px 15px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Typing Indicator */
.sms-typing-indicator {
    display: none;
    padding: 12px 16px;
    background: white;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    max-width: 75px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.sms-typing-indicator.active {
    display: flex;
    align-items: center;
    gap: 4px;
    animation: smsMessageSlide 0.3s ease;
}

.sms-typing-dot {
    width: 8px;
    height: 8px;
    background: #999;
    border-radius: 50%;
    animation: smsTypingBounce 1.4s infinite;
}

.sms-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.sms-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes smsTypingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-8px); }
}

/* Chat Input Area */
.sms-chat-input-area {
    padding: 15px;
    background: white;
    border-top: 1px solid #e0e0e0;
}

.sms-templates-row {
    margin-bottom: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sms-template-btn {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 120px;
}

.sms-template-btn:hover {
    background: #f5f5f5;
    border-color: #2193b0;
}

.sms-input-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.sms-input-wrapper {
    flex: 1;
    position: relative;
}

.sms-input-field {
    width: 100%;
    padding: 12px 15px;
    padding-right: 50px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 15px;
    resize: none;
    transition: border-color 0.2s;
}

.sms-input-field:focus {
    outline: none;
    border-color: #2193b0;
}

.sms-char-counter {
    position: absolute;
    right: 15px;
    bottom: 12px;
    font-size: 11px;
    color: #999;
    font-weight: 600;
}

.sms-char-counter.warning {
    color: #ff9800;
}

.sms-char-counter.error {
    color: #f44336;
}

.sms-send-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%);
    color: white;
    cursor: pointer;
    font-size: 18px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(33, 147, 176, 0.4);
    padding: 0;
}

.sms-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(33, 147, 176, 0.6);
}

.sms-send-btn:active {
    transform: scale(0.95);
}

.sms-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: scale(1);
}

/* Scrollbar Styling */
.sms-chat-messages::-webkit-scrollbar {
    width: 6px;
}

.sms-chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sms-chat-messages::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.sms-chat-messages::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #smsChatModal .modal-dialog {
        width: 95%;
        margin: 10px auto;
    }

    #smsChatModal .modal-content {
        height: 90vh;
    }

    .sms-message-bubble {
        max-width: 85%;
    }

    .sms-template-btn {
        flex: 0 0 calc(50% - 4px);
        min-width: auto;
    }
}

/* Fix for missing slider-nav.png - make hamburger menu visible with pure CSS */
.simple-menu {
    background: none !important;
    position: relative;
    display: inline-block;
    width: 22px;
    height: 40px;
}

/* Create hamburger icon with pure CSS (3 horizontal lines) */
.simple-menu::before,
.simple-menu::after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 3px;
    background-color: #666;
    transition: background-color 0.2s;
}

.simple-menu::before {
    top: 10px;
    box-shadow: 0 8px 0 #666;
}

.simple-menu::after {
    bottom: 10px;
}

.simple-menu:hover::before,
.simple-menu:hover::after {
    background-color: #333;
}

.simple-menu:hover::before {
    box-shadow: 0 8px 0 #333;
}

/* Login Box Styling */
.LoginBox {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 20px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.LoginBox .form-control {
    max-width: 400px;
}

/* Page header link styling - make header links black */
.page-header h1 a,
.page-header h1 a:hover,
.page-header h1 a:visited {
    color: #333;
    text-decoration: none;
}

/* Appointment Page - Equal Height Sections */
/* Make Customer Details, Vehicle Info, and Scheduled Services boxes same height */

/* Vehicle Info Cards - Equal Height within carousel */
.appointment-page .customer_vehicle .well {
    min-height: 500px;
}

/* Ensure all panels have minimum consistent height */
.appointment-page #customer-appointment .panel-body.ajax-content,
.appointment-page #repair-appointment .panel-body.ajax-content {
    min-height: 500px;
}
