 /* Main Adjustments */
 h4 {
     margin-bottom: 0.75rem;
     margin-top: 0.25rem;
 }

 .content {
     padding: 0.5rem 1rem;
 }



 /* Alternative: Override just card-body padding */
 .card-body {
     padding: 0.75rem 1rem !important;
     /* Equivalent to Bootstrap p-2 */
 }

 .col-md-3 {
     padding: 0 0.5rem !important;
 }

 .btn-microsoft {
     color: #fff;
     background-color: #000000;
     border-color: #000000;
     transition: all 0.3s ease;
 }

 .btn-microsoft:hover {
     color: #fff;
     background-color: #4d4d4d;
     border-color: #4d4d4d;
 }

 .btn-microsoft:focus,
 .btn-microsoft.focus {
     color: #fff;
     background-color: #4d4d4d;
     border-color: #4d4d4d;
     box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, .25);
 }

 .btn-microsoft.disabled,
 .btn-microsoft:disabled {
     color: #fff;
     background-color: #000000;
     border-color: #000000;
 }

 .btn-microsoft:not(:disabled):not(.disabled):active,
 .btn-microsoft:not(:disabled):not(.disabled).active,
 .show>.btn-microsoft.dropdown-toggle {
     color: #fff;
     background-color: #333333;
     border-color: #333333;
 }

 .btn-microsoft:not(:disabled):not(.disabled):active:focus,
 .btn-microsoft:not(:disabled):not(.disabled).active:focus,
 .show>.btn-microsoft.dropdown-toggle:focus {
     box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, .25);
 }

 .flag-icon {
     width: 20px;
     height: auto;
 }

 .tab-content {
     background-color: white;
     border: 1px solid #dee2e6;
     padding: 20px;
     margin-bottom: 20px;
 }

 .nav-tabs .nav-link.active {
     background-color: white;
     border-bottom: 0px;
 }

 .nav-tabs .nav-link {
     background-color: #f8f9fa;
 }

 .nav-tabs .nav-link {
     background-color: #f8f9fa;
 }

 .sidebar .sidebar-content {
     background-color: #142A3D;
 }


 /* Call Record Details Page */
 .details-list {
     list-style: none;
     padding: 0;
     margin: 0.5rem 0;
 }

 .detail-item {
     display: flex;
     align-items: center;
     padding: 0.1rem;
     gap: 0.5rem;
 }

 .detail-label {
     flex: 0 0 auto;
     min-width: 70px;
     /* Adjust based on your longest label */
 }

 .detail-value {
     flex: 1;
     font-weight: 500;
     color: #495057;
 }








 .score-list {
     list-style: none;
     padding: 0;
     margin-top: 0.5rem;
 }

 .score-item {
     display: flex;
     align-items: center;
     padding: 0.1rem;
     gap: 0.5rem;
 }

 .score-label {
     flex: 0 0 auto;
     min-width: 165px;
     /* Adjust based on your longest label */
 }

 .score-value {
     display: flex;
     align-items: center;
     justify-content: center;
     padding: 0.1rem 1rem;
     gap: 0.5rem;
     width: 4rem;
     border-radius: 6px;
     text-align: center;
     color: white;
 }




#datatables-responsive tbody tr {
    cursor: pointer;
}

#datatables-responsive tbody tr.table-hover-highlight {
    background-color: #e9ecef !important;
}

/* User List - Align DataTables length and info on same line */
#datatables-responsive_wrapper .dt-top-left-controls {
    display: flex;
    align-items: baseline; /* align to text baseline for consistent vertical alignment */
    gap: 1rem;
    flex-wrap: nowrap;
}

#datatables-responsive_wrapper .dataTables_length label {
    margin-bottom: 0;
    margin-top: 0 !important;
    white-space: nowrap;
    display: inline-flex;           /* align select and label text nicely */
    align-items: center;             /* center within the label */
    gap: .5rem;
}

#datatables-responsive_wrapper .dataTables_info {
    margin-top: 0 !important;
    padding-top: 0;
    padding-bottom: 0;
    white-space: nowrap;
    font-size: inherit;              /* match surrounding text size */
    line-height: 1.5;                /* consistent line height */
    align-self: baseline;            /* align to baseline of the row */
}





 /* AI Assistant message bubbles */

 .d-flex {
     display: flex;
 }

 .user-message {
     justify-content: flex-end;
 }

 .assistant-message {
     justify-content: flex-start;
 }

 .bg-light {
     background-color: #f8f9fa !important;
 }

 .bg-primary {
     background-color: #0d6efd !important;
 }

 .chat-container {
     height: 100vh;
     display: flex;
     flex-direction: column;
 }

 #chat-messages {
     flex: 1;
     overflow-y: auto;
     padding-bottom: 20px;
     /* Add some padding at the bottom */
 }

 .input-group-container {
     padding: 15px;
     background-color: #f8f9fa;
     border-top: 1px solid #dee2e6;
 }

 .overflow-auto {
     scrollbar-width: thin;
     scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
 }

 .overflow-auto::-webkit-scrollbar {
     width: 6px;
 }

 .overflow-auto::-webkit-scrollbar-thumb {
     background-color: rgba(0, 0, 0, 0.2);
     border-radius: 3px;
 }






 /* Reporting colour bands */
 .sc-bg-0 {
     background-color: #97C5EB !important;
 }

 .sc-c-0 {
     color: #97C5EB !important;
 }

 .sc-bg-1 {
     background-color: #CC6F6F !important;
 }

 .sc-c-1 {
     color: #CC6F6F !important;
 }

 .sc-bg-2 {
     background-color: #CC8B6F !important;
 }

 .sc-c-2 {
     color: #CC8B6F !important;
 }

 .sc-bg-3 {
     background-color: #CCA36F !important;
 }

 .sc-c-3 {
     color: #CCA36F !important;
 }

 .sc-bg-4 {
     background-color: #CCB26F !important;
 }

 .sc-c-4 {
     color: #CCB26F !important;
 }

 .sc-bg-5 {
     background-color: #CCC36F !important;
 }

 .sc-c-5 {
     color: #CCC36F !important;
 }

 .sc-bg-6 {
     background-color: #B9CC6F !important;
 }

 .sc-c-6 {
     color: #B9CC6F !important;
 }

 .sc-bg-7 {
     background-color: #A1CC6F !important;
 }

 .sc-c-7 {
     color: #A1CC6F !important;
 }

 .sc-bg-8 {
     background-color: #89CC6F !important;
 }

 .sc-c-8 {
     color: #89CC6F !important;
 }

 .sc-bg-9 {
     background-color: #6FCC8A !important;
 }

 .sc-c-9 {
     color: #6FCC8A !important;
 }

 .sc-bg-10 {
     background-color: #6FCC94 !important;
 }

 .sc-c-10 {
     color: #6FCC94 !important;
 }


 /* Vector query results */
 .query-results {
     max-width: 800px;
     margin: 0 auto;
     padding: 20px;
     font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
 }

 .query-results h2 {
     color: #2c3e50;
     margin-top: 1.5em;
     margin-bottom: 0.5em;
     font-size: 1.5em;
 }

 .query-results h3 {
     color: #34495e;
     margin-top: 1.2em;
     margin-bottom: 0.5em;
     font-size: 1.2em;
 }

 .query-results p {
     line-height: 1.6;
     margin: 0.8em 0;
     color: #333;
 }

 .query-results ul {
     margin: 0.5em 0 1em 0;
     padding-left: 20px;
 }

 .query-results li {
     line-height: 1.5;
     margin: 0.3em 0;
     color: #333;
 }

 .query-results .error {
     color: #e74c3c;
     font-weight: bold;
 }

 /* Utility classes */
 .cursor-pointer {
     cursor: pointer;
 }

 .max-h-400 {
     max-height: 400px;
 }

 /* Badge indigo */
 .badge-indigo {
     background-color: #e0cffc;
     color: #6610f2;
 }


 /* Contact Center Dashboard Styles */
 .cc-filter-form {
     background: #f8f9fa;
     border-radius: 0.375rem;
     padding: 1rem;
     margin-bottom: 1.5rem;
 }

 .cc-direction-filter .btn-check:checked+.btn {
     background-color: var(--bs-primary);
     border-color: var(--bs-primary);
     color: white;
 }

 .cc-metric-card {
     transition: transform 0.2s ease-in-out;
 }

 .cc-metric-card:hover {
     transform: translateY(-2px);
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
 }

 .cc-change-indicator {
     font-size: 0.875rem;
     font-weight: 600;
 }

 .cc-change-positive {
     color: #198754;
 }

 .cc-change-negative {
     color: #dc3545;
 }

 .cc-widget-container {
     min-height: 300px;
     position: relative;
 }

 .cc-widget-loading {
     /* Use Bootstrap utility classes instead for consistency */
 }

 .cc-duration-display {
     font-family: 'Monaco', 'Menlo', monospace;
     font-weight: 600;
 }

 .cc-progress-thin {
     height: 8px;
 }

 .cc-progress-extra-thin {
     height: 6px;
 }

 .cc-icon-large {
     width: 48px;
     height: 48px;
 }


 .cc-duration-select {
     width: auto;
 }

 .cc-heatmap-day-column {
     width: 80px;
 }

 /* Heatmap legend colors */
 .cc-legend-none {
     background-color: #f8f9fa;
     color: #6c757d;
 }

 .cc-legend-low {
     background-color: rgba(54, 162, 235, 0.2);
     color: #495057;
 }

 .cc-legend-medium {
     background-color: rgba(54, 162, 235, 0.4);
     color: #212529;
 }

 .cc-legend-high {
     background-color: rgba(255, 193, 7, 0.6);
     color: #212529;
 }

 .cc-legend-very-high {
     background-color: rgba(220, 53, 69, 0.8);
     color: white;
 }

 .cc-legend-med-low {
     background-color: rgba(54, 162, 235, 0.5);
     color: #212529;
 }

 .cc-legend-med-high {
     background-color: rgba(255, 152, 0, 0.7);
     color: #212529;
 }

 .cc-legend-high-updated {
     background-color: rgba(220, 53, 69, 0.8);
     color: white;
 }

 .cc-legend-very-high-updated {
     background-color: rgba(220, 53, 69, 1);
     color: white;
 }

 .cc-chart-container {
     height: 400px;
 }

 .cc-chart-container-small {
     height: 300px;
 }

 /* Heatmap styles */
 .cc-heatmap-table {
     font-size: 0.8rem;
 }

 .cc-heatmap-cell {
     min-width: 28px;
     max-width: 32px;
     height: 32px;
     text-align: center;
     vertical-align: middle;
     border: 1px solid #dee2e6;
     transition: all 0.2s ease;
     font-size: 0.7rem;
 }

 .cc-heatmap-cell:hover {
     border-color: #0d6efd;
     transform: scale(1.1);
     z-index: 10;
     position: relative;
 }

 .cc-heatmap-cell[data-intensity="0"] {
     background-color: #f8f9fa;
     color: #6c757d;
 }

 .cc-heatmap-cell[data-intensity="1"],
 .cc-heatmap-cell[data-intensity="2"],
 .cc-heatmap-cell[data-intensity="3"],
 .cc-heatmap-cell[data-intensity="4"],
 .cc-heatmap-cell[data-intensity="5"],
 .cc-heatmap-cell[data-intensity="6"],
 .cc-heatmap-cell[data-intensity="7"],
 .cc-heatmap-cell[data-intensity="8"],
 .cc-heatmap-cell[data-intensity="9"],
 .cc-heatmap-cell[data-intensity="10"],
 .cc-heatmap-cell[data-intensity="11"],
 .cc-heatmap-cell[data-intensity="12"],
 .cc-heatmap-cell[data-intensity="13"],
 .cc-heatmap-cell[data-intensity="14"],
 .cc-heatmap-cell[data-intensity="15"],
 .cc-heatmap-cell[data-intensity="16"],
 .cc-heatmap-cell[data-intensity="17"],
 .cc-heatmap-cell[data-intensity="18"],
 .cc-heatmap-cell[data-intensity="19"],
 .cc-heatmap-cell[data-intensity="20"],
 .cc-heatmap-cell[data-intensity="21"],
 .cc-heatmap-cell[data-intensity="22"],
 .cc-heatmap-cell[data-intensity="23"],
 .cc-heatmap-cell[data-intensity="24"],
 .cc-heatmap-cell[data-intensity="25"] {
     background-color: rgba(54, 162, 235, 0.2);
     color: #495057;
 }

 .cc-heatmap-cell[data-intensity="26"],
 .cc-heatmap-cell[data-intensity="27"],
 .cc-heatmap-cell[data-intensity="28"],
 .cc-heatmap-cell[data-intensity="29"],
 .cc-heatmap-cell[data-intensity="30"],
 .cc-heatmap-cell[data-intensity="31"],
 .cc-heatmap-cell[data-intensity="32"],
 .cc-heatmap-cell[data-intensity="33"],
 .cc-heatmap-cell[data-intensity="34"],
 .cc-heatmap-cell[data-intensity="35"],
 .cc-heatmap-cell[data-intensity="36"],
 .cc-heatmap-cell[data-intensity="37"],
 .cc-heatmap-cell[data-intensity="38"],
 .cc-heatmap-cell[data-intensity="39"],
 .cc-heatmap-cell[data-intensity="40"],
 .cc-heatmap-cell[data-intensity="41"],
 .cc-heatmap-cell[data-intensity="42"],
 .cc-heatmap-cell[data-intensity="43"],
 .cc-heatmap-cell[data-intensity="44"],
 .cc-heatmap-cell[data-intensity="45"],
 .cc-heatmap-cell[data-intensity="46"],
 .cc-heatmap-cell[data-intensity="47"],
 .cc-heatmap-cell[data-intensity="48"],
 .cc-heatmap-cell[data-intensity="49"],
 .cc-heatmap-cell[data-intensity="50"] {
     background-color: rgba(54, 162, 235, 0.4);
     color: #212529;
 }

 .cc-heatmap-cell[data-intensity="51"],
 .cc-heatmap-cell[data-intensity="52"],
 .cc-heatmap-cell[data-intensity="53"],
 .cc-heatmap-cell[data-intensity="54"],
 .cc-heatmap-cell[data-intensity="55"],
 .cc-heatmap-cell[data-intensity="56"],
 .cc-heatmap-cell[data-intensity="57"],
 .cc-heatmap-cell[data-intensity="58"],
 .cc-heatmap-cell[data-intensity="59"],
 .cc-heatmap-cell[data-intensity="60"],
 .cc-heatmap-cell[data-intensity="61"],
 .cc-heatmap-cell[data-intensity="62"],
 .cc-heatmap-cell[data-intensity="63"],
 .cc-heatmap-cell[data-intensity="64"],
 .cc-heatmap-cell[data-intensity="65"],
 .cc-heatmap-cell[data-intensity="66"],
 .cc-heatmap-cell[data-intensity="67"],
 .cc-heatmap-cell[data-intensity="68"],
 .cc-heatmap-cell[data-intensity="69"],
 .cc-heatmap-cell[data-intensity="70"],
 .cc-heatmap-cell[data-intensity="71"],
 .cc-heatmap-cell[data-intensity="72"],
 .cc-heatmap-cell[data-intensity="73"],
 .cc-heatmap-cell[data-intensity="74"],
 .cc-heatmap-cell[data-intensity="75"] {
     background-color: rgba(255, 193, 7, 0.6);
     color: #212529;
 }

 .cc-heatmap-cell[data-intensity="76"],
 .cc-heatmap-cell[data-intensity="77"],
 .cc-heatmap-cell[data-intensity="78"],
 .cc-heatmap-cell[data-intensity="79"],
 .cc-heatmap-cell[data-intensity="80"],
 .cc-heatmap-cell[data-intensity="81"],
 .cc-heatmap-cell[data-intensity="82"],
 .cc-heatmap-cell[data-intensity="83"],
 .cc-heatmap-cell[data-intensity="84"],
 .cc-heatmap-cell[data-intensity="85"],
 .cc-heatmap-cell[data-intensity="86"],
 .cc-heatmap-cell[data-intensity="87"],
 .cc-heatmap-cell[data-intensity="88"],
 .cc-heatmap-cell[data-intensity="89"],
 .cc-heatmap-cell[data-intensity="90"],
 .cc-heatmap-cell[data-intensity="91"],
 .cc-heatmap-cell[data-intensity="92"],
 .cc-heatmap-cell[data-intensity="93"],
 .cc-heatmap-cell[data-intensity="94"],
 .cc-heatmap-cell[data-intensity="95"],
 .cc-heatmap-cell[data-intensity="96"],
 .cc-heatmap-cell[data-intensity="97"],
 .cc-heatmap-cell[data-intensity="98"],
 .cc-heatmap-cell[data-intensity="99"],
 .cc-heatmap-cell[data-intensity="100"] {
     background-color: rgba(220, 53, 69, 0.8);
     color: white;
 }

 /* Spinning animation for EnquiryMax check */
 .spinning {
     animation: spin 1s linear infinite;
 }

 @keyframes spin {
     from {
         transform: rotate(0deg);
     }

     to {
         transform: rotate(360deg);
     }
 }




 /* Log Items Admin User Search Styles */
 .user-search-item {
     cursor: pointer;
     padding: 0.5rem 1rem;
     border-bottom: 1px solid #dee2e6;
 }

 .user-search-item:hover {
     background-color: #f8f9fa;
 }

 .user-search-item:last-child {
     border-bottom: none;
 }

 #user_search_results {
     position: absolute;
     top: 100%;
     left: 0;
     right: 0;
     z-index: 1000;
     max-height: 200px;
     overflow-y: auto;
     border: 1px solid #dee2e6;
     border-radius: 0.375rem;
     box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
 }

 #user_search_feedback {
     margin-top: 0.25rem;
     font-size: 0.875rem;
     color: #6c757d;
 }

 /* Log Items Admin Template Styles */
 .datepicker-wrapper {
     position: relative;
 }

 .chart-no-data-icon {
     width: 48px;
     height: 48px;
 }

 .user-search-dropdown {
     z-index: 1000;
     max-height: 200px;
     overflow-y: auto;
     top: 100%;
     left: 0;
     right: 0;
     border: 1px solid #dee2e6;
     border-radius: 0.375rem;
     box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
     background-color: #fff;
 }

 .user-search-item {
     border-bottom: 1px solid #f8f9fa;
     transition: background-color 0.15s ease-in-out;
 }

 .user-search-item:hover {
     background-color: #f8f9fa;
     border-color: #dee2e6;
 }

 .user-search-item:last-child {
     border-bottom: none;
 }

 .user-search-feedback {
     font-size: 0.65rem !important;
 }
