body {
    background: #f4f6fb;
}

.cc-shell {
    height: calc(100vh - 78px);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    background: #f4f6fb;
    overflow: hidden;
}

.cc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
}

.cc-header h1 {
    margin: 0;
    color: #172033;
    font-size: 20px;
    font-weight: 800;
}

.cc-header p {
    margin: 2px 0 0;
    color: #667085;
    font-size: 12px;
}
/*
.cc-header-actions,
.cc-filter-panel {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
} */

.cc-filter-panel {
    display: none;
    padding: 8px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
}

.cc-filter-panel.open {
    display: flex;
}

/*
.cc-field,
.cc-search {
    min-height: 34px;
    border: 1px solid #ced8e6;
    border-radius: 6px;
    background: #fff;
    color: #1f2937;
    font-size: 13px;
    padding: 6px 9px;
    outline: none;
} 

.cc-field {
    min-width: 150px;
}

.cc-search {
    width: 210px;
} */

.cc-textarea {
    min-height: 84px;
    width: 100%;
    resize: vertical;
}

/*
.cc-btn,
.cc-action-btn {
    min-height: 34px;
    border: 1px solid #cfd8e5;
    border-radius: 6px;
    background: #fff;
    color: #243044;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 10px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
} 

.cc-btn:hover,
.cc-action-btn:hover {
    background: #f6f8fc;
}

.cc-btn.primary,
.cc-action-btn.primary {
    border-color: #275bd8;
    background: #275bd8;
    color: #fff;
}

.cc-btn.danger,
.cc-action-btn.danger {
    border-color: #c33a3a;
    background: #c33a3a;
    color: #fff;
}

.cc-file-action {
    position: relative;
    overflow: hidden;
}

.cc-file-action input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
*/

.cc-quick-wrap.open .cc-quick-menu {
    display: flex;
}
.cc-quick-wrap {

    position: relative;

    display: inline-flex;

    align-items: center;

    flex: 0 0 auto;

    z-index: 9999;
}



.cc-alert {
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
}

.cc-alert.success {
    border: 1px solid #b9e4c5;
    background: #edf9f0;
    color: #146c2e;
}

.cc-alert.error {
    border: 1px solid #efc0c0;
    background: #fff1f1;
    color: #a32626;
}

.cc-grid-wrap {
    flex: 1;
    min-height: 0;
    overflow: auto;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
}

.cc-grid {
    width: max-content;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.cc-grid th {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 42px;
    padding: 0 10px;
    border-bottom: 1px solid #dbe3ef;
    background: #eef3f8;
    color: #1f2a44;
    font-size: 11px;
    font-weight: 800;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.cc-grid td {
    height: 48px;
    max-width: 240px;
    padding: 7px 10px;
    border-bottom: 1px solid #edf1f6;
    color: #334155;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cc-grid tbody tr:hover td {
    background: #f8fbff;
}

.pin-checkbox {
    position: sticky;
    left: 0;
    z-index: 40;
    width: 42px;
    min-width: 42px;
    text-align: center;
    background: inherit;
}

.pin-lead {
    position: sticky;
    left: 42px;
    z-index: 35;
    min-width: 210px;
    max-width: 210px;
    background: inherit;
    border-right: 1px solid #dbe3ef;
}

thead .pin-checkbox,
thead .pin-lead {
    z-index: 60;
    background: #eef3f8;
}

.cc-grid th:not(.pin-checkbox):not(.pin-lead),
.cc-grid td:not(.pin-checkbox):not(.pin-lead) {
    min-width: 140px;
}

.cc-link {
    border: 0;
    background: transparent;
    color: #2451d6;
    font-weight: 800;
    padding: 0;
    cursor: pointer;
}

.cc-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 9px;
    border-radius: 999px;
    background: #eaf1ff;
    color: #204eb8;
    font-size: 12px;
    font-weight: 800;
}

.cc-comment {
    min-width: 260px;
}

.cc-action-col {
    position: sticky;
    right: 0;
    z-index: 30;
    min-width: 210px;
    background: inherit;
    box-shadow: -1px 0 0 #dbe3ef;
}

thead .cc-action-col {
    z-index: 55;
    background: #eef3f8;
}

.cc-row-actions {
    display: flex;
    gap: 5px;
}

.cc-row-actions button {
    height: 28px;
    border: 0;
    border-radius: 5px;
    background: #eef3f8;
    color: #23324b;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.cc-row-actions button:hover {
    background: #dfe9f5;
}

.cc-empty {
    padding: 48px !important;
    text-align: center;
    color: #64748b;
}

.cc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    font-size: 13px;
}

.cc-pages {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cc-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 24, 39, .45);
}

.cc-modal {
    width: min(560px, calc(100vw - 24px));
    max-height: calc(100vh - 32px);
    overflow: auto;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(15, 23, 42, .24);
}

.cc-modal header,
.cc-modal footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid #e3e9f1;
}

.cc-modal footer {
    border-top: 1px solid #e3e9f1;
    border-bottom: 0;
    justify-content: flex-end;
}

.cc-modal h2 {
    margin: 0;
    color: #172033;
    font-size: 18px;
}

.form-stack {
    display: grid;
    gap: 12px;
    padding: 14px;
}

.form-stack label {
    display: grid;
    gap: 5px;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}

.check-row {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.cc-muted {
    color: #64748b;
    font-size: 13px;
}

@media (max-width: 900px) {
    .cc-shell {
        height: auto;
        min-height: calc(100vh - 78px);
        overflow: visible;
    }

   /* .cc-header {
        align-items: flex-start;
        flex-direction: column;
    } */

    .cc-search {
        width: 100%;
    }
}


/* =========================================================
TOP SECTION
========================================================= */

.cc-top-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}


/* =========================================================
ROW 1 : STAGE CARDS
========================================================= */

.cc-stage-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.cc-stage-card {
    height: 34px;
    border: none;
    border-radius: 18px;
    padding: 0 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition: .18s ease;

    color: #fff;

    font-size: 16px;
    font-weight: 700;

    box-shadow: 0 8px 24px rgba(15,23,42,.08);
}

.cc-stage-card:hover {
    transform: translateY(-2px);
}

.cc-stage-card.active {
    background: linear-gradient(135deg,#5961f9,#7b82ff);
}

.cc-stage-card.new {
    background: linear-gradient(135deg,#00b894,#00d2a0);
}

.cc-stage-card.qualified {
    background: linear-gradient(135deg,#0984e3,#36a2ff);
}

.cc-stage-card.invalid {
    background: linear-gradient(135deg,#e17055,#ff9478);
}

.cc-stage-card.callback {
    background: linear-gradient(135deg,#6c5ce7,#8c7bff);
}


/* =========================================================
ROW 2 : TOOLBAR
========================================================= */

.cc-toolbar-row {

    display: flex !important;

    align-items: center;
    position: relative;

    gap: 6px !important;

    flex-wrap: nowrap;

    overflow: visible !important;

    padding: 8px 10px !important;

    background: #fff;

    border: 1px solid #dbe3ef;

    border-radius: 16px;
}


/* =========================================================
LEFT TOOLBAR
========================================================= */

.cc-toolbar-left {

    display: flex !important;

    align-items: center;

    gap: 10px;

    flex-wrap: nowrap;
}


/* =========================================================
RIGHT TOOLBAR
========================================================= */

.cc-toolbar-right {

    display: flex !important;
     overflow: visible !important;

    align-items: center;

    gap: 10px;

    margin-left: auto;

    flex-wrap: nowrap;
}



.cc-toolbar-btn.primary {
    background: #4f5fff;
    color: #fff;
    border-color: #4f5fff;
}

.cc-toolbar-btn.primary:hover {
    background: #3f4ff5;
}


/* =========================================================
QUICK MENU
========================================================= */


.cc-quick-menu {

    position: absolute;

    top: 58px;

    right: 190px;

    width: 230px;

    background: #ffffff;

    border-radius: 16px;

    padding: 10px;

    border: 1px solid #dce4f1;

    display: flex;
    flex-direction: column;
    gap: 8px;

    z-index: 999999;

    box-shadow:
        0 18px 40px rgba(15,23,42,.18);

    animation: quickMenu .18s ease;
}

@keyframes quickMenu {

    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.cc-quick-menu button,
.cc-quick-file {
    height: 42px;

    border: none;
    border-radius: 10px;

    background: transparent;

    padding: 0 14px;

    display: flex;
    align-items: center;

    font-size: 13px;
    font-weight: 600;

    color: #24324a;

    cursor: pointer;
}

.cc-quick-menu button:hover,
.cc-quick-file:hover {
    background: #f4f7fc;
}

.cc-quick-file input {
    display: none;
}


/* =========================================================
RESPONSIVE
========================================================= */



@media (max-width: 900px) {

    .cc-stage-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .cc-select {
        min-width: 160px;
    }

    .cc-search-box {
        width: 100%;
    }
}



/* =========================================================
AUTO WIDTH FILTERS
========================================================= */

.cc-select {

    width: fit-content !important;

    min-width: 0 !important;

    max-width: 180px;

    padding-right: 10px !important;

    flex: 0 0 auto;

    height: 36px !important;

    font-size: 11px !important;

    border-radius: 9px !important;
}

/* =========================================================
COMPACT BUTTONS
========================================================= */

.cc-toolbar-btn,
.cc-filter-btn {

    height: 38px !important;

    padding: 0 10px !important;

    font-size: 12px !important;

    border-radius: 10px !important;
}

/* =========================================================
SEARCH
========================================================= */

.cc-search-box {

    min-width: 130px !important;

    width: 130px !important;

    height: 38px !important;

    padding: 0 8px !important;

    font-size: 12px !important;

    border-radius: 10px !important;
}

/* =========================================================
FILTER COUNT
========================================================= */

.cc-filter-btn span {

    width: 18px !important;
    height: 18px !important;

    font-size: 10px !important;
}

/* =========================================================
STAGE CARDS COMPACT
========================================================= */

.cc-stage-card {

    height: 34px !important;

    padding: 0 18px !important;

    font-size: 13px !important;

    border-radius: 14px !important;
}

/* =========================================================
TOP SECTION GAP
========================================================= */

.cc-top-section {
    gap: 6px !important;
}

/* =========================================================
REMOVE HORIZONTAL SCROLL
========================================================= */

.cc-toolbar-row::-webkit-scrollbar {
    display: none;
}

/* =========================================================
LEAD IMPORT MODAL
========================================================= */

.cc-lead-import-modal {
    width: 860px;
    max-width: 96vw;
    max-height: 92vh;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border-radius: 14px;

    background: #fff;

    box-shadow: 0 25px 60px rgba(15,23,42,.22);

    animation: ccFade .18s ease;
}

/* =========================================================
HEADER
========================================================= */

.cc-lead-import-header {

    height: 58px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 18px;

    background: linear-gradient(135deg,#2d6db2,#4185cf);

    color: #fff;
}

.cc-lead-import-header h2 {

    margin: 0;

    font-size: 20px;

    font-weight: 700;
}

.cc-lead-import-close {

    width: 34px;
    height: 34px;

    border: none;

    border-radius: 8px;

    background: rgba(255,255,255,.16);

    color: #fff;

    font-size: 22px;

    cursor: pointer;
}

/* =========================================================
BODY
========================================================= */

.cc-lead-import-body {

    flex: 1;

    overflow-y: auto;

    padding: 16px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 16px;
}

/* =========================================================
BLOCK
========================================================= */

.cc-lead-import-block {

    display: flex;

    flex-direction: column;

    gap: 7px;
}

.cc-lead-import-center {

    grid-column: span 2;

    display: flex;

    justify-content: center;
}

/* =========================================================
LABEL
========================================================= */

.cc-lead-import-label {

    font-size: 14px;

    font-weight: 700;

    color: #24324a;
}

/* =========================================================
SELECT
========================================================= */

.cc-lead-import-select {

    width: 100%;

    height: 40px;

    border: 1px solid #d8e0ec;

    border-radius: 8px;

    padding: 0 12px;

    outline: none;

    background: #fff;

    color: #24324a;

    font-size: 13px;
}

/* =========================================================
TEXTAREA
========================================================= */

.cc-lead-import-textarea {

    width: 100%;

    min-height: 70px;

    resize: vertical;

    border: 1px solid #d8e0ec;

    border-radius: 8px;

    padding: 10px 12px;

    outline: none;

    font-size: 13px;
}

/* =========================================================
FILE BUTTON
========================================================= */

.cc-lead-import-file-btn {

    position: relative;

    width: 220px;

    height: 42px;

    border-radius: 10px;

    background: #244c7c;

    color: #fff;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    overflow: hidden;
}

.cc-lead-import-file-btn input {

    position: absolute;

    inset: 0;

    opacity: 0;

    cursor: pointer;
}

/* =========================================================
DOWNLOAD SAMPLE
========================================================= */

.cc-lead-import-link-btn {

    border: none;

    background: transparent;

    color: #4a6ea9;

    font-size: 15px;

    font-weight: 700;

    cursor: pointer;
}

/* =========================================================
RADIO GROUP
========================================================= */

.cc-lead-import-radio-group {

    display: flex;

    flex-direction: column;

    gap: 10px;
}

.cc-lead-import-radio-group label {

    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 14px;

    color: #24324a;
}

.cc-lead-import-radio-group input {

    width: 16px;
    height: 16px;
}

/* =========================================================
NOTE
========================================================= */

.cc-lead-import-note {

    margin: 0;

    color: #6b7280;

    font-size: 12px;

    line-height: 1.5;
}

/* =========================================================
FOOTER
========================================================= */

.cc-lead-import-footer {

    height: 62px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 10px;

    padding: 0 18px;

    border-top: 1px solid #e6ebf2;

    background: #fff;
}

/* =========================================================
RESPONSIVE
========================================================= */

@media (max-width: 768px) {

    .cc-lead-import-modal {

        width: 96vw;

        max-height: 94vh;
    }

    .cc-lead-import-body {

        grid-template-columns: 1fr;
    }

    .cc-lead-import-center {

        grid-column: span 1;
    }
}
/* OPEN */

.cc-lead-quick-wrap.open .cc-lead-quick-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cc-lead-quick-menu button {
    width: 100%;
    height: 44px;

    border: none;

    border-radius: 10px;

    background: #f8fafc;

    font-size: 14px;
    font-weight: 600;

    color: #1e293b;

    text-align: left;

    padding: 0 14px;

    cursor: pointer;

    transition: all .18s ease;
}

/* HOVER */

.cc-lead-quick-menu button:hover {
    background: #4f46e5;
    color: white;
}

/* ============================= */
/* IMPORT FILE NAME */
/* ============================= */

.cc-import-file-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.cc-import-file-name {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    word-break: break-word;
    max-width: 320px;
}

/* =========================================
   EXPORT MODAL
========================================= */

.cc-export-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cc-export-modal {
    width: 1150px;
    max-width: 98vw;
    max-height: 92vh;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}

/* HEADER */

.cc-export-header {
    height: 64px;
    padding: 0 24px;
    background: linear-gradient(135deg,#2563eb,#1d4ed8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cc-export-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.cc-export-close {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

/* BODY */

.cc-export-body {
    padding: 20px;
    overflow-y: auto;
}

/* SEARCH */

.cc-export-search-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 14px;
    margin-bottom: 18px;
}

/* GRID */

.cc-export-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

/* FIELD */

.cc-export-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cc-export-field label {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}

/* INPUT */

.cc-export-input,
.cc-export-select {
    width: 100%;
    height: 46px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 0 14px;
    font-size: 14px;
    background: #fff;
    outline: none;
}

.cc-export-input:focus,
.cc-export-select:focus {
    border-color: #2563eb;
}

/* SEARCH INPUT */

.cc-export-input.search {
    height: 46px;
}

/* SMALL SELECT */

.cc-export-select.small {
    width: 100%;
}

/* FOOTER */

.cc-export-footer {
    padding: 18px 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #fff;
}

/* BUTTON */

.cc-export-btn {
    min-width: 120px;
    height: 46px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.cc-export-btn.light {
    background: #e2e8f0;
    color: #0f172a;
}

.cc-export-btn.primary {
    background: linear-gradient(135deg,#2563eb,#1d4ed8);
    color: #fff;
}

/* RESPONSIVE */

@media (max-width: 1100px) {

    .cc-export-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width: 768px) {

    .cc-export-grid {
        grid-template-columns: 1fr;
    }

    .cc-export-search-row {
        grid-template-columns: 1fr;
    }

    .cc-export-modal {
        max-height: 96vh;
    }
}
