/* GrowCRM + Limitless layout_1 bridge styles */

/* ---- App shell ---- */
html.layout-static {
    --sidebar-width: 16.5rem;
    --navbar-height: 3rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

html.layout-static body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

html.layout-static body > #crm-main-navbar {
    flex-shrink: 0;
    align-self: stretch;
}

html.layout-static .page-content {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

html.layout-static .sidebar.sidebar-main:not(.sidebar-main-resized) {
    width: var(--sidebar-width);
    flex: 0 0 var(--sidebar-width);
    max-width: var(--sidebar-width);
}

html.layout-static .sidebar {
    --sidebar-width: 17rem;
    align-self: stretch;
    min-height: 0;
}

html.layout-static .sidebar .sidebar-content {
    overflow-y: auto;
    overscroll-behavior: contain;
}

html.layout-static .content-wrapper {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

html.layout-static .content-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

body > .tooltip,
.modal .tooltip,
.page-content .tooltip {
    z-index: 1080;
    pointer-events: none;
}

.tooltip-custom .tooltip-inner {
    max-width: 240px;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.35;
}

html.layout-static .content {
    flex: 1 0 auto;
}

/* ---- Sidebar: neutralize legacy GrowCRM wrappers ---- */
.limitless-sidebar-nav,
.limitless-sidebar-nav .sidebar-nav {
    display: block;
    width: 100%;
}

.limitless-sidebar-nav .left-sidebar,
.limitless-sidebar-nav aside.left-sidebar,
.limitless-sidebar-nav .scroll-sidebar {
    position: static;
    width: 100%;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

/* ---- Sidebar: CRM bridge (use core Limitless .nav-sidebar styles) ---- */
.limitless-sidebar-nav .nav-sidebar > .sidenav-menu-item,
.limitless-sidebar-nav .nav-sidebar > li {
    list-style: none;
}

/* Prevent blue default link flash before limitless-sidebar.js adds .nav-link */
.sidebar-dark .limitless-sidebar-nav #sidebarnav a:not(.nav-link) {
    color: var(--nav-link-color, rgba(255, 255, 255, 0.85));
    text-decoration: none;
}

.limitless-sidebar-nav .waves-effect,
.limitless-sidebar-nav .waves-dark {
    box-shadow: none;
}

.crm-sidebar-heading {
    pointer-events: none;
    user-select: none;
    font-size: var(--body-font-size-xs, 0.625rem);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
}

.sidebar-main-resized .crm-sidebar-heading,
.sidebar-resized .crm-sidebar-heading {
    display: none;
}

.limitless-sidebar-nav .nav-link i[class^="ph-"],
.limitless-sidebar-nav .nav-link i[class*=" ph-"] {
    font-family: var(--icon-font-family, Phosphor);
}

/* ---- Main content ---- */
.content .page-titles,
.content .container-fluid {
    width: 100%;
}

.content .preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(var(--body-bg-rgb, 255, 255, 255), 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
}

.content .preloader .loader-loading {
    width: 2rem;
    height: 2rem;
    border: 0.2rem solid rgba(var(--primary-rgb, 33, 150, 243), 0.2);
    border-top-color: rgba(var(--primary-rgb, 33, 150, 243), 1);
    border-radius: 50%;
    animation: crm-spin 0.8s linear infinite;
}

@keyframes crm-spin {
    to { transform: rotate(360deg); }
}

/* ---- Auth pages ---- */
.auth-body .page-content {
    min-height: calc(100vh - 3.5rem);
}

.auth-body .content-wrapper,
.auth-body .content-inner {
    min-height: inherit;
}

.auth-body .content.d-flex {
    min-height: calc(100vh - 8rem);
}

.login-form {
    width: 100%;
    max-width: 24rem;
}

/* ---- Topnav dropdowns & module hooks (layout_1 markup in limitless-topnav.blade.php) ---- */
#crm-main-navbar .dropdown-menu .dropdown-header {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gray-600, #6b7280);
}

/* Profile dropdown — polished SaaS menu */
#crm-main-navbar .crm-topnav-user-menu {
    min-width: 18rem;
    padding: 0;
    border: 1px solid var(--border-color-translucent, rgba(0, 0, 0, 0.08));
    border-radius: var(--border-radius-lg, 0.5rem);
    box-shadow: var(--box-shadow-lg, 0 8px 24px rgba(15, 23, 42, 0.12));
    overflow: hidden;
}

#crm-main-navbar .crm-topnav-user-menu-header {
    padding: 1rem 1rem 0.875rem;
    background: linear-gradient(135deg, rgba(var(--primary-rgb, 12, 131, 255), 0.08) 0%, rgba(var(--primary-rgb, 12, 131, 255), 0.02) 100%);
    border-bottom: 1px solid var(--border-color-translucent, rgba(0, 0, 0, 0.06));
}

#crm-main-navbar .crm-topnav-user-menu-avatar img {
    width: 3.25rem;
    height: 3.25rem;
    object-fit: cover;
    box-shadow: 0 0 0 3px #fff, 0 2px 8px rgba(15, 23, 42, 0.12);
}

#crm-main-navbar .crm-topnav-user-fallback-lg {
    width: 3.25rem;
    height: 3.25rem;
    font-size: 1.0625rem;
}

#crm-main-navbar .crm-topnav-user-menu-avatar-action {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.75rem;
    padding: 0.3125rem 0.625rem;
    border-radius: var(--border-radius-pill, 50rem);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary, #0c83ff);
    background: rgba(var(--primary-rgb, 12, 131, 255), 0.1);
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

#crm-main-navbar .crm-topnav-user-menu-avatar-action:hover {
    background: rgba(var(--primary-rgb, 12, 131, 255), 0.16);
    color: var(--primary, #0c83ff);
}

#crm-main-navbar .crm-topnav-user-menu-body {
    padding: 0.5rem 0;
}

#crm-main-navbar .crm-topnav-user-menu-section + .crm-topnav-user-menu-section {
    margin-top: 0.25rem;
    padding-top: 0.25rem;
    border-top: 1px solid var(--border-color-translucent, rgba(0, 0, 0, 0.06));
}

#crm-main-navbar .crm-topnav-user-menu-section-label {
    padding: 0.375rem 1rem 0.25rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gray-500, #9ca3af);
}

#crm-main-navbar .crm-topnav-user-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.125rem 0.5rem;
    padding: 0.5rem 0.625rem;
    border-radius: var(--border-radius, 0.375rem);
    color: var(--body-color, #1f2937);
    font-size: 0.875rem;
    line-height: 1.35;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

#crm-main-navbar .crm-topnav-user-menu-item:hover,
#crm-main-navbar .crm-topnav-user-menu-item:focus {
    background: var(--gray-100, #f3f4f6);
    color: var(--body-color, #111827);
}

#crm-main-navbar .crm-topnav-user-menu-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: var(--border-radius, 0.375rem);
    background: var(--gray-100, #f3f4f6);
    color: var(--gray-700, #4b5563);
    font-size: 1rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

#crm-main-navbar .crm-topnav-user-menu-item:hover .crm-topnav-user-menu-item-icon,
#crm-main-navbar .crm-topnav-user-menu-item:focus .crm-topnav-user-menu-item-icon {
    background: rgba(var(--primary-rgb, 12, 131, 255), 0.12);
    color: var(--primary, #0c83ff);
}

#crm-main-navbar .crm-topnav-user-menu-item-text {
    flex: 1 1 auto;
    min-width: 0;
}

#crm-main-navbar .crm-topnav-user-menu-footer {
    padding: 0.5rem;
    border-top: 1px solid var(--border-color-translucent, rgba(0, 0, 0, 0.06));
    background: var(--gray-50, #f9fafb);
}

#crm-main-navbar .crm-topnav-user-menu-item-logout .crm-topnav-user-menu-item-icon {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger, #ef4444);
}

#crm-main-navbar .crm-topnav-user-menu-item-logout:hover {
    background: rgba(239, 68, 68, 0.08);
    color: var(--danger, #dc2626);
}

#crm-main-navbar .crm-topnav-user-menu-item-logout:hover .crm-topnav-user-menu-item-icon {
    background: rgba(239, 68, 68, 0.16);
    color: var(--danger, #dc2626);
}

/* Legacy dropdown-item fallback inside profile modules */
#crm-main-navbar .crm-topnav-user-menu .dropdown-item {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    padding: 0.5rem 0.625rem;
    margin: 0.125rem 0.5rem;
    border-radius: var(--border-radius, 0.375rem);
}

#crm-main-navbar .crm-topnav-profile-modules {
    padding: 0;
}

#crm-main-navbar .crm-topnav-profile-modules li {
    list-style: none;
}

#crm-main-navbar .crm-topnav-profile-modules li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.125rem 0.5rem;
    padding: 0.5rem 0.625rem;
    border-radius: var(--border-radius, 0.375rem);
    color: var(--body-color, #1f2937);
    text-decoration: none;
    font-size: 0.875rem;
}

#crm-main-navbar .crm-topnav-profile-modules li a:hover {
    background: var(--gray-100, #f3f4f6);
    color: var(--body-color, #1f2937);
}

#crm-main-navbar .crm-topnav-profile-modules li.divider,
#crm-main-navbar .crm-topnav-profile-modules li[role="separator"] {
    height: 0;
    margin: 0.375rem 0.75rem;
    overflow: hidden;
    border-top: 1px solid var(--border-color-translucent, rgba(0, 0, 0, 0.06));
    list-style: none;
}

/* Legacy module topnav items injected via config('modules.menus.topnav.*') */
#crm-main-navbar .nav > .nav-item > .nav-link:not(.navbar-nav-link) {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.125rem;
    height: 2.125rem;
    padding: 0;
    border-radius: var(--border-radius, 0.375rem);
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.125rem;
    line-height: 1;
}

#crm-main-navbar .nav > .nav-item > .nav-link:not(.navbar-nav-link):hover,
#crm-main-navbar .nav > .nav-item > .nav-link:not(.navbar-nav-link):focus {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

#crm-main-navbar .nav > .nav-item.dropdown > .nav-link.dropdown-toggle::after {
    display: none;
}

#crm-main-navbar .crm-topnav-icon-menu {
    min-width: 12.5rem;
    max-height: min(70vh, 28rem);
    overflow-y: auto;
}

#crm-main-navbar .crm-topnav-icon-menu .dropdown-item {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
}

#crm-main-navbar .crm-topnav-icon-menu .dropdown-item i {
    opacity: 0.75;
}

#crm-main-navbar .crm-topnav-quickadd-btn {
    color: #ff8a98 !important;
}

#crm-main-navbar .crm-topnav-quickadd-btn:hover,
#crm-main-navbar .crm-topnav-quickadd-btn.show,
#crm-main-navbar .crm-topnav-quickadd-btn[aria-expanded="true"] {
    color: #ff5c6c !important;
    background: rgba(255, 92, 108, 0.12) !important;
}


#crm-main-navbar .crm-topnav-timer-link:hover,
#crm-main-navbar .crm-topnav-timer-link.show,
#crm-main-navbar .crm-topnav-timer-link[aria-expanded="true"] {
    background: rgba(125, 211, 252, 0.12) !important;
    color: #bae6fd !important;
}

#crm-main-navbar .crm-topnav-timer-menu {
    min-width: 16rem;
}

#crm-main-navbar .crm-topnav-timer-menu .x-heading {
    font-weight: 600;
    margin-bottom: 0.375rem;
}

#crm-main-navbar .crm-topnav-timer-menu .x-task {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

#crm-main-navbar .crm-topnav-timer-menu .x-task a {
    color: var(--primary, #0c83ff);
    text-decoration: none;
}

#crm-main-navbar .crm-topnav-language-menu .dropdown-item {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

#crm-main-navbar .crm-topnav-icon-menu .dropdown-item.dropdown-item-iconed,
#crm-main-navbar .crm-topnav-quickadd-modules a {
    display: flex;
    align-items: center;
}

.navbar-top-right-limitless .notify {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
}

.navbar-top-right-limitless .notify .point {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--danger);
    display: block;
}

/* Override legacy theme sidebar if vendor.css still targets it */
.sidebar .left-sidebar,
.page-content > .left-sidebar {
    display: none !important;
}

/* ---- Dashboard (Limitless layout_1) ---- */
.crm-dashboard {
    padding-top: 0.25rem;
}

.crm-dashboard-stat {
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.crm-dashboard-stat:hover {
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
}

.crm-dashboard-stat .bg-opacity-10 i {
    font-size: 1.25rem;
}

.crm-dashboard .card-header {
    background-color: transparent;
}

/* ---- Dashboard charts (Limitless style) ---- */
.crm-chart-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-700, #374151);
    white-space: nowrap;
}

.crm-chart-legend-dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.crm-chart-legend-dot--income {
    background-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.crm-chart-legend-dot--expense {
    background-color: #0c83ff;
    box-shadow: 0 0 0 3px rgba(12, 131, 255, 0.15);
}

.crm-chart-year-select {
    width: auto;
    min-width: 5.5rem;
    background-position: right 0.65rem center;
}

/* Prevent double chevron if select2 was initialized elsewhere */
.crm-chart-year-select + .select2-container {
    display: none;
}

.crm-income-chart {
    position: relative;
    height: 280px;
}

.crm-income-chart .ct-grid {
    stroke: rgba(var(--body-color-rgb, 31, 41, 55), 0.08);
    stroke-width: 1px;
    stroke-dasharray: 3px;
}

.crm-income-chart .ct-label {
    fill: var(--gray-600, #6b7280);
    font-size: 0.6875rem;
}

.crm-income-chart .ct-series-a .ct-area {
    fill: rgba(5, 150, 105, 0.18);
}

.crm-income-chart .ct-series-a .ct-line,
.crm-income-chart .ct-series-a .ct-point {
    stroke: #059669;
}

.crm-income-chart .ct-series-b .ct-area {
    fill: rgba(12, 131, 255, 0.14);
}

.crm-income-chart .ct-series-b .ct-line,
.crm-income-chart .ct-series-b .ct-point {
    stroke: #0c83ff;
}

.crm-income-chart .ct-point {
    stroke-width: 8px;
    stroke-linecap: round;
    pointer-events: all;
    cursor: pointer;
}

.crm-income-chart .ct-line {
    stroke-width: 2.5px;
    pointer-events: none;
}

.crm-income-chart .ct-area {
    pointer-events: none;
}

.crm-chart-tooltip-floating {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    background: #252b36;
    color: #fff;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    line-height: 1.35;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.18);
    white-space: nowrap;
}

.crm-chart-tooltip-floating.hidden {
    display: none !important;
}

.crm-chart-tooltip-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.125rem;
}

.crm-chart-tooltip-value {
    display: block;
    opacity: 0.9;
}

.crm-chart-tooltip {
    background: #252b36 !important;
    color: #fff !important;
    border-radius: 0.375rem !important;
    padding: 0.35rem 0.65rem !important;
    font-size: 0.75rem !important;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15) !important;
}

.crm-chart-tooltip::before {
    border-top-color: #252b36 !important;
}

.crm-donut-chart,
.crm-dashboard #leadsWidget,
.crm-dashboard #ticketsWidget {
    min-height: 260px;
    width: 100%;
}

.crm-donut-chart svg,
#leadsWidget svg,
#ticketsWidget svg {
    max-width: 100%;
}

.crm-donut-chart .c3-chart-arcs-title {
    font-size: 0.8125rem;
    font-weight: 500;
    fill: var(--gray-600, #6b7280);
}

.crm-donut-chart .c3-chart-arc path {
    stroke: #fff;
    stroke-width: 2px;
}

.crm-donut-chart .c3-tooltip-container {
    border-radius: 0.375rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.12);
}

.crm-dashboard-projects .list-group-item {
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
}

/* ---- Latest activity ---- */
.crm-activity-scroll {
    height: 320px;
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.crm-activity-feed {
    padding: 1rem;
}

.crm-activity-item {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
}

.crm-activity-item:first-child {
    padding-top: 0;
}

.crm-activity-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.crm-activity-avatar {
    width: 32px;
    height: 32px;
}

.crm-activity-avatar img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    display: block;
}

.crm-activity-avatar-fallback {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb, 12, 131, 255), 0.12);
    color: var(--primary, #0c83ff);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}

.crm-activity-title {
    color: var(--body-color, #1f2937);
    line-height: 1.45;
}

.crm-activity-title a {
    color: var(--primary, #0c83ff);
    text-decoration: none;
}

.crm-activity-title a:hover {
    text-decoration: underline;
}

.crm-activity-detail {
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    color: var(--gray-700, #374151);
}

.crm-activity-detail .x-description {
    margin: 0;
    padding: 0.375rem 0.5rem;
    background: var(--gray-100, #f3f4f6);
    border-radius: 0.375rem;
    font-size: 0.8125rem;
}

.crm-activity-detail .x-description p {
    margin-bottom: 0;
}

.crm-activity-detail .x-description a {
    color: var(--primary, #0c83ff);
    text-decoration: none;
}

.crm-activity-detail .x-description a:hover {
    text-decoration: underline;
}

.crm-activity-empty {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.crm-dashboard .table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: rgba(var(--body-color-rgb, 33, 37, 41), 0.65);
    border-bottom-width: 1px;
}

/* ---- Notifications panel (Limitless activity drawer) ---- */
#sidepanel-notifications.crm-notify-panel {
    background: var(--white, #fff);
    box-shadow: var(--box-shadow-lg, 0 6px 12px rgba(0, 0, 0, 0.15));
    border-left: var(--border-width, 1px) solid var(--border-color-translucent, rgba(0, 0, 0, 0.125));
    padding-bottom: 0;
}

#sidepanel-notifications.crm-notify-panel.shw-rside {
    width: 420px;
    max-width: 100vw;
}

.crm-notify-panel-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.crm-notify-header {
    flex-shrink: 0;
    padding: 1.25rem 1.25rem 0;
    background: var(--white, #fff);
    border-bottom: var(--border-width, 1px) solid var(--border-color, #e5e7eb);
}

.crm-notify-header .offcanvas-title {
    font-size: 1rem;
    font-weight: 600;
}

#sidepanel-notifications .nav-tabs-underline {
    border-bottom-color: var(--border-color, #e5e7eb);
}

#sidepanel-notifications .nav-tabs-underline .nav-link {
    color: var(--gray-600, #6b7280);
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
    font-size: 0.875rem;
}

#sidepanel-notifications .nav-tabs-underline .nav-link.active {
    color: var(--body-color, #1f2937);
    font-weight: 600;
}

#sidepanel-notifications .right-sidepanel-menu {
    color: var(--gray-600, #6b7280) !important;
}

#sidepanel-notifications .right-sidepanel-menu.active {
    color: var(--body-color, #1f2937) !important;
}

.crm-notify-toolbar {
    flex-shrink: 0;
    padding: 0.625rem 1.25rem;
    background: var(--gray-100, #f9fafb);
    border-bottom: var(--border-width, 1px) solid var(--border-color, #e5e7eb);
}

.crm-notify-toolbar a {
    display: inline-flex;
    align-items: center;
    font-size: 0.8125rem;
    color: var(--primary, #0c83ff) !important;
    text-decoration: none;
}

.crm-notify-toolbar a:hover {
    text-decoration: underline;
}

.crm-notify-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.crm-notify-events {
    padding: 0;
}

.crm-notify-list {
    padding: 0;
}

.crm-notify-item {
    padding: 1rem 1.25rem;
    border-bottom: var(--border-width, 1px) solid var(--border-color, #e5e7eb);
}

.crm-notify-item:last-child {
    border-bottom: 0;
}

.crm-notify-item-unread {
    background: rgba(var(--primary-rgb, 12, 131, 255), 0.04);
}

.crm-notify-system-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--warning-rgb, 247, 144, 9), 0.12);
    color: var(--warning, #f79009);
    font-size: 1.125rem;
}

.crm-notify-avatar-fallback {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb, 12, 131, 255), 0.12);
    color: var(--primary, #0c83ff);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
}

.crm-notify-text {
    color: var(--body-color, #1f2937);
    line-height: 1.5;
}

.crm-notify-text .fw-semibold {
    margin-right: 0.25rem;
}

.crm-notify-action {
    color: var(--body-color, #1f2937);
}

.crm-notify-ref {
    margin-top: 0.25rem;
    color: var(--gray-600, #6b7280);
    line-height: 1.45;
}

.crm-notify-ref:empty {
    display: none;
}

.crm-notify-ref a,
.crm-notify-ref .x-reference a {
    color: var(--primary, #0c83ff) !important;
    text-decoration: none;
}

.crm-notify-ref a:hover,
.crm-notify-ref .x-reference a:hover {
    text-decoration: underline;
}

.crm-notify-detail {
    margin-top: 0.5rem;
}

.crm-notify-detail .x-description {
    margin: 0;
    padding: 0.5rem 0.75rem;
    background: var(--gray-100, #f3f4f6);
    border-radius: var(--border-radius, 0.375rem);
    font-size: 0.8125rem;
    color: var(--body-color, #1f2937);
    line-height: 1.45;
}

.crm-notify-detail .x-description p {
    margin-bottom: 0;
}

.crm-notify-detail .x-description a {
    color: var(--primary, #0c83ff) !important;
    text-decoration: none;
}

.crm-notify-detail .x-description a:hover {
    text-decoration: underline;
}

.crm-notify-detail .x-description img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius, 0.375rem);
}

.crm-notify-meta .btn-link:hover {
    color: var(--primary, #0c83ff) !important;
}

.crm-notify-loadmore {
    padding: 0.75rem 1.25rem 1.25rem;
    text-align: center;
}

.crm-notify-empty {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
    text-align: center;
    color: var(--gray-600, #6b7280);
}

.crm-notify-empty i {
    font-size: 2.5rem;
    opacity: 0.35;
    margin-bottom: 0.75rem;
}

.crm-notify-empty p {
    font-size: 0.9375rem;
}
