/* Custom Loads Page Styling - Global CSS */

/* LoadDetails Page Styles */
.load-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.load-detail-primary {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
}

.load-number-large {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #0d6efd 0%, #0056cc 100%);
    color: white;
    border-radius: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(13, 110, 253, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.load-number-large i {
    font-size: 1.3rem;
}

.load-detail-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.load-badges {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.detail-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.75rem;
}

.section-title i {
    color: #0d6efd;
    font-size: 1.1rem;
}

.route-info-detail {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
}

.route-point-detail {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.route-connector-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.route-line-detail {
    width: 3px;
    height: 40px;
    background: linear-gradient(to bottom, #198754, #dc3545);
    border-radius: 2px;
}

.route-distance {
    background: #f8f9fa;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
    border: 1px solid #e9ecef;
}

.route-details {
    flex: 1;
}

.route-location {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
}

.route-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #495057;
    margin-bottom: 0.25rem;
}

.route-date i {
    color: #6c757d;
}

.route-address {
    font-size: 0.85rem;
    color: #6c757d;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.info-group {
    background: #f8f9fa;
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.group-title {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.5rem;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.info-item--customer {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%) !important;
    border: 1px solid #feb2b2 !important;
    box-shadow: 0 1px 3px rgba(197, 48, 48, 0.1) !important;
}

.info-item--customer .info-value {
    color: #c53030 !important;
    font-weight: 700 !important;
}

.info-item--customer .info-label {
    color: #9c2626 !important;
}

.info-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #6c757d;
    flex-shrink: 0;
}

.info-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #212529;
    text-align: right;
}

.info-value--currency {
    color: #198754;
    font-weight: 700;
}

.special-notes {
    background: #fff3cd;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #ffeaa7;
    font-size: 0.95rem;
    color: #664d03;
    line-height: 1.6;
}

.detail-footer {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-top: 2rem;
}

.footer-info {
    display: flex;
    gap: 2rem;
    color: #6c757d;
    font-size: 0.85rem;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-item i {
    color: #adb5bd;
}

/* Override Telerik Grid completely */
.loads-grid .k-grid-header,
.loads-grid .k-grid-header-wrap,
.loads-grid .k-grid-toolbar {
    display: none !important;
}

.loads-grid .k-grid-content {
    border: none !important;
    background: transparent !important;
    overflow: visible !important;
}

.loads-grid .k-grid-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100% !important;
}

.loads-grid .k-grid-table td {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
    vertical-align: top !important;
}

.loads-grid .k-grid-table tr {
    background: transparent !important;
    border: none !important;
}

.loads-grid .k-grid {
    border: none !important;
    background: transparent !important;
}

/* Search Section */
.search-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.search-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 2;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.search-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-search, .btn-clear, .btn-export {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

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

.btn-search:hover {
    background: #0b5ed7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

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

.btn-clear:hover {
    background: #5c636a;
    transform: translateY(-1px);
}

.btn-export {
    background: #198754;
    color: white;
}

.btn-export:hover {
    background: #157347;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
}

/* Load Card - The main styling */
.load-card {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 12px !important;
    margin: 0.5rem !important;
    background: white !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
    transition: all 0.3s ease !important;
    overflow: hidden !important;
}

.load-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16) !important;
}

/* Load Header */
.load-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #e9ecef;
}

.load-primary {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.load-number {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #0d6efd 0%, #0056cc 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.load-number:hover {
    background: linear-gradient(135deg, #0b5ed7 0%, #004bb5 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.4);
}

.load-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #e7f0ff;
    color: #1c4ed8;
}

.status-badge--delivered {
    background: #d1e7dd;
    color: #0f5132;
}

.status-badge--dispatched,
.status-badge--intransit,
.status-badge--in-transit {
    background: #cfe2ff;
    color: #084298;
}

.status-badge--closed {
    background: #e9ecef;
    color: #495057;
}

.status-badge--cancelled {
    background: #f8d7da;
    color: #842029;
}

.status-badge--pending {
    background: #fff3cd;
    color: #856404;
}

/* Alert Badges */
.alert-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.alert-badge--late {
    background: #fff3cd;
    color: #856404;
}

.alert-badge--hazmat {
    background: #fde2e1;
    color: #b02a37;
}

.alert-badge--invoiced {
    background: #d1e7dd;
    color: #0f5132;
}

/* Load Actions */
.load-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-size: 0.9rem !important;
    padding: 0 !important;
}

.action-btn--view {
    background: rgba(25, 135, 84, 0.1) !important;
    color: #198754 !important;
}

.action-btn--view:hover {
    background: #198754 !important;
    color: white !important;
    transform: translateY(-1px) !important;
}

.action-btn--close {
    background: rgba(255, 193, 7, 0.1) !important;
    color: #ffc107 !important;
}

.action-btn--close:hover {
    background: #ffc107 !important;
    color: #212529 !important;
    transform: translateY(-1px) !important;
}

.action-btn--delete {
    background: rgba(220, 53, 69, 0.1) !important;
    color: #dc3545 !important;
}

.action-btn--delete:hover {
    background: #dc3545 !important;
    color: white !important;
    transform: translateY(-1px) !important;
}

/* Load Sections */
.load-section {
    padding: 0.75rem;
    border-bottom: 1px solid #f1f3f4;
}

.load-section:last-child {
    border-bottom: none;
}

/* Route Section */
.load-route {
    background: linear-gradient(135deg, #f8f9fc 0%, #ffffff 100%);
}

.route-info {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}

.route-point {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.origin-icon {
    color: #198754;
    font-size: 0.8rem;
    margin-top: 0.125rem;
}

.destination-icon {
    color: #dc3545;
    font-size: 1rem;
    margin-top: 0.125rem;
}

.route-details {
    flex: 1;
}

.route-location {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.125rem;
}

.route-date {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.125rem;
}

.route-address {
    font-size: 0.75rem;
    color: #adb5bd;
}

.route-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.route-line {
    width: 2px;
    height: 16px;
    background: linear-gradient(to bottom, #198754, #dc3545);
    border-radius: 1px;
}

.route-arrow {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.5rem;
    background: transparent;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    transition: all 0.2s ease;
}

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

.detail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: white;
    color: #495057;
    border-radius: 4px;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    flex: 1;
}

.detail-label {
    font-size: 0.65rem;
    font-weight: 500;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: #212529;
}

/* References Section */
.load-references {
    background: #f8f9fa;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.reference-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.5rem;
    background: white;
    border-radius: 12px;
    font-size: 0.8rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.reference-item i {
    color: #6c757d;
    font-size: 0.75rem;
}

.reference-label {
    font-weight: 500;
    color: #6c757d;
}

.reference-value {
    font-weight: 600;
    color: #212529;
}

/* Customer Reference Styling */
.reference-item--customer {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%) !important;
    border: 1px solid #feb2b2 !important;
    box-shadow: 0 1px 3px rgba(197, 48, 48, 0.1) !important;
}

.reference-item--customer .reference-value {
    color: #c53030 !important;
    font-weight: 700 !important;
}

.reference-item--customer .reference-label {
    color: #9c2626 !important;
}

.reference-item--customer i {
    color: #c53030 !important;
}

/* Notes Section */
.load-notes {
    background: #fff3cd;
}

.notes-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #856404;
}

.notes-content {
    font-size: 0.9rem;
    color: #664d03;
    line-height: 1.5;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
}

/* Load Footer */
.load-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.footer-stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #6c757d;
}

.stat-item i {
    color: #adb5bd;
}

.footer-updated {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: #adb5bd;
}

.hidden-export {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 992px) {
    .search-section {
        flex-direction: column;
        align-items: stretch;
    }

    .search-container {
        flex-direction: column;
        align-items: stretch;
    }

    .search-input-wrapper {
        max-width: none;
    }

    .route-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .route-connector {
        order: 2;
        flex-direction: row;
    }

    .route-line {
        width: 40px;
        height: 2px;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .load-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

@media (max-width: 768px) {
    .load-card {
        margin: 0.5rem !important;
    }

    .load-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .load-primary {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .search-actions {
        flex-direction: column;
    }

    .btn-search, .btn-clear, .btn-export {
        justify-content: center;
    }
}

/* Load Details Page Enhanced Styles - Moved from isolated CSS for better compatibility */

/* Enhanced Breadcrumb Navigation */
.breadcrumb-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.breadcrumb-enhanced {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.9rem;
}

.breadcrumb-item-enhanced {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    transition: all 0.2s ease;
}

.breadcrumb-item-enhanced:not(.active):hover {
    color: #0d6efd;
}

.breadcrumb-item-enhanced.active {
    color: #495057;
    font-weight: 600;
}

.breadcrumb-item-enhanced:not(:last-child)::after {
    content: '/';
    margin-left: 0.75rem;
    color: #adb5bd;
}

.breadcrumb-item-enhanced a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item-enhanced a:hover {
    color: #0d6efd;
}

.breadcrumb-item-enhanced i {
    font-size: 0.8rem;
    opacity: 0.7;
}

.page-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2);
}

.btn-back:hover {
    background: linear-gradient(135deg, #5c636a 0%, #343a40 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
    color: white;
}

.action-group {
    display: flex;
    gap: 0.5rem;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.btn-action--print {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.btn-action--print:hover {
    background: #0d6efd;
    color: white;
    transform: translateY(-1px);
}

.btn-action--export {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.btn-action--export:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-1px);
}

/* Enhanced Hero Section - More Compact */
.load-hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);
}

.load-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.load-hero-primary {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    z-index: 1;
}

.load-number-hero {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.load-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.load-icon-wrapper i {
    font-size: 2rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.load-number-content {
    display: flex;
    flex-direction: column;
}

.load-number-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.load-number-value {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1;
}

/* Comprehensive Stats Grid - More Compact for Maximum Info */
.comprehensive-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
    max-width: 100%;
}

/* Quick Stats Cards */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
    min-height: auto;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 1.2rem;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}

.stat-value--currency {
    color: #90ee90;
}

.stat-value--truncate {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stat-value--important {
    color: #ffd700 !important;
    font-weight: 800 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Alert Badges Enhanced */
.load-alerts {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* Customer & Carrier Information Section */
.customer-carrier-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.customer-carrier-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .customer-carrier-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.customer-carrier-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.customer-card {
    border-left: 4px solid #0d6efd;
}

.carrier-card {
    border-left: 4px solid #fd7e14;
}

.card-header-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #495057;
    font-weight: 600;
    font-size: 0.9rem;
}

.card-header-compact i {
    color: #6c757d;
}

.card-title {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-value-full {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.card-subtitle {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

/* Enhanced Actions */
.load-actions-enhanced {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    gap: 0.75rem;
    z-index: 2;
}

.action-btn-enhanced {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.75rem 1rem !important;
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    color: white !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

.action-btn-enhanced:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-1px) !important;
    color: white !important;
}

/* Enhanced Route Section */
.route-section-enhanced {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.route-section-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #198754, #dc3545);
}

.section-title-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #495057;
}

.title-wrapper i {
    color: #0d6efd;
    font-size: 1.1rem;
}

.route-summary {
    display: flex;
    align-items: center;
}

.route-badge {
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.2);
}

/* Route Timeline Enhanced */
.route-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
}

.route-point {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    position: relative;
}

.route-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 1.2rem;
    flex-shrink: 0;
    z-index: 2;
    position: relative;
}

.route-marker--origin {
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(25, 135, 84, 0.3);
}

.route-marker--destination {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.3);
}

.route-content {
    flex: 1;
    background: white;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.route-content:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.route-header {
    margin-bottom: 1rem;
}

.route-type {
    display: inline-block;
    background: #f8f9fa;
    color: #6c757d;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.route-details-enhanced {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.route-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #6c757d;
    font-size: 0.95rem;
}

.route-info-item i {
    width: 16px;
    color: #adb5bd;
}

.info-text {
    color: #495057;
    font-weight: 500;
}

/* Route Connector Animation */
.route-connector-enhanced {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
    margin: 1rem 0;
    padding-left: 28px;
}

.route-line-animated {
    width: 3px;
    height: 60px;
    background: linear-gradient(to bottom, #198754, #dc3545);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.route-line-animated::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), transparent);
    animation: flow 2s infinite linear;
}

@keyframes flow {
    0% { transform: translateY(0); }
    100% { transform: translateY(80px); }
}

.route-progress {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.route-truck {
    color: #6c757d;
    font-size: 0.9rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Compact Route Section */
.route-section-compact {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e9ecef;
    border-left: 4px solid #0d6efd;
}

.route-header-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.route-title-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
}

.route-title-compact i {
    color: #0d6efd;
}

.route-compact-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}

.route-location-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.location-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.route-location--pickup .location-icon {
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
    color: white;
}

.route-location--delivery .location-icon {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
    color: white;
}

.location-info {
    flex: 1;
    min-width: 0;
}

.location-name {
    font-weight: 600;
    color: #212529;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.location-date {
    font-size: 0.85rem;
    color: #0d6efd;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.location-address {
    font-size: 0.8rem;
    color: #6c757d;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.route-connector-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 0.5rem;
}

.connector-line {
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, #198754, #dc3545);
    border-radius: 1px;
}

.connector-truck {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    color: #6c757d;
    font-size: 0.8rem;
    animation: pulse 2s infinite;
}

/* Enhanced Tabbed Interface */
.content-tabs {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 2rem;
}

.tab-navigation {
    display: flex;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #e9ecef;
    padding: 0.5rem;
    gap: 0.25rem;
    overflow-x: auto;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #6c757d;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
}

.tab-btn:hover {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.tab-btn.active {
    background: white;
    color: #0d6efd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #0d6efd, #6610f2);
    border-radius: 1px;
}

.tab-btn i {
    font-size: 0.9rem;
}

.tab-badge {
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.25rem;
}

.tab-content {
    padding: 2rem;
}

.tab-panel {
    animation: fadeIn 0.3s ease;
}

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

/* Overview Tab Styles */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.overview-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    transition: all 0.2s ease;
}

.overview-card--customer::before {
    background: linear-gradient(to bottom, #e74c3c, #c0392b);
}

.overview-card--logistics::before {
    background: linear-gradient(to bottom, #3498db, #2980b9);
}

.overview-card--financial::before {
    background: linear-gradient(to bottom, #27ae60, #229954);
}

.overview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f3f4;
}

.card-header i {
    font-size: 1.2rem;
    color: #0d6efd;
}

.card-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.info-row:hover {
    background: #e9ecef;
}

.info-row .label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6c757d;
}

.info-row .value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #212529;
    text-align: right;
}

.value--highlight {
    color: #0d6efd !important;
    font-weight: 700 !important;
}

.value--important {
    color: #dc3545 !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 50%);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.value--currency {
    color: #198754 !important;
    font-weight: 700 !important;
}

/* Tracking Timeline Styles */
.tracking-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #e9ecef;
}

.tracking-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.tracking-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #495057;
}

.tracking-title i {
    color: #0d6efd;
    font-size: 1.1rem;
}

.tracking-count {
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: auto;
}

.tracking-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
}

.tracking-timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 28px;
    bottom: 28px;
    width: 2px;
    background: linear-gradient(to bottom, #0d6efd, #6610f2);
    border-radius: 1px;
}

.tracking-event {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    position: relative;
}

.tracking-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    color: white;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(13, 110, 253, 0.3);
    z-index: 2;
    flex-shrink: 0;
}

.tracking-marker i {
    font-size: 1.2rem;
}

.tracking-content {
    flex: 1;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.tracking-content:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.tracking-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.tracking-time {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.tracking-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.tracking-location i {
    color: #dc3545;
}

.tracking-message {
    font-size: 1rem;
    color: #495057;
    line-height: 1.6;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0d6efd;
}

/* Notes Section Styles */
.notes-section {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #ffeaa7;
}

.notes-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 193, 7, 0.3);
}

.notes-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #856404;
}

.notes-title i {
    color: #ffc107;
    font-size: 1.1rem;
}

.notes-content-enhanced {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.notes-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid #ffc107;
}

.notes-text {
    font-size: 1rem;
    color: #495057;
    line-height: 1.7;
    margin: 0;
}