:root {
    --primary: #005fd6;
    --primary-dark: #0047a8;
    --text: #10233f;
    --light: #f5f9ff;
    --dark: #071a33;
}

body.landing-page *,
body.landing-page *::before,
body.landing-page *::after {
    box-sizing: border-box;
}

body.landing-page {
    font-family: "Inter", sans-serif;
    color: var(--text);
    background: #fff;
}

body.landing-page .navbar-wrapper {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    padding: 18px 0;
}

body.landing-page .nav-container {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(15px);
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(0, 95, 214, 0.12);
    padding: 12px 25px;
}

body.landing-page .logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
}

body.landing-page .logo span {
    color: #10233f;
}

body.landing-page .nav-link {
    font-weight: 600;
    color: #334155 !important;
    margin: 0 12px;
    position: relative;
}

body.landing-page .nav-link:after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary);
    bottom: -5px;
    left: 0;
    transition: 0.3s;
}

body.landing-page .nav-link:hover:after {
    width: 100%;
}

body.landing-page .nav-link:hover {
    color: var(--primary) !important;
}

body.landing-page .login-btn {
    background: var(--primary);
    color: white;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 700;
    transition: 0.3s;
}

body.landing-page .login-btn:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
}

body.landing-page .hero {
    padding-top: 170px;
    padding-bottom: 100px;
    background:
        radial-gradient(circle at top right,
            rgba(0, 95, 214, 0.15),
            transparent 35%),
        linear-gradient(180deg, #ffffff, #f4f8ff);
}

body.landing-page .hero h1 {
    font-size: 58px;
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -2px;
}

body.landing-page .hero h1 span {
    color: var(--primary);
}

body.landing-page .hero p {
    font-size: 19px;
    line-height: 1.7;
    color: #64748b;
    margin-top: 25px;
    max-width: 560px;
}

body.landing-page .landing-highlight {
    color: var(--primary);
}

body.landing-page .primary-btn {
    background: var(--primary);
    color: white;
    padding: 15px 32px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
}

body.landing-page .primary-btn:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-3px);
}

body.landing-page .secondary-btn {
    border: 2px solid #dbeafe;
    color: var(--primary);
    padding: 13px 30px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    margin-left: 15px;
}

body.landing-page .dashboard-preview {
    background: white;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 35px 90px rgba(0, 95, 214, 0.2);
    transform: perspective(1200px) rotateY(-8deg);
}

body.landing-page .window-bar {
    height: 45px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding-left: 15px;
    gap: 7px;
}

body.landing-page .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
}

body.landing-page .crm-body {
    padding: 25px 10px;
}

body.landing-page .crm-box {
    background: #f8fbff;
    border-radius: 16px;
    padding: 20px;
}

body.landing-page .number {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
}

body.landing-page .progress {
    height: 8px;
}

body.landing-page .progress-bar {
    background: var(--primary);
}

body.landing-page .feature-box {
    background: white;
    padding: 35px;
    border-radius: 22px;
    height: 100%;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.06);
    transition: 0.3s;
}

body.landing-page .feature-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 95, 214, 0.15);
}

body.landing-page .icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: #e8f2ff;
    color: #005fd6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    margin-bottom: 25px;
}

body.landing-page .workflow-card {
    background: white;
    padding: 35px;
    border-radius: 20px;
    text-align: center;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

body.landing-page .workflow-card i {
    font-size: 35px;
    color: #005fd6;
    margin: 20px 0;
}

body.landing-page .step-number {
    font-weight: 800;
    color: #005fd6;
    font-size: 14px;
}

body.landing-page .icon-small {
    width: 40px;
    height: 40px;
    background: #e8f2ff;
    color: #005fd6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

body.landing-page .sales-dashboard {
    background: white;
    padding: 35px;
    border-radius: 25px;
    box-shadow: 0 30px 70px rgba(0, 95, 214, 0.15);
}

body.landing-page .sales-header {
    background: #005fd6;
    color: white;
    padding: 15px;
    border-radius: 15px;
    font-weight: 700;
}

body.landing-page .sales-dashboard h3 {
    color: #005fd6;
    font-weight: 800;
}

body.landing-page .activity {
    background: #f8fbff;
    padding: 15px;
    border-radius: 12px;
    margin-top: 15px;
}

body.landing-page .activity i {
    color: #005fd6;
    margin-right: 10px;
}

body.landing-page .dashboard-cta {
    background: #005fd6;
    padding: 55px;
    border-radius: 30px;
    color: white;
}

body.landing-page .dashboard-cta span {
    color: #dbeafe;
}

body.landing-page .white-btn {
    background: white;
    color: #005fd6;
    padding: 15px 35px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
}

body.landing-page .demo-card {
    background: white;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

body.landing-page .form-control {
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #dbeafe;
}

body.landing-page .contact-item {
    margin-bottom: 18px;
    font-weight: 600;
}

body.landing-page .contact-item i {
    color: #005fd6;
    margin-right: 10px;
}

body.landing-page .footer {
    background: #071a33;
    color: white;
    padding: 60px 0 30px;
}

body.landing-page .footer h3 {
    font-weight: 800;
    color: white;
}

body.landing-page .footer h6 {
    font-weight: 700;
    margin-bottom: 20px;
}

body.landing-page .footer a {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    margin-bottom: 10px;
}

body.landing-page .footer p {
    color: #cbd5e1;
}

body.landing-page .social-icons i {
    font-size: 20px;
    margin-right: 15px;
    color: white;
}

body.login-page *,
body.login-page *::before,
body.login-page *::after {
    box-sizing: border-box;
}

body.login-page {
    font-family: "Inter", sans-serif;
    height: 100vh;
    background: #f5f9ff;
}

body.login-page .login-wrapper {
    min-height: 100vh;
    display: flex;
}

body.login-page .brand-section {
    width: 50%;
    background: linear-gradient(135deg, #005fd6, #003c8f);
    color: white;
    padding: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

body.login-page .brand-section:before {
    content: "";
    position: absolute;
    width: 450px;
    height: 450px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    top: -150px;
    right: -150px;
}

body.login-page .logo {
    font-size: 34px;
    font-weight: 800;
    position: relative;
}

body.login-page .logo span {
    color: #dbeafe;
}

body.login-page .logo-link {
    display: inline-block;
    position: relative;
    z-index: 1;
    cursor: pointer;
}

body.login-page .logo-link:hover .logo {
    opacity: 0.85;
}

body.login-page .tagline {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    margin-top: 40px;
    position: relative;
}

body.login-page .tagline span {
    color: #dbeafe;
}

body.login-page .description {
    font-size: 18px;
    line-height: 1.7;
    margin-top: 25px;
    max-width: 500px;
    color: #e0ecff;
}

body.login-page .benefits {
    margin-top: 40px;
}

body.login-page .benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    font-weight: 600;
}

body.login-page .benefit-item i {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

body.login-page .crm-card {
    margin-top: 45px;
    background: white;
    border-radius: 20px;
    padding: 20px;
    color: #1e293b;
    width: 330px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.2);
}

body.login-page .crm-top {
    height: 12px;
    background: #e2e8f0;
    border-radius: 20px;
}

body.login-page .crm-stat {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

body.login-page .crm-stat strong {
    color: #005fd6;
    font-size: 22px;
}

body.login-page .login-section {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

body.login-page .login-card {
    width: 430px;
    background: white;
    padding: 45px;
    border-radius: 25px;
    box-shadow: 0 30px 80px rgba(0, 95, 214, 0.15);
}

body.login-page .login-card h2 {
    font-size: 32px;
    font-weight: 800;
}

body.login-page .subtitle {
    color: #64748b;
    margin-top: 10px;
    margin-bottom: 30px;
}

body.login-page .form-control {
    height: 52px;
    border-radius: 12px;
    border: 1px solid #dbeafe;
    padding-left: 45px;
}

body.login-page .log-field {
    position: relative;
}

body.login-page .field-icon {
    position: absolute;
    left: 16px;
    top: 17px;
    color: #005fd6;
    z-index: 5;
    pointer-events: none;
}

body.login-page .field-toggle {
    position: absolute;
    right: 18px;
    top: 17px;
    cursor: pointer;
    color: #64748b;
    z-index: 5;
}

body.login-page .login-btn {
    width: 100%;
    height: 55px;
    background: #005fd6;
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 16px;
    transition: 0.3s;
}

body.login-page .login-btn:hover {
    background: #0047a8;
}

body.login-page .role-select {
    height: 52px;
    border-radius: 12px;
    border: 1px solid #dbeafe;
    background-color: #fff;
    color: #334155;
    font-weight: 500;
    padding-left: 45px;
    cursor: pointer;
}

body.login-page .role-select:focus {
    border-color: #005fd6;
    box-shadow: 0 0 0 0.2rem rgba(0, 95, 214, 0.15);
}

body.portal-page {
    background: #eef2f7;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

body.portal-page .navbar {
    background: #005fd6;
}

body.portal-page .navbar-brand,
body.portal-page .nav-link {
    color: #fff !important;
    font-weight: 600;
}

.page-content .card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.page-customers .card,
.page-quotes .card {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 18px;
}

.page-leads .card {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.page-vehicles .card {
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 18px;
}

.page-documents .card,
.page-drivers .card,
.page-internalNotes .card,
.page-settings .card {
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.chart-wrapper {
    position: relative;
    height: 340px;
    width: 100%;
}

.page-vehicles .vehicle-chart-wrap,
body.page-vehicles .vehicle-chart-wrap {
    position: relative;
    height: 280px;
    width: 100%;
}

.page-vehicles .vehicle-line-chart-wrap,
body.page-vehicles .vehicle-line-chart-wrap {
    position: relative;
    height: 340px;
    width: 100%;
}

.page-vehicles .vehicle-health-item,
body.page-vehicles .vehicle-health-item {
    margin-bottom: .75rem;
}

.page-vehicles .vehicle-period-select,
body.page-vehicles .vehicle-period-select {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    font-size: .875rem;
    border: 1px solid #ced4da;
    border-radius: .375rem;
    background: #fff;
}

.page-reports .card {
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.page-content .card-header {
    background: #fff;
    font-weight: 700;
    border-bottom: 1px solid #eee;
}

.page-customers .card-header {
    border-bottom: none;
}

.page-quotes .card-header {
    font-weight: 600;
}

.page-vehicles .card-header {
    border-bottom: 1px solid #edf2f7;
    padding: 15px 20px;
}

.page-vehicles .btn-success,
.page-vehicles .btn-warning,
.page-vehicles .btn-info {
    border: none;
}

.page-content .table th {
    background: #005fd6;
    color: #fff;
    font-size: 13px;
}

.page-leads .table th,
.page-vehicles .table th {
    white-space: nowrap;
}

.page-quotes .table th {
    vertical-align: middle;
}

.page-leads .table td,
.page-quotes .table td,
.page-vehicles .table td {
    vertical-align: middle;
}

.page-vehicles .table-hover tbody tr:hover {
    background: #f8fbff;
}

.page-content .badge {
    font-size: 11px;
}

.page-content .progress {
    height: 7px;
}

.page-dashboard .progress {
    margin-top: 12px;
}

.page-performance .progress,
.page-quotes .progress {
    height: 8px;
}

.page-leads .progress {
    height: 18px;
}

.page-leads .card-body.scrollable {
    max-height: 260px;
    overflow: auto;
}

.page-leads .page-title {
    font-size: 28px;
    font-weight: bold;
}

.page-vehicles .nav-link:hover {
    opacity: 0.85;
}

.page-vehicles .timeline {
    border-left: 3px solid #005fd6;
    padding-left: 18px;
}

.page-vehicles .timeline-item {
    position: relative;
    padding-bottom: 18px;
}

.page-vehicles .timeline-item:before {
    content: "";
    position: absolute;
    left: -26px;
    top: 4px;
    width: 12px;
    height: 12px;
    background: #005fd6;
    border-radius: 50%;
}

.page-vehicles .modal-header {
    background: #005fd6;
    color: #fff;
}

.page-vehicles .modal-header .btn-close {
    filter: invert(1);
}

.page-vehicles .progress-sm {
    height: 8px;
}

.page-customers .avatar-lg {
    width: 90px;
    height: 90px;
    font-size: 34px;
}

.page-customers .form-select {
    width: 180px;
}

.page-customers .progress {
    height: 8px;
}

.page-customers .customer-period-select {
    width: 180px;
}

.page-customers .customer-health-item {
    margin-bottom: 28px;
}

body.portal-page .navbar {
    background: #005fd6;
}

body.portal-page .navbar-brand,
body.portal-page .nav-link {
    color: #fff !important;
    font-weight: 600;
}

.bread-crumb {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    padding: 28px;
    color: #fff;
    border-radius: 14px;
    background: linear-gradient(135deg, #005fd6, #0088ff);
}

.bread-crumb::after {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    content: "";
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.bread-crumb>.row {
    position: relative;
    z-index: 1;
}

.bread-crumb h2 {
    margin-bottom: 5px;
    color: #fff;
    font-weight: 700;
}

.bread-crumb p {
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.92);
    opacity: 0.9;
}

.bread-crumb .summary-box {
    padding: 12px;
    text-align: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
}

.bread-crumb .summary-box h4 {
    margin: 0;
    color: #fff;
    font-weight: 700;
}

.page-content .quick-action {
    padding: 18px;
    cursor: pointer;
    text-align: center;
    transition: transform 0.25s ease;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.page-content .quick-action:hover {
    transform: translateY(-4px);
}

.page-content .quick-action i {
    margin-bottom: 12px;
    font-size: 28px;
    color: #005fd6;
}

.page-content .filter-box {
    padding: 20px;
    border-radius: 14px;
    background: #fff;
}

.page-content .filter-box .form-control,
.page-content .filter-box .form-select {
    height: 42px;
    border-radius: 10px;
}

.page-dashboard .chart-card {
    min-height: 430px;
}

.page-dashboard .form-select {
    width: 170px;
}

.page-dashboard .progress-sm,
.page-vehicles .progress-sm {
    height: 8px;
}

.page-followUps .filter-box {
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
}

.page-performance .target-number {
    font-size: 28px;
    font-weight: 700;
    color: #005fd6;
}

.page-performance .form-select {
    width: 150px;
}

.page-quotes .action-btn .btn {
    margin-bottom: 3px;
}

.page-csr .quick-action {
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-csr .stat-icon {
    font-size: 40px;
}

.page-csr .stat-icon.lg {
    font-size: 45px;
}

.page-csr .progress-lg {
    height: 15px;
}

body.page-gem {
    font-family: "Plus Jakarta Sans", sans-serif;
    background-color: #020617;
}

body.portal-page .portal-navbar {
    position: sticky;
    top: 0;
    z-index: 1040;
    min-height: 72px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #005fd6 0%, #087ce5 100%);
    box-shadow: 0 5px 18px rgba(0, 65, 145, 0.2);
}

body.portal-page .portal-navbar>.container-fluid {
    flex-wrap: wrap;
    gap: 8px;
}

body.portal-page .portal-brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    margin-right: 0;
    padding: 0;
}

body.portal-page .portal-brand-logo {
    display: block;
    width: 142px;
    height: 46px;
    object-fit: contain;
    object-position: left center;
}

body.portal-page .portal-menu-toggle {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: none;
}

body.portal-page .portal-menu-toggle:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

body.portal-page .portal-primary-nav {
    gap: 2px;
}

body.portal-page .portal-primary-nav .nav-link {
    padding: 9px 8px;
    color: rgba(255, 255, 255, 0.86) !important;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
    border-radius: 8px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

body.portal-page .portal-primary-nav .nav-link:hover,
body.portal-page .portal-primary-nav .nav-link:focus,
body.portal-page .portal-primary-nav .nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.16);
}

body.portal-page .portal-actions {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

body.portal-page .portal-home-link {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.13);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

body.portal-page .portal-home-link:hover,
body.portal-page .portal-home-link:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.24);
    transform: translateY(-1px);
}

body.portal-page .portal-user-trigger {
    display: inline-flex;
    min-width: 190px;
    min-height: 48px;
    align-items: center;
    gap: 9px;
    padding: 5px 10px 5px 6px;
    color: #0f3e75;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.44);
    border-radius: 12px;
    background: rgba(219, 234, 254, 0.92);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

body.portal-page .portal-user-trigger:hover,
body.portal-page .portal-user-trigger:focus,
body.portal-page .portal-user-trigger[aria-expanded="true"] {
    background: #eff6ff;
    box-shadow: 0 5px 15px rgba(0, 46, 104, 0.18);
}

body.portal-page .portal-user-trigger::after {
    display: none;
}

body.portal-page .portal-user-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    background: #fff;
}

body.portal-page .portal-user-meta {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    line-height: 1.25;
}

body.portal-page .portal-user-name,
body.portal-page .portal-user-role {
    overflow: hidden;
    max-width: 112px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.portal-page .portal-user-name {
    color: #123c6d;
    font-size: 13px;
    font-weight: 700;
}

body.portal-page .portal-user-role {
    margin-top: 2px;
    color: #4776aa;
    font-size: 11px;
    font-weight: 500;
}

body.portal-page .portal-user-caret {
    color: #4776aa;
    font-size: 10px;
    transition: transform 0.2s ease;
}

body.portal-page .portal-user-trigger[aria-expanded="true"] .portal-user-caret {
    transform: rotate(180deg);
}

body.portal-page .portal-user-menu {
    min-width: 230px;
    margin-top: 9px !important;
    padding: 8px;
    border: 1px solid #e5edf7;
    border-radius: 13px;
    box-shadow: 0 16px 36px rgba(15, 42, 75, 0.18);
}

body.portal-page .portal-user-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 11px;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    transition: color 0.18s ease, background-color 0.18s ease;
}

body.portal-page .portal-user-menu .dropdown-item i {
    width: 17px;
    color: #3975bd;
    text-align: center;
}

body.portal-page .portal-user-menu .dropdown-item:hover,
body.portal-page .portal-user-menu .dropdown-item:focus {
    color: #005fd6;
    background: #edf6ff;
}

body.portal-page .portal-user-menu .dropdown-divider {
    margin: 6px 3px;
    border-color: #e5edf7;
}

body.portal-page .portal-user-menu .portal-logout-item {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.08);
}

body.portal-page .portal-user-menu .portal-logout-item i {
    color: inherit;
}

body.portal-page .portal-user-menu .portal-logout-item:hover,
body.portal-page .portal-user-menu .portal-logout-item:focus {
    color: #fff;
    background: #dc3545;
}

@media (min-width: 1200px) {
    body.portal-page .portal-menu-toggle {
        display: none;
    }
}

@media (max-width: 1199.98px) {

    body.portal-page .portal-primary-nav {
        gap: 1px;
    }

    body.portal-page .portal-primary-nav .nav-link {
        padding: 10px 12px;
    }
}

@media (max-width: 575.98px) {
    body.portal-page .portal-navbar {
        min-height: 60px;
        padding: 8px 4px;
    }

    body.portal-page .portal-navbar>.container-fluid {
        gap: 4px;
        padding-right: 5px;
        padding-left: 5px;
    }

    body.portal-page .portal-brand-logo {
        width: 76px;
        height: 32px;
    }

    body.portal-page .portal-menu-toggle,
    body.portal-page .portal-home-link {
        width: 34px;
        height: 36px;
        flex-basis: 34px;
        border-radius: 9px;
    }

    body.portal-page .portal-actions {
        gap: 4px;
        margin-left: 0 !important;
    }

    body.portal-page .portal-user-trigger {
        min-width: 0;
        min-height: 40px;
        gap: 5px;
        padding: 3px 6px 3px 3px;
        border-radius: 9px;
    }

    body.portal-page .portal-user-avatar {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    body.portal-page .portal-user-name,
    body.portal-page .portal-user-role {
        max-width: 68px;
    }

    body.portal-page .portal-user-name {
        font-size: 11px;
    }

    body.portal-page .portal-user-role {
        font-size: 9px;
    }

    body.portal-page .portal-user-caret {
        font-size: 8px;
    }

    body.portal-page .portal-user-menu {
        min-width: 215px;
    }
}

.follow-up-calendar-table {
    border-radius: 0.5rem;
    overflow: hidden;
    min-width: 100%;
}

.follow-up-calendar-table th,
.follow-up-calendar-table td {
    min-width: 80px;
}

.page-followUps .follow-up-calendar-table td {
    height: 80px;
    vertical-align: middle;
    text-align: center;
    padding: 6px 4px;
    position: relative;
}

.page-followUps .follow-up-calendar-table td.calendar-day-outside {
    background-color: rgba(0, 0, 0, 0.08);
}

.page-followUps .follow-up-calendar-table td.calendar-day-today {
    box-shadow: inset 0 0 0 2px var(--bs-primary, #0d6efd);
}

.page-followUps .follow-up-calendar-table .calendar-day-number {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.page-followUps .follow-up-calendar-table td.calendar-day-outside .calendar-day-number {
    font-weight: 400;
    opacity: 0.6;
}

.page-followUps .follow-up-calendar-table .calendar-day-counts {
    font-size: 11px;
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    text-align: center;
}

@media (max-width: 1300px) {
    .page-followUps .follow-up-calendar-table td {
        height: 70px;
        padding: 4px 3px;
    }

    .follow-up-calendar-table th,
    .follow-up-calendar-table td {
        min-width: 70px;
    }

    .page-followUps .follow-up-calendar-table .calendar-day-number {
        font-size: 14px;
    }

    .page-followUps .follow-up-calendar-table .calendar-day-counts {
        font-size: 10px;
    }
}

@media (max-width: 900px) {
    .page-followUps .follow-up-calendar-table td {
        height: 60px;
        padding: 3px 2px;
    }

    .follow-up-calendar-table th,
    .follow-up-calendar-table td {
        min-width: 55px;
    }

    .page-followUps .follow-up-calendar-table .calendar-day-number {
        font-size: 12px;
    }

    .page-followUps .follow-up-calendar-table .calendar-day-counts {
        font-size: 9px;
    }
}

@media (max-width: 550px) {
    .page-followUps .follow-up-calendar-table td {
        height: 50px;
        padding: 2px 1px;
    }

    .follow-up-calendar-table th,
    .follow-up-calendar-table td {
        min-width: 42px;
    }

    .page-followUps .follow-up-calendar-table .calendar-day-number {
        font-size: 10px;
    }

    .page-followUps .follow-up-calendar-table .calendar-day-counts {
        font-size: 8px;
    }
}

.page-followUps .calendar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.journeyLog {
    list-style: none;
    margin-bottom: 0;
    padding-left: 0;
}

.journeyLog .journeyLogItem {
    --journeyLogColor: var(--bs-secondary-rgb, 108, 117, 125);
    --journeyLogBackgroundOpacity: 0.07;
}

.journeyLog .journeyLogCompleted {
    --journeyLogColor: var(--bs-success-rgb, 25, 135, 84);
}

.journeyLog .journeyLogCurrent {
    --journeyLogColor: var(--bs-warning-rgb, 255, 193, 7);
    --journeyLogBackgroundOpacity: 0.1;
}

.journeyLog .journeyLogCard {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    height: 100%;
    padding: 1rem;
    border: 1px solid rgb(var(--journeyLogColor));
    border-radius: 0.5rem;
    background-color: rgba(var(--journeyLogColor), var(--journeyLogBackgroundOpacity));
}

.journeyLog .journeyLogIcon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background-color: rgb(var(--journeyLogColor));
    color: #fff;
}

.journeyLog .journeyLogCurrent .journeyLogIcon {
    color: var(--bs-dark, #212529);
}

.journeyLog .journeyLogContent {
    flex-grow: 1;
    min-width: 0;
}

.journeyLog .journeyLogTitle {
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.journeyLog .journeyLogDescription {
    margin-bottom: 0;
    color: var(--bs-secondary-color, #6c757d);
    font-size: 0.8125rem;
    overflow-wrap: anywhere;
}

body.portal-page .portal-desktop-nav {
    flex: 1 1 auto;
}

body.portal-page .portal-nav-dropdown .dropdown-menu {
    min-width: 200px;
    margin-top: 6px;
    padding: 6px;
    border: 1px solid #e5edf7;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(15, 42, 75, 0.18);
}

body.portal-page .portal-nav-dropdown .dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    border-radius: 7px;
    transition: color 0.18s, background-color 0.18s;
}

body.portal-page .portal-nav-dropdown .dropdown-menu .dropdown-item i {
    width: 16px;
    color: #3975bd;
    text-align: center;
}

body.portal-page .portal-nav-dropdown .dropdown-menu .dropdown-item:hover,
body.portal-page .portal-nav-dropdown .dropdown-menu .dropdown-item:focus {
    color: #005fd6;
    background: #edf6ff;
}

body.portal-page .portal-nav-dropdown .dropdown-menu .dropdown-item.active {
    color: #005fd6;
    background: #e0efff;
}

.portal-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1060;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portal-sidebar-overlay.active {
    display: block;
    opacity: 1;
}

.portal-sidebar {
    position: fixed;
    top: 0;
    left: -72%;
    z-index: 1070;
    width: 72%;
    max-width: 320px;
    height: 100vh;
    overflow-y: auto;
    background: #fff;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.18);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-overflow-scrolling: touch;
}

.portal-sidebar.active {
    left: 0;
}

.portal-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: linear-gradient(135deg, #005fd6 0%, #087ce5 100%);
    color: #fff;
}

.portal-sidebar-title {
    font-size: 16px;
    font-weight: 700;
}

.portal-sidebar-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.portal-sidebar-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.portal-sidebar-nav {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.portal-sidebar-nav-item {
    margin: 0;
}

.portal-sidebar-nav-group {
    position: relative;
}

.portal-sidebar-nav-group>summary {
    position: relative;
    z-index: 2;
    cursor: pointer;
    list-style: none;
}

.portal-sidebar-nav-group>summary::-webkit-details-marker {
    display: none;
}

.portal-sidebar-nav-chevron {
    margin-left: auto;
    font-size: 11px;
    transition: transform 0.18s;
}

.portal-sidebar-nav-group[open] .portal-sidebar-nav-chevron {
    transform: rotate(180deg);
}

.portal-sidebar-subnav {
    list-style: none;
    margin: 0;
    padding: 0 0 4px;
}

.portal-sidebar-nav-group[open]::before {
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 28px;
    z-index: 1;
    border-left: 1px solid #b9cde5;
    content: "";
    pointer-events: none;
}

.portal-sidebar-subnav>li {
    position: relative;
}

.portal-sidebar-subnav>li::before {
    position: absolute;
    top: 50%;
    left: 28px;
    width: 22px;
    z-index: 2;
    border-top: 1px solid #b9cde5;
    content: "";
    pointer-events: none;
}

.portal-sidebar-subnav .portal-sidebar-nav-link {
    padding-left: 50px;
    font-size: 13px;
}




.portal-sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.18s, background-color 0.18s;
}

.portal-sidebar-nav-link i {
    width: 20px;
    text-align: center;
    color: #3975bd;
    font-size: 15px;
}

.portal-sidebar-nav-link:hover,
.portal-sidebar-nav-link:focus {
    color: #005fd6;
    background: #edf6ff;
}

.portal-sidebar-nav-link.active {
    color: #005fd6;
    background: #e0efff;
}

.portal-sidebar-nav-link.active i {
    color: #005fd6;
}

.portal-sidebar-nav-divider {
    height: 1px;
    margin: 6px 18px;
    background: #e5edf7;
}

.portal-sidebar-logout {
    color: #dc3545 !important;
}

.portal-sidebar-logout i {
    color: #dc3545 !important;
}

.portal-sidebar-logout:hover {
    background: rgba(220, 53, 69, 0.08) !important;
}

@media (max-width: 1199.98px) {
    body.portal-page .portal-desktop-nav {
        display: none !important;
    }
}

@media (min-width: 1200px) {

    .portal-sidebar-overlay,
    .portal-sidebar {
        display: none !important;
    }
}

body.landing-page .landing-mobile-actions {
    display: none;
    align-items: center;
    gap: 8px;
}

body.landing-page .landing-login-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: var(--primary, #005fd6);
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

body.landing-page .landing-login-btn:hover {
    background: var(--primary-dark, #0047a8);
    color: #fff;
    transform: translateY(-1px);
}

body.landing-page .landing-desktop-nav {
    flex: 1 1 auto;
}

body.landing-page .landing-sidebar .portal-sidebar-header {
    background: linear-gradient(135deg, #005fd6 0%, #087ce5 100%);
}

body.landing-page .landing-sidebar .portal-sidebar-login-btn {
    color: var(--primary, #005fd6) !important;
    font-weight: 700;
}

body.landing-page .landing-sidebar .portal-sidebar-login-btn i {
    color: var(--primary, #005fd6) !important;
}

body.landing-page .landing-sidebar .portal-sidebar-login-btn:hover {
    background: #edf6ff !important;
}

@media (max-width: 991.98px) {
    body.landing-page .landing-desktop-nav {
        display: none !important;
    }

    body.landing-page .landing-mobile-actions {
        display: flex;
    }

    body.landing-page .nav-container .navbar-toggler {
        display: inline-flex;
    }
}

@media (min-width: 992px) {
    body.landing-page .landing-mobile-actions {
        display: none !important;
    }

    body.landing-page .nav-container .navbar-toggler {
        display: none;
    }

    body.landing-page .portal-sidebar-overlay,
    body.landing-page .portal-sidebar {
        display: none !important;
    }
}