/* Loading Overlay Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-overlay.show {
    display: flex;
}

.loading-content {
    text-align: center;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #e0e0e0;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4285F4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-text {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    margin-top: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Professional Table Loading State */
.table-loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
    transition: opacity 0.3s ease;
}

.table-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    z-index: 1;
    backdrop-filter: blur(2px);
}

.table-loading::before {
    content: '⏳';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    z-index: 2;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

/* Smooth table transitions */
.data-table {
    transition: all 0.3s ease;
}

.data-table tbody tr {
    animation: fadeInUp 0.3s ease forwards;
}

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

/* Patient Popup Styles */
.patient-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.patient-popup.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    animation: popupSlideIn 0.3s ease-out;
    border: 1px solid #f0f0f0;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .popup-content {
        width: 95%;
        max-height: 95vh;
        margin: 10px;
    }
    
    .popup-header {
        padding: 15px 20px;
    }
    
    .popup-header h2 {
        font-size: 20px;
    }
    
    .popup-body {
        padding: 1px 20px 20px 20px;
    }
    
    .patient-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .patient-info {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .patient-id-section,
    .patient-ncds-section {
        min-width: auto;
        flex: none;
        border-right: none;
        padding-right: 0;
        padding-left: 0;
    }
    
    .popup-content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .popup-content-fullwidth {
        gap: 15px;
    }
    
    .shap-section-fullwidth,
    .info-section-fullwidth {
        padding: 20px;
    }
    
    .shap-section-fullwidth h3,
    .info-section-fullwidth h3 {
        font-size: 14px;
    }
    
    .info-section-fullwidth p {
        font-size: 14px;
    }
    
    .shap-grid {
        grid-template-columns: 1fr;
    }
    
    .shap-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 25px 30px;
    border-bottom: 1px solid #e8e8e8;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px 15px 0 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.popup-header h2 {
    margin: 0;
    color: #1a1a1a;
    font-size: 20px;
    font-weight: 700;
}

.patient-info {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.patient-id-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    min-width: 180px;
    padding-right: 15px;
    border-right: 5px solid #e2e8f0;
}

.patient-id-label {
    color: #333;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    white-space: nowrap;
}

.patient-id-number {
    color: #333;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.patient-status-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    min-width: 180px;
    padding-right: 15px;
    border-right: 5px solid #e2e8f0;
}

.status-label {
    color: #333;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-badge.follow-up {
    background: #ffe6e6;
    color: #d32f2f;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: inline-block;
    width: fit-content;
}

.status-badge.no-action {
    background: #e3f2fd;
    color: #1976d2;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: inline-block;
    width: fit-content;
}

.close-popup {
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    font-weight: 300;
}

.close-popup:hover {
    background: #e9ecef;
    color: #333;
    border-color: #dee2e6;
    transform: scale(1.05);
}

.popup-body {
    padding: 1px 20px 20px 20px;
}

.popup-content-fullwidth {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 15px;
}

.popup-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.left-column, .right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Full-width section styling */
.shap-section-fullwidth {
    background: #fafafa;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.shap-section-fullwidth h3 {
    color: #1e293b;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shap-section-fullwidth hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    margin: 0 0 10px 0;
    border-radius: 1px;
}

.info-section-fullwidth {
    background: #fafafa;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.info-section-fullwidth:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.info-section-fullwidth h3 {
    color: #1e293b;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.info-section-fullwidth hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    margin: 0 0 10px 0;
    border-radius: 1px;
}

.info-section-fullwidth p {
    text-align: left !important;
    transition: all 0.2s ease !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    letter-spacing: 0.2px !important;
}

.info-section-fullwidth p:hover {
    background: #f8f9fa !important;
    padding-left: 8px !important;
    border-left: 3px solid #3498db !important;
    margin-left: -8px !important;
    border-radius: 4px !important;
}

.info-section-fullwidth p:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
}

/* Make question response p elements match SHAP content div styling */
.info-section-fullwidth p {
    background: #fafafa !important;
    border-radius: 8px !important;
    padding: 24px !important;
    margin: 0 !important;
    border-bottom: none !important;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    color: #2c3e50 !important;
    line-height: 1.8 !important;
    font-size: 15px !important;
    font-weight: normal !important;
}

.status-badge.review {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

/* NCDs Section Styling */
.patient-ncds-section {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    min-width: 180px;
    padding-left: 15px;
}

.ncds-label {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ncds-badge {
    background: linear-gradient(135deg, #6b7280, #9ca3af);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
    border: 2px solid #9ca3af;
    animation: pulse-ncds 2s infinite;
}

.ncds-badge.has-ncds {
    background: linear-gradient(135deg, #6b7280, #9ca3af);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.4);
    border: 2px solid #9ca3af;
    animation: pulse-ncds 2s infinite;
}

.ncds-badge.no-ncds {
    background: linear-gradient(135deg, #6b7280, #9ca3af);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
    border: 2px solid #9ca3af;
}

@keyframes pulse-ncds {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(107, 114, 128, 0.5);
    }
}

@keyframes pulse-ncds-alert {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 8px 20px rgba(220, 38, 38, 0.6);
    }
}



.info-section {
    margin-bottom: 0;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.info-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-color: #4285F4;
}

.info-section h3 {
    margin: 0 0 15px 0;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.info-section h3 i {
    display: none;
}

.info-section p {
    margin: 0;
    color: #34495e;
    line-height: 1.8;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.shap-section {
    margin-bottom: 0;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.shap-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-color: #1976d2;
}

.shap-section::before {
    display: none;
}

.shap-section h3 {
    margin: 0 0 20px 0;
    color: #1a1a1a;
    font-size: 18px;
    font-weight: 700;
}

.shap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.shap-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 18px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
    cursor: pointer;
}

.shap-item:hover {
    background: #ffffff;
    border-color: #1976d2;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.15);
    transform: translateY(-1px);
}

.shap-label {
    font-weight: 600;
    color: #4a4a4a;
    font-size: 13px;
}

.shap-value {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 14px;
}

.risk-assessment {
    padding: 20px;
    background: #fff5f5;
    border-radius: 12px;
    border: 1px solid #ffebee;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.risk-assessment:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 235, 238, 0.3);
    background: #fff8f8;
}

.risk-assessment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #d32f2f;
}

.risk-assessment h3 {
    margin: 0 0 15px 0;
    color: #1a1a1a;
    font-size: 18px;
    font-weight: 700;
}

.risk-assessment h3 i {
    display: none;
}

.risk-assessment p {
    margin: 0 0 20px 0;
    color: #4a4a4a;
    line-height: 1.6;
    font-size: 14px;
    font-weight: 500;
}

.risk-progress {
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-container {
    flex: 1;
    height: 24px;
    background: #ffebee;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #ffcdd2;
}

.progress-bar-risk {
    height: 100%;
    background: linear-gradient(90deg, #d32f2f, #f44336, #ff5722);
    border-radius: 12px;
    transition: width 0.8s ease;
    box-shadow: 0 2px 4px rgba(211, 47, 47, 0.3);
    position: relative;
}

.progress-bar-risk::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.risk-change {
    font-weight: 700;
    color: #d32f2f;
    font-size: 14px;
    white-space: nowrap;
}

.dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-left: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 2px solid #ffffff;
}

.dot.red {
    background-color: #d32f2f;
    box-shadow: 0 2px 4px rgba(211, 47, 47, 0.3);
}

.dot.yellow {
    background-color: #fbc02d;
    box-shadow: 0 2px 4px rgba(251, 192, 45, 0.3);
}

.dot.green {
    background-color: #43a047;
    box-shadow: 0 2px 4px rgba(67, 160, 71, 0.3);
}

.dot.gray {
    background-color: #9e9e9e;
    box-shadow: 0 2px 4px rgba(158, 158, 158, 0.3);
}

/* Professional Status Cell Styling */
.status-cell {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 12px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.status-cell::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.status-cell:hover::before {
    left: 100%;
}

.status-cell:hover {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.05) 0%, rgba(66, 133, 244, 0.1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.2);
}

.status-cell .badge {
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
}

.badge.red {
    background-color: #d32f2f;
}

.badge.blue {
    background-color: #1976d2;
}

.badge.green {
    background-color: #388e3c;
}

.status-cell .badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.status-cell .badge.red {
    background: #ffebee;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
}

.status-cell .badge.blue {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

#map { 
        display: flex;
    flex: 1;
    }
#map-key {
    position: absolute;
    top: 100px;
    right: 35px;
    background: #fff;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #DADCE0;
    font-family: Roboto, "sans-serif";
}

#map-key h4 {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
}

#map-key ul {
    list-style: none;
    padding: 0;
    margin: 5px 0 0;
}

#map-key li {
    display: flex;
    align-items: center;
    font-size: 12px;
    margin-bottom: 5px;
}

.legend-line {
    width: 30px;  /* Line width */
    height: 3px;  /* Line thickness */
    display: inline-block;
    margin-right: 8px;
    border-radius: 2px;
}

.container-3-1 {
    border-radius: 25px;
    margin: 20px;
    overflow: hidden;
    border: 1px solid #DADCE0;
}

::-webkit-scrollbar {
    width:4px;
}
 
::-webkit-scrollbar-track {
    border-radius: 10px;
    background: #e7e7e7;
}
 
::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: silver;

}

.main-user-details {
    width: 100px;
}

#fiter-data {
    min-height: 100%;
    overflow-y: auto;
    /* padding: 10px; */
    width: 100%;
    background: transparent;
    display: none;
}

.arrow-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: #050708;
    color: white;
    font-size: 14px;
    font-weight: bold;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s;
}

.arrow-button i {
    transition: transform 0.2s;
}

.arrow-button:hover {
    background-color: #050708;
    transform: scale(1.05);
}

.arrow-button:hover i {
    transform: translateX(3px);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
    /* box-sizing: border-box; */
}


.main-contaner {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    height: 100vh;
    background-color: #fff;
    border-style: none;
    border-width: 0.01px;
    border-color: gray;

}

.container-1,
.container-2,
.container-3 {
    height: 100vh;
}

.container-1 {
    display: flex;
    padding: 4px;
    width: 94px;
    background-color: #FFF;
    padding: var(--16, 16px);
    flex-direction: column;
    align-items: center;
    gap: var(--8, 8px);
    flex-shrink: 0;
    height:100vh;
}

.container-2 {
    display: flex;
    flex-direction: column;
    width: 0px;
    /* justify-content: space-between; */
    align-items: center;
    gap: var(--8, 8px);
    padding: var(--16, 16px);
    flex-shrink: 0;
    border-right: 0.5px solid #FFF;
    background: #F0F0F0;
    height: 100vh;
    overflow: hidden;
}

.container-3 {
    display: flex;
    flex-direction: column;
    padding: 4px;
    flex: 1;
    background-color: #fff;
    position: relative;
}

.container-1-1 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    height: auto !important;
    padding: 3px;
    border-style: none;
    height: 100vh;
}

.divider-line-full {
    width: 100%;
    height: 4px;
    flex-shrink: 0;
    border-radius: 8px;
    background: #FFF;


}

.divider-line {

    width: 56px;
    height: 2px;
    flex-shrink: 0;
    border-radius: 8px;
    background: var(--Grey-200, #DADCE0);
}

.container-1-2 {
    display: flex;
    flex-direction: column;
    flex: 1;
    border-style: none;
    width: 100%;


}

.container-1-3 {
    width: 100%;
    height: 200px;
    padding: 3px;
    border-style: none;


}

.kasha-icon {
    width: 60px;
    height: auto;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.div-dashbord {
    display: flex;
    margin: 10px;
    justify-content: center;
    cursor: pointer;
}

.dashboard-icon {}



.deliver-vehicle-icon {}


.overview-icon {}

.union {
    width: 18px;
    fill: #7F7F7F;
    height: 24px;
}

.chat-icon {}


.combine-icons {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    cursor: pointer;
}

.setting-icon {}

.help-icon {}

.kasha-icon {
    cursor: pointer;
}

.ttr-title {
    color: #050708;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0.08px;
}

.ttr-title-delivery {
    display: flex;
    flex-direction: row;
    color: #050708;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    line-height: normal;
    letter-spacing: 0.08px;
    font-size: 14px;
}



.search-input {
    color: var(--Grey-400, #71757A);
    font-family: 'Roboto', sans-serif;
    font-size: 12px; /* Added to match other filters */
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.13px;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 180px; /* Increased from 150px */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-input:focus {
    color: var(--Grey-400, #71757A);
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.13px;
    width: 100%;
    border: none;
    height: 100%;
    outline: none;
}

.filter-div {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 0px;
    width: 330px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 10px;
    border: 0.6px solid #DADCE0;
    background: #FFF;
    padding: 5px;
}

.filter-section {
    display: flex;
    /* gap: 15px; */
    gap: 15px;
    align-items: center;
    background: #F9F9F9;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    justify-content: space-between; /* or use flex-start for left alignment */
    width: 100%;
}

.filter-group {
    display: flex;
    flex-direction: column;    
    align-items: center;
    text-align: center;
}


.filter-group label {
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 5px;
}

select, input {
    width: 100px;
    padding: 4px;
    font-size: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.reset-button {
    background-color: transparent;
    color: red;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
    align-self: center;
}


.mask {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 300px;
    flex-shrink: 0;
    border-radius: 14px;
    border: 1px solid #D1D1D1;
    background: #FFF;
    box-shadow: 6px 6px 54px 0px rgba(0, 0, 0, 0.05);
    padding: 13px;
}


.arrow_forward {
    display: flex;
    width: 200px;
    height: 40px;
    padding: 9px 10px 9px 8px;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    border-radius: var(--Max, 99999px);
    background: #050708;
    /* Main button shadow */
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05), 0px 1px 10px 0px rgba(0, 0, 0, 0.15);
    color: #FFF;
    text-align: center;
    font-family: Roboto;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.mask-1 {
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: auto;
    flex-shrink: 0;
    border-radius: 14px 14px 0px 0px;
    background: #F9F9F9;
}

.mask-3 {
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: auto;
    flex-shrink: 0;
    border-radius: 14px 14px 0px 0px;
    background: transparent;
}

.mask-2 {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;

}

.mask-1 {}

.mask-1-1,
.box {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    padding: 5px;
    font-family: Roboto;
    font-weight: 700;
}

.mask-1-2,
.estimated-time-div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5px;
    
}

.delivery-address-div {
    text-align: end;
    text-transform: capitalize !important;
}

.delivery-address-div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5px;
}

#delivery-town {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 30ch;
    display: inline-block;
    cursor: pointer;
}

#delivery-town:hover {
    overflow: visible;  
    white-space: normal; 
    background-color: #fff; 
}

.mask-1-2>button {
    display: flex;
    width: auto;
    height: 25px;
    padding: 9px 13px 9px 8px;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    border-radius: var(--Max, 99999px);
    background: rgba(255, 178, 0, 0.85);
    /* Main button shadow */
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05), 0px 1px 10px 0px rgba(0, 0, 0, 0.15);
    color: #FFF;
    font-family: Roboto;
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    border-style: none;
    float: right;

}

.mask-2-1,
.mask-2-2,
.mask-2-3 {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    border-style: none;
    border-width: 0.3px;
    padding: 5px;
}

.mask-2-2 {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 5px;
}

.status-icons {
    display: flex;
    width: 20px;
    height: 20px;
    justify-content: center;
    align-items: center;
    padding: 0px;
    gap: 0px;
    margin: 0px;
}

.prgress-bar {
    flex: 1;
    height: 2px;
    flex-shrink: 0;
    background-color: #34A853;

}

#start-progress {}

.in-progress {
    border-style: dashed;
    border-color: #DADCE0;
    background-color: transparent;
    border-width: 0.3px;
}

.mask-2-1 {
    justify-content: space-between;
}

.right-label,
.right-values-bolder,
.right-values {
    display: flex;
    justify-content: flex-end;
}

.label {
    color: #7F7F7F;
    font-family: 'Roboto', sans-serif;
    font-size: 10px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    /* 200% */

}

.values {
    color: #202224;
    font-family: 'Roboto', sans-serif;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    line-height: 20px;
    /* 200% */

}

.right-values-bolder {
    color: #202224;
    text-align: right;
    font-family: 'Roboto', sans-serif;
    font-size: 32px;
    font-style: normal;
    font-weight: 900;
    line-height: 20px;
}

.time-indicator {
    font-family: Roboto;
    font-style: normal;
    font-weight: 400;
    font-size: 10px;
    /* Slightly larger for better readability */
    position: relative;
    bottom: -5px;
    /* Moves it up */
    margin-left: 3px;
    /* Adds spacing */
}

.delivery-adress {
    color: #7F7F7F;
    font-family: Roboto;
    font-size: 10px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    /* 200% */
}

.user-info {
    display: flex;
    flex-direction: row;
    flex: 1;
    padding-top: 10px;
}

.user-name {
    color: #202224;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    line-height: 20px;
}

.user-recipient {
    color: #7F7F7F;
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    font-style: normal;
    font-weight: 500;


}

.coms-icons {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 0;
    display: flex;
    justify-content: end;
    flex: 1;    
}

hr {
    border: none;
    height: 2px;
    background-color: whitesmoke;
    border-radius: 10px;
}


.box {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    flex-shrink: 0;
    gap: 0px;
    border-radius: 14px;
    border: 1px solid #E4E4E4;
    background: #FFF;
    box-shadow: 6px 6px 54px 0px rgba(0, 0, 0, 0.05);
    margin-top: 10px;
}

.title-1 {
    color: #767676;
    font-family: Roboto;
}

.btn-dark>button {
    color: #71757A;
}

.padding-remover {
    padding: 0px;
    margin: 0px;
}


.container-3 {
    display: flex;
    flex-direction: column;
}

.container-3-2 {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 0px;
    /* padding: 0px 30px 30px 30px; */
}

.delivery-details-1,
.delivery-details-2 {
    display: flex;
    flex: 1;
    height: 400px;
}

.delivery-details-2 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

.shipping-address {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 equal columns */
    grid-template-rows: repeat(2, 1fr);
    /* 2 equal rows */
    border-radius: 20px;
    border-style: solid;
    border-width: 0.5px;
    border-color: #DADCE0;
    background: #FBFBFB;
    padding: 25px;
}

.deliver-price,
.delivery-category {
    border-right-style: solid;
    border-right-color: rgba(222, 222, 222, 0.42);
    border-right-width: 2px;
}

.delivery-category,
.qnty-weight {
    border-top-style: solid;
    border-top-color: rgba(222, 222, 222, 0.42);
    border-top-width: 2px;
}

.driver-info {
    color: #050708;
    font-family: Inter;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    border-radius: 30px;
    border: 1px solid #DADCE0;
    background: #FBFBFB;
    padding: 25px;
}

.truck-value {
    color: #050708;
    font-family: Inter;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.driver-info-inner-div {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: self-end;

}

.driver-div {
    display: flex;
    justify-content: flex-start;
    flex: 1;
}

.driver-information {
    /* display: flex; */
    justify-content: space-evenly;

}

.overall-track {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.delivery-details-1 {
    display: flex;
    flex-direction: column;
    gap: 3px;
    border-radius: 30px;
    border: 1px solid #DADCE0;
    background: #FBFBFB;
    margin-right: 31px;
}

.route-1 {
    display: flex;
    flex-direction: row;
}

.route-2 {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    gap: 0px;
    align-items: center;
    padding: 10px;
    color: #050708;
    text-align: center;
    font-family: Inter;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.mid-div {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex: 1;
}

.route-title {
    display: flex;
    padding: 20px;
    color: #000;
    font-family: Roboto;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;

}

.time-font-1-1 {
    display: flex;
    justify-content: flex-start;
    flex: 1;
    color: #7F7F7F;
    font-family: Inter;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.time-font-1-2 {
    display: flex;
    flex: 1;
    color: #7F7F7F;
    font-family: Inter;
    font-size: 13px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
}

.time-font-1 {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.divider {
    display: flex;
    justify-content: flex-start;
    background: transparent;
    border-style: dashed;
    border-width: 2px;
    height: 100%;
    width: 3px;
    border-color: #34A853;
    margin-left: 16.5px;
    margin-right: 16.5px;

}

.container-mid {
    display: flex;
    flex-direction: row;
}

.truck-action,
.month-time {
    display: flex;
    flex: 1;
}

.mask-1-1-2>button {
    cursor: pointer;
    background: transparent;
    border-style: none;
    color: #000;
    font-family: Roboto;
    font-weight: 900;
}

.user-icon-img {
    width: 40px;
}

button#orderNumber {
    color: #202224;
    font-family: Roboto;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    line-height: 20px;
}

/* Chat Icon - Circular with Spacing */
.msg-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    border-radius: 50%;
    background-color: transparent;
}

/* Phone Icon - Black Background with White Icon */
.whatsapp-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: transparent; /* Black background */
    color: white; /* White icon */
}

/* Vertical Steps Style */
.steps-vertical {
    max-width: 500px;
    margin: 0px 25px 0px 20px;
    padding: 0;
}

.step-vertical {
    display: flex;
    position: relative;
    padding: 1rem 0;
}

.step-details{
    font-size: 9pt;
    color: #6c757d;
}
.step-vertical:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 16px;
    top: 48px;
    height: 100%;
    bottom: 0;
    width: 2px;
    background: #e9ecef;
}

.step-vertical-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: white;
    border: 2px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 20px;
    color: #6c757d;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.step-vertical-content {
    padding-top: 0;
}

.step-vertical-content h4{
    color: #050708;
    font-size: 11pt !important;
}

.step-vertical.active .step-vertical-icon {
    background: #4361ee;
    border-color: #4361ee;
    color: white;
    box-shadow: 0 0 0 5px rgba(67, 97, 238, 0.2);
}

.step-vertical.complete .step-vertical-icon {
    background: #2ecc71;
    border-color: #2ecc71;
    color: white;
}

i.bi.bi-circle-fill {
    font-size: 10px;
}


#loader{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color:#fff;
    display: flex;
    flex-direction: column;
    
    font-size: 2vw; /* Scales text with screen size */
    font-weight: bold;
    z-index: 1000;
    display: none; /* Initially hidden */
    font-style: oblique;
    gap: 0px;
}

/* Van Animation */
@keyframes moveVan {
    0% { transform: translateX(-20vw) scale(0.8); opacity: 1; }
    80% { transform: translateX(30vw) scale(0.8); opacity: 1; }
    100% { transform: translateX(30vw) scale(0.8); opacity: 0; } /* Smooth fade-out */
}

.van {
    animation: moveVan 3s linear infinite;
}

/* Responsive Scaling */
#svg {
    width: 30vw; /* Scale van width based on viewport */
    height: auto; /* Maintain aspect ratio */
}

/* Smaller screens: Reduce van size */
@media (max-width: 600px) {
    svg {
        width: 50vw; /* Increase width for smaller screens */
    }
}

/* Blinking Text Effect */
@keyframes blinkText {
    0% { color: yellow; }
    33% { color: black; }
    66% { color:#E2156A; }
    100% { color: yellow; }
}

.blink {
    animation: blinkText 1s infinite;
}


     .alert-box {
            position: absolute;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            width: 350px;
            padding: 15px;
            border-radius: 8px;
            font-family: Arial, sans-serif;
            color: white;
            font-size: 13px;
            text-align: left;
            display: none;
            box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
            animation: fadeIn 0.3s ease-in-out;
            z-index: 1000;
        }

        /* Error Style */
        .error {
            background: #d9534f;
        }

        /* Info Style */
        .info {
            background: #5bc0de;
        }

        /* Fade In & Out Animation */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
            to { opacity: 1; transform: translateX(-50%) translateY(0); }
        }

        @keyframes fadeOut {
            from { opacity: 1; transform: translateX(-50%) translateY(0); }
            to { opacity: 0; transform: translateX(-50%) translateY(-10px); }
        }

        /* Close Button */
        .close-btn {
            background: none;
            border: none;
            color: white;
            font-weight: bold;
            float: right;
            cursor: pointer;
            font-size: 20px;
            line-height: 1;
        }

        .close-btn:hover {
            color: #f1f1f1;
        }

        .common-box{
            display: flex;
            flex-direction: column;
            gap: 15px;
            align-items: center;
            background: #F9F9F9;
            padding: 15px;
            border-radius: 10px;
            box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
            justify-content: space-between;
            width: auto;
            margin:5px;

        }

        .msg-p{
            font-size: 11px;
            font-weight: bold;
            margin-bottom: 5px;
            text-align: center; 
            color: #5bc0de;
        }

            a:hover {
        background: #003d82; /* Darker shade for hover */
        transform: scale(1.05); /* Slight enlargement */
}

.top-header{
    display: flex;
    flex-direction: row;
}

.filter-data-div{
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;

}


.inter-div{
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fff;
    height: 700px;
    margin-bottom: 20px;
    border-radius: 20px;
    padding: 10px;
}

.horizontal-divider{
    width:2px; height:24px; background-color:#d3d3d3;
    margin-left: 4px;
    margin-right: 4px;
}
.grayLine{
    background-color:#d3d3d3;
}
.men-title
{
    display: flex;
    flex-direction: row;
    top: 50%; left: 50%;
}
.men-title > h2{
    display: flex;
    align-items: center;
    justify-content: center; /* horizontally center */
    font-size: 12px;
}

#chart-container,#chart-container1 {
    display: flex;
    flex-direction: row;
    margin: 0px;
    width: 150px;
    cursor: pointer;
    justify-items: center;
    align-items: center;
}

.legend {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    font-family: Arial, sans-serif;
    color: #555;
}

    .legend-item {
      display: flex;
      align-items: center;
      margin: 5px 0;
      font-size: 12px;
      width: 150px;
    }

    .legend-color {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      margin-right: 8px;
    }
    #riskChart, #riskChart1{
        margin: 20px;
    }


    .risk-card {
  font-family: sans-serif;
  width: 300px;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #ddd;
}

.risk-card h3 {
  margin-top: 0;
  font-size: 16px;
  font-weight: 600;
}

.filter-group {
  margin: 16px 0;
}

.filter-group label {
  font-size: 12px;
  font-weight: bold;
  display: block;
  margin-bottom: 8px;
  color: #444;
}

.checkbox-row {
  display: flex;
  gap: 12px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.checkbox input[type="checkbox"] {
  accent-color: #2563eb;
  width: 16px;
  height: 16px;
}

.chart {
  display: flex;
  justify-content: space-between;
  align-items: end;
  height: 120px;
  background: #f9f9f9;
  border-radius: 10px;
  padding: 0 10px;
  margin: 20px 0;
}

.bar {
  width: 40px;
  border-radius: 6px 6px 0 0;
}

.bar.red {
  background-color: #ef4444;
}

.bar.yellow {
  background-color: #facc15;
}

.bar.green {
  background-color: #22c55e;
}
.legend-2{
    display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #333;
}


.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}

.dot.red {
  background-color: #ef4444;
}

.dot.yellow {
  background-color: #facc15;
}

.dot.green {
  background-color: #22c55e;
}

.analytics-panel {
  font-family: sans-serif;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.08);
  width: 100%;
  height: 99%;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 14px;
}

.time {
  font-weight: 900;
  font-family: Roboto;
  font-size: 32px;
}

/* Standardized filter bar container */
.filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
    border: 1px solid rgba(113, 117, 122, 0.34);
    border-radius: 20px;
    padding: 10px 20px;
}

/* Standardized inner filter items */
.inner-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 36px;
    padding: 0 20px;
    border-right: 1px solid rgba(213, 213, 213, 1);
    text-align: center;
}

/* Remove border from last filter */
.inner-filter:last-child {
    border-right: none;
}

/* Standardized search input */
.search-input {
    width: 180px;
    padding: 8px 12px;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: var(--Grey-400, #71757A);
    border: 1px solid #ccc;
    border-radius: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Standardized dropdown toggle buttons */
.dropdown-toggle {
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    padding: 8px 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Standardized reset button */
.reset-button {
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #d0002d;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    white-space: nowrap;
}

/* Standardized dropdown menus */
.dropdown-menu {
    width: 180px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    background-color: white;
    z-index: 100;
    position: relative;
}

.dropdown-menu .option {
    padding: 10px 16px;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    cursor: pointer;
}

.filters {
    display: flex;
    justify-content: space-between; /* Changed from center to space-between */
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: nowrap;
    border-style: solid;
    border-width: 1px; /* Reduced from 4px for better appearance */
    border-color: rgba(113, 117, 122, 0.34);
    border-radius: 20px;
    padding: 10px 20px; /* Added horizontal padding */
    width: 100%; /* Ensure full width */
}

.inner-filter {
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-right: 1px solid rgba(213, 213, 213, 1); /* Reduced border width */
    height: 30px;
    text-align: center;
    flex: 1; /* Added to make filters take equal space */
    justify-content: center; /* Center the content */
}

/* Style the first filter (search input) differently if needed */
.inner-filter:first-child {
    flex: 1.2; /* Reduced from 2 to 1.2 for better proportion */
    justify-content: center;
}

/* Reset button container */
.reset-container {
    margin-left: 20px;
    white-space: nowrap;
}

.search-input {
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 180px; /* Increased from 150px */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px; /* Added to match other filters */
}

.filter-btn, .reset-btn {
  padding: 6px 12px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  white-space: nowrap;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

.data-table th {
  text-align: left;
  padding: 10px 12px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 2px solid #e2e8f0;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #374151;
  position: sticky;
  top: 0;
  z-index: 10;
}

.data-table th:first-child {
  border-top-left-radius: 12px;
}

.data-table th:last-child {
  border-top-right-radius: 12px;
}

.data-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #f1f5f9;
  text-align: left;
  transition: all 0.2s ease;
  position: relative;
}

.data-table tbody tr {
  transition: all 0.2s ease;
}

.data-table tbody tr:hover {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.data-table tbody tr:hover td {
  border-bottom-color: #e2e8f0;
}

.data-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}

.data-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}


.dot {
  height: 10px;
  width: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

/* Professional Dot Indicators */
.dot {
  height: 12px;
  width: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 2px solid #ffffff;
}

.dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
}

.dot.red { 
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); 
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

.dot.yellow { 
  background: linear-gradient(135deg, #facc15 0%, #eab308 100%); 
  box-shadow: 0 2px 6px rgba(250, 204, 21, 0.3);
}

.dot.green { 
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); 
  box-shadow: 0 2px 6px rgba(34, 197, 94, 0.3);
}

.dot.gray { 
  background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%); 
  box-shadow: 0 2px 6px rgba(156, 163, 175, 0.3);
}

/* Professional Badge System */
.badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid transparent;
}

.badge.red { 
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%); 
  color: #b91c1c; 
  border-color: #fca5a5;
}

.badge.blue { 
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); 
  color: #1d4ed8; 
  border-color: #93c5fd;
}

.badge.green { 
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%); 
  color: #166534; 
  border-color: #86efac;
}

.badge.yellow { 
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); 
  color: #92400e; 
  border-color: #fcd34d;
}

.badge.gray { 
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%); 
  color: #374151; 
  border-color: #d1d5db;
}

.badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Professional Table Footer */
.table-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 24px;
  margin-top: 10px;
  min-height: 60px;
  position: relative;
  z-index: 5;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  gap: 12px;
}

#loading-table-info {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}



.footer-info {
  flex: 1 1 auto;
  margin-bottom: 10px;
}

.pagination {
  flex-shrink: 0;
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
}

.pre button,.next button{
font-family:'Roboto', sans-serif;
    padding: 8px 16px;
  display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 13px;
    color: #475569;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    min-width: 70px;
}

.pre button:hover, .next button:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-color: #cbd5e1;
    color: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(0, 0, 0, 0.08);
}

.pre button:active, .next button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.1s ease;
}

.pre button:focus, .next button:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.pre button:disabled, .next button:disabled {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.pre button::before, .next button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.pre button:hover::before, .next button:hover::before {
    left: 100%;
}


.reset-w {
    Font: Roboto;
    font-Weight: 600;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0px;
    color: red;
    margin: 7px;
    cursor: pointer;
}

.inner-filter{
    display: flex;
    border-style: none;
    border-right-style: solid;
    border-width: 4px;
    padding-right: 20px;
  border-color:rgba(213, 213, 213, 1);
  height: 30px;

}


    input[type="text"] {
      padding: 12px 16px;
      font-size: 12px;
      border: 1px solid #ccc;
      border-radius: 8px;
      outline: none;
      transition: border 0.3s ease;
    }

    input[type="text"]:focus {
      border-color: #6366f1;
    }

    .dropdown {
      position: relative;
      font-size: 12px;
      z-index: 50;
    }

    .dropdown-toggle {
      font-weight: bold;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 6px;
      transition: all 0.3s ease;
    }

    .arrow-down {
      border: solid black;
      border-width: 0 2px 2px 0;
      padding: 3px;
      transform: rotate(45deg);
      transition: transform 0.3s ease;
    }

    .dropdown.open .arrow-down {
      transform: rotate(-135deg);
    }

    .dropdown-menu {
      position: absolute;
      top: 35px;
      left: 0;
      background-color: white;
      border-radius: 12px;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
      width: 180px;
      overflow: hidden;
      transform-origin: top;
      transform: scaleY(0);
      transition: transform 0.2s ease;
      z-index: 100;
    }

    .dropdown.open .dropdown-menu {
      transform: scaleY(1);
    }

    .dropdown-menu div.option {
      padding: 10px 16px;
      font-family: 'Roboto', sans-serif;
      font-size: 10px;
      cursor: pointer;
      transition: background-color 0.2s ease;
    }

    .dropdown-menu div.option:hover {
      background-color: #f5f5f5;
    }

    .dropdown-menu .follow-up {
      color: #d0002d;
      font-weight: 500;
    }

    .dropdown-menu .review {
      color: #1a73e8;
      font-weight: 500;
    }

    .dropdown-menu .no-action {
      color: #444;
    }

    .divider {
      height: 1px;
      margin: 4px 0;
      background-color: #eee;
    }


/* Optional: tweak per-risk option styles if needed */
.dropdown-menu .high-risk {
  color: #D0002D;
  font-weight: 500;
}

.dropdown-menu .medium-risk {
  color: #FFB400;
  font-weight: 500;
}

.dropdown-menu .low-risk {
  color: #1FB865;
  font-weight: 500;
}

/* Dropdown for Actual Adherence */
.dropdown-menu .ontime-aa {
  color: #1FB865;
  font-weight: 500;
}

.dropdown-menu .late-aa {
  color: #D0002D;
  font-weight: 500;
}

.dropdown-menu .unknown-aa {
  color: #6B7280;
  font-weight: 500;
}

/* Health Context Button Styling */
.health-context-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.health-context-btn:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
}

.health-context-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

/* Additional responsive improvements for table footer visibility */
@media (max-width: 768px) {
  /* Ensure table footer is always visible on mobile */
  .table-footer {
    position: sticky;
    bottom: 0;
    margin-top: 5px;
    padding: 12px 16px;
    min-height: 50px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 2px solid #e2e8f0;
  }
  
  /* Reduce table row height on mobile for better space utilization */
  .data-table td {
    padding: 6px 8px;
  }
  
  .data-table th {
    padding: 8px 8px;
  }
}

@media (max-width: 480px) {
  /* Further optimize for very small screens */
  .table-footer {
    padding: 8px 12px;
    min-height: 45px;
  }
  
  .data-table td {
    padding: 4px 6px;
    font-size: 12px;
  }
  
  .data-table th {
    padding: 6px 6px;
    font-size: 12px;
  }
}


.option svg {
  vertical-align: middle;
  margin-right: 8px;
}

  .progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .progress-text {
    font-family: Body Small/Font;
    font-size: 14px;
    font-weight: 550;
    width: 40px;
  }

  .progress-bar-outer {
    flex: 1;
    background-color: #f1f5f9;
    height: 6px;
    border-radius: 9999px;
    overflow: hidden;
  }

  .progress-bar-inner {
    height: 100%;
    border-radius: 9999px;
  }

  .bar-low {
    background-color: #f87171; /* red-400 */
  }

  .bar-medium {
    background-color: #facc15; /* yellow-400 */
  }

  .bar-high {
    background-color: #86efac; /* green-300 */
  }

  .bar-full {
    background-color: #4ade80; /* green-400 */
  }

/* Professional Table Cell Typography */
.data-table td {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  color: #374151;
  font-size: 13px;
  line-height: 1.5;
}

.data-table th {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
}

/* Enhanced Progress Bar Styling */
.progress-text {
  font-weight: 600;
  color: #1f2937;
  font-size: 12px;
  text-align: center;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
  sub{
    font-size: 14px;
    position: relative;
    top: -8px;
  }

.shap-section {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.shap-section h3 {
    margin: 0 0 20px 0;
    color: #1a1a1a;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 12px;
}

.shap-content {
    color: #2c3e50;
    line-height: 1.8;
    font-size: 15px;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #fafafa;
    border-radius: 8px;
    padding: 24px;
    text-align: left;
}

.shap-content p {
    margin: 0 0 18px 0;
    padding: 12px 0;
    color: #34495e;
    font-weight: 500;
    border-bottom: 1px solid #ecf0f1;
    transition: all 0.2s ease;
}

.shap-content p:hover {
    background: #f8f9fa;
    padding-left: 8px;
    border-left: 3px solid #3498db;
    margin-left: -8px;
}

.shap-content p:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Enhanced text styling for better readability */
.shap-content p {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    letter-spacing: 0.2px;
}



.boh-icon {
    width: 60px;
    height: auto;
    margin-top: 5px;
    flex-shrink: 0;
}

