/*
 * MrOutreach — Design System CSS v3.0
 * Premium cold-outreach SaaS — Arobit Digital
 * Palette: Deep Graphite sidebar + Indigo primary + Platinum surfaces
 * Strict rule: NO inline styles in views. All CSS lives here or in /assets/css/modules/[module].css
 * ─────────────────────────────────────────────────────────────────────────────
 */

/* ═══════════════════════════════════════════
   1. DESIGN TOKENS
   ═══════════════════════════════════════════ */
:root {
    /* ── Brand ── */
    --primary:         #4f6ef7;   /* Blue-violet — clean SaaS blue */
    --primary-hover:   #3d5ce0;
    --primary-light:   #eef1ff;
    --primary-border:  #c7d2fe;
    --primary-muted:   #818CF8;

    /* ── Sidebar — rich navy ── */
    --sidebar-bg:            #1a2540;
    --sidebar-w:             260px;
    --sidebar-w-collapsed:   56px;
    --sidebar-text:          rgba(255,255,255,0.65);
    --sidebar-muted:         rgba(255,255,255,0.28);
    --sidebar-active-bg:     var(--primary);
    --sidebar-active-border: var(--primary);
    --sidebar-active-text:   #ffffff;
    --sidebar-hover-bg:      rgba(255,255,255,0.07);
    --sidebar-border:        rgba(255,255,255,0.08);

    /* ── Topbar — WHITE (Mailchimp / SendGrid standard) ── */
    --topbar-h:       56px;
    --topbar-bg:      #ffffff;
    --topbar-border:  #e5e9f2;
    --topbar-text:    #1e293b;
    --topbar-muted:   #64748b;

    /* ── Surfaces ── */
    --bg:           #F4F6FA;
    --surface:      #FFFFFF;
    --surface-alt:  #F8FAFC;
    --surface-2:    #F1F4F9;

    /* ── Text ── */
    --text:        #0F172A;
    --text-2:      #334155;
    --muted:       #64748B;
    --text-light:  #94A3B8;

    /* ── Borders ── */
    --border:       #E2E8F0;
    --border-dark:  #CBD5E1;

    /* ── Semantic ── */
    --success:      #059669;
    --success-bg:   #ECFDF5;
    --success-text: #065F46;

    --warning:      #D97706;
    --warning-bg:   #FFFBEB;
    --warning-text: #92400E;

    --danger:       #DC2626;
    --danger-bg:    #FEF2F2;
    --danger-text:  #991B1B;

    --info:         #0284C7;
    --info-bg:      #F0F9FF;
    --info-text:    #0C4A6E;

    --queue:        #7C3AED;
    --queue-bg:     #F5F3FF;
    --queue-text:   #4C1D95;

    /* ── Shadows (refined) ── */
    --shadow-sm: 0 1px 2px rgba(15,23,42,0.05);
    --shadow:    0 1px 4px rgba(15,23,42,0.08), 0 1px 2px rgba(15,23,42,0.04);
    --shadow-md: 0 4px 12px rgba(15,23,42,0.09), 0 2px 4px rgba(15,23,42,0.05);
    --shadow-lg: 0 12px 28px rgba(15,23,42,0.11), 0 4px 8px rgba(15,23,42,0.06);

    /* ── Radii ── */
    --radius-sm:  4px;
    --radius:     8px;
    --radius-lg:  10px;
    --radius-xl:  14px;
    --radius-pill: 999px;

    /* ── Misc ── */
    --font:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: 0.14s ease;
    --card-radius: var(--radius-lg);

    /* ── Type Scale ── */
    --text-2xs:  0.65rem;   /* 9.1px  — section labels, micro badges */
    --text-xs:   0.72rem;   /* 10.1px — table meta, timestamps */
    --text-sm:   0.80rem;   /* 11.2px — body secondary, breadcrumbs */
    --text-base: 0.875rem;  /* 12.25px — primary body */
    --text-md:   0.925rem;  /* 12.95px — card titles, nav links */
    --text-lg:   1.05rem;   /* 14.7px — page headings */
    --text-xl:   1.20rem;   /* 16.8px — modal headings */
    --text-2xl:  1.50rem;   /* 21px   — section headings */
}

/* ═══════════════════════════════════════════
   2. RESET + BASE
   ═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;    /* prevent body-level horizontal scroll; tables scroll inside their own wrapper */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    font-size: var(--text-base);
    letter-spacing: -0.005em;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: var(--text-base); accent-color: var(--primary); }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

/* Keyboard-only focus */
button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible) { outline: none !important; box-shadow: none !important; }

/* ═══════════════════════════════════════════
   3. SHELL LAYOUT
   ═══════════════════════════════════════════ */
.app-shell { display: flex; min-height: 100vh; overflow-x: hidden; }

/* ─── Sidebar ──────────────────────────────── */
.app-sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 1040;
    transition: transform .22s ease, width .18s ease;
    border-right: 1px solid rgba(255,255,255,0.05);
}

.sb-header {
    padding: 0 14px;
    height: var(--topbar-h);
    border-bottom: 1px solid var(--sidebar-border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sb-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    min-width: 0;
    flex: 1;
}
.sb-brand-mark {
    width: 30px; height: 30px;
    background: var(--primary);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(79,110,247,0.40);
}
.sb-brand-text { min-width: 0; }
.sb-brand-name {
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.02em;
}
.sb-brand-sub {
    color: rgba(255,255,255,0.35);
    font-size: 0.62rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}
.sb-nav {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.10) transparent;
}
.sb-nav::-webkit-scrollbar { width: 3px; }
.sb-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.10); border-radius: 3px; }
.sb-section {
    padding: 12px 16px 3px;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.24);
    user-select: none;
}
.sb-nav-list { padding: 0 7px; }
.sb-nav-item  { margin: 1px 0; }
.sb-nav-home  { padding-top: 6px; padding-bottom: 4px; }
.sb-nav-settings { margin-top: auto; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.07); }
.sb-nav-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 10px;
    height: 35px;
    border-radius: 6px;
    color: var(--sidebar-text);
    font-size: 0.84rem;
    font-weight: 450;
    transition: background var(--transition), color var(--transition);
    position: relative;
    white-space: nowrap;
    text-decoration: none;
    letter-spacing: -0.01em;
}
.sb-nav-link i {
    font-size: 0.88rem;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
    opacity: 0.60;
    transition: opacity var(--transition);
}
.sb-nav-link:hover { background: var(--sidebar-hover-bg); color: #fff; }
.sb-nav-link:hover i { opacity: 0.90; }
.sb-nav-item.active .sb-nav-link {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(79,110,247,0.35);
}
.sb-nav-item.active .sb-nav-link i { opacity: 1; }
.sb-nav-item.active .sb-nav-link::before { display: none; }
.sb-badge {
    margin-left: auto;
    background: var(--queue);
    color: #fff;
    font-size: 0.60rem;
    font-weight: 700;
    border-radius: var(--radius-pill);
    padding: 1px 6px;
    min-width: 18px;
    text-align: center;
    line-height: 1.6;
}
.sb-footer {
    padding: 8px;
    border-top: 1px solid var(--sidebar-border);
    flex-shrink: 0;
}

/* ── Overlay (mobile) ── */
.sb-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.50); z-index: 1039; }
.sb-overlay.open { display: block; }

/* ── Collapsed state ── */
body.sb-collapsed .app-sidebar   { width: var(--sidebar-w-collapsed); }
body.sb-collapsed .app-main      { margin-left: var(--sidebar-w-collapsed); }
body.sb-collapsed .sb-brand-text,
body.sb-collapsed .sb-section,
body.sb-collapsed .sb-nav-link span,
body.sb-collapsed .sb-badge      { display: none !important; }
body.sb-collapsed .sb-nav-link   { justify-content: center; padding: 0; }
body.sb-collapsed .sb-nav-link i { width: auto; opacity: 0.75; }
body.sb-collapsed .sb-header     { padding: 0; justify-content: center; }
body.sb-collapsed .sb-brand      { justify-content: center; }
body.sb-collapsed .sb-nav-item.active .sb-nav-link::before { display: none; }

/* Tooltip on hover (collapsed) */
body.sb-collapsed .sb-nav-link[data-label]:hover::after {
    content: attr(data-label);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%; transform: translateY(-50%);
    background: #0f172a;
    color: #fff;
    font-size: 0.73rem;
    white-space: nowrap;
    padding: 5px 12px;
    border-radius: 6px;
    pointer-events: none;
    z-index: 2000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.22);
    letter-spacing: 0;
}

/* ─── Main area ─────────────────────────────── */
.app-main {
    flex: 1;
    margin-left: var(--sidebar-w);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;          /* prevent flex child from overflowing parent */
    overflow-x: hidden;    /* contain wide tables — tables use overflow-x:auto internally */
    transition: margin-left .18s ease;
    background: var(--bg);
}

/* ─── Topbar — WHITE Material SaaS ─────────── */
.app-topbar {
    height: var(--topbar-h);
    background: var(--topbar-bg);
    border-bottom: 1px solid var(--topbar-border);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.topbar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--topbar-muted);
    font-size: 1.15rem;
    padding: 0; line-height: 1;
    flex-shrink: 0;
}
.topbar-toggle:hover { color: var(--topbar-text); }
.sb-collapse-btn {
    width: 32px; height: 32px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    background: transparent;
    border: none;
    color: var(--topbar-muted);
    font-size: 0.95rem;
    transition: background var(--transition), color var(--transition);
    flex-shrink: 0;
}
.sb-collapse-btn:hover { background: var(--surface-2); color: var(--topbar-text); }

/* Topbar title + breadcrumb */
.topbar-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--topbar-text);
    letter-spacing: -0.02em;
}

/* Global search box */
.topbar-search {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--bg);
    border: 1.5px solid transparent;
    border-radius: var(--radius);
    padding: 0 12px;
    height: 34px;
    width: 240px;
    flex-shrink: 0;
    transition: border-color var(--transition), box-shadow var(--transition), width .22s, background var(--transition);
}
.topbar-search i { color: var(--muted); font-size: 0.80rem; flex-shrink: 0; }
.topbar-search input {
    background: none; border: none; outline: none;
    font-size: var(--text-sm); color: var(--text); width: 100%;
    font-family: inherit;
}
.topbar-search input::placeholder { color: var(--text-light); }
.topbar-search:focus-within {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,110,247,0.10);
    width: 280px;
}

.topbar-spacer { flex: 1; }
.topbar-actions { display: flex; align-items: center; gap: 4px; }

.topbar-btn {
    width: 32px; height: 32px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    color: var(--topbar-muted);
    font-size: 0.88rem;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    position: relative;
    text-decoration: none;
}
.topbar-btn:hover {
    background: var(--surface-2);
    border-color: var(--border);
    color: var(--topbar-text);
}
.topbar-btn .badge-dot {
    position: absolute;
    top: 5px; right: 5px;
    width: 7px; height: 7px;
    background: var(--danger);
    border-radius: 50%;
    border: 1.5px solid var(--topbar-bg);
}
.topbar-divider {
    width: 1px; height: 20px;
    background: var(--border);
    margin: 0 4px;
}

/* User button */
.topbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px 4px 4px;
    border-radius: var(--radius);
    cursor: pointer;
    background: none;
    border: 1px solid transparent;
    color: var(--topbar-text);
    transition: background var(--transition), border-color var(--transition);
}
.topbar-user:hover { background: var(--surface-2); border-color: var(--border); }
.topbar-user::after { display: none; }
.topbar-avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.68rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(79,110,247,0.20);
}
.topbar-user-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--topbar-text);
    line-height: 1.2;
}
.topbar-user-role {
    font-size: 0.60rem;
    color: var(--topbar-muted);
    line-height: 1.2;
}
.topbar-chevron { font-size: 0.65rem; color: var(--topbar-muted); }
.td-user-info { padding: 8px 16px 6px; display: flex; align-items: center; gap: 10px; }
.td-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.78rem; font-weight: 700; flex-shrink: 0;
}
.td-name  { font-size: 0.80rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.td-email { font-size: 0.70rem; color: var(--muted); }

/* ─── Page content ──────────────────────────── */
.app-content { flex: 1; padding: 22px 26px 48px; }

/* ═══════════════════════════════════════════
   4. PAGE TOOLBAR
   ═══════════════════════════════════════════ */
.page-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
    flex-wrap: wrap;
}
.page-toolbar-left h4 {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 2px;
    line-height: 1.25;
    letter-spacing: -0.025em;
}
.page-toolbar .breadcrumb {
    margin: 0; padding: 0; background: none;
    display: flex; align-items: center; gap: 4px;
    font-size: var(--text-xs); color: var(--muted);
}
.breadcrumb-item { display: flex; align-items: center; gap: 4px; }
.breadcrumb-item a { color: var(--muted); }
.breadcrumb-item a:hover { color: var(--primary); }
.breadcrumb-item + .breadcrumb-item::before { content: '/'; color: var(--text-light); }
.breadcrumb-item.active { color: var(--text); }
.page-toolbar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ═══════════════════════════════════════════
   5. CARDS
   ═══════════════════════════════════════════ */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-sm);
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 18px;
    border-bottom: 1px solid var(--border);
    gap: 10px;
    background: var(--surface-alt);
    border-radius: var(--card-radius) var(--card-radius) 0 0;
}
.card-title { font-size: 0.88rem; font-weight: 700; color: var(--text); margin: 0; letter-spacing: -0.01em; }
.card-body  { padding: 18px; }
.card-footer {
    padding: 11px 18px;
    border-top: 1px solid var(--border);
    background: var(--surface-alt);
    border-radius: 0 0 var(--card-radius) var(--card-radius);
}

/* KPI cards */
.kpi-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    padding: 18px 18px 16px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}
.kpi-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.kpi-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--primary);
}
.kpi-card.kc-success::before { background: var(--success); }
.kpi-card.kc-warning::before { background: var(--warning); }
.kpi-card.kc-danger::before  { background: var(--danger); }
.kpi-card.kc-queue::before   { background: var(--queue); }
.kpi-card.kc-info::before    { background: var(--info); }
.kpi-label { font-size: 0.69rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin-bottom: 6px; }
.kpi-action-link { margin-left:auto; color:var(--queue); font-size:0.72rem; font-weight:600; text-decoration:none; }
.kpi-action-link:hover { text-decoration:underline; }
.kpi-value { font-size: 1.90rem; font-weight: 800; color: var(--text); line-height: 1.0; margin-bottom: 6px; letter-spacing: -0.03em; }
.kpi-meta  { font-size: 0.72rem; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.kpi-meta .up   { color: var(--success); font-weight: 600; }
.kpi-meta .down { color: var(--danger);  font-weight: 600; }

/* KPI icon box (top-right) */
.kpi-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.kpi-icon-wrap {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}
.kpi-icon-wrap.ic-primary { background: var(--primary-light); color: var(--primary); }
.kpi-icon-wrap.ic-success { background: var(--success-bg);    color: var(--success); }
.kpi-icon-wrap.ic-warning { background: var(--warning-bg);    color: var(--warning); }
.kpi-icon-wrap.ic-info    { background: var(--info-bg);       color: var(--info); }
.kpi-icon-wrap.ic-queue   { background: var(--queue-bg);      color: var(--queue); }
.kpi-icon-wrap.ic-danger  { background: var(--danger-bg);     color: var(--danger); }

/* Trend chip */
.kpi-trend {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 0.68rem; font-weight: 700;
    padding: 2px 7px; border-radius: var(--radius-pill);
    margin-top: 6px;
}
.kpi-trend.up   { background: var(--success-bg); color: var(--success); }
.kpi-trend.down { background: var(--danger-bg);  color: var(--danger); }
.kpi-trend.flat { background: #f1f5f9;            color: var(--muted); }

/* ── Quick-Action Cards ── */
.qa-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}
.qa-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    display: flex; align-items: center; gap: 14px;
    text-decoration: none;
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition), transform var(--transition);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}
.qa-card:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}
.qa-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem; flex-shrink: 0;
}
.qa-text .qa-label { font-size: 0.82rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.qa-text .qa-sub   { font-size: 0.70rem; color: var(--muted); margin-top: 2px; }
.qa-card:hover .qa-text .qa-label { color: var(--primary); }

/* ── Tab-pills filter bar ── */
.tab-pills {
    display: flex; gap: 3px;
    background: var(--surface-2);
    padding: 3px;
    border-radius: var(--radius);
    flex-shrink: 0;
}
.tab-pill {
    padding: 5px 14px;
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.76rem; font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
    border: none; background: transparent; cursor: pointer;
    line-height: 1.4;
}
.tab-pill:hover { color: var(--text); background: rgba(255,255,255,0.7); }
.tab-pill.active {
    background: var(--surface);
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.10);
}
.tab-pill .pill-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 16px;
    background: var(--surface-2);
    border-radius: var(--radius-pill);
    font-size: 0.60rem; font-weight: 700;
    padding: 0 5px;
    margin-left: 5px;
    color: var(--muted);
}
.tab-pill.active .pill-count { background: var(--primary-light); color: var(--primary); }

/* ── Campaign Cards ── */
.campaign-grid { display: flex; flex-direction: column; gap: 12px; }
.c-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 22px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
    cursor: pointer;
    text-decoration: none;
    display: block;
}
.c-card:hover {
    box-shadow: 0 4px 16px rgba(79,110,247,0.12);
    border-color: var(--primary-border);
    transform: translateY(-1px);
}
.c-head {
    display: flex; align-items: flex-start;
    justify-content: space-between;
    gap: 14px; margin-bottom: 14px;
}
.c-title-wrap { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.c-type-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.0rem; flex-shrink: 0;
}
.c-name { font-size: 0.90rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.c-sub  { font-size: 0.72rem; color: var(--muted); margin-top: 3px; }
.c-actions { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.c-action-btn {
    width: 30px; height: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: transparent;
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); cursor: pointer; font-size: 0.82rem;
    transition: all var(--transition); text-decoration: none;
}
.c-action-btn:hover { background: var(--surface-2); color: var(--text); }
.c-action-btn.play:hover   { background: var(--success-bg); color: var(--success); border-color: #6EE7B7; }
.c-action-btn.pause:hover  { background: var(--warning-bg); color: var(--warning); border-color: #FCD34D; }
.c-action-btn.danger:hover { background: var(--danger-bg);  color: var(--danger);  border-color: #FCA5A5; }

/* Campaign stats row */
.c-stats {
    display: flex; align-items: center; gap: 24px;
    flex-wrap: wrap;
}
.c-stat { display: flex; flex-direction: column; gap: 1px; }
.c-stat-val  { font-size: 0.90rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.c-stat-lbl  { font-size: 0.67rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.c-progress  { margin: 12px 0 10px; }
.c-prog-bg   { height: 5px; background: var(--surface-2); border-radius: var(--radius-pill); }
.c-prog-fill { height: 100%; border-radius: var(--radius-pill); transition: width .4s ease; }
.c-prog-fill.primary { background: var(--primary); }
.c-prog-fill.success { background: var(--success); }
.c-prog-fill.warning { background: var(--warning); }

/* Filter bar used on list pages */
.filter-bar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
}
.filter-row {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1;
}

/* ═══════════════════════════════════════════
   6. DATA TABLE
   ═══════════════════════════════════════════ */
.table-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.table-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
    flex-wrap: wrap;
    background: var(--surface-alt);
}
.table-card-title { font-size: 0.84rem; font-weight: 700; color: var(--text); margin: 0; }
.table-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.79rem; }
.data-table thead tr { background: var(--surface-alt); }
.data-table thead th {
    padding: 10px 14px;
    text-align: left;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.data-table tbody tr { border-bottom: 1px solid var(--border); transition: background var(--transition); }
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover { background: var(--surface-alt); }
.data-table td { padding: 10px 14px; vertical-align: middle; color: var(--text); }
.data-table td.td-muted { color: var(--muted); }
.data-table th.col-check, .data-table td.col-check { width: 40px; padding-right: 0; }
.data-table th.col-actions, .data-table td.col-actions { width: 90px; text-align: right; }

/* Contact cell */
.contact-cell { display: flex; align-items: center; gap: 10px; }
.contact-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.68rem; font-weight: 700; flex-shrink: 0;
    border: 1.5px solid var(--primary-border);
}
.contact-name  { font-weight: 600; font-size: 0.80rem; color: var(--text); line-height: 1.3; }
.contact-email { font-size: 0.72rem; color: var(--muted); }

/* Empty state */
.table-empty { padding: 52px 24px; text-align: center; }
.table-empty-icon  { font-size: 2.4rem; color: var(--text-light); margin-bottom: 14px; }
.table-empty-title { font-size: 0.88rem; font-weight: 700; color: var(--text-2); margin-bottom: 5px; }
.table-empty-sub   { font-size: 0.77rem; color: var(--muted); line-height: 1.6; }

/* ═══════════════════════════════════════════
   7. BUTTONS
   ═══════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    height: 34px;
    border-radius: var(--radius);
    font-size: 0.79rem;
    font-weight: 500;
    border: 1px solid transparent;
    transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
    white-space: nowrap;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    letter-spacing: 0.01em;
}
.btn i { font-size: 0.84rem; flex-shrink: 0; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[disabled] { opacity: 0.55; pointer-events: none; }

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(79,110,247,0.30);
}
.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #fff;
    box-shadow: 0 4px 12px rgba(79,110,247,0.38);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--surface);
    border-color: var(--border-dark);
    color: var(--text-2);
    box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { background: var(--surface-2); border-color: var(--border-dark); color: var(--text); }

.btn-danger {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
    box-shadow: 0 1px 3px rgba(220,38,38,0.25);
}
.btn-danger:hover { background: #b91c1c; border-color: #b91c1c; color: #fff; }

.btn-success {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}
.btn-success:hover { background: #047857; border-color: #047857; color: #fff; }

.btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--text-2);
    box-shadow: none;
}
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }

.btn-icon { padding: 0; width: 34px; height: 34px; justify-content: center; }

.btn-sm { height: 28px; padding: 0 11px; font-size: 0.74rem; }
.btn-sm.btn-icon { width: 28px; height: 28px; }

.btn-lg { height: 40px; padding: 0 22px; font-size: 0.86rem; }

/* Row actions */
.row-actions { display: flex; align-items: center; gap: 2px; justify-content: flex-end; }
.action-btn {
    width: 28px; height: 28px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 0.84rem;
    transition: background var(--transition), color var(--transition);
    text-decoration: none;
    cursor: pointer;
}
.action-btn:hover         { background: var(--surface-2); color: var(--text); }
.action-btn.danger:hover  { background: var(--danger-bg);  color: var(--danger); }
.action-btn.success:hover { background: var(--success-bg); color: var(--success); }

/* ═══════════════════════════════════════════
   8. BADGES
   ═══════════════════════════════════════════ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    font-size: 0.67rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    line-height: 1.6;
}
.badge-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }

/* Contact statuses */
.badge-new       { background: var(--info-bg);     color: var(--info-text); }
.badge-contacted { background: var(--primary-light); color: var(--primary); }
.badge-replied   { background: var(--success-bg);  color: var(--success-text); }
.badge-opted_out { background: var(--warning-bg);  color: var(--warning-text); }
.badge-bounced   { background: var(--danger-bg);   color: var(--danger-text); }

/* Campaign statuses */
.badge-draft     { background: #F1F5F9; color: var(--text-2); }
.badge-active    { background: var(--success-bg); color: var(--success-text); }
.badge-paused    { background: var(--warning-bg); color: var(--warning-text); }
.badge-completed { background: var(--info-bg);    color: var(--info-text); }
.badge-archived  { background: #E2E8F0;           color: var(--muted); }

/* Queue statuses */
.badge-pending   { background: var(--queue-bg);   color: var(--queue-text); }
.badge-in_review { background: var(--warning-bg); color: var(--warning-text); }
.badge-resolved  { background: var(--success-bg); color: var(--success-text); }
.badge-ignored   { background: #F1F5F9;           color: var(--muted); }

/* Generic */
.badge-primary   { background: var(--primary-light); color: var(--primary); }
.badge-success   { background: var(--success-bg); color: var(--success-text); }
.badge-warning   { background: var(--warning-bg); color: var(--warning-text); }
.badge-danger    { background: var(--danger-bg);  color: var(--danger-text); }
.badge-info      { background: var(--info-bg);    color: var(--info-text); }
.badge-secondary { background: #F1F5F9;           color: var(--text-2); }

/* ═══════════════════════════════════════════
   9. FORMS  (BA-compliant: required markers, helper text, states)
   ═══════════════════════════════════════════ */
.form-group { margin-bottom: 16px; }
.form-group:last-child { margin-bottom: 0; }

.form-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.77rem;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 6px;
    line-height: 1.3;
}
/* Required asterisk — add class "required" to label */
.form-label.required::after,
.form-label .req {
    content: '*';
    color: var(--danger);
    font-weight: 700;
    font-size: 0.80rem;
}
/* When using <span class="req"> inside label */
.form-label .req { content: none; }

.form-control,
.form-input,
.form-select {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border: 1.5px solid var(--border-dark);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    font-size: 0.80rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    appearance: none;
    line-height: 1;
}
.form-control::placeholder,
.form-input::placeholder { color: var(--text-light); }
.form-control:hover,
.form-input:hover   { border-color: #94A3B8; }
.form-control:focus,
.form-input:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,110,247,0.12);
}
.form-control.is-invalid,
.form-input.is-invalid,
.form-select.is-invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(220,38,38,0.10);
}
.form-control:disabled,
.form-input:disabled,
.form-select:disabled {
    background: var(--surface-alt);
    color: var(--muted);
    cursor: not-allowed;
}

textarea.form-control,
textarea.form-input {
    height: auto;
    padding: 9px 12px;
    resize: vertical;
    min-height: 92px;
    line-height: 1.5;
}

select.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%2364748B' d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 11px center;
    padding-right: 32px;
    cursor: pointer;
}

/* Form validation messages */
.form-error {
    font-size: 0.72rem;
    color: var(--danger);
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}
.form-error i { font-size: 0.75rem; flex-shrink: 0; }

/* Helper / hint text under inputs */
.form-hint {
    font-size: 0.72rem;
    color: var(--muted);
    margin-top: 5px;
    line-height: 1.5;
}

/* Inline search */
.search-input-wrap { position: relative; display: inline-block; }
.search-input-wrap i {
    position: absolute;
    left: 10px;
    top: 50%; transform: translateY(-50%);
    color: var(--muted);
    font-size: 0.79rem;
    pointer-events: none;
}
.search-input {
    height: 32px;
    padding: 0 10px 0 31px;
    border: 1.5px solid var(--border-dark);
    border-radius: var(--radius);
    background: #fff;
    font-size: 0.78rem;
    color: var(--text);
    outline: none;
    width: 220px;
    transition: border-color var(--transition), box-shadow var(--transition), width .2s;
}
.search-input::placeholder { color: var(--text-light); }
.search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,110,247,0.10); width: 260px; }

/* Form section label */
.form-section-title {
    font-size: 0.70rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

/* Input group (icon inside) */
.input-group { position: relative; }
.input-group .input-icon {
    position: absolute;
    left: 11px;
    top: 50%; transform: translateY(-50%);
    color: var(--muted);
    font-size: 0.82rem;
    pointer-events: none;
}
.input-group .form-control { padding-left: 34px; }

/* ═══════════════════════════════════════════
   10. ALERTS / FLASH
   ═══════════════════════════════════════════ */
.alert {
    padding: 11px 15px;
    border-radius: var(--radius-lg);
    font-size: 0.79rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1.5px solid transparent;
    margin-bottom: 18px;
    line-height: 1.5;
}
.alert i { font-size: 0.95rem; flex-shrink: 0; margin-top: 1px; }
.alert > div { flex: 1; }
.alert-success { background: var(--success-bg); color: var(--success-text); border-color: #6EE7B7; }
.alert-warning { background: var(--warning-bg); color: var(--warning-text); border-color: #FCD34D; }
.alert-danger  { background: var(--danger-bg);  color: var(--danger-text);  border-color: #FCA5A5; }
.alert-info    { background: var(--info-bg);    color: var(--info-text);    border-color: #7DD3FC; }
.alert-close {
    margin-left: auto;
    background: none; border: none;
    font-size: 0.90rem; cursor: pointer;
    color: inherit; opacity: 0.55; flex-shrink: 0;
    padding: 0; line-height: 1;
}
.alert-close:hover { opacity: 1; }

/* ═══════════════════════════════════════════
   11. PAGINATION
   ═══════════════════════════════════════════ */
.pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 18px;
    border-top: 1px solid var(--border);
    gap: 12px; flex-wrap: wrap;
}
.pagination-info { font-size: 0.74rem; color: var(--muted); }
.pagination { display: flex; align-items: center; gap: 3px; }
.page-btn {
    display: flex; align-items: center; justify-content: center;
    min-width: 30px; height: 30px;
    border-radius: var(--radius);
    border: 1.5px solid var(--border-dark);
    background: #fff;
    color: var(--text-2);
    font-size: 0.77rem;
    padding: 0 8px;
    transition: all var(--transition);
    text-decoration: none;
}
.page-btn:hover { background: var(--primary-light); border-color: var(--primary-border); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
.page-btn:disabled, .page-btn.disabled { opacity: 0.45; pointer-events: none; }

/* ═══════════════════════════════════════════
   12. MODALS
   ═══════════════════════════════════════════ */
.modal-overlay,
.modal-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(15,23,42,0.50);
    z-index: 2000;
    align-items: center; justify-content: center;
    padding: 20px;
    overflow-y: auto;
}
.modal-overlay.open { display: flex; }
/* .modal-backdrop is shown via jQuery .show() which sets display:block — override to flex */
.modal-backdrop[style*="display: block"],
.modal-backdrop[style*="display:block"] { display: flex !important; }
.modal-box {
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: 0 24px 64px rgba(15,23,42,0.18);
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
}
.modal-box.modal-lg { max-width: 740px; }
.modal-box.modal-sm { max-width: 400px; }
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px 13px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-alt);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.modal-title { font-size: 0.92rem; font-weight: 700; color: var(--text); margin: 0; letter-spacing: -0.01em; }
.modal-close {
    width: 28px; height: 28px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    background: transparent; border: none;
    color: var(--muted); font-size: 1.0rem;
    transition: background var(--transition), color var(--transition);
}
.modal-close:hover { background: var(--surface-2); color: var(--text); }
.modal-body   { padding: 22px; flex: 1; }
.modal-footer {
    padding: 13px 20px;
    border-top: 1px solid var(--border);
    display: flex; align-items: center; justify-content: flex-end; gap: 8px;
    background: var(--surface-alt);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

/* ═══════════════════════════════════════════
   13. TABS
   ═══════════════════════════════════════════ */
.tab-nav {
    display: flex;
    border-bottom: 1.5px solid var(--border);
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.tab-nav::-webkit-scrollbar { display: none; }
.tab-link {
    padding: 10px 18px;
    font-size: 0.79rem;
    font-weight: 500;
    color: var(--muted);
    border-bottom: 2.5px solid transparent;
    margin-bottom: -1.5px;
    white-space: nowrap;
    background: none; border-top: none; border-left: none; border-right: none;
    transition: color var(--transition), border-color var(--transition);
    text-decoration: none;
    display: flex; align-items: center; gap: 6px;
    cursor: pointer;
}
.tab-link:hover { color: var(--text); }
.tab-link.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 700; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ═══════════════════════════════════════════
   14. KANBAN
   ═══════════════════════════════════════════ */
.kanban-board { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 16px; align-items: flex-start; }
.kanban-col { flex-shrink: 0; width: 240px; display: flex; flex-direction: column; }
.kanban-col-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 12px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border: 1px solid var(--border); border-bottom: none;
    background: var(--surface);
}
.kanban-col-name { font-size: 0.75rem; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 6px; }
.kanban-stage-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.kanban-col-count {
    font-size: 0.67rem; font-weight: 700;
    background: var(--surface-alt); border: 1px solid var(--border);
    border-radius: var(--radius-pill); padding: 1px 7px; color: var(--muted);
}
.kanban-cards {
    border: 1px solid var(--border); border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    background: var(--surface-alt); min-height: 180px;
    padding: 8px; display: flex; flex-direction: column; gap: 7px;
}
.kanban-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 11px 13px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
    cursor: pointer;
}
.kanban-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.kanban-card-name    { font-size: 0.79rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.kanban-card-company { font-size: 0.71rem; color: var(--muted); margin-bottom: 8px; }
.kanban-card-footer  { display: flex; align-items: center; justify-content: space-between; gap: 6px; }

/* ═══════════════════════════════════════════
   15. WIZARD STEPS
   ═══════════════════════════════════════════ */
.wizard-steps { display: flex; align-items: center; gap: 0; margin-bottom: 28px; }
.wizard-step { display: flex; align-items: center; flex: 1; }
.wizard-step-inner { display: flex; align-items: center; gap: 10px; }
.wizard-step-num {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.78rem; font-weight: 700;
    background: var(--border); color: var(--muted); flex-shrink: 0;
    border: 2px solid transparent;
}
.wizard-step.done .wizard-step-num   { background: var(--success); color: #fff; border-color: var(--success); }
.wizard-step.active .wizard-step-num { background: var(--primary); color: #fff; border-color: var(--primary); }
.wizard-step-label { font-size: 0.78rem; font-weight: 500; color: var(--muted); }
.wizard-step.active .wizard-step-label { color: var(--text); font-weight: 700; }
.wizard-step.done .wizard-step-label  { color: var(--success); }
.wizard-connector { flex: 1; height: 2px; background: var(--border); margin: 0 10px; }
.wizard-connector.done { background: var(--success); }

/* ═══════════════════════════════════════════
   16. TIMELINE
   ═══════════════════════════════════════════ */
.timeline { position: relative; }
.timeline::before { content: ''; position: absolute; left: 15px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding: 0 0 18px 44px; }
.timeline-icon {
    position: absolute; left: 0; top: 2px;
    width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.78rem; background: var(--surface);
    border: 2px solid var(--border); color: var(--muted); z-index: 1;
}
.timeline-icon.sent      { border-color: var(--info);    color: var(--info); }
.timeline-icon.opened    { border-color: var(--success);  color: var(--success); }
.timeline-icon.replied   { border-color: var(--primary);  color: var(--primary); }
.timeline-icon.escalated { border-color: var(--queue);    color: var(--queue); }
.timeline-icon.bounced   { border-color: var(--danger);   color: var(--danger); }
.timeline-body { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 10px 15px; }
.timeline-meta { font-size: 0.70rem; color: var(--muted); margin-bottom: 5px; display: flex; align-items: center; gap: 8px; }
.timeline-text { font-size: 0.79rem; color: var(--text-2); }

/* ═══════════════════════════════════════════
   17. SCORE GAUGE
   ═══════════════════════════════════════════ */
.score-ring { position: relative; width: 80px; height: 80px; }
.score-ring svg { transform: rotate(-90deg); }
.score-ring .ring-bg   { stroke: var(--border); }
.score-ring .ring-fill { stroke: var(--primary); stroke-linecap: round; transition: stroke-dashoffset 0.5s ease; }
.score-ring.good  .ring-fill { stroke: var(--success); }
.score-ring.ok    .ring-fill { stroke: var(--warning); }
.score-ring.bad   .ring-fill { stroke: var(--danger); }
.score-ring-val {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; font-weight: 800; color: var(--text);
}

/* ═══════════════════════════════════════════
   18. DROPDOWN
   ═══════════════════════════════════════════ */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
    display: none;
    position: absolute;
    right: 0; top: calc(100% + 6px);
    min-width: 190px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(15,23,42,0.12);
    z-index: 1500;
    padding: 5px 0;
}
.dropdown-menu.open { display: block; }
.dropdown-menu.dropdown-menu-end { right: 0; left: auto; }
.dropdown-item {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 15px; font-size: 0.79rem;
    color: var(--text); background: none; border: none;
    width: 100%; text-align: left; cursor: pointer;
    text-decoration: none;
    transition: background var(--transition);
}
.dropdown-item:hover { background: var(--surface-alt); }
.dropdown-item.danger       { color: var(--danger); }
.dropdown-item.danger:hover { background: var(--danger-bg); }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* ═══════════════════════════════════════════
   19. UTILITIES
   ═══════════════════════════════════════════ */
.divider      { height: 1px; background: var(--border); margin: 14px 0; }
.section-gap  { margin-top: 26px; }
.text-muted   { color: var(--muted) !important; }
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-danger  { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fs-sm  { font-size: 0.75rem; }
.fs-xs  { font-size: 0.68rem; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; }
.mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px !important; }
.w-100 { width: 100%; }
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cursor-pointer { cursor: pointer; }
.ms-auto { margin-left: auto !important; }
.d-none { display: none !important; }
.d-md-inline { display: inline; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.grid-5 { display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; }
/* kpi-row is an alias for grid-4 — covers legacy screens */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
/* Responsive grid fallbacks */
@media (max-width: 1100px) { .grid-5 { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 900px)  { .grid-4, .grid-5 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px)  { .grid-2, .grid-3, .grid-4, .grid-5, .kpi-row { grid-template-columns: 1fr; } }
/* Spin animation for refresh icons */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin .7s linear infinite; }

/* ═══════════════════════════════════════════
   19b. DETAIL PAGE LAYOUTS
   ═══════════════════════════════════════════ */

/* Detail page two-column (main + sidebar) */
.detail-layout        { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }
.detail-layout-wide   { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }
.detail-main          { display: flex; flex-direction: column; gap: 16px; }
.detail-aside         { display: flex; flex-direction: column; gap: 16px; }

/* Profile hero inside card */
.profile-hero         { display: flex; gap: 16px; align-items: flex-start; }
.profile-avatar       { width: 56px; height: 56px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: flex; align
/* ═══════════════════════════════════════════
   20. FORM LAYOUT UTILITIES
   ═══════════════════════════════════════════ */
/* Two-column form layout: main + narrow sidebar */
.form-layout-2col        { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }
.form-layout-main        { display: flex; flex-direction: column; gap: 16px; }
.form-layout-sidebar     { display: flex; flex-direction: column; gap: 16px; }

/* Phone/code input row */
.phone-row               { display: flex; gap: 6px; }
.phone-row .select-code  { width: 90px; flex-shrink: 0; }
.phone-row .form-control { flex: 1; }

/* Centred block button */
.btn-center              { justify-content: center; }
.mt-2                    { margin-top: 8px; }

@media (max-width: 991px) {
    .form-layout-2col    { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   21. IMPORT DONE / RESULT SCREEN
   ═══════════════════════════════════════════ */
.wizard-narrow          { max-width: 680px; margin-bottom: 28px; }
.result-wrap            { max-width: 560px; }
.result-card-body       { text-align: center; padding: 32px 24px; }
.result-icon            { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto 16px; }
.result-icon-success    { background: var(--success-bg); color: var(--success); }
.result-icon-warning    { background: var(--warning-bg); color: var(--warning); }
.result-title           { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.result-subtitle        { font-size: 0.80rem; color: var(--muted); margin-bottom: 24px; }
.result-stats           { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.result-stat            { border-radius: var(--radius-lg); padding: 14px; text-align: center; }
.result-stat-success    { background: var(--success-bg); }
.result-stat-warning    { background: var(--warning-bg); }
.result-stat-danger     { background: var(--danger-bg); }
.result-stat-neutral    { background: #f3f4f6; }
.result-stat-num        { font-size: 1.8rem; font-weight: 800; }
.result-stat-num-success{ color: var(--success); }
.result-stat-num-warning{ color: var(--warning); }
.result-stat-num-danger { color: var(--danger); }
.result-stat-num-muted  { color: var(--muted); }
.result-stat-label      { font-size: 0.72rem; font-weight: 600; }
.result-stat-label-success { color: var(--success); }
.result-stat-label-warning { color: var(--warning); }
.result-stat-label-danger  { color: var(--danger); }
.result-stat-label-muted   { color: var(--muted); }
.error-rows             { text-align: left; margin-bottom: 20px; }
.error-rows-title       { font-size: 0.78rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.error-row-item         { font-size: 0.73rem; color: var(--danger); padding: 5px 10px; background: var(--danger-bg); border-radius: var(--radius); margin-bottom: 4px; }
.error-rows-more        { font-size: 0.72rem; color: var(--muted); }
.result-actions         { display: flex; gap: 10px; justify-content: center; }

/* ── Section 22: Utility helpers ─────────────────────────────────────────── */

/* Filter row (shared across campaigns, queue, contacts) */
.filter-row             { display: flex; align-items: center; gap: 8px; flex: 1; flex-wrap: wrap; }

/* Form selects */
.form-select-sm         { width: auto; height: 32px; font-size: 0.78rem; }
.form-select-narrow     { max-width: 220px; }
.form-input-narrow      { max-width: 280px; }

/* Fixed-width select filters */
.select-130             { width: 130px; }
.select-140             { max-width: 140px; }
.select-180             { max-width: 180px; }
.select-filter-sm       { max-width: 140px; }

/* Table cell variants */
.td-muted-sm            { font-size: 0.78rem; color: var(--muted); }
.td-muted-xs            { font-size: 0.73rem; color: var(--muted); }
.td-warn-sm             { font-size: 0.72rem; color: var(--warning); }
.td-truncate            { font-size: 0.75rem; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-sm                  { font-size: 0.78rem; }
.td-dash                { color: var(--muted); font-size: 0.78rem; }
.td-you-label           { font-size: 0.68rem; color: var(--muted); margin-left: 4px; }

/* Icon helpers */
.icon-mr-sm             { margin-right: 5px; }
.icon-warning-mr        { color: var(--warning); margin-right: 6px; }
.icon-danger-mr         { color: var(--danger); margin-right: 6px; }
.icon-success-sm        { color: var(--success); font-size: 0.80rem; }
.icon-muted-sm          { color: var(--muted); font-size: 0.80rem; }
.icon-xxs               { font-size: 8px; }

/* Inline flex helpers */
.d-flex-gap-sm          { display: flex; align-items: center; gap: 6px; }
.align-items-start      { align-items: flex-start !important; }
.signal-cell            { display: inline-flex; align-items: center; gap: 4px; }

/* Badge sizes */
.badge-xs               { font-size: 10px; }

/* Spacing helpers */
.mt-sm                  { margin-top: 6px; }
.mt-10                  { margin-top: 10px; }
.form-group-mt          { margin-top: 8px; }
.form-actions-mt        { margin-top: 16px; }

/* Tab bar bottom margin */
.tab-bar-mb             { margin-bottom: 16px; }
.tab-nav-mb             { margin-bottom: 16px; }

/* Card helpers */
.card-header-between    { justify-content: space-between; }
.card-header-row        { display: flex; align-items: center; gap: 10px; }
.table-card-mb          { margin-bottom: 16px; }

/* Button helpers */
.btn-icon-tight         { padding: 2px 7px; }
.btn-submit-lg          { height: 38px; font-size: 0.85rem; font-weight: 600; justify-content: center; }
.btn-nowrap             { white-space: nowrap; }

/* Modal size variants */
.modal-sm               { max-width: 420px; }
.modal-md               { max-width: 440px; }
.modal-lg               { max-width: 600px; }
.modal-xl               { max-width: 640px; }

/* Modal action row */
.modal-btn-row          { display: flex; gap: 10px; margin-top: 6px; }

/* Import wizard */
.wizard-steps-narrow    { max-width: 680px; margin-bottom: 28px; }
.wizard-card-wide       { max-width: 800px; }
.wizard-card-xl         { max-width: 900px; }
.wizard-narrow          { max-width: 560px; }
.alert-mb               { margin-bottom: 18px; }
.table-mb               { margin-bottom: 20px; }
.section-mb             { margin-bottom: 20px; }
.table-scroll           { overflow-x: auto; }
.preview-section-label  { font-size: 0.75rem; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.table-xs               { font-size: 0.73rem; }

/* Drop zone (CSV upload) */
.drop-zone              { border: 2px dashed var(--border-dark); border-radius: var(--radius-lg); padding: 32px 20px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; background: #fafafa; }
.drop-zone-icon         { font-size: 2rem; color: var(--primary); display: block; margin-bottom: 10px; }
.drop-zone-title        { font-size: 0.84rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.drop-zone-hint         { font-size: 0.75rem; color: var(--muted); margin-bottom: 14px; }
.csv-example-box        { background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 16px; }
.csv-code-preview       { font-size: 0.72rem; color: var(--muted); display: block; line-height: 1.8; }

/* Auth / Login */
.input-wrap-rel         { position: relative; }
.pr-eye                 { padding-right: 38px; }
.btn-eye-toggle         { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #9ca3af; font-size: 0.85rem; padding: 0; cursor: pointer; }
.remember-row           { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.check-label-sm         { display: flex; align-items: center; gap: 7px; cursor: pointer; font-size: 0.78rem; color: #374151; }
.check-sm               { width: 14px; height: 14px; accent-color: #4f46e5; cursor: pointer; }

/* Card empty (audit/show padded variant) */
.card-empty-padded      { padding: 48px 24px; }
.card-empty-icon-lg     { font-size: 2.5rem; opacity: 1; }
.card-empty-title       { font-size: 0.90rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }

/* Sidebar layout app.blade.php */
.sb-badge-green         { background: #10b981; font-size: 8px; }
.sb-badge-indigo        { background: #6366f1; font-size: 8px; }
.sb-user-row            { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 5px; }
.sb-user-info           { min-width: 0; }
.topbar-user-text       { text-align: left; }
.topbar-chevron         { font-size: 0.60rem; color: rgba(255,255,255,0.45); }

/* Score mini inline */
.score-mini-inline      { display: inline-block; width: 80px; margin-right: 6px; }

/* Enroll page */
.enroll-summary-hint    { font-size: 0.78rem; color: var(--muted); margin-bottom: 12px; }
.enroll-selection-box   { background: var(--surface-2); border-radius: 6px; padding: 10px; margin-bottom: 14px; font-size: 0.80rem; }
.enroll-selected-count  { font-size: 0.80rem; font-weight: 600; color: var(--primary); margin-bottom: 12px; }

/* Campaign stats bar */
.camp-stats-bar         { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px 20px; margin-bottom: 20px; display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }

/* ═══════════════════════════════════════════════════════════════
   TOP NAVIGATION LAYOUT  (replaces sidebar)
   ═══════════════════════════════════════════════════════════════ */

/* Override shell: vertical stack instead of side-by-side */
.app-shell {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Hide old sidebar completely */
.app-sidebar { display: none !important; }

/* Old topbar removed — body container fills full width */
.app-main {
    margin-left: 0 !important;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

/* ── Body wrapper that sits below the navbar ── */
.app-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
}

/* ── Content area ── */
.app-body .app-content {
    flex: 1;
    padding: 24px 28px;
    max-width: 100%;
    overflow-x: auto;
}

/* ═══════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════ */
.app-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 56px;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 4px rgba(15,23,42,0.06);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 0;
    flex-shrink: 0;
}

/* ── Brand ── */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    margin-right: 20px;
    flex-shrink: 0;
}
.nav-brand-mark {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.90rem;
    flex-shrink: 0;
}
.nav-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.nav-brand-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.3px;
    white-space: nowrap;
}
.nav-brand-sub {
    font-size: 0.60rem;
    color: var(--muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* ── Nav items container ── */
.nav-items {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
}

/* ── Direct nav link (no dropdown) ── */
.nav-direct {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 7px;
    font-size: 0.80rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    transition: background 0.12s, color 0.12s;
    white-space: nowrap;
}
.nav-direct i { font-size: 0.85rem; }
.nav-direct:hover { background: var(--surface-2); color: var(--text); }
.nav-direct-active { color: var(--primary) !important; background: var(--primary-light) !important; }

/* ── Nav group (with dropdown) ── */
.nav-group { position: relative; }

.nav-group-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border: none;
    background: none;
    border-radius: 7px;
    font-size: 0.80rem;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
    white-space: nowrap;
}
.nav-group-btn > i:first-child { font-size: 0.88rem; }

.nav-chevron {
    font-size: 0.58rem !important;
    transition: transform 0.15s;
    opacity: 0.65;
}
.nav-group-btn:hover { background: var(--surface-2); color: var(--text); }
.nav-group.open > .nav-group-btn,
.nav-group-active > .nav-group-btn {
    color: var(--primary);
    background: var(--primary-light);
}
.nav-group.open > .nav-group-btn .nav-chevron { transform: rotate(180deg); }

/* Inbox badge on nav-group button */
.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    background: #ef4444;
    color: #fff;
    border-radius: 9px;
    font-size: 0.58rem;
    font-weight: 700;
    line-height: 1;
}

/* ── Dropdown panel ── */
.nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 250px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(15,23,42,0.13), 0 3px 8px rgba(15,23,42,0.06);
    padding: 6px;
    z-index: 1050;
}
.nav-dropdown-wide { min-width: 280px; }
.nav-group.open > .nav-dropdown { display: block; }

/* Dropdown section label */
.nav-dd-section {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    padding: 5px 10px 4px;
}

/* Dropdown item */
.nav-dd-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    transition: background 0.10s;
}
.nav-dd-item:hover { background: var(--surface-2); color: var(--text); }
.nav-dd-item.active { background: var(--primary-light); color: var(--primary); }

.nav-dd-item > i:first-child {
    font-size: 1rem;
    color: var(--primary);
    width: 22px;
    flex-shrink: 0;
    text-align: center;
    opacity: 0.82;
}
.nav-dd-item.active > i:first-child { opacity: 1; }

.nav-dd-label {
    font-size: 0.80rem;
    font-weight: 600;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.3;
}
.nav-dd-sub {
    font-size: 0.69rem;
    color: var(--muted);
    margin-top: 1px;
    line-height: 1.3;
}
.nav-dd-item.active .nav-dd-sub { color: var(--primary); opacity: 0.72; }

.nav-dd-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: #ef4444;
    color: #fff;
    border-radius: 8px;
    font-size: 0.58rem;
    font-weight: 700;
}
.nav-dd-badge-green { background: #10b981; }

/* ── Right side ── */
.nav-right {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    margin-left: 12px;
}

/* Search */
.nav-search {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 10px;
    height: 32px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 196px;
    transition: width 0.2s ease, border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.nav-search:focus-within {
    width: 248px;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,.10);
    background: #fff;
}
.nav-search i { font-size: 0.74rem; color: var(--muted); flex-shrink: 0; }
.nav-search input {
    border: none;
    background: none;
    outline: none;
    font-size: 0.77rem;
    color: var(--text);
    width: 100%;
}
.nav-search input::placeholder { color: var(--text-light); }

/* CTA */
.nav-cta { white-space: nowrap; flex-shrink: 0; }

/* Vertical divider */
.nav-vdivider {
    width: 1px;
    height: 20px;
    background: var(--border);
    margin: 0 3px;
    flex-shrink: 0;
}

/* Icon buttons */
.nav-icon-btn {
    width: 33px;
    height: 33px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--muted);
    text-decoration: none;
    transition: background 0.12s, color 0.12s;
    position: relative;
    font-size: 0.92rem;
    flex-shrink: 0;
}
.nav-icon-btn:hover { background: var(--surface-2); color: var(--text); }
.nav-icon-btn.active { color: var(--primary); background: var(--primary-light); }

/* Bell notification dot */
.nav-bell-dot {
    position: absolute;
    top: 7px;
    right: 6px;
    width: 7px;
    height: 7px;
    background: #ef4444;
    border-radius: 50%;
    border: 1.5px solid #fff;
}

/* User button */
.nav-user-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 4px 8px 4px 4px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: none;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s;
    flex-shrink: 0;
}
.nav-user-btn:hover { background: var(--surface-2); border-color: var(--border-dark); }
.nav-user-btn::after { display: none; }

.nav-avatar {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
}
.nav-user-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}
.nav-user-name {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nav-user-role {
    font-size: 0.62rem;
    color: var(--muted);
}

/* ── Mobile toggle ── */
.nav-mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border: none;
    background: none;
    color: var(--muted);
    font-size: 1.2rem;
    border-radius: 7px;
    cursor: pointer;
    margin-left: auto;
}
.nav-mobile-toggle:hover { background: var(--surface-2); color: var(--text); }

/* ── Mobile responsive ── */
@media (max-width: 1100px) {
    .nav-search { display: none; }
}

@media (max-width: 900px) {
    .nav-items { display: none; }
    .nav-mobile-toggle { display: flex; }
    .nav-right .nav-cta span { display: none; }
    .nav-brand-text { display: none; }

    /* Mobile drawer */
    .nav-items.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        padding: 10px;
        z-index: 999;
        box-shadow: 0 6px 20px rgba(15,23,42,0.10);
        gap: 2px;
        max-height: calc(100vh - 56px);
        overflow-y: auto;
    }
    .nav-items.mobile-open .nav-group,
    .nav-items.mobile-open .nav-direct { width: 100%; }
    .nav-items.mobile-open .nav-group-btn,
    .nav-items.mobile-open .nav-direct { width: 100%; justify-content: flex-start; }
    .nav-items.mobile-open .nav-dropdown {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0 0 4px 24px;
    }
    .nav-items.mobile-open .nav-group.open > .nav-dropdown { display: block; }
}

/* Kanban outer column */
.kanban-col-outer       { flex: 0 0 200px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }

/* Form label size variants */
.form-label-xs          { font-size: 12px; }
.form-select-narrow     { max-width: 300px; }

/* User avatar (small, used in users table) */
.user-avatar-sm         { width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.70rem; font-weight: 700; flex-shrink: 0; }

/* Toggle row with margin-top variant */
.toggle-row-mt          { margin-top: 10px; }
.drop-zone-filename    { margin-top: 10px; font-size: 0.78rem; color: var(--primary); }
