/**
 * CIMS Lift Admin - Common custom styles
 * Add all project-specific CSS here (do not create separate page CSS files).
 */

/* -------------------------------------------------------------------------- */
/* CIMS Elevator brand theme — Red + Blue (matches public website)            */
/* -------------------------------------------------------------------------- */
:root {
    --cims-red: #e31e24;
    --cims-red-rgb: 227, 30, 36;
    --cims-red-dark: #c4191f;
    --cims-blue: #0056b3;
    --cims-blue-rgb: 0, 86, 179;
    --cims-blue-dark: #004494;

    --bs-primary: #0056b3;
    --bs-primary-rgb: 0, 86, 179;
    --bs-link-color: #0056b3;
    --bs-link-hover-color: #004494;
}

/* Primary buttons — brand red (website "Read More" style) */
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--cims-red);
    --bs-btn-border-color: var(--cims-red);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--cims-red-dark);
    --bs-btn-hover-border-color: var(--cims-red-dark);
    --bs-btn-active-bg: #b0151a;
    --bs-btn-active-border-color: #b0151a;
    --bs-btn-focus-shadow-rgb: var(--cims-red-rgb);
    --bs-btn-disabled-bg: var(--cims-red);
    --bs-btn-disabled-border-color: var(--cims-red);
}

.btn-primary:hover,
.btn-primary:focus-visible,
.btn-primary:active {
    background-color: var(--cims-red-dark) !important;
    border-color: var(--cims-red-dark) !important;
}

.btn-outline-primary {
    --bs-btn-color: var(--cims-blue);
    --bs-btn-border-color: var(--cims-blue);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--cims-blue);
    --bs-btn-hover-border-color: var(--cims-blue);
    --bs-btn-active-bg: var(--cims-blue-dark);
    --bs-btn-active-border-color: var(--cims-blue-dark);
    --bs-btn-focus-shadow-rgb: var(--cims-blue-rgb);
}

/* Topbar — blue accent line like website header */
.app-topbar {
    border-bottom: 3px solid var(--cims-blue) !important;
    box-shadow: 0 1px 4px rgba(var(--cims-blue-rgb), 0.08);
}

.topbar-company-name {
    color: var(--cims-blue) !important;
    font-weight: 700;
}

/* Sidebar — white background, compact spacing, black text, red active */
.sidenav-menu {
    background: #ffffff !important;
    border-right: 1px solid #e8edf3 !important;
    box-shadow: 2px 0 18px rgba(15, 23, 42, 0.04);
}

.sidenav-menu .logo {
    border-bottom: 1px solid #eef2f7 !important;
    background: #fff;
    padding: 0.65rem 0.85rem !important;
}

.sidenav-menu .scrollbar {
    background: #fff;
    padding-bottom: 0.5rem;
}

.sidenav-menu #sidenav-menu {
    padding: 0.15rem 0 0.35rem;
}

.sidenav-menu .side-nav {
    padding: 0;
    margin: 0;
}

.sidenav-menu .side-nav-item {
    margin: 0;
}

.sidenav-user {
    background: linear-gradient(180deg, #fafbfd 0%, #fff 100%) !important;
    border-bottom: 1px solid #eef2f7;
    margin: 0.4rem 0.5rem 0.25rem;
    border-radius: 0.55rem;
    padding: 0.65rem 0.75rem !important;
}

.sidenav-user-name {
    color: #0f172a !important;
    font-size: 0.875rem;
}

.sidenav-user .fs-12 {
    color: #475569 !important;
}

.sidenav-menu .side-nav-title {
    color: #64748b !important;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.55rem 0.85rem 0.2rem;
    margin: 0 !important;
}

.sidenav-menu .side-nav-title:first-child {
    padding-top: 0.25rem;
}

.sidenav-menu .side-nav-link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: #0f172a !important;
    border-radius: 0.5rem;
    margin: 0.05rem 0.45rem;
    padding: 0.42rem 0.65rem;
    font-weight: 600;
    font-size: 0.8125rem;
    line-height: 1.25;
    transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.sidenav-menu .side-nav-link .menu-text {
    color: inherit !important;
    flex: 1;
    min-width: 0;
}

.sidenav-menu .side-nav-link .menu-icon {
    color: #334155 !important;
    width: 1.65rem;
    height: 1.65rem;
    min-width: 1.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.4rem;
    background: #f1f5f9;
    font-size: 0.9rem;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.sidenav-menu .side-nav-link .menu-arrow::before {
    opacity: 0.45;
    transition: opacity 0.15s ease;
}

.sidenav-menu .side-nav-link:hover,
.sidenav-menu .side-nav-link:focus {
    color: var(--cims-red) !important;
    background: rgba(var(--cims-red-rgb), 0.07) !important;
}

.sidenav-menu .side-nav-link:hover .menu-icon,
.sidenav-menu .side-nav-link:focus .menu-icon {
    color: var(--cims-red) !important;
    background: rgba(var(--cims-red-rgb), 0.1);
}

.sidenav-menu .side-nav-link:hover .menu-arrow::before,
.sidenav-menu .side-nav-link:focus .menu-arrow::before {
    opacity: 0.85;
}

.sidenav-menu .side-nav-link.active,
.sidenav-menu .side-nav-link.active:hover,
.sidenav-menu .side-nav-link.active:focus {
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--cims-red) 0%, var(--cims-red-dark) 100%) !important;
    box-shadow: 0 3px 12px rgba(var(--cims-red-rgb), 0.28);
    font-weight: 700;
    border-left: none;
}

.sidenav-menu .side-nav-link.active .menu-text,
.sidenav-menu .side-nav-link.active:hover .menu-text,
.sidenav-menu .side-nav-link.active:focus .menu-text {
    color: #ffffff !important;
}

.sidenav-menu .side-nav-link.active .menu-icon,
.sidenav-menu .side-nav-link.active:hover .menu-icon,
.sidenav-menu .side-nav-link.active:focus .menu-icon {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.18) !important;
}

.sidenav-menu .side-nav-link.active .menu-arrow::before,
.sidenav-menu .side-nav-link.active:hover .menu-arrow::before,
.sidenav-menu .side-nav-link.active:focus .menu-arrow::before {
    opacity: 1;
    filter: brightness(0) invert(1);
}

.sidenav-menu .sub-menu {
    padding: 0.05rem 0 0.15rem;
    margin: 0 0 0 0.15rem;
    border-left: 1px solid #e8edf3;
}

.sidenav-menu .sub-menu .side-nav-link {
    margin: 0.03rem 0.45rem 0.03rem 0.65rem;
    padding: 0.34rem 0.55rem 0.34rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #0f172a !important;
    gap: 0.35rem;
}

.sidenav-menu .sub-menu .side-nav-link .menu-text {
    color: #0f172a !important;
}

.sidenav-menu .sub-menu .side-nav-link:hover,
.sidenav-menu .sub-menu .side-nav-link:focus {
    color: var(--cims-red) !important;
    background: rgba(var(--cims-red-rgb), 0.06) !important;
}

.sidenav-menu .sub-menu .side-nav-link:hover .menu-text,
.sidenav-menu .sub-menu .side-nav-link:focus .menu-text {
    color: var(--cims-red) !important;
}

.sidenav-menu .sub-menu .side-nav-link.active,
.sidenav-menu .sub-menu .side-nav-link.active:hover,
.sidenav-menu .sub-menu .side-nav-link.active:focus {
    color: var(--cims-red) !important;
    background: rgba(var(--cims-red-rgb), 0.1) !important;
    box-shadow: none;
    font-weight: 700;
    position: relative;
}

.sidenav-menu .sub-menu .side-nav-link.active .menu-text,
.sidenav-menu .sub-menu .side-nav-link.active:hover .menu-text,
.sidenav-menu .sub-menu .side-nav-link.active:focus .menu-text {
    color: var(--cims-red) !important;
}

.sidenav-menu .sub-menu .side-nav-link.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 55%;
    border-radius: 999px;
    background: var(--cims-red);
}

.sidenav-menu .side-nav-link[aria-expanded="true"]:not(.active) {
    color: var(--cims-red) !important;
    background: rgba(var(--cims-red-rgb), 0.05) !important;
}

.sidenav-menu .side-nav-link[aria-expanded="true"]:not(.active) .menu-text {
    color: var(--cims-red) !important;
}

.sidenav-menu .side-nav-link[aria-expanded="true"]:not(.active) .menu-icon {
    color: var(--cims-red) !important;
    background: rgba(var(--cims-red-rgb), 0.1);
}

.sidenav-menu .button-on-hover,
.sidenav-menu .button-close-offcanvas {
    color: #475569;
}

.sidenav-menu .brand-logo {
    filter: none;
}

.sidenav-menu .logo .brand-logo {
    max-height: 40px;
    max-width: 150px;
}

/* Page titles & breadcrumbs */
.page-main-title {
    color: var(--cims-blue);
    font-weight: 700;
}

.breadcrumb-item a {
    color: var(--cims-blue);
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: var(--cims-red);
}

.breadcrumb-item.active {
    color: #64748b;
    font-weight: 600;
}

/* Links & focus states */
a:not(.btn):not(.side-nav-link):not(.dropdown-item):not(.page-link) {
    color: var(--cims-blue);
}

a:not(.btn):not(.side-nav-link):not(.dropdown-item):not(.page-link):hover {
    color: var(--cims-red);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(var(--cims-blue-rgb), 0.55);
    box-shadow: 0 0 0 0.2rem rgba(var(--cims-blue-rgb), 0.15);
}

.form-check-input:checked {
    background-color: var(--cims-blue);
    border-color: var(--cims-blue);
}

/* Pagination & DataTables */
.page-item.active .page-link,
.dataTables_wrapper .pagination .page-item.active .page-link {
    background-color: var(--cims-blue) !important;
    border-color: var(--cims-blue) !important;
}

.page-link {
    color: var(--cims-blue);
}

.page-link:hover {
    color: var(--cims-blue-dark);
}

/* Badges — AMC / primary labels use brand blue */
.badge-soft-primary,
.bg-primary-subtle.text-primary {
    background-color: rgba(var(--cims-blue-rgb), 0.12) !important;
    color: var(--cims-blue) !important;
}

.badge-label.badge-soft-primary {
    border: 1px solid rgba(var(--cims-blue-rgb), 0.2);
}

/* Card headers with brand tint (customer list, forms) */
.customer-list-card-icon,
.customer-form-card-icon {
    background: rgba(var(--cims-red-rgb), 0.12) !important;
    color: var(--cims-red) !important;
}

.customer-list-card-header,
.customer-form-card-header {
    border-bottom: 2px solid rgba(var(--cims-blue-rgb), 0.12) !important;
}

/* Login page title accent */
.auth-brand h4 {
    color: var(--cims-blue);
}

.auth-box .card {
    border-top: 4px solid var(--cims-blue);
}

/* -------------------------------------------------------------------------- */
/* AJAX form validation (login, modals, all forms)                            */
/* -------------------------------------------------------------------------- */
.form-field-group.is-invalid-group .form-label {
    color: var(--bs-danger);
}

.form-field-group .form-control.is-invalid,
.form-field-group .form-select.is-invalid {
    border-color: var(--bs-danger);
    box-shadow: none;
}

.form-field-group .form-control.is-invalid:focus,
.form-field-group .form-select.is-invalid:focus {
    border-color: var(--bs-danger);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-danger-rgb), 0.15);
}

.form-field-group .invalid-feedback {
    display: none;
    color: var(--bs-danger);
    font-size: 0.8125rem;
    margin-top: 0.35rem;
}

.form-field-group.is-invalid-group .invalid-feedback:not(:empty) {
    display: block;
}

.form-validation-alert {
    border-left: 3px solid var(--bs-danger);
}

.form-validation-alert .alert-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.was-validated-ajax .form-control.is-invalid,
.was-validated-ajax .form-select.is-invalid {
    background-image: none;
}

/* -------------------------------------------------------------------------- */
/* Company settings                                                           */
/* -------------------------------------------------------------------------- */
.company-logo-preview {
    max-height: 80px;
    max-width: 160px;
    object-fit: contain;
    border: 1px dashed var(--bs-border-color);
    border-radius: 0.375rem;
    padding: 0.5rem;
    background-color: var(--bs-light);
}

.company-table-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 0.375rem;
    border: 1px solid var(--bs-border-color);
    padding: 0.25rem;
    background-color: #fff;
}

.company-empty-state {
    padding: 2.5rem 1rem;
}

.company-address-cell {
    max-width: 220px;
}

/* -------------------------------------------------------------------------- */
/* Company branding (logo + header title)                                     */
/* -------------------------------------------------------------------------- */
.brand-logo {
    max-height: 40px;
    max-width: 180px;
    width: auto;
    object-fit: contain;
}

.brand-logo-lg {
    max-height: 70px;
    max-width: 220px;
    width: auto;
    object-fit: contain;
}

.brand-logo-sm {
    max-height: 32px;
    max-width: 140px;
    width: auto;
    object-fit: contain;
}

.brand-logo-xs {
    max-height: 28px;
    max-width: 120px;
    width: auto;
    object-fit: contain;
}

.topbar-company-name {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--bs-heading-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(40vw, 420px);
    text-align: center;
    pointer-events: none;
}

/* -------------------------------------------------------------------------- */
/* Admin management                                                           */
/* -------------------------------------------------------------------------- */
#adminsTable_wrapper .dataTables_filter input {
    min-width: 220px;
}

#adminsTable_wrapper .dataTables_length select {
    min-width: 70px;
}

/* -------------------------------------------------------------------------- */
/* Role management                                                            */
/* -------------------------------------------------------------------------- */
#rolesTable_wrapper .dataTables_filter input {
    min-width: 220px;
}

#rolesTable_wrapper .dataTables_length select {
    min-width: 70px;
}

#rolesTable code {
    font-size: 0.8125rem;
    color: var(--bs-primary);
}

/* -------------------------------------------------------------------------- */
/* Employee management                                                        */
/* -------------------------------------------------------------------------- */
#employeesTable_wrapper .dataTables_filter input {
    min-width: 220px;
}

#employeesTable_wrapper .dataTables_length select {
    min-width: 70px;
}

.btn-soft-success {
    background-color: rgba(var(--bs-success-rgb), 0.1);
    color: var(--bs-success) !important;
    border: 1px solid rgba(var(--bs-success-rgb), 0.2);
}

.btn-soft-success:hover,
.btn-soft-success:focus,
.btn-soft-success:active,
.btn-soft-success.show,
.btn-soft-success.dropdown-toggle.show {
    background-color: rgba(var(--bs-success-rgb), 0.2) !important;
    color: var(--bs-success) !important;
    border-color: rgba(var(--bs-success-rgb), 0.35) !important;
}

.btn-soft-success:hover *,
.btn-soft-success:focus *,
.btn-soft-success:active *,
.btn-soft-success.show *,
.btn-soft-success.dropdown-toggle.show * {
    color: var(--bs-success) !important;
}

.btn-soft-info {
    background-color: rgba(var(--bs-info-rgb), 0.1);
    color: var(--bs-info) !important;
    border: 1px solid rgba(var(--bs-info-rgb), 0.2);
}

.btn-soft-info:hover,
.btn-soft-info:focus,
.btn-soft-info:active,
.btn-soft-info.show {
    background-color: rgba(var(--bs-info-rgb), 0.2) !important;
    color: var(--bs-info) !important;
    border-color: rgba(var(--bs-info-rgb), 0.35) !important;
}

.btn-soft-info:hover *,
.btn-soft-info:focus *,
.btn-soft-info:active *,
.btn-soft-info.show * {
    color: var(--bs-info) !important;
}

.btn-soft-secondary {
    background-color: rgba(var(--bs-secondary-rgb), 0.1);
    color: var(--bs-secondary) !important;
    border: 1px solid rgba(var(--bs-secondary-rgb), 0.2);
}

.btn-soft-secondary:hover,
.btn-soft-secondary:focus,
.btn-soft-secondary:active,
.btn-soft-secondary.show {
    background-color: rgba(var(--bs-secondary-rgb), 0.18) !important;
    color: var(--bs-secondary) !important;
    border-color: rgba(var(--bs-secondary-rgb), 0.35) !important;
}

.btn-soft-secondary:hover *,
.btn-soft-secondary:focus *,
.btn-soft-secondary:active *,
.btn-soft-secondary.show * {
    color: var(--bs-secondary) !important;
}

.employee-profile-preview {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--bs-border-color);
}

.employee-profile-preview-lg {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--bs-border-color);
}

.employee-table-avatar {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid var(--bs-border-color);
}

/* -------------------------------------------------------------------------- */
/* Customer form page — compact professional layout                             */
/* -------------------------------------------------------------------------- */
.customer-form-page-wrap .page-title-head {
    margin-bottom: 1rem;
}

.customer-form-page-wrap .page-main-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a2332;
    letter-spacing: -0.01em;
}

.customer-form-card {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.04) !important;
}

.customer-form-card-header {
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.08) 0%, rgba(var(--bs-primary-rgb), 0.02) 100%);
    padding: 1rem 1.35rem;
    border-bottom: 1px solid rgba(var(--bs-primary-rgb), 0.08);
}

.customer-form-card-body {
    padding: 1rem 1.35rem 1.25rem;
}

.customer-form-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: rgba(var(--bs-primary-rgb), 0.14);
    color: var(--bs-primary);
    font-size: 1.15rem;
    flex-shrink: 0;
}

.customer-form-card .card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a2332;
}

.customer-form-card-header .text-muted {
    font-size: 0.78rem;
}

.customer-form-page .form-label {
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: #1a2332;
    letter-spacing: 0.01em;
}

.customer-form-page .customer-copy-link {
    font-size: 0.68rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--bs-primary);
    line-height: 1;
}

.customer-form-page .customer-copy-link:hover {
    text-decoration: underline;
    color: var(--bs-primary);
}

/* All customer form fields — black border, focus shadow */
.customer-form-page .form-control,
.customer-form-page .form-select,
.customer-form-page textarea.form-control {
    font-size: 0.8125rem;
    padding: 0.48rem 0.75rem;
    border-radius: 0.4rem;
    border: 1px solid #212529 !important;
    min-height: 2.25rem;
    background-color: #ffffff !important;
    color: #1a2332;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.customer-form-page .form-select {
    padding-right: 2.1rem;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23212529' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.65rem center !important;
    background-size: 14px 10px !important;
}

.customer-form-page .form-control::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.customer-form-page .form-control:hover,
.customer-form-page .form-select:hover,
.customer-form-page textarea.form-control:hover {
    border-color: #000000 !important;
}

.customer-form-page .form-control:focus,
.customer-form-page .form-select:focus,
.customer-form-page textarea.form-control:focus {
    border-color: #236dc9 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(35, 109, 201, 0.18), 0 4px 14px rgba(35, 109, 201, 0.12) !important;
    -webkit-box-shadow: 0 0 0 3px rgba(35, 109, 201, 0.18), 0 4px 14px rgba(35, 109, 201, 0.12) !important;
    outline: none;
}

.customer-form-page .form-control.bg-light,
.customer-form-page .form-control[readonly] {
    background-color: #f8fafc !important;
    border-color: #212529 !important;
    color: #475569;
    cursor: default;
}

.customer-form-page .form-control.bg-light:focus,
.customer-form-page .form-control[readonly]:focus {
    border-color: #236dc9 !important;
    box-shadow: 0 0 0 3px rgba(35, 109, 201, 0.12), 0 2px 8px rgba(35, 109, 201, 0.08) !important;
}

.customer-form-page .form-field-group.is-invalid-group .form-control,
.customer-form-page .form-field-group.is-invalid-group .form-select,
.customer-form-page .form-field-group.is-invalid-group textarea.form-control {
    border-color: var(--bs-danger) !important;
}

.customer-form-page .form-field-group.is-invalid-group .form-control:focus,
.customer-form-page .form-field-group.is-invalid-group .form-select:focus {
    box-shadow: 0 0 0 3px rgba(var(--bs-danger-rgb), 0.15), 0 4px 12px rgba(var(--bs-danger-rgb), 0.1) !important;
}

.customer-form-page .form-text {
    font-size: 0.72rem;
    margin-top: 0.25rem;
    color: #64748b;
}

.customer-form-section {
    margin-bottom: 1.1rem;
    padding: 0.15rem 0 1rem;
    border-bottom: 1px solid rgba(var(--bs-primary-rgb), 0.1);
}

.customer-form-section-last {
    border-bottom: 0;
    margin-bottom: 0.65rem;
    padding-bottom: 0;
}

.customer-form-section-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--bs-primary);
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.customer-form-section-title::before {
    content: '';
    width: 4px;
    height: 14px;
    background: var(--bs-primary);
    border-radius: 2px;
    flex-shrink: 0;
}

.customer-form-badge {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.15rem 0.45rem;
    border-radius: 0.25rem;
    background: rgba(var(--bs-info-rgb), 0.12);
    color: var(--bs-info);
}

/* Customer create — Direct Entry / From Won Lead tabs (red + blue only) */
.customer-lead-import-section {
    border: 1px solid rgba(29, 78, 216, 0.15);
    border-radius: 0.5rem;
    padding: 0.85rem 1rem 1rem;
    background: linear-gradient(180deg, rgba(29, 78, 216, 0.03) 0%, #fff 100%);
}

.customer-lead-import-title {
    color: #1d4ed8 !important;
}

.customer-lead-import-title::before {
    background: #1d4ed8 !important;
}

.customer-lead-import-hint {
    font-size: 0.8125rem;
    color: #475569;
    margin-bottom: 0.75rem;
}

.customer-entry-tabs {
    display: flex;
    width: 100%;
    max-width: 520px;
    border: 2px solid #1d4ed8;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 0.85rem;
    box-shadow: 0 2px 8px rgba(29, 78, 216, 0.08);
}

.customer-entry-tab-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.customer-entry-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.72rem 1rem;
    margin: 0;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    line-height: 1.2;
    cursor: pointer;
    user-select: none;
    background: #fff;
    border: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.customer-entry-tab i {
    font-size: 1rem;
}

.customer-entry-tab--blue {
    color: #1d4ed8;
    border-right: 1px solid #1d4ed8;
}

.customer-entry-tab--red {
    color: #dc2626;
}

#customerEntryDirect:checked + .customer-entry-tab--blue {
    background: #1d4ed8;
    color: #fff;
}

#customerEntryFromLead:checked + .customer-entry-tab--red {
    background: #dc2626;
    color: #fff;
}

.customer-lead-search-label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #1d4ed8;
}

.customer-lead-search-group {
    border: 1.5px solid #1d4ed8;
    border-radius: 0.4rem;
    overflow: hidden;
}

.customer-lead-search-group .input-group-text {
    background: #1d4ed8;
    color: #fff;
    border: none;
}

.customer-lead-search-group .form-control {
    border: none;
    font-weight: 500;
}

.customer-lead-search-group .form-control:focus {
    box-shadow: none;
}

.customer-lead-linked-badge {
    margin-top: 0.65rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1d4ed8;
    background: rgba(29, 78, 216, 0.08);
    border: 1.5px solid #1d4ed8;
    border-radius: 0.4rem;
}

.customer-lead-clear-btn {
    color: #dc2626 !important;
    font-weight: 700;
    line-height: 1;
}

.customer-lead-clear-btn:hover {
    color: #b91c1c !important;
}

.customer-form-page .customer-lead-suggestion:hover,
.customer-form-page .customer-lead-suggestion:focus {
    background: rgba(29, 78, 216, 0.08);
    color: #1d4ed8;
}

.customer-form-actions {
    display: flex;
    width: 100%;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 1px solid #e2e8f0;
    justify-content: flex-end;
    gap: 0.65rem;
}

.customer-form-actions .btn-sm {
    padding: 0.48rem 1.15rem;
    font-size: 0.8125rem;
    font-weight: 600;
    min-width: 7rem;
    border-radius: 0.4rem;
}

.customer-form-actions .btn-primary {
    box-shadow: 0 2px 8px rgba(var(--cims-red-rgb), 0.28);
}

.customer-form-actions .btn-primary:hover {
    box-shadow: 0 4px 14px rgba(var(--cims-red-rgb), 0.38);
}

.customer-form-actions .btn-light {
    border: 1px solid #212529 !important;
    color: #1a2332 !important;
}

.customer-location-picker {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border: 1px solid #212529;
    border-radius: 0.5rem;
    padding: 0.85rem 1rem;
}

.customer-form-page .location-search-group {
    box-shadow: none;
    border-radius: 0.4rem;
    overflow: hidden;
}

.customer-form-page .location-search-group .input-group-text {
    background: #fff;
    border: 1px solid #212529 !important;
    border-right: 0 !important;
    color: #236dc9;
    padding: 0.48rem 0.65rem;
    font-size: 0.9rem;
}

.customer-form-page .location-search-group .form-control {
    border: 1px solid #212529 !important;
    border-left: 0 !important;
}

.customer-form-page .location-search-group .form-control:focus {
    border-color: #236dc9 !important;
}

.customer-form-page .location-search-group:focus-within .input-group-text {
    border-color: #236dc9 !important;
}

.customer-form-page .location-search-group:focus-within {
    box-shadow: 0 0 0 3px rgba(35, 109, 201, 0.18), 0 4px 14px rgba(35, 109, 201, 0.12);
    border-radius: 0.4rem;
}

.customer-form-page .location-clear-btn {
    font-size: 0.8125rem;
    padding: 0.48rem 0.75rem;
    border: 1px solid #212529 !important;
    border-left: 0 !important;
    background: #fff !important;
    color: #475569 !important;
}

.customer-form-page .location-search-group:focus-within .location-clear-btn {
    border-color: #236dc9 !important;
}

.customer-form-page .customer-address-field {
    min-height: 58px;
    resize: vertical;
}

.customer-form-page .font-monospace {
    font-size: 0.75rem !important;
}

.customer-form-page .customer-map-shell {
    min-height: 200px;
    border: 1px solid #e9ecef;
}

.customer-form-page .customer-map-placeholder {
    min-height: 200px;
    padding: 1rem;
}

.customer-form-page .customer-location-map {
    height: 260px;
    min-height: 200px;
}

.customer-form-page .btn-map-toggle {
    min-width: auto;
    padding: 0.42rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 0.4rem;
    border: 1px solid #212529 !important;
    background: #fff !important;
    color: #1a2332 !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.customer-form-page .btn-map-toggle:hover,
.customer-form-page .btn-map-toggle:focus {
    border-color: #236dc9 !important;
    box-shadow: 0 0 0 3px rgba(35, 109, 201, 0.15), 0 3px 10px rgba(35, 109, 201, 0.1) !important;
    color: #236dc9 !important;
}

.customer-form-page .location-suggestions {
    border: 1px solid #212529;
    border-radius: 0.4rem;
    max-height: 200px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.customer-form-page .location-suggestion-item {
    padding: 0.45rem 0.75rem;
    font-size: 0.8125rem;
}

@media (max-width: 767.98px) {
    .customer-form-card-header {
        padding: 0.75rem 1rem;
    }

    .customer-location-picker {
        padding: 0.65rem;
    }
}

#customersTable_wrapper .dataTables_filter input {
    min-width: 220px;
}

#customersTable_wrapper .dataTables_length select {
    min-width: 70px;
}

.btn-soft-primary {
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary) !important;
    border: 1px solid rgba(var(--bs-primary-rgb), 0.2);
}

.btn-soft-primary:hover,
.btn-soft-primary:focus,
.btn-soft-primary:active {
    background-color: #0b5ed7 !important;
    color: #fff !important;
    border-color: #0a58ca !important;
}

.btn-soft-primary:hover *,
.btn-soft-primary:focus *,
.btn-soft-primary:active * {
    color: #fff !important;
}

.btn-map-toggle {
    background-color: rgba(var(--bs-primary-rgb), 0.08);
    color: #0b5ed7 !important;
    border: 1px solid rgba(var(--bs-primary-rgb), 0.25);
    font-weight: 500;
    padding: 0.55rem 1.1rem;
    min-width: 210px;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-map-toggle:hover,
.btn-map-toggle:focus,
.btn-map-toggle:active,
.btn-map-toggle.is-open {
    background-color: #0b5ed7 !important;
    color: #fff !important;
    border-color: #0a58ca !important;
}

.btn-map-toggle:hover *,
.btn-map-toggle:focus *,
.btn-map-toggle:active *,
.btn-map-toggle.is-open * {
    color: #fff !important;
}

.btn-search-location {
    background-color: var(--bs-primary);
    color: #fff !important;
    border: 1px solid var(--bs-primary);
    font-weight: 600;
    padding: 0.5rem 1rem;
    box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.3);
    white-space: nowrap;
}

.btn-search-location:hover,
.btn-search-location:focus,
.btn-search-location:active {
    background-color: #0b5ed7 !important;
    color: #fff !important;
    border-color: #0a58ca !important;
    box-shadow: 0 6px 16px rgba(var(--bs-primary-rgb), 0.35);
}

.customer-location-picker {
    background: #fff;
    border: 1px solid rgba(var(--bs-primary-rgb), 0.12);
    border-radius: 0.75rem;
    padding: 1.25rem;
}

/* Legacy location picker outside customer-form-page */
.customer-form-page .customer-location-picker {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.1);
    border-radius: 0.5rem;
    padding: 0.75rem;
}

.customer-map-toggle-wrap .btn.is-open .map-toggle-icon {
    transform: rotate(180deg);
}

.customer-map-toggle-wrap .map-toggle-icon {
    transition: transform 0.2s ease;
}

.customer-map-shell {
    overflow: hidden;
    background: #f8f9fa;
    min-height: 280px;
}

.customer-map-placeholder {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
}

.customer-map-loader,
.customer-map-error {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    background: rgba(248, 249, 250, 0.92);
    z-index: 2;
}

.customer-location-map {
    width: 100%;
    height: 360px;
    min-height: 280px;
    display: block;
}

.location-search-group .form-control {
    border-left: 0;
}

.location-search-group .input-group-text {
    border-right: 0;
}

.location-search-wrap {
    z-index: 3;
}

.location-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 260px;
    overflow-y: auto;
    z-index: 1056;
    margin-top: 0.25rem;
}

.location-suggestion-item {
    font-size: 0.875rem;
    white-space: normal;
    text-align: left;
}

.location-suggestion-item:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.08);
}

.location-clear-btn:hover,
.location-clear-btn:focus {
    background-color: #f8f9fa !important;
    color: #212529 !important;
    border-color: #dee2e6 !important;
}

.location-clear-btn:hover *,
.location-clear-btn:focus * {
    color: #212529 !important;
}

@media (max-width: 575.98px) {
    .customer-location-map {
        height: 300px;
    }
}

/* -------------------------------------------------------------------------- */
/* Customer list page — professional datatable layout                           */
/* -------------------------------------------------------------------------- */
.customer-list-page-wrap .page-title-head {
    margin-bottom: 1rem;
}

.customer-list-page-wrap .page-main-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a2332;
}

.customer-list-card {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.04) !important;
}

.customer-list-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem 1.35rem;
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.08) 0%, rgba(var(--bs-primary-rgb), 0.02) 100%);
    border-bottom: 1px solid rgba(var(--bs-primary-rgb), 0.08);
}

.customer-list-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: rgba(var(--bs-primary-rgb), 0.14);
    color: var(--bs-primary);
    font-size: 1.15rem;
}

.customer-list-card .card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a2332;
}

.customer-list-card-body {
    padding: 1rem 1.35rem 1.25rem;
}

.customer-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    background: #f8fafc;
    border: 1px solid #e9eef3;
    border-radius: 0.5rem;
}

.customer-list-toolbar-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    flex: 1 1 320px;
}

.customer-list-toolbar-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.customer-list-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 0.45rem;
    border: 1px solid transparent;
    line-height: 1.2;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.customer-list-action-btn:hover,
.customer-list-action-btn:focus,
.customer-list-action-btn.show {
    transform: translateY(-1px);
    text-decoration: none;
}

.customer-list-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 0.35rem;
    font-size: 0.95rem;
    font-weight: 700;
}

.customer-list-action-text {
    white-space: nowrap;
}

.customer-list-action-export {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d !important;
    border-color: rgba(34, 197, 94, 0.28);
}

.customer-list-action-export .customer-list-action-icon {
    background: #22c55e;
    color: #ffffff;
}

.customer-list-action-export:hover,
.customer-list-action-export:focus,
.customer-list-action-export.show {
    background: rgba(34, 197, 94, 0.18) !important;
    color: #15803d !important;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.18);
}

.customer-list-action-import {
    background: rgba(14, 165, 233, 0.12);
    color: #0369a1 !important;
    border-color: rgba(14, 165, 233, 0.28);
}

.customer-list-action-import .customer-list-action-icon {
    background: #0ea5e9;
    color: #ffffff;
}

.customer-list-action-import:hover,
.customer-list-action-import:focus {
    background: rgba(14, 165, 233, 0.18) !important;
    color: #0369a1 !important;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.18);
}

.customer-list-action-sample {
    background: rgba(100, 116, 139, 0.12);
    color: #334155 !important;
    border-color: rgba(100, 116, 139, 0.28);
}

.customer-list-action-sample .customer-list-action-icon {
    background: #64748b;
    color: #ffffff;
}

.customer-list-action-sample:hover,
.customer-list-action-sample:focus {
    background: rgba(100, 116, 139, 0.18) !important;
    color: #334155 !important;
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.18);
}

.customer-list-search-wrap {
    position: relative;
    min-width: 240px;
    flex: 1 1 280px;
    max-width: 360px;
}

.customer-list-search-wrap .ti-search {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bs-primary);
    font-size: 0.95rem;
    pointer-events: none;
}

.customer-list-search {
    padding-left: 2.25rem;
    font-size: 0.8125rem;
    min-height: 2.2rem;
    border-color: #d8dee6;
    border-radius: 0.375rem;
}

.customer-list-search:focus {
    border-color: rgba(var(--bs-primary-rgb), 0.55);
    box-shadow: 0 0 0 0.15rem rgba(var(--bs-primary-rgb), 0.12);
}

.customer-list-filter-select {
    min-width: 180px;
    max-width: 240px;
    font-size: 0.8125rem;
    min-height: 2.2rem;
    border-color: #d8dee6;
}

.customer-list-date-wrap {
    position: relative;
    min-width: 210px;
    max-width: 260px;
    flex: 0 1 240px;
}

.customer-list-date-wrap .customer-list-date-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bs-primary);
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 1;
}

.customer-list-date-input {
    font-size: 0.8125rem;
    min-height: 2.2rem;
    border-color: #d8dee6;
    padding-left: 2.25rem;
    padding-right: 2.25rem;
    background-color: #fff;
    cursor: pointer;
}

.customer-list-date-clear {
    position: absolute;
    right: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    line-height: 1;
    border-color: #dee2e6 !important;
}

.customer-list-date-clear:hover,
.customer-list-date-clear:focus {
    background-color: #f8f9fa !important;
    color: #212529 !important;
}

.customer-list-table-wrap {
    border: 1px solid #e9eef3;
    border-radius: 0.5rem;
    overflow: visible;
}

.customer-list-table-wrap .table {
    margin-bottom: 0;
}

.customer-list-table-wrap thead th {
    background: #f1f5f9 !important;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #4a5568;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.65rem 0.75rem;
    white-space: nowrap;
}

.customer-list-table-wrap tbody td {
    font-size: 0.8125rem;
    padding: 0.6rem 0.75rem;
    vertical-align: middle;
    border-color: #eef2f6;
}

.customer-list-dt-top,
.customer-list-dt-bottom {
    margin-left: 0;
    margin-right: 0;
}

.customer-list-dt-top .dataTables_length label,
.customer-list-dt-bottom .dataTables_info {
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 0;
}

.customer-list-dt-top .form-select {
    font-size: 0.8125rem;
    min-height: 2rem;
    width: auto;
    display: inline-block;
    margin: 0 0.35rem;
}

.customer-list-dt-bottom .pagination {
    margin-bottom: 0;
    gap: 0.2rem;
}

.customer-list-dt-bottom .page-link {
    font-size: 0.78rem;
    min-width: 2rem;
    text-align: center;
    border-radius: 0.375rem !important;
    color: #475569;
    border-color: #e2e8f0;
}

.customer-list-dt-bottom .page-item.active .page-link {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.customer-list-dt-bottom .page-link:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.08);
    color: var(--bs-primary);
}

/* Customer form — AMC radio: unchecked = black border, checked = blue */
.customer-amc-radio-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
}

.customer-amc-radio-option {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    cursor: pointer;
    user-select: none;
}

.customer-amc-radio-option span {
    font-size: 0.875rem;
    color: #1a2332;
}

#customerForm .customer-amc-radio {
    display: inline-block;
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    cursor: pointer;
    vertical-align: middle;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border-radius: 50%;
    border: 2px solid #000000;
    background-color: #ffffff;
    background-image: none;
    box-shadow: none;
    -webkit-box-shadow: none;
    outline: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

#customerForm .customer-amc-radio:checked {
    border-color: #236dc9;
    background-color: #236dc9;
    background-image: radial-gradient(circle, #ffffff 0, #ffffff 32%, transparent 33%);
}

#customerForm .customer-amc-radio:focus-visible {
    box-shadow: 0 0 0 3px rgba(35, 109, 201, 0.25);
}

/* Customer list — actions dropdown visible */
#customersTable_wrapper .table-responsive,
#customersTable_wrapper .dataTables_scrollBody {
    overflow: visible !important;
}

.customer-row-actions .dropdown-toggle {
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    min-height: 2rem;
}

.customer-row-actions .dropdown-toggle:hover,
.customer-row-actions .dropdown-toggle:focus,
.customer-row-actions.show .dropdown-toggle {
    color: var(--bs-primary);
}

.customer-row-actions .dropdown-menu {
    z-index: 1055;
    min-width: 11rem;
}

.customer-list-actions-col {
    width: 1%;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .customer-list-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .customer-list-toolbar-actions {
        justify-content: flex-start;
    }

    .customer-list-search-wrap {
        max-width: none;
    }

    .customer-list-filter-select {
        max-width: none;
        width: 100%;
    }
}

/* Modal forms — scroll body; calendar renders on body via appendTo */
#customerLiftFormModal .customer-lift-modal-dialog,
#complaintFormModal .customer-lift-modal-dialog {
    max-height: calc(100vh - 1rem);
    margin: 0.5rem auto;
}

#customerLiftFormModal .modal-content,
#complaintFormModal .modal-content {
    max-height: calc(100vh - 1rem);
    overflow: hidden;
}

#customerLiftFormModal .customer-lift-modal-form,
#complaintFormModal .customer-lift-modal-form {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 1rem);
    min-height: 0;
}

#customerLiftFormModal .modal-body,
#complaintFormModal .modal-body {
    overflow-x: hidden;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

#customerLiftFormModal .modal-header,
#customerLiftFormModal .modal-footer,
#complaintFormModal .modal-header,
#complaintFormModal .modal-footer {
    flex-shrink: 0;
}

/* Customer / Lift profile tabs */
.customer-profile-tabs {
    display: flex;
    flex-wrap: wrap;
    border: none;
    gap: 0.5rem;
    background: rgba(var(--cims-red-rgb), 0.08);
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(var(--cims-red-rgb), 0.22);
}

.customer-profile-tabs .nav-item {
    flex: 1;
}

.customer-profile-tabs .nav-link {
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff !important;
    background-color: var(--cims-red);
    border: 1px solid var(--cims-red-dark) !important;
    border-radius: 0.375rem !important;
    padding: 0.7rem 1rem;
    text-align: center;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 4px rgba(var(--cims-red-rgb), 0.25);
}

.customer-profile-tabs .nav-link.active {
    background-color: var(--cims-blue);
    color: #fff !important;
    border-color: var(--cims-blue-dark) !important;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(var(--cims-blue-rgb), 0.4);
}

.customer-profile-tabs .nav-link:not(.active):hover {
    background-color: var(--cims-red-dark);
    color: #fff !important;
    border-color: #b0151a !important;
    box-shadow: 0 2px 6px rgba(var(--cims-red-rgb), 0.35);
}

.customer-profile-tabs .nav-link.active:hover {
    background-color: var(--cims-blue-dark);
    border-color: var(--cims-blue-dark) !important;
}

.customer-profile-tabs .nav-link.active .badge {
    background-color: rgba(255, 255, 255, 0.25) !important;
    color: #fff !important;
    font-weight: 700;
}

.customer-profile-tabs .nav-link:not(.active) .badge {
    background-color: rgba(255, 255, 255, 0.22) !important;
    color: #fff !important;
    font-weight: 700;
}

.customer-profile-tabs .nav-link .badge {
    font-weight: 700;
}

/* -------------------------------------------------------------------------- */
/* Unified date picker — template Flatpickr (CimsDatePicker)                  */
/* -------------------------------------------------------------------------- */
.cims-date-input .input-group-text {
    background-color: #fff;
    border-color: #d8dee6;
    color: var(--cims-blue);
    padding-left: 0.85rem;
    padding-right: 0.85rem;
}

.cims-date-input .form-control,
.cims-date-input input.form-control.input {
    border-color: #d8dee6;
    cursor: pointer;
    background-color: #fff;
}

.cims-date-input .form-control:focus,
.cims-date-input input.form-control.input:focus {
    border-color: var(--cims-blue);
    box-shadow: 0 0 0 0.2rem rgba(var(--cims-blue-rgb), 0.12);
}

.cims-date-input .input-group-text + .form-control,
.cims-date-input .input-group-text + input.form-control.input {
    border-left: 0;
}

.customer-list-date-wrap .cims-date-picker-field,
.customer-list-date-wrap input.form-control {
    padding-left: 2.25rem;
    padding-right: 2.25rem;
}

/* Bootstrap Daterangepicker — template + CIMS brand */
.daterangepicker {
    z-index: 1070 !important;
    border-radius: 0.5rem;
    border-color: #d8dee6;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
    font-family: inherit;
    padding: 0.5rem;
}

.daterangepicker .calendar-table th,
.daterangepicker .calendar-table td {
    font-size: 0.8125rem;
}

.daterangepicker select.monthselect,
.daterangepicker select.yearselect {
    font-size: 0.875rem;
    padding: 0.2rem 0.35rem;
    border-radius: 0.35rem;
    border-color: #d8dee6;
    cursor: pointer;
}

.daterangepicker td.active,
.daterangepicker td.active:hover {
    background-color: var(--cims-blue) !important;
    border-color: var(--cims-blue) !important;
}

.daterangepicker td.in-range {
    background-color: rgba(var(--cims-blue-rgb), 0.12);
    color: #1f2937;
}

.daterangepicker .drp-buttons .btn-primary {
    background-color: var(--cims-red);
    border-color: var(--cims-red);
}

.daterangepicker .drp-buttons .btn-primary:hover {
    background-color: var(--cims-red-dark);
    border-color: var(--cims-red-dark);
}

.daterangepicker .calendar-time select {
    padding: 0.2rem 0.35rem;
    border-radius: 0.35rem;
}

.modal .daterangepicker {
    position: absolute !important;
}

.lead-status-col {
    min-width: 130px;
}

.lead-status-select {
    min-width: 118px;
    max-width: 150px;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border-width: 1.5px;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.lead-status-select.lead-status-new {
    background-color: rgba(59, 130, 246, 0.12);
    border-color: #3b82f6;
    color: #1d4ed8;
}

.lead-status-select.lead-status-contacted {
    background-color: rgba(14, 165, 233, 0.12);
    border-color: #0ea5e9;
    color: #0369a1;
}

.lead-status-select.lead-status-site-scheduled,
.lead-status-select.lead-status-site-done {
    background-color: rgba(168, 85, 247, 0.12);
    border-color: #a855f7;
    color: #7e22ce;
}

.lead-status-select.lead-status-quoted {
    background-color: rgba(245, 158, 11, 0.14);
    border-color: #f59e0b;
    color: #b45309;
}

.lead-status-select.lead-status-negotiation {
    background-color: rgba(249, 115, 22, 0.14);
    border-color: #f97316;
    color: #c2410c;
}

.lead-status-select.lead-status-won,
.lead-status-select.lead-status-converted {
    background-color: rgba(34, 197, 94, 0.14);
    border-color: #22c55e;
    color: #15803d;
}

.lead-status-select.lead-status-lost {
    background-color: rgba(239, 68, 68, 0.12);
    border-color: #ef4444;
    color: #b91c1c;
}

.lead-status-select.lead-status-cold {
    background-color: rgba(100, 116, 139, 0.14);
    border-color: #64748b;
    color: #475569;
}

.lead-status-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
}

.lead-sales-col {
    min-width: 140px;
}

.lead-sales-select {
    min-width: 130px;
    max-width: 160px;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    font-size: 0.8125rem;
}

.lead-sales-select option[value=""] {
    color: #64748b;
}

.lead-follow-up-col {
    min-width: 170px;
}

.lead-follow-up-cell .smaller {
    font-size: 0.75rem;
}

.lead-activity-item:last-child {
    border-bottom: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.topbar-notify-badge {
    position: absolute;
    top: 4px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;
    pointer-events: none;
}

.topbar-item.dropdown > .topbar-link {
    position: relative;
    z-index: 2;
}

.topbar-notify-menu {
    width: min(420px, 94vw);
    max-height: min(78vh, 560px);
    overflow: hidden;
    border-radius: 0.85rem !important;
    margin-top: 0.55rem !important;
    z-index: 1055;
}

.notify-panel {
    display: flex;
    flex-direction: column;
    max-height: min(78vh, 560px);
    background: #fff;
}

.notify-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.1rem 0.9rem;
    border-bottom: 1px solid #eef2f7;
    background: linear-gradient(180deg, #fafbfd 0%, #fff 100%);
}

.notify-panel__title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.notify-panel__subtitle {
    margin-top: 0.15rem;
    font-size: 0.76rem;
    color: #64748b;
}

.notify-panel__mark-read {
    border: 0;
    background: transparent;
    color: #2563eb;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 0.35rem 0.5rem;
    border-radius: 0.4rem;
    white-space: nowrap;
}

.notify-panel__mark-read:hover {
    background: rgba(37, 99, 235, 0.08);
}

.notify-panel__body {
    overflow-y: auto;
    padding: 0.35rem 0 0.5rem;
}

.notify-section {
    padding: 0.65rem 0.85rem 0.35rem;
}

.notify-section + .notify-section {
    border-top: 1px solid #eef2f7;
    margin-top: 0.15rem;
}

.notify-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.55rem;
}

.notify-section__label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

.notify-section__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 0.4rem;
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
    font-size: 0.82rem;
}

.notify-section__icon--lead {
    background: rgba(14, 165, 233, 0.12);
    color: #0284c7;
}

.notify-section__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 0.68rem;
    font-weight: 700;
}

.notify-section__count--lead {
    background: #dbeafe;
    color: #1d4ed8;
}

.notify-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.55rem;
}

.notify-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.68rem;
    font-weight: 600;
}

.notify-section__list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.notify-card {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.72rem 0.75rem;
    border: 1px solid #e9eef5;
    border-radius: 0.65rem;
    background: #fff;
    text-decoration: none !important;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.notify-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

.notify-card__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.55rem;
    font-size: 1rem;
}

.notify-icon-success {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}

.notify-icon-danger {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.notify-icon-warning {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
}

.notify-icon-info {
    background: rgba(14, 165, 233, 0.12);
    color: #0369a1;
}

.notify-icon-muted {
    background: #f1f5f9;
    color: #64748b;
}

.notify-card__content {
    flex: 1 1 auto;
    min-width: 0;
}

.notify-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.15rem;
}

.notify-card__title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}

.notify-card__time {
    flex-shrink: 0;
    font-size: 0.68rem;
    color: #94a3b8;
    white-space: nowrap;
}

.notify-card__meta {
    display: block;
    font-size: 0.74rem;
    color: #475569;
    line-height: 1.35;
}

.notify-card__ref {
    display: block;
    margin-top: 0.12rem;
    font-size: 0.68rem;
    color: #64748b;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.notify-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.4rem;
}

.notify-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.14rem 0.45rem;
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 700;
    line-height: 1.2;
}

.notify-tag-success {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}

.notify-tag-danger {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.notify-tag-warning {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
}

.notify-tag-info {
    background: rgba(14, 165, 233, 0.12);
    color: #0369a1;
}

.notify-tag-muted {
    background: #f1f5f9;
    color: #64748b;
}

.notify-card__arrow {
    flex-shrink: 0;
    align-self: center;
    color: #cbd5e1;
    font-size: 0.95rem;
}

.notify-card:hover .notify-card__arrow {
    color: #2563eb;
}

.notify-empty {
    text-align: center;
    padding: 1.1rem 0.75rem;
    border: 1px dashed #e2e8f0;
    border-radius: 0.65rem;
    background: #fafbfd;
}

.notify-empty--compact {
    padding: 0.85rem 0.75rem;
}

.notify-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    margin-bottom: 0.45rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #94a3b8;
    font-size: 1rem;
}

.notify-empty__title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
}

.notify-empty__text {
    margin-top: 0.15rem;
    font-size: 0.72rem;
    color: #64748b;
}

.notify-section__footer {
    margin-top: 0.55rem;
    padding-top: 0.15rem;
}

.notify-footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.55rem 0.75rem;
    border-radius: 0.55rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155 !important;
    font-size: 0.76rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.notify-footer-link:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8 !important;
}

.topbar-notify-item:hover {
    background: transparent;
}

.topbar-notify-menu .dropdown-header {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

/* -------------------------------------------------------------------------- */
/* Admin dashboard                                                            */
/* -------------------------------------------------------------------------- */
.dashboard-page-wrap {
    padding-bottom: 1.5rem;
}

.dashboard-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.dashboard-page-filters {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.dashboard-date-wrap {
    min-width: 260px;
}

.dashboard-date-wrap .customer-list-date-input {
    min-width: 240px;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
}

.dashboard-loading {
    display: flex;
    align-items: center;
    padding: 0.65rem 0.9rem;
    margin-bottom: 1rem;
    border-radius: 0.55rem;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.85rem;
    font-weight: 600;
}

.dashboard-section {
    margin-bottom: 1.35rem;
}

.dashboard-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.dashboard-section-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.dashboard-stat-card {
    display: block;
    position: relative;
    overflow: hidden;
    height: 100%;
    border-radius: 0.9rem;
    border: 1px solid #e8edf3;
    background: #fff;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    color: inherit;
}

.dashboard-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0.95;
}

.dashboard-stat-card::after {
    content: '';
    position: absolute;
    top: -28px;
    right: -28px;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    opacity: 0.35;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.dashboard-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
}

.dashboard-stat-card:hover::after {
    transform: scale(1.15);
    opacity: 0.5;
}

.dashboard-stat-card__body {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.05rem 1rem 1rem;
    min-height: 100%;
    position: relative;
    z-index: 1;
}

.dashboard-stat-card__icon {
    flex-shrink: 0;
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.dashboard-stat-card:hover .dashboard-stat-card__icon {
    transform: scale(1.08) rotate(-3deg);
}

.dashboard-stat-card__content {
    flex: 1;
    min-width: 0;
}

.dashboard-stat-card__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

.dashboard-stat-card__value {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.15;
    color: #0f172a;
    margin-top: 0.15rem;
}

.dashboard-stat-card__hint {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 0.2rem;
}

.dashboard-stat-card__change {
    font-size: 0.68rem;
    font-weight: 600;
    margin-top: 0.35rem;
}

.dashboard-stat-card__arrow {
    color: #cbd5e1;
    font-size: 1rem;
    margin-top: 0.15rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.dashboard-stat-card:hover .dashboard-stat-card__arrow {
    color: var(--cims-red);
    transform: translate(2px, -2px);
}

.dashboard-stat-card--primary {
    background: linear-gradient(145deg, #ffffff 0%, #f0f7ff 100%);
    border-color: rgba(0, 86, 179, 0.18);
}
.dashboard-stat-card--primary::before { background: linear-gradient(90deg, #0056b3, #3b82f6); }
.dashboard-stat-card--primary::after { background: radial-gradient(circle, rgba(0, 86, 179, 0.22) 0%, transparent 70%); }
.dashboard-stat-card--primary .dashboard-stat-card__icon {
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.22), rgba(0, 86, 179, 0.08));
    color: var(--cims-blue);
    box-shadow: 0 4px 14px rgba(0, 86, 179, 0.18);
}
.dashboard-stat-card--primary:hover { border-color: rgba(0, 86, 179, 0.35); }

.dashboard-stat-card--danger {
    background: linear-gradient(145deg, #ffffff 0%, #fff5f5 100%);
    border-color: rgba(227, 30, 36, 0.18);
}
.dashboard-stat-card--danger::before { background: linear-gradient(90deg, #e31e24, #f87171); }
.dashboard-stat-card--danger::after { background: radial-gradient(circle, rgba(227, 30, 36, 0.2) 0%, transparent 70%); }
.dashboard-stat-card--danger .dashboard-stat-card__icon {
    background: linear-gradient(135deg, rgba(227, 30, 36, 0.22), rgba(227, 30, 36, 0.08));
    color: var(--cims-red);
    box-shadow: 0 4px 14px rgba(227, 30, 36, 0.18);
}
.dashboard-stat-card--danger:hover { border-color: rgba(227, 30, 36, 0.35); }

.dashboard-stat-card--warning {
    background: linear-gradient(145deg, #ffffff 0%, #fffbeb 100%);
    border-color: rgba(245, 158, 11, 0.22);
}
.dashboard-stat-card--warning::before { background: linear-gradient(90deg, #d97706, #fbbf24); }
.dashboard-stat-card--warning::after { background: radial-gradient(circle, rgba(245, 158, 11, 0.22) 0%, transparent 70%); }
.dashboard-stat-card--warning .dashboard-stat-card__icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.24), rgba(245, 158, 11, 0.1));
    color: #b45309;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.2);
}
.dashboard-stat-card--warning:hover { border-color: rgba(245, 158, 11, 0.4); }

.dashboard-stat-card--success {
    background: linear-gradient(145deg, #ffffff 0%, #f0fdf4 100%);
    border-color: rgba(34, 197, 94, 0.2);
}
.dashboard-stat-card--success::before { background: linear-gradient(90deg, #15803d, #4ade80); }
.dashboard-stat-card--success::after { background: radial-gradient(circle, rgba(34, 197, 94, 0.2) 0%, transparent 70%); }
.dashboard-stat-card--success .dashboard-stat-card__icon {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.22), rgba(34, 197, 94, 0.08));
    color: #15803d;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.18);
}
.dashboard-stat-card--success:hover { border-color: rgba(34, 197, 94, 0.38); }

.dashboard-stat-card--info {
    background: linear-gradient(145deg, #ffffff 0%, #f0f9ff 100%);
    border-color: rgba(14, 165, 233, 0.2);
}
.dashboard-stat-card--info::before { background: linear-gradient(90deg, #0369a1, #38bdf8); }
.dashboard-stat-card--info::after { background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, transparent 70%); }
.dashboard-stat-card--info .dashboard-stat-card__icon {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(14, 165, 233, 0.08));
    color: #0369a1;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.18);
}
.dashboard-stat-card--info:hover { border-color: rgba(14, 165, 233, 0.38); }

.dashboard-stat-card--secondary {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-color: #e2e8f0;
}
.dashboard-stat-card--secondary::before { background: linear-gradient(90deg, #64748b, #94a3b8); }
.dashboard-stat-card--secondary::after { background: radial-gradient(circle, rgba(100, 116, 139, 0.18) 0%, transparent 70%); }
.dashboard-stat-card--secondary .dashboard-stat-card__icon {
    background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
    color: #475569;
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.12);
}
.dashboard-stat-card--secondary:hover { border-color: #cbd5e1; }

.dashboard-chart-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid #eef2f7 !important;
}

.dashboard-chart-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.09) !important;
}

.dashboard-chart-card .card-header {
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
}

.dashboard-chart-card .card-title {
    font-size: 0.95rem;
    font-weight: 700;
}

.dashboard-chart {
    min-height: 300px;
}

.dashboard-chart-donut {
    min-height: 320px;
}

.dashboard-quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.dashboard-quick-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.72rem 0.85rem;
    border: 1px solid #e8edf3;
    border-radius: 0.6rem;
    color: #334155 !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.dashboard-quick-link:hover {
    background: rgba(227, 30, 36, 0.06);
    border-color: rgba(227, 30, 36, 0.25);
    color: var(--cims-red) !important;
    transform: translateX(4px);
}

.dashboard-quick-link__icon {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: transform 0.2s ease;
}

.dashboard-quick-link:hover .dashboard-quick-link__icon {
    transform: scale(1.08);
}

.dashboard-quick-link:nth-child(1) .dashboard-quick-link__icon { background: rgba(0, 86, 179, 0.12); color: var(--cims-blue); }
.dashboard-quick-link:nth-child(2) .dashboard-quick-link__icon { background: rgba(227, 30, 36, 0.12); color: var(--cims-red); }
.dashboard-quick-link:nth-child(3) .dashboard-quick-link__icon { background: rgba(245, 158, 11, 0.14); color: #b45309; }
.dashboard-quick-link:nth-child(4) .dashboard-quick-link__icon { background: rgba(14, 165, 233, 0.12); color: #0369a1; }
.dashboard-quick-link:nth-child(5) .dashboard-quick-link__icon { background: rgba(34, 197, 94, 0.12); color: #15803d; }
.dashboard-quick-link:nth-child(6) .dashboard-quick-link__icon { background: rgba(139, 92, 246, 0.12); color: #7c3aed; }

.dashboard-recent-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.dashboard-recent-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.72rem 0.8rem;
    border: 1px solid #eef2f7;
    border-radius: 0.55rem;
    text-decoration: none !important;
    color: inherit;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-recent-item:hover {
    background: #f8fafc;
    border-color: #dbe3ee;
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.dashboard-recent-item__title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
}

.dashboard-recent-item__subtitle {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 0.1rem;
}

@media (max-width: 767.98px) {
    .dashboard-stat-card__value {
        font-size: 1.35rem;
    }

    .dashboard-page-head {
        flex-direction: column;
    }
}

