@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ── CSS Custom Properties (Design Tokens) ─────────────────── */
:root {
    --slds-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /* Brand */
    --slds-navy: #1a2b42;
    --slds-sidebar-bg: #051c38;
    --slds-blue: #0176d3;
    --slds-blue-dark: #0b5cab;
    --slds-blue-accent: #3860be;
    --slds-green: #2e844a;
    --slds-green-dark: #1a6b34;
    --slds-blue-light: #5eb5f7;
    --slds-red-dark: #9a2020;
    --slds-amber-dark: #7c5b00;
    /* Text */
    --slds-text: #181818;
    --slds-text-weak: #555555;
    --slds-text-muted: #868686;
    /* Surface */
    --slds-bg: #ffffff;
    --slds-bg-alt: #f8fafc;
    --slds-bg-wash: #f5f7fa;
    --slds-bg-note: #eaf5fe;
    /* Semantic */
    --slds-success: #2e844a;
    --slds-destructive: #c23934;
    --slds-warning: #a86403;
    /* Border */
    --slds-border: #e4e8ee;
    --slds-border-light: #f0f2f6;
    --slds-border-input: #dde2ea;
    /* Spacing Scale (4px base) */
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 20px;
    --sp-6: 24px;
    --sp-8: 32px;
    --sp-10: 40px;
    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-pill: 50px;
    /* Shadow */
    --shadow-sm: 0 1px 3px rgba(0,0,0,.05),0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,.07),0 2px 4px rgba(0,0,0,.04);
    --shadow-lg: 0 8px 24px rgba(0,0,0,.08),0 4px 8px rgba(0,0,0,.04);

    /* Pagination fallbacks when tcc-v2-tokens.css is not loaded */
    --tcc-pg-gap: 8px;
    --tcc-pg-radius: 8px;
    --tcc-pg-size: 28px;
    --tcc-pg-font-size: 0.8125rem;
    --tcc-pg-bg: #f8f9fa;
    --tcc-pg-bg-hover: #f1f3f4;
    --tcc-pg-border: #e8eaed;
    --tcc-pg-color: #6b7a90;
    --tcc-pg-hover-color: #1e2636;
    --tcc-pg-active-bg: #293348;
    --tcc-pg-active-color: #ffffff;
    --tcc-pg-disabled-opacity: 0.38;
    --tcc-pg-focus-ring: 0 0 0 2px rgba(41, 51, 72, 0.15);
}

html,
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

button,
input,
select,
textarea,
.btn {
    font-family: inherit;
}

.ui-widget,
.ui-widget input,
.ui-widget select,
.ui-widget textarea,
.ui-widget button {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Placeholder text - uniform size (inputs & textareas); token in tcc-v2-tokens.css when loaded */
input::placeholder,
textarea::placeholder,
.form-control::placeholder {
    font-size: var(--tcc-placeholder-fs, 0.725rem);
}

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder,
.form-control::-webkit-input-placeholder {
    font-size: var(--tcc-placeholder-fs, 0.725rem);
}

input::-moz-placeholder,
textarea::-moz-placeholder,
.form-control::-moz-placeholder {
    font-size: var(--tcc-placeholder-fs, 0.725rem);
    opacity: 1;
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder,
.form-control:-ms-input-placeholder {
    font-size: var(--tcc-placeholder-fs, 0.725rem);
}

input::-ms-input-placeholder,
textarea::-ms-input-placeholder,
.form-control::-ms-input-placeholder {
    font-size: var(--tcc-placeholder-fs, 0.725rem);
}

/* ── Unified pagination: Bootstrap .pagination, TCC .tcc-page-btn, legacy .page-btn / .pagination-btn ── */
.pagination {
    gap: var(--tcc-pg-gap);
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 12px 0;
    margin: 0;
    border-radius: 0;
}

.pagination .page-item {
    margin: 0;
}

.pagination .page-link {
    margin-left: 0;
    min-width: var(--tcc-pg-size);
    height: var(--tcc-pg-size);
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--tcc-pg-font-size);
    font-weight: 500;
    line-height: 1.2;
    color: var(--tcc-pg-color);
    background: var(--tcc-pg-bg);
    border: 1px solid var(--tcc-pg-border);
    border-radius: var(--tcc-pg-radius) !important;
    text-decoration: none;
    box-shadow: none;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.pagination .page-link:hover {
    color: var(--tcc-pg-hover-color);
    background: var(--tcc-pg-bg-hover);
    border-color: var(--tcc-pg-border);
}

.pagination .page-item.active .page-link {
    color: var(--tcc-pg-active-color);
    background: var(--tcc-pg-active-bg);
    border-color: var(--tcc-pg-active-bg);
    z-index: 1;
}

.pagination .page-item.disabled .page-link {
    opacity: var(--tcc-pg-disabled-opacity);
    color: var(--tcc-pg-color);
    background: var(--tcc-pg-bg);
    border-color: var(--tcc-pg-border);
    pointer-events: none;
}

.pagination .page-link:focus {
    outline: none;
    box-shadow: var(--tcc-pg-focus-ring);
    z-index: 2;
}

.pagination.pagination-sm .page-link {
    min-width: 30px;
    height: 30px;
    padding: 0 10px;
    font-size: 0.75rem;
}

.pagination.pagination-lg .page-link {
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    font-size: 0.9375rem;
}

/* Standalone page number / arrow buttons (brand, tables, etc.) */
button.page-btn,
.pagination-controls button.page-btn,
#other_lagal_Paging button.page-btn {
    min-width: var(--tcc-pg-size);
    height: var(--tcc-pg-size);
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--tcc-pg-font-size);
    font-weight: 500;
    font-family: inherit;
    line-height: 1.2;
    color: var(--tcc-pg-color);
    background: var(--tcc-pg-bg);
    border: 1px solid var(--tcc-pg-border);
    border-radius: var(--tcc-pg-radius);
    cursor: pointer;
    box-shadow: none;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
    margin: 0 2px;
}

button.page-btn:hover:not(:disabled):not(.disabled) {
    color: var(--tcc-pg-hover-color);
    background: var(--tcc-pg-bg-hover);
    border-color: var(--tcc-pg-border);
}

button.page-btn:focus {
    outline: none;
    box-shadow: var(--tcc-pg-focus-ring);
}

button.page-btn.active,
button.page-btn.is-active {
    color: var(--tcc-pg-active-color);
    background: var(--tcc-pg-active-bg);
    border-color: var(--tcc-pg-active-bg);
}

button.page-btn:disabled,
button.page-btn.disabled {
    opacity: var(--tcc-pg-disabled-opacity);
    cursor: not-allowed;
    pointer-events: none;
}

button.pagination-btn {
    min-width: var(--tcc-pg-size);
    height: var(--tcc-pg-size);
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--tcc-pg-font-size);
    font-weight: 500;
    font-family: inherit;
    line-height: 1.2;
    color: var(--tcc-pg-color);
    background: var(--tcc-pg-bg);
    border: 1px solid var(--tcc-pg-border);
    border-radius: var(--tcc-pg-radius);
    cursor: pointer;
    box-shadow: none;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

button.pagination-btn:hover:not(:disabled):not(.disabled) {
    color: var(--tcc-pg-hover-color);
    background: var(--tcc-pg-bg-hover);
}

button.pagination-btn.active {
    color: var(--tcc-pg-active-color);
    background: var(--tcc-pg-active-bg);
    border-color: var(--tcc-pg-active-bg);
}

button.pagination-btn:disabled,
button.pagination-btn.disabled {
    opacity: var(--tcc-pg-disabled-opacity);
    cursor: not-allowed;
}


#pagination,
.pagination-acquisition,
.pagination-controls.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--tcc-pg-gap);
    padding: 12px 0;
}

.pagination-backword,
.pagination-prev,
.pagination-next,
.pagination-forword,
.pagination-count {
    min-width: var(--tcc-pg-size);
    height: var(--tcc-pg-size);
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--tcc-pg-font-size);
    font-weight: 500;
    color: var(--tcc-pg-color);
    background: var(--tcc-pg-bg);
    border: 1px solid var(--tcc-pg-border);
    border-radius: var(--tcc-pg-radius);
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
    margin: 0;
    box-sizing: border-box;
}

.pagination-backword:hover,
.pagination-prev:hover,
.pagination-next:hover,
.pagination-forword:hover,
.pagination-count:hover {
    color: var(--tcc-pg-hover-color);
    background: var(--tcc-pg-bg-hover);
}

.pagination-count.is-active,
.pagination-count.active {
    color: var(--tcc-pg-active-color);
    background: var(--tcc-pg-active-bg);
    border-color: var(--tcc-pg-active-bg);
}

/* ── Sidebar - Dark Theme ─────────────────────────────────── */
/* ── Collapsible sidebar with icon links ─────────────── */
.v2-sn {
    width: 220px;
    background: var(--slds-sidebar-bg);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 100;
    font-family: var(--slds-font);
    transition: width .25s cubic-bezier(.4,0,.2,1);
    scrollbar-width: thin;
}
.v2-sn::-webkit-scrollbar { width: 4px; }
.v2-sn::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 4px; }

/* Collapsed state */
.v2-sn.collapsed {
    width: 52px;
}

/* ── Sidebar header (toggle) ── */
.snh {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    color: rgba(255,255,255,.85);
    border-bottom: 1px solid rgba(255,255,255,.08);
    transition: background .15s;
    white-space: nowrap;
}
.snh:hover { background: rgba(255,255,255,.06); }
.snh svg:first-child {
    min-width: 18px;
    stroke: rgba(255,255,255,.7);
}
.snh-label {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .3px;
    opacity: 1;
    transition: opacity .2s;
}
.v2-sn.collapsed .snh-label { opacity: 0; width: 0; overflow: hidden; }

.snh-arrow {
    width: 16px; height: 16px;
    margin-left: auto;
    stroke: rgba(255,255,255,.5);
    transition: transform .25s, opacity .2s;
}
.v2-sn.collapsed .snh-arrow { opacity: 0; width: 0; overflow: hidden; }

/* Arrow rotates when expanded */
.v2-sn:not(.collapsed) .snh-arrow {
    transform: rotate(-90deg);
}

/* ── Sidebar links container ── */
.sn-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 6px;
    flex: 1;
}

/* ── Individual sidebar link ── */
.sl {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 8px;
    color: rgba(255,255,255,.7);
    text-decoration: none;
    transition: all .15s ease;
    white-space: nowrap;
    position: relative;
}
.sl svg {
    width: 18px; height: 18px;
    min-width: 18px;
    stroke: rgba(255,255,255,.55);
    fill: none;
    transition: stroke .15s;
}
.sl:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
}
.sl:hover svg { stroke: rgba(255,255,255,.9); }
.sl.active {
    background: rgba(1,118,211,.25);
    color: #fff;
}
.sl.active svg { stroke: #fff; }

/* Link label text */
.nl {
    font-size: 12px;
    font-weight: 400;
    opacity: 1;
    transition: opacity .2s;
}
.v2-sn.collapsed .nl { opacity: 0; width: 0; overflow: hidden; }

/* ── Tooltip on collapsed hover ── */
.v2-sn.collapsed .sl[data-tip]:hover::after,
.v2-sn.collapsed .wp-trigger[data-tip]:hover::after {
    content: attr(data-tip);
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: #1e293b;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 100;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

/* ── Divider between databases and workplace ── */
.sn-divider {
    height: 1px;
    background: rgba(255,255,255,.1);
    margin: 6px 10px;
}

/* ── Workplace hover submenu ── */
.wp-wrap {
    position: relative;
}
.wp-trigger {
    cursor: pointer;
}

/* Submenu panel */
.wp-menu {
    position: fixed;
    width: 260px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,.15), 0 0 0 1px rgba(0,0,0,.05);
    padding: 6px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-6px);
    transition: opacity .18s ease, transform .18s ease;
    z-index: 10000;
}
.wp-menu.wp-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.wp-menu-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #94a3b8;
    padding: 8px 10px 4px;
}

/* Each workplace submenu item */
.wp-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    text-decoration: none;
    color: #334155;
    font-size:12px;
    border-bottom:1px solid #eee;
    font-weight:400;
    transition: background .12s;
}

.wp-item:hover {
    background: #f1f5f9;
}
.wp-item.active {
    background: #eef2ff;
}

.wp-item-icon {
    width: 22px; 
    height: 22px;
    min-width: 22px;
    display: flex; align-items: center; justify-content: center;
    
}

.wp-item-icon svg {
    width: 14px; height: 14px;
    stroke: #64748b;
    fill: none;
}
.wp-item:hover .wp-item-icon svg {
    stroke: #1a73e8;
}
.wp-item.active .wp-item-icon svg {
    stroke: #1a73e8;
}

.wp-item-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.wp-item-name {
    font-size: 12px;
    font-weight: 400;
    color: #1e293b;
    line-height: 1.3;
}
.wp-item:hover .wp-item-name {
    color: #1a73e8;
}
.wp-item.active .wp-item-name {
    color: #1a73e8;
}
.wp-item-desc {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.3;
}

/* ── Sidebar user profile (bottom) ── */
.sn-user {
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,.1);
    position: relative;
}
.sn-user-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 10px;
    cursor: pointer;
    transition: background .15s;
    white-space: nowrap;
    overflow: hidden;
}
.sn-user-trigger:hover {
    background: rgba(255,255,255,.06);
}
.sn-user-avatar {
    width: 32px; height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    border: 1.5px solid rgba(255,255,255,.25);
    color: rgba(255,255,255,.85);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: .5px;
}
.sn-user-name {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,.9);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Collapsed: tooltip on trigger hover */
.v2-sn.collapsed .sn-user-trigger[data-tip]:hover::after {
    content: attr(data-tip);
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: #1e293b;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 100;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

/* ── User popup (fixed, opens upward) ── */
.sn-user-popup {
    position: fixed;
    width: 280px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,.15), 0 0 0 1px rgba(0,0,0,.05);
    padding: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease;
    z-index: 10000;
    overflow: hidden;
}
.sn-user-popup.up-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Popup header - avatar + name + email */
.sn-up-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}
.sn-up-avatar {
    width: 40px; height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    border: 2px solid #cbd5e1;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: .5px;
}
.sn-up-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.sn-up-name {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}
.sn-up-email {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Divider */
.sn-up-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0;
}

/* Meta row (account type, last login) */
.sn-up-meta {
    padding: 10px 16px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
}

/* Action items (settings, logout) */
.sn-up-action {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    text-decoration: none;
    color: #334155;
    font-size: 13px;
    font-weight: 500;
    transition: background .12s;
    cursor: pointer;
}

.sn-up-action svg {
    width: 16px; height: 16px;
    min-width: 16px;
    stroke: #64748b;
    fill: none;
}
.sn-up-logout {
   
    border-top: 1px solid #e5e7eb;
}
    .sn-up-logout svg {
        stroke: #e5e7eb;
    }



/* ── Global Sidebar Layout (applies to ALL pages via _LayoutSearch) ── */
.tcc-global-wrap {
    min-height: calc(100vh - 60px);
    /* Push below the fixed 60px navbar (.main-header-top is position:fixed) */
    margin-top: 60px;
    /* Offset for fixed sidebar (220px default, JS toggles this on collapse) */
    margin-left: 220px;
    transition: margin-left .25s cubic-bezier(.4,0,.2,1);
}
.tcc-global-wrap.sn-collapsed {
    margin-left: 52px;
}

.tcc-global-content {
    min-width: 0;
    min-height: 0;
    /* Sticky headers inside this container need overflow visible */
    overflow: visible;
}

/* V2 database pages already have v2-main inside global-content,
   so no extra nesting issues. Non-V2 pages (dashboard, company
   detail, brand detail) get their content in the flex child. */
.tcc-global-content .minheight_div,
.tcc-global-content .brand-maincontent {
    min-height: calc(100vh - 60px);
}

/* Ensure company header sticky works correctly in flex layout */
.tcc-global-content .tcc-hdr {
    position: sticky;
    top: 60px;
    z-index: 1000;
}

/* Buy Report popup must overlay properly, not push content */
.tcc-global-content #dv_buyReportPopUp .popup-overlay,
.tcc-global-content #dv_buyReportPopUp .buy-report-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100001;
}

html, body {
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
}


/* ── Main Content Area ─────────────────────────────────────── */
.v2-main {
    flex: 1;
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--slds-bg-wash);
}


/* ── Sub Header (Page Title Bar) ───────────────────────────── */
.v2-subheader {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-6);
    background: var(--slds-bg);
    border-bottom: none;
    box-shadow: 0 1px 0 var(--slds-border-light);
    flex-shrink: 0;
    position: sticky;
    top: 60px;
    z-index: 20;
}

    .v2-subheader h2 {
        font-size: 18px;
        font-weight: 700;
        color: var(--slds-navy);
        margin: 0;
        letter-spacing: -0.01em;
    }

.v2-badge {
    background: var(--slds-bg-note);
    color: var(--slds-blue);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
}

.v2-subheader .ml-auto {
    margin-left: auto;
}


/* ── Buttons (SLDS-style) ──────────────────────────────────── */
.v2-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: var(--slds-bg);
    color: var(--slds-blue);
    font-family: var(--slds-font);
    transition: all .2s ease;
    line-height: 1.4;
   border:1px solid #eee;
}

    .v2-btn:hover {
        background: var(--slds-bg-alt);
       
    }

.v2-btn-primary {
    background: #051c38;
    color: #fff;
    border-color:transparent;
}

    .v2-btn-primary:hover {
        background: #051c38;
      
    }

.v2-btn svg {
    width: 14px;
    height: 14px;
}


/* ── Page Tabs (Overview / Guides style) ───────────────────── */
.v2-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: var(--sp-3) var(--sp-4);
    font-size: 14px;
    font-weight: 400;
    color: var(--slds-text);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all .15s ease;
}

    .v2-tab:hover {
        color: var(--slds-blue);
    }

    .v2-tab.active {
        color: var(--slds-blue);
        border-bottom-color: var(--slds-blue-accent);
        font-weight: 700;
    }

    .v2-tab img {
        width: 16px;
        height: 16px;
    }


/* ── Active Filter Chips ───────────────────────────────────── */
.v2-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: var(--sp-3) var(--sp-6);
    background: var(--slds-bg);
    border-bottom: none;
    flex-shrink: 0;
}

    .v2-chips:empty {
        display: none;
    }

.v2-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(1,118,211,.06);
    color: var(--slds-blue-dark);
    font-size: 12px;
    font-weight: 500;
    padding: 5px 10px 5px 12px;
    border-radius: var(--radius-pill);
}

.v2-chip-x {
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    opacity: .6;
    background: none;
    border: none;
    color: var(--slds-blue-dark);
    padding: 0 2px;
    transition: opacity .12s;
}

    .v2-chip-x:hover {
        opacity: 1;
    }

.v2-chip-clear {
    font-size: 12px;
    color: var(--slds-blue);
    font-weight: 700;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px 8px;
}


/* ── Data Grid Wrapper ─────────────────────────────────────── */
.v2-grid {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    padding: 0;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

/* ── Data Table (SLDS Compact Data Table) ─────────────────── */
.v2-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    font-family: var(--slds-font);
    color: var(--slds-text);
}

    .v2-table thead th {
        background: #f8f9fa;
        padding: 10px 12px;
        font-size: 11.5px;
        font-weight: 600;
        text-transform: none;
        letter-spacing: 0.01em;
        color: var(--slds-text-muted);
        text-align: left;
        border-bottom: 1px solid var(--slds-border-light);
        white-space: nowrap;
        cursor: pointer;
        user-select: none;
    }

        .v2-table thead th:hover {
            background: var(--slds-bg-alt);
        }

    .v2-table tbody tr {
        border-bottom: 1px solid #eee;
        transition: background .1s ease;
    }

       

    .v2-table tbody td {
        padding: 10px 12px;
        vertical-align: middle;
        color: var(--slds-text);
        font-weight: 400;
        line-height: 1.55;
    }

    .v2-table a {
       text-align:left;
        text-decoration: none;
        font-weight: 400;
    }

        .v2-table a:hover {
            text-decoration: underline;
            color: var(--slds-blue);
        }

    /* ── Row Selection Highlight ──────────────────────────────── */
    .v2-table tbody tr.selected {
        background: rgba(1,118,211,.06);
    }

        .v2-table tbody tr.selected td:nth-child(1),
        .v2-table tbody tr.selected td:nth-child(2) {
            background: rgba(1,118,211,.06);
        }

/* Utility classes for cells */
.td-muted {
    color: var(--slds-text-muted);
    font-size: 11px;
}

.td-truncate {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Sticky first 2 columns on horizontal scroll */
.v2-table th:nth-child(1),
.v2-table td:nth-child(1) {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #fff;
}

.v2-table thead th:nth-child(1) {
    z-index: 3;
    background: #f8f9fa;
}


.v2-table tbody tr.selected td:nth-child(1) {
    background: rgba(1,118,211,.06);
}

/* Checkbox column */
.v2-table td:first-child,
.v2-table th:first-child {
    width: 36px;
    min-width: 36px;
    max-width: 36px;
    text-align: center;
    padding: 5px 6px;
}

/* Merged-chk tables override the narrow first column (see below) */

.v2-table input[type=checkbox] {
    accent-color: var(--slds-blue);
    width: 13px;
    height: 13px;
    cursor: pointer;
}

/* Merged checkbox + first entity column (Acquisitions, Companies, …) */
.v2-table--chk-merged th:nth-child(1),
.v2-table--chk-merged td:nth-child(1) {
    position: sticky;
    left: 0;
    z-index: 2;
    width: 330px;
    min-width: 330px;
    max-width: 330px;
    box-sizing: border-box;
    padding: 10px 12px;
    text-align: left;
    vertical-align: middle;
    background: #fff;
    box-shadow: 6px 0 12px rgba(0, 0, 0, 0.12);
    border-right: 1px solid var(--slds-border-light);
}

.v2-table--chk-merged thead th:nth-child(1) {
    z-index: 3;
    background: #fff;
}

.v2-table--chk-merged th:nth-child(2),
.v2-table--chk-merged td:nth-child(2) {
    position: static;
    left: auto;
    box-shadow: none;
    border-right: none;
  
}

.v2-table--chk-merged thead th:nth-child(2) {
    z-index: auto;
   
}

.v2-table--chk-merged tbody tr.selected td:nth-child(1)
{
    background: rgba(1, 118, 211, 0.06);
}

.v2-table--chk-merged .v2-th-chk-inner,
.v2-table--chk-merged .v2-td-chk-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.v2-table--chk-merged .v2-th-chk-inner > input[type=checkbox],
.v2-table--chk-merged .v2-td-chk-inner > input[type=checkbox] {
    flex-shrink: 0;
    margin: 0;
}

.v2-table--chk-merged .v2-td-chk-inner .c-cell {
    flex: 1;
    min-width: 0;
}

.v2-table--chk-merged .v2-th-entity-label {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--slds-text-muted);
    cursor: pointer;
    user-select: none;
    flex: 1;
    min-width: 0;
}

.v2-table--chk-merged .v2-th-entity-label:hover {
    color: var(--slds-blue);
}

/* ── Contact Info Cells (Salesforce Pattern) ──────────────── */
.contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--slds-text);
    line-height: 1.3;
    margin-bottom: 2px;
}

    .contact-item:last-child {
        margin-bottom: 0;
    }

    .contact-item svg {
        width: 13px;
        height: 13px;
        flex-shrink: 0;
        stroke: var(--slds-text-muted);
        fill: none;
        stroke-width: 2;
    }

    .contact-item a {
        color: var(--slds-blue);
        font-size: 12px;
        text-decoration: none;
        font-weight: 400;
    }

        .contact-item a:hover {
            text-decoration: underline;
        }

    .contact-item span {
        color: var(--slds-text);
        font-size: 12px;
    }


/* ── Entity Cell (Company / Brand / App / Channel) ─────────── */
.c-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.c-logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: contain;
    background: var(--slds-bg-alt);
    border: none;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.c-init {
    width: 26px;
    height: 26px;
    border-radius: var(--radius-sm);
    background: var(--slds-bg-note);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--slds-navy);
    flex-shrink: 0;
}

.c-name {
    font-weight: 400;
    color: var(--slds-blue);
    font-size: 12px;
    line-height: 1.3;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

    .c-name:hover {
        text-decoration: underline;
    }

.c-meta {
    font-size: 10px;
    color: var(--slds-text-muted);
    max-width:220px;
    overflow:hidden;
    text-overflow:ellipsis;
}

/* Person Cell */
.p-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.p-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--slds-bg-alt);
    border: none;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.p-init {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--slds-blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
}

.p-name {
    font-weight: 400;
    color: var(--slds-blue);
    font-size: 12px;
    line-height: 1.3;
}

.p-din {
    font-size: 10px;
    text-align:left;
    color: var(--slds-text-muted);
}

/* Investor Cell */
.inv-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.inv-logo {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-md);
    object-fit: contain;
    background: var(--slds-bg-alt);
    border: none;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.inv-init {
    width: 26px;
    height: 26px;
    border-radius: var(--radius-sm);
    background: var(--slds-bg-note);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--slds-navy);
    flex-shrink: 0;
}

.inv-name {
    font-weight: 400;
    color: var(--slds-blue);
    font-size: 12px;
    line-height: 1.3;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.inv-domain {
    font-size: 10px;
    color: var(--slds-text-muted);
}


/* ── Badges (SLDS Pill Style) ──────────────────────────────── */
.b {
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    display: inline-block;
    line-height: 1.5;
}

.b-green {
    background: rgba(46,132,74,.08);
}

.b-red {
    background: rgba(194,57,52,.08);
  
}

.b-gray {
    background: var(--slds-bg-alt);
  
}

.b-blue {
    background: rgba(1,118,211,.08);
}

.b-yellow {
    background: rgba(221,122,1,.08);
    
}

/* ── Capital Stack ─────────────────────────────────────────── */
.cap-stack {
    line-height: 1.4;
}

.cap-sub {
    font-size: 11px;
    color: var(--slds-text-muted);
}


/* ── Skeleton Loader ───────────────────────────────────────── */
.skel-row {
    padding: 8px 10px;
}

.skel {
    height: 14px;
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg, var(--slds-bg-alt) 25%, var(--slds-border-light) 50%, var(--slds-bg-alt) 75%);
    background-size: 200% 100%;
    animation: slds-shimmer 1.5s infinite;
}

@keyframes slds-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}


/* ── Filter Tray (Right Slide-Out Panel - SLDS Panel) ──────── */
.ft-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

    .ft-overlay.open {
        opacity: 1;
        pointer-events: all;
    }

.ft-tray {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100vh;
    background: var(--slds-bg);
    z-index: 1011;
    box-shadow: -8px 0 32px rgba(0,0,0,.08);
    transition: right .3s ease;
    display: flex;
    flex-direction: column;
    border-left: none;
    border-radius: 16px 0 0 16px;
}

    .ft-tray.open {
        right: 0;
    }

.ft-head {
    padding: 12px var(--sp-5);
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    border-bottom:1px solid #eee;
}

    .ft-head h3 {
        font-size: 16px;
        font-weight: 700;
        color: var(--slds-navy);
        margin: 0;
    }

.ft-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--sp-4) var(--sp-5);
}

.ft-foot {
    padding: var(--sp-4) var(--sp-5);
    border-top: none;
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}


/* ── Filter Sections ───────────────────────────────────────── */
.fs {
    margin-bottom: var(--sp-4);
    border-bottom: none;
    padding-bottom: var(--sp-2);
    border-bottom:1px solid #eee;
}

.fs-h {
    display: flex;
    align-items: center;
    padding: 8px 0;
    cursor: pointer;
    user-select: none;
}

    .fs-h h4 {
        font-size: 12px;
        font-weight: 600;
        text-transform: none;
        letter-spacing: 0.01em;
        color: var(--slds-navy);
        margin: 0;
    }

    .fs-h .cnt {
        font-size: 10px;
        color: var(--slds-blue);
        margin-left: 6px;
        font-weight: 700;
    }

    .fs-h svg {
        margin-left: auto;
        width: 14px;
        height: 14px;
        color: var(--slds-text-muted);
        transition: transform .2s ease;
    }

.fs.closed .fs-h svg {
    transform: rotate(-90deg);
}

.fs-b {
    padding: 4px 0;
}

.fs.closed .fs-b {
    display: none;
}

.fs-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--slds-border-light);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-family: var(--slds-font);
    color: var(--slds-text);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

    .fs-input:focus {
        border-color: var(--slds-blue);
        box-shadow: 0 0 0 3px rgba(1,118,211,.15);
    }

.fs-list {
    max-height: 260px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.fs-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-size: 13px;
    color: var(--slds-text);
    cursor: pointer;
}

    .fs-item input {
        accent-color: var(--slds-blue);
        width: 15px;
        height: 15px;
    }

    .fs-item .fc {
        
        font-size: 11px;
        color: var(--slds-text-muted);
        min-width: 30px;
        text-align: right;
    }

.fs-range {
    display: flex;
    gap: 8px;
    align-items: center;
}

    .fs-range .fs-input {
        width: 50%;
    }

    .fs-range span {
        font-size: 12px;
        color: var(--slds-text-muted);
    }


/* ── Toggle Switch (SLDS Toggle) ───────────────────────────── */
.tgl-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
    color: var(--slds-text);
}

.tgl {
    width: 36px;
    height: 20px;
    border-radius: 10px;
    background: var(--slds-border);
    position: relative;
    cursor: pointer;
    border: none;
    transition: background .2s ease;
    flex-shrink: 0;
}

    .tgl::after {
        content: '';
        position: absolute;
        top: 2px;
        left: 2px;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: #fff;
        transition: left .2s ease;
        box-shadow: var(--shadow-sm);
    }

    .tgl.on {
        background: var(--slds-blue);
    }

        .tgl.on::after {
            left: 18px;
        }


/* ── News Row Styles ───────────────────────────────────────── */
.news-cell {
    padding: 4px 0;
}

.news-headline {
    font-weight: 400;
    color: var(--slds-blue);
    font-size: 12px;
    line-height: 1.35;
}

.news-meta {
    font-size: 10px;
    color: var(--slds-text-muted);
    margin-top: 2px;
}

.news-companies {
   
    color: var(--slds-text-weak);
    margin-top: 2px;
}


/* ── Scrollbar (Salesforce thin scrollbar) ─────────────────── */
.v2-grid::-webkit-scrollbar,
.ft-body::-webkit-scrollbar,
.fs-list::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.v2-grid::-webkit-scrollbar-thumb,
.ft-body::-webkit-scrollbar-thumb,
.fs-list::-webkit-scrollbar-thumb {
    background: var(--slds-border);
    border-radius: var(--radius-sm);
}

    .v2-grid::-webkit-scrollbar-thumb:hover,
    .ft-body::-webkit-scrollbar-thumb:hover,
    .fs-list::-webkit-scrollbar-thumb:hover {
        background: var(--slds-text-muted);
    }

.v2-grid::-webkit-scrollbar-track,
.ft-body::-webkit-scrollbar-track {
    background: transparent;
}


/* ── Footer Hide (V2 pages use no traditional footer) ──────── */
footer, .copyright {
    display: none !important;
}




/* ── Reusable Inline-Eliminator Classes ───────────────────── */

/* Filter tray close button */
.ft-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--slds-text-weak);
    cursor: pointer;
    line-height: 1;
    padding: 0 2px;
    transition: color .12s;
}

    .ft-close:hover {
        color: var(--slds-text);
    }

/* Filter badge count (inside primary button) */
.filter-count {
    background: rgba(255,255,255,.25);
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 10px;
    display: none;
}

/* Subheader right actions container */
.v2-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

/* Loading placeholder inside filter body */
.ft-loading {
    color: var(--slds-text-muted);
    padding: 30px;
}

/* Table empty state row */
.state-empty {
    padding: 48px 10px;
    color: var(--slds-text-muted);
    text-align: center;
}

/* Table error state row */
.state-error {
    padding: 40px 10px;
    color: var(--slds-destructive);
    text-align: center;
}

/* Truncation variants (different max-widths) */
.td-truncate-sm {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.td-truncate-md {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.td-truncate-lg {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Inline SVG icon inside table cells */
svg.td-icon {
    width: 14px;
    height: 14px;
    vertical-align: middle;
}

/* Flex & spacing utilities */
.flex-1 {
    flex: 1;
}

.mb-1 {
    margin-bottom: 5px;
}

.mb-2 {
    margin-bottom: 6px;
}

/* ── Project-wide: remove button outline and focus box-shadow ── */
button:focus,
button:focus-visible,
button:active,
input[type="button"]:focus,
input[type="button"]:focus-visible,
input[type="submit"]:focus,
input[type="submit"]:focus-visible,
input[type="reset"]:focus,
input[type="reset"]:focus-visible,
[role="button"]:focus,
[role="button"]:focus-visible,
.btn:focus,
.btn:focus-visible,
.btn.focus,
.btn:active:focus,
.btn:not(:disabled):not(.disabled):active:focus,
.show > .btn.dropdown-toggle:focus,
.close:focus,
.close:focus-visible,
button.close:focus,
button.close:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}
.tcc-locked-bar{
    border:1px solid #eee;
    padding:20px;
    margin:15px;
    border-radius:10px;
    display:flex;
   text-align:center;
    flex-direction:column;
    gap:15px;
}
