/* =========================================================
   SOTAK MEDIA CRM PRO — DASHBOARD FIDELITY LOCK
   Version 1.9.2.6
   Scope: dashboard route only (.smcrm-dashboard-shell)
   Goal: approved dark premium dashboard reference
   ========================================================= */

.smcrm-dashboard-shell {
    --smcrm-sidebar-width: 238px;
    --smcrm-topbar-height: 74px;
    --dash-bg: #07142d;
    --dash-bg-deep: #050d20;
    --dash-bg-raised: #081936;
    --dash-panel: rgba(8, 27, 61, .94);
    --dash-panel-strong: rgba(10, 32, 70, .96);
    --dash-row: rgba(13, 39, 82, .74);
    --dash-row-hover: rgba(17, 48, 98, .92);
    --dash-border: rgba(111, 145, 199, .20);
    --dash-border-soft: rgba(111, 145, 199, .11);
    --dash-border-strong: rgba(139, 92, 246, .42);
    --dash-text: #f6f8ff;
    --dash-copy: #c7d1e1;
    --dash-muted: #8fa0bc;
    --dash-muted-2: #657896;
    --dash-purple: #8b5cf6;
    --dash-violet: #a855f7;
    --dash-blue: #3b82f6;
    --dash-cyan: #22d3ee;
    --dash-green: #10b981;
    --dash-orange: #f59e0b;
    --dash-red: #ef4444;
    position: relative;
    display: grid;
    grid-template-columns: var(--smcrm-sidebar-width) minmax(0, 1fr);
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--dash-text);
    background:
        radial-gradient(circle at 30% -14%, rgba(37, 99, 235, .25), transparent 36%),
        radial-gradient(circle at 100% 10%, rgba(139, 92, 246, .145), transparent 30%),
        radial-gradient(circle at 76% 72%, rgba(14, 165, 233, .065), transparent 30%),
        linear-gradient(135deg, #081831 0%, #07142d 48%, #08203f 100%);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.45;
}

.smcrm-dashboard-shell,
.smcrm-dashboard-shell *,
.smcrm-dashboard-shell *::before,
.smcrm-dashboard-shell *::after { box-sizing: border-box; }

.smcrm-dashboard-shell a { color: inherit; text-decoration: none; }
.smcrm-dashboard-shell img { max-width: 100%; }
.smcrm-dashboard-shell button,
.smcrm-dashboard-shell input,
.smcrm-dashboard-shell textarea { font: inherit; }

/* ---------- Hard dashboard route isolation ---------- */
body.smcrm-dashboard-page {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh;
    overflow-x: hidden !important;
    background: var(--dash-bg, #061027) !important;
}

body.smcrm-dashboard-page > *:not(.smcrm-shell):not(script):not(style):not(link) {
    display: none !important;
}

body.smcrm-dashboard-page #wpadminbar,
body.smcrm-dashboard-page #masthead,
body.smcrm-dashboard-page #colophon,
body.smcrm-dashboard-page .site-header,
body.smcrm-dashboard-page .site-footer,
body.smcrm-dashboard-page .elementor-location-header,
body.smcrm-dashboard-page .elementor-location-footer,
body.smcrm-dashboard-page [data-elementor-type="header"],
body.smcrm-dashboard-page [data-elementor-type="footer"],
body.smcrm-dashboard-page .smx-header,
body.smcrm-dashboard-page #smxPremiumHeader,
body.smcrm-dashboard-page .smx-footer,
body.smcrm-dashboard-page #smxPremiumFooter,
body.smcrm-dashboard-page .hfe-site-header,
body.smcrm-dashboard-page .hfe-footer,
body.smcrm-dashboard-page .floating-whatsapp,
body.smcrm-dashboard-page .whatsapp-float,
body.smcrm-dashboard-page .wa-float,
body.smcrm-dashboard-page #smxFloatingWhatsApp,
body.smcrm-dashboard-page #smxWhatsAppFloat,
body.smcrm-dashboard-page [class*="whatsapp"][style*="fixed"],
body.smcrm-dashboard-page [id*="whatsapp"][style*="fixed"] {
    display: none !important;
}

/* ---------- Sidebar ---------- */
.smcrm-dashboard-shell .smcrm-sidebar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    width: var(--smcrm-sidebar-width);
    height: 100vh;
    padding: 18px 14px 16px;
    overflow: hidden;
    border-right: 1px solid rgba(103, 137, 188, .18);
    background:
        radial-gradient(circle at 92% 8%, rgba(14, 165, 233, .13), transparent 31%),
        linear-gradient(180deg, rgba(7, 24, 55, .995), rgba(4, 14, 34, .995));
    box-shadow: 22px 0 64px rgba(0, 0, 0, .18);
}

.smcrm-dashboard-shell .smcrm-dashboard-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 62px;
    padding: 2px 10px 15px;
    margin: 0 0 10px;
    border-bottom: 1px solid rgba(122, 151, 198, .11);
}

.smcrm-dashboard-shell .smcrm-dashboard-brand > img {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(139, 92, 246, .34));
}

.smcrm-dashboard-shell .smcrm-dashboard-brand > span { display: block; min-width: 0; }
.smcrm-dashboard-shell .smcrm-dashboard-brand strong,
.smcrm-dashboard-shell .smcrm-dashboard-brand small { display: block; }
.smcrm-dashboard-shell .smcrm-dashboard-brand strong {
    color: #f8fbff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: .015em;
    white-space: nowrap;
}
.smcrm-dashboard-shell .smcrm-dashboard-brand small {
    margin-top: 4px;
    color: #a98cff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
}

.smcrm-dashboard-shell .smcrm-sidebar nav {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 2px 1px 18px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, .36) transparent;
}
.smcrm-dashboard-shell .smcrm-sidebar nav::-webkit-scrollbar { width: 4px; }
.smcrm-dashboard-shell .smcrm-sidebar nav::-webkit-scrollbar-thumb { border-radius: 99px; background: rgba(139, 92, 246, .36); }
.smcrm-dashboard-shell .smcrm-nav-group { margin: 0 0 16px; }
.smcrm-dashboard-shell .smcrm-nav-group > p {
    margin: 0 0 6px;
    padding: 0 10px;
    color: #7586a5;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.smcrm-dashboard-shell .smcrm-nav-group > a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 38px;
    padding: 8px 11px;
    margin: 2px 0;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #aab8cd;
    transition: color 170ms ease, background 170ms ease, border-color 170ms ease, transform 170ms ease, box-shadow 170ms ease;
}
.smcrm-dashboard-shell .smcrm-nav-group > a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .04);
    transform: translateX(2px);
}
.smcrm-dashboard-shell .smcrm-nav-group > a.active {
    color: #fff;
    border-color: rgba(139, 92, 246, .40);
    background: linear-gradient(90deg, rgba(124, 58, 237, .62), rgba(37, 99, 235, .70));
    box-shadow: 0 0 28px rgba(79, 70, 229, .18), inset 0 1px 0 rgba(255, 255, 255, .09);
}
.smcrm-dashboard-shell .smcrm-nav-group em {
    font-size: 12px;
    font-style: normal;
    font-weight: 650;
}
.smcrm-dashboard-shell .smcrm-nav-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    opacity: .78;
    filter: brightness(0) invert(1) opacity(.72);
}
.smcrm-dashboard-shell .smcrm-nav-group > a:hover .smcrm-nav-icon,
.smcrm-dashboard-shell .smcrm-nav-group > a.active .smcrm-nav-icon {
    opacity: 1;
    filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(255, 255, 255, .42));
}
.smcrm-dashboard-shell .smcrm-sidebar-user { display: none !important; }

/* ---------- Main / topbar ---------- */
.smcrm-dashboard-shell .smcrm-main {
    min-width: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 92% 4%, rgba(37, 99, 235, .055), transparent 30%),
        radial-gradient(circle at 22% 2%, rgba(139, 92, 246, .04), transparent 27%),
        linear-gradient(rgba(7, 20, 45, .02), rgba(7, 20, 45, .02));
}

.smcrm-dashboard-shell .smcrm-dashboard-topbar {
    position: sticky;
    top: 0;
    z-index: 45;
    display: grid !important;
    grid-template-columns: minmax(210px, 1fr) 280px auto;
    align-items: center;
    gap: 18px;
    min-height: var(--smcrm-topbar-height);
    padding: 11px 26px;
    border-bottom: 1px solid rgba(112, 145, 198, .13);
    background: rgba(5, 15, 36, .86);
    box-shadow: 0 12px 36px rgba(0, 0, 0, .09);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.smcrm-dashboard-shell .smcrm-mobile-toggle { display: none; }
.smcrm-dashboard-shell .smcrm-dashboard-search-wrap { position: relative; grid-column: 2; width: 100%; }
.smcrm-dashboard-shell .smcrm-dashboard-search { position: relative; width: 100%; }
.smcrm-dashboard-shell .smcrm-dashboard-search > span {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 13px;
    height: 13px;
    border: 1.6px solid #9fb0c9;
    border-radius: 50%;
    transform: translateY(-58%);
    pointer-events: none;
}
.smcrm-dashboard-shell .smcrm-dashboard-search > span::after {
    content: "";
    position: absolute;
    right: -5px;
    bottom: -3px;
    width: 6px;
    height: 1.5px;
    border-radius: 99px;
    background: #9fb0c9;
    transform: rotate(45deg);
}
.smcrm-dashboard-shell .smcrm-dashboard-search input {
    width: 100%;
    height: 40px;
    padding: 0 16px 0 42px;
    border: 1px solid rgba(118, 151, 204, .23);
    border-radius: 9px;
    outline: none;
    color: #f7f9ff;
    background: rgba(7, 22, 51, .84);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .02);
    font-size: 11px;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.smcrm-dashboard-shell .smcrm-dashboard-search input::placeholder { color: #7587a5; }
.smcrm-dashboard-shell .smcrm-dashboard-search input:focus {
    border-color: rgba(139, 92, 246, .62);
    background: rgba(8, 27, 61, .97);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, .10), 0 0 24px rgba(37, 99, 235, .08);
}

.smcrm-dashboard-shell .smcrm-dashboard-topbar-actions {
    grid-column: 3;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    white-space: nowrap;
}
.smcrm-dashboard-shell .smcrm-dashboard-topbar details { position: relative; }
.smcrm-dashboard-shell .smcrm-dashboard-topbar summary { list-style: none; cursor: pointer; }
.smcrm-dashboard-shell .smcrm-dashboard-topbar summary::-webkit-details-marker { display: none; }

.smcrm-dashboard-shell .smcrm-dashboard-create > summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 114px;
    height: 40px;
    padding: 0 16px;
    border: 1px solid rgba(139, 92, 246, .40);
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    box-shadow: 0 10px 26px rgba(124, 58, 237, .22), inset 0 1px 0 rgba(255, 255, 255, .10);
    font-size: 12px;
    font-weight: 750;
}
.smcrm-dashboard-shell .smcrm-dashboard-create > summary b { font-size: 18px; line-height: 1; }

.smcrm-dashboard-shell .smcrm-dashboard-bell > summary,
.smcrm-dashboard-shell .smcrm-dashboard-messages > summary {
    position: relative;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(118, 151, 204, .20);
    border-radius: 8px;
    background: rgba(7, 22, 51, .74);
}
.smcrm-dashboard-shell .smcrm-dashboard-bell > summary:hover,
.smcrm-dashboard-shell .smcrm-dashboard-messages > summary:hover {
    border-color: rgba(139, 92, 246, .42);
    background: rgba(139, 92, 246, .08);
}
.smcrm-dashboard-shell .smcrm-dashboard-bell > summary img,
.smcrm-dashboard-shell .smcrm-dashboard-bell-glyph {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    color: #dbe7fb;
}
.smcrm-dashboard-shell .smcrm-dashboard-bell-glyph svg { width: 20px; height: 20px; }
.smcrm-dashboard-shell .smcrm-dashboard-lead-inbox > summary {
    border-color: rgba(56, 189, 248, .22);
    background: rgba(8, 31, 66, .82);
}
.smcrm-dashboard-shell .smcrm-dashboard-lead-inbox > summary:hover {
    border-color: rgba(56, 189, 248, .46);
    box-shadow: 0 0 20px rgba(56, 189, 248, .10);
}
.smcrm-dashboard-shell .smcrm-dashboard-lead-inbox > summary img {
    filter: brightness(0) saturate(100%) invert(77%) sepia(36%) saturate(2799%) hue-rotate(162deg) brightness(101%) contrast(97%) drop-shadow(0 0 6px rgba(56, 189, 248, .55));
}
.smcrm-dashboard-shell .smcrm-dashboard-messages > summary img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1) opacity(.92);
}
.smcrm-dashboard-shell .smcrm-dashboard-bell > summary strong {
    position: absolute;
    top: -5px;
    right: -5px;
    display: grid;
    place-items: center;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border: 2px solid #061027;
    border-radius: 10px;
    color: #fff;
    background: #ef4444;
    font-size: 8px;
}

.smcrm-dashboard-shell .smcrm-create-menu > div,
.smcrm-dashboard-shell .smcrm-dashboard-bell > div,
.smcrm-dashboard-shell .smcrm-dashboard-messages > div,
.smcrm-dashboard-shell .smcrm-dashboard-user > div {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 120;
    padding: 8px;
    border: 1px solid rgba(118, 151, 204, .25);
    border-radius: 13px;
    background: rgba(6, 20, 48, .985);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .48);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}
.smcrm-dashboard-shell .smcrm-create-menu > div { width: 310px; }
.smcrm-dashboard-shell .smcrm-dashboard-bell > div,
.smcrm-dashboard-shell .smcrm-dashboard-messages > div { width: 350px; }
.smcrm-dashboard-shell .smcrm-dashboard-user > div { width: 170px; }
.smcrm-dashboard-shell .smcrm-create-menu > div a,
.smcrm-dashboard-shell .smcrm-dashboard-messages > div > a {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 9px;
}
.smcrm-dashboard-shell .smcrm-create-menu > div a { grid-template-columns: 36px minmax(0, 1fr); }
.smcrm-dashboard-shell .smcrm-create-menu > div a:hover,
.smcrm-dashboard-shell .smcrm-dashboard-messages > div > a:hover,
.smcrm-dashboard-shell .smcrm-dashboard-user > div a:hover { background: rgba(255, 255, 255, .05); }
.smcrm-dashboard-shell .smcrm-create-menu > div a > img { width: 18px; height: 18px; margin-left: 8px; }
.smcrm-dashboard-shell .smcrm-create-menu > div strong,
.smcrm-dashboard-shell .smcrm-create-menu > div small,
.smcrm-dashboard-shell .smcrm-dashboard-messages > div strong,
.smcrm-dashboard-shell .smcrm-dashboard-messages > div small { display: block; }
.smcrm-dashboard-shell .smcrm-create-menu > div strong,
.smcrm-dashboard-shell .smcrm-dashboard-messages > div strong { font-size: 11px; }
.smcrm-dashboard-shell .smcrm-create-menu > div small,
.smcrm-dashboard-shell .smcrm-dashboard-messages > div small { margin-top: 3px; color: var(--dash-muted); font-size: 9px; line-height: 1.4; }

.smcrm-dashboard-shell .smcrm-dashboard-search-results,
.smcrm-dashboard-shell .smcrm-dashboard-messages > div { overflow: hidden; }
.smcrm-dashboard-shell .smcrm-dashboard-search-results {
    position: absolute;
    top: calc(100% + 9px);
    left: 0;
    z-index: 125;
    width: min(430px, 72vw);
    padding: 8px;
    border: 1px solid rgba(118, 151, 204, .25);
    border-radius: 13px;
    background: rgba(6, 20, 48, .985);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .48);
}
.smcrm-dashboard-shell .smcrm-dashboard-search-results > header,
.smcrm-dashboard-shell .smcrm-dashboard-bell > div > header,
.smcrm-dashboard-shell .smcrm-dashboard-messages > div > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 9px 10px;
    border-bottom: 1px solid rgba(123, 157, 214, .12);
}
.smcrm-dashboard-shell .smcrm-dashboard-search-results > header strong,
.smcrm-dashboard-shell .smcrm-dashboard-bell > div > header b,
.smcrm-dashboard-shell .smcrm-dashboard-messages > div > header b { font-size: 11px; }
.smcrm-dashboard-shell .smcrm-dashboard-search-results > header span,
.smcrm-dashboard-shell .smcrm-dashboard-bell > div > header span,
.smcrm-dashboard-shell .smcrm-dashboard-messages > div > header span { color: var(--dash-muted); font-size: 9px; }
.smcrm-dashboard-shell .smcrm-dashboard-search-results > a {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 9px;
    border-radius: 9px;
}
.smcrm-dashboard-shell .smcrm-dashboard-search-results > a:hover { background: rgba(255, 255, 255, .045); }
.smcrm-dashboard-shell .smcrm-search-result-icon,
.smcrm-dashboard-shell .smcrm-message-avatar {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, rgba(139, 92, 246, .88), rgba(37, 99, 235, .88));
    font-size: 9px;
    font-weight: 800;
}
.smcrm-dashboard-shell .smcrm-search-result-icon img { width: 16px; height: 16px; }
.smcrm-dashboard-shell .smcrm-dashboard-search-results > a div strong,
.smcrm-dashboard-shell .smcrm-dashboard-search-results > a div small { display: block; }
.smcrm-dashboard-shell .smcrm-dashboard-search-results > a div strong { font-size: 10px; }
.smcrm-dashboard-shell .smcrm-dashboard-search-results > a div small { margin-top: 2px; color: var(--dash-muted); font-size: 9px; }
.smcrm-dashboard-shell .smcrm-dashboard-search-results > a em,
.smcrm-dashboard-shell .smcrm-dashboard-messages > div > a em { color: #8fb8ff; font-size: 8px; font-style: normal; text-transform: uppercase; }
.smcrm-dashboard-shell .smcrm-dashboard-search-results > p,
.smcrm-dashboard-shell .smcrm-dashboard-bell > div > p,
.smcrm-dashboard-shell .smcrm-dashboard-messages > div > p { margin: 0; padding: 12px 10px; border-bottom: 1px solid rgba(123, 157, 214, .08); }
.smcrm-dashboard-shell .smcrm-dashboard-search-results > p:last-child,
.smcrm-dashboard-shell .smcrm-dashboard-bell > div > p:last-child,
.smcrm-dashboard-shell .smcrm-dashboard-messages > div > p:last-child { border-bottom: 0; }
.smcrm-dashboard-shell .smcrm-dashboard-search-results > p strong,
.smcrm-dashboard-shell .smcrm-dashboard-search-results > p span,
.smcrm-dashboard-shell .smcrm-dashboard-bell > div > p strong,
.smcrm-dashboard-shell .smcrm-dashboard-bell > div > p span,
.smcrm-dashboard-shell .smcrm-dashboard-messages > div > p strong,
.smcrm-dashboard-shell .smcrm-dashboard-messages > div > p span { display: block; }
.smcrm-dashboard-shell .smcrm-dashboard-search-results > p strong,
.smcrm-dashboard-shell .smcrm-dashboard-bell > div > p strong,
.smcrm-dashboard-shell .smcrm-dashboard-messages > div > p strong { font-size: 10px; }
.smcrm-dashboard-shell .smcrm-dashboard-search-results > p span,
.smcrm-dashboard-shell .smcrm-dashboard-bell > div > p span,
.smcrm-dashboard-shell .smcrm-dashboard-messages > div > p span { margin-top: 4px; color: var(--dash-muted); font-size: 9px; }

.smcrm-dashboard-shell .smcrm-dashboard-user > summary {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 194px;
    min-height: 42px;
    padding: 4px 8px;
    border: 1px solid rgba(118, 151, 204, .19);
    border-radius: 9px;
    background: rgba(7, 22, 51, .60);
}
.smcrm-dashboard-shell .smcrm-dashboard-user > summary:hover {
    border-color: rgba(139, 92, 246, .35);
    background: rgba(139, 92, 246, .055);
}
.smcrm-dashboard-shell .smcrm-dashboard-avatar,
.smcrm-dashboard-shell .smcrm-dashboard-user > summary > span {
    display: grid;
    place-items: center;
    overflow: hidden;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #0ea5e9);
    font-size: 10px;
    font-weight: 800;
}
.smcrm-dashboard-shell .smcrm-dashboard-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.smcrm-dashboard-shell .smcrm-dashboard-user > summary div { min-width: 0; flex: 1; }
.smcrm-dashboard-shell .smcrm-dashboard-user > summary strong,
.smcrm-dashboard-shell .smcrm-dashboard-user > summary small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.smcrm-dashboard-shell .smcrm-dashboard-user > summary strong { font-size: 10px; }
.smcrm-dashboard-shell .smcrm-dashboard-user > summary small { margin-top: 2px; color: var(--dash-muted); font-size: 8px; }
.smcrm-dashboard-shell .smcrm-dashboard-user > summary i,
.smcrm-dashboard-shell .smcrm-dashboard-create > summary i {
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    opacity: .7;
}
.smcrm-dashboard-shell .smcrm-dashboard-user > div a {
    display: block;
    padding: 9px 10px;
    border-radius: 8px;
    color: var(--dash-copy);
    font-size: 10px;
    font-weight: 700;
}

/* ---------- Content ---------- */
.smcrm-dashboard-shell .smcrm-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 25px 26px;
}
.smcrm-dashboard-shell .smcrm-notice { margin: 12px 0 0; }

.smcrm-dashboard-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
    margin-bottom: 6px;
    padding: 8px 0 10px;
}
.smcrm-dashboard-greeting h1 {
    margin: 0;
    color: var(--dash-text);
    font-size: clamp(27px, 1.85vw, 32px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.028em;
}
.smcrm-dashboard-greeting h1 em { font-style: normal; font-size: .88em; }
.smcrm-dashboard-greeting p { margin: 7px 0 0; color: #a8b5c9; font-size: 11px; }
.smcrm-dashboard-quick-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex-wrap: nowrap; white-space: nowrap; margin-left: auto; }
.smcrm-dashboard-quick-actions > span { margin-right: 8px; color: #c3cede; font-size: 10px; font-weight: 650; white-space: nowrap; }
.smcrm-dashboard-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 15px;
    border: 1px solid rgba(118, 151, 204, .24);
    border-radius: 8px;
    color: #f7f9ff;
    background: rgba(8, 25, 56, .70);
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
    list-style: none;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
    min-width: 0;
    padding-inline: 15px;
}
.smcrm-dashboard-action::-webkit-details-marker { display: none; }
.smcrm-dashboard-action:hover { transform: translateY(-1px); border-color: rgba(139, 92, 246, .42); background: rgba(139, 92, 246, .09); }
.smcrm-dashboard-action.primary {
    border-color: rgba(139, 92, 246, .48);
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    box-shadow: 0 10px 24px rgba(124, 58, 237, .18), inset 0 1px 0 rgba(255, 255, 255, .08);
    min-width: 0;
}
.smcrm-dashboard-action img { width: 14px; height: 14px; filter: brightness(0) invert(1) opacity(.90); }
.smcrm-dashboard-log { position: relative; }
.smcrm-dashboard-log > summary { list-style: none; min-width: 0; }
.smcrm-dashboard-log > div {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    z-index: 110;
    width: 330px;
    padding: 13px;
    border: 1px solid rgba(118, 151, 204, .24);
    border-radius: 12px;
    background: rgba(6, 20, 48, .985);
    box-shadow: 0 28px 70px rgba(0, 0, 0, .45);
}
.smcrm-dashboard-log header strong,
.smcrm-dashboard-log header span { display: block; }
.smcrm-dashboard-log header strong { font-size: 12px; }
.smcrm-dashboard-log header span { margin-top: 3px; color: var(--dash-muted); font-size: 9px; }
.smcrm-dashboard-log form { display: grid; gap: 9px; margin-top: 11px; }
.smcrm-dashboard-log textarea {
    width: 100%;
    min-height: 90px;
    padding: 10px 11px;
    border: 1px solid rgba(118, 151, 204, .22);
    border-radius: 9px;
    outline: none;
    color: #f7f9ff;
    background: #07172f;
    resize: vertical;
    font-size: 10px;
}

/* ---------- KPI row ---------- */
.smcrm-dashboard-kpi-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 13px;
    margin-bottom: 15px;
}
.smcrm-dashboard-kpi {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 91px;
    align-items: center;
    gap: 12px;
    min-width: 0;
    height: 116px;
    min-height: 116px;
    padding: 15px 15px 14px;
    overflow: visible;
    border: 1px solid var(--dash-border);
    border-radius: 11px;
    color: #8b5cf6;
    background: radial-gradient(circle at 88% 8%, rgba(139, 92, 246, .07), transparent 30%),
        linear-gradient(150deg, rgba(14, 41, 86, .92), rgba(7, 25, 57, .97));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025), 0 12px 34px rgba(0, 0, 0, .08);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
    grid-template-rows: 57px 29px;
}
.smcrm-dashboard-kpi:hover { transform: translateY(-2px); border-color: rgba(139, 92, 246, .36); box-shadow: 0 18px 44px rgba(0, 0, 0, .16); }
.smcrm-dashboard-info {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 14px;
    height: 14px;
    margin-left: 5px;
    vertical-align: 1px;
    border: 1px solid rgba(147, 172, 214, .38);
    border-radius: 50%;
    color: #9db1d1 !important;
    background: rgba(7, 25, 58, .90) !important;
    box-shadow: none !important;
    cursor: help;
    transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}
.smcrm-dashboard-info > i { color: inherit !important; font-size: 8px; font-style: normal; font-weight: 750; line-height: 1; }
.smcrm-dashboard-info:hover { color: #d8e5f8 !important; border-color: rgba(139, 92, 246, .54); background: rgba(139, 92, 246, .12) !important; }
.smcrm-dashboard-info::after {
    content: attr(data-info);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    z-index: 180;
    width: max-content;
    max-width: 260px;
    padding: 8px 10px;
    border: 1px solid rgba(118, 151, 204, .24);
    border-radius: 8px;
    color: #d9e2f0;
    background: rgba(5, 17, 42, .98);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .34);
    font-size: 9px;
    font-weight: 500;
    line-height: 1.45;
    white-space: normal;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 4px);
    transition: opacity 140ms ease, transform 140ms ease;
}
.smcrm-dashboard-info:hover::after { opacity: 1; transform: translate(-50%, 0); }
.smcrm-dashboard-card-head h2 .smcrm-dashboard-info { margin-left: 6px; vertical-align: 1px; }

.smcrm-dashboard-kpi-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 11px;
    color: #a78bfa;
    background: linear-gradient(145deg, rgba(139, 92, 246, .30), rgba(139, 92, 246, .11));
    box-shadow: 0 0 24px rgba(139, 92, 246, .24), inset 0 1px 0 rgba(255, 255, 255, .05);
    grid-column: 1;
    grid-row: 1;
    align-self: center;
}
.smcrm-dashboard-kpi-icon img { width: 29px; height: 29px; object-fit: contain; object-position: center; }
.smcrm-dashboard-kpi-copy { min-width: 0; grid-column: 2 / 4; grid-row: 1; align-self: center; padding-bottom: 0; }
.smcrm-dashboard-kpi-label { display: flex; align-items: center; min-width: 0; }
.smcrm-dashboard-kpi-label strong { color: #edf3ff; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.smcrm-dashboard-kpi-label > span:last-child { position: absolute; top: 16px; right: 15px; color: #8fa0bd; font-size: 8px; white-space: nowrap; }
.smcrm-dashboard-kpi-value {
    display: block;
    margin-top: 6px;
    color: #fff;
    font-size: clamp(22px, 1.43vw, 27px);
    font-weight: 760;
    line-height: 1;
    letter-spacing: -.02em;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    max-width: none;
}
.smcrm-dashboard-trend { display: flex; align-items: center; gap: 4px; margin-top: 9px; white-space: nowrap; position: static; grid-column: 1 / 3; grid-row: 2; align-self: end; justify-self: start; max-width: 100%; margin: 0; }
.smcrm-dashboard-trend i { font-style: normal; font-size: 10px; font-weight: 900; }
.smcrm-dashboard-trend b { font-size: 9px; font-weight: 800; }
.smcrm-dashboard-trend small { color: #8596b2; font-size: 8px; max-width: 72px; overflow: hidden; text-overflow: ellipsis; }
.smcrm-dashboard-trend.is-good,
.smcrm-dashboard-insight-main em.is-good { color: #34d399; }
.smcrm-dashboard-trend.is-bad,
.smcrm-dashboard-insight-main em.is-bad { color: #fb7185; }
.smcrm-dashboard-trend.is-warning,
.smcrm-dashboard-insight-main em.is-warning { color: #fbbf24; }
.smcrm-dashboard-trend.is-neutral,
.smcrm-dashboard-insight-main em.is-neutral { color: #8fa0bd; }
.smcrm-dashboard-kpi-chart { align-self: end; min-width: 0; color: currentColor; position: static; grid-column: 3; grid-row: 2; justify-self: stretch; width: 91px; height: 34px; }
.smcrm-dashboard-sparkline { display: block; width: 100%; height: 34px; overflow: visible; }
.smcrm-dashboard-sparkline path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 5px currentColor);
    stroke-dasharray: 220;
    stroke-dashoffset: 220;
    animation: smcrmDashboardDraw 900ms ease forwards 120ms;
}
.smcrm-dashboard-sparkline.is-flat path { opacity: .45; stroke-dasharray: 4 7; stroke-dashoffset: 0; animation: none; }
.smcrm-dashboard-sparkline-pending {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    width: 100%;
    height: 34px;
    color: currentColor;
}
.smcrm-dashboard-history-dots { display: inline-flex; align-items: center; gap: 4px; }
.smcrm-dashboard-history-dots i {
    width: 5px;
    height: 5px;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: transparent;
    opacity: .30;
}
.smcrm-dashboard-history-dots i.is-ready {
    background: currentColor;
    opacity: .82;
    box-shadow: 0 0 6px currentColor;
}
.smcrm-dashboard-sparkline-pending small {
    color: #7688a5;
    font-size: 7.6px;
    font-weight: 650;
    letter-spacing: .01em;
    white-space: nowrap;
}
@keyframes smcrmDashboardDraw { to { stroke-dashoffset: 0; } }

.smcrm-dashboard-kpi.tone-purple { color: #8b5cf6; }
.smcrm-dashboard-kpi.tone-blue { color: #3b82f6; }
.smcrm-dashboard-kpi.tone-green { color: #2dd4bf; }
.smcrm-dashboard-kpi.tone-orange { color: #f59e0b; }
.smcrm-dashboard-kpi.tone-violet { color: #a855f7; }
.smcrm-dashboard-kpi.tone-blue .smcrm-dashboard-kpi-icon { background: linear-gradient(145deg, rgba(37, 99, 235, .31), rgba(37, 99, 235, .10)); box-shadow: 0 0 24px rgba(37, 99, 235, .23); }
.smcrm-dashboard-kpi.tone-green .smcrm-dashboard-kpi-icon { background: linear-gradient(145deg, rgba(13, 148, 136, .31), rgba(13, 148, 136, .10)); box-shadow: 0 0 24px rgba(45, 212, 191, .19); }
.smcrm-dashboard-kpi.tone-orange .smcrm-dashboard-kpi-icon { background: linear-gradient(145deg, rgba(217, 119, 6, .31), rgba(217, 119, 6, .10)); box-shadow: 0 0 24px rgba(245, 158, 11, .19); }
.smcrm-dashboard-kpi.tone-violet .smcrm-dashboard-kpi-icon { background: linear-gradient(145deg, rgba(168, 85, 247, .31), rgba(124, 58, 237, .10)); box-shadow: 0 0 24px rgba(168, 85, 247, .21); }

/* Approved white Sotak icons tinted on the glyph itself */
.smcrm-dashboard-shell .tone-purple .smcrm-dashboard-kpi-icon img,
.smcrm-dashboard-shell .smcrm-dashboard-attention-list > a.tone-purple .smcrm-dashboard-attention-icon img {
    filter: brightness(0) saturate(100%) invert(52%) sepia(89%) saturate(3096%) hue-rotate(232deg) brightness(104%) contrast(94%) drop-shadow(0 0 5px rgba(139, 92, 246, .70));
}
.smcrm-dashboard-shell .tone-blue .smcrm-dashboard-kpi-icon img,
.smcrm-dashboard-shell .smcrm-dashboard-attention-list > a.tone-blue .smcrm-dashboard-attention-icon img,
.smcrm-dashboard-shell .smcrm-dashboard-timeline > a > span.tone-blue img {
    filter: brightness(0) saturate(100%) invert(49%) sepia(95%) saturate(3465%) hue-rotate(198deg) brightness(101%) contrast(95%) drop-shadow(0 0 5px rgba(59, 130, 246, .68));
}
.smcrm-dashboard-shell .tone-green .smcrm-dashboard-kpi-icon img,
.smcrm-dashboard-shell .smcrm-dashboard-timeline > a > span.tone-green img {
    filter: brightness(0) saturate(100%) invert(77%) sepia(73%) saturate(1357%) hue-rotate(117deg) brightness(93%) contrast(87%) drop-shadow(0 0 5px rgba(45, 212, 191, .64));
}
.smcrm-dashboard-shell .tone-orange .smcrm-dashboard-kpi-icon img,
.smcrm-dashboard-shell .smcrm-dashboard-attention-list > a.tone-orange .smcrm-dashboard-attention-icon img,
.smcrm-dashboard-shell .smcrm-dashboard-timeline > a > span.tone-orange img {
    filter: brightness(0) saturate(100%) invert(70%) sepia(88%) saturate(2699%) hue-rotate(359deg) brightness(101%) contrast(104%) drop-shadow(0 0 5px rgba(245, 158, 11, .66));
}
.smcrm-dashboard-shell .tone-violet .smcrm-dashboard-kpi-icon img,
.smcrm-dashboard-shell .smcrm-dashboard-timeline > a > span.tone-purple img,
.smcrm-dashboard-shell .smcrm-dashboard-insight-mark img {
    filter: brightness(0) saturate(100%) invert(51%) sepia(98%) saturate(3990%) hue-rotate(250deg) brightness(103%) contrast(94%) drop-shadow(0 0 5px rgba(168, 85, 247, .68));
}
.smcrm-dashboard-shell .smcrm-dashboard-attention-list > a.tone-red .smcrm-dashboard-attention-icon img {
    filter: brightness(0) saturate(100%) invert(53%) sepia(85%) saturate(3386%) hue-rotate(326deg) brightness(102%) contrast(91%) drop-shadow(0 0 8px rgba(239, 68, 68, .84));
}
.smcrm-dashboard-shell .smcrm-dashboard-top-channel > span img {
    filter: brightness(0) saturate(100%) invert(78%) sepia(61%) saturate(1060%) hue-rotate(108deg) brightness(93%) contrast(91%) drop-shadow(0 0 8px rgba(45, 212, 191, .76));
}

/* ---------- Shared cards ---------- */
.smcrm-dashboard-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--dash-border);
    border-radius: 11px;
    background: radial-gradient(circle at 93% 6%, rgba(139, 92, 246, .055), transparent 31%),
        linear-gradient(155deg, rgba(14, 42, 88, .92), rgba(7, 25, 57, .975));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .022), 0 12px 34px rgba(0, 0, 0, .08);
    border-color: rgba(111, 145, 199, .22);
}
.smcrm-dashboard-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px 11px;
}
.smcrm-dashboard-card-head h2 {
    margin: 0;
    color: #f6f8ff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: .002em;
    text-transform: uppercase;
}
.smcrm-dashboard-attention .smcrm-dashboard-card-head h2 > i {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 9px;
    border-radius: 50%;
    background: var(--dash-red);
    box-shadow: 0 0 12px rgba(239, 68, 68, .72);
    vertical-align: 1px;
}
.smcrm-dashboard-info > i {
    display: inline !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    vertical-align: baseline !important;
}
.smcrm-dashboard-card-head p { margin: 5px 0 0; color: #91a2bc; font-size: 9.5px; line-height: 1.45; }
.smcrm-dashboard-card-head > a { color: #8fa0ff; font-size: 9px; font-weight: 650; white-space: nowrap; }
.smcrm-dashboard-card-head > a:hover { color: #c4b5fd; }
.smcrm-dashboard-card-head > a span,
.smcrm-dashboard-card-link span { margin-left: 6px; }
.smcrm-dashboard-card-link { display: block; width: max-content; margin: 10px auto 11px; color: #a78bfa; font-size: 9px; font-weight: 650; }

/* ---------- Middle grid ---------- */
.smcrm-dashboard-main-grid {
    display: grid;
    grid-template-columns: .76fr 1.06fr 1fr;
    gap: 13px;
    margin-bottom: 15px;
}
.smcrm-dashboard-main-grid > .smcrm-dashboard-card { min-height: 311px; }

/* Attention */
.smcrm-dashboard-attention-list { display: grid; gap: 6px; padding: 4px 12px 0; }
.smcrm-dashboard-attention-list > a {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 49px;
    padding: 6px 11px;
    border: 1px solid var(--dash-border-soft);
    border-radius: 8px;
    background: var(--dash-row);
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.smcrm-dashboard-attention-list > a:hover { transform: translateX(2px); border-color: rgba(139, 92, 246, .30); background: var(--dash-row-hover); }
.smcrm-dashboard-attention-list > a.is-clear { opacity: .78; }
.smcrm-dashboard-attention-list > a.has-alert { border-color: rgba(255, 255, 255, .10); }
.smcrm-dashboard-attention-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    color: #f87171;
    background: rgba(239, 68, 68, .13);
    box-shadow: inset 0 0 0 1px rgba(239, 68, 68, .06), 0 0 18px rgba(239, 68, 68, .10);
}
.smcrm-dashboard-attention-icon img { width: 17px; height: 17px; }
.smcrm-dashboard-attention-list > a div strong,
.smcrm-dashboard-attention-list > a div small { display: block; }
.smcrm-dashboard-attention-list > a div strong { color: #eef3ff; font-size: 10px; }
.smcrm-dashboard-attention-list > a div small { margin-top: 2px; color: #8797b1; font-size: 8px; }
.smcrm-dashboard-attention-list > a > b { font-size: 20px; line-height: 1; color: #fb7185; }
.smcrm-dashboard-attention-list > a.tone-orange .smcrm-dashboard-attention-icon { color: #f59e0b; background: rgba(245, 158, 11, .13); }
.smcrm-dashboard-attention-list > a.tone-orange > b { color: #f59e0b; }
.smcrm-dashboard-attention-list > a.tone-purple .smcrm-dashboard-attention-icon { color: #8b5cf6; background: rgba(139, 92, 246, .13); }
.smcrm-dashboard-attention-list > a.tone-purple > b { color: #a855f7; }
.smcrm-dashboard-attention-list > a.tone-blue .smcrm-dashboard-attention-icon { color: #3b82f6; background: rgba(37, 99, 235, .13); }
.smcrm-dashboard-attention-list > a.tone-blue > b { color: #38bdf8; }

/* Pipeline */
.smcrm-dashboard-pipeline-list { display: grid; gap: 8px; padding: 9px 16px 8px; }
.smcrm-dashboard-pipeline-list article {
    display: grid;
    grid-template-columns: 86px 32px minmax(80px, 1fr) 34px;
    align-items: center;
    gap: 8px;
}
.smcrm-dashboard-pipeline-list article > strong { color: #d8e1ef; font-size: 9px; font-weight: 600; }
.smcrm-dashboard-pipeline-list article > b,
.smcrm-dashboard-pipeline-list article > em { color: #f7f9ff; font-size: 9px; font-style: normal; text-align: right; }
.smcrm-dashboard-pipeline-list article > span { display: block; height: 6px; overflow: hidden; border-radius: 99px; background: rgba(92, 124, 176, .22); }
.smcrm-dashboard-pipeline-list article > span i { display: block; min-width: 2px; height: 100%; border-radius: inherit; box-shadow: 0 0 10px currentColor; transition: width 500ms ease; }
.smcrm-dashboard-pipeline footer,
.smcrm-dashboard-service footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 4px 16px 0;
    padding: 12px 0 14px;
    border-top: 1px solid rgba(123, 157, 214, .10);
    color: #93a3bc;
    font-size: 9px;
}
.smcrm-dashboard-pipeline footer b { margin-left: 9px; color: #f7f9ff; font-size: 14px; }
.smcrm-dashboard-pipeline footer span:last-child b { color: #27a8ff; font-size: 17px; }

/* Schedule */
.smcrm-dashboard-timeline { position: relative; display: grid; gap: 0; padding: 2px 14px 0; }
.smcrm-dashboard-timeline::before {
    content: "";
    position: absolute;
    left: 78px;
    top: 22px;
    bottom: 20px;
    width: 1px;
    background: linear-gradient(180deg, rgba(139, 92, 246, .6), rgba(37, 99, 235, .3), rgba(16, 185, 129, .3));
}
.smcrm-dashboard-timeline > a {
    position: relative;
    display: grid;
    grid-template-columns: 64px 42px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(123, 157, 214, .08);
}
.smcrm-dashboard-timeline > a:last-child { border-bottom: 0; }
.smcrm-dashboard-timeline time { color: #c2cede; font-size: 9px; text-align: left; }
.smcrm-dashboard-timeline > a > span {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(139, 92, 246, .18);
    border-radius: 9px;
    color: #a78bfa;
    background: rgba(139, 92, 246, .16);
    box-shadow: 0 0 20px rgba(139, 92, 246, .12);
}
.smcrm-dashboard-timeline > a > span::before { content: ""; position: absolute; left: -17px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.smcrm-dashboard-timeline > a > span img { width: 18px; height: 18px; }
.smcrm-dashboard-timeline > a > span.tone-blue { color: #3b82f6; background: rgba(37, 99, 235, .16); }
.smcrm-dashboard-timeline > a > span.tone-green { color: #2dd4bf; background: rgba(13, 148, 136, .16); }
.smcrm-dashboard-timeline > a > span.tone-orange { color: #f59e0b; background: rgba(217, 119, 6, .16); }
.smcrm-dashboard-timeline > a div strong,
.smcrm-dashboard-timeline > a div small { display: block; }
.smcrm-dashboard-timeline > a div strong { color: #eef3ff; font-size: 10px; }
.smcrm-dashboard-timeline > a div small { margin-top: 3px; color: #8797b1; font-size: 8px; }

.smcrm-dashboard-schedule-empty {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    min-height: 208px;
    margin: 14px;
    padding: 16px 18px;
    border: 1px dashed rgba(118, 151, 204, .18);
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(12, 35, 76, .56), rgba(8, 27, 61, .38));
    align-self: stretch;
}
.smcrm-dashboard-schedule-empty-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.smcrm-dashboard-day-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(123, 157, 214, .10);
}
.smcrm-dashboard-day-summary > span {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 9px 8px;
    border: 1px solid rgba(118, 151, 204, .12);
    border-radius: 8px;
    background: rgba(7, 24, 54, .58);
}
.smcrm-dashboard-day-summary small { color: #8ea0bb; font-size: 7.7px; line-height: 1.2; white-space: normal; }
.smcrm-dashboard-day-summary b { color: #f5f8ff; font-size: 15px; line-height: 1; }
.smcrm-dashboard-clear-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 11px;
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    box-shadow: 0 0 22px rgba(37, 99, 235, .20);
}
.smcrm-dashboard-clear-icon img { width: 21px; height: 21px; filter: brightness(0) invert(1); }
.smcrm-dashboard-schedule-empty strong,
.smcrm-dashboard-schedule-empty small,
.smcrm-dashboard-schedule-empty a { display: block; }
.smcrm-dashboard-schedule-empty strong { font-size: 11px; }
.smcrm-dashboard-schedule-empty small { margin-top: 4px; color: var(--dash-muted); font-size: 9px; line-height: 1.45; }
.smcrm-dashboard-schedule-empty a { width: max-content; margin-top: 10px; color: #a78bfa; font-size: 9px; font-weight: 700; }

/* ---------- Bottom grid ---------- */
.smcrm-dashboard-bottom-grid { display: grid; grid-template-columns: 1.37fr .99fr .60fr; gap: 13px; }
.smcrm-dashboard-bottom-grid > .smcrm-dashboard-card { min-height: 320px; }

/* Recent leads */
.smcrm-dashboard-leads-table { padding: 0 14px 12px; }
.smcrm-dashboard-leads-head,
.smcrm-dashboard-lead-row {
    display: grid;
    grid-template-columns: 1.55fr .82fr .82fr .80fr .87fr 1.02fr;
    align-items: center;
    gap: 10px;
}
.smcrm-dashboard-leads-head {
    min-height: 33px;
    color: #8899b4;
    border-top: 1px solid rgba(123, 157, 214, .08);
    border-bottom: 1px solid rgba(123, 157, 214, .10);
    font-size: 8.9px;
    font-weight: 700;
    text-transform: uppercase;
}
.smcrm-dashboard-lead-row {
    min-height: 49px;
    border-bottom: 1px solid rgba(123, 157, 214, .08);
    color: #c0ccdd;
    font-size: 9.8px;
    transition: background 160ms ease, transform 160ms ease;
}
.smcrm-dashboard-lead-row:last-child { border-bottom: 0; }
.smcrm-dashboard-lead-row:hover { background: rgba(139, 92, 246, .04); transform: translateX(2px); }
.smcrm-dashboard-lead-name { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 9px; min-width: 0; }
.smcrm-dashboard-lead-name > i {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    font-size: 9px;
    font-style: normal;
    font-weight: 800;
}
.smcrm-dashboard-lead-row:nth-child(3n) .smcrm-dashboard-lead-name > i { background: linear-gradient(135deg, #0f766e, #10b981); }
.smcrm-dashboard-lead-row:nth-child(4n) .smcrm-dashboard-lead-name > i { background: linear-gradient(135deg, #92400e, #f59e0b); }
.smcrm-dashboard-lead-name b,
.smcrm-dashboard-lead-name strong,
.smcrm-dashboard-lead-name small { display: block; min-width: 0; }
.smcrm-dashboard-lead-name strong { overflow: hidden; color: #f2f6ff; font-size: 10.8px; text-overflow: ellipsis; white-space: nowrap; }
.smcrm-dashboard-lead-name small { margin-top: 2px; color: #8d9db6; font-size: 8.7px; }
.smcrm-dashboard-lead-row .smcrm-pill { min-height: 22px; padding: 0 7px; font-size: 7.5px; }
.smcrm-dashboard-source { display: inline-flex; align-items: center; min-width: 0; width: max-content; max-width: 100%; padding: 4px 7px; border: 1px solid rgba(59, 130, 246, .18); border-radius: 6px; color: #c1dcff; background: rgba(37, 99, 235, .08); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 8.5px; }
.smcrm-dashboard-added { display: flex; align-items: center; justify-content: space-between; gap: 7px; white-space: nowrap; }
.smcrm-dashboard-added i { color: #7f90ac; font-style: normal; opacity: 0; transform: translateX(-4px); transition: opacity 160ms ease, transform 160ms ease; }
.smcrm-dashboard-lead-row:hover .smcrm-dashboard-added i { opacity: 1; transform: translateX(0); }

/* Service performance */
.smcrm-dashboard-period { display: inline-flex; align-items: center; min-height: 27px; padding: 0 9px; border: 1px solid rgba(118, 151, 204, .16); border-radius: 7px; color: #9aaac3; background: rgba(7, 23, 52, .58); font-size: 8px; }
.smcrm-dashboard-service-body { display: grid; grid-template-columns: 166px minmax(0, 1fr); align-items: center; gap: 11px; padding: 6px 15px 5px; padding-inline: 13px; }
.smcrm-dashboard-donut { position: relative; display: grid; place-items: center; width: 160px; height: 160px; margin: 0 auto; border-radius: 50%; box-shadow: 0 0 32px rgba(37, 99, 235, .10); }
.smcrm-dashboard-donut > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.smcrm-dashboard-donut-track { stroke: rgba(58, 91, 145, .26); }
.smcrm-dashboard-donut-segment { filter: drop-shadow(0 0 7px rgba(79, 70, 229, .20)); transition: stroke-dasharray 500ms ease, stroke-dashoffset 500ms ease; }
.smcrm-dashboard-service-legend { display: flex; gap: 9px; min-width: 0; flex-direction: column; justify-content: center; }
.smcrm-dashboard-service-legend > div { display: flex; align-items: center; justify-content: space-between; gap: 7px; color: #b8c4d7; min-height: 15px; flex: 0 0 auto; }
.smcrm-dashboard-service-legend > div > span { display: flex; align-items: center; min-width: 0; gap: 7px; font-size: 8.8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.smcrm-dashboard-service-legend > div > span i { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; box-shadow: 0 0 8px currentColor; }
.smcrm-dashboard-service-legend > div > b { color: #eef3ff; font-size: 8.5px; white-space: nowrap; }
.smcrm-dashboard-service-legend > div > b small { color: #8c9bb4; font-size: 7.5px; font-weight: 500; }
.smcrm-dashboard-service-note { margin: 2px 0 0; padding-top: 8px; border-top: 1px solid rgba(123, 157, 214, .08); color: #7f90ac; font-size: 8px; flex: 0 0 auto; width: 100%; margin-top: 2px; }
.smcrm-dashboard-service-cta { display: grid; gap: 5px; padding: 10px 11px 0; }
.smcrm-dashboard-service-cta strong { color: #dfe8f7; font-size: 9.2px; font-weight: 700; }
.smcrm-dashboard-service-cta span { color: #8193af; font-size: 8.4px; line-height: 1.35; }
.smcrm-dashboard-service-cta a { display: inline-flex; align-items: center; gap: 6px; width: max-content; margin-top: 2px; color: #a78bfa; font-size: 8.6px; font-weight: 700; }
.smcrm-dashboard-service-cta a:hover { color: #d5c8ff; }
.smcrm-dashboard-service-cta a b { font-size: 10px; }
.smcrm-dashboard-service-legend > p { margin: 0; padding: 15px; border: 1px dashed rgba(118, 151, 204, .18); border-radius: 9px; background: rgba(8, 27, 61, .44); }
.smcrm-dashboard-service-legend > p strong,
.smcrm-dashboard-service-legend > p span { display: block; }
.smcrm-dashboard-service-legend > p strong { font-size: 10px; }
.smcrm-dashboard-service-legend > p span { margin-top: 4px; color: var(--dash-muted); font-size: 9px; line-height: 1.45; }
.smcrm-dashboard-service footer span { display: inline-flex; align-items: baseline; gap: 7px; }
.smcrm-dashboard-service footer b { color: #f7f9ff; font-size: 16px; }

/* Quick insight */
.smcrm-dashboard-insight {
    background:
        linear-gradient(180deg, rgba(139, 92, 246, .08), transparent 40%),
        radial-gradient(circle at 78% 10%, rgba(139, 92, 246, .14), transparent 33%),
        linear-gradient(155deg, rgba(13, 37, 82, .95), rgba(7, 25, 57, .98));
}
.smcrm-dashboard-insight::after {
    content: "";
    position: absolute;
    inset: 38px 8px auto auto;
    width: 150px;
    height: 74px;
    opacity: .14;
    background: linear-gradient(160deg, transparent 45%, rgba(139, 92, 246, .85) 46% 48%, transparent 49% 60%, rgba(37, 99, 235, .85) 61% 63%, transparent 64%);
    transform: skewY(-8deg);
    pointer-events: none;
}
.smcrm-dashboard-insight-mark { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 8px; color: #a855f7; background: rgba(168, 85, 247, .11); }
.smcrm-dashboard-insight-mark img { width: 17px; height: 17px; }
.smcrm-dashboard-insight-main { position: relative; z-index: 1; padding: 7px 16px 0; }
.smcrm-dashboard-insight-main small,
.smcrm-dashboard-insight-main strong,
.smcrm-dashboard-insight-main span,
.smcrm-dashboard-insight-main em { display: block; }
.smcrm-dashboard-insight-main small { color: #99a8c0; font-size: 9px; }
.smcrm-dashboard-insight-main strong { margin-top: 5px; color: #fff; font-size: 27px; line-height: 1; letter-spacing: -.02em; }
.smcrm-dashboard-insight-main span { margin-top: 4px; color: #bec9da; font-size: 10px; }
.smcrm-dashboard-insight-main em { margin-top: 9px; font-size: 9px; font-style: normal; font-weight: 750; }
.smcrm-dashboard-top-channel { position: relative; z-index: 1; display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 10px; margin: 16px 14px 0; padding: 12px; border: 1px solid rgba(92, 133, 195, .20); border-radius: 9px; background: rgba(8, 28, 62, .74); }
.smcrm-dashboard-top-channel > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; color: #2dd4bf; background: rgba(13, 148, 136, .18); box-shadow: 0 0 20px rgba(45, 212, 191, .10); }
.smcrm-dashboard-top-channel > span img { width: 20px; height: 20px; }
.smcrm-dashboard-top-channel div small,
.smcrm-dashboard-top-channel div strong,
.smcrm-dashboard-top-channel div em { display: block; }
.smcrm-dashboard-top-channel div small { color: #8e9db6; font-size: 8px; }
.smcrm-dashboard-top-channel div strong { margin-top: 3px; overflow: hidden; color: #f3f6ff; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.smcrm-dashboard-top-channel div em { margin-top: 3px; color: #8fb1e8; font-size: 8px; font-style: normal; }
.smcrm-dashboard-insight > p { position: relative; z-index: 1; margin: 14px 16px 16px; color: #b5c1d3; font-size: 8.7px; line-height: 1.55; }
.smcrm-dashboard-insight.mode-ownership .smcrm-dashboard-insight-mark,
.smcrm-dashboard-insight.mode-funnel .smcrm-dashboard-insight-mark { background: rgba(245, 158, 11, .12); }
.smcrm-dashboard-insight.mode-operations .smcrm-dashboard-insight-mark { background: rgba(239, 68, 68, .12); }

/* Generic compact empty state */
.smcrm-dashboard-compact-empty { display: flex; align-items: center; gap: 12px; min-height: 128px; margin: 12px 14px; padding: 18px; border: 1px dashed rgba(118, 151, 204, .18); border-radius: 9px; background: rgba(8, 27, 61, .44); }
.smcrm-dashboard-compact-empty > span { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 10px; background: linear-gradient(135deg, #7c3aed, #2563eb); box-shadow: 0 0 22px rgba(37, 99, 235, .20); }
.smcrm-dashboard-compact-empty img { width: 20px; height: 20px; filter: brightness(0) invert(1); }
.smcrm-dashboard-compact-empty strong,
.smcrm-dashboard-compact-empty small { display: block; }
.smcrm-dashboard-compact-empty strong { font-size: 10px; }
.smcrm-dashboard-compact-empty small { margin-top: 4px; color: var(--dash-muted); font-size: 9px; line-height: 1.45; }


/* ---------- Dashboard data states & accessibility ---------- */
.smcrm-dashboard-shell .smcrm-dashboard-user > summary > div {
    min-width: 92px;
}

.smcrm-dashboard-shell .smcrm-dashboard-user > summary > i {
    flex: 0 0 8px;
}

.smcrm-dashboard-pipeline footer {
    min-height: 47px;
}

.smcrm-dashboard-pipeline footer span {
    gap: 8px;
}

.smcrm-dashboard-lead-row > span:not(.smcrm-dashboard-lead-name) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.smcrm-dashboard-trend.is-collecting,
.smcrm-dashboard-trend.is-baseline {
    display: block;
    max-width: 100%;
    margin: 0;
}

.smcrm-dashboard-trend.is-collecting b,
.smcrm-dashboard-trend.is-baseline b {
    display: block;
    overflow: hidden;
    color: #96a6bf;
    font-size: 8.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.smcrm-dashboard-trend.is-collecting small,
.smcrm-dashboard-trend.is-baseline small {
    display: none;
}


.smcrm-dashboard-kpi.tone-violet .smcrm-dashboard-kpi-value {
    font-size: clamp(19px, 1.35vw, 25px);
}

/* ---------- Responsive ---------- */
@media (max-width: 1480px) {
    .smcrm-dashboard-shell { --smcrm-sidebar-width: 220px; }
    .smcrm-dashboard-shell .smcrm-dashboard-topbar { grid-template-columns: minmax(0, 1fr) 300px auto; padding-inline: 22px; }
    .smcrm-dashboard-shell .smcrm-dashboard-user > summary { min-width: 160px; }
    .smcrm-dashboard-quick-actions > span { display: none; }
    .smcrm-dashboard-kpi-row { gap: 9px; }
    .smcrm-dashboard-kpi { grid-template-columns: 42px minmax(0, 1fr) 76px; gap: 10px; padding: 13px; }
    .smcrm-dashboard-kpi-icon { width: 42px; height: 42px; }
    .smcrm-dashboard-main-grid { grid-template-columns: .82fr 1.08fr 1fr; gap: 9px; }
    .smcrm-dashboard-bottom-grid { grid-template-columns: 1.34fr 1fr .62fr; gap: 9px; }
    .smcrm-dashboard-service-body { grid-template-columns: 142px minmax(0, 1fr); padding-inline: 10px; }
    .smcrm-dashboard-donut { width: 134px; height: 134px; }
}

@media (max-width: 1180px) {
    .smcrm-dashboard-shell { display: block; --smcrm-topbar-height: 66px; }
    .smcrm-dashboard-shell .smcrm-sidebar {
        position: fixed;
        left: 0;
        transform: translateX(-105%);
        width: 240px;
        transition: transform 220ms ease;
    }
    .smcrm-dashboard-shell.sidebar-open .smcrm-sidebar { transform: translateX(0); }
    .smcrm-dashboard-shell .smcrm-mobile-toggle { display: inline-flex; }
    .smcrm-dashboard-shell .smcrm-dashboard-topbar { grid-template-columns: auto minmax(220px, 300px) auto; padding: 10px 16px; }
    .smcrm-dashboard-shell .smcrm-dashboard-user > summary { min-width: 44px; width: 44px; padding: 3px; }
    .smcrm-dashboard-shell .smcrm-dashboard-user > summary div,
    .smcrm-dashboard-shell .smcrm-dashboard-user > summary i { display: none; }
    .smcrm-dashboard-shell .smcrm-content { padding: 0 16px 86px; }
    .smcrm-dashboard-welcome { align-items: flex-start; padding-top: 14px; }
    .smcrm-dashboard-quick-actions { flex-wrap: wrap; }
    .smcrm-dashboard-kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .smcrm-dashboard-kpi { grid-template-columns: 48px minmax(0, 1fr) 94px; }
    .smcrm-dashboard-main-grid,
    .smcrm-dashboard-bottom-grid { grid-template-columns: 1fr; }
    .smcrm-dashboard-main-grid > .smcrm-dashboard-card,
    .smcrm-dashboard-bottom-grid > .smcrm-dashboard-card { min-height: auto; }
    .smcrm-dashboard-service-body { grid-template-columns: 190px minmax(0, 1fr); }
    .smcrm-dashboard-donut { width: 170px; height: 170px; }
}

@media (max-width: 720px) {
    .smcrm-dashboard-shell .smcrm-dashboard-topbar { display: flex !important; justify-content: space-between; gap: 8px; }
    .smcrm-dashboard-shell .smcrm-dashboard-search-wrap { display: none; }
    .smcrm-dashboard-shell .smcrm-dashboard-create > summary { min-width: 82px; }
    .smcrm-dashboard-welcome { display: block; min-height: auto; padding: 18px 0 14px; }
    .smcrm-dashboard-greeting h1 { font-size: 25px; }
    .smcrm-dashboard-quick-actions { justify-content: flex-start; margin-top: 15px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
    .smcrm-dashboard-action { flex: 0 0 auto; }
    .smcrm-dashboard-kpi-row { grid-template-columns: 1fr; }
    .smcrm-dashboard-kpi { grid-template-columns: 48px minmax(0, 1fr) 100px; }
    .smcrm-dashboard-card-head { padding: 13px 14px 10px; }
    .smcrm-dashboard-pipeline-list article { grid-template-columns: 72px 26px minmax(60px, 1fr) 30px; gap: 6px; }
    .smcrm-dashboard-timeline::before { left: 69px; }
    .smcrm-dashboard-timeline > a { grid-template-columns: 55px 40px minmax(0, 1fr); gap: 8px; }
    .smcrm-dashboard-service-body { grid-template-columns: 1fr; gap: 16px; }
    .smcrm-dashboard-service-legend { width: 100%; }
    .smcrm-dashboard-schedule-empty { min-height: auto; }
    .smcrm-dashboard-day-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .smcrm-dashboard-leads-table { overflow-x: auto; }
    .smcrm-dashboard-leads-head,
    .smcrm-dashboard-lead-row { min-width: 760px; }
    .smcrm-dashboard-log > div { position: fixed; left: 16px; right: 16px; top: 82px; width: auto; }
}

@media (max-width: 420px) {
    .smcrm-dashboard-shell .smcrm-content { padding-left: 12px; padding-right: 12px; }
    .smcrm-dashboard-shell .smcrm-dashboard-topbar { padding-left: 12px; padding-right: 12px; }
    .smcrm-dashboard-shell .smcrm-dashboard-bell > summary,
    .smcrm-dashboard-shell .smcrm-dashboard-messages > summary { width: 37px; height: 37px; }
    .smcrm-dashboard-greeting h1 { font-size: 23px; }
    .smcrm-dashboard-kpi { grid-template-columns: 42px minmax(0, 1fr) 82px; gap: 9px; min-height: 105px; padding: 12px; }
    .smcrm-dashboard-kpi-icon { width: 42px; height: 42px; }
    .smcrm-dashboard-kpi-value { font-size: 22px; }
    .smcrm-dashboard-trend small { display: none; }
    .smcrm-dashboard-card-head > a { max-width: 108px; overflow: hidden; text-overflow: ellipsis; }
}

@media (prefers-reduced-motion: reduce) {
    .smcrm-dashboard-shell *,
    .smcrm-dashboard-shell *::before,
    .smcrm-dashboard-shell *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
