/**
 * crm/assets/css/fz-crm.css
 *
 * The single CSS file for all Fuzzitech CRM customisation.
 * Load this AFTER style.css (full INSPINIA theme).
 *
 * --fz-banner-h  (CSS custom property)
 *   Set to 0px by default.  When the impersonation banner is visible,
 *   fz-banner-adjust.js measures its rendered height and sets this variable
 *   on :root.  Every fixed-positioned element that must sit below the banner
 *   uses calc(var(--fz-banner-h) + <own offset>) for its top / height.
 *
 * Load order in partials/header.php and partials/header-public.php:
 *   1. bootstrap.min.css   -  Bootstrap 3 reset + grid
 *   2. font-awesome.css    -  icon font
 *   3. animate.css         -  INSPINIA transitions
 *   4. style.css           -  full INSPINIA theme
 *   5. fz-crm.css          -  THIS FILE (brand + all CRM-specific styles)
 *
 * Contents:
 *   1. CSS tokens (brand colour variables)
 *   2. Sidebar & navigation
 *   3. Buttons  -  primary / success / login
 *   4. Labels & badges
 *   5. Links & focus rings
 *   6. Form controls  -  focus border
 *   6a. Checkboxes & radio buttons  -  brand accent colour
 *   6a. Checkboxes & radio buttons  -  brand accent colour
 *   7. ibox / panel border
 *   8. Progress bars
 *   9. Pace progress bar
 *  10. Login / public page chrome
 *  11. Focus / outline reset
 *  12. Company favicon helpers
 *  13. Note / activity timeline entries
 *  14. Avatar initials badge
 *  15. Pipeline stage badges
 *  16. Utility
 *
 * Rules:
 *   - Check Bootstrap 3 / INSPINIA before adding anything here.
 *   - Every rule without a Bootstrap equivalent must have a comment.
 *   - Never use #1ab394 (INSPINIA green). Use var(--fz-brand) or
 *     Bootstrap semantic classes (.btn-primary, .btn-success, etc.).
 *
 * @package Fuzzitech_CRM
 */

/* ============================================================
   1. CSS TOKENS  -  BRAND COLOUR VARIABLES
   ============================================================ */

:root {
    --fz-brand:        #DC143C;   /* Fuzzitech red (primary accent) */
    --fz-brand-dark:   #B91130;   /* Hover / active state */
    --fz-brand-pale:   #f9e6ea;   /* Tint backgrounds */
    --fz-brand-light:  #f3c8d0;   /* Lighter tint */
}

/* ─── WordPress admin-bar suppression ───────────────────────────────────────
 * The CRM has its own full HTML shell and must not inherit the WP admin bar
 * margin-top injection (body.admin-bar { margin-top: 32px }).
 * show_admin_bar filter in crm-env.php prevents the bar from rendering;
 * these rules are a belt-and-suspenders guard in case something else injects
 * the class later.
 */
#wpadminbar                     { display: none !important; }
html.wp-toolbar                 { padding-top: 0 !important; }
body.admin-bar,
body.admin-bar #wpadminbar ~ *  { margin-top: 0 !important; }

/* ============================================================
   2. SIDEBAR & NAVIGATION
   ============================================================ */

/* Active sidebar item  -  background + left border accent */
.nav.metismenu > li.active > a,
.nav.metismenu > li.active > a:hover,
.nav.metismenu > li.active > a:focus {
    background: var(--fz-brand) !important;
    color: #fff !important;
    border-color: var(--fz-brand-dark) !important;
}

/* INSPINIA sets a green left border on active li via border-left-color */
.nav.metismenu > li.active {
    border-left-color: var(--fz-brand-dark) !important;
}

/* Hover on non-active items */
.nav.metismenu > li > a:hover {
    background: rgba(255,255,255,0.08) !important;
    color: #fff !important;
}

/* Second-level active and hover */
.nav.metismenu .nav-second-level li.active a {
    color: #fff !important;
}
.nav.metismenu .nav-second-level li a:hover {
    color: #fff !important;
}

/* Second-level active left border */
.nav.metismenu .nav-second-level li.active {
    border-left-color: var(--fz-brand) !important;
}

/* Reduce submenu left padding on desktop (INSPINIA default is 52px) */
.nav-second-level li a {
    padding-left: 28px !important;
}

/* â”€â”€ Mobile sidebar: proper overlay drawer â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   On mobile we activate INSPINIA's built-in canvas-menu mode (via JS below).
   canvas-menu CSS is already in style.css:
     .canvas-menu .navbar-static-side { position: fixed; display: none; }
     .canvas-menu.mini-navbar .navbar-static-side { display: block; width: 220px; }
     .canvas-menu.mini-navbar #page-wrapper { margin-left: 0; }
   Here we add the backdrop and fix labels / submenus in the open state.
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 768px) {
    /* Dim backdrop injected by fz-mobile-nav.js */
    #fz-sidebar-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.45);
        z-index: 2000;
        cursor: pointer;
    }
    body.canvas-menu.mini-navbar #fz-sidebar-backdrop {
        display: block;
    }

    /* Sidebar slides in as a proper overlay  -  ensure it sits above backdrop */
    body.canvas-menu.mini-navbar nav.navbar-static-side {
        z-index: 2001 !important;
        height: 100% !important;
        overflow-y: auto;
    }

    /* Restore nav header padding (canvas mode zeroes it out for desktop) */
    body.canvas-menu.mini-navbar .nav-header {
        padding: 33px 25px !important;
        background: #2f4050 !important;
    }

    /* Show text labels and profile area in the open drawer */
    body.canvas-menu.mini-navbar .nav-label,
    body.canvas-menu.mini-navbar .navbar-default .nav li a span {
        display: inline !important;
    }
    body.canvas-menu.mini-navbar .profile-element {
        display: block !important;
    }
    body.canvas-menu.mini-navbar .logo-element {
        display: none !important;
    }
    body.canvas-menu.mini-navbar .fa.arrow {
        display: inline-block !important;
    }

    /* Submenus: inline (MetisMenu-controlled) instead of absolute flyout */
    body.canvas-menu.mini-navbar .nav-second-level {
        position: static !important;
        left: auto !important;
        top: auto !important;
        background-color: transparent !important;
        padding: 0 !important;
        min-width: auto !important;
        box-shadow: none !important;
    }
    body.canvas-menu.mini-navbar .nav-second-level li a {
        padding: 7px 10px 7px 28px !important;
        font-size: 13px !important;
    }
    body.canvas-menu.mini-navbar .navbar-default .nav > li.active > a {
        border-radius: 0 !important;
    }
}

/* Sidebar logo element (collapsed mode) */
.logo-element {
    background: var(--fz-brand) !important;
}

/* Sidebar profile avatar  -  always brand red regardless of hash */
.nav-header .profile-element .fz-avatar {
    background: var(--fz-brand) !important;
}

/* Sidebar hover submenu (mini-navbar collapsed) - wider, no wrap */
body:not(.fixed-sidebar):not(.canvas-menu).mini-navbar .nav li:hover > .nav-second-level,
.mini-navbar .nav li:focus > .nav-second-level {
    min-width: 220px;
}
.mini-navbar .nav-second-level li a {
    white-space: nowrap;
}

/* â”€â”€ Navbar top links â”€â”€ */
/* INSPINIA uses green for the active/hover state in .navbar-top-links */
.navbar-top-links > li > a:hover,
.navbar-top-links > li > a:focus {
    color: var(--fz-brand) !important;
}
.navbar-top-links .dropdown-menu > li > a:hover {
    color: var(--fz-brand) !important;
    background: var(--fz-brand-pale) !important;
}
/* Badge on notification bell */
.navbar-top-links .label-warning,
.navbar-top-links .label-danger,
.navbar-top-links .label-primary {
    background-color: var(--fz-brand) !important;
}


/* â”€â”€ Layout offsets: CSS custom property for impersonation banner height â”€â”€
   JS (footer.php) sets --fz-banner-h to the rendered banner height so that
   all fixed-positioned panels automatically clear the banner.              */
:root {
    --fz-banner-h: 0px; /* 0px when no banner; JS overrides when banner active */
}

/* â”€â”€ Navbar height: reduce link padding from INSPINIA's 20px to 15px â”€â”€
   Side-effect: right sidebar must match reduced navbar height (50px not 60px).
   When the impersonation banner is present, the sidebar also clears it.    */
#right-sidebar {
    top: calc(var(--fz-banner-h) + 50px);
}

/* â”€â”€ Left sidebar: clear the impersonation banner â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.canvas-menu .navbar-static-side,
body.fixed-sidebar .navbar-static-side {
    top: var(--fz-banner-h);
    height: calc(100% - var(--fz-banner-h));
}
/* â”€â”€ Navbar height: reduce link padding from INSPINIAâ€™s 20px to 15px â”€â”€ */
.navbar-top-links > li > a {
    padding: 15px 10px;
    min-height: 50px;
}
.navbar-minimalize {
    margin: 10px 5px 5px 15px !important;
}
/* Avatar in top navbar  -  vertically centre it */
.navbar-top-links .fz-avatar {
    vertical-align: middle;
    border-radius: 3px;
}

/* â”€â”€ Fix native <select> vertical text alignment (Chrome/Windows) â”€â”€
   Bootstrap sets padding: 6px 12px on .form-control. Chrome's native
   <select> rendering adds an internal offset that pushes text low.
   Reducing vertical padding lets the browser centre the text naturally. */
select.form-control {
    padding-top: 4px;
    padding-bottom: 4px;
}

/* â”€â”€ Fix <label> text sitting low inside its line box (Chrome/Windows) â”€â”€
   Open Sans (usWinAscent 1900 > UPM 2048) renders with the baseline low
   in the em square, leaving apparent space above the cap-line. Fix by
   reducing margin-bottom and using line-height exactly 1 so no extra
   half-leading is added above. display:block removes inline-block strut. */
.form-group > label,
.form-group > .control-label {
    display: block;
    line-height: 1;
    margin-bottom: 4px;
    padding-top: 0;
    padding-bottom: 0;
}

/* â”€â”€ Fix Bootstrap dropdown-menu item text vertical alignment â”€â”€
   Bootstrap's .dropdown-menu > li > a has line-height: 25px which is
   correct, but the margin: 4px creates visual asymmetry on some
   browsers. Ensure consistent alignment. */
.dropdown-menu > li > a {
    display: flex;
    align-items: center;
    min-height: 32px;
    line-height: 1.4;
    margin: 2px 4px;
    padding: 4px 16px;
}

/* ============================================================
   3. BUTTONS  -  PRIMARY / SUCCESS / LOGIN / RESET / SAVE
   ============================================================ */

.btn-primary,
.btn-primary:active,
.btn-primary.active {
    background-color: var(--fz-brand) !important;
    border-color:     var(--fz-brand-dark) !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--fz-brand-dark) !important;
    border-color:     var(--fz-brand-dark) !important;
    color: #fff !important;
}



/* Login / reset / save button classes used on public pages */
.btn-login,
.btn-login:active,
.btn-reset,
.btn-reset:active,
.btn-save,
.btn-save:active {
    background: var(--fz-brand) !important;
    border-color: var(--fz-brand-dark) !important;
    color: #fff !important;
}

.btn-login:hover,
.btn-login:focus,
.btn-reset:hover,
.btn-reset:focus,
.btn-save:hover,
.btn-save:focus {
    background: var(--fz-brand-dark) !important;
    border-color: var(--fz-brand-dark) !important;
    color: #fff !important;
}

/* â”€â”€ btn-default: replace Bootstrap gray with clean slate-outline â”€â”€â”€â”€â”€â”€â”€â”€ */
.btn-default,
.btn-default:focus {
    background-color: #fff !important;
    border-color: #b0bec5 !important;
    color: #546e7a !important;
    background-image: none !important;
    text-shadow: none;
    box-shadow: none;
}
.btn-default:hover {
    background-color: #f1f5f9 !important;
    border-color: #78909c !important;
    color: #37474f !important;
}
.btn-default:active,
.btn-default.active,
.open > .dropdown-toggle.btn-default {
    background-color: #e9eff5 !important;
    border-color: #607d8b !important;
    color: #37474f !important;
}


/* ============================================================
   4. LABELS & BADGES
   ============================================================ */

/* NOTE: .label-success / .badge-success intentionally NOT overridden  - 
   green is the correct semantic colour for "Active", "Won", etc. */

/* â”€â”€ Badge/label vertical alignment  -  use flex centering â”€â”€
   inline-flex + align-items:center perfectly centers both text and icons
   regardless of font metrics (Open Sans ascender space, FA icon em square). */
.label,
.badge {
    display:         inline-flex;
    align-items:     center;
    line-height:     1;
    vertical-align:  middle;
    position:        static;
}
.badge {
    justify-content: center;
}
.label {
    padding-top:    3px;
    padding-bottom: 3px;
}

/* ============================================================
   5. LINKS & FOCUS RINGS
   ============================================================ */

a { color: var(--fz-brand); }
a:hover, a:focus { color: var(--fz-brand-dark); }

/* ============================================================
   6. FORM CONTROLS  -  DEFAULT + FOCUS BORDER
   ============================================================ */

/* Darker default border so fields are clearly visible against white backgrounds */
.form-control {
    border-color: #adb5bd !important;
    border-radius: 6px !important;
}

.form-control:focus {
    border-color: var(--fz-brand) !important;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 0 3px rgba(220,20,60,.15) !important;
}

/* ============================================================
   6a. CHECKBOXES & RADIO BUTTONS  -  CUSTOM BRAND STYLING
   ============================================================ */

/* -- Reset & sizing ------------------------------------------ */
input[type="checkbox"],
input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
    outline: none;
    border: 1.5px solid #b8bfc8;
    background: #fff;
    vertical-align: middle;
    position: relative;
    top: -1px;
    margin: 0;
    padding: 0;
    transition: border-color .15s, background .15s, box-shadow .15s;
}

/* -- Shapes --------------------------------------------------- */
input[type="checkbox"] { border-radius: 4px; }
input[type="radio"]    { border-radius: 50%; }

/* -- Hover ---------------------------------------------------- */
input[type="checkbox"]:hover:not(:disabled),
input[type="radio"]:hover:not(:disabled) {
    border-color: var(--fz-brand);
}

/* -- Checked fill --------------------------------------------- */
input[type="checkbox"]:checked,
input[type="radio"]:checked {
    background-color: var(--fz-brand);
    border-color:     var(--fz-brand);
}

/* -- Checkbox tick mark --------------------------------------- */
input[type="checkbox"]::before {
    content: "\2714";
    font-size: 11px;
    font-weight: 700;
    color: transparent;
    line-height: 1;
}
input[type="checkbox"]:checked::before {
    color: #fff;
}

/* -- Radio inner dot ----------------------------------------- */
input[type="radio"]::before {
    content: "";
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: transparent;
    transition: background .15s;
}
input[type="radio"]:checked::before {
    background: #fff;
}

/* -- Focus ring ----------------------------------------------- */
input[type="checkbox"]:focus,
input[type="radio"]:focus {
    outline: none !important;
    border-color: var(--fz-brand);
    box-shadow: 0 0 0 3px rgba(220,20,60,.15);
}
input[type="checkbox"]:focus:not(:focus-visible),
input[type="radio"]:focus:not(:focus-visible) {
    box-shadow: none;
    border-color: #b8bfc8;
}

/* -- Disabled ------------------------------------------------- */
input[type="checkbox"]:disabled,
input[type="radio"]:disabled {
    cursor: not-allowed;
    opacity: .5;
    background: #f5f5f5;
    border-color: #d0d0d0;
}
input[type="checkbox"]:checked:disabled,
input[type="radio"]:checked:disabled {
    background: #ccc;
    border-color: #ccc;
}

/* -- Bootstrap label alignment: inline variants --------------- */
/* Override Bootstrap 3's absolute-position + padding-left pattern */
label.checkbox-inline,
label.radio-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-left: 0;
    vertical-align: middle;
}
label.checkbox-inline input[type="checkbox"],
label.radio-inline input[type="radio"] {
    position: static;
    margin: 0;
    top: auto;
}

/* -- Bootstrap label alignment: block variants ---------------- */
.checkbox label,
.radio label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 0;
}
.checkbox label input[type="checkbox"],
.radio label input[type="radio"] {
    position: static;
    margin: 0;
    top: auto;
}

/* ============================================================
   7. IBOX / PANEL TOP BORDER
   ============================================================ */

/* INSPINIA uses a 3px top border on .ibox-title derived from nav-bg.
   Switch to flex so headings and badges are reliably vertically centred
   regardless of font-size differences. */
.ibox-title {
    display: flex !important;
    align-items: center;
    flex-wrap: nowrap;
    padding-top: 8px;
    padding-bottom: 8px;
}
.ibox-title h5,
.ibox-title h4,
.ibox-title h3 {
    float: none !important;
    margin: 0 !important;
    flex: 1 1 auto;
    line-height: 1.3;
    position: relative;
    top: 1px;
}
.ibox-title .label,
.ibox-title .badge {
    float: none !important;
    flex-shrink: 0;
    margin-left: 8px;
    top: 2px; /* override global top:3px  -  in flex row, badge text aligns with h5 text at top:2px (measured 0.2px diff vs 1.2px diff at 3px) */
}
.ibox-title .ibox-tools {
    float: none !important;
    flex-shrink: 0;
    margin-left: 8px;
}

/* ============================================================
   8. PROGRESS BARS
   ============================================================ */

.progress-bar,
.progress-bar-success {
    background-color: var(--fz-brand) !important;
}

/* ============================================================
   9. PACE PROGRESS BAR
   ============================================================ */

.pace .pace-progress {
    background: var(--fz-brand) !important;
}

.pace .pace-activity {
    border-top-color:  var(--fz-brand) !important;
    border-left-color: var(--fz-brand) !important;
}

/* ============================================================
  10. LOGIN / PUBLIC PAGE CHROME
   ============================================================ */

/* Logo mark on login / forgot-password / error pages  -  image container */
.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    padding: 0;
}

/* ============================================================
  11. FOCUS / OUTLINE RESET
   ============================================================ */

/**
 * Remove the black browser outline on clicked (mouse) interactive elements.
 * Bootstrap 3 does not suppress :active outlines by default.
 * Keyboard :focus is preserved for accessibility.
 */
a:focus, a:active,
button:focus, button:active,
.btn:focus, .btn:active, .btn.active,
.nav > li > a:focus, .nav > li > a:active {
    outline: none !important;
    box-shadow: none !important;
}

/* ============================================================
  12. COMPANY FAVICON
   ============================================================ */

/**
 * Company favicon from Google S2  -  size is controlled by the width/height HTML
 * attributes set in PHP (fz_crm_company_favicon_img / fz_crm_company_avatar_html).
 * Do NOT set width/height here  -  inline styles on the element take precedence.
 */
.fz-company-favicon {
    vertical-align: middle;
    margin-right: 6px;
    border-radius: 3px;
    display: inline-block;
    flex-shrink: 0;
}

/**
 * Fallback FA icon shown when no domain is available.
 */
.fz-company-favicon-fallback {
    font-size: 20px;
    line-height: 1;
    vertical-align: middle;
    margin-right: 6px;
    color: #adb5bd;
    display: inline-block;
    flex-shrink: 0;
}

/* ============================================================
  13. NOTE / ACTIVITY TIMELINE ENTRIES
   ============================================================ */

/**
 * Base timeline entry  -  INSPINIA's .inspinia-timeline uses fixed colours;
 * we need state-specific left borders that the theme does not provide.
 */
.fz-sl-entry {
    padding-left: 10px;
    border-left: 3px solid transparent;
    margin-bottom: 12px;
    transition: border-color 0.15s ease;
}

/** Pinned note  -  amber left border */
.fz-sl-entry.is-pinned {
    border-left-color: #f59e0b;
    background-color: rgba(245, 158, 11, 0.04);
    border-radius: 0 4px 4px 0;
}

/** Internal note  -  grey left border (manager-only annotations) */
.fz-sl-entry.is-internal {
    border-left-color: #94a3b8;
    background-color: rgba(148, 163, 184, 0.05);
    border-radius: 0 4px 4px 0;
}

/* ============================================================
  14. AVATAR INITIALS BADGE
   ============================================================ */

/**
 * Coloured initials badge generated by fz_crm_avatar_html().
 * Dimensions are set inline by PHP; this class provides the base.
 */
.fz-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.03em;
    flex-shrink: 0;
    user-select: none;
    -webkit-user-select: none;
}

/* Override any green-toned avatar slots that come from the palette */
.fz-avatar[data-colour="green"],
.fz-avatar[style*="#1ab394"],
.fz-avatar[style*="#27ae60"],
.fz-avatar[style*="#2ecc71"] {
    background: var(--fz-brand) !important;
}

/* ============================================================
  15. PIPELINE STAGE BADGES
   ============================================================ */

/* Stage label colours  -  used on Kanban cards, lead lists, canvas nodes */
.stage-new            { background: #6366f1; color: #fff; }
.stage-contacted      { background: #3b82f6; color: #fff; }
.stage-replied        { background: #8b5cf6; color: #fff; }
.stage-meeting,
.stage-meeting_booked { background: #f59e0b; color: #fff; }
.stage-proposal,
.stage-proposal_sent  { background: #14b8a6; color: #fff; }
.stage-negotiating    { background: #f97316; color: #fff; }
.stage-won            { background: #22c55e; color: #fff; }
.stage-lost           { background: #ef4444; color: #fff; }
.stage-archived       { background: #94a3b8; color: #fff; }
.stage-reopened       { background: #06b6d4; color: #fff; }

/* Kanban agile-list card accent top border */
.agile-list li.stage-new            { border-top: 4px solid #6366f1; }
.agile-list li.stage-contacted      { border-top: 4px solid #3b82f6; }
.agile-list li.stage-replied        { border-top: 4px solid #8b5cf6; }
.agile-list li.stage-meeting,
.agile-list li.stage-meeting_booked { border-top: 4px solid #f59e0b; }
.agile-list li.stage-proposal,
.agile-list li.stage-proposal_sent  { border-top: 4px solid #14b8a6; }
.agile-list li.stage-negotiating    { border-top: 4px solid #f97316; }
.agile-list li.stage-won            { border-top: 4px solid #22c55e; }
.agile-list li.stage-lost           { border-top: 4px solid #ef4444; }
.agile-list li.stage-reopened       { border-top: 4px solid #06b6d4; }

/* ============================================================
  16. UTILITY
   ============================================================ */

/** Em-dash placeholder for empty/null values rendered by fz_crm_money() */
.fz-empty {
    color: #adb5bd;
}

/** Inline score badge (0â€“100) */
.fz-score-badge {
    display: inline-block;
    min-width: 32px;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    background: #e2e8f0;
    color: #475569;
}
.fz-score-badge.score-high   { background: #dcfce7; color: #166534; }
.fz-score-badge.score-medium { background: #fef9c3; color: #854d0e; }
.fz-score-badge.score-low    { background: #fee2e2; color: #991b1b; }

/* ============================================================
   17. STEP 4  -  CONTACTS & COMPANIES
   ============================================================ */

/* â”€â”€ Persona chip â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fz-persona-chip {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

/* â”€â”€ ZeroBounce / email verification badge â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fz-zb--valid       { color: #22c55e; font-size: 14px; }
.fz-zb--invalid     { color: #ef4444; font-size: 14px; }
.fz-zb--catchall    { color: #f59e0b; font-size: 14px; }
.fz-zb--spam        { color: #dc2626; font-size: 14px; }
.fz-zb--unverified  { color: #cbd5e1; font-size: 14px; }

/* â”€â”€ Do Not Contact badge â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fz-dnc-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    background: #fee2e2;
    color: #991b1b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    border: 1px solid #fca5a5;
}

/* â”€â”€ Signal score chip â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fz-signal-chip {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    color: #fff;
}
.fz-signal--high { background: #22c55e; }
.fz-signal--warm { background: #f59e0b; }
.fz-signal--low  { background: #94a3b8; }

/* â”€â”€ Signal Intelligence section â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fz-signal-flag-row {
    display: flex;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #f1f3f4;
    gap: 12px;
}
.fz-signal-flag-row:last-child { border-bottom: none; }

.fz-signal-flag-toggle {
    flex: 0 0 auto;
    margin-top: 2px;
}
.fz-signal-flag-body { flex: 1 1 auto; }
.fz-signal-flag-label {
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}
.fz-signal-flag-label .fz-flag-tooltip {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 400;
    margin-left: 4px;
    cursor: help;
}
.fz-signal-flag-note {
    margin-top: 5px;
}

/* â”€â”€ ICP Intelligence section â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fz-icp-section .form-group { margin-bottom: 10px; }

/* â”€â”€ Additional Details panel â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fz-details-group { margin-bottom: 18px; }
.fz-details-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}
.fz-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 4px;
    background: #f8fafc;
    margin-bottom: 4px;
    font-size: 13px;
    transition: background 0.15s;
}
.fz-detail-item:hover { background: #f1f5f9; }
.fz-detail-item .fz-detail-label {
    flex: 1 1 0;
    min-width: 0;
    color: #64748b;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fz-detail-item .fz-detail-value {
    flex: 1 1 0;
    min-width: 0;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fz-detail-item .fz-detail-primary {
    color: #f59e0b;
    font-size: 12px;
    flex: 0 0 auto;
    cursor: pointer;
    title: "Set as primary";
}
.fz-detail-item .fz-detail-primary.is-primary { color: #f59e0b; }
.fz-detail-item .fz-detail-primary:not(.is-primary) { color: #cbd5e1; }
.fz-detail-item .fz-detail-actions {
    display: flex;
    gap: 6px;
    flex: 0 0 auto;
    visibility: hidden;
    pointer-events: none;
}
.fz-detail-item:hover .fz-detail-actions {
    visibility: visible;
    pointer-events: auto;
}
.fz-detail-item .fz-detail-actions a {
    color: #94a3b8;
    font-size: 13px;
}
.fz-detail-item .fz-detail-actions a:hover { color: var(--fz-brand); }

/* â”€â”€ Company/Contact profile header â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fz-entity-header {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 20px 0 16px;
}
.fz-entity-header-meta { flex: 1; }
.fz-entity-header-meta h2 {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 700;
}
.fz-entity-header-meta .fz-entity-sub {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 8px;
}
.fz-entity-header-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* â”€â”€ Company favicon in lists â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fz-company-favicon,
.fz-company-logo {
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
    flex-shrink: 0;
}
.fz-company-favicon-fallback { color: #94a3b8; margin-right: 6px; }

/* â”€â”€ Linked records table â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fz-linked-records { margin-top: 0; }
.fz-linked-records td { vertical-align: middle; }

/* â”€â”€ Side-panel linked entity sections â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fz-panel-linked-section {
    background: transparent;
    border: none;
    border-radius: 0;
    margin-top: 15px;
    padding: 0 14px 14px;
}
.fz-linked-section-title {
    margin: 0 -14px 12px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #676a6c;
    background: #fff;
    border-top: 3px solid var(--fz-brand);
    border-bottom: 1px solid #e7eaec;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: none;
    letter-spacing: normal;
    min-height: 40px;
}
.fz-linked-section-title .badge {
    font-size: 10px;
    background: #cbd5e0;
    color: #4a5568;
    margin-left: 2px;
}
.fz-linked-section-title .pull-right {
    margin-left: auto;
}
.fz-linked-table {
    margin: 4px 0 0;
    font-size: 12px;
    background: #fff;
    border-radius: 3px;
    overflow: hidden;
}
.fz-linked-table > thead > tr > th {
    border-bottom: 1px solid #e8ecef;
    color: #718096;
    font-weight: 600;
    padding: 5px 8px;
    background: #f1f5f9;
}
.fz-linked-table > tbody > tr > td {
    padding: 5px 8px;
    border-top: 1px solid #f1f5f9;
    vertical-align: middle;
}
.fz-linked-table > tbody > tr:first-child > td { border-top: none; }
.fz-linked-table .fz-action-cell { text-align: right; width: auto; white-space: nowrap; }
.fz-log-row-no-reply { text-align: center; }
.fz-field-error { color: #e74c3c; font-size: 11px; display: block; margin-top: 2px; }
.fz-link-search-wrap {
    margin-bottom: 8px;
}
.fz-link-company-wrap {
    display: none;
    margin: 8px 0 4px;
    padding: 0 4px;
}
.fz-link-company-select { margin-bottom: 2px; }
.fz-link-contact-wrap,
.fz-link-lead-wrap,
.fz-link-contact-company-wrap {
    display: none;
    margin: 8px 0 4px;
    padding: 0 4px;
}
.fz-link-search-results { margin-top: 4px; }

/* â”€â”€ Link-entity action buttons (brand red) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fz-link-entity-btn.btn-default {
    color: var(--fz-brand);
    border-color: var(--fz-brand);
    background: #fff;
}
.fz-link-entity-btn.btn-default:hover,
.fz-link-entity-btn.btn-default:focus {
    background: var(--fz-brand);
    border-color: var(--fz-brand-dark);
    color: #fff;
}

/* â”€â”€ Save / spinner on detail pages â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fz-detail-save-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.fz-detail-dirty-msg {
    font-size: 12px;
    color: #94a3b8;
    display: none;
}
.fz-detail-dirty-msg.visible { display: inline; color: #f59e0b; }

/* â”€â”€ Contact list avatar cell â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fz-contact-name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}
.fz-contact-name-cell .fz-name-meta { line-height: 1.3; }
.fz-contact-name-cell .fz-name-meta a { font-weight: 600; }
.fz-contact-name-cell .fz-name-meta small { color: #94a3b8; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   STEP 5  -  Leads / Kanban Board
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Kanban layout â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fz-kanban-wrap {
    overflow-x: auto;
    padding-bottom: 12px;
}
.fz-kanban-board {
    display: flex;
    gap: 12px;
    min-width: max-content;
    align-items: flex-start;
}
.fz-kanban-col {
    width: 240px;
    flex-shrink: 0;
}
.fz-kanban-ibox {
    margin-bottom: 0;
}
.fz-kanban-header {
    border-radius: 4px 4px 0 0;
}
.fz-kanban-header h5 {
    color: #fff !important;
    font-weight: 600;
    font-size: 13px;
    margin: 0;
    flex: 1;
}
.fz-kanban-count {
    background: rgba(255,255,255,0.25);
    color: #fff;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 10px;
}
.fz-kanban-body {
    min-height: 80px;
    padding: 6px !important;
}

.fz-kanban-outer {
    position: relative;
}
.fz-kanban-scroll-top {
    overflow-x: auto;
    overflow-y: hidden;
    height: 20px;
    margin-bottom: 6px;
    /* Firefox scrollbar styling */
    scrollbar-width: auto;
    scrollbar-color: #a0a0a0 #e6e6e6;
}
.fz-kanban-scroll-top .fz-kanban-scroll-inner {
    height: 1px;
}
.fz-kanban-scroll-top::-webkit-scrollbar {
    height: 12px;
}
.fz-kanban-scroll-top::-webkit-scrollbar-track {
    background: #e6e6e6;
    border-radius: 6px;
}
.fz-kanban-scroll-top::-webkit-scrollbar-thumb {
    background: #a0a0a0;
    border-radius: 6px;
    transition: background 0.2s ease;
}
.fz-kanban-scroll-top::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* ---- DataTable pagination spacing ---- */
.dataTables_paginate { padding-top: 10px; }
.dataTables_info { padding-top: 12px; }

/* ---- DataTable action cell (never wrap) ---- */
td.fz-action-cell { white-space: nowrap; }

/* ---- Agile cards ---- */
.fz-agile-list {
    list-style: none;
    margin: 0;
    padding: 4px 0;
    min-height: 60px;
}
.fz-agile-item {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-left: 3px solid var(--stage-clr, #e2e8f0);
    border-radius: 7px;
    padding: 10px 26px 10px 12px;
    margin-bottom: 8px;
    cursor: grab;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.fz-agile-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.10);
    border-color: #d1d5db;
    z-index: 2;
}
.fz-agile-item:active { cursor: grabbing; transform: translateY(0); }
/* Drag grip */
.fz-drag-dots {
    position: absolute;
    top: 10px;
    right: 9px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5px;
    width: 10px;
    opacity: 0.18;
    transition: opacity 0.15s;
    pointer-events: none;
}
.fz-drag-dots span {
    display: block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #64748b;
}
.fz-agile-item:hover .fz-drag-dots { opacity: 0.45; }
.fz-agile-detail { pointer-events: none; }
.fz-agile-item a  { pointer-events: auto; }
/* Title row */
.fz-agile-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 3px;
}
.fz-agile-title {
    font-weight: 600;
    font-size: 13px;
    line-height: 1.35;
    color: #1e293b;
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fz-agile-title a { color: inherit; text-decoration: none; }
.fz-agile-title a:hover { color: var(--stage-clr, #dc143c); }
/* Company */
.fz-agile-company {
    font-size: 11.5px;
    color: #64748b;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 4px;
}
.fz-agile-company a { color: #64748b; text-decoration: none; }
.fz-agile-company a:hover { color: var(--stage-clr, #dc143c); }
/* Meta row */
.fz-agile-meta {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 5px;
}
.fz-agile-value {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #f0fdf4;
    color: #16a34a;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
    border: 1px solid #bbf7d0;
}
.fz-agile-date {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #f8fafc;
    color: #64748b;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}
/* Footer: rep avatar */
.fz-agile-footer {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 7px;
    padding-top: 6px;
    border-top: 1px solid #f1f5f9;
}
.fz-agile-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--stage-clr, #e2e8f0);
    color: #fff;
    font-size: 8px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}
.fz-agile-rep-name {
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fz-kanban-placeholder {
    border: 2px dashed var(--stage-clr, #dc143c);
    background: rgba(0,0,0,0.02);
    height: 60px;
    border-radius: 7px;
    margin-bottom: 8px;
    list-style: none;
}
.fz-kanban-empty {
    color: #9ca3af;
    text-align: center;
    padding: 12px 8px;
    font-size: 12px;
}

/* â”€â”€ Score chips â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fz-score-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    line-height: 1.5;
}
.fz-score-high  { background: #22c55e; }
.fz-score-med   { background: #f59e0b; color: #fff; }
.fz-score-low   { background: #94a3b8; }

/* â”€â”€ Pipeline forecast table â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fz-forecast-table { font-size: 13px; border-collapse: separate; border-spacing: 0; }
.fz-forecast-table th { background: #f8fafc; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; font-size: 11px; color: #6b7280; }
.fz-forecast-footer td { font-weight: 600; background: #f8fafc; }
.fz-forecast-month td { background: #fff0f3; color: #dc143c; }
.fz-forecast-flash { animation: fz-forecast-flash 1.4s ease-out forwards; }
@keyframes fz-forecast-flash {
    0%   { background-color: #fef9e7; }
    40%  { background-color: #fef3cd; }
    100% { background-color: transparent; }
}
.fz-value-display { font-size: 14px; }

/* Forecast row accent */
.fz-fc-row { transition: background .15s; }
.fz-fc-row:hover td { background: #f8fafc !important; }
.fz-fc-row--active > td:first-child { font-weight: 600; }

/* Stage pill badge */
.fz-stage-pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 600; letter-spacing: .25px; white-space: nowrap; }

/* Count badge in # Leads column â€” same color as stage */
.fz-fc-cnt-badge { display: inline-block; min-width: 24px; padding: 2px 7px; border-radius: 12px; color: #fff; font-size: 12px; font-weight: 700; text-align: center; line-height: 18px; }

/* Fix: panel body textareas must not be collapsed to input height */
.fz-panel-body textarea.form-control,
.fz-panel-body textarea.form-control.input-sm { height: auto !important; min-height: 90px; }

/* Probability progress bar */
.fz-prob-bar { position: relative; background: #f0f4f8; border-radius: 8px; height: 20px; min-width: 90px; overflow: hidden; display: flex; align-items: center; }
.fz-prob-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; opacity: .22; transition: width .4s ease; }
.fz-prob-label { position: relative; width: 100%; text-align: center; font-size: 11.5px; font-weight: 700; color: #374151; }

/* â”€â”€ Lead stage badges â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.label.stage-new         { background: #6366f1; }
.label.stage-contacted   { background: #3b82f6; }
.label.stage-replied     { background: #8b5cf6; }
.label.stage-meeting,
.label.stage-meeting_booked { background: #f59e0b; }
.label.stage-proposal,
.label.stage-proposal_sent  { background: #14b8a6; }
.label.stage-negotiating { background: #f97316; }
.label.stage-won         { background: #22c55e; }
.label.stage-lost        { background: #ef4444; }
.label.stage-archived    { background: #94a3b8; color: #fff; }
.label.stage-reopened    { background: #06b6d4; }

/* ── Deal type badges ──────────────────────────────────────────────*/
.label.label-deal-type-new-business,
.label.label-deal-type-renewal,
.label.label-deal-type-expansion,
.label.label-deal-type-upsell,
.label.label-deal-type-cross-sell,
.label.label-deal-type-reactivation { color: #fff; }
.label.label-deal-type-new-business { background: #3b82f6; }
.label.label-deal-type-renewal      { background: #22c55e; }
.label.label-deal-type-expansion    { background: #14b8a6; }
.label.label-deal-type-upsell       { background: #8b5cf6; }
.label.label-deal-type-cross-sell   { background: #f59e0b; }
.label.label-deal-type-reactivation { background: #06b6d4; }

/* ── Lead linked list ─────────────────────────────────────────────*/
.fz-linked-list { margin: 0; border-radius: 0; }
.fz-linked-list .list-group-item { border-left: none; border-right: none; border-top: none; }
.fz-linked-list .list-group-item:last-child { border-bottom: none; }

/* â”€â”€ Bulk-assign row selection (Step 6) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
tr.fz-row-selected td { background: #fff8f8 !important; }
#bulk-action-bar { transition: opacity .15s ease; }
.fz-rule--catch-all td:first-child { opacity: .5; }
.fz-drag-handle { color: #aaa; }
.fz-drag-handle:hover { color: #555; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   Status Log (Step 7)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* Row container */
.fz-status-log-entry {
    padding: 10px 14px;
    border-left: 3px solid transparent;
    transition: border-color 0.15s;
}

/* Pinned entries: amber left border */
.fz-status-log-entry.is-pinned {
    border-left-color: #f59e0b;
    background: #fffef5;
}

/* Internal-only entries: subtle grey background */
.fz-status-log-entry.is-internal {
    background: #f8f9fb;
}

/* Row header layout */
.fz-log-row-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    color: #555;
    margin-bottom: 4px;
}

.fz-log-type-icon {
    color: #aaa;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.fz-log-date {
    font-weight: 600;
    color: #333;
}

.fz-log-author {
    flex: 1;
}

.fz-log-age {
    font-size: 11px;
}

.fz-log-badges {
    display: inline-flex;
    gap: 3px;
}

.fz-log-actions {
    display: inline-flex;
    gap: 2px;
    opacity: 0.3;
    transition: opacity 0.15s ease;
    min-width: 0;
}

.fz-status-log-entry:hover .fz-log-actions {
    opacity: 1;
}

/* Pin button: gray when not pinned, amber when pinned */
.fz-note-pin-btn .fa-thumb-tack { color: #aaa; }
.fz-status-log-entry.is-pinned .fz-note-pin-btn .fa-thumb-tack { color: #f8ac59; }

/* Note body */
.fz-log-body {
    font-size: 13px;
    color: #444;
    line-height: 1.5;
    margin-left: 22px;
    margin-top: 2px;
}

/* Entry form (Log Activity) */
.fz-log-entry-form {
    padding: 14px 16px;
    border-bottom: 1px solid #e7eaec;
    background: #f9fafb;
}

/* Toolbar save-wrap */
.fz-detail-save-wrap {
    margin-top: 10px;
}

.fz-detail-dirty-msg {
    font-size: 12px;
    color: #f59e0b;
    margin-left: 8px;
}

/* â”€â”€ Section 18: SPA Loader + Content Transition (Step 7.5) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/*
 * #fz-page-loader  -  full-viewport overlay shown during every SPA page swap.
 * pointer-events:all blocks accidental clicks while content is loading.
 */
#fz-page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: all;
}

/*
 * Semi-transparent white backdrop  -  gives the "frosted" overlay effect.
 * Adjust background alpha to taste (0.65 = 65% opacity).
 */
#fz-page-loader-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.65);
}

/*
 * Spinner card  -  centred over the backdrop.
 */
#fz-page-loader-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 200px;
    z-index: 1;
}

#fz-page-loader-card .ibox {
    margin-bottom: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/*
 * #fz-spa-content  -  the swappable content region.
 * A fast opacity fade gives the impression of a smooth transition
 * without heavy layout shifts.
 */
#fz-spa-content {
    transition: opacity 0.15s ease;
}

/* â”€â”€ Rotating-plane spinner: override INSPINIA teal â†’ brand red â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#fz-page-loader .sk-spinner-rotating-plane {
    background-color: var(--fz-brand) !important;
}

/* â”€â”€ DataTables "processing" overlay  -  center above the table â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/*
 * DataTables positions .dataTables_processing via JavaScript relative to the
 * table wrapper.  Without explicit CSS it often appears at the top-left.
 * These rules centre it horizontally and vertically, add a frosted card
 * appearance, and colour the fa-spinner with the brand red.
 */
div.dataTables_processing {
    position: absolute !important;
    top:  50% !important;
    left: 50% !important;
    width: 160px !important;
    transform: translateX(-50%) translateY(-50%);
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 13px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

div.dataTables_processing i.fa-spinner {
    color: var(--fz-brand-red, #c0392b);
}

/* Email thread message cards  -  keep these from old Step 11 */
.fz-email-msg-inbound .ibox-title { background-color: #f9f9f9; }
.fz-email-msg-sent .ibox-title    { background-color: #f0f7ff; }
.fz-email-body { word-break: break-word; overflow-wrap: break-word; }
#fz-tpl-preview-content { max-height: 400px; overflow-y: auto; word-break: break-word; }

/* ============================================================
   15. Tasks (Step 9)
   ============================================================ */

/* Overdue task row highlight */
.fz-task-row.fz-task-overdue td {
    background-color: #fff8f8;
}

.fz-task-row.fz-task-overdue td:first-child {
    border-left: 3px solid #DC143C;
}

/* ============================================================
   16. Activity Timeline (Step 9)
   ============================================================ */

.fz-timeline-wrap {
    padding: 0;
}

/* INSPINIA timeline adjustments for the partial */
.fz-timeline-wrap .inspinia-timeline > ul {
    padding: 0;
    margin: 0;
}

.fz-timeline-wrap .inspinia-timeline > ul > li.fz-tl-entry {
    position: relative;
    padding: 0 0 20px 60px;
    list-style: none;
}

.fz-timeline-wrap .timeline-badge {
    position: absolute;
    left: 15px;
    top: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    color: #fff;
    font-size: 14px;
}

.fz-timeline-wrap .timeline-badge.success  { background-color: #1c84c6; }
.fz-timeline-wrap .timeline-badge.info     { background-color: #23c6c8; }
.fz-timeline-wrap .timeline-badge.primary  { background-color: #1ab394; }
.fz-timeline-wrap .timeline-badge.warning  { background-color: #f8ac59; }
.fz-timeline-wrap .timeline-badge.danger   { background-color: #ed5565; }
.fz-timeline-wrap .timeline-badge.default  { background-color: #aab2bd; }

.fz-timeline-wrap .timeline-panel {
    background: #f9f9f9;
    border: 1px solid #e7eaec;
    border-radius: 4px;
    padding: 12px 15px;
    position: relative;
}

.fz-timeline-wrap .timeline-panel:before {
    content: '';
    position: absolute;
    left: -9px;
    top: 10px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 9px solid #e7eaec;
}

.fz-timeline-wrap .timeline-panel:after {
    content: '';
    position: absolute;
    left: -8px;
    top: 11px;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-right: 8px solid #f9f9f9;
}

.fz-timeline-wrap .timeline-title {
    font-size: 13px;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fz-timeline-wrap .timeline-body p {
    margin: 0;
    font-size: 13px;
    color: #444;
    white-space: pre-wrap;
}

.fz-tl-duration {
    font-size: 12px;
    color: #888;
}

.fz-tl-actions {
    margin-top: 8px;
    text-align: right;
}

/* Connector line between entries */
.fz-timeline-wrap .inspinia-timeline > ul > li.fz-tl-entry:not(:last-child):before {
    content: '';
    position: absolute;
    left: 32px;
    top: 36px;
    bottom: 0;
    width: 2px;
    background: #e7eaec;
}

/* ============================================================================
   Step 11  -  Email Inbox (INSPINIA mailbox layout)
   ============================================================================ */

/* â”€â”€ Left file-manager nav â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* folder-list  -  INSPINIA mailbox folders */
.mailbox-content .folder-list {
    list-style: none;
    margin: 0;
    padding: 0 !important;
}

.mailbox-content .folder-list li a {
    display: block;
    padding: 12px 14px;
    border-top: 1px solid #e7eaec;
    color: #676a6c;
    font-size: 13px;
    transition: background 0.15s;
}

.mailbox-content .folder-list li:first-child a {
    border-top: none;
}

.mailbox-content .folder-list li a:hover {
    background: #f3f3f4;
    text-decoration: none;
}

.mailbox-content .folder-list li.active a,
.mailbox-content .folder-list li.active a i {
    color: #fff !important;
    background-color: var(--fz-brand);
    border-radius: 3px;
}

/* category-list  -  stage filter */
.mailbox-content .category-list {
    list-style: none;
    margin: 0;
    padding: 0 !important;
}

.mailbox-content .category-list li a {
    display: block;
    padding: 6px 10px;
    color: #676a6c;
    font-size: 13px;
    transition: background 0.15s;
}

.mailbox-content .category-list li a:hover {
    background: #f3f3f4;
    text-decoration: none;
    border-radius: 3px;
}

.mailbox-content .category-list li.active a {
    font-weight: 600;
}

/* tag-list  -  templates link */
.mailbox-content .tag-list {
    list-style: none;
    margin: 0;
    padding: 0 !important;
}

.mailbox-content .tag-list li a {
    display: block;
    padding: 6px 10px;
    color: #676a6c;
    font-size: 13px;
}

.mailbox-content .tag-list li a:hover {
    text-decoration: none;
    color: var(--fz-brand-red, #c0392b);
}

/* â”€â”€ Right mail-box area â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* DataTable inside .mail-box: reset the double-border from .table-mail */
.mail-box .dataTables_wrapper {
    padding: 0;
}

.mail-box table.table-mail {
    margin-bottom: 0;
}

/* Unread row */
.mail-box table.table-mail tr.unread td {
    font-weight: 700;
    background-color: #f9f9f9;
}

/* Cursor on rows */
.mail-box table.table-mail tbody tr {
    cursor: pointer;
}

/* DataTables pagination in mail-box */
.mail-box .dataTables_paginate {
    padding: 8px 10px;
}

.mail-box .dataTables_length {
    padding: 8px 10px;
}

/* Left mailbox nav column  -  ensure white background */
.col-sm-3 .ibox,
.col-sm-3 .ibox-content {
    background-color: #fff;
}

/* DataTables empty / zero-records cell  -  all tables */
td.dataTables_empty {
    text-align:     center !important;
    padding:        40px 20px !important;
    vertical-align: middle !important;
    color:          #aaa;
    font-size:      13px;
    line-height:    1.8;
}
td.dataTables_empty i.fa {
    display:       block;
    font-size:     28px;
    color:         #d0d0d0;
    margin-bottom: 8px;
}
/* Header checkbox vertical centering */
table.dataTable thead th,
table.dataTable thead td {
    vertical-align: middle;
}

/* Action toolbar top spacing */
.mail-box-header .mail-tools {
    margin-top: 10px;
}

/* Summernote editor  -  remove focus outline and normalise border */
.note-editor.note-frame {
    border: 1px solid #e5e6e7 !important;
    border-radius: 3px;
}
.note-editor.note-frame.focus,
.note-editor.note-frame:focus-within {
    border-color: #c2c2c2 !important;
    outline: none;
    box-shadow: none;
}
.note-editable:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Breathing room between toolbar and editable area in compose panel */
.fz-ecp .note-editable {
    padding-top: 8px !important;
}

/* Settings  -  Integrations page â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fz-settings-notes li {
    line-height: 1.6;
}

.fz-settings-notes li + li {
    margin-top: 8px;
}

/* â”€â”€ Email Compose Side Panel â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fz-ecp {
    position: fixed;
    top: 0;
    right: 0;
    width: 500px;
    max-width: 100vw;
    height: 100vh;
    z-index: 1065;
    background: #fff;
    box-shadow: -4px 0 32px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.fz-ecp.fz-ecp-open {
    transform: translateX(0);
}

.fz-ecp-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1060;
}

.fz-ecp-overlay.fz-ecp-open {
    display: block;
}

/* Header */
.fz-ecp-header {
    background: #2c3e50;
    color: #fff;
    padding: 0 16px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.fz-ecp-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.fz-ecp-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    transition: background 0.15s, color 0.15s;
}

.fz-ecp-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Body */
.fz-ecp-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* Field rows */
.fz-ecp-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e8e8e8;
    padding: 0 16px;
    min-height: 42px;
    gap: 10px;
    flex-shrink: 0;
}

.fz-ecp-label {
    font-size: 12px;
    color: #888;
    width: 62px;
    flex-shrink: 0;
    font-weight: 500;
}

.fz-ecp-field {
    border: none;
    outline: none;
    flex: 1;
    font-size: 13px;
    background: transparent;
    padding: 4px 0;
    color: #333;
    width: 100%;
}

.fz-ecp-field:focus {
    box-shadow: none;
}

/* To: row uses existing fz-inline-to-border */
.fz-ecp-row .fz-inline-to-border {
    flex: 1;
    border: none;
    padding: 4px 0;
    min-height: auto;
}

/* Editor area */
.fz-ecp-editor-wrap {
    flex: 1;
    padding: 12px 16px;
    border-bottom: 1px solid #e8e8e8;
    min-height: 220px;
}

/* Footer */
.fz-ecp-footer {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    background: #fafafa;
    border-top: 1px solid #e8e8e8;
}

/* Center the "Showing X to Y of Z entries" info text */
.mail-box .dataTables_info {
    text-align: center;
    padding: 8px 10px;
}

/* Inline compose  -  border around the To: chip/input area */
.fz-inline-to-border {
    border: 1px solid #e5e6e7;
    border-radius: 3px;
    padding: 4px 8px;
    background: #fff;
    min-height: 34px;
}

/* Summernote codable textarea must stay hidden unless in codeview mode */
.note-editor .note-codable {
    display: none;
}

/* Toolbar fits within compose panel â€” wrap buttons instead of overflowing */
#fz-compose-panel .note-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-left: 0;
}
#fz-compose-panel .note-editor.note-frame {
    min-width: 0;
    overflow: hidden;
}
/* AI button floats to the right of the toolbar */
#fz-compose-panel .fz-ai-btn-group {
    margin-left: auto;
}
#fz-compose-panel .fz-ai-btn {
    color: #5c6bc0;
    border-color: transparent;
    background: transparent;
}
#fz-compose-panel .fz-ai-btn:hover {
    background: #ede7f6;
    border-color: #b39ddb;
    color: #4527a0;
}

/* â”€â”€ Unread badge badge in inbox left nav â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fz-inbox-unread-badge {
    font-size: 11px;
}

/* ============================================================================
   Global Compose Panel (Gmail-style)
   ============================================================================ */

.fz-compose-panel {
    position: fixed;
    bottom: 0;
    right: 24px;
    width: 520px;
    max-width: calc(100vw - 48px);
    z-index: 1050;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -2px 24px rgba(0, 0, 0, 0.25);
    transform: translateY(100%);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    display: flex;
    flex-direction: column;
}

.fz-compose-panel.fz-compose-open {
    transform: translateY(0);
}

.fz-compose-panel.fz-compose-minimized {
    transform: translateY(calc(100% - 42px));
}

/* Header */
.fz-compose-header {
    background: #2c3e50;
    color: #fff;
    padding: 0 12px;
    height: 42px;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
}

.fz-compose-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.fz-compose-header-controls {
    display: flex;
    gap: 4px;
}

.fz-compose-ctrl {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: background 0.15s, color 0.15s;
    padding: 0;
}

.fz-compose-ctrl:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Body */
.fz-compose-body {
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    border-top: none;
    background: #fff;
}

/* Each field row */
.fz-compose-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e8e8e8;
    padding: 0 12px;
    min-height: 36px;
    gap: 8px;
}

.fz-compose-label {
    font-size: 12px;
    color: #888;
    width: 58px;
    flex-shrink: 0;
    font-weight: 500;
}

.fz-compose-field {
    border: none;
    outline: none;
    flex: 1;
    font-size: 13px;
    background: transparent;
    padding: 4px 0;
    color: #333;
    width: 100%;
}

.fz-compose-field:focus {
    box-shadow: none;
}

/* To row: chips + input together */
.fz-compose-to-wrap {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 4px 0;
    position: relative;
}

.fz-compose-to-input {
    border: none;
    outline: none;
    font-size: 13px;
    background: transparent;
    min-width: 120px;
    flex: 1;
    padding: 0;
    color: #333;
}

/* Contact chip */
.fz-contact-chip {
    display: inline-flex;
    align-items: center;
    background: #e8f0fe;
    border: 1px solid #c5d8fb;
    border-radius: 16px;
    padding: 2px 8px 2px 6px;
    font-size: 12px;
    color: #1a3c8f;
    gap: 4px;
    white-space: nowrap;
    max-width: 320px;
    overflow: hidden;
}

.fz-contact-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.fz-chip-remove {
    background: transparent;
    border: none;
    color: #5a7cc9;
    cursor: pointer;
    padding: 0;
    font-size: 10px;
    line-height: 1;
    margin-left: 2px;
    opacity: 0.7;
    transition: opacity 0.15s;
}

.fz-chip-remove:hover {
    opacity: 1;
}

/* Typeahead dropdown */
.fz-compose-typeahead {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 1060;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 4px 4px;
}

.fz-compose-typeahead li {
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.fz-compose-typeahead li:last-child {
    border-bottom: none;
}

.fz-compose-typeahead li:hover {
    background: #f5f7ff;
}

/* Summernote editor area */
.fz-compose-editor-wrap {
    padding: 0;
    min-height: 180px;
}

.fz-compose-editor-wrap .note-editor {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.fz-compose-editor-wrap .note-toolbar {
    background: #f8f9fa;
    border-bottom: 1px solid #e8e8e8;
    border-top: none;
    padding: 4px 8px;
}

.fz-compose-editor-wrap .note-editable {
    padding: 10px 12px;
    font-size: 13px;
    min-height: 150px;
}

/* Footer */
.fz-compose-footer {
    padding: 8px 12px;
    background: #f8f9fa;
    border-top: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fz-compose-status {
    font-size: 12px;
    color: #888;
}

/* Template select field style */
.fz-compose-tpl-select {
    height: auto !important;
    padding: 3px 6px !important;
    font-size: 12px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 3px !important;
    background: #fff !important;
}

/* ============================================================
   Panel  -  Emails sub-tab
   ============================================================ */
.fz-email-thread-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 0 12px;
}

.fz-email-company-compose-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fz-email-thread-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fz-email-thread-item {
    border: 1px solid #e8eaf0;
    border-radius: 4px;
    margin-bottom: 6px;
    background: #fff;
    overflow: hidden;
}

.fz-email-thread-item.fz-email-inbound {
    border-left: 3px solid #23c6c8;
}

.fz-email-thread-item.fz-email-outbound {
    border-left: 3px solid #1ab394;
}

.fz-email-thread-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    cursor: pointer;
    background: #fafbfc;
    font-size: 12px;
    flex-wrap: wrap;
}

.fz-email-thread-header:hover {
    background: #f0f2f5;
}

.fz-email-thread-dir {
    flex-shrink: 0;
}

.fz-email-thread-subject {
    font-weight: 600;
    color: #2d3748;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fz-email-thread-meta {
    color: #8a93a2;
    font-size: 11px;
    white-space: nowrap;
}

.fz-email-thread-contact {
    color: #64748b;
    font-size: 11px;
    white-space: nowrap;
}

.fz-email-thread-chevron {
    margin-left: auto;
    color: #adb5bd;
    font-size: 11px;
    flex-shrink: 0;
}

.fz-email-thread-body {
    padding: 12px 14px;
    border-top: 1px solid #e8eaf0;
    font-size: 12px;
}

.fz-email-thread-body-meta {
    color: #64748b;
    margin-bottom: 10px;
    line-height: 1.7;
}

.fz-email-thread-body-html {
    border: 1px solid #e8eaf0;
    border-radius: 3px;
    padding: 10px;
    background: #fff;
    max-height: 320px;
    overflow-y: auto;
    font-size: 12px;
    line-height: 1.5;
}

/* Email empty state */
.fz-email-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 32px;
    text-align: center;
}
.fz-email-empty-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8f4fd 0%, #d4eaf7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(35, 198, 200, 0.15);
}
.fz-email-empty-icon-wrap .fa {
    font-size: 26px;
    color: #23c6c8;
}
.fz-email-empty-title {
    font-size: 14px;
    font-weight: 600;
    color: #444;
    margin: 0 0 6px;
}
.fz-email-empty-sub {
    font-size: 12px;
    color: #999;
    margin: 0;
    max-width: 220px;
    line-height: 1.5;
}

/* Ensure Bootstrap Datepicker calendar renders above INSPINIA modals (modal-dialog z-index: 2200) */
.datepicker {
    z-index: 2300 !important;
}

/* ============================================================
   18. FILE DROP ZONE  -  import page
   ============================================================ */

.fz-file-drop-zone {
    position: relative;
    border: 2px dashed #d1dae1;
    border-radius: 8px;
    padding: 36px 24px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease;
}
.fz-file-drop-zone:hover {
    border-color: var(--fz-brand);
    background: var(--fz-brand-pale);
}
.fz-file-drop-zone.fz-dragover {
    border-color: var(--fz-brand);
    background: var(--fz-brand-pale);
    box-shadow: 0 0 0 4px rgba(220,20,60,.10);
}
/* Hidden native <input>  -  covers the entire zone for click-to-browse */
.fz-file-drop-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
    font-size: 0;
}
/* Once a file is selected the input is pushed back so the clear btn works */
.fz-file-drop-zone.fz-has-file .fz-file-drop-input {
    pointer-events: none;
}
/* Idle state icon + text */
.fz-file-drop-idle .fz-drop-icon {
    font-size: 44px;
    color: #adb5bd;
    transition: color 0.18s ease;
}
.fz-file-drop-zone:hover .fz-drop-icon,
.fz-file-drop-zone.fz-dragover .fz-drop-icon {
    color: var(--fz-brand);
}
.fz-file-drop-idle p {
    margin: 6px 0 0;
    color: #676a6c;
    font-size: 14px;
}
.fz-file-browse-link {
    color: var(--fz-brand);
    text-decoration: underline;
    cursor: pointer;
}
/* Selected-file state */
.fz-file-drop-selected {
    display: none;
}
.fz-file-drop-zone.fz-has-file {
    border-style: solid;
    border-color: #27ae60;
    background: #f4fdf7;
    cursor: default;
}
.fz-file-drop-zone.fz-has-file:hover {
    background: #f4fdf7;
    box-shadow: none;
}
.fz-file-drop-file-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 6px;
}
.fz-file-drop-file-icon.is-xlsx { color: #217346; }
.fz-file-drop-file-icon.is-csv  { color: #1a6b3c; }
/* Error state */
.fz-file-drop-zone.fz-drop-error {
    border-style: solid;
    border-color: #a94442;
    background: #fdf2f2;
}

/* â”€â”€ Import: AI Mapping Confidence â”€â”€â”€ */
.fz-ai-conf-cell {
    vertical-align: middle !important;
    text-align: center;
}
.fz-ai-conf-badge .label {
    font-size: 11px;
    padding: 3px 6px;
    display: inline-block;
    min-width: 36px;
}
tr.fz-ai-low-conf {
    background-color: #fff8e1;
}
tr.fz-ai-low-conf td {
    border-bottom-color: #ffe082;
}

/* â”€â”€ Activity Feed Component (shared: dashboard, performance report) â”€â”€â”€ */
.fz-feed-icon { width: 24px; height: 24px; border-radius: 50%; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -ms-flex-negative: 0; flex-shrink: 0; font-size: 11px; }
.fz-feed-icon--success { background: #e8f8f0; color: #27ae60; }
.fz-feed-icon--primary { background: #e8f0fb; color: #3498db; }
.fz-feed-icon--warning { background: #fef3e2; color: #e67e22; }
.fz-feed-icon--danger  { background: #fde8e8; color: #e74c3c; }
.fz-feed-icon--info    { background: #e4f6f8; color: #1a9eab; }
.fz-feed-icon--muted   { background: #f0f0f0; color: #999; }
.fz-feed-body { -webkit-box-flex: 1; -ms-flex: 1; flex: 1; min-width: 0; line-height: 1.5; }
.feed-who { font-weight: 600; }
.fz-feed-badge { font-size: 10px !important; vertical-align: middle; margin: 0 3px; }
.feed-age { margin-left: auto; white-space: nowrap; color: #aaa; font-size: 11px; -ms-flex-negative: 0; flex-shrink: 0; }

/* â”€â”€ Performance Report â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fz-perf-rep-sel-col {
    padding-top: 14px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    gap: 8px;
}
.fz-perf-rep-label {
    font-size: 12px;
    font-weight: normal;
    white-space: nowrap;
    margin: 0;
}
.fz-perf-rep-sel-col .form-control {
    max-width: 220px;
}
.fz-perf-profile-card {
    padding: 20px 24px;
}
.fz-perf-avatar {
    width: 58px;
    height: 58px;
}
.fz-perf-profile-info {
    padding-top: 6px;
}
.fz-perf-profile-name {
    margin: 0 0 3px;
    font-weight: 600;
}
.fz-perf-score-col {
    padding-top: 4px;
}
.fz-perf-score-big {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

/* KPI Cards */
.fz-perf-kpi-card .ibox-content {
    padding: 20px 20px 16px;
}
.fz-perf-kpi-badge {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 10px;
}
.fz-perf-kpi-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #aaa;
    margin-bottom: 6px;
}
.fz-perf-kpi-value {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    color: #333;
    margin-bottom: 10px;
}
.fz-perf-kpi-sub {
    font-size: 12px;
    margin-top: 2px;
}

/* Charts */
.fz-perf-chart-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.fz-perf-chart-wrap canvas {
    max-width: 100%;
    display: block;
}
.fz-perf-chart-wrap--sm {
    max-width: 220px;
    margin: 0 auto;
}
.fz-perf-chart-wrap--pie {
    max-width: 240px;
    margin: 0 auto;
}
.fz-perf-empty {
    padding: 30px 0;
    margin-bottom: 0;
}
.fz-perf-stage-legend {
    margin-top: 14px;
    text-align: left;
    font-size: 12px;
    -webkit-column-count: 2;
    column-count: 2;
    column-gap: 10px;
}
.fz-perf-stage-legend li {
    margin-bottom: 5px;
}
.fz-perf-pie-legend {
    margin-top: 12px;
    font-size: 12px;
    -webkit-column-count: 2;
    column-count: 2;
    column-gap: 10px;
}
.fz-perf-pie-legend li {
    margin-bottom: 4px;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
}
.fz-perf-doughnut-legend {
    margin-top: 10px;
    font-size: 12px;
}
.fz-perf-score-tbl {
    font-size: 12px;
    text-align: left;
    margin-top: 10px;
    margin-bottom: 0;
}
/* Recent Activity Feed */
.fz-perf-act-content { padding: 0; }
.fz-perf-feed-list { list-style: none; padding: 0 20px; margin: 0; }
.fz-perf-feed-list > li { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid #f1f3f5; font-size: 12px; }
.fz-perf-feed-list > li:last-child { border-bottom: 0; }
.fz-perf-feed-name { color: #333; font-weight: 600; }
.fz-perf-feed-ctx { font-size: 11px; color: #aaa; }
.fz-feed-entity-btn { padding: 0; font-size: inherit; vertical-align: baseline; font-weight: 600; color: #333; }
.fz-feed-entity-btn:hover,
.fz-feed-entity-btn:focus { color: #3498db; text-decoration: underline; }
.fz-dash-act-leg-item { font-size: 11px; text-align: left; padding: 1px 0; }

/* Phase 8: Pipeline 1 stat blocks (performance-report) */
.fz-perf-p1-stat {
    display: inline-block;
    text-align: center;
    min-width: 70px;
    padding: 6px 10px;
    vertical-align: top;
}
.fz-perf-p1-num {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
    color: #333;
}
.fz-perf-p1-label {
    font-size: 11px;
    margin-top: 3px;
    line-height: 1.3;
}

/* Phase 8: Company lifecycle list (dashboard) */
.fz-lifecycle-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
}
.fz-lifecycle-list > li {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #f5f5f5;
}
.fz-lifecycle-list > li:last-child { border-bottom: 0; }

/* Phase 8: Funnel table (analytics) */
.fz-an-funnel-tbl {
    margin-bottom: 0;
    font-size: 12px;
}
.fz-an-funnel-tbl td {
    padding: 4px 6px;
    vertical-align: middle;
}

/* FullCalendar overrides */
.fz-perf-fc-wrap {
    padding: 0;
}
.fz-perf-fc-wrap .fc-toolbar {
    padding: 12px 16px 0;
}
.fz-perf-fc-wrap .fc-toolbar h2 {
    font-size: 16px;
    font-weight: 600;
}
.fz-perf-fc-wrap .fc-event {
    border-radius: 3px;
    border: none;
    font-size: 11px;
    padding: 1px 4px;
    cursor: pointer;
}
.fz-perf-fc-wrap .fc-day-number {
    font-size: 12px;
}
.fz-perf-fc-wrap .fc-today {
    background: #fff1f2 !important;
}
.fz-perf-fc-wrap .fc-button {
    background: #f5f5f5;
    border: 1px solid #ddd;
    color: #555;
    -webkit-box-shadow: none;
    box-shadow: none;
    text-shadow: none;
    border-radius: 3px;
    height: 28px;
    line-height: 26px;
    padding: 0 10px;
    font-size: 12px;
}
.fz-perf-fc-wrap .fc-button:hover,
.fz-perf-fc-wrap .fc-button.fc-state-active {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
}
.fz-perf-fc-wrap .fc-state-default {
    background-image: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}
.fz-perf-fc-wrap .fc-head {
    background: #fafafa;
}
.fz-perf-fc-wrap .fc-head th {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    padding: 8px 4px;
}

/* Day Detail Modal */
.fz-perf-day-modal-body { padding: 12px 20px; min-height: 100px; max-height: 65vh; overflow-y: auto; }
.fz-perf-day-loading { padding: 12px 0; }
.fz-perf-day-content { display: none; }
.fz-perf-day-content .fz-perf-feed-list { padding: 0; }

/* Legacy heatmap classes kept (unused but harmless) */
.fz-perf-cal-wrap { overflow-x: auto; }
.fz-perf-cal-l0      { background: #ebedf0; }
.fz-perf-cal-l1      { background: #fca5a5; }
.fz-perf-cal-l2      { background: #ef4444; }
.fz-perf-cal-l3      { background: #4338ca; }

/* ==========================================================================
   RBAC v2 - Roles & Permissions UI  (Phase 12)
   ========================================================================== */

/* â”€â”€ Impersonation banner â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fz-impersonation-banner {
    background: #ef4444;
    color: #fff;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 500;
    z-index: 9999;
    position: relative;
}
.fz-impersonation-banner strong  { font-weight: 700; }
.fz-impersonation-banner .btn    { border-color: rgba(255,255,255,.6); color: #fff; }
.fz-impersonation-banner .btn:hover { background: rgba(255,255,255,.15); }

/* â”€â”€ Unified roles container â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fz-roles-container {
    display: flex;
    background: #fff;
    border: 1px solid #e7eaec;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    min-height: 540px;
    overflow: hidden;
    margin-bottom: 25px;
}

/* â”€â”€ Left nav panel â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fz-roles-panel-nav {
    width: 256px;
    flex-shrink: 0;
    border-right: 1px solid #e7eaec;
    background: #f8f9fb;
    display: flex;
    flex-direction: column;
}
.fz-roles-panel-nav__hdr {
    padding: 14px 14px 12px;
    border-bottom: 1px solid #e7eaec;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
}
.fz-roles-panel-nav__title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #888;
}

/* Role nav list */
.fz-roles-nav {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    flex: 1;
    overflow-y: auto;
}
.fz-roles-nav__loading {
    display: block;
    padding: 20px;
    text-align: center;
    color: #bbb;
    font-size: 14px;
}
.fz-roles-nav__error {
    display: block;
    padding: 12px 16px;
    font-size: 13px;
}

/* Role nav item */
.fz-role-item > a.fz-role-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background .12s;
    cursor: pointer;
}
.fz-role-item > a.fz-role-nav-link:hover {
    background: #eef0f4;
    border-left-color: #d1d5db;
    text-decoration: none;
}
.fz-role-item.active > a.fz-role-nav-link {
    background: #fff5f5;
    border-left-color: #ef4444;
}

/* Role item avatar */
.fz-ri-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #64748b;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    text-transform: uppercase;
    line-height: 1;
}
/* Avatar color palette â€” c0..c5 cycle by role id */
.fzrc--c0, .fz-ri-avatar.fzrc--c0 { background: #ef4444; }
.fzrc--c1, .fz-ri-avatar.fzrc--c1 { background: #f59e0b; }
.fzrc--c2, .fz-ri-avatar.fzrc--c2 { background: #3b82f6; }
.fzrc--c3, .fz-ri-avatar.fzrc--c3 { background: #22c55e; }
.fzrc--c4, .fz-ri-avatar.fzrc--c4 { background: #8b5cf6; }
.fzrc--c5, .fz-ri-avatar.fzrc--c5 { background: #0ea5e9; }

.fz-ri-body      { flex: 1; min-width: 0; }
.fz-ri-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
}
.fz-ri-desc {
    display: block;
    font-size: 11px;
    color: #aaa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}
.fz-ri-lock {
    font-size: 11px;
    color: #d1d5db;
    flex-shrink: 0;
}
.fz-role-item.active .fz-ri-name { color: #c0392b; }
.fz-role-item.active .fz-ri-lock { color: #ef4444; }

/* â”€â”€ Right editor panel â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fz-roles-panel-editor {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Empty state */
.fz-roles-empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ccc;
    padding: 60px 24px;
    text-align: center;
}
.fz-roles-empty-state > i    { font-size: 52px; margin-bottom: 18px; }
.fz-roles-empty-state h4     { color: #aaa; font-weight: 400; margin: 0 0 6px; }
.fz-roles-empty-state p      { font-size: 13px; max-width: 260px; color: #bbb; margin: 0; }

/* â”€â”€ Role editor bar (header of editor) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fz-role-editor-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px 16px;
    border-bottom: 1px solid #f0f2f5;
    background: #fff;
    flex-shrink: 0;
}
.fz-re-bar-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #64748b;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    font-weight: 700;
    flex-shrink: 0;
    text-transform: uppercase;
    line-height: 1;
}
.fz-re-bar-info          { flex: 1; min-width: 0; }
.fz-re-bar-info__name {
    font-size: 17px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 4px;
    line-height: 1.2;
}
.fz-re-bar-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    border-radius: 10px;
    padding: 2px 9px;
    font-weight: 600;
}
.fz-re-bar-badge--system {
    background: #fff4e5;
    color: #b45309;
}
.fz-re-bar-badge--custom {
    background: #f0fdf4;
    color: #166534;
}
.fz-re-bar-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
/* Editor bar avatar color overrides (higher specificity than .fzrc--cN alone) */
.fz-re-bar-avatar.fzrc--c0 { background: #ef4444; }
.fz-re-bar-avatar.fzrc--c1 { background: #f59e0b; }
.fz-re-bar-avatar.fzrc--c2 { background: #3b82f6; }
.fz-re-bar-avatar.fzrc--c3 { background: #22c55e; }
.fz-re-bar-avatar.fzrc--c4 { background: #8b5cf6; }
.fz-re-bar-avatar.fzrc--c5 { background: #0ea5e9; }

/* â”€â”€ Role fields section â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fz-role-fields {
    padding: 18px 24px 14px;
    border-bottom: 1px solid #f0f2f5;
    background: #fff;
    flex-shrink: 0;
}
.fz-role-fields .control-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #888;
    margin-bottom: 4px;
}

/* â”€â”€ Cap matrix header â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fz-cap-matrix-hdr {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 16px 24px 12px;
    color: #555;
    font-size: 13px;
    border-bottom: 1px solid #f0f2f5;
    background: #fff;
    flex-shrink: 0;
}
.fz-cap-matrix-hdr strong { font-size: 14px; color: #333; }
.fz-cap-matrix-hdr__sub   { font-size: 12px; color: #aaa; margin-left: 4px; }

/* â”€â”€ Cap matrix body (scrolls) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fz-cap-matrix-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px 8px;
}

/* â”€â”€ Cap group card â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fz-cap-group {
    border: 1px solid #e8ecf0;
    border-radius: 6px;
    margin-bottom: 14px;
    overflow: hidden;
}
.fz-cap-group-hdr {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    background: #f7f8fc;
    border-bottom: 1px solid #e8ecf0;
}
.fz-cap-group-hdr__icon {
    color: #ef4444;
    font-size: 12px;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}
.fz-cap-group-hdr__title {
    flex: 1;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #555;
}
.fz-cap-group-hdr__count {
    font-size: 11px;
    color: #888;
    background: #e5e7eb;
    border-radius: 10px;
    padding: 1px 8px;
    font-weight: 600;
    transition: background .15s, color .15s;
}
.fz-cap-group-hdr__count.fz-count--allon {
    background: #dcfce7;
    color: #15803d;
}
.fz-toggle-all-btn {
    font-size: 11px;
    color: #666;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 2px 9px;
    cursor: pointer;
    transition: background .12s, color .12s, border-color .12s;
    line-height: 1.5;
}
.fz-toggle-all-btn:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}

/* â”€â”€ Cap toggles grid â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fz-cap-toggles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background: #fff;
}
.fz-cap-toggle-row {
    padding: 7px 14px;
    border-bottom: 1px solid #f5f5f5;
    transition: background .08s;
}
.fz-cap-toggle-row:hover     { background: #fafbfc; }
.fz-cap-toggle-row:last-child,
.fz-cap-toggle-row:nth-last-child(2):nth-child(odd) { border-bottom: none; }

/* Toggle switch */
.fz-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 400;
    margin: 0;
    line-height: 1.4;
    width: 100%;
    user-select: none;
}
.fz-toggle-label.is-readonly { cursor: default; }
.fz-toggle-label input[type="checkbox"] { display: none; }
.fz-toggle-switch {
    width: 34px;
    height: 19px;
    background: #d1d5db;
    border-radius: 10px;
    position: relative;
    transition: background .18s;
    flex-shrink: 0;
}
.fz-toggle-switch::after {
    content: '';
    width: 13px;
    height: 13px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: left .18s;
    box-shadow: 0 1px 2px rgba(0,0,0,.18);
}
.fz-toggle-label input:checked + .fz-toggle-switch {
    background: #ef4444;
}
.fz-toggle-label input:checked + .fz-toggle-switch::after {
    left: 18px;
}
.fz-toggle-label input:disabled + .fz-toggle-switch {
    opacity: .45;
    cursor: not-allowed;
}
.fz-toggle-text {
    font-size: 13px;
    color: #666;
    transition: color .12s, font-weight .12s;
}
.fz-toggle-text--on {
    color: #333;
    font-weight: 500;
}

/* â”€â”€ Role save footer bar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fz-role-save-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background: #f8f9fb;
    border-top: 1px solid #e7eaec;
    flex-shrink: 0;
}
.fz-save-bar-note {
    font-size: 12px;
    color: #aaa;
}

/* â”€â”€ Responsive: stack on small screens â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 768px) {
    .fz-roles-container     { flex-direction: column; }
    .fz-roles-panel-nav     { width: 100%; border-right: none; border-bottom: 1px solid #e7eaec; max-height: 220px; }
    .fz-cap-toggles         { grid-template-columns: 1fr; }
}

/* â”€â”€ Override editor in users page (legacy â€“ kept for compat) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fz-override-cap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 6px 20px;
    margin-bottom: 16px;
}
.fz-override-cap-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}
.fz-override-cap-row select {
    width: auto;
    display: inline-block;
    font-size: 12px;
    padding: 2px 6px;
    height: auto;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   Users page â€“ compact action buttons & dropdown
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.fz-user-actions {
    white-space: nowrap;
    padding: 4px 6px !important;
}
.fz-action-btn-group {
    white-space: nowrap;
}
.fz-action-btn-group .btn,
.fz-action-btn-grid .btn {
    padding: 3px 8px;
    font-size: 11px;
    line-height: 1.3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    min-width: 30px;
}
.fz-action-btn-group .btn i,
.fz-action-btn-grid .btn i {
    font-size: 11px;
}

/* 2x3 grid for the 6-button Users actions */
.fz-action-btn-grid {
    display: inline-grid;
    grid-template-columns: repeat(3, auto);
    gap: 0;
    border-radius: 6px;
    overflow: hidden;
}
.fz-action-btn-grid .btn {
    border-radius: 0 !important;
    margin: -1px 0 0 -1px !important;
    z-index: 1;
}
.fz-action-btn-grid .btn-danger {
    background-color: #DC143C;
    border-color: #DC143C;
    color: #fff;
}
.fz-action-btn-grid .btn-danger:hover,
.fz-action-btn-grid .btn-danger:focus,
.fz-action-btn-grid .btn-danger:active {
    background-color: #B91130;
    border-color: #B91130;
    color: #fff;
}
.fz-action-btn-grid .btn-warning {
    background-color: #F59E0B;
    border-color: #F59E0B;
    color: #fff;
}
.fz-action-btn-grid .btn-warning:hover,
.fz-action-btn-grid .btn-warning:focus,
.fz-action-btn-grid .btn-warning:active {
    background-color: #D88E0A;
    border-color: #D88E0A;
    color: #fff;
}
.fz-action-btn-grid .btn-success {
    background-color: #1AB394;
    border-color: #1AB394;
    color: #fff;
}
.fz-action-btn-grid .btn-success:hover,
.fz-action-btn-grid .btn-success:focus,
.fz-action-btn-grid .btn-success:active {
    background-color: #15967D;
    border-color: #15967D;
    color: #fff;
}


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   Custom Permissions modal â€“ modern redesign
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.fz-perms-content {
    border-radius: 10px !important;
    overflow: hidden;
    border: none !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.18) !important;
}
.fz-perms-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
    border-bottom: none !important;
    padding: 20px 24px !important;
    min-height: auto !important;
}
.fz-perms-header .close {
    color: rgba(255,255,255,0.65) !important;
    opacity: 1 !important;
    font-size: 22px;
    text-shadow: none;
    margin-top: 0;
}
.fz-perms-header .close:hover { color: #fff !important; }
.fz-perms-header-inner {
    display: flex;
    align-items: center;
    gap: 14px;
}
.fz-perms-header-icon {
    width: 46px;
    height: 46px;
    background: rgba(255,255,255,0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.15);
}
.fz-perms-header .modal-title {
    color: #fff !important;
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 3px;
    line-height: 1.3;
}
.fz-perms-subtitle {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    margin: 0;
    line-height: 1.4;
}
.fz-perms-body {
    padding: 20px 24px !important;
    max-height: 62vh;
    overflow-y: auto;
    background: #f8fafc;
}
.fz-perms-body::-webkit-scrollbar { width: 5px; }
.fz-perms-body::-webkit-scrollbar-track { background: #f1f5f9; }
.fz-perms-body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.fz-perms-info {
    background: #eff6ff;
    border-left: 3px solid #3b82f6;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13px;
    color: #1e40af;
    margin-bottom: 18px;
    line-height: 1.5;
}
.fz-perms-info .fa { margin-right: 5px; }
.fz-perms-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.fz-perms-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.fz-perms-section-header {
    background: #f1f5f9;
    padding: 7px 14px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
}
.fz-perms-section-body { padding: 2px 0; }
.fz-perms-row {
    padding: 6px 14px;
    transition: background 0.08s;
    border-bottom: 1px solid #f1f5f9;
}
.fz-perms-row:last-child { border-bottom: none; }
.fz-perms-row:hover { background: #fafbfd; }
.fz-perms-footer {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 14px 24px !important;
    border-top: 1px solid #e2e8f0 !important;
    background: #f8fafc;
}
.fz-perms-footer-spacer { flex: 1; }

@media (max-width: 768px) {
    .fz-perms-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px 14px;
    }
    .fz-perms-footer { flex-wrap: wrap; }
    .fz-perms-footer-spacer { display: none; }
}

/* ============================================================
   ACTIVITY BADGE TOKEN SYSTEM
   Single source of truth for activity badge background colours.
   Add a .fz-act-{action_key} rule here for each new action type.
   Used by: Dashboard Activity Feed (JS) + Activities / Audit Log (PHP).
   ============================================================ */

/* â”€â”€ CRUD â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fz-act-create  { background-color: #1ab394; color: #fff; }  /* green  */
.fz-act-update  { background-color: #1c84c6; color: #fff; }  /* blue   */
.fz-act-delete  { background-color: #ed5565; color: #fff; }  /* red    */
.fz-act-restore { background-color: #1ab394; color: #fff; }  /* green  */
.fz-act-archive { background-color: #f8ac59; color: #fff; }  /* orange */

/* â”€â”€ Lead / contact lifecycle â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fz-act-stage_change { background-color: #23c6c8; color: #fff; }  /* teal   */
.fz-act-assign       { background-color: #f8ac59; color: #fff; }  /* orange */
.fz-act-deactivate   { background-color: #ed5565; color: #fff; }  /* red    */
.fz-act-reactivate   { background-color: #1ab394; color: #fff; }  /* green  */
.fz-act-move         { background-color: #23c6c8; color: #fff; }  /* teal   */
.fz-act-unsubscribed { background-color: #f8ac59; color: #fff; }  /* orange */

/* â”€â”€ Notes â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fz-act-note_add    { background-color: #23c6c8; color: #fff; }   /* teal  */
.fz-act-note_edit   { background-color: #1c84c6; color: #fff; }   /* blue  */
.fz-act-note_delete { background-color: #ed5565; color: #fff; }   /* red   */

/* â”€â”€ Email â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fz-act-email_sent { background-color: #1c84c6; color: #fff; }    /* blue  */

/* â”€â”€ Relationships â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fz-act-link   { background-color: #23c6c8; color: #fff; }        /* teal   */
.fz-act-unlink { background-color: #f8ac59; color: #fff; }        /* orange */

/* â”€â”€ Auth / session â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fz-act-login_success     { background-color: #1ab394; color: #fff; }  /* green  */
.fz-act-login_failed      { background-color: #ed5565; color: #fff; }  /* red    */
.fz-act-logout            { background-color: #f8ac59; color: #fff; }  /* orange */
.fz-act-impersonate_start { background-color: #23c6c8; color: #fff; }  /* teal   */
.fz-act-impersonate_end   { background-color: #f8ac59; color: #fff; }  /* orange */

/* -- Global Search - INSPINIA navbar-form-custom style (Phase 5.0) ----------- */
.fz-global-search-form {
    position: relative;
}
.fz-global-search-form .form-control {
    width: 280px;
    border-radius: 20px !important;
    height: 32px;
    font-size: 12px;
    border-color: #ddd;
}
.fz-search-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 340px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
    z-index: 9999;
    max-height: 420px;
    overflow-y: auto;
}
.fz-search-group { padding: 6px 0; }
.fz-search-group + .fz-search-group { border-top: 1px solid #f0f0f0; }
.fz-search-group-label {
    padding: 4px 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #aaa;
    letter-spacing: .5px;
}
.fz-search-result-item {
    display: flex;
    align-items: center;
    padding: 7px 12px;
    text-decoration: none;
    color: #333;
    gap: 10px;
}
.fz-search-result-item:hover { background: #f7f9fc; text-decoration: none; }
.fz-search-result-icon { color: #999; width: 14px; flex-shrink: 0; }
.fz-search-result-meta { display: flex; flex-direction: column; overflow: hidden; }
.fz-search-result-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fz-search-result-sub  { font-size: 11px; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fz-search-no-results  { padding: 14px 12px; font-size: 13px; color: #888; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   Dashboard â€“ KPI tiles, task feed, activity feed
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.kpi-tile .ibox-content h1 { font-size: 2.2em; margin: 0 0 4px; line-height: 1; }
.kpi-tile .kpi-loading { font-size: 1.8em; color: #d4d4d4; }
.kpi-label { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: #9ca3af; }
.fz-task-item { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: flex-start; -ms-flex-align: flex-start; align-items: flex-start; gap: 8px; padding: 7px 0; border-bottom: 1px solid #f1f3f5; }
.fz-task-item:last-child { border-bottom: 0; }
.fz-task-icon { width: 18px; text-align: center; padding-top: 1px; color: #888; -ms-flex-negative: 0; flex-shrink: 0; }
.fz-task-body { -webkit-box-flex: 1; -ms-flex: 1; flex: 1; min-width: 0; }
.fz-task-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fz-task-meta  { font-size: 11px; color: #aaa; margin-top: 1px; }
.fz-task-overdue .fz-task-icon { color: #ed5565; }
.fz-complete-btn { padding: 1px 7px; font-size: 11px; border-radius: 3px; -ms-flex-negative: 0; flex-shrink: 0; }
#fz-feed-list { list-style: none; padding: 0; margin: 0; }
#fz-feed-list li { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid #f1f3f5; font-size: 12px; }
#fz-feed-list li:last-child { border-bottom: 0; }
.fz-stale-num { font-size: 2.4em; font-weight: 700; color: #ed5565; line-height: 1; }
#fz-wl-chart  { display: block; width: 100%; }
.fz-primary-star { font-size: 10px; margin-left: 3px; vertical-align: middle; }

/* Company tier badges — consistent across all views */
.label-tier-a, .badge-tier-a { background-color: #22c55e !important; color: #fff !important; }
.label-tier-b, .badge-tier-b { background-color: #3b82f6 !important; color: #fff !important; }
.label-tier-c, .badge-tier-c { background-color: #f59e0b !important; color: #fff !important; }

/* Count badges in ibox-title headings — use accent blue instead of gray */
.ibox-title h5 .badge { background-color: #1c84c6; color: #fff; }

/* =============================================================================
   Sidebar – Pipeline workflow section labels (Phase 5.0)
   ============================================================================= */
.nav.metismenu > li.fz-nav-section {
    padding: 18px 20px 4px;
    pointer-events: none;
    cursor: default;
}
.nav.metismenu > li.fz-nav-section:first-child { padding-top: 8px; }
.fz-nav-section-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .9px;
    text-transform: uppercase;
    color: rgba(255,255,255,.35);
    white-space: nowrap;
}
.fz-nav-section-label .fa { font-size: 9px; opacity: .7; }
/* Hide section labels in mini-navbar (icon-only) mode */
.mini-navbar .fz-nav-section-label .nav-label { display: none; }
.mini-navbar .nav.metismenu > li.fz-nav-section { padding: 10px 0 2px; }

/* =============================================================================
   Edit Panel v3 – Entity header operational workspace (Phase 5.0)
   ============================================================================= */
.fz-panel-type-tabs {
    display: flex;
    flex: 1;
    overflow: hidden;
    gap: 1px;
}
.fz-tab-btn .fz-tab-label { margin-left: 4px; }
/* Slightly smaller tab labels on small panels */
@media (max-width: 420px) {
    .fz-tab-btn .fz-tab-label { display: none; }
}

/* Entity header strip – shown when entity is loaded */
.fz-panel-entity-hdr {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px 10px;
    background: #f7f9fc;
    border-bottom: 1px solid #e7eaee;
    min-height: 54px;
}
.fz-peh-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #DC143C;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    user-select: none;
}
.fz-peh-avatar[data-type="company"] { background: #2a6496; }
.fz-peh-avatar[data-type="contact"] { background: #3c763d; }
.fz-peh-avatar[data-type="deal"]    { background: #DC143C; }
.fz-peh-info {
    flex: 1;
    min-width: 0;
}
.fz-peh-name {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}
.fz-peh-meta {
    font-size: 11px;
    color: #888;
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.fz-peh-meta .label {
    font-size: 10px;
    font-weight: 600;
    vertical-align: middle;
}
.fz-peh-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
    align-items: center;
}
.fz-peh-actions .btn-xs {
    padding: 2px 7px;
    font-size: 11px;
    border-radius: 3px;
}

/* =============================================================================
   Entity history – timeline-style rendering (Phase 5.0)
   ============================================================================= */
.fz-history-timeline {
    list-style: none;
    padding: 12px 0 0;
    margin: 0;
    position: relative;
}
.fz-history-timeline::before {
    content: '';
    position: absolute;
    left: 27px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #eaecef;
}
.fz-hl-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0 14px 14px;
    position: relative;
}
.fz-hl-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e9ecef;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
    z-index: 1;
    border: 2px solid #fff;
    margin-top: 2px;
}
/* Color variants by event type */
.fz-hl-stage    .fz-hl-icon { background: #d4edda; color: #155724; }
.fz-hl-note     .fz-hl-icon { background: #fff3cd; color: #856404; }
.fz-hl-email    .fz-hl-icon { background: #cce5ff; color: #004085; }
.fz-hl-task     .fz-hl-icon { background: #e2d9f3; color: #5a1e8a; }
.fz-hl-done     .fz-hl-icon { background: #d1ecf1; color: #0c5460; }
.fz-hl-create   .fz-hl-icon { background: #DC143C; color: #fff; }
.fz-hl-assign   .fz-hl-icon { background: #e8d5f5; color: #6f1d80; }
.fz-hl-edit     .fz-hl-icon { background: #fce8c3; color: #7d4700; }
.fz-hl-default  .fz-hl-icon { background: #e9ecef; color: #555; }

.fz-hl-body { flex: 1; min-width: 0; }
.fz-hl-header {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: wrap;
    line-height: 1.3;
}
.fz-hl-who  { font-weight: 700; font-size: 12px; color: #333; }
.fz-hl-verb { font-size: 12px; color: #555; }
.fz-hl-age  {
    font-size: 10px;
    color: #aaa;
    margin-left: auto;
    white-space: nowrap;
    padding-left: 6px;
}
.fz-hl-value {
    font-size: 11px;
    color: #666;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 3px;
    padding: 4px 8px;
    margin-top: 5px;
    word-break: break-word;
}
.fz-history-empty {
    text-align: center;
    padding: 36px 20px;
    color: #aaa;
}
.fz-history-empty .fa { display: block; margin-bottom: 8px; }

/* ─── Enrichment History Section (Phase #33) ─────────────────────────────── */
.fz-eh-header .fz-eh-count-badge {
    display: inline-block;
    min-width: 18px;
    padding: 1px 5px;
    font-size: 10px;
    font-weight: 700;
    line-height: 14px;
    color: #fff;
    background: var(--fz-brand, #DC143C);
    border-radius: 9px;
    margin-left: 6px;
    vertical-align: middle;
}
.fz-eh-timeline .fz-hl-item { padding-bottom: 12px; }
.fz-eh-fields {
    margin-top: 6px;
}
.fz-eh-field-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
    padding: 3px 6px;
    font-size: 11px;
}
.fz-eh-field-name {
    font-weight: 600;
    color: #555;
    min-width: 110px;
    flex-shrink: 0;
}
.fz-eh-old {
    color: #a94442;
    background: #f2dede;
    border-radius: 2px;
    padding: 1px 5px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fz-eh-arrow {
    color: #aaa;
    font-size: 10px;
}
.fz-eh-new {
    color: #3c763d;
    background: #dff0d8;
    border-radius: 2px;
    padding: 1px 5px;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fz-eh-body .fz-eh-load-more { margin-bottom: 4px; }

/* ══════════════════════════════════════════════════════════════════════════
   § Enrichment Control Center  (.ec-*)
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Company select (native <select>) ────────────────────────────────────── */
#ec-play-select { height: 40px; font-size: 13px; border-radius: 4px; border: 1px solid #e5e6e7; background: #fff; cursor: pointer; }
#ec-play-select:focus { border-color: #1ab394; box-shadow: 0 0 0 2px rgba(26,179,148,.15); }

/* ── Playground header strip ───────────────────────────────────────────── */
.ec-play-hdr {
    background: linear-gradient(135deg, #1ab394 0%, #1896a0 100%);
    color: #fff; padding: 16px 20px; border-radius: 4px 4px 0 0;
    display: flex; align-items: center; gap: 14px;
}
.ec-play-hdr-icon {
    width: 44px; height: 44px; background: rgba(255,255,255,.2);
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
}
.ec-play-hdr-text h4 { margin: 0 0 2px; font-size: 16px; font-weight: 700; }
.ec-play-hdr-text p  { margin: 0; font-size: 11px; opacity: .85; }
.ec-play-hdr-badge {
    margin-left: auto; background: rgba(255,255,255,.2); border-radius: 20px;
    padding: 4px 12px; font-size: 11px; font-weight: 600; white-space: nowrap;
}

/* ── Playground empty / loading ────────────────────────────────────────── */
.ec-play-empty {
    text-align: center; padding: 40px 20px; color: #aaa;
}
.ec-play-empty .ec-pe-icon { font-size: 48px; margin-bottom: 12px; opacity: .35; }
.ec-play-empty h4 { font-size: 15px; color: #888; margin: 0 0 6px; }
.ec-play-empty p  { font-size: 12px; color: #bbb; margin: 0; }
.ec-play-loading  { text-align: center; padding: 40px 20px; color: #1ab394; }
.ec-play-loading i { font-size: 36px; }
.ec-play-loading p { margin-top: 10px; font-size: 13px; color: #777; }

/* ── Results summary bar ───────────────────────────────────────────────── */
.ec-summary-bar {
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
    background: #f8fffe; border: 1px solid #d0ece8;
    border-radius: 4px; padding: 10px 16px; margin-bottom: 14px;
    font-size: 13px;
}
.ec-sum-item { display: flex; align-items: center; gap: 5px; }
.ec-sum-note { margin-left: auto; font-size: 11px; color: #999; display: flex; align-items: center; gap: 4px; }

/* ── Result tabs ───────────────────────────────────────────────────────── */
.ec-tab-content { padding: 16px 0; }

/* ── Field grid ────────────────────────────────────────────────────────── */
.ec-field-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
@media (max-width: 1200px) { .ec-field-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px)  { .ec-field-grid { grid-template-columns: 1fr; } }
.ec-field-card {
    border: 1px solid #e5e6e7; border-radius: 4px; padding: 10px 12px; background: #fff;
}
.ec-field-card.ec-fc-changed { border-left: 3px solid #f8ac59; }
.ec-fc-label { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: #aaa; margin-bottom: 4px; }
.ec-fc-value { font-size: 13px; font-weight: 600; color: #333; word-break: break-word; }
.ec-fc-value a { color: #1c84c6; }
.ec-fc-prev  { font-size: 10px; color: #e8a838; margin-top: 4px; }

/* ── Contact grid ──────────────────────────────────────────────────────── */
.ec-contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 1200px) { .ec-contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px)  { .ec-contact-grid { grid-template-columns: 1fr; } }
.ec-cc {
    border: 1px solid #e5e6e7; border-radius: 4px; padding: 12px; background: #fff;
}
.ec-cc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ec-cc-av {
    width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0;
    background: #1c84c6; color: #fff; font-size: 14px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}
.ec-cc-meta { flex: 1; font-size: 13px; }
.ec-cc-det  { font-size: 12px; color: #666; margin-bottom: 3px; display: flex; align-items: center; gap: 5px; }
.ec-cc-det a { color: #1c84c6; }
.ec-cc-footer { margin-top: 8px; padding-top: 8px; border-top: 1px solid #f3f3f3; }

/* ── DB Preview tab ────────────────────────────────────────────────────── */
.ec-db-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.ec-db-table th { background: #f9f9f9; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; color: #777; border-bottom: 2px solid #e5e6e7; padding: 8px 10px; text-align: left; }
.ec-db-table td { border-bottom: 1px solid #f0f0f0; padding: 8px 10px; font-size: 12px; color: #333; }
.ec-db-table td:first-child { font-family: Consolas, monospace; font-size: 11px; color: #1c84c6; font-weight: 600; }
.ec-db-table tr:hover td { background: #fafbff; }
.ec-db-table .ec-db-section td { background: #f0f4ff !important; font-weight: 700; color: #1c84c6; font-family: inherit; letter-spacing: .2px; padding: 10px; border-bottom: 2px solid #d1d9f0; }
.ec-db-hdr { font-size: 13px; font-weight: 700; color: #333; padding: 14px 0 6px 0; margin: 0; }
.ec-db-hdr i { color: #1ab394; margin-right: 6px; }
.ec-db-contact-divider { margin: 20px 0 0 0; padding: 10px 0 0 0; border-top: 2px solid #e5e6e7; }
.ec-db-contact-divider strong { color: #555; }

/* ── Source table ──────────────────────────────────────────────────────── */
.ec-src-table th { font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: #aaa; }

/* ── Raw JSON ──────────────────────────────────────────────────────────── */
.ec-raw-pre {
    background: #1e2433; color: #abb2bf; font-size: 11px; line-height: 1.6;
    font-family: Consolas, 'Fira Code', monospace;
    border-radius: 4px; padding: 16px; max-height: 480px; overflow: auto; margin: 0; white-space: pre;
}

/* ── Progress bar ──────────────────────────────────────────────────────── */
.ec-bar-fill {
    height: 100%; border-radius: 4px;
    background: linear-gradient(90deg, #1ab394, #23c6c8);
    transition: width .6s ease;
}
.ec-bar-fill.pct-full    { background: linear-gradient(90deg, #1c84c6, #23c6c8); }
.ec-bar-fill.pct-partial { background: linear-gradient(90deg, #f8ac59, #ed5565); }

/* ── Round info dl ─────────────────────────────────────────────────────── */
.ec-round-dl { display: grid; grid-template-columns: 100px 1fr; row-gap: 6px; font-size: 12px; margin-bottom: 0; }
.ec-round-dl dt { color: #aaa; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; line-height: 1.6; }
.ec-round-dl dd { color: #333; font-weight: 600; margin: 0; line-height: 1.6; }

/* ── Intelligence heading ──────────────────────────────────────────────── */
.ec-intel-heading { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: #aaa; font-weight: 600; margin: 0 0 8px; }


/* ═══════════════════════════════════════════════════════════════════════════
   PIPELINE IDENTITY BANNERS  (Phase 5 · Round 3)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Shared banner base ─────────────────────────────────────────────────── */
.fz-pipeline-banner {
    display: block;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 0;
}
.fz-pipeline-banner-inner {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 10px 20px;
    flex-wrap: wrap;
    min-height: 62px;
}

/* ── Pipeline tag + name ────────────────────────────────────────────────── */
.fz-pipeline-id {
    display: flex;
    flex-direction: column;
    margin-right: 24px;
    min-width: 160px;
}
.fz-pipeline-tag {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff;
    border-radius: 3px;
    padding: 2px 6px;
    display: inline-block;
    margin-bottom: 3px;
    width: fit-content;
}
.fz-pipeline-banner--p1 .fz-pipeline-tag { background: #DC143C; }
.fz-pipeline-banner--p2 .fz-pipeline-tag { background: #2e7d32; }

.fz-pipeline-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}
.fz-pipeline-banner--p1 .fz-pipeline-name { color: #a80f2c; }
.fz-pipeline-banner--p2 .fz-pipeline-name { color: #2e7d32; }

/* ── Pipeline 1: Prospecting funnel stages ──────────────────────────────── */
.fz-pipeline-funnel {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 0;
    flex-wrap: wrap;
}
.fz-fs-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #e4e4e4;
    border-radius: 5px;
    padding: 6px 14px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    min-width: 72px;
    text-align: center;
}
.fz-fs-stage:hover { background: #f0f0f0; border-color: #c0c0c0; }
.fz-fs-stage--active { background: #fff0f3; border-color: #DC143C; }
.fz-fs-count {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    line-height: 1.1;
}
.fz-fs-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #777;
    margin-top: 2px;
}
.fz-fs-arrow {
    color: #ccc;
    font-size: 18px;
    padding: 0 3px;
    display: flex;
    align-items: center;
}

/* Stage colour accents */
.fz-fs--research    .fz-fs-count { color: #888; }
.fz-fs--prospecting .fz-fs-count { color: #337ab7; }
.fz-fs--outreaching .fz-fs-count { color: #e6a817; }
.fz-fs--engaged     .fz-fs-count { color: #e67e17; }
.fz-fs--qualified   .fz-fs-count { color: #DC143C; }
.fz-fs--handed      .fz-fs-count { color: #2e7d32; }

/* ── Pipeline 1: side stats ─────────────────────────────────────────────── */
.fz-pipeline-stats {
    display: flex;
    gap: 16px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid #e4e4e4;
}
.fz-ps-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}
.fz-ps-num {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    line-height: 1.1;
}
.fz-ps-num--active  { color: #e67e17; }
.fz-ps-num--success { color: #DC143C; }
.fz-ps-num--done    { color: #2e7d32; }
.fz-ps-lbl {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    margin-top: 2px;
}

/* ── Pipeline 2: KPI strip ──────────────────────────────────────────────── */
.fz-pipeline-kpis {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 0;
}
.fz-pk-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 20px;
}
.fz-pk-stat:first-child { padding-left: 0; }
.fz-pk-num {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    line-height: 1.1;
}
.fz-pk-num--forecast { color: #337ab7; }
.fz-pk-num--won      { color: #2e7d32; }
.fz-pk-lbl {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    margin-top: 2px;
}
.fz-pk-divider {
    width: 1px;
    height: 36px;
    background: #e4e4e4;
    flex-shrink: 0;
}

/* ── Pipeline 2: view toggle in banner ──────────────────────────────────── */
.fz-pipeline-view-toggle {
    display: flex;
    gap: 4px;
    margin-left: auto;
}
.fz-pvt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f5f5f5;
    color: #555;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}
.fz-pvt-btn:hover { background: #ebebeb; color: #333; text-decoration: none; }
.fz-pvt-btn.active { background: #2e7d32; border-color: #2e7d32; color: #fff; }
/* ── Company pipeline kanban card avatar ────────────────────────────────── */
.fz-co-agile-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 8px;
    width: 32px;
    height: 32px;
}
.fz-agile-top { display: flex; align-items: center; }

/* =============================================================================
   Dashboard Phase 9 — Dual-Pipeline KPI section headers
   ============================================================================= */
.fz-pipeline-kpi-header {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
    padding: 0 0 8px 2px;
    margin-bottom: 12px;
    border-bottom: 2px solid #e7eaee;
    color: #888;
}
.fz-pipeline-kpi-header--p1 { border-color: #3b82f6; color: #3b82f6; }
.fz-pipeline-kpi-header--p2 { border-color: #1ab394; color: #1ab394; }

/* Pipeline chart legend */
.fz-chart-legend { margin: 0; }
.fz-chart-legend li { display: flex; align-items: center; }
.fz-chart-legend li .pull-right { margin-left: auto; }

/* =============================================================================
   Global Help Modal System (Phase 9)
   ============================================================================= */
.fz-help-modal .modal-body,
#fz-help-modal .modal-body { max-height: 68vh; overflow-y: auto; padding: 20px 24px; }
.fz-help-section { margin-bottom: 24px; }
.fz-help-section:last-child { margin-bottom: 0; }
.fz-help-section > h4 {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 7px;
    margin: 0 0 12px;
}
.fz-help-grid { display: -webkit-box; display: -ms-flexbox; display: flex; gap: 12px; -ms-flex-wrap: wrap; flex-wrap: wrap; }
.fz-help-card {
    -webkit-box-flex: 1; -ms-flex: 1; flex: 1;
    min-width: 150px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 14px;
    display: -webkit-box; display: -ms-flexbox; display: flex;
    gap: 10px;
}
.fz-help-card--company { border-left: 3px solid #3b82f6; }
.fz-help-card--contact { border-left: 3px solid #8b5cf6; }
.fz-help-card--deal    { border-left: 3px solid #1ab394; }
.fz-help-card-icon { font-size: 18px; color: #888; padding-top: 1px; -ms-flex-negative: 0; flex-shrink: 0; }
.fz-help-card--company .fz-help-card-icon { color: #3b82f6; }
.fz-help-card--contact .fz-help-card-icon { color: #8b5cf6; }
.fz-help-card--deal    .fz-help-card-icon { color: #1ab394; }
.fz-help-card-body strong { display: block; font-size: 13px; margin-bottom: 4px; }
.fz-help-card-body p { font-size: 12px; color: #666; margin: 0; }
.fz-help-flow { display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; gap: 6px; -webkit-box-align: center; -ms-flex-align: center; align-items: center; margin: 8px 0 4px; }
.fz-help-stage {
    background: #f0f4ff;
    border: 1px solid #c7d7fa;
    border-radius: 12px;
    padding: 3px 11px;
    font-size: 12px;
    font-weight: 500;
    color: #3b4a6b;
}
.fz-help-stage--success { background: #effdf5; border-color: #9ae6b4; color: #276749; }
.fz-help-stage--p1 { background: #eff6ff; border-color: #93c5fd; color: #1e40af; }
.fz-help-stage--p2 { background: #f0fdf4; border-color: #86efac; color: #166534; }
.fz-help-arrow { color: #bbb; font-size: 14px; line-height: 1; }
/* =====================================================================
   Companies filter bar - grouped layout
   ===================================================================== */
.fz-filter-row { margin-bottom: 4px; }
.fz-filter-row:last-child { margin-bottom: 0; }
.fz-filter-group-labeled .fz-filter-label { display: block; font-size: 11px; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 3px; }
.fz-filter-checkbox-wrap { padding-top: 6px; }

/* ─── Column visibility toggle dropdown ───────────────────────────────── */
.fz-colvis-menu {
    padding: 4px 0;
    min-width: 150px;
    max-width: 75vw;
    max-height: 280px;
    overflow-y: auto;
    overflow-x: auto;
    /* Open to the left by aligning right edge with parent */
    left: auto !important;
    right: 0 !important;
}
.fz-colvis-menu .fz-colvis-label {
    display: block;
    padding: 5px 16px;
    margin: 0;
    font-weight: normal;
    cursor: pointer;
    white-space: nowrap;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fz-colvis-menu .fz-colvis-label:hover {
    background: #f5f5f5;
}
.fz-colvis-menu .fz-colvis-label input {
    margin: 0 6px 0 0;
    vertical-align: middle;
}
.fz-colvis-dropdown {
    display: inline-block;
    vertical-align: middle;
    position: relative;
}

