.clp-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: #1a202c;
    letter-spacing: -0.3px;
}

.clp-subtitle {
    font-size: 0.84rem;
    color: #6b7280;
    font-weight: 400;
}

.clp-header-actions {
    gap: 10px;
}

.select2-container .select2-selection--single {
    padding-left: 0px !important;
    color: #111827 !important;
    font-size: clamp(13px, 1.2vw, 15px) !important;
}

/* Prevent Select2's JS from offsetting the open dropdown horizontally */

/* Add Community button */
.clp-btn-add {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--mc-primary, #6366f1);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    transition: background 0.18s, transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.18);
    white-space: nowrap;
}

.clp-btn-add:hover {
    background: var(--mc-primary-dark, #4f46e5);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.28);
}

.clp-btn-add-icon {
    font-size: 0.75rem;
}

/* Danger icon button (bulk delete) */
.clp-btn-icon-danger {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #fecaca;
    background: #fff5f5;
    color: #ef4444;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s;
    font-size: 0.8rem;
}

.clp-btn-icon-danger:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

/* ── Main Card ── */

.clp-card {
    /* background: #ffffff;
     border: 1px solid #e5e9ef;
     box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06); */
    border-radius: 12px;
    overflow: hidden;

}

/* ── Filter Bar ── */
.clp-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    /* padding: 18px 20px; */
    /* background: #ffffff; */
    border-bottom: none;
    /* border-radius: 12px;
     border: 1px solid #e2e8f0; */

}

.clp-filters-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.clp-filters-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Pill-style select wrapper */
.clp-select-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 8px;
    gap: 4px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.clp-select-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
    pointer-events: none;
}

.clp-select {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.78rem;
    font-weight: 500;
    color: #374151;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 16px;
    cursor: pointer;
    min-width: 60px;
}

.clp-select-arrow {
    font-size: 0.6rem;
    color: #9ca3af;
    pointer-events: none;
    margin-left: -12px;
}

/* Search input */
.clp-search-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.clp-search-icon {
    position: absolute;
    left: 11px;
    font-size: 0.75rem;
    color: #9ca3af;
    pointer-events: none;
}

.clp-search-input {
    height: 40px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0 14px 0 30px;
    font-size: 0.8rem;
    color: #374151;
    background: #f1f5f9;
    width: 220px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.clp-search-input::placeholder {
    color: #9ca3af;
}

.clp-search-input:focus {
    border-color: #c21e39;
    box-shadow: 0 0 0 3px rgba(194, 30, 57, 0.12);
}

/* Export CSV button */
.clp-btn-export {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, box-shadow 0.15s;
    white-space: nowrap;
}

.clp-btn-export:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}

.clp-export-icon {
    color: #22c55e;
    font-size: 0.82rem;
}

.common-btn {
    height: clamp(40px, 4vw, 50px);
    min-width: clamp(40px, 4vw, 50px);
    color: #545454;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    line-height: 1;
    font-size: clamp(12px, 1vw, 14px);
    font-weight: 500;
    border: 2px solid #e1e1e1 !important;
    padding: clamp(4px, 0.8vw, 5px) clamp(12px, 2vw, 20px);
}

.common-btn img {
    height: clamp(16px, 1.5vw, 20px);
    width: clamp(16px, 1.5vw, 20px);
}

.edit-icon1 {
    width: clamp(12px, 2vw, 15px) !important;
    height: clamp(12px, 2vw, 15px) !important;
}

.cm-tabs1 .cm-tab-item {
    padding: 15px 0px !important;
    font-size: 16px !important;
}

.cm-tabs1 .active a.cm-tab-item {
    color: #2563eb !important;
}

.cm-tabs1 li:hover a.cm-tab-item {
    color: #2563eb !important;
}

.cm-tabs1 .cm-tab-item img {
    width: 20px;
    height: auto;
    filter: brightness(0) saturate(100%) invert(48%) sepia(18%) saturate(304%) hue-rotate(182deg) brightness(87%) contrast(87%);
}

.cm-tabs1 .cm-tab-item:hover img {
    filter: brightness(0) saturate(100%) invert(38%) sepia(40%) saturate(6893%) hue-rotate(207deg) brightness(97%) contrast(107%);
}

.cm-tabs1 .cm-tab-item.active img {
    filter: brightness(0) saturate(100%) invert(38%) sepia(40%) saturate(6893%) hue-rotate(207deg) brightness(97%) contrast(107%);
}

.cm-tabs1 .active a img {
    filter: brightness(0) saturate(100%) invert(38%) sepia(40%) saturate(6893%) hue-rotate(207deg) brightness(97%) contrast(107%);
}

.common-btn:hover {
    /* transform: translateY(-1px); */
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.theme-btn {
    background-color: #0d6efd !important;
    border: 2px solid #0d6efd !important;
}

/* ── Table rows ── */

/*qmi-filter-bar css code start*/
.qmi-filter-bar .select2,
.qmi-filter-bar .custom-search,
.qmi-filter-bar .date-input-wrap {
    height: clamp(44px, 4vw, 50px) !important;
    border: 2px solid #e7e9ed !important;
    font-size: clamp(13px, 1.2vw, 15px) !important;
    padding: clamp(10px, 1.5vw, 14px) clamp(12px, 2vw, 18px) !important;
    color: #545454 !important;
    text-transform: capitalize !important;
    font-weight: 500 !important;
    transition: all 0.15s ease;
    box-shadow: none !important;
    background: #ffffff !important;
    border-radius: 8px !important;
}

/*qmi-filter-bar css code end*/



/* ── Status badge base style (community list only) ── */
.clp-badge-status {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    font-size: 0.775rem;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid transparent;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* ── Select2 overrides inside .clp-select-wrap ─────────────────
           Remove Select2's own background, border, and padding so it
           blends into the pill wrapper cleanly. Label stays left-aligned
           and vertically centered via the flex wrapper.
        ──────────────────────────────────────────────────────────────── */

/* Remove Select2 selection box border & background */
.clp-select-wrap .select2-container--default .select2-selection--single {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    padding: 0;
}

/* Left-align and vertically center the selected text */
.clp-select-wrap .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: normal !important;
    padding-left: 0 !important;
    padding-right: 20px !important;
    color: #374151 !important;
    font-weight: 500 !important;
    font-size: clamp(13px, 1.2vw, 15px) !important;
}

.clp-name-primary,
.clp-name-sub {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Dropdown open: styled cleanly (width set via JS above) ── */
.clp-select-wrap {
    overflow: visible !important;
    /* don't clip the open dropdown */
}

/* Spacious rows — matches Leads screenshot */


/* ── Community name cell + avatar ── */
.clp-name-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Initials avatar circle */
.clp-avatar {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    text-transform: uppercase;
    line-height: 1;
}

/* Text stack beside avatar */
.clp-name-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.clp-name-primary {
    font-weight: 600;
    font-size: clamp(13px, 0.8vw + 6px, 15px);
    color: #111827;
    line-height: 1.3;
}

.clp-name-sub {
    font-size: 12px;
    color: #6b7280;
    font-weight: 400;
}

/* ── Status / Visibility badges ── */
.clp-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
}

.clp-badge-status {
    background-color: #ede9fe;
    color: #5b21b6;
    border: 1px solid rgba(91, 33, 182, 0.12);
}

/* Legacy badge still used in some places */
.badge-soft-primary {
    background-color: #eef2ff;
    color: #4f46e5;
    border: 1px solid rgba(79, 70, 229, 0.15);
    border-radius: 20px;
    font-size: 11px;
}

.clp-text-muted {
    color: #a0aec0;
    font-size: 0.8rem;
}

/* ── Visibility dot + label ── */
.clp-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    margin-right: 7px;
}

.clp-dot-active {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.clp-dot-inactive {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

.clp-vis-active {
    font-size: 0.83rem;
    font-weight: 600;
    color: #16a34a;
}

.clp-vis-inactive {
    font-size: 0.83rem;
    font-weight: 600;
    color: #dc2626;
}

/* ── Action buttons ── */
.btn-gallery-action {
    width: clamp(26px, 2vw, 32px);
    height: clamp(26px, 2vw, 32px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    border: 1px solid #dbdbdb;
    color: #545454;
    background: #fff;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.78rem;
}

.btn-gallery-action img {
    height: clamp(14px, 1.2vw, 18px);
    width: clamp(14px, 1.2vw, 18px);
}

.btn-gallery-action.delete img {
    filter: brightness(0) saturate(100%) invert(44%) sepia(62%) saturate(5156%) hue-rotate(338deg) brightness(99%) contrast(90%);
}

.btn-gallery-action.edit img {
    filter: brightness(0) saturate(100%) invert(48%) sepia(34%) saturate(4626%) hue-rotate(193deg) brightness(100%) contrast(97%);
}

.btn-gallery-action.details img {
    filter: brightness(0) saturate(100%) invert(18%) sepia(25%) saturate(7462%) hue-rotate(219deg) brightness(96%) contrast(95%);
}


tbody .btn-gallery-action i {
    font-size: 14px;
}

.theme-btn img {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7475%) hue-rotate(100deg) brightness(100%) contrast(106%);
}

/* ══ DataTable Footer — pure white background ══ */
.clp-dt-footer {
    padding: 16px 20px;
    font-size: 0.825rem;
    color: #718096;
    font-weight: 400;
    flex-wrap: wrap;
    border-top: 2px solid #f5f6f8 !important;
}

/* ── Footer left: length-change + info grouped together ── */
.clp-dt-left {
    display: inline-flex;
    align-items: center;
    gap: 0;
    /* gap is handled by the text itself */
    flex-wrap: nowrap;
}

/* "Showing" label before the select */
.clp-dt-left .dataTables_length label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 0.825rem;
    font-weight: 400;
    color: #718096;
    white-space: nowrap;
}

/* Hide the default "Show X entries" text — we rebuild it via info */
.clp-dt-left .dataTables_length label::before {
    content: "Showing";
    font-size: clamp(11px, 0.9vw, 13px);
    font-weight: 400;
    color: #718096;
}

/* The <select> inside length-change */
.clp-dt-left .dataTables_length select {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 26px 0 10px;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    background: transparent;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    min-width: 64px;
}

/* When select2 is applied we can hide this native select */
.clp-dt-left .dataTables_length select.select2-hidden-accessible {
    display: none !important;
}

.clp-dt-left .dataTables_length select:focus {
    border-color: var(--mc-primary, #6366f1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

/* Hide DataTables own "entries" text after the select (we show it via info) */
.clp-dt-left .dataTables_length label>span:last-child {
    display: none;
}

/* Info text — "of 100 entries" */
.clp-dt-left .dataTables_info {
    font-size: 0.825rem;
    color: #718096;
    font-weight: 400;
    padding: 0;
    white-space: nowrap;
}

/* Override wrapper background that may bleed through */








div table.dataTable thead .sorting:before,
div table.dataTable thead .sorting_asc:before,
div table.dataTable thead .sorting_desc:before {
    left: 6px !important;
    content: "\f0de" !important;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    opacity: 0.3;
    top: 3px;
}

div table.dataTable thead .sorting:after,
div table.dataTable thead .sorting_asc:after,
div table.dataTable thead .sorting_desc:after {
    left: 6px !important;
    content: "\f0dd" !important;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    opacity: 0.3;
    top: 3px;
}

table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_desc:after {
    opacity: 1 !important;
    color: var(--mc-primary, #6366f1);
}



/* Processing / loader styles now handled globally in datatable-global.css */


/* Override hub.css default 6px table margins */
table.dataTable {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Utility helpers */
.fw-500 {
    font-weight: 500;
}

.fw-600 {
    font-weight: 600;
}

.fw-700 {
    font-weight: 700;
}

.fs-11 {
    font-size: 11px;
}

.fs-12 {
    font-size: 12px;
}

.font-weight-500 {
    font-weight: 500;
}

.shadow-xs {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

@media (max-width:470px) {

    .clp-dt-left .dataTables_info,
    .clp-dt-footer .dataTables_info,
    div.dataTables_wrapper div.dataTables_info {
        margin-left: 0px !important;
    }

    .qmi-filter-bar #btn-reset {
        margin-right: auto;
    }
}

/* ══════════════════════════════════════════════════════════════
    View Toggle Group (shared by Community & Home Design)
    ══════════════════════════════════════════════════════════════ */
.view-toggle-group {
    background: #e3e6e9;
    border: 2px solid #e3e6e9;
    padding: clamp(4px, 1vw, 5px);
    align-items: center;
    height: clamp(40px, 4vw, 50px);

}

.view-toggle-group img {
    width: clamp(18px, 1.2vw, 20px);
    height: clamp(18px, 1.2vw, 20px);
}

.btn-view-toggle {
    width: 34px;
    height: 30px;
    border: none;
    background: transparent;
    border-radius: 6px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-view-toggle:hover {
    color: #6b7280;
}

.btn-view-toggle.active {
    background: #ffffff;
    color: #0d6efd;
}

.btn-view-toggle.active img {
    filter: brightness(0) saturate(100%) invert(28%) sepia(69%) saturate(2876%) hue-rotate(209deg) brightness(99%) contrast(101%);
}

/* ══════════════════════════════════════════════════════════════
    Filter Bar – search field, reset button, toggle
    ══════════════════════════════════════════════════════════════ */
.qmi-filter-bar.active {
    display: flex;
}



#filterToggle {
    display: none;
}



.qmi-filter-bar .form-control::placeholder {
    color: #a1a1aa !important;
}

.qmi-filter-bar .form-control:focus {
    box-shadow: none !important;
}


#bulk-delete-btn.clp-icon-btn:hover {
    color: #fff !important;
    background-color: #ef4444 !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}



@media screen and (max-width:1200px) {
    .filter-sec {
        flex-wrap: wrap;
        gap: 10px;
        flex-wrap: wrap-reverse;
    }

    .filter-sec .action-container {
        width: 100%;
    }

    .filter-sec .action-container #btn-export {
        margin-left: auto !important;
    }
}


@media (max-width: 520px) {
    .qmi-filter-bar {
        flex-direction: column;
    }

    .dropdown-filter {
        flex-direction: column;
    }

    .dropdown-filter .clp-select-wrap {
        width: 100%;
    }

    .filter-sec .action-container .add-page span,
    .filter-sec .action-container #btn-export span {
        display: none;
    }
}

/* ══════════════════════════════════════════════════════════════
    Grid Overlay Actions (shared)
    ══════════════════════════════════════════════════════════════ */
.qmi-card-image-wrap {
    position: relative;
}

.qmi-card-hover-actions {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 5;
}

.qmi-card:hover .qmi-card-hover-actions {
    opacity: 1;
}

.qmi-action-icon {
    width: 38px;
    height: 38px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    transition: all 0.2s;
    text-decoration: none !important;
}

.qmi-action-icon:hover {
    transform: scale(1.1);
    background: white;
}

.qmi-action-icon.edit:hover {
    color: #2563eb;
}

.qmi-action-icon.delete:hover {
    color: #ef4444;
}

/* Checkbox Overlay */
.qmi-card-checkbox-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
}

.qmi-card-checkbox-overlay .custom-checkbox .custom-control-label::before {
    border-color: rgba(255, 255, 255, 0.5);
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
}

.qmi-card-checkbox-overlay .custom-control-input:checked~.custom-control-label::before {
    background-color: var(--qmi-primary);
    border-color: var(--qmi-primary);
}

/* Card Specs */
.qmi-card-specs {
    display: flex;
    gap: 15px;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid #f3f4f6;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
}

.qmi-spec-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* No results text */
.clp-no-results-text {
    font-size: 16px;
    font-weight: 500;
}

/* ══════════════════════════════════════════════════════════════
    Home Design List – specific styles
    ══════════════════════════════════════════════════════════════ */
.hdl-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.hdl-dot-active {
    background: #48bb78;
}

.hdl-dot-inactive {
    background: #fc8181;
}

.hdl-card-header-col {
    flex-direction: column;
    align-items: flex-start;
}

.hdl-card-title-sm {
    margin-bottom: 4px;
}

.hdl-card-plan-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
}

/* ══════════════════════════════════════════════════════════════
    Model Home List – specific styles
    ══════════════════════════════════════════════════════════════ */
.mhl-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.mhl-dot-online {
    background: #48bb78;
}

.mhl-dot-offline {
    background: #fc8181;
}

.mhl-badge-design {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

@media screen and (max-width: 600px) {
    .title-part .common-btn span {
        display: none !important;
    }
}



/* View Toggle Group */
.btn-view-toggle {
    width: 34px;
    height: 30px;
    border: none;
    background: transparent;
    border-radius: 6px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-view-toggle:hover {
    color: #6b7280
}

.btn-view-toggle.active {
    background: #ffffff;
    color: #0d6efd;
}



.qmi-filter-bar.active {
    display: flex;
}

#filterToggle {
    display: none;
}


.qmi-filter-bar #btn-reset {
    background: #e7e9ed !important;
    color: #111827 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    box-shadow: none !important;
}

.qmi-filter-bar #btn-reset:hover {
    background: #0d6efd !important;
    color: #FFF !important;
    box-shadow: none !important;
}



@media (max-width: 991px) {


    .qmi-filter-bar.active {
        display: flex;
    }

    #filterToggle {
        display: inline-flex;
    }

    .qmi-filter-bar .d-flex.align-items-center.ml-auto {
        margin-left: 0 !important;
        margin-top: 10px;
        width: 100%;
        justify-content: flex-end;
    }



    .qmi-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
}

@media (max-width: 600px) {

    .qmi-grid {
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 1rem !important;
    }

}

/* Per-Community Status Bar (Mini) */
.qmi-community-status-container {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
    margin-bottom: 0px;
}

.qmi-status-bar-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.qmi-status-bar-labels span {
    font-size: 10px;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

.qmi-status-bar-progress {
    height: 8px;
    background: #f1f5f9;
    border-radius: 10px;
    display: flex;
    overflow: hidden;
    margin-bottom: 8px;
}

.qmi-progress-segment {
    height: 100%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.qmi-progress-segment.unsold {
    background: #10b981;
}

.qmi-progress-segment.sold {
    background: #3b82f6;
}

.qmi-status-bar-legend {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.qmi-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
}

.qmi-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.qmi-legend-dot.unsold {
    background: #10b981;
}

.qmi-legend-dot.sold {
    background: #3b82f6;
}

/* Hover Actions on Grid Cards */
.qmi-card-hover-actions {
    position: absolute;
    /* bottom: 12px;
                right: 12px; */
    display: flex;
    gap: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 20;
}

.qmi-card:hover .qmi-card-hover-actions {
    opacity: 1;
    transform: translateY(0);
}


.qmi-action-icon:hover {
    transform: translateY(-2px);
    color: white !important;
}

.qmi-action-icon.edit:hover {
    background: #2E90FA !important;
}

.qmi-action-icon.delete:hover {
    background: #ef4444 !important;
}

/* Checkbox Overlay */
.qmi-card-checkbox-overlay {
    position: absolute;
    z-index: 30;
}

.qmi-card-checkbox-overlay input[type="checkbox"] {
    background: white;
    border-color: #FFF
}

.qmi-card-checkbox-overlay .custom-control {
    padding-left: 0 !important;
    margin: 0 !important;
    min-height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.qmi-card-checkbox-overlay .custom-control-label {
    margin: 0 !important;
    cursor: pointer !important;
    width: 1.25rem !important;
    height: 1.25rem !important;
    position: relative !important;
}

.qmi-card-checkbox-overlay .custom-control-label::before,
.qmi-card-checkbox-overlay .custom-control-label::after {
    top: 0 !important;
    left: 0 !important;
    margin: 0 !important;
    width: 1.25rem !important;
    height: 1.25rem !important;
}

/* Status Badges */
.qmi-status-badge.active {
    background: #10b981 !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    z-index: 99;
}

.qmi-status-badge.inactive {
    background: #ef4444 !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    z-index: 99;
}

/* List View Table Specific */
.table.community-list td {
    vertical-align: middle;
}

#listViewContainer .details-control a.aLots {
    background: #e0ecff !important;
    display: flex;
    justify-content: space-between;
    gap: 3px;
}

#listViewContainer .details-control a.aLots span {
    padding: 2px 8px;
    font-size: 11px;
    width: 25px;
    height: 25px;
    justify-content: center;
    align-items: center;
    display: flex;
    line-height: 1;
}

#listViewContainer table table thead th {
    border: 0 none !important;
}

#listViewContainer table table tbody td {
    border: 0 none !important;
    border-bottom: 2px solid #f5f6f8 !important;
    background: transparent !important;
}

#listViewContainer table table tbody tr::before {}

#listViewContainer table table thead th:first-child {
    border-radius: 8px 0px 0px 0px !important;
}

#listViewContainer table table thead th:last-child {
    border-radius: 0px 8px 0px 0px !important;
}

#listViewContainer tbody .shown+tr td {
    background: #f5f6f8 !important;
}

#listViewContainer tbody .shown+tr td tbody tr td {
    background: #FFF !important;
}

#listViewContainer tbody .shown+tr tbody .btn:hover img {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7482%) hue-rotate(75deg) brightness(99%) contrast(106%);
}

#listViewContainer tbody .shown+tr tbody tr:last-child td {
    border-radius: 0px 0px 12px 12px !important;
}

#listViewContainer .shown+tbody tr:last-child td:first-child {
    background: #f5f6f8 !important;
}

#listViewContainer .shown+