:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    --secondary: #64748b;
    --dark: #0f172a;
    --dark-surface: #1e293b;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --sidebar-width: 260px;
    --topbar-height: 68px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: var(--light-bg);
    color: #1e293b;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Sidebar */
.app-sidebar {
    width: var(--sidebar-width);
    background-color: var(--dark);
    color: #94a3b8;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
}

.sidebar-header {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.sidebar-brand i {
    color: #818cf8;
    font-size: 1.4rem;
}

.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0.75rem;
    /* Hide scrollbar in Firefox and Edge/IE while preserving scrollability */
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar in Chrome, Safari, Opera and modern Edge */
.sidebar-menu::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.sidebar-heading {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    font-weight: 700;
    padding: 0.75rem 0.75rem 0.35rem 0.75rem;
}

.nav-link-custom {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    color: #94a3b8;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 2px;
}

.nav-link-custom:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.06);
}

.nav-link-custom.active {
    color: #ffffff;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.nav-link-custom i {
    font-size: 1.05rem;
    width: 20px;
    text-align: center;
}

/* Submenu dropdown */
.nav-submenu {
    padding-left: 1.25rem;
    display: none;
    border-left: 2px solid rgba(255, 255, 255, 0.08);
    margin-left: 1.25rem;
    margin-top: 2px;
    margin-bottom: 4px;
}

.nav-submenu.show {
    display: block;
}

.nav-submenu .nav-link-custom {
    padding: 0.45rem 0.75rem;
    font-size: 0.84rem;
}

.nav-submenu .nav-submenu {
    padding-left: 1rem;
    margin-left: 0.75rem;
    border-left: 1px dashed rgba(255, 255, 255, 0.12);
}

.nav-link-custom .submenu-arrow {
    font-size: 0.72rem;
    transition: transform 0.25s ease;
}

.nav-link-custom[aria-expanded="true"] > .submenu-arrow,
.nav-link-custom:not(.collapsed) > .submenu-arrow {
    transform: rotate(180deg);
}

.nav-link-custom.collapsed > .submenu-arrow {
    transform: rotate(0deg);
}

/* App Wrapper & Main Content */
.app-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}

/* Top Navbar */
.app-navbar {
    height: var(--topbar-height);
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1020;
    display: flex;
    align-items: center;
    padding: 0 1.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.topbar-search {
    position: relative;
    width: 320px;
}

.topbar-search input {
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    padding-left: 2.25rem;
    font-size: 0.86rem;
}

.topbar-search i {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.85rem;
}

/* Main Container */
.app-content {
    flex: 1;
    padding: 1.75rem;
}

/* Modern Card Custom */
.card-custom {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius-md);
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    margin-bottom: 1.5rem;
}

.card-custom:hover {
    box-shadow: var(--card-shadow-hover);
}

.card-header-custom {
    padding: 1.15rem 1.35rem;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title-custom {
    font-size: 1.02rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-body-custom {
    padding: 1.35rem;
}

/* Metric KPI Cards with Unique Themed Backgrounds */
.kpi-card,
.kpi-card-unique {
    position: relative;
    border-radius: var(--radius-md);
    padding: 1.25rem 1.35rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px -2px rgba(15, 23, 42, 0.05);
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.kpi-card:hover,
.kpi-card-unique:hover {
    transform: translateY(-4px);
}

/* Background watermark icon for cards */
.kpi-watermark {
    position: absolute;
    right: -10px;
    bottom: -15px;
    font-size: 5.2rem;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
    transition: all 0.3s ease;
    line-height: 1;
}

.kpi-card:hover .kpi-watermark,
.kpi-card-unique:hover .kpi-watermark {
    opacity: 0.09;
    transform: scale(1.08) rotate(-4deg);
}

.kpi-content {
    position: relative;
    z-index: 2;
}

.kpi-title {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.kpi-value {
    font-size: 1.55rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.kpi-icon-glow {
    position: relative;
    z-index: 2;
    width: 54px;
    height: 54px;
    min-width: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    color: #ffffff;
    transition: all 0.3s ease;
}

.kpi-card:hover .kpi-icon-glow,
.kpi-card-unique:hover .kpi-icon-glow {
    transform: scale(1.08) rotate(3deg);
}

/* 1. Sales / Collections Theme */
.kpi-theme-sales {
    background: linear-gradient(135deg, #ffffff 0%, #f4f6ff 55%, #e8edff 100%);
    border: 1px solid rgba(79, 70, 229, 0.22);
}
.kpi-theme-sales:hover {
    border-color: rgba(79, 70, 229, 0.45);
    box-shadow: 0 14px 28px -4px rgba(79, 70, 229, 0.16);
}
.kpi-theme-sales .kpi-icon-glow {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    box-shadow: 0 8px 18px -2px rgba(79, 70, 229, 0.4);
}

/* 2. Service Revenue Theme */
.kpi-theme-service {
    background: linear-gradient(135deg, #ffffff 0%, #f0fbff 55%, #ddf6fd 100%);
    border: 1px solid rgba(6, 182, 212, 0.22);
}
.kpi-theme-service:hover {
    border-color: rgba(6, 182, 212, 0.45);
    box-shadow: 0 14px 28px -4px rgba(6, 182, 212, 0.16);
}
.kpi-theme-service .kpi-icon-glow {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    box-shadow: 0 8px 18px -2px rgba(6, 182, 212, 0.4);
}

/* 3. Parts Sales Theme */
.kpi-theme-parts {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 55%, #dafbe6 100%);
    border: 1px solid rgba(16, 185, 129, 0.22);
}
.kpi-theme-parts:hover {
    border-color: rgba(16, 185, 129, 0.45);
    box-shadow: 0 14px 28px -4px rgba(16, 185, 129, 0.16);
}
.kpi-theme-parts .kpi-icon-glow {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 8px 18px -2px rgba(16, 185, 129, 0.4);
}

/* 4. Net Profit Theme */
.kpi-theme-profit-pos {
    background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 55%, #cbf7e3 100%);
    border: 1px solid rgba(16, 185, 129, 0.26);
}
.kpi-theme-profit-pos:hover {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 14px 28px -4px rgba(16, 185, 129, 0.18);
}
.kpi-theme-profit-pos .kpi-icon-glow {
    background: linear-gradient(135deg, #059669 0%, #34d399 100%);
    box-shadow: 0 8px 18px -2px rgba(16, 185, 129, 0.4);
}

.kpi-theme-profit-neg {
    background: linear-gradient(135deg, #ffffff 0%, #fff1f2 55%, #ffdce0 100%);
    border: 1px solid rgba(239, 68, 68, 0.26);
}
.kpi-theme-profit-neg:hover {
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 14px 28px -4px rgba(239, 68, 68, 0.18);
}
.kpi-theme-profit-neg .kpi-icon-glow {
    background: linear-gradient(135deg, #ef4444 0%, #f43f5e 100%);
    box-shadow: 0 8px 18px -2px rgba(239, 68, 68, 0.4);
}

/* 5. Total Customers Theme */
.kpi-theme-customers {
    background: linear-gradient(135deg, #ffffff 0%, #faf5ff 55%, #f1e4ff 100%);
    border: 1px solid rgba(168, 85, 247, 0.22);
}
.kpi-theme-customers:hover {
    border-color: rgba(168, 85, 247, 0.45);
    box-shadow: 0 14px 28px -4px rgba(168, 85, 247, 0.16);
}
.kpi-theme-customers .kpi-icon-glow {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    box-shadow: 0 8px 18px -2px rgba(139, 92, 246, 0.4);
}

/* 6. Total Vehicles Theme */
.kpi-theme-vehicles {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 55%, #dbeafe 100%);
    border: 1px solid rgba(59, 130, 246, 0.22);
}
.kpi-theme-vehicles:hover {
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 14px 28px -4px rgba(59, 130, 246, 0.16);
}
.kpi-theme-vehicles .kpi-icon-glow {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    box-shadow: 0 8px 18px -2px rgba(37, 99, 235, 0.4);
}

/* 7. Pending Receivables Theme */
.kpi-theme-receivables {
    background: linear-gradient(135deg, #ffffff 0%, #fff1f2 55%, #ffe2e5 100%);
    border: 1px solid rgba(239, 68, 68, 0.24);
}
.kpi-theme-receivables:hover {
    border-color: rgba(239, 68, 68, 0.48);
    box-shadow: 0 14px 28px -4px rgba(239, 68, 68, 0.18);
}
.kpi-theme-receivables .kpi-icon-glow {
    background: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%);
    box-shadow: 0 8px 18px -2px rgba(225, 29, 72, 0.4);
}

/* 8. Today's Expenses Theme */
.kpi-theme-expenses {
    background: linear-gradient(135deg, #ffffff 0%, #fffbeb 55%, #fef3c7 100%);
    border: 1px solid rgba(245, 158, 11, 0.24);
}
.kpi-theme-expenses:hover {
    border-color: rgba(245, 158, 11, 0.48);
    box-shadow: 0 14px 28px -4px rgba(245, 158, 11, 0.18);
}
.kpi-theme-expenses .kpi-icon-glow {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    box-shadow: 0 8px 18px -2px rgba(217, 119, 6, 0.4);
}

/* Operational Alert Banner Cards */
.alert-card-unique {
    position: relative;
    border-radius: var(--radius-md);
    padding: 1.15rem 1.25rem;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.alert-card-unique:hover {
    transform: translateY(-3px);
}
.alert-card-warning {
    background: linear-gradient(135deg, #ffffff 0%, #fffbeb 60%, #fef3c7 100%);
    border: 1px solid rgba(245, 158, 11, 0.28);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.08);
}
.alert-card-warning:hover {
    border-color: rgba(245, 158, 11, 0.45);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.15);
}
.alert-card-danger {
    background: linear-gradient(135deg, #ffffff 0%, #fff1f2 60%, #ffe4e6 100%);
    border: 1px solid rgba(239, 68, 68, 0.28);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.08);
}
.alert-card-danger:hover {
    border-color: rgba(239, 68, 68, 0.45);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.15);
}
.alert-card-primary {
    background: linear-gradient(135deg, #ffffff 0%, #eef2ff 60%, #e0e7ff 100%);
    border: 1px solid rgba(79, 70, 229, 0.28);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.08);
}
.alert-card-primary:hover {
    border-color: rgba(79, 70, 229, 0.45);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.15);
}

/* ==========================================================================
   Hero Profile Cards & Sitewide Unique Card System
   ========================================================================== */
.card-hero-profile {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 55%, #f1f5f9 100%);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    transition: all 0.25s ease;
}
.card-hero-profile:hover {
    box-shadow: 0 8px 22px -3px rgba(15, 23, 42, 0.08);
    border-color: rgba(203, 213, 225, 0.9);
}

.hero-avatar-circle {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.28);
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
}
.hero-avatar-circle.vehicle {
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.28);
}
.hero-avatar-circle.jobcard {
    background: linear-gradient(135deg, #d97706 0%, #fbbf24 100%);
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.28);
}

.card-hero-profile .hero-watermark {
    position: absolute;
    right: 15px;
    bottom: -20px;
    font-size: 7rem;
    opacity: 0.04;
    pointer-events: none;
    line-height: 1;
    transition: all 0.3s ease;
}
.card-hero-profile:hover .hero-watermark {
    opacity: 0.07;
    transform: scale(1.05) rotate(-3deg);
}

/* Vehicle Item Card */
.card-vehicle-item {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 65%, #f0f7ff 100%);
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}
.card-vehicle-item:hover {
    transform: translateY(-3px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 10px 22px -3px rgba(59, 130, 246, 0.12);
}
.card-vehicle-item .vehicle-watermark {
    position: absolute;
    right: -10px;
    bottom: -15px;
    font-size: 5rem;
    opacity: 0.04;
    pointer-events: none;
    transition: all 0.3s ease;
}
.card-vehicle-item:hover .vehicle-watermark {
    opacity: 0.08;
    transform: scale(1.08) rotate(-4deg);
}

/* Notification Channel Cards */
.channel-card-unique {
    position: relative;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.04);
}
.channel-card-unique:hover {
    transform: translateY(-3px);
}
.channel-card-unique.whatsapp {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 60%, #dcfce7 100%);
    border: 1px solid rgba(16, 185, 129, 0.28);
}
.channel-card-unique.whatsapp:hover {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 12px 24px -4px rgba(16, 185, 129, 0.16);
}
.channel-card-unique.smtp {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 60%, #dbeafe 100%);
    border: 1px solid rgba(59, 130, 246, 0.28);
}
.channel-card-unique.smtp:hover {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 12px 24px -4px rgba(59, 130, 246, 0.16);
}
.channel-card-unique.firebase {
    background: linear-gradient(135deg, #ffffff 0%, #fffbeb 60%, #fef3c7 100%);
    border: 1px solid rgba(245, 158, 11, 0.28);
}
.channel-card-unique.firebase:hover {
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 12px 24px -4px rgba(245, 158, 11, 0.16);
}
.channel-card-unique .channel-watermark {
    position: absolute;
    right: -10px;
    bottom: -15px;
    font-size: 5.5rem;
    opacity: 0.05;
    pointer-events: none;
    transition: all 0.3s ease;
}
.channel-card-unique:hover .channel-watermark {
    opacity: 0.09;
    transform: scale(1.08) rotate(-4deg);
}

/* Additional KPI Themes */
.kpi-theme-info {
    background: linear-gradient(135deg, #ffffff 0%, #f0fbff 55%, #e0f2fe 100%);
    border: 1px solid rgba(2, 132, 199, 0.24);
}
.kpi-theme-info:hover {
    border-color: rgba(2, 132, 199, 0.48);
    box-shadow: 0 14px 28px -4px rgba(2, 132, 199, 0.18);
}
.kpi-theme-info .kpi-icon-glow {
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
    box-shadow: 0 8px 18px -2px rgba(2, 132, 199, 0.4);
}

.kpi-theme-warning {
    background: linear-gradient(135deg, #ffffff 0%, #fffbeb 55%, #fef3c7 100%);
    border: 1px solid rgba(245, 158, 11, 0.24);
}
.kpi-theme-warning:hover {
    border-color: rgba(245, 158, 11, 0.48);
    box-shadow: 0 14px 28px -4px rgba(245, 158, 11, 0.18);
}
.kpi-theme-warning .kpi-icon-glow {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    box-shadow: 0 8px 18px -2px rgba(217, 119, 6, 0.4);
}

.btn-alert-nav {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #475569;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    text-decoration: none;
}
.btn-alert-nav:hover {
    transform: translateX(3px) scale(1.05);
    color: #0f172a;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Attractive Buttons Design System
   ========================================================================== */
.btn-dash-pos {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #7c3aed 100%);
    color: #ffffff !important;
    border: none;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.38);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 700;
    letter-spacing: 0.01em;
}
.btn-dash-pos:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 22px rgba(79, 70, 229, 0.52);
    color: #ffffff;
}
.btn-dash-pos:active {
    transform: translateY(0) scale(0.99);
}

.btn-dash-jobcard {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
    transition: all 0.25s ease;
    font-weight: 600;
}
.btn-dash-jobcard:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.35);
    color: #ffffff;
}
.btn-dash-jobcard:active {
    transform: translateY(0);
}

.btn-dash-viewall {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.38rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.btn-dash-viewall:hover {
    background: #f8fafc;
    color: #4f46e5;
    border-color: #c7d2fe;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(79, 70, 229, 0.14);
}
.btn-dash-viewall i {
    font-size: 0.72rem;
    transition: transform 0.2s ease;
}
.btn-dash-viewall:hover i {
    transform: translateX(2px);
}

.btn-dash-action-collect {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 9999px;
    padding: 0.38rem 0.95rem;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
}
.btn-dash-action-collect:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.45);
    color: #ffffff;
}

.btn-dash-action-job {
    background: #eef2ff;
    color: #4f46e5 !important;
    border: 1px solid #c7d2fe;
    border-radius: 9999px;
    padding: 0.38rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
}
.btn-dash-action-job:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #ffffff !important;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
    transform: translateY(-2px);
}

/* User & Customer Micro Avatars */
.avatar-circle-sm {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
}
.avatar-circle-sm.primary {
    background: #eef2ff;
    color: #4f46e5;
    border: 1px solid #c7d2fe;
}
.avatar-circle-sm.success {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}
.avatar-circle-sm.warning {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}
.avatar-circle-sm.danger {
    background: #fff1f2;
    color: #e11d48;
    border: 1px solid #fecdd3;
}
.avatar-circle-sm.info {
    background: #ecfeff;
    color: #0891b2;
    border: 1px solid #a5f3fc;
}

/* Live Pulsing Dot Indicator */
.status-indicator-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
}
.status-indicator-dot.active-paid {
    background-color: #10b981;
}
.status-indicator-dot.active-partial {
    background-color: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}
.status-indicator-dot.active-unpaid {
    background-color: #ef4444;
    animation: statusPulse 1.8s infinite;
}
@keyframes statusPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 5px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Stock Mini Progress Meter */
.stock-meter-wrap {
    width: 100%;
    max-width: 130px;
}
.stock-meter-bar {
    height: 6px;
    border-radius: 9999px;
    background: #f1f5f9;
    overflow: hidden;
    position: relative;
}
.stock-meter-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.3s ease;
}

/* ==========================================================================
   Dashboard Record Tables: Auto Width, Proper Padding & No-Wrap Layout
   ========================================================================== */
.table-recent-invoices,
.table-dashboard-records {
    width: 100%;
    table-layout: auto;
}

.table-recent-invoices th,
.table-recent-invoices td,
.table-dashboard-records th,
.table-dashboard-records td {
    width: auto !important;
    white-space: nowrap !important;
    vertical-align: middle;
}

.table-recent-invoices th.col-action,
.table-recent-invoices td.col-action,
.table-dashboard-records th.col-action,
.table-dashboard-records td.col-action {
    width: 1% !important;
    white-space: nowrap !important;
    text-align: right;
}

.shadow-xs {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Soft Badges */
.badge-soft-primary {
    background-color: #e0e7ff;
    color: #4338ca;
    font-weight: 600;
}

.badge-soft-success {
    background-color: #d1fae5;
    color: #065f46;
    font-weight: 600;
}

.badge-soft-warning {
    background-color: #fef3c7;
    color: #92400e;
    font-weight: 600;
}

.badge-soft-danger {
    background-color: #fee2e2;
    color: #991b1b;
    font-weight: 600;
}

.badge-soft-info {
    background-color: #e0f2fe;
    color: #0369a1;
    font-weight: 600;
}

.badge-soft-secondary {
    background-color: #f1f5f9;
    color: #475569;
    font-weight: 600;
}

.bg-indigo-subtle {
    background-color: #e0e7ff !important;
}

.border-indigo-subtle {
    border-color: #c7d2fe !important;
}

/* ==========================================================================
   Creative & Attractive Modern Tables
   ========================================================================== */
.card-table-wrapper {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: all 0.25s ease;
}

.table-custom {
    margin: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-custom thead {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    position: sticky;
    top: 0;
    z-index: 2;
}

.table-custom thead th {
    background: transparent;
    color: #475569;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.95rem 1.15rem;
    border-top: none;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.table-custom tbody td {
    padding: 0.95rem 1.15rem;
    vertical-align: middle;
    font-size: 0.875rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    background-color: #ffffff;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

/* Elegant row hover with accent left border highlight */
.table-custom tbody tr {
    transition: all 0.18s ease-in-out;
}

.table-custom tbody tr:hover td {
    background-color: #f8faff !important;
}

.table-custom tbody tr:hover td:first-child {
    box-shadow: inset 3.5px 0 0 #4f46e5;
}

/* Striped subtle alternate rows if .table-striped is present */
.table-custom.table-striped tbody tr:nth-of-type(odd) td {
    background-color: #fafbfc;
}

/* Custom Table Monospace Badges for IDs, Reg Numbers, Codes */
.table-badge-code {
    font-family: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    background-color: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.table-badge-code.primary {
    background-color: #eef2ff;
    color: #4338ca;
    border-color: #c7d2fe;
}

.table-badge-code.danger {
    background-color: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.table-badge-code.success {
    background-color: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}

.table-badge-code.warning {
    background-color: #fffbeb;
    color: #b45309;
    border-color: #fde68a;
}

.table-badge-code.info {
    background-color: #f0f9ff;
    color: #0369a1;
    border-color: #bae6fd;
}

/* Attractive Action Buttons inside table rows */
.table-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    font-size: 0.82rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    cursor: pointer;
}

.table-action-btn:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.table-action-btn.btn-view:hover,
.table-action-btn.view:hover {
    background-color: #e0f2fe;
    color: #0284c7;
    border-color: #bae6fd;
}

.table-action-btn.btn-edit:hover,
.table-action-btn.edit:hover {
    background-color: #eef2ff;
    color: #4f46e5;
    border-color: #c7d2fe;
}

.table-action-btn.btn-delete:hover,
.table-action-btn.delete:hover {
    background-color: #fee2e2;
    color: #dc2626;
    border-color: #fecaca;
}

.table-action-btn.btn-print:hover,
.table-action-btn.print:hover {
    background-color: #f1f5f9;
    color: #334155;
    border-color: #cbd5e1;
}

/* Empty State Box in Tables */
.table-empty-box {
    padding: 3.5rem 1.5rem;
    text-align: center;
}

.table-empty-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border: 1px dashed #cbd5e1;
}

/* Sleek Scrollbar for Tables */
.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ==========================================================================
   Creative & Attractive Modern Pagination
   ========================================================================== */
.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.1rem 1.35rem;
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
}

/* Bootstrap 5 & Custom Pagination Overrides */
.pagination {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination .page-item {
    margin: 0;
}

.pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.65rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    text-decoration: none;
}

.pagination .page-link:hover {
    color: var(--primary);
    background-color: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07);
}

.pagination .page-item.active .page-link {
    color: #ffffff !important;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
    border-color: #4f46e5 !important;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.35);
}

.pagination .page-item.disabled .page-link {
    color: #94a3b8;
    background-color: #f8fafc;
    border-color: #f1f5f9;
    cursor: not-allowed;
    opacity: 0.65;
    box-shadow: none;
    transform: none;
}

/* DataTables pagination & controls styling */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 8px !important;
    padding: 0.35rem 0.75rem !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #475569 !important;
    transition: all 0.2s ease !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
    color: #ffffff !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.35) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #f8fafc !important;
    color: var(--primary) !important;
    border-color: #cbd5e1 !important;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.35rem 0.65rem;
    font-size: 0.85rem;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
    border-color: #4f46e5;
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* Fullscreen / Modern POS Layout */
.pos-container {
    display: flex;
    height: calc(100vh - var(--topbar-height) - 3.5rem);
    gap: 1.25rem;
}

.pos-left-catalog {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--card-shadow);
}

.pos-right-cart {
    width: 440px;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--card-shadow);
}

.pos-catalog-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.pos-catalog-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
}

.pos-cart-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    background-color: #f8fafc;
}

.pos-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.pos-cart-footer {
    padding: 1.25rem;
    border-top: 1px solid var(--border-color);
    background-color: #ffffff;
}

.pos-item-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pos-item-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.14);
}

.pos-card-img-wrap {
    transition: all 0.25s ease;
}

.pos-item-card:hover .pos-card-img {
    transform: scale(1.05);
}

.pos-card-img {
    transition: transform 0.25s ease;
}

.pos-cart-item {
    padding: 0.75rem 0;
    border-bottom: 1px dashed var(--border-color);
}

.pos-cart-item:last-child {
    border-bottom: none;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
}

.qty-btn:hover {
    background-color: #f1f5f9;
}

/* Printable Invoice / Job Card Styles */
@media print {
    body {
        background-color: #ffffff !important;
    }
    .app-sidebar, .app-navbar, .no-print, .btn, .breadcrumb {
        display: none !important;
    }
    .app-wrapper {
        margin: 0 !important;
        padding: 0 !important;
    }
    .app-content {
        padding: 0 !important;
    }
    .print-container {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: none !important;
    }
}

/* Sidebar Toggle & Header Action Buttons */
.header-page-title {
    color: #0f172a;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.btn-sidebar-toggle {
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: #ffffff;
    color: #475569;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-sidebar-toggle:hover {
    background-color: var(--primary-light);
    color: var(--primary);
    border-color: #c7d2fe;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.12);
}

.btn-sidebar-toggle:active {
    transform: translateY(0);
}

.btn-sidebar-close {
    width: 30px;
    height: 30px;
    min-width: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    padding: 0;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-sidebar-close:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Mobile Sidebar Backdrop */
.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1035;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

/* Desktop Collapse (Screens 992px and up) */
@media (min-width: 992px) {
    html.sidebar-hidden body .app-sidebar,
    body.sidebar-hidden .app-sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }
    html.sidebar-hidden body .app-wrapper,
    body.sidebar-hidden .app-wrapper {
        margin-left: 0;
    }
}

/* Responsive Mobile Sidebar Offcanvas */
@media (max-width: 991.98px) {
    .app-sidebar {
        transform: translateX(-100%);
    }
    .app-sidebar.show-sidebar,
    body.sidebar-mobile-open .app-sidebar {
        transform: translateX(0);
    }
    body.sidebar-mobile-open .sidebar-backdrop {
        opacity: 1;
        visibility: visible;
    }
    .app-wrapper {
        margin-left: 0;
    }
    .pos-container {
        flex-direction: column;
        height: auto;
    }
    .pos-right-cart {
        width: 100%;
    }
}

/* ==========================================================================
   Navbar Notification Dropdown & Service Alerts (5 Days) Window
   ========================================================================== */

.btn-navbar-notify {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    font-size: 1.1rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.btn-navbar-notify:hover,
.btn-navbar-notify:focus {
    background: #f8fafc;
    color: #4f46e5;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.15);
}

.notify-badge-pill {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.notify-pulse-ring {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 9999px;
    border: 2px solid #ef4444;
    animation: notifyPulse 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
    pointer-events: none;
}

@keyframes notifyPulse {
    0% { transform: scale(0.95); opacity: 0.9; }
    70% { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* Notification Window Dropdown Container */
.navbar-notify-window {
    width: 410px;
    max-width: calc(100vw - 24px);
    border-radius: 16px !important;
    background: #ffffff;
    box-shadow: 0 20px 45px -8px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(15, 23, 42, 0.07) !important;
    overflow: hidden;
    margin-top: 10px !important;
    animation: dropdownFadeSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownFadeSlide {
    0% { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Notification Window Header */
.notify-window-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid #f1f5f9;
    padding: 13px 18px;
}

.notify-header-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
    flex-shrink: 0;
}

.notify-header-title {
    font-weight: 700;
    font-size: 0.92rem;
    color: #0f172a;
    line-height: 1.2;
}

.notify-header-sub {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 1px;
}

/* Notification Window Body */
.notify-window-body {
    max-height: 380px;
    overflow-y: auto;
    padding: 12px;
    background: #fbfcfe;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.notify-window-body::-webkit-scrollbar {
    width: 5px;
}
.notify-window-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

/* Service Alert Record Card */
.notify-record-card {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    padding: 11px 12px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 11px;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    border-left: 3.5px solid #cbd5e1;
}

.notify-record-card:last-child {
    margin-bottom: 0;
}

.notify-record-card:hover {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.notify-record-card.urgent {
    border-left-color: #f59e0b;
    background: #ffffff;
}

.notify-record-card.critical {
    border-left-color: #ef4444;
    background: #fffafa;
}

/* Vehicle Avatar Circle */
.notify-card-avatar {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    position: relative;
    flex-shrink: 0;
}

.notify-card-avatar.warning {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fef3c7;
}

.notify-card-avatar.urgent {
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #ffedd5;
}

.notify-card-avatar.critical {
    background: #fff1f2;
    color: #e11d48;
    border: 1px solid #ffe4e6;
}

.notify-avatar-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    border: 1.5px solid #ffffff;
    animation: statusPulse 1.8s infinite;
}

/* Middle Info Details */
.notify-card-main {
    min-width: 0;
    flex: 1 1 auto;
}

.notify-plate-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    max-width: 200px;
}

.notify-plate-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 5px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #f8fafc;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.notify-model-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e293b;
}

.notify-plate-link:hover .notify-model-name {
    color: #4f46e5;
}

/* Due Status Pills */
.notify-due-pill {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
}

.notify-due-pill.critical {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.notify-due-pill.urgent {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fde68a;
}

.notify-due-pill.normal {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

/* Card Meta Line */
.notify-card-meta {
    font-size: 0.73rem;
    color: #64748b;
    margin-top: 3px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notify-customer-info {
    max-width: 175px;
    color: #475569;
}

.notify-meta-separator {
    margin: 0 4px;
    color: #cbd5e1;
}

.notify-phone-link {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
}

.notify-phone-link:hover {
    text-decoration: underline;
}

.notify-date-info {
    font-size: 0.71rem;
    color: #64748b;
    font-weight: 500;
}

/* Right Quick Action Button */
.btn-notify-job-card {
    background: #eef2ff;
    color: #4f46e5 !important;
    border: 1px solid #c7d2fe;
    border-radius: 8px;
    padding: 6px 9px;
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    line-height: 1;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-notify-job-card i {
    font-size: 0.78rem;
}

.btn-notify-job-card:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #ffffff !important;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.35);
    transform: scale(1.04);
}

/* Empty State */
.notify-empty-box {
    padding: 32px 20px;
    text-align: center;
    background: #ffffff;
    border-radius: 12px;
}

.notify-empty-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #059669;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 12px;
    border: 1px solid #a7f3d0;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

/* Footer Container */
.notify-window-footer {
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    padding: 11px 16px;
}

.btn-notify-viewall {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #4f46e5;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-notify-viewall:hover {
    color: #3730a3;
    transform: translateX(2px);
}

.btn-notify-newjob {
    font-size: 0.76rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 6px;
    background: #f1f5f9;
    transition: all 0.2s ease;
}

.btn-notify-newjob:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Global Solid Toastr Styling */
#toast-container > div {
    opacity: 1 !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.4), 0 6px 12px -3px rgba(0, 0, 0, 0.2) !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 0.92rem !important;
    padding: 16px 20px 16px 52px !important;
    color: #ffffff !important;
}
#toast-container > .toast-success {
    background-color: #10b981 !important; /* Vibrant Solid Green */
    border: 1px solid #059669 !important;
    border-left: 6px solid #047857 !important;
}
#toast-container > .toast-error {
    background-color: #ef4444 !important; /* Vibrant Solid Red */
    border: 1px solid #dc2626 !important;
    border-left: 6px solid #b91c1c !important;
}
#toast-container > .toast-warning {
    background-color: #f59e0b !important; /* Vibrant Solid Amber */
    border: 1px solid #d97706 !important;
    border-left: 6px solid #b45309 !important;
}
#toast-container > .toast-info {
    background-color: #4f46e5 !important; /* Vibrant Solid Indigo */
    border: 1px solid #4338ca !important;
    border-left: 6px solid #3730a3 !important;
}
#toast-container .toast-message {
    color: #ffffff !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}
#toast-container .toast-title {
    color: #ffffff !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important;
}
#toast-container .toast-close-button {
    color: #ffffff !important;
    opacity: 0.9 !important;
    text-shadow: none !important;
}
#toast-container .toast-close-button:hover {
    opacity: 1 !important;
}
#toast-container .toast-progress {
    background-color: rgba(255, 255, 255, 0.6) !important;
    height: 4px !important;
}

