/* ==========================================================================
   SalesPulse 365 — Compact Density Theme
   Global density + typography layer. Keeps existing teal/green theme intact;
   only reduces font sizes, row heights, card padding, and applies Inter.
   ========================================================================== */

:root {
    --sp-font-base: 13px;
    --sp-font-sm: 12px;
    --sp-font-xs: 11px;
    --sp-font-lg: 14.5px;
    --sp-line: 1.45;

    --sp-table-y: 0.28rem;
    --sp-table-x: 0.6rem;
    --sp-card-pad: 0.7rem;
    --sp-card-header-pad: 0.5rem 0.85rem;
    --sp-btn-pad-y: 0.26rem;
    --sp-btn-pad-x: 0.65rem;
    --sp-input-pad-y: 0.32rem;
    --sp-input-pad-x: 0.55rem;
    --sp-radius: 6px;
    --sp-radius-lg: 8px;

    --sp-muted: #6b7280;
    --sp-border: #e5e7eb;
    --sp-head-bg: #f8fafc;
}

/* --- Typography ---------------------------------------------------------- */
html,
body {
    font-family: 'Inter', 'Quicksand', -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-size: var(--sp-font-base);
    line-height: var(--sp-line);
    letter-spacing: -0.005em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
.h1 {
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: -0.015em;
}

h2,
.h2 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.012em;
}

h3,
.h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

h4,
.h4 {
    font-size: 1rem;
    font-weight: 600;
}

h5,
.h5 {
    font-size: 0.9rem;
    font-weight: 600;
}

h6,
.h6 {
    font-size: 0.8rem;
    font-weight: 600;
}

.small,
small {
    font-size: var(--sp-font-xs);
}

.text-muted {
    color: var(--sp-muted) !important;
}

/* Numeric / data emphasis — tabular figures */
.sp-num,
.stat-value,
.kpi-value,
.data-number,
.table td[data-type="number"],
.table td.numeric {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    font-weight: 600;
    letter-spacing: -0.015em;
}

/* --- Tables -------------------------------------------------------------- */
.table {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.table> :not(caption)>*>* {
    padding: var(--sp-table-y) var(--sp-table-x) !important;
    vertical-align: middle;
    line-height: 1.3;
}

.table tbody tr {
    height: auto;
}

.table td .btn,
.table td .btn-sm {
    padding: 0.15rem 0.45rem;
    font-size: 0.7rem;
    line-height: 1.2;
}

.table td img,
.table td .avatar {
    max-height: 22px;
}

.table thead th,
.table>thead>tr>th {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    color: var(--sp-muted);
    background: var(--sp-head-bg);
    border-bottom: 1px solid var(--sp-border);
}

.table tbody tr {
    border-color: var(--sp-border);
}

.table-hover tbody tr:hover {
    background: rgba(13, 148, 136, 0.04);
}

/* DataTables controls */
.dataTables_filter input,
.dataTables_length select {
    font-size: 0.78rem !important;
    padding: 0.3rem 0.55rem !important;
    border-radius: var(--sp-radius) !important;
}

.dataTables_info,
.dataTables_paginate {
    font-size: 0.78rem;
}

/* --- Cards --------------------------------------------------------------- */
.card {
    border-radius: var(--sp-radius-lg);
    border: 1px solid var(--sp-border);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.card-body {
    padding: var(--sp-card-pad);
}

.card-header {
    padding: var(--sp-card-header-pad);
    font-size: 0.88rem;
    font-weight: 600;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.card-subtitle {
    font-size: 0.75rem;
    color: var(--sp-muted);
}

/* KPI / stat cards — reduce vertical waste */
.stat-card,
.kpi-card,
.dashboard-card,
.summary-card {
    padding: 0.75rem 1rem !important;
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
    font-size: 0.8rem;
    padding: var(--sp-btn-pad-y) var(--sp-btn-pad-x);
    border-radius: var(--sp-radius);
    font-weight: 500;
    letter-spacing: 0.005em;
}

.btn-sm {
    font-size: 0.72rem;
    padding: 0.22rem 0.55rem;
}

.btn-lg {
    font-size: 0.92rem;
    padding: 0.5rem 1rem;
}

.btn i,
.btn .fa,
.btn .fas,
.btn .far {
    font-size: 0.8em;
}

/* --- Forms --------------------------------------------------------------- */
.form-control,
.form-select,
.input-group-text {
    font-size: 0.82rem;
    padding: var(--sp-input-pad-y) var(--sp-input-pad-x);
    border-radius: var(--sp-radius);
}

.form-control-sm,
.form-select-sm {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.form-label {
    font-size: 0.76rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #374151;
}

/* --- Badges -------------------------------------------------------------- */
.badge {
    font-size: 0.68rem;
    padding: 0.28em 0.55em;
    font-weight: 500;
    border-radius: 4px;
}

/* --- Modals -------------------------------------------------------------- */
.modal-header {
    padding: 0.65rem 1rem;
}

.modal-body {
    padding: 0.95rem 1rem;
}

.modal-footer {
    padding: 0.55rem 1rem;
}

.modal-title {
    font-size: 0.98rem;
    font-weight: 600;
}

.modal-content {
    border-radius: var(--sp-radius-lg);
}

/* --- Nav / Topbar -------------------------------------------------------- */
.navbar {
    min-height: 52px;
    padding: 0.3rem 1rem;
}

.navbar-brand {
    font-size: 0.95rem;
    font-weight: 600;
}

/* --- Pagination ---------------------------------------------------------- */
.pagination .page-link {
    padding: 0.28rem 0.55rem;
    font-size: 0.78rem;
    min-width: 28px;
    text-align: center;
}

/* --- Alerts / toasts ----------------------------------------------------- */
.alert {
    font-size: 0.82rem;
    padding: 0.55rem 0.8rem;
    border-radius: var(--sp-radius);
}

.toast-body {
    font-size: 0.82rem;
}

/* --- Tooltips ------------------------------------------------------------ */
.tooltip {
    font-size: 0.7rem;
}

/* --- Page headers & titles ---------------------------------------------- */
.page-header,
.page-title,
.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.page-subtitle,
.section-subtitle {
    font-size: 0.76rem;
    color: var(--sp-muted);
}

/* --- Skeleton loader (reusable) ----------------------------------------- */
.sp-skeleton {
    display: inline-block;
    background: linear-gradient(90deg, #eef2f7 25%, #f7fafc 50%, #eef2f7 75%);
    background-size: 200% 100%;
    animation: sp-shimmer 1.1s infinite linear;
    border-radius: 4px;
    min-height: 0.9em;
    width: 100%;
}

.sp-skeleton-line {
    height: 12px;
    margin: 4px 0;
}

.sp-skeleton-row {
    height: 32px;
    margin: 6px 0;
}

@keyframes sp-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* --- Inline spinner ----------------------------------------------------- */
.sp-spin {
    display: inline-block;
    width: 0.85em;
    height: 0.85em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: sp-rot 0.6s linear infinite;
    vertical-align: -0.15em;
}

@keyframes sp-rot {
    to {
        transform: rotate(360deg);
    }
}

/* --- Density utility classes -------------------------------------------- */
.sp-dense .card-body {
    padding: 0.65rem 0.85rem;
}

.sp-dense .table> :not(caption)>*>* {
    padding: 0.32rem 0.55rem;
}

/* --- Scrollbars (subtle) ------------------------------------------------ */
::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 6px;
}

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

::-webkit-scrollbar-track {
    background: transparent;
}

/* --- Print safety ------------------------------------------------------- */
@media print {

    .card,
    .table {
        box-shadow: none !important;
    }
}

/* ==========================================================================
   Sidebar brand + header polish
   ========================================================================== */

/* Top header is now empty — hide it and reclaim the space */
.top-header-section {
    display: none !important;
}

.top-header-section .app-title-wrapper {
    display: none !important;
}

/* Body / html — no extra padding above the sidebar */
html,
body {
    margin: 0 !important;
    padding: 0 !important;
}

/* Sidebar — anchored hard to viewport top, every selector covered */
nav.dash-sidebar,
nav.dash-sidebar.light-sidebar,
.dash-sidebar,
.dash-sidebar.light-sidebar {
    top: 0 !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
    border-top: 0 !important;
}

nav.dash-sidebar .navbar-wrapper,
nav.dash-sidebar .navbar-content,
.dash-sidebar .navbar-wrapper,
.dash-sidebar .navbar-content {
    padding: 0 !important;
    margin: 0 !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-top: 0 !important;
}

main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Tighten the gap between sidebar (230px) and main content — but only for the
   classic dash-* layout. Pages that bring their own container (e.g. .dcr-main-container,
   .cpi-wrap) keep their own padding/margins. */
.dash-container .dash-content {
    padding-top: 4px;
    padding-left: 10px;
    padding-right: 10px;
}

/* New sidebar brand block — logo + title in a single tight row */
.sp-sidebar-brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    padding: 0px !important;
    margin: 0 !important;
    height: 58px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    user-select: none;
}

/* SHL icon — inline with title */
.sp-sidebar-brand .sp-brand-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
    flex-shrink: 0;
    animation: sp-logo-pop 1.4s ease-out;
}

@keyframes sp-logo-pop {
    from {
        opacity: 0;
        transform: scale(0.7) rotate(-6deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

.sp-sidebar-brand .sp-brand-text {
    font-family: 'Playfair Display', 'Inter', serif;
    font-weight: 800;
    font-size: 1.45rem;
    letter-spacing: 0.5px;
    line-height: 1;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
}

.sp-sidebar-brand .sp-brand-sales {
    color: #ffffff;
    background: linear-gradient(180deg, #ffffff 0%, #d1fae5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sp-sidebar-brand .sp-brand-pulse {
    background: linear-gradient(180deg, #fde68a 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
    margin: 0 2px;
}

.sp-sidebar-brand .sp-brand-365 {
    background: linear-gradient(180deg, #5eead4 0%, #14b8a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    margin-left: 4px;
}

/* Animated red pulse dots flanking the word "Pulse" */
.sp-sidebar-brand .sp-brand-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.85);
    margin: 0 3px;
    vertical-align: middle;
    animation: sp-pulse-dot 1.6s ease-in-out infinite;
}

.sp-sidebar-brand .sp-brand-dot-r {
    animation-delay: 0.8s;
}

@keyframes sp-pulse-dot {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 4px rgba(239, 68, 68, 0.8);
    }

    50% {
        transform: scale(1.6);
        opacity: 0.5;
        box-shadow: 0 0 12px rgba(239, 68, 68, 1);
    }
}

/* Subtle shimmer on hover */
.sp-sidebar-brand:hover .sp-brand-text {
    animation: sp-brand-shimmer 1.6s ease-in-out;
}

@keyframes sp-brand-shimmer {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.25);
    }
}

.sp-sidebar-brand .sp-brand-tag {
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
    margin-top: 2px;
}

/* ---- Sidebar sticky-bottom layout ---- */
nav.dash-sidebar.light-sidebar {
    display: flex !important;
    flex-direction: column;
}

nav.dash-sidebar .navbar-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

nav.dash-sidebar .navbar-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

nav.dash-sidebar .dash-navbar {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 8px;
}

/* ---- Sidebar footer (user + logout) ---- */
.sp-sidebar-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.18);
    flex: 0 0 auto;
}

.sp-sidebar-footer .sp-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.sp-sidebar-footer .sp-user-meta {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.15;
}

.sp-sidebar-footer .sp-user-name {
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-sidebar-footer .sp-user-role {
    color: #fbbf24;
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sp-sidebar-footer .sp-logout-btn {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(239, 68, 68, 0.15);
    color: #fecaca;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
    padding: 0;
}

.sp-sidebar-footer .sp-logout-btn:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
    transform: translateX(1px);
}

.sp-sidebar-footer .sp-logout-btn i {
    font-size: 0.85rem;
}

/* Sidebar link density */
.dash-sidebar .dash-link {
    padding: 9px 12px !important;
    font-size: 0.88rem;
    border-radius: 6px;
    margin: 2px 6px;
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.dash-sidebar .dash-mtext {
    font-size: 0.86rem;
    letter-spacing: 0.005em;
}

.dash-sidebar .dash-micon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.dash-sidebar .dash-micon i {
    font-size: 0.95rem;
    color: #ffffff;
}

/* Accordion section headers in sidebar */
.dash-sidebar .accordion-button {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #fbbf24 !important;
    padding: 10px 14px;
    background: transparent !important;
    box-shadow: none !important;
}

.dash-sidebar .accordion-body {
    padding: 4px 0 !important;
}

/* Notification + profile area on right of header */
.top-header-section .logout-icon {
    gap: 12px !important;
}

.top-header-section .notification-icon i {
    font-size: 17px !important;
}

.notification-badge {
    font-size: 0.62rem !important;
    min-width: 16px;
    height: 16px;
    line-height: 14px;
}

/* Polish container backgrounds page-wide */
body {
    background: #f6f8fb !important;
}

main {
    background: #f6f8fb;
}

/* Page section title default polish */
.page-header,
.section-header,
.dash-section-title {
    background: #ffffff;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--sp-border);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Dashboard / kpi cards refresh */
.kpi-card,
.stat-card,
.summary-card,
.dashboard-stat {
    background: #ffffff;
    border: 1px solid var(--sp-border);
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kpi-card:hover,
.stat-card:hover,
.summary-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

/* ==========================================================================
   Notification module — first item in sidebar (admin only)
   Default: teal-on-teal. Hover: bell + text turn gold.
   ========================================================================== */
.sp-notify-item {
    list-style: none;
    margin: 6px 8px 4px 8px;
}

.sp-notify-link {
    position: relative;
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 7px 10px !important;
    border-radius: 7px !important;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.14), rgba(13, 148, 136, 0.10)) !important;
    border: 1px solid rgba(94, 234, 212, 0.22);
    color: #d1fae5 !important;
    transition: all 0.18s ease;
}

.sp-notify-link:hover {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.24), rgba(13, 148, 136, 0.18)) !important;
    border-color: rgba(94, 234, 212, 0.45);
    transform: translateX(1px);
}

.sp-notify-link .dash-micon i {
    font-size: 0.85rem;
    color: #5eead4;
    animation: sp-bell-shake 4s ease-in-out infinite;
    transform-origin: top center;
    transition: color 0.18s ease;
}

.sp-notify-link:hover .dash-micon i {
    color: #fbbf24;
}

@keyframes sp-bell-shake {

    0%,
    90%,
    100% {
        transform: rotate(0);
    }

    92% {
        transform: rotate(-12deg);
    }

    94% {
        transform: rotate(10deg);
    }

    96% {
        transform: rotate(-6deg);
    }

    98% {
        transform: rotate(4deg);
    }
}

.sp-notify-link .dash-mtext {
    flex: 1 1 auto;
    font-size: 0.78rem !important;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: color 0.18s ease;
}

.sp-notify-link:hover .dash-mtext {
    color: #fbbf24 !important;
}

.sp-notify-count {
    flex-shrink: 0;
    min-width: 20px;
    height: 18px;
    padding: 0 6px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(220, 38, 38, 0.45);
    animation: sp-count-pulse 2.4s ease-in-out infinite;
}

@keyframes sp-count-pulse {

    0%,
    100% {
        box-shadow: 0 1px 3px rgba(220, 38, 38, 0.45);
    }

    50% {
        box-shadow: 0 1px 9px rgba(239, 68, 68, 0.85);
    }
}

/* ==========================================================================
   Themed sidebar scrollbar — slim, gradient, on-theme
   ========================================================================== */
nav.dash-sidebar.light-sidebar::-webkit-scrollbar,
nav.dash-sidebar .dash-navbar::-webkit-scrollbar {
    width: 5px !important;
}

nav.dash-sidebar.light-sidebar::-webkit-scrollbar-track,
nav.dash-sidebar .dash-navbar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.18);
}

nav.dash-sidebar.light-sidebar::-webkit-scrollbar-thumb,
nav.dash-sidebar .dash-navbar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #fbbf24 0%, #14b8a6 50%, #0d9488 100%) !important;
    border-radius: 6px !important;
    border: none !important;
}

nav.dash-sidebar.light-sidebar::-webkit-scrollbar-thumb:hover,
nav.dash-sidebar .dash-navbar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #fcd34d 0%, #2dd4bf 50%, #14b8a6 100%) !important;
}

/* Firefox */
nav.dash-sidebar.light-sidebar,
nav.dash-sidebar .dash-navbar {
    scrollbar-width: thin;
    scrollbar-color: #14b8a6 rgba(0, 0, 0, 0.18);
}

/* ==========================================================================
   Notification modal — clean Bootstrap modal, themed
   ========================================================================== */
/* All Bootstrap modals + their backdrops sit above the right-nav-fixed (which is z:9999 on hover).
   The right-nav-fixed itself drops below modals when one is open. */
.modal {
    z-index: 100050 !important;
}

.modal-backdrop {
    z-index: 100040 !important;
}

body.modal-open .right-nav-fixed {
    z-index: 100 !important;
    pointer-events: none !important;
}

.sp-notify-modal .sp-notify-modal-content {
    border-radius: 14px;
    border: none;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
}

.sp-notify-modal .sp-notify-modal-header {
    background: linear-gradient(135deg, #0f4c47 0%, #0d9488 50%, #14b8a6 100%);
    color: #ffffff;
    border-bottom: none;
    padding: 14px 18px;
}

.sp-notify-modal .sp-notify-modal-header .modal-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
}

.sp-notify-modal .sp-notify-modal-total {
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 2px 9px;
    margin-left: 10px;
    box-shadow: 0 1px 4px rgba(220, 38, 38, 0.5);
}

.sp-notify-modal .sp-notify-modal-body {
    padding: 8px 8px;
    max-height: 65vh;
    overflow-y: auto;
    background: #f8fafc;
}

.sp-notify-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin: 6px 0;
    cursor: pointer;
    transition: all 0.15s ease;
}

.sp-notify-row:hover {
    background: #f0fdfa;
    border-color: #5eead4;
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.12);
}

.sp-notify-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.95rem;
}

.sp-notify-icon.bg-blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.sp-notify-icon.bg-amber {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.sp-notify-icon.bg-green {
    background: linear-gradient(135deg, #10b981, #059669);
}

.sp-notify-meta {
    flex: 1 1 auto;
    min-width: 0;
}

.sp-notify-row-title {
    font-size: 0.84rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.2;
}

.sp-notify-row-sub {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 2px;
}

.sp-notify-pill {
    flex-shrink: 0;
    min-width: 26px;
    height: 22px;
    padding: 0 8px;
    border-radius: 11px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
    color: #ffffff !important;
}

.sp-notify-pill.count-blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.sp-notify-pill.count-yellow {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.sp-notify-pill.count-green {
    background: linear-gradient(135deg, #10b981, #059669);
}

/* Hide any leftover legacy notification bell / badge / dropdown that might still render */
.notification-badge,
.notification-icon,
#notification-bell,
#notification-count,
.NotificationToolTip,
.tr-trust-logo {
    display: none !important;
}

/* Kill the NProgress top bar entirely (it was rendering as the thin strip above the sidebar) */
#nprogress,
#nprogress .bar,
#nprogress .peg,
#nprogress .spinner,
#nprogress .spinner-icon {
    display: none !important;
    visibility: hidden !important;
}

/* ==========================================================================
   Sidebar scrollbar — fully hidden
   ========================================================================== */
nav.dash-sidebar.light-sidebar,
nav.dash-sidebar .dash-navbar,
nav.dash-sidebar .navbar-content {
    scrollbar-width: none !important;
    /* Firefox */
    -ms-overflow-style: none !important;
    /* old Edge / IE */
}

nav.dash-sidebar.light-sidebar::-webkit-scrollbar,
nav.dash-sidebar .dash-navbar::-webkit-scrollbar,
nav.dash-sidebar .navbar-content::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}