/* OVERALL CSS COMPONENTS */
/* Page style */
.ltl-page {
    background-color: var(--bs-gray-100);
    padding-bottom: 12px;
}

/* Shadow */
.shadow {
    box-shadow: 0 2px 4px var(--bs-border-color-translucent);
}

/* General button styling. Cannot use .btn since the progress bar buttons shouldn't follow this */
.ltl-btn {
    margin-left: 10px;
    background-color: var(--custom-primary);
    color: var(--bs-light-bg-subtle);
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 0.8em;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    /* Transition for hover effect */
    box-shadow: 0 2px 4px var(--bs-border-color-translucent);
}

.ltl-btn:hover {
    background-color: var(--custom-primary-emphasis);
    /* Lighter background on hover */
    color: var(--bs-light-bg-subtle);
    box-shadow: 0 4px 8px var(--bs-border-color-translucent);
    /* Stronger shadow on hover */
}

/* Tab navigation button styling */
.ltl-btn.active {
    background-color: var(--custom-primary-emphasis);
    color: var(--bs-white);
    font-weight: bold;
    box-shadow: 0 4px 8px var(--bs-border-color-translucent);
}

/* Prevent flashing during tab transitions */
#tabbed-tables-content {
    transition: opacity 0.2s ease-in-out;
}

#tabbed-tables-content.loading {
    opacity: 0.7;
}

/* Smooth transitions for grid updates */
.ag-grid-container {
    transition: opacity 0.15s ease-in-out;
}

/* Tab button group styling */
.btn-group .ltl-btn {
    margin-left: 0;
    border-radius: 0;
    border: 1px solid var(--custom-primary);
}

.btn-group .ltl-btn:first-child {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.btn-group .ltl-btn:last-child {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.btn-group .ltl-btn:not(:last-child) {
    border-right: none;
}

/* Container to align all buttons similarly */
.button-container {
    display: flex;
    justify-content: end;
    align-items: center;
    flex-wrap: wrap;
}

/* AG Grid styling */
/* Wrapping the headers when they are too long */
.wrap-text-header {
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    max-width: 100%;
}

/* Price Setting Tabs Styling */
.nav-tabs-custom .nav-link {
    border: none !important;
    background: transparent !important;
    color: #6c757d !important;
    font-weight: 500 !important;
    padding: 0.75rem 1.5rem !important;
    margin-right: 0.5rem !important;
    border-radius: 0.375rem 0.375rem 0 0 !important;
    transition: all 0.2s ease-in-out !important;
}

.nav-tabs-custom .nav-link:hover {
    color: #495057 !important;
    background-color: #f8f9fa !important;
}

.nav-tabs-custom .nav-link.active {
    color: #0d6efd !important;
    background-color: #ffffff !important;
    border-bottom: 3px solid #0d6efd !important;
    font-weight: 600 !important;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1) !important;
}

.nav-tabs-custom .nav-link:not(.active) {
    border-bottom: 2px solid #e9ecef !important;
}

/* Price Setting Card Styling */
.price-setting-card {
    background: #ffffff !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Transportation Margins Header */
.transportation-margins-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 0.375rem !important;
    padding: 1rem !important;
}

/* Table Container */
.table-container {
    border: 1px solid #dee2e6 !important;
    border-radius: 0.375rem !important;
    overflow: hidden !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
    width: 100% !important;
}

/* AG Grid Container Full Width */
.ag-grid-container {
    width: 100% !important;
    min-width: 100% !important;
}

.ag-grid-container .ag-root-wrapper {
    width: 100% !important;
    min-width: 100% !important;
}

.ag-grid-container .ag-root {
    width: 100% !important;
    min-width: 100% !important;
}

/* Header color and text */
.ag-header {
    background-color: var(--custom-primary) !important;
}

.ag-header-cell {
    background-color: var(--custom-primary) !important;
}

.ag-header-cell-label {
    justify-content: center !important;
    font-size: 1rem !important;
    display: flex;
    align-items: center;
    color: var(--bs-white) !important;
}

.ag-icon-menu {
    color: var(--bs-white) !important;
    /* Color for the hamburger icon in ag grid headers */
}

.ag-header-cell-menu-button {
    opacity: 100 !important;
    /* Opacity to show the color for the hamburger icon in ag grid headers */
}

/* Cell styling */
.ag-cell {
    font-size: 16px !important;
    /* Cell font size */
    color: var(--bs-light-text-emphasis) !important;
    /* Cell text color */
    border-bottom: 1px solid var(--bs-light-text-emphasis) !important;
    /* Cell bottom border */
    padding: 10px !important;
    /* Padding for cells */
    display: flex !important;
    /* Use flexbox */
    justify-content: center !important;
    /* Center horizontally */
    align-items: center !important;
    /* Center vertically */
}

.ag-root-wrapper {
    border-radius: 10px !important;
    /* Rounded corners */
    box-shadow: 0 2px 4px var(--bs-border-color-translucent) !important;
    /* Subtle shadow */
}

/* Make the checkboxes the same blue as the rest of the app */
.ag-theme-alpine .ag-checkbox-input-wrapper.ag-checked::after {
    color: var(--custom-primary-emphasis) !important;
    max-height: 400px;
    /* Grid won't grow beyond 400px */
    overflow-y: auto;
}

/* Make the rows alternate color even when filtered */
.ag-theme-alpine {
    --ag-odd-row-background-color: var(--bs-border-color) !important;
}

/* Highlight invalid fields in AG Grid */
.ag-theme-alpine .ag-cell.invalid-field {
    background-color: #fff3cd !important;
    border: 2px solid #ffc107 !important;
    border-radius: 4px !important;
}

/* Highlight missing commodity_class in red */
.ag-theme-alpine .ag-cell.invalid-field.commodity-class-missing {
    background-color: #f8d7da !important;
    border: 2px solid #dc3545 !important;
    border-radius: 4px !important;
}

/* Highlight missing commodity_class in form inputs (red border) */
select[id*="commodity-class-input"]:invalid {
    border-color: #dc3545 !important;
    border-width: 2px !important;
    background-color: #f8d7da !important;
}

/* Background color for the on state of the boolean switch. Class name is from the DAQ library */
.gJuplL {
    background-color: var(--custom-primary) !important;
}

/* Size of grid titles on Prospect Profile page */
.grid-title {
    font-size: 2rem !important;
}

/* Putting a spinner on top of content for loading */
.spinner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.7);
    /* Slight background tint */
    z-index: 2000;
    /* Ensure it is above other content */
}


/* CUSTOM COLOR FOR LOADING CUBE */
.dash-cube-side--front {
    background-color: var(--custom-primary) !important;
}

.dash-cube-side--back {
    background-color: hsl(228, 49%, 30%) !important;
}

.dash-cube-side--left {
    background-color: hsl(228, 49%, 30%) !important;
}

.dash-cube-side--right {
    background-color: hsl(228, 49%, 35%) !important;
}

.dash-cube-side--top {
    background-color: hsl(228, 49%, 30%) !important;
}

.dash-cube-side--bottom {
    background-color: hsl(228, 49%, 35%) !important;
}


/* CSS for allowing KPI cards to dynamically size based on screen size */
.kpi-container {
    display: flex;
    flex-wrap: nowrap;
}

.col-flex {
    display: flex;
    flex-direction: column;
    /* Keeps the content stacked vertically */
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    /* Prevents wrapping of text */
}

.col-responsive {
    display: flex;
    justify-content: center;
    align-items: center;
}




/* CSS FOR CARRIER SELECTION */

/* CSS for tabbed tables to ensure proper overflow handling */
.tabbed-tables-content {
    overflow: hidden;
}

.tabbed-tables-content .card {
    overflow: hidden;
}

.tabbed-tables-content .card-body {
    overflow: hidden;
    padding: 1rem;
}

/* Ensure AG Grid tables are properly contained */
.tabbed-tables-content .ag-theme-alpine {
    overflow: hidden;
    max-height: 400px;
}

/* Specific styling for tables that need scrolling */
.tabbed-tables-content .ag-grid-container {
    overflow: auto;
    max-height: 400px;
}

/* Make the buttons in the carrier selection modal appear opaque when disabled */
.progress-modal-button {
    opacity: 100 !important;
    width: 1.5rem !important;
    height: 1.5rem !important;
}

/* CSS for a red border around card for invalid margin */
.min-margin {
    border-color: red;
    border-width: 2px;
}

/* Styling for values in the kpi cards */
.kpi-content {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

/* Styling for keeping the buttons on one row */
.carrier-buttons {
    display: flex;
    justify-content: space-between;
}




/* CSS FOR HEADER ROW: SEARCH BAR */
/* Large amount of css due to needed to override the dash styling  */
/* Styling container that holds search bar */
.header-buttons {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 1% 0 !important;
}

/* Styling search box */
.header-search {
    border: 1px solid var(--bs-secondary-bg-subtle) !important;
    border-radius: 25px !important;
    padding: 3px 20px !important;
    margin-right: 10px !important;
    display: flex !important;
    align-items: center !important;
    font-size: 1em !important;
    box-shadow: 0 2px 4px var(--bs-border-color-translucent) !important;
    justify-content: start !important;
    width: 50% !important;
    background: var(--bs-light-bg-subtle) !important;
}

/*CSS for the search bar and settings gear div*/
.header-group {
    display: flex;
    justify-content: end;
    align-items: center;
    flex-wrap: nowrap;
    width: 50vw;
}

/* Styling area behind search box input */
.header-search-input .Select-control {
    margin-top: 1px !important;
    border: none !important;
    color: var(--bs-light-text-emphasis) !important;
    flex-grow: 1 !important;
    padding: 0 10px !important;
    outline: none !important;
    font-size: 1em !important;
    background: var(--bs-light-bg-subtle) !important;
}

/* Another style override for behind the search box input */
.header-search-input .Select-control::placeholder {
    border: none !important;
    background: var(--bs-light-bg-subtle) !important;
    color: var(--bs-light-text-emphasis) !important;
    flex-grow: 1 !important;
    padding: 0 10px !important;
    outline: none !important;
    font-size: 1em !important;
}

/* Overriding select placeholder styling */
.dbc .Select-placeholder {
    background-color: none !important;
}

/* Search Icon Color */
.search-icon {
    color: var(--bs-secondary) !important;
}

/* Removes default select arrow from dropdown */
.Select-arrow-zone {
    display: none !important;
}

/* Sets where text begins to be written in search box */
.Select-input input {
    margin-left: -10px !important;
}

/* Adds buffere to search options and the search box */
.Select-menu-outer {
    margin-top: 7px !important;
}

/* Sets background color of select input field */
.Select-placeholder {
    background: var(--bs-light-bg-subtle) !important;
}

/* Configured color of search bar when a value is input */
.Select-input input[role="combobox"] {
    background: var(--bs-light-bg-subtle) !important;
    color: var(--bs-gray-100) !important;
}

/* Alters color of search result text */
.VirtualizedSelectOption {
    color: var(--bs-light-text-emphasis) !important
}

/* Alters searchbar size incase of resizing */
@media (max-width: 768px) {
    .header-search {
        padding: 2px 16px;
        font-size: 0.9em;
        margin-right: 5px;
    }
}

/* Alters searchbar size incase of resizing */
@media (max-width: 480px) {
    .header-search {
        padding: 1px 12px;
        font-size: 0.8em;
        margin-right: 2px;
    }
}


/* CSS FOR DASHBOARD */
/* CSS styling for KPI Cards */
/* Style for the count on KPI card */
.card-title {
    font-weight: bold;
    font-size: 5vh;
    margin: 0;
    line-height: 1;
    text-align: center;
    justify-content: center;
}

/* Style for the category on KPI card */
.card-text {
    font-size: 3vh;
    text-align: center;
    margin: 0;
    transition: color white;
    justify-content: center;
}

@media (max-width: 466px) {
    .card-title {
        font-weight: bold;
        font-size: 4vh;
        margin: 0;
        line-height: 1;
        text-align: center;
        justify-content: center;
    }

    /* Style for the category on KPI card */
    .card-text {
        font-size: 2vh;
        text-align: center;
        margin: 0;
        transition: color white;
        justify-content: center;
    }
}

@media(max-width: 536px) {
    .card-title {
        font-weight: bold;
        font-size: 3.5vh;
        margin: 0;
        line-height: 1;
        text-align: center;
        justify-content: center;
    }

    /* Style for the category on KPI card */
    .card-text {
        font-size: 1.5vh;
        text-align: center;
        margin: 0;
        transition: color white;
        justify-content: center;
    }
}

/* Style for the KPI card itself */
.card-edit {
    background-color: var(--bs-light-bg-subtle) !important;
    border: 1px solid var(--bs-secondary-bg-subtle) !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 10px;
    position: relative;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease !important;
    box-shadow: 0 2px 4px var(--bs-border-color-translucent) !important
}

/* Circle container for the icon for each KPI */
.kpi-icon {
    background-color: var(--custom-primary);
    border-radius: 80%;
    width: 13vh;
    height: 13vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media(max-width: 466px) {
    .kpi-icon {
        background-color: var(--custom-primary);
        border-radius: 80%;
        width: 9vh;
        height: 9vh;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

@media(max-width: 536px) {
    .kpi-icon {
        background-color: var(--custom-primary);
        border-radius: 80%;
        width: 11vh;
        height: 11vh;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

/* Icons inside the circles */
.kpi-icon img {
    width: 50%;
    height: 50%;
    position: relative;
    filter: invert(1);
    object-fit: contain;
}

/* For adjusting text and number inside the container */
.text-container {
    position: absolute;
    left: 45%;
    transform: translateX(-50%);
    transition: color white;
}

/* Put the image and text in-line */
.kpi-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Progress Bar Style for Dashboard Page */
.progress-bar {
    --bs-progress-bar-bg: var(--custom-primary);
}

/* Status Circles Buttons */
.status-circle {
    width: 30px !important;
    height: 30px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    background-color: var(--bs-white);
}

.status-inactive {
    color: var(--bs-gray-600) !important;
}

.status-active {
    background-color: var(--custom-primary) !important;
    color: var(--bs-white);
}

/* Custom dropdown styles for status column */
.status-dropdown {
    width: 100%;
    height: 40px;
    /* Increased height */
    padding: 0 30px 0 8px;
    /* Adjusted padding for better alignment */
    border: 1px solid var(--bs-secondary-bg-subtle);
    border-radius: 4px;
    background-color: var(--bs-body-bg);
    font-size: 16px;
    color: var(--bs-light-text-emphasis);
    /* Ensure the text color is set */
    box-sizing: border-box;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D'http%3A//www.w3.org/2000/svg'%20width%3D'16'%20height%3D'16'%20fill%3D'none'%20stroke%3D'%23495057'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20stroke-width%3D'2'%20class%3D'feather%20feather-chevron-down'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M6%209l6%206%206-6'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    text-align: left;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    line-height: 40px;
    /* Adjusted line-height to match height */
}





/* CSS FOR PROSPECT PROFILE PAGE */
/* Styling for the Invoices and Cost Analysis grid titles */
.subsection-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 0px 20px;
    flex-wrap: nowrap;
    /* Allow wrapping on smaller screens */
}

@media (max-width: 719px) {
    .subsection-title {
        display: block;
        align-items: center;
        padding: 20px 20px 0px 20px;
        flex-wrap: nowrap;
        /* Allow wrapping on smaller screens */
    }
}

.subsection-title h1 {
    display: flex;
    align-items: center;
    font-size: 2.5em;
    /* Adjust font size */
    font-weight: 400;
    /* Adjust font weight */
    margin-right: 15px;
    text-wrap: nowrap;
}

/* Upload Invoice Modal */
/* Styling for the dashed box */
#invoice-upload-box {
    color: var(--bs-secondary-color);
    width: 100%;
    height: 60px;
    border-style: dashed;
    border-width: 3px;
    border-radius: 5px;
    text-align: center;
    line-height: 55px;
    margin: 10px;
}

#invoice-upload-box:hover {
    color: var(--bs-emphasis-color);
    cursor: pointer;
}

/* Center the dashed box */
.upload-box {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Center the text */
.invoice-header,
.upload-invoice-title,
.upload-invoice-footer,
.upload-output,
.delete-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* CSS FOR DELETE AND FEEDBACK MODALS */
/* Custom styles for delete modal body */

/* Custom styles for delete modal header */
.delete-modal-header,
.feedback-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Overriding x button margin */
.modal-header .btn-close {
    margin: None;
}

/* Centering the header title text */
.delete-modal-header .modal-title,
.feedback-modal-header .modal-title {
    flex-grow: 1;
    text-align: center;
    margin-left: 32px;
}

/* Custom style for delete modal body */
.delete-modal-body {
    display: block;
    justify-content: center;
    align-items: center;
}

/* Centering body text */
.delete-modal-text {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* styling for buttons div */
.delete-modal-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

/* CSS FOR LLM FEEDBACK BUTTONS */
.thumbs-up-button {
    background-color: var(--bs-green);
    border-radius: 50%;
    height: 4rem;
    width: 4rem;
    padding-bottom: 60px;
}

.thumbs-up-button:hover {
    background-color: var(--bs-green-emphasis);
    /* Lighter background on hover */
    color: var(--bs-light-bg-subtle);
    box-shadow: 0 4px 8px var(--bs-border-color-translucent);
    /* Stronger shadow on hover */
}

.thumbs-down-button {
    background-color: var(--bs-red);
    transform: rotate(180deg);
    border-radius: 50%;
    height: 4rem;
    width: 4rem;
    padding-bottom: 60px;
}

.thumbs-down-button:hover {
    background-color: var(--bs-red-emphasis);
    /* Lighter background on hover */
    color: var(--bs-light-bg-subtle);
    box-shadow: 0 4px 8px var(--bs-border-color-translucent);
    /* Stronger shadow on hover */
}

.thumb-icon {
    font-size: 2rem;
}

.unselected-button {
    opacity: 0.5;
}

/* CSS FOR COST ANALYSIS PAGE */
/*Add padding to KPI rows and evenly space them vertically*/
.kpi-row {
    padding-left: 12px;
    padding-right: 12px;
}

.vertical-spacing-div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/*CSS for resizing the company logo*/
.imgbox {
    display: grid;
    height: 100%;
}

.center-fit {
    max-width: 100%;
    max-height: 100vh;
}

/*CSS for putting toggle and export button in-line*/
.toggle-export {
    display: inline-block;
    margin-top: 1em;
    margin-bottom: 1em;
    margin-left: 0.5em;
    vertical-align: middle;
}

.toggle-export.hide {
    display: none;
}

/* CSS for the content in the projected savings cards */
.projected-savings {
    background-color: #D9E8BD;
    border-radius: 10px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Styling to keep toggle and label on one line */
.rep-view-toggle {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}

/* Sttyling to keep the buttons on one line */
.analysis-buttons {
    display: flex;
    flex-direction: row;
    justify-content: end;
}

/*CSS for error handling of the Speedship API*/
/* Message text styling */
.error-message-text {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    border: solid;
    border-radius: 5px;
    border-width: 2px;
    border-color: var(--bs-danger-text-emphasis);
    padding: 5px;
    margin-top: 20px;
    background-color: var(--bs-danger-bg-subtle);
}

/* Message header styling */
.error-message-modal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 44%;
}

/* CSS for KPIs */
.analysis-kpi-title {
    font-size: 2vh;
}

.analysis-kpi-body {
    font-size: 2.5vh;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--custom-primary);
}

/* CSS for the buttons above ag grids */
.grid-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

@media (max-width: 719px) {
    .grid-buttons {
        display: flex;
        justify-content: start;
        align-items: center;
        flex-wrap: nowrap;
    }
}

.pro-number-row {
    background-color: var(--bs-white);
}

.pro-number-row:hover {
    background-color: var(--bs-gray-200);
    /* Lighter background on hover */
}

.selected-pro-number-row {
    background-color: var(--bs-gray-400);
}


/* CSS for Magin/Savings Rules */
/* Custom AG Grid Header Font Size */
.dropdown-grid .ag-header-cell-label {
    font-size: 0.8rem !important;
    font-weight: bold;
}

/* Custom Cell Font Size */
.dropdown-grid .ag-cell {
    font-size: 0.8rem !important;
}

/* Making the items the correct blue */
input[type='radio']:checked {
    background-color: var(--custom-primary) !important;
    border-color: var(--custom-primary);
}

input[type='checkbox']:checked {
    background-color: var(--custom-primary) !important;
    border-color: var(--custom-primary);
}


/* CSS for the Admin Page */
.admin-row {
    display: flex;
    justify-content: start;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    margin-left: 50px;
    margin-bottom: 10px;
}

.warning-border {
    border: 2px solid gold !important;
}

/* Enhanced CSS for Shipment Details and Carrier Selection Tooltip Styling */
/* Target tooltips within tables that have the tooltip classes */
.shipment-details-tooltip .ag-tooltip,
.carrier-selection-tooltip .ag-tooltip,
.ag-theme-alpine.shipment-details-tooltip .ag-tooltip,
.ag-theme-alpine.carrier-selection-tooltip .ag-tooltip {
    white-space: pre-line !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%) !important;
    color: #FFFFFF !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    font-weight: 500 !important;
    min-width: 200px !important;
    backdrop-filter: blur(10px) !important;
    animation: tooltipFadeIn 0.2s ease-out !important;
}

/* AG Grid tooltips are appended to body, so we need a broader selector */
/* Target all AG Grid tooltips that contain our formatted content (Transportation: pattern) */
/* This is a catch-all that will style tooltips from both Shipment Details and Carrier Selection */
body .ag-tooltip {
    white-space: pre-line !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%) !important;
    color: #FFFFFF !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    font-weight: 500 !important;
    min-width: 200px !important;
    backdrop-filter: blur(10px) !important;
    animation: tooltipFadeIn 0.2s ease-out !important;
}

/* Tooltip fade-in animation */
@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tooltip arrow styling - apply to all AG Grid tooltips */
body .ag-tooltip::before {
    content: '' !important;
    position: absolute !important;
    top: -6px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 0 !important;
    height: 0 !important;
    border-left: 6px solid transparent !important;
    border-right: 6px solid transparent !important;
    border-bottom: 6px solid #2C3E50 !important;
}