/* ==========================================================================
   FLEET SRP — MODERN CLEAN CUSTOM STYLESHEET
   Extends & enhances Bootstrap 5.3 without duplicate utility classes.
   File: theme/assets/css/custom.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TYPOGRAPHY & BASE
   -------------------------------------------------------------------------- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
    background-color: #f1f5f9 !important;
}

.page-wrapper,
.main-container,
.app-container,
.app-body {
    background-color: #f1f5f9 !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-name,
.page-title,
.panel-title {
    font-family: 'Manrope', 'Inter', sans-serif;
    font-weight: 700;
    color: #0f172a;
}

/* Tabular numbers, vehicle plates, IDs, and amounts */
.font-mono,
td.amount,
td.amt,
td.ref-id,
td.id-col,
td.vehicle-no,
.mono,
.badge-count {
    font-family: 'JetBrains Mono', monospace !important;
}

/* Legacy float aliases for views using old Bootstrap classes */
.pull-right {
    float: right !important;
}

.pull-left {
    float: left !important;
}

/* --------------------------------------------------------------------------
   2. APP HEADER & LAYOUT (LIFTED NAVY + 3PX ORANGE RULE)
   -------------------------------------------------------------------------- */
.app-header {
    background: #2A3346 !important;
    padding: 0 !important;
    min-height: 56px !important;
    height: 56px !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    display: flex !important;
    align-items: stretch !important;
    border-bottom: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

/* Brand area aligned with sidebar width (250px) */
.header-brand-box {
    width: 250px !important;
    min-width: 250px !important;
    max-width: 250px !important;
    height: 56px !important;
    background: #111827 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-bottom: 3px solid #111827 !important;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
}

.header-brand-box .brand-text {
    font-size: 22px !important;
    font-weight: 800 !important;
    letter-spacing: -0.4px !important;
    line-height: 1 !important;
    color: #ffffff !important;
}

.header-brand-box .brand-icon {
    font-size: 26px !important;
    line-height: 1 !important;
    color: #F97316 !important;
    display: inline-flex !important;
    align-items: center !important;
}

/* Main header content bar */
.header-content-bar {
    height: 56px !important;
    background: #2A3346 !important;
    border-bottom: 3px solid #F97316 !important;
    color: #F2F5FA !important;
}

/* Header Toggle Button */
.app-header .header-btn-icon,
.app-header .toggle-sidebar,
.app-header .pin-sidebar {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #F2F5FA !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

.app-header .header-btn-icon:hover,
.app-header .toggle-sidebar:hover,
.app-header .pin-sidebar:hover {
    background: rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

.app-header .header-btn-icon i,
.app-header .toggle-sidebar i,
.app-header .pin-sidebar i {
    color: #F2F5FA !important;
    font-size: 1.15rem !important;
}

/* Header Title */
.header-title-text {
    color: #F2F5FA !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: -0.2px !important;
    white-space: nowrap !important;
}

/* Header Search Box */
.app-header .header-search-input,
.app-header input.form-control.header-search-input {
    background: #1e2533 !important;
    background-color: #1e2533 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important;
    color: #F2F5FA !important;
    font-size: 13px !important;
    padding: 7px 14px !important;
    width: 290px !important;
    transition: all 0.2s ease !important;
}

.app-header .header-search-input::placeholder {
    color: #8896ab !important;
    opacity: 1 !important;
}

.app-header .header-search-input:focus {
    background: #181f2c !important;
    background-color: #181f2c !important;
    border-color: #F97316 !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.25) !important;
    color: #ffffff !important;
}

/* Pinned (Collapsed 74px) State for Brand Box */
@media (min-width: 1200px) {
    .page-wrapper.pinned:not(.sidebar-hovered) .header-brand-box {
        width: 74px !important;
        min-width: 74px !important;
        max-width: 74px !important;
        padding: 0 !important;
        justify-content: center !important;
    }

    .page-wrapper.pinned:not(.sidebar-hovered) .header-brand-box .brand-text {
        display: none !important;
    }
}

@media (max-width: 1199px) {
    .header-brand-box {
        width: auto !important;
        min-width: auto !important;
        max-width: none !important;
        padding: 0 14px !important;
    }
}

/* Header Action Buttons */
.header-icon-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 8px !important;
    width: 36px !important;
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #F2F5FA !important;
    font-size: 18px !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    position: relative !important;
    box-shadow: none !important;
}

.header-icon-btn:hover {
    background: rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

.header-icon-btn i {
    color: #F2F5FA !important;
}

.notification-badge-dot {
    position: absolute !important;
    top: 7px !important;
    right: 7px !important;
    width: 7px !important;
    height: 7px !important;
    background-color: #ef4444 !important;
    border-radius: 50% !important;
    border: 1.5px solid #2A3346 !important;
}

/* Header User Avatar */
.header-user-avatar {
    background: #F97316 !important;
    color: #ffffff !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    box-shadow: 0 2px 6px rgba(249, 115, 22, 0.35) !important;
    transition: transform 0.15s ease !important;
}

.header-user-avatar:hover {
    transform: scale(1.04) !important;
}

/* --------------------------------------------------------------------------
   USER SETTINGS DROPDOWN MENU
   -------------------------------------------------------------------------- */
.user-settings-menu {
    min-width: 230px !important;
    border-radius: 14px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    padding: 10px !important;
    background: #ffffff !important;
    margin-top: 10px !important;
}

.dropdown-user-header {
    background: #f8fafc !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 10px !important;
    padding: 10px 12px !important;
    margin-bottom: 8px !important;
}

.dropdown-user-header .mini-avatar {
    width: 34px !important;
    height: 34px !important;
    border-radius: 8px !important;
    background: #F97316 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 4px rgba(249, 115, 22, 0.25) !important;
}

.dropdown-btn-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 9px 14px !important;
    border-radius: 9px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin-bottom: 6px !important;
    border: 1px solid transparent !important;
}

.dropdown-btn-item:last-child {
    margin-bottom: 0 !important;
}

/* Profile - Royal / Ocean Blue */
.dropdown-btn-item.item-profile {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border-color: #dbeafe !important;
}

.dropdown-btn-item.item-profile:hover {
    background: #dbeafe !important;
    color: #1e40af !important;
    border-color: #bfdbfe !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.15) !important;
}

/* Business Profile - Theme Brand Orange */
.dropdown-btn-item.item-business {
    background: #fff7ed !important;
    color: #c2410c !important;
    border-color: #ffedd5 !important;
}

.dropdown-btn-item.item-business:hover {
    background: #ffedd5 !important;
    color: #9a3412 !important;
    border-color: #fed7aa !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(249, 115, 22, 0.15) !important;
}

/* Document / Plan - Indigo / Violet */
.dropdown-btn-item.item-document {
    background: #f5f3ff !important;
    color: #6d28d9 !important;
    border-color: #ede9fe !important;
}

.dropdown-btn-item.item-document:hover {
    background: #ede9fe !important;
    color: #5b21b6 !important;
    border-color: #ddd6fe !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(109, 40, 217, 0.15) !important;
}

/* Logout - Crimson Red */
.dropdown-btn-item.item-logout {
    background: #fef2f2 !important;
    color: #dc2626 !important;
    border-color: #fee2e2 !important;
}

.dropdown-btn-item.item-logout:hover {
    background: #fee2e2 !important;
    color: #b91c1c !important;
    border-color: #fecaca !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(220, 38, 38, 0.15) !important;
}

/* Hide sidebar toggle when no sidebar exists on page */
.page-wrapper:not(:has(.sidebar-wrapper)) .header-sidebar-toggle,
.no-sidebar .header-sidebar-toggle {
    display: none !important;
}

/* Sidebar Brand Header */
.sidebar-brand-header {
    height: 56px !important;
    min-height: 56px !important;
    background: #111827 !important;
}

/* --------------------------------------------------------------------------
   3. SIDEBAR — MODERN CHARCOAL + ORANGE ACTIVE DESIGN (Option 2)
   -------------------------------------------------------------------------- */
.sidebar-wrapper {
    background: linear-gradient(180deg, #111827 0%, #1f2937 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 4px 0 20px -2px rgba(0, 0, 0, 0.25) !important;
    display: flex !important;
    flex-direction: column !important;
    width: 250px;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), left 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Pinned (Collapsed 74px) Sidebar State for Desktop */
@media (min-width: 1200px) {
    .page-wrapper.pinned:not(.sidebar-hovered) .sidebar-wrapper {
        width: 74px !important;
    }

    .page-wrapper.pinned:not(.sidebar-hovered) .sidebar-wrapper .sidebar-menu>li.header,
    .page-wrapper.pinned:not(.sidebar-hovered) .sidebar-wrapper .sidebar-menu>li.nav-group-label,
    .page-wrapper.pinned:not(.sidebar-hovered) .sidebar-wrapper .sidebar-menu .nav-group-label,
    .page-wrapper.pinned:not(.sidebar-hovered) .sidebar-wrapper .sidebar-brand-header .brand-text {
        display: none !important;
    }

    .page-wrapper.pinned:not(.sidebar-hovered) .sidebar-wrapper .sidebar-brand-header {
        padding: 0 10px !important;
        justify-content: center !important;
    }

    .page-wrapper.pinned:not(.sidebar-hovered) .sidebar-wrapper .sidebar-menu .menu-text,
    .page-wrapper.pinned:not(.sidebar-hovered) .sidebar-wrapper .sidebar-menu li.treeview:after,
    .page-wrapper.pinned:not(.sidebar-hovered) .sidebar-wrapper .sidebar-menu .treeview-menu,
    .page-wrapper.pinned:not(.sidebar-hovered) .sidebar-wrapper .sidebar-menu .badge {
        display: none !important;
    }

    .page-wrapper.pinned:not(.sidebar-hovered) .sidebar-wrapper .sidebar-menu>li>a {
        margin: 4px 10px !important;
        padding: 10px 0 !important;
        justify-content: center !important;
        gap: 0 !important;
        text-align: center !important;
    }

    .page-wrapper.pinned:not(.sidebar-hovered) .sidebar-wrapper .sidebar-menu>li>a>i {
        font-size: 20px !important;
        margin: 0 !important;
    }

    .page-wrapper.pinned:not(.sidebar-hovered) .sidebar-wrapper .sidebar-profile-bottom {
        padding: 12px 0 !important;
        justify-content: center !important;
    }

    .page-wrapper.pinned:not(.sidebar-hovered) .sidebar-wrapper .sidebar-profile-bottom .sidebar-profile-info {
        display: none !important;
    }

    /* Pinned and hovered: smoothly expand over content */
    .page-wrapper.pinned.sidebar-hovered .sidebar-wrapper {
        width: 250px !important;
        box-shadow: 6px 0 25px rgba(0, 0, 0, 0.4) !important;
    }
}

.sidebar-wrapper .sidebarMenuScroll {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    min-height: 0 !important;
    padding-top: 6px;
    padding-bottom: 12px;
}

/* Sleek minimalist scrollbar for dark sidebar */
.sidebar-wrapper .sidebarMenuScroll::-webkit-scrollbar {
    width: 4px;
}

.sidebar-wrapper .sidebarMenuScroll::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-wrapper .sidebarMenuScroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.sidebar-wrapper .sidebarMenuScroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.28);
}

/* Category headers (MAIN, OPERATIONS, etc.) */
.sidebar-menu>li.header,
.sidebar-menu>li.nav-group-label,
.nav-group-label {
    display: block;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: #64748b !important;
    padding: 18px 18px 7px 18px !important;
    pointer-events: none;
    list-style: none;
    line-height: 1.2;
}

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-menu>li {
    position: relative;
    margin: 0;
}

/* Inactive menu links */
.sidebar-menu>li>a {
    color: #e2e8f0 !important;
    padding: 10px 14px !important;
    border-radius: 12px !important;
    margin: 3px 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    border-left: none !important;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.sidebar-menu>li>a>i {
    background: transparent !important;
    color: #94a3b8 !important;
    font-size: 18px !important;
    width: auto !important;
    height: auto !important;
    margin-right: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    border-radius: 0 !important;
    transition: color 0.2s ease, transform 0.2s ease !important;
}

.sidebar-menu>li>a .menu-text {
    color: #e2e8f0 !important;
}

/* Inactive Hover */
.sidebar-menu>li:not(.active):not(.current-page):not(.menu-open):hover>a {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    border-left: none !important;
}

.sidebar-menu>li:not(.active):not(.current-page):not(.menu-open):hover>a .menu-text {
    color: #ffffff !important;
}

.sidebar-menu>li:not(.active):not(.current-page):not(.menu-open):hover>a>i {
    color: #fb923c !important;
    transform: scale(1.08) !important;
}

/* ACTIVE MENU ITEM — Charcoal + Orange Gradient Pill (Option 2) */
.sidebar-menu>li.active:not(.treeview)>a,
.sidebar-menu>li.current-page:not(.treeview)>a,
.sidebar-menu>li>a.active {
    background: linear-gradient(135deg, #F97316 0%, #FB923C 100%) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    box-shadow: 0 8px 20px -3px rgba(249, 115, 22, 0.45), 0 3px 6px -2px rgba(249, 115, 22, 0.25) !important;
    border-left: none !important;
}

.sidebar-menu>li.active:not(.treeview)>a>i,
.sidebar-menu>li.current-page:not(.treeview)>a>i,
.sidebar-menu>li>a.active>i {
    color: #ffffff !important;
    background: transparent !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25)) !important;
}

.sidebar-menu>li.active:not(.treeview)>a .menu-text,
.sidebar-menu>li.current-page:not(.treeview)>a .menu-text,
.sidebar-menu>li>a.active .menu-text {
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* Treeview parent dropdown styling */
.sidebar-menu>li.treeview {
    position: relative;
}

.sidebar-menu>li.treeview:after {
    font-family: 'remixicon' !important;
    font-size: 15px !important;
    content: "\ea6e" !important;
    display: inline-block;
    position: absolute;
    right: 26px;
    top: 14px;
    color: #94a3b8 !important;
    transition: transform 0.25s ease, color 0.2s ease !important;
    pointer-events: none;
}

.sidebar-menu>li.treeview.menu-open:after {
    transform: rotate(90deg) !important;
    color: #fb923c !important;
}

.sidebar-menu>li.treeview.active>a,
.sidebar-menu>li.treeview.menu-open>a {
    color: #ffffff !important;
    background: rgba(249, 115, 22, 0.15) !important;
    border-left: none !important;
}

.sidebar-menu>li.treeview.active>a .menu-text,
.sidebar-menu>li.treeview.menu-open>a .menu-text {
    color: #ffffff !important;
}

.sidebar-menu>li.treeview.active>a>i,
.sidebar-menu>li.treeview.menu-open>a>i {
    color: #fb923c !important;
    background: transparent !important;
}

/* Submenu container */
.sidebar-menu .treeview-menu {
    display: none;
    list-style: none;
    margin: 2px 0 6px 26px !important;
    padding: 3px 0 3px 10px !important;
    border-left: 1.5px dashed rgba(255, 255, 255, 0.18) !important;
}

.sidebar-menu .treeview-menu>li {
    margin: 1px 0 !important;
}

.sidebar-menu .treeview-menu>li>a {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    color: #cbd5e1 !important;
    padding: 7px 12px !important;
    margin: 1px 8px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    border-radius: 9px !important;
    text-decoration: none !important;
    transition: all 0.15s ease !important;
    white-space: nowrap !important;
}

.sidebar-menu .treeview-menu>li>a>i {
    color: #94a3b8 !important;
    font-size: 14px !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    flex-shrink: 0 !important;
    transition: color 0.15s ease !important;
}

.sidebar-menu .treeview-menu>li>a:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.sidebar-menu .treeview-menu>li>a:hover>i {
    color: #fb923c !important;
}

/* Active submenu link */
.sidebar-menu .treeview-menu>li.active>a,
.sidebar-menu .treeview-menu>li.current-page>a,
.sidebar-menu .treeview-menu>li>a.active,
.sidebar-menu .treeview-menu>li>a.active-sub {
    color: #ffffff !important;
    background: linear-gradient(135deg, #F97316 0%, #FB923C 100%) !important;
    font-weight: 600 !important;
    border-radius: 9px !important;
    box-shadow: 0 4px 12px -2px rgba(249, 115, 22, 0.4) !important;
}

.sidebar-menu .treeview-menu>li.active>a>i,
.sidebar-menu .treeview-menu>li.current-page>a>i,
.sidebar-menu .treeview-menu>li>a.active>i,
.sidebar-menu .treeview-menu>li>a.active-sub>i {
    color: #ffffff !important;
}

/* Bottom profile section */
.sidebar-profile-bottom {
    flex-shrink: 0 !important;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #111827;
}

.sidebar-profile-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.sidebar-profile-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.sidebar-profile-role {
    font-size: 11.5px;
    color: #94a3b8;
    margin-top: 2px;
}

/* --------------------------------------------------------------------------
   4. MODERN CARDS & HERO HEADERS
   -------------------------------------------------------------------------- */
.app-hero-header {
    background: #f1f5f9 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 12px 24px !important;
    position: sticky !important;
    top: 50px !important;
    z-index: 99 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
}

.app-hero-header .breadcrumb {
    margin-bottom: 0 !important;
}

.app-hero-header .breadcrumb-item,
.app-hero-header .breadcrumb-item a {
    font-family: 'Manrope', 'Inter', sans-serif !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    text-decoration: none !important;
    letter-spacing: -0.01em !important;
}

.app-hero-header .breadcrumb-item+.breadcrumb-item::before {
    color: #94a3b8 !important;
}

/* Mobile breadcrumb — single line, show only active page title */
@media (max-width: 767px) {
    .app-hero-header {
        padding: 8px 14px !important;
    }

    .app-hero-header .breadcrumb-item:not(.active) {
        display: none !important;
    }

    .app-hero-header .breadcrumb-item+.breadcrumb-item::before {
        display: none !important;
    }

    .app-hero-header .breadcrumb-item,
    .app-hero-header .breadcrumb-item a {
        font-size: 15px !important;
    }

    /* Prevent horizontal overflow on the entire page */
    body,
    .page-wrapper,
    .main-container,
    .app-container,
    .app-body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    .app-container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .card-body {
        padding: 14px 12px !important;
    }

    /* Radio btn-group — wrap into 2 per row on mobile */
    .btn-group {
        flex-wrap: wrap !important;
    }

    .btn-group .btn {
        flex: 1 1 45% !important;
        min-width: 0 !important;
        margin-bottom: 4px !important;
    }

    /* Freight calculation rows — keep label + input on same line */
    .total-card .d-flex {
        gap: 8px !important;
    }

    .total-card .d-flex .w-50 {
        width: 45% !important;
        min-width: 90px !important;
        flex-shrink: 0 !important;
    }

    .total-card .d-flex span {
        font-size: 12px !important;
        flex: 1 !important;
        min-width: 0 !important;
        word-break: break-word !important;
    }
}

/* Modern Card Design — Crisp Pure White on Off-White Canvas */
.card {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04) !important;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    margin-bottom: 20px !important;
}

.card-header {
    background: #ffffff !important;
    border-bottom: 1.5px solid #e2e8f0 !important;
    padding: 16px 24px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    color: #0f172a !important;
    border-top-left-radius: 14px !important;
    border-top-right-radius: 14px !important;
}

/* Vehicle numbers are always uppercase across all forms */
#vehicle_no, [name="vehicle_no"], [name="truck_no"], .vehicle-no-input {
    text-transform: uppercase !important;
}

.card-footer {
    background: #f8fafc !important;
    border-top: 1.5px solid #e2e8f0 !important;
    padding: 14px 24px !important;
    border-bottom-left-radius: 14px !important;
    border-bottom-right-radius: 14px !important;
}

/* Section titles within forms (e.g. Registration Details, Contact & Address) */
.form-section-title {
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.07em !important;
    text-transform: uppercase !important;
    color: #475569 !important;
    padding-bottom: 8px !important;
    border-bottom: 2px solid #e2e8f0 !important;
    margin-top: 20px !important;
    margin-bottom: 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

/* --------------------------------------------------------------------------
   5. MODERN FORM ELEMENTS & INPUTS
   -------------------------------------------------------------------------- */
.form-label,
label {
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    color: #0f172a !important;
    margin-bottom: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
}

.form-label span.text-danger,
label span.text-danger,
.text-danger {
    color: #ef4444 !important;
    font-weight: 700 !important;
}

/* Inputs, Selects & Textareas — Dark, Crisp, High-Visibility Borders */
.form-control,
.form-select {
    height: 42px;
    padding: 8px 14px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #0f172a !important;
    background-color: #ffffff !important;
    border: 1.5px solid #94a3b8 !important;
    border-radius: 9px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}

textarea.form-control {
    height: auto !important;
    min-height: 80px;
    padding: 10px 14px !important;
    line-height: 1.5 !important;
}

.form-control::placeholder {
    color: #94a3b8 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
}

.form-control:hover:not(:disabled):not([readonly]),
.form-select:hover:not(:disabled):not([readonly]) {
    border-color: #475569 !important;
}

.form-control:focus,
.form-select:focus {
    border-color: #f97316 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3.5px rgba(249, 115, 22, 0.2) !important;
    outline: none !important;
}

.form-control.readonly,
.form-control[readonly],
.form-control:disabled,
.form-select:disabled,
.readonly {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #475569 !important;
    font-weight: 600 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

/* Input Groups (Datepicker, prefixes, etc.) */
.input-group {
    border-radius: 9px !important;
}

.input-group-text {
    height: 42px !important;
    background-color: #f8fafc !important;
    border: 1.5px solid #94a3b8 !important;
    border-right: none !important;
    border-radius: 9px 0 0 9px !important;
    color: #475569 !important;
    font-size: 16px !important;
    padding: 0 13px !important;
    transition: all 0.2s ease !important;
}

.input-group>.form-control,
.input-group>.form-select {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.input-group:focus-within .input-group-text {
    border-color: #f97316 !important;
    color: #f97316 !important;
    background-color: #fff7ed !important;
}

/* Select2 Modern Overrides — Dark, Crisp Border */
.select2-container .select2-selection--single,
.select2-container--default .select2-selection--single {
    height: 42px !important;
    border: 1.5px solid #94a3b8 !important;
    border-radius: 9px !important;
    background-color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.select2-container--default .select2-selection--single:hover {
    border-color: #475569 !important;
}

.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #f97316 !important;
    box-shadow: 0 0 0 3.5px rgba(249, 115, 22, 0.2) !important;
    outline: none !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 40px !important;
    padding-left: 14px !important;
    padding-right: 32px !important;
    color: #0f172a !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px !important;
    right: 10px !important;
}

.select2-dropdown {
    border: 1.5px solid #94a3b8 !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.12) !important;
    overflow: hidden !important;
    margin-top: 4px !important;
    z-index: 1055 !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1.5px solid #94a3b8 !important;
    border-radius: 7px !important;
    padding: 7px 12px !important;
    font-size: 13px !important;
    outline: none !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #f97316 !important;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18) !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #f97316 !important;
    color: #ffffff !important;
}

/* Radio Buttons & Checkboxes */
input[type="radio"],
input[type="checkbox"],
.form-check-input {
    accent-color: #f97316 !important;
    width: 17px !important;
    height: 17px !important;
    margin-top: 0 !important;
    vertical-align: middle !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.form-check-label {
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    cursor: pointer !important;
    margin-left: 6px !important;
    vertical-align: middle !important;
    user-select: none;
}

/* Form row spacing */
form.row,
.card-body .row {
    row-gap: 8px;
}

/* --------------------------------------------------------------------------
   6. MODERN BUTTON SYSTEM
   -------------------------------------------------------------------------- */
.btn {
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: 9px !important;
    padding: 8px 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    text-decoration: none !important;
}

.btn:active {
    transform: scale(0.98) !important;
}

/* Primary Button — Modern Orange Brand Gradient */
.btn-primary {
    background: linear-gradient(135deg, #F97316 0%, #FB923C 100%) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px -2px rgba(249, 115, 22, 0.38) !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%) !important;
    box-shadow: 0 6px 18px -2px rgba(249, 115, 22, 0.48) !important;
    transform: translateY(-1px) !important;
    color: #ffffff !important;
}

/* Secondary Button */
.btn-secondary {
    background: #f1f5f9 !important;
    border: 1.5px solid #e2e8f0 !important;
    color: #334155 !important;
}

.btn-secondary:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

/* Success Button */
.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px -2px rgba(16, 185, 129, 0.35) !important;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

/* Danger Button */
.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px -2px rgba(239, 68, 68, 0.35) !important;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

/* Info Button */
.btn-info {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px -2px rgba(14, 165, 233, 0.3) !important;
}

.btn-info:hover {
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

/* Small Button (e.g. Back button in hero header) */
.btn-sm {
    padding: 6px 14px !important;
    font-size: 12.5px !important;
    border-radius: 8px !important;
}

/* Small modal trigger buttons inside labels (e.g., Driver +, Vehicle +, etc.) */
.form-label .btn,
label .btn,
.btn[style*="height: 20px"],
.btn[style*="width: 20px"],
.btn-icon-xs {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    padding: 0 !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
    margin-left: 6px !important;
    vertical-align: middle !important;
    box-shadow: 0 1px 3px rgba(249, 115, 22, 0.35) !important;
}

.form-label .btn i,
label .btn i,
.btn[style*="height: 20px"] i,
.btn[style*="width: 20px"] i,
.btn-icon-xs i {
    position: static !important;
    bottom: auto !important;
    right: auto !important;
    top: auto !important;
    left: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Print Utilities */
@media print {
    .no-print {
        display: none !important;
    }

    .main-container {
        padding: 0 !important;
    }
}

/* --------------------------------------------------------------------------
   7. MODERN DATATABLES & BADGES (Clean Shopify/SaaS Light Table UI)
   -------------------------------------------------------------------------- */
.table,
table.dataTable,
.table-bordered {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100% !important;
    margin-bottom: 0 !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

.table thead th,
table.dataTable thead th {
    background: #eef2f7 !important;
    color: #1e293b !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    padding: 10px 26px 10px 14px !important;
    border-top: none !important;
    border-bottom: 1.5px solid #cbd5e1 !important;
    border-right: 1px solid #cbd5e1 !important;
    border-left: none !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
}

.table thead th:first-child,
table.dataTable thead th:first-child {
    border-left: none !important;
    border-top-left-radius: 9px !important;
}

.table thead th:last-child,
table.dataTable thead th:last-child {
    border-right: none !important;
    border-top-right-radius: 9px !important;
}

.table tbody td,
table.dataTable tbody td {
    padding: 11px 14px !important;
    vertical-align: middle !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #1f2937 !important;
    border-bottom: 1px solid #cbd5e1 !important;
    border-right: 1px solid #cbd5e1 !important;
    border-top: none !important;
    border-left: none !important;
    background: transparent !important;
}

.table tbody td:last-child,
table.dataTable tbody td:last-child {
    border-right: none !important;
}

.table tbody tr:last-child td,
table.dataTable tbody tr:last-child td {
    border-bottom: none !important;
}

.table tfoot th,
.table tfoot td,
table.dataTable tfoot th,
table.dataTable tfoot td {
    padding: 10px 14px !important;
    vertical-align: middle !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #111827 !important;
    background: #f9fafb !important;
    border-top: 1.5px solid #cbd5e1 !important;
    border-bottom: none !important;
    border-right: 1px solid #cbd5e1 !important;
    border-left: none !important;
}

.table tfoot th:last-child,
.table tfoot td:last-child,
table.dataTable tfoot th:last-child,
table.dataTable tfoot td:last-child {
    border-right: none !important;
}

.table tbody tr:hover td,
table.dataTable tbody tr:hover td {
    background-color: #f9fafb !important;
}

/* DataTables length, search & pagination controls */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    font-size: 13px !important;
    color: #4b5563 !important;
    margin-bottom: 12px !important;
}

.dataTables_wrapper .dataTables_length select {
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    padding: 5px 28px 5px 10px !important;
    font-size: 13px !important;
    color: #111827 !important;
    background-color: #ffffff !important;
    outline: none !important;
    margin: 0 6px !important;
}

.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    padding: 6px 12px !important;
    font-size: 13px !important;
    color: #111827 !important;
    background-color: #ffffff !important;
    outline: none !important;
    min-width: 220px !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
    border-color: #f97316 !important;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12) !important;
}

.dataTables_wrapper .dataTables_info {
    font-size: 12.5px !important;
    color: #6b7280 !important;
    padding-top: 14px !important;
}

.dataTables_wrapper .dataTables_paginate {
    padding-top: 10px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 8px !important;
    padding: 5px 11px !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    border: 1px solid #e5e7eb !important;
    background: #ffffff !important;
    color: #374151 !important;
    margin-left: 4px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #f3f4f6 !important;
    color: #111827 !important;
    border-color: #d1d5db !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #0f172a !important;
    color: #ffffff !important;
    border-color: #0f172a !important;
    font-weight: 600 !important;
}

/* Soft Pill Badges */
.badge-soft-success {
    background-color: #dcfce7 !important;
    color: #15803d !important;
    border: 1px solid #bbf7d0 !important;
}

.badge-soft-warning {
    background-color: #fef3c7 !important;
    color: #b45309 !important;
    border: 1px solid #fde68a !important;
}

.badge-soft-danger {
    background-color: #fee2e2 !important;
    color: #b91c1c !important;
    border: 1px solid #fecaca !important;
}

.badge-soft-primary {
    background-color: #eff6ff !important;
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe !important;
}

.badge-soft-dark {
    background-color: #f1f5f9 !important;
    color: #334155 !important;
    border: 1px solid #e2e8f0 !important;
}

/* ==========================================================================
   LANDING PAGE CSS (resources/views/web/landing.blade.php)
   ========================================================================== */
body:has(.tm-hero) {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #FFFFFF !important;
    color: var(--ink);
}

.btn-primary-tm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    color: #FFFFFF !important;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    border: none;
    text-decoration: none;
    box-shadow: 0 10px 24px -6px rgba(249, 115, 22, 0.45);
    transition: all 0.25s ease;
}

.btn-primary-tm:hover {
    transform: translateY(-2px);
    color: #FFFFFF !important;
    box-shadow: 0 14px 28px -6px rgba(249, 115, 22, 0.55);
}

.btn-outline-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #FFFFFF;
    color: var(--ink) !important;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    border: 1.5px solid var(--line);
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-outline-hero:hover {
    border-color: var(--brand);
    color: var(--brand) !important;
    transform: translateY(-2px);
}

.tm-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============ SCROLL REVEAL ANIMATIONS ============ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ============ UNIFIED LIGHT SAAS HERO ============ */
.tm-hero {
    padding: 136px 0 88px;
    background:
        radial-gradient(circle at 82% 18%, rgba(249, 115, 22, 0.09) 0%, transparent 44%),
        radial-gradient(circle at 12% 78%, rgba(37, 99, 235, 0.07) 0%, transparent 45%),
        linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}

.tm-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 45%, transparent 80%);
    pointer-events: none;
}

.tm-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.tm-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-light);
    color: var(--brand-dark);
    border: 1px solid rgba(249, 115, 22, 0.28);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 22px;
}

.tm-eyebrow .pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7);
    animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
    0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(249, 115, 22, 0); }
    100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

.tm-hero h1 {
    font-size: clamp(34px, 4.3vw, 54px);
    font-weight: 800;
    line-height: 1.13;
    color: var(--ink);
    margin: 0 0 20px;
}

.tm-hero h1 .accent {
    color: var(--brand);
}

.tm-hero p.lead {
    font-size: 16.5px;
    color: var(--muted);
    line-height: 1.75;
    margin: 0 0 28px;
    max-width: 560px;
}

.tm-btn-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.tm-trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 13px;
    color: var(--ink-soft);
    font-weight: 600;
    margin-bottom: 34px;
}

.tm-trust-strip span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tm-trust-strip i {
    color: #16A34A;
    font-size: 16px;
}

.tm-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.tm-stat .num {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 23px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.2;
}

.tm-stat .label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
}

/* ============ INTERACTIVE PRODUCT SHOWCASE CARD ============ */
.erp-preview-shell {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 22px;
    padding: 16px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.14);
    animation: floatCard 6s ease-in-out infinite alternate;
}

@keyframes floatCard {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-6px); }
}

.erp-preview-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 10px;
    flex-wrap: wrap;
}

.erp-dots {
    display: flex;
    gap: 6px;
}

.erp-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.erp-dots span:nth-child(1) { background: #EF4444; }
.erp-dots span:nth-child(2) { background: #F59E0B; }
.erp-dots span:nth-child(3) { background: #22C55E; }

.erp-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.erp-tab-btn {
    background: rgba(255, 255, 255, 0.07);
    color: #CBD5E1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5px 11px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.erp-tab-btn.active,
.erp-tab-btn:hover {
    background: var(--brand);
    color: #FFFFFF;
    border-color: var(--brand);
}

.erp-preview-body {
    background: #F8FAFC;
    color: var(--ink);
    border-radius: 14px;
    padding: 18px;
    min-height: 350px;
}

.erp-pane {
    display: none;
    animation: fadePane 0.25s ease;
}

.erp-pane.active {
    display: block;
}

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

.erp-mini-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.erp-mini-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
}

.erp-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}

.erp-badge-green { background: #DCFCE7; color: #15803D; }
.erp-badge-orange { background: #FFEDD5; color: #C2410C; }
.erp-badge-blue { background: #DBEAFE; color: #1D4ED8; }

.erp-kpi-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.erp-kpi-box {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
}

.erp-kpi-box small {
    display: block;
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
}

.erp-kpi-box strong {
    font-size: 15px;
    color: var(--ink);
    font-weight: 800;
}

.erp-list-card {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 12.5px;
}

.erp-list-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #E2E8F0;
}

.erp-list-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* ============ SECTIONS ============ */
.tm-section {
    padding: 88px 0;
    position: relative;
}

.tm-section.soft {
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.tm-section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 52px;
}

.tm-section-head .eyebrow {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand);
    background: var(--brand-light);
    border: 1px solid rgba(249, 115, 22, 0.2);
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.tm-section-head h2 {
    font-size: clamp(26px, 3.2vw, 38px);
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 14px;
    line-height: 1.22;
}

.tm-section-head p {
    color: var(--muted);
    font-size: 16px;
    margin: 0;
}

/* ============ FEATURE CARDS ============ */
.tm-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tm-feature-card {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 30px 26px;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.tm-feature-card::top,
.tm-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.tm-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 36px -10px rgba(234, 88, 12, 0.18), 0 0 0 1px rgba(234, 88, 12, 0.35);
    border-color: var(--brand-mid);
}

.tm-feature-card:hover::before {
    opacity: 1;
}

.tm-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--brand-light);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    transition: transform 0.25s ease;
}

.tm-feature-card:hover .tm-feature-icon {
    transform: scale(1.06);
}

.tm-feature-card h3 {
    font-size: 18.5px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--ink);
}

.tm-feature-card p {
    font-size: 14.2px;
    color: var(--muted);
    margin: 0 0 18px;
    flex: 1;
}

.tm-feature-list {
    list-style: none;
    padding: 14px 0 0;
    margin: 0;
    border-top: 1px solid #F1F5F9;
}

.tm-feature-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 7px;
}

.tm-feature-list li:last-child {
    margin-bottom: 0;
}

/* ============ WHY FLEETSRP (CUSTOM SHOWCASE VISUAL) ============ */
.tm-why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 52px;
    align-items: center;
}

.tm-why-frame {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 14px;
    box-shadow: var(--shadow-lg);
}

.tm-why-frame img {
    border-radius: 14px;
    width: 100%;
    object-fit: cover;
}

.tm-compare-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
}

.tm-compare-box {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 12.5px;
}

.tm-compare-box.old {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
}

.tm-compare-box.new {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    color: #166534;
}

.tm-why-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
}

.tm-why-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.tm-why-list .check-pill {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--brand-light);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    margin-top: 2px;
}

/* ============ WORKFLOW STEPS ============ */
.tm-step-card {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    height: 100%;
    transition: all 0.25s ease;
}

.tm-step-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand);
    box-shadow: var(--shadow-md);
}

.tm-step-num {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--ink);
    color: #FFFFFF;
    font-weight: 800;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    transition: background 0.25s ease;
}

.tm-step-card:hover .tm-step-num {
    background: var(--brand);
}

.tm-step-card h5 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--ink);
}

.tm-step-card p {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

/* ============ REPORTS ============ */
.tm-report-card {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
    height: 100%;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: all 0.25s ease;
}

.tm-report-card:hover {
    border-color: var(--brand-mid);
    box-shadow: 0 16px 32px -10px rgba(234, 88, 12, 0.16), 0 0 0 1px rgba(234, 88, 12, 0.3);
    transform: translateY(-3px);
}

.tm-report-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #EFF6FF;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

/* ============ CLIENT TESTIMONIALS SCROLLER (UNIFIED PALETTE) ============ */
.tm-testimonials {
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    padding: 88px 0;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}

.tm-carousel-viewport {
    overflow: hidden;
    position: relative;
}

.tm-testimonial-track {
    display: flex;
    gap: 24px;
    scroll-behavior: smooth;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    padding: 6px 2px;
}

.tm-testimonial-track::-webkit-scrollbar {
    display: none;
}

.tm-testimonial-card {
    flex: 0 0 calc((100% - 48px) / 3);
    scroll-snap-align: start;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.tm-testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -10px rgba(234, 88, 12, 0.16), 0 0 0 1px rgba(234, 88, 12, 0.3);
    border-color: var(--brand-mid);
}

.tm-testimonial-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.tm-testimonial-avatar-img {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--brand);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
    flex-shrink: 0;
    background: #F1F5F9;
}

.tm-testimonial-msg {
    color: var(--ink-soft);
    font-size: 14.2px;
    line-height: 1.75;
    margin: 0;
    font-style: italic;
    padding-left: 14px;
    border-left: 3px solid var(--brand);
}

.tm-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 32px;
}

.tm-carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #FFFFFF;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.tm-carousel-btn:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #FFFFFF;
}

.tm-carousel-dots {
    display: flex;
    align-items: center;
    gap: 7px;
}

.tm-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #CBD5E1;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.25s ease;
}

.tm-carousel-dot.active {
    width: 24px;
    background: var(--brand);
}

/* ============ BLOG HORIZONTAL SCROLLER ============ */
.tm-blog-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.tm-blog-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tm-light-nav-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #FFFFFF;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.tm-light-nav-btn:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-light);
}

.tm-blog-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 6px 2px 12px;
}

.tm-blog-track::-webkit-scrollbar {
    display: none;
}

.tm-blog-slide {
    flex: 0 0 calc((100% - 48px) / 3);
    scroll-snap-align: start;
}

/* ============ FAQ ACCORDION ============ */
.tm-faq-wrap {
    max-width: 820px;
    margin: 0 auto;
}

.tm-faq-item {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tm-faq-item.active {
    border-color: var(--brand);
    box-shadow: var(--shadow-sm);
}

.tm-faq-q {
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--ink);
}

.tm-faq-q .q-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--brand-light);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, background 0.25s ease;
}

.tm-faq-item.active .tm-faq-q .q-icon {
    background: var(--brand);
    color: #FFFFFF;
    transform: rotate(45deg);
}

.tm-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.tm-faq-a-inner {
    padding: 0 24px 20px;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.75;
}

.tm-faq-item.active .tm-faq-a {
    max-height: 320px;
}

/* ============ CTA BANNER ============ */
.tm-cta-banner {
    padding: 84px 24px;
    background: linear-gradient(135deg, #060B14 0%, #0F172A 100%);
    text-align: center;
    color: #FFFFFF;
}

.tm-cta-inner {
    max-width: 760px;
    margin: 0 auto;
}

.tm-cta-inner h2 {
    font-size: clamp(28px, 3.6vw, 42px);
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.tm-cta-inner p {
    color: #CBD5E1;
    font-size: 16.5px;
    margin-bottom: 32px;
}

.btn-accent-tm {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    color: var(--ink) !important;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.25s ease;
}

.btn-accent-tm:hover {
    transform: translateY(-2px);
    color: var(--brand) !important;
}

/* ============ CONTACT CARDS ============ */
.tm-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1020px;
    margin: 0 auto;
}

.tm-contact-card {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.25s ease;
}

.tm-contact-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-mid);
    box-shadow: 0 16px 32px -10px rgba(234, 88, 12, 0.18), 0 0 0 1px rgba(234, 88, 12, 0.35);
}

.tm-contact-card .icon {
    width: 58px;
    height: 58px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-mid) 100%);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    margin-bottom: 16px;
    box-shadow: 0 10px 24px -6px rgba(249, 115, 22, 0.42);
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.tm-contact-card:hover .icon {
    transform: scale(1.06);
    background: linear-gradient(135deg, var(--brand-mid) 0%, var(--brand-dark) 100%);
    box-shadow: 0 14px 28px -6px rgba(234, 88, 12, 0.5);
}

.tm-contact-card h5 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}

.tm-contact-card a {
    color: var(--brand-mid);
    font-weight: 600;
    font-size: 15px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 991px) {
    .tm-hero-grid,
    .tm-why-grid,
    .tm-feature-grid,
    .tm-contact-grid {
        grid-template-columns: 1fr;
    }
    .tm-hero {
        padding: 118px 0 64px;
    }
    .tm-hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .tm-testimonial-card,
    .tm-blog-slide {
        flex: 0 0 calc((100% - 24px) / 2);
    }
}


@media (max-width: 640px) {
    .tm-testimonial-card,
    .tm-blog-slide {
        flex: 0 0 100%;
    }
    .erp-kpi-row,
    .tm-compare-strip {
        grid-template-columns: 1fr;
    }
}
