/* ─────────────────────────────────────────────────────────────────
   ClickDeck customer-area theme
   Loaded once via _LayoutCustomerSite.cshtml so every customer-site
   page (Order list, Profile, Change Password, DeckboardOptions,
   PaverOptions, Detail pages, etc.) shares the same brand visuals:
       • White cards, #e8e9ed border, 10px radius, soft two-layer shadow
       • Yellow #fede00 accent — pill buttons + table-header strip + page-title underline
       • Light-grey gradient table headers with yellow accent strip on
         the left edge (same as the .qs-card-header on Drawing/QuoteSummary)
       • #f0f0f0 row dividers, #fafafa hover tint
       • Active tab = yellow pill with shadow lift
   Scoped under .myquote-page so it never bleeds into the Admin area
   or other layouts.
   ──────────────────────────────────────────────────────────────── */

/* ── Card containers ─────────────────────────────────────────────── */
.myquote-page .pageBox.whitepagebox {
    border-radius: 10px;
    border: 1px solid #e8e9ed;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    padding: 22px 22px 12px;
    transition: box-shadow 0.18s ease;
}
.myquote-page .pageBox.whitepagebox:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
}

/* ── Pill tab row ────────────────────────────────────────────────── */
.myquote-page .ordertabing_header {
    padding: 14px 0 18px;
    display: flex;
    justify-content: center;
}
.myquote-page .ordertabing_header ul {
    display: flex;
    gap: 14px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}
.myquote-page .ordertabing_header ul li {
    cursor: pointer;
    padding: 12px 28px;
    border-radius: 60px;
    background: #1e1e1e;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
    border: none;
}
.myquote-page .ordertabing_header ul li:hover { transform: translateY(-1px); }
.myquote-page .ordertabing_header ul li.active {
    background: #fede00;
    color: #1e1e1e;
    box-shadow: 0 6px 16px rgba(254,222,0,0.32);
}

/* ── Search box (DataTables filter) ──────────────────────────────── */
/* Right-aligned like /Admin: the container right-aligns its content and the
   label is inline-flex (shrinks to content) so the box hugs the right edge. */
.myquote-page .dataTables_filter { padding-bottom: 9px; padding-right: 0; text-align: right; }
.myquote-page .dataTables_info { padding-left: 0; }
.myquote-page .dataTables_paginate { float: right; padding-right: 0; }
.myquote-page .proListTableOuter { overflow: visible; }
.myquote-page .dataTables_filter label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1e1e1e;
    font-weight: 600;
    font-size: 0.9rem;
}
.myquote-page .dataTables_filter input[type="search"] {
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: #fff;
    padding: 8px 12px;
    min-width: 220px;
    box-shadow: none;
    outline: none;
}
.myquote-page .dataTables_filter input[type="search"]:focus {
    border-color: #fede00;
    box-shadow: 0 0 0 3px rgba(254,222,0,.15);
}

/* Admin-style search box — magnifying-glass icon INSIDE the input, no
   "Search:" label, right-aligned. Takes effect once decorateSearchBox()
   (dt-search-enhancements.js) strips the label text and wraps the input
   in .cd-search-wrap. Mirrors admin-list.css → .search-wrap. */
.myquote-page .dataTables_filter.cd-search-styled label { gap: 0; margin: 0; }
.myquote-page .cd-search-wrap { position: relative; display: inline-block; }
.myquote-page .cd-search-wrap .bi-search {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.95rem;
    line-height: 1;
    pointer-events: none;
}
.myquote-page .dataTables_filter .cd-search-wrap input[type="search"] {
    padding-left: 32px;
}

/* ── Data tables ─────────────────────────────────────────────────── */
.myquote-page table.dataTable,
.myquote-page table.table {
    border: none !important;
    margin-top: 6px;
    position: relative;
}
.myquote-page table.dataTable thead th,
.myquote-page table.table thead th,
.myquote-page .proListTableOuter tr th {
    background: linear-gradient(180deg, #fafbfc 0%, #f3f4f6 100%) !important;
    color: #1e1e1e !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    padding: 13px 18px !important;
    border: none !important;
    border-bottom: 1px solid #e8e9ed !important;
    white-space: nowrap;
}
.myquote-page table.dataTable thead th:first-child,
.myquote-page table.table thead th:first-child {
    border-top-left-radius: 10px;
    padding-left: 22px;
    position: relative;
}
.myquote-page table.dataTable thead th:first-child::before,
.myquote-page table.table thead th:first-child::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #fede00;
}
.myquote-page table.dataTable thead th:last-child { border-top-right-radius: 10px; }
.myquote-page table.dataTable tbody td,
.myquote-page table.table tbody td {
    padding: 12px 18px !important;
    font-size: 13px;
    color: #1e1e1e;
    border-top: 1px solid #f0f0f0 !important;
    background: #fff !important;
    vertical-align: middle;
    transition: background 0.12s ease;
}
.myquote-page table.dataTable tbody td:first-child,
.myquote-page table.table tbody td:first-child { padding-left: 22px !important; }
.myquote-page table.dataTable tbody tr:hover td { background: #fafafa !important; }

/* Keep Action column on one row even when narrow */
.myquote-page table.dataTable tbody td:last-child,
.myquote-page table.table tbody td:last-child {
    white-space: nowrap;
}

/* ── Action buttons inside tables ────────────────────────────────── */
.myquote-page table .btn {
    border-radius: 6px;
    padding: 5px 12px;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    border: none;
    margin: 0 2px;
    display: inline-block;
    vertical-align: middle;
}
.myquote-page table .btn-primary {
    background: #fede00;
    color: #1e1e1e;
    box-shadow: 0 2px 6px rgba(254,222,0,0.28);
}
.myquote-page table .btn-primary:hover { filter: brightness(1.05); color: #1e1e1e; }
.myquote-page table .btn-danger {
    background: #e74c3c;
    color: #fff;
    box-shadow: 0 2px 6px rgba(231,76,60,0.28);
}
.myquote-page table .btn-danger:hover { background: #d83a2b; }

/* ── Pagination ──────────────────────────────────────────────────── */
.myquote-page .dataTables_paginate .pagination {
    display: inline-flex;
    gap: 4px;
    margin: 14px 0 4px;
}
.myquote-page .dataTables_paginate .paginate_button {
    border-radius: 6px !important;
    padding: 6px 14px !important;
    background: #fff !important;
    border: 1px solid #ddd !important;
    color: #1e1e1e !important;
    font-weight: 600;
    cursor: pointer;
}
.myquote-page .dataTables_paginate .paginate_button.current,
.myquote-page .dataTables_paginate .paginate_button:hover:not(.disabled) {
    background: #fede00 !important;
    border-color: #fede00 !important;
    color: #1e1e1e !important;
}
.myquote-page .dataTables_paginate .paginate_button.disabled { opacity: 0.5; cursor: not-allowed; }
.myquote-page .dataTables_info { color: #666; font-size: 0.88rem; padding-top: 18px; }

/* ── Detail page card chrome (DeckboardOptions/Detail + PaverOptions/Detail)
       Overrides the page-scoped .dbo-detail-card / .pvr-detail-card so the
       detail screens match the rest of the customer-area theme: 10px
       radius, #e8e9ed border, soft two-layer shadow, yellow accent
       stripe on the top edge. */
.myquote-page .dbo-detail-card,
.myquote-page .pvr-detail-card,
.myquote-page .detail-card,
.myquote-page .pageBox.whitepagebox.detail-card {
    background: #fff;
    border: 1px solid #e8e9ed !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06) !important;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.18s ease;
}
.myquote-page .dbo-detail-card:hover,
.myquote-page .pvr-detail-card:hover,
.myquote-page .detail-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04) !important;
}
.myquote-page .dbo-detail-card::before,
.myquote-page .pvr-detail-card::before,
.myquote-page .detail-card::before,
.myquote-page .pageBox.whitepagebox.detail-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: #fede00;
}

/* Detail header thumb + meta — refined typography matching the
   card-header / spec-row treatment elsewhere. */
.myquote-page .dbo-detail-thumb,
.myquote-page .pvr-detail-thumb {
    border-radius: 10px !important;
    border-color: #e8e9ed !important;
    background: #f9fafb !important;
}
.myquote-page .dbo-detail-name,
.myquote-page .pvr-detail-name {
    color: #1e1e1e !important;
}
.myquote-page .dbo-detail-sub,
.myquote-page .pvr-detail-sub {
    color: #6b7280 !important;
}
/* Price tag — yellow brand pill (was #f5c518 border). */
.myquote-page .dbo-detail-price-tag,
.myquote-page .pvr-detail-price-tag {
    background: #fffdf3 !important;
    color: #1e1e1e !important;
    border: 1px solid #fede00 !important;
    box-shadow: 0 2px 6px rgba(254,222,0,0.18);
}
/* Detail key/value rows — softer divider, label muted matching the
   .qs-card body styling. */
.myquote-page .dbo-detail-row,
.myquote-page .pvr-detail-row {
    border-bottom: 1px solid #f0f0f0 !important;
}
.myquote-page .dbo-detail-row .dbo-label,
.myquote-page .pvr-detail-row .pvr-label {
    color: #6b7280 !important;
    letter-spacing: 0.08em !important;
}
.myquote-page .dbo-detail-row .dbo-val,
.myquote-page .pvr-detail-row .pvr-val {
    color: #1e1e1e !important;
}
/* Status pills — keep semantic colours but tighten typography. */
.myquote-page .dbo-status-pill,
.myquote-page .pvr-status-pill {
    letter-spacing: 0.06em;
}
/* Description block — matches the .qs-card-header gradient. */
.myquote-page .dbo-detail-desc,
.myquote-page .pvr-detail-desc {
    background: linear-gradient(180deg, #fafbfc 0%, #f3f4f6 100%) !important;
    border-color: #e8e9ed !important;
    color: #1e1e1e !important;
}
/* Back link — pill style. */
.myquote-page .dbo-back-btn,
.myquote-page .pvr-back-btn {
    background: #f3f4f6;
    border: 1px solid #e8e9ed;
    border-radius: 60px;
    padding: 7px 16px;
    color: #1e1e1e !important;
    font-size: 0.85rem;
    margin-bottom: 14px;
    transition: background 0.15s ease;
}
.myquote-page .dbo-back-btn:hover,
.myquote-page .pvr-back-btn:hover {
    background: #e5e7eb;
    color: #1e1e1e !important;
}

/* Primary CTA pill (yellow) — reused across customer pages
   (Profile / ChangePassword / DeckboardOptions add btn etc.). */
.myquote-page .yellow-pill-btn,
.myquote-page .dbo-add-btn,
.myquote-page .yellow-btn-bg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fede00;
    color: #1e1e1e !important;
    border: 0;
    border-radius: 60px;
    padding: 10px 32px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(254,222,0,0.32);
    transition: filter 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.myquote-page .yellow-pill-btn:hover,
.myquote-page .dbo-add-btn:hover,
.myquote-page .yellow-btn-bg:hover {
    filter: brightness(1.04);
    color: #1e1e1e !important;
    text-decoration: none;
    transform: translateY(-1px);
}

/* ── Confirmation modals (delete, status change, etc.) ──────────── */
.myquote-page ~ .modal .modal-content,
#confirmStatusModal .modal-content,
#deleteQuote .modal-content {
    border-radius: 10px;
    border: 1px solid #e8e9ed;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
    overflow: hidden;
    position: relative;
}
#confirmStatusModal .modal-content::before,
#deleteQuote .modal-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: #fede00;
}
#confirmStatusModal .modal-header,
#deleteQuote .modal-header {
    background: #fff;
    color: #1e1e1e;
    border-bottom: 1px solid #e8e9ed;
    padding: 14px 18px;
}
#confirmStatusModal .modal-header .modal-title,
#deleteQuote .modal-header .modal-title {
    color: #1e1e1e;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
#confirmStatusModal .modal-header .btn-close,
#deleteQuote .modal-header .btn-close { filter: none; opacity: .7; }
#confirmStatusModal .btn-primary,
#deleteQuote .btn-dark {
    background: #fede00;
    color: #1e1e1e;
    border: none;
    border-radius: 60px;
    padding: 8px 22px;
    font-weight: 700;
    letter-spacing: 0.04em;
}
#deleteQuote .btn-dark:first-of-type {
    background: #fff;
    color: #1e1e1e;
    border: 1px solid #e8e9ed;
}

/* ── Responsive — tablet (≤992px) ────────────────────────────────── */
@media (max-width: 992px) {
    .myquote-page .pageBox.whitepagebox {
        padding: 16px 14px 10px;
        border-radius: 10px;
    }
    .myquote-page .ordertabing_header ul { gap: 8px; }
    .myquote-page .ordertabing_header ul li {
        padding: 10px 18px;
        font-size: 0.8rem;
        letter-spacing: 0.4px;
    }
    .myquote-page .dataTables_filter { float: none; padding-bottom: 12px; }
    .myquote-page .dataTables_filter label { width: 100%; }
    .myquote-page .cd-search-wrap { display: block; width: 100%; }
    .myquote-page .dataTables_filter input[type="search"] { width: 100%; min-width: 0; }
    .myquote-page .proListTableOuter {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .myquote-page table.dataTable,
    .myquote-page table.table { min-width: 640px; }
    .myquote-page table.dataTable thead th,
    .myquote-page table.table thead th { padding: 11px 14px; font-size: 11px; }
    .myquote-page table.dataTable tbody td,
    .myquote-page table.table tbody td { padding: 10px 14px !important; font-size: 12px; }
}
/* ── Responsive — phone (≤576px) ─────────────────────────────────── */
@media (max-width: 576px) {
    .myquote-page .pageBox.whitepagebox { padding: 12px 10px 8px; }
    .myquote-page .ordertabing_header { padding: 8px 0 12px; }
    .myquote-page .ordertabing_header ul {
        flex-direction: column;
        width: 100%;
        gap: 6px;
    }
    .myquote-page .ordertabing_header ul li {
        width: 100%;
        text-align: center;
        padding: 10px 16px;
    }
    .myquote-page .mainpageTitle { font-size: 1.4rem !important; }
    .myquote-page table .btn { padding: 4px 9px; font-size: 0.68rem; }
    .myquote-page .dataTables_paginate .paginate_button {
        padding: 4px 10px !important;
        font-size: 12px;
    }
    .myquote-page .dataTables_info {
        font-size: 0.78rem;
        padding-top: 12px;
    }
}

/* ============================================================================
   Customer left sidebar (Admin-style menu)
   ----------------------------------------------------------------------------
   Logged-in customer chrome: the main menu as a left YELLOW sidebar with
   full-width bars + a solid dark active item, matching the /Admin look.
   Used by _LayoutCustomerSite (flex variant: .cd-shell > .cd-sidebar + .cd-main)
   and by the Layout=null pages Drawing/Index + Drawing/QuoteSummary (fixed
   variant: .cd-sidebar.cd-sidebar--fixed + .cd-content-offset on the content).
   Menu items + reseller/normal-user gating come from _CustomerDesktopNav;
   icons are injected by _CustomerSidebar's script. Desktop ≥992px shows the
   sidebar; <992px hides it (existing hamburger / #cdMobileMenu unchanged).
   These selectors are NOT scoped to .myquote-page because the sidebar exists
   outside it — but they only match .cd-sidebar markup, which the Admin area
   never renders, so the /Admin menu/CSS is unaffected.
   ========================================================================== */
.cd-shell { display: flex; align-items: stretch; min-height: calc(100vh - 52px); }
.cd-main  { flex: 1 1 auto; min-width: 0; }

.cd-sidebar {
    flex: 0 0 250px; width: 250px;
    background: #fede00;
   
    overflow-y: auto; z-index: 5; padding: 0;
}
/* Desktop: stretch the sidebar to the FULL content height so the yellow never
   leaves a blank strip when the page scrolls (the previous fixed-height /
   flex-start left grey below it). The menu itself stays pinned via the sticky
   inner nav; overflow:visible so that sticky child isn't clipped. On mobile
   the sidebar is an off-canvas drawer (see the <992px block) — untouched. */
@media (min-width: 992px) {
    .cd-shell > .cd-sidebar { align-self: stretch; overflow: visible; min-height: calc(100vh - 52px); }
    .cd-shell > .cd-sidebar .cd-sidebar-nav { position: sticky; top: 0; }
    /* Desktop sidebar collapse — toggled by the topbar hamburger
       (#cdSidebarToggle) via the `cd-sb-collapsed` class on <html>. Hiding the
       flex sidebar lets .cd-main (flex:1) expand to the full width. Mobile is
       unaffected (this is inside the ≥992px block). */
    html.cd-sb-collapsed .cd-shell > .cd-sidebar { display: none; }
}

.cd-sidebar .navbar-nav { flex-direction: column; width: 100%; gap: 0; padding: 0.5rem 0; margin: 0; }
.cd-sidebar .nav-item   { width: 100%; list-style: none; }
.cd-sidebar .nav-link {
    display: flex; align-items: center; gap: 14px;
    color: #1e1e1e !important; font-size: 0.85rem; font-weight: 400;
    padding: 10px 12px !important; border-radius: 0; white-space: nowrap; line-height:normal;
    text-decoration: none; border-bottom: 1px solid #eee;
    transition: background 0.12s ease, color 0.12s ease;
}
.cd-sidebar .nav-link::after { content: none !important; }
.cd-sidebar .nav-link:hover  { background: rgba(0, 0, 0, 0.10); color: #000 !important; }
.cd-sidebar .nav-link.active { background: #1e1e1e; color: #fede00 !important; border-bottom-color: rgba(0, 0, 0, 0.25); }

.cd-sidebar .nav-link .nav-ico {
    flex: 0 0 20px; width: 20px; font-size: 15px; line-height: 1;
    display: inline-flex; align-items: center; justify-content: center;
    color: rgba(0, 0, 0, 0.66); transition: color 0.12s ease;
}
.cd-sidebar .nav-link:hover .nav-ico  { color: #000; }
.cd-sidebar .nav-link.active .nav-ico { color: #fede00; }

/* Fixed variant (Layout=null pages) — `top`/`height` set at runtime by the
   _CustomerSidebar script (measuring #topbar) so each page's topbar height is
   honoured. Content is shifted right via .cd-content-offset. */
.cd-sidebar.cd-sidebar--fixed { position: fixed; left: 0; top: 56px; height: calc(100vh - 56px); }

@media (min-width: 992px) {
    .cd-content-offset { margin-left: 250px; }
    /* These pages keep the topbar logo + My Account, but their inline
       horizontal menu is replaced by the sidebar — hide it on desktop. */
    .drawing-topbar-nav, .qs-topnav { display: none !important; }
    /* Collapsed (topbar hamburger #cdSidebarToggle): hide the fixed sidebar and
       drop the content's left offset so the canvas/summary uses the full width. */
    html.cd-sb-collapsed .cd-sidebar.cd-sidebar--fixed { display: none !important; }
    html.cd-sb-collapsed .cd-content-offset { margin-left: 0 !important; }
}

/* Account section — desktop keeps account in the topbar, so it's hidden
   there; on mobile it appears at the bottom of the off-canvas drawer. */
.cd-sidebar .cd-sidebar-account { display: none; }
.cd-sidebar-backdrop { display: none; }

/* ── Mobile (<992px): off-canvas drawer (matches the /Admin mobile menu) ────
   The yellow sidebar slides in from the left OVER the content (dim backdrop)
   when the existing hamburger is tapped — instead of squashing the page.
   `top`/`height` are set at runtime by _CustomerSidebar's script so the drawer
   sits below the page topbar. */
.dataTables_wrapper .dataTables_filter label {
    justify-content: end !important;
}
@media (max-width: 991px) {
    .cd-shell { display: block; min-height: 0; }
    .cd-content-offset { margin-left: 0 !important; }

    .cd-sidebar {
        display: block !important;
        position: fixed !important; left: 0; top: 0;
        height: 100vh; width: 264px; max-width: 84vw;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        z-index: 1050; 
/*        box-shadow: 0 0 28px rgba(0, 0, 0, 0.40);*/
    }
  
    .cd-shell > .cd-sidebar {
        position: fixed !important;
        align-self: auto;
    }
    body.cd-cust-nav-open .cd-sidebar { transform: translateX(0); }

    .cd-sidebar-backdrop {
        display: block;
        position: fixed; left: 0; right: 0; top: 0; bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040; opacity: 0; visibility: hidden;
        transition: opacity 0.25s ease;
    }
    body.cd-cust-nav-open .cd-sidebar-backdrop { opacity: 1; visibility: visible; }
    body.cd-cust-nav-open { overflow: hidden; }

    /* Account actions at the bottom of the drawer (mobile only). */
    .cd-sidebar .cd-sidebar-account { display: block; border-top: 2px solid rgba(0, 0, 0, 0.12); margin-top: 0; }
    .cd-sidebar .navbar-nav{ padding-bottom:0; }
    .myquote-page.admin-list-like .rp-wrap {
        max-height: calc(100vh - 182px) !important;
    }
    body .dataTables_filter input{ margin-left:0 !important}
}


/* ============================================================================
   Customer LIST pages → match the /Admin list table look
   ----------------------------------------------------------------------------
   Copied from admin-list.css (the Admin list-page table styles) and re-scoped
   to .myquote-page so the customer list pages — My Quotes (/Order?type=1),
   Draft Quote (/Order?type=3), Deckboards (/DeckboardOptions), Pavers
   (/PaverOptions) — get the same DARK table header + tight rows as /Admin.
   admin-list.css is NOT modified, and these rules only match .myquote-page
   markup (which the Admin area never renders), so the /Admin look is
   unaffected. Appended last so it overrides the earlier light-header rules.
   ========================================================================== */
/* NOTE: selectors include `.orderclient` (the wrapper around every customer
   list table) so they out-specify the per-page inline <style> header rules
   (e.g. Order/Index's light-grey gradient header), which would otherwise win
   by being later in the document. */
.myquote-page .orderclient table.dataTable,
.myquote-page .orderclient table.table { margin: 0 !important; border: none !important; }

.myquote-page .orderclient table.dataTable thead th,
.myquote-page .orderclient table.table thead th,
.myquote-page .orderclient .proListTableOuter tr th {
    background: #1f2937 !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
    padding: 10px 15px !important;
    border: 0 !important;
    border-bottom: 0 !important;
    white-space: nowrap;
}
/* Drop the old light-header's yellow accent stripe + rounded corners. */
.myquote-page .orderclient table.dataTable thead th:first-child::before,
.myquote-page .orderclient table.table thead th:first-child::before { content: none !important; }
.myquote-page .orderclient table.dataTable thead th:first-child,
.myquote-page .orderclient table.table thead th:first-child { padding-left: 15px !important; border-top-left-radius: 0 !important; }
.myquote-page .orderclient table.dataTable thead th:last-child,
.myquote-page .orderclient table.table thead th:last-child { border-top-right-radius: 0 !important; }

.myquote-page .orderclient table.dataTable tbody td,
.myquote-page .orderclient table.table tbody td {
    padding: 10px 15px !important;
    vertical-align: middle;
    border-top: 1px solid #f3f4f6 !important;
    font-size: 14px;
    color: #1f2937;
    background: #fff !important;
}
.myquote-page .orderclient table.dataTable tbody td:first-child,
.myquote-page .orderclient table.table tbody td:first-child { padding-left: 15px !important; font-weight: 500; }
.myquote-page .orderclient table.dataTable tbody tr:hover td,
.myquote-page .orderclient table.table tbody tr:hover td { background: #fafafa !important; }

/* ============================================================================
   Customer LIST pages → full-width Admin-style page card
   ----------------------------------------------------------------------------
   Copied from admin-list.css (.page-card / .page-card-header / .page-toolbar)
   and re-scoped to .myquote-page so the customer list pages get the same
   full-bleed white card with a LEFT-aligned title + subtitle header (instead
   of the old centred title + narrow col-md-10 card). admin-list.css is NOT
   modified; rules only match .myquote-page. Opt-in per page via the
   `.admin-list-like` class on the .myquote-page section.
   ========================================================================== */
/* Light-grey page background + outer space around the card, like the /Admin
   content area (white card floating on a grey canvas). */
.myquote-page.admin-list-like {
    padding: 16px 18px;
    background: #f0f1f4;
    min-height: calc(100vh - 52px);
}
/* Full-width: neutralise the old Bootstrap container + centred col wrappers. */
.myquote-page.admin-list-like .container { max-width: 100% !important; width: 100% !important; padding-left: 0 !important; padding-right: 0 !important; }
.myquote-page.admin-list-like .row.justify-content-center { justify-content: flex-start !important; margin: 0 !important; }
.myquote-page.admin-list-like .col-md-10 { flex: 0 0 100% !important; max-width: 100% !important; padding: 0 !important; }
.myquote-page.admin-list-like .sectionblock { padding: 0 !important; }

.myquote-page .page-card {
    background: #fff;
/*    border: 1px solid #e5e7eb;*/
    border-radius: 0;
/*    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);*/
    /* NOTE: no `overflow:hidden` — it would break the sticky bottom save bar
       (position:sticky needs a scrolling ancestor, not a clipped one). */
}
.myquote-page .page-card-header {
    color: #2b2a2a;
    padding: 16px 22px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
    border-bottom: 1px solid #ddd;
}
.myquote-page .page-card-header h5 {
    margin: 0; font-weight: 600; font-size: 18px; line-height: 1.2;
    color: #2b2a2a; display: flex; align-items: center; gap: 8px;
}
.myquote-page .page-card-header .subtitle { font-size: 12px; opacity: 0.7; margin-top: 2px; }

.myquote-page .page-toolbar {
    display: flex; flex-wrap: wrap; gap: 12px;
    align-items: center; justify-content: space-between;
    padding: 14px 22px; border-bottom: 1px solid #e5e7eb;
}
.myquote-page .page-toolbar .toolbar-left,
.myquote-page .page-toolbar .toolbar-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
/* Tab-style nav (replaces the dark pills): underlined text tabs with a yellow
   active underline that sits on the toolbar's baseline — a clean tab look. */
.myquote-page.admin-list-like .page-toolbar { padding: 0 22px !important; }
.myquote-page.admin-list-like .ordertabing_header { padding: 0 !important; justify-content: flex-start !important; display: inline-flex; }
.myquote-page.admin-list-like .ordertabing_header ul { justify-content: flex-start !important; gap: 4px !important; border: 0 !important; }
.myquote-page.admin-list-like .ordertabing_header ul li {
    background: transparent !important;
    color: #6b7280 !important;
    border: 0 !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    padding: 13px 16px !important;
    font-weight: 600 !important;
    font-size: 0.82rem !important;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    box-shadow: none !important;
    transform: none !important;
    margin-bottom: -1px;            /* overlap the toolbar's 1px bottom border */
}
.myquote-page.admin-list-like .ordertabing_header ul li:hover {
    color: #1f2937 !important;
    background: transparent !important;
    transform: none !important;
}
.myquote-page.admin-list-like .ordertabing_header ul li.active {
    color: #1f2937 !important;
    background: transparent !important;
    border-bottom-color: #fede00 !important;
    box-shadow: none !important;
}
/* Table + DataTables chrome get the card's own padding. */
.myquote-page.admin-list-like .ordertabing_content,
.myquote-page.admin-list-like .pageBox_body { padding: 0 !important; }
.myquote-page.admin-list-like .dataTables_wrapper { padding: 12px 22px 6px; }
.myquote-page.admin-list-like .proListTableOuter { padding: 0 !important; }
/* ResellerPricing — the header (.page-card-header) stays fixed on top, the
   price list (.rp-wrap) scrolls in the middle, and the Save bar stays docked
   at the bottom (mirrors the Admin scroll-area + docked action bar). The
   header is a SIBLING of .rp-wrap inside .page-card, so it never scrolls; the
   save bar is sticky to the bottom of the .rp-wrap scroll area. */
.myquote-page.admin-list-like .rp-wrap {
    max-height: calc(100vh - 162px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 22px 0;
}
.myquote-page.admin-list-like .rp-save-row {
    position: sticky;
    bottom: 0;
    z-index: 5;
    text-align: right !important;
    padding: 12px 22px !important;
    margin: 12px -22px 0;       /* span the full card width (out of .rp-wrap padding) */
    background: #fff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

/* ============================================================================
   Customer buttons → match the /Admin button design
   ----------------------------------------------------------------------------
   Copied from admin-list.css (global button theming + .btn sizing) and
   re-scoped to .myquote-page: flat brand buttons (no gradient / no shadow /
   not uppercase), 6px radius, #fede00 yellow on #1f2937 text, red danger.
   admin-list.css is unchanged; rules only match .myquote-page.
   ========================================================================== */
.myquote-page .btn.btn-primary,
.myquote-page button.btn-primary,
.myquote-page input.btn-primary,
.myquote-page table .btn-primary,
.myquote-page .rp-save-btn,
.myquote-page .dbo-add-btn,
.myquote-page .yellow-btn-bg {
    background: #fede00 !important;
    background-image: none !important;
    border: 1px solid #fede00 !important;
    color: #1f2937 !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    border-radius: 6px !important;
    padding: 8px 16px !important;
    box-shadow: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.myquote-page .btn.btn-primary:hover,
.myquote-page button.btn-primary:hover,
.myquote-page table .btn-primary:hover,
.myquote-page .rp-save-btn:hover,
.myquote-page .dbo-add-btn:hover,
.myquote-page .yellow-btn-bg:hover {
    background: #e6c700 !important;
    border-color: #e6c700 !important;
    color: #2b2a2a !important;
    filter: none !important;
    transform: none !important;
}

/* Red danger buttons (Delete) — match Admin. */
.myquote-page .btn.btn-danger,
.myquote-page button.btn-danger,
.myquote-page table .btn-danger {
    background: #dc2626 !important;
    background-image: none !important;
    border: 1px solid #dc2626 !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    border-radius: 6px !important;
    padding: 8px 16px !important;
    box-shadow: none !important;
}
.myquote-page .btn.btn-danger:hover,
.myquote-page table .btn-danger:hover {
    background: #b91c1c !important;
    border-color: #b91c1c !important;
    color: #fff !important;
}

/* Compact size for in-table action buttons (Download / View / Edit / Delete)
   — matches Admin's .btn-action (6px 12px, 12px font). */
.myquote-page table .btn,
.myquote-page table .btn-primary,
.myquote-page table .btn-danger {
    padding: 6px 12px !important;
    font-size: 12px !important;
    border-radius: 6px !important;
}

body .page-card .dataTable .btn {
    height: inherit;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}

@media screen and (max-width:767px)
{
    .qs-cta{ margin-top:8px;}
}

/* ── Linked Builders (reseller) page ─────────────────────────────────────
   List chrome comes from the shared `.orderclient` / `.page-card` scope; these
   are the page-local bits (status/active chips, Send Invite button + toolbar,
   themed Send Invite + Unlink modals). Moved out of the view's inline <style>. */
#tblLinkedBuilders th,
#tblLinkedBuilders td { vertical-align: middle !important; }

.lb-chip {
    display: inline-block; min-width: 80px; padding: 4px 12px;
    border-radius: 12px; font-size: 0.78rem; font-weight: 700;
    line-height: 1.5; text-align: center; white-space: nowrap;
}
.lb-status-invited  { background: #fff3cd; color: #8a6d00; border: 1px solid #ffe69c; }
.lb-status-linked   { background: #e6f4ea; color: #137333; border: 1px solid #b7e1c1; }
.lb-status-unlinked { background: #fdecea; color: #b3261e; border: 1px solid #f3c4b1; }
.lb-active   { background: #1b873f; color: #fff; }
.lb-inactive { background: #c0392b; color: #fff; }
.lb-blank    { color: #aaa; font-style: italic; }
.lb-orders   { font-weight: 700; }
/* My Builders search box — wide enough so the placeholder isn't clipped. */
#lbSearchSlot .dataTables_filter input,
#lbSearchSlot input[type="search"] { min-width: 280px; }
@media (max-width: 575.98px) {
    #lbSearchSlot .dataTables_filter input,
    #lbSearchSlot input[type="search"] { min-width: 0; width: 100%; }
}
/* Builder cell (My Builders list) — round avatar + company/name. */
.lb-builder-cell { display: flex; align-items: center; gap: 10px; }
.lb-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1px solid #e5e7eb; background: #fff; flex-shrink: 0; }
.lb-builder-name { font-weight: 600; color: #1f2937; white-space: nowrap; }
.lb-builder-sub { font-size: .8rem; color: #9ca3af; white-space: nowrap; }

.lb-toolbar { display: flex; align-items: center; gap: 8px; }
.lb-toolbar label { font-size: 0.82rem; font-weight: 600; color: #444; margin: 0; }
.lb-toolbar select {
    height: 36px; border: 1px solid #d7d7d7; border-radius: 6px;
    padding: 0 30px 0 10px; font-size: 0.86rem; background-color: #fff;
}
.lb-invite-btn {
    display: inline-flex; align-items: center; gap: 7px;
    background: #f5c518; color: #232323; border: 0; border-radius: 6px;
    height: 36px; padding: 0 16px; font-size: 0.86rem; font-weight: 700;
    white-space: nowrap; transition: filter 120ms ease; text-decoration: none;
}
.lb-invite-btn:hover,
.lb-invite-btn:focus { filter: brightness(1.03); color: #232323; text-decoration: none; }
.lb-invite-btn i { font-size: 0.95rem; }
/* Send Invite button + helper caption stacked, right-aligned. */
.lb-invite-wrap { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.lb-invite-note { font-size: 0.72rem; color: #6b7280; white-space: nowrap; }

/* Access-denied card on the builder-quotes page (id not linked to this reseller). */
.bq-access-denied {
    display: flex; align-items: center; gap: 12px;
    margin: 24px 22px; padding: 18px 20px;
    background: #fdecea; border: 1px solid #f3c4b1; border-radius: 8px;
    color: #b3261e; font-size: 0.95rem;
}
.bq-access-denied i { font-size: 1.6rem; }

/* Admin-style toolbar row (Link Status left, search right) below the header.
   Restore vertical padding (the .admin-list-like rule zeroes it for tab pages). */
.myquote-page.admin-list-like .page-toolbar.lb-toolbar-row { padding: 14px 22px !important; }
.lb-toolbar-row .toolbar-right .dataTables_filter { margin: 0; float: none; }
.lb-toolbar-row .toolbar-right .dataTables_filter label { margin: 0; }
.lb-status-filter { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.lb-status-filter label { margin: 0; font-size: 0.82rem; font-weight: 600; color: #444; }
.lb-status-filter select { height: 36px; border: 1px solid #d7d7d7; border-radius: 6px; padding: 0 30px 0 10px; font-size: 0.86rem; background-color: #fff; }

/* Send Invite modal — Quote-Details look: white header + a section band with
   the signature gold left-accent strip (mirrors .productViewList thead th in
   the order/quote popup). */
#lbInviteModal .modal-content { border: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,.18); }
#lbInviteModal .modal-header { background: #fff; border-bottom: 1px solid #e8e9ed; padding: 16px 20px; }
#lbInviteModal .modal-title { font-size: 1.1rem; font-weight: 700; color: #1e1e1e; }
#lbInviteModal .btn-close { opacity: .55; }
#lbInviteModal .modal-body { padding: 18px 20px; background: #f7f8fa; }
#lbInviteModal .lb-section { border: 1px solid #e8e9ed; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
#lbInviteModal .lb-section-head {
    background: linear-gradient(180deg, #fafbfc 0%, #f3f4f6 100%);
    color: #1e1e1e; font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; padding: 13px 18px 13px 22px;
    border-bottom: 1px solid #e8e9ed; position: relative;
}
#lbInviteModal .lb-section-head::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #fede00; }
#lbInviteModal .lb-section-body { padding: 18px; }
#lbInviteModal label { font-weight: 600; font-size: 0.86rem; margin-bottom: 4px; color: #374151; }
/* Pill inputs — match the My Profile page look (rounded, grey fill, soft border). */
#lbInviteModal .form-control {
    border-radius: 60px;
    border: 1px solid #e8e9ed;
    background: #f9fafb;
    padding: 11px 18px;
    box-shadow: none;
    font-size: 14px;
    color: #1e1e1e;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
#lbInviteModal .form-control:focus {
    border-color: #fede00;
    background: #fffdf3;
    box-shadow: 0 0 0 0.2rem rgba(254,222,0,.20);
}
/* Inline per-field validation errors (mirrors the signup modal). */
.lb-field-error { display: block; color: #dc2626; font-size: 0.78rem; margin-top: 4px; }
#lbInviteModal .modal-footer { border-top: 1px solid #e8e9ed; gap: 8px; }
/* Footer buttons — brand theme (yellow primary, light-grey cancel; flat 6px). */
#lbInviteModal .modal-footer .btn { border-radius: 6px; padding: 8px 18px; font-weight: 600; box-shadow: none; border: 0; }
#lbInviteModal .modal-footer .btn-primary { background: #fede00; color: #1f2937; }
#lbInviteModal .modal-footer .btn-primary:hover,
#lbInviteModal .modal-footer .btn-primary:focus { background: #e6c700; color: #1f2937; }
#lbInviteModal .modal-footer .btn-secondary { background: #6c757d; color: #fff; }
#lbInviteModal .modal-footer .btn-secondary:hover,
#lbInviteModal .modal-footer .btn-secondary:focus { background: #5c636a; color: #fff; }

/* Unlink confirm modal — dark header (Admin/Deckboards confirmStatusModal). */
#lbConfirmModal .modal-header { background: #232323; color: #fff; border-bottom: 0; padding: 12px 18px; }
#lbConfirmModal .modal-title { font-size: 1rem; font-weight: 700; }
#lbConfirmModal .btn-close { filter: invert(1); opacity: .8; }

/* Confirm modal — same look as the Admin/Deckboards confirmStatusModal. */
#lbConfirmModal .modal-content { border: 0; border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.25); overflow: hidden; }
#lbConfirmModal .modal-body { padding: 22px 18px; font-size: 0.95rem; color: #333; }
#lbConfirmModal .modal-body .csm-icon { font-size: 2.2rem; line-height: 1; margin-bottom: 6px; }
#lbConfirmModal .modal-body .csm-icon.warn { color: #f5c518; }
#lbConfirmModal .modal-body .csm-icon.danger { color: #c0392b; }
#lbConfirmModal .modal-body .csm-msg b { color: #111; }
#lbConfirmModal .modal-footer { border-top: 1px solid #eee; padding: 10px 14px; background: #fafafa; }

/* Responsive (mobile/tablet ≤991px) — the list has many columns, so let it
   scroll horizontally; the header toolbar (Send Invite + Status) wraps. Desktop
   layout is untouched. */
@media (max-width: 991px) {
    .lb-toolbar { flex-wrap: wrap; justify-content: flex-start; row-gap: 6px; }
    #tblLinkedBuilders_wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    #tblLinkedBuilders { min-width: 1080px; }
}

/* ── /Invite landing page (standalone, Layout=null) ──────────────────────
   Mirrors the Login/Register auth shell (dark topbar + dark card header with
   the yellow underline + yellow CTA). Scoped to body.cd-invite-page so these
   rules never touch other customer pages that also load customer-theme.css. */
body.cd-invite-page { background: #f5f7fa; min-height: 100vh; font-family: 'Nunito', system-ui, -apple-system, sans-serif; margin: 0; }
.cd-invite-page .auth-topbar { background: linear-gradient(180deg, #1f2937 0%, #111827 100%); padding: 14px 24px; box-shadow: 0 1px 0 rgba(0,0,0,0.35), 0 4px 12px rgba(0,0,0,0.10); }
.cd-invite-page .auth-topbar a { display: inline-flex; align-items: center; text-decoration: none; }
.cd-invite-page .auth-topbar img { height: 36px; width: auto; }
.cd-invite-page .auth-stage { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.cd-invite-page .auth-card { width: 100%; max-width: 480px; background: #fff; border: 0; border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,0.10); overflow: hidden; }
.cd-invite-page .auth-card-header { background: linear-gradient(180deg, #1f2937 0%, #111827 100%); color: #fff; padding: 24px 28px 22px; text-align: center; position: relative; }
.cd-invite-page .auth-card-header::after { content: ''; position: absolute; left: 25%; right: 25%; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, #f5c518 50%, transparent); opacity: 0.7; }
.cd-invite-page .auth-icon { width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 10px; }
.cd-invite-page .auth-icon.ok { background: rgba(40,167,69,0.18); color: #4ade80; border: 1px solid rgba(40,167,69,0.35); }
.cd-invite-page .auth-icon.warn { background: rgba(245,197,24,0.15); color: #f5c518; border: 1px solid rgba(245,197,24,0.30); }
.cd-invite-page .auth-card-header h1 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.cd-invite-page .auth-card-header p { margin: 4px 0 0; font-size: 13px; color: rgba(255,255,255,0.70); line-height: 1.45; }
.cd-invite-page .auth-card-body { padding: 28px; text-align: center; }
.cd-invite-page .auth-msg { font-size: 15px; color: #374151; line-height: 1.6; margin-bottom: 22px; }
.cd-invite-page .auth-submit { display: inline-block; background: #f5c518; color: #1f2937; border: 0; font-weight: 700; padding: 11px 26px; border-radius: 8px; font-size: 14px; letter-spacing: 0.02em; box-shadow: 0 2px 6px rgba(245,197,24,0.30); text-decoration: none; }
.cd-invite-page .auth-submit:hover { background: #e6b612; color: #111827; }
.cd-invite-page .auth-foot { margin-top: 16px; font-size: 13px; }
.cd-invite-page .auth-foot a { color: #4b5563; text-decoration: none; font-weight: 600; padding: 6px 10px; border-radius: 6px; }
.cd-invite-page .auth-foot a:hover { background: #f3f4f6; color: #111827; }

/* Builder details panel on the reseller's read-only Placed Quotes page. */
.bq-builder-info {
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
    padding: 18px 22px; border-bottom: 1px solid #e8e9ed; background: #fafbfc;
}
.bq-builder-info img.bq-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid #f5c518; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.bq-identity { flex: 1; min-width: 240px; }
.bq-identity .bq-name { font-size: 1.05rem; font-weight: 700; color: #1e1e1e; margin-bottom: 4px; }
.bq-contact { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.bq-contact span { display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; color: #4b5563; }
.bq-contact i { color: #9ca3af; font-size: 0.95rem; }
.bq-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.bq-stat { min-width: 120px; text-align: center; padding: 10px 16px; background: #fff; border: 1px solid #e8e9ed; border-radius: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.bq-stat-num { display: block; font-size: 1.25rem; font-weight: 800; color: #1f2937; line-height: 1.1; white-space: nowrap; }
.bq-stat-lbl { display: block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #9ca3af; margin-top: 3px; }

/* Centre the DataTables "No data available in table" message. */
#tblBuilderQuotes td.dataTables_empty,
#tblLinkedBuilders td.dataTables_empty { text-align: center !important; }

/* ── Customer / Reseller dashboard ───────────────────────────────────────
   Stat cards + the reseller "My Builders — Activity" table. */
.cd-dash-body { padding: 18px 20px 22px; }
/* Count cards — icon tile + accent stripe (matches the /Admin dashboard). */
.cd-dash-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.cd-dash-card { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid #e5e7eb;
    border-radius: 12px; padding: 18px 20px; position: relative; overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.cd-dash-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent, #fde047); }
.cd-dash-card-link { text-decoration: none; color: inherit; }
.cd-dash-card-link:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.06);
    border-color: var(--accent, #fde047); text-decoration: none; color: inherit; }
.cd-dash-ico { flex-shrink: 0; width: 48px; height: 48px; border-radius: 10px; display: inline-flex;
    align-items: center; justify-content: center; font-size: 20px;
    background: var(--accent-soft, rgba(253,224,71,.18)); color: var(--accent, #caa900); }
.cd-dash-meta { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.cd-dash-num { font-size: 1.75rem; font-weight: 800; color: #111827; letter-spacing: -.02em; }
.cd-dash-lbl { font-size: .8rem; color: #6b7280; font-weight: 600; margin-top: 3px; }
.cd-dash-sub { font-size: .72rem; color: #9ca3af; margin-top: 5px; }
/* Per-card accents. */
.cd-dash-card--quotes   { --accent: #2563eb; --accent-soft: rgba(37,99,235,.10); }
.cd-dash-card--month    { --accent: #0d9488; --accent-soft: rgba(13,148,136,.10); }
.cd-dash-card--builders { --accent: #caa900; --accent-soft: rgba(253,224,71,.20); }
/* Activity table — builder avatar + name. */
.cd-dash-builder { display: flex; align-items: center; gap: 10px; }
.cd-dash-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 1px solid #e5e7eb; background: #fff; flex-shrink: 0; }
/* Activity — light table in a subtle bordered panel (grey uppercase headers,
   thin dividers). The .myquote-page .orderclient prefixes + !important override
   the admin-list-like dark table header that the page otherwise inherits. */
/* Half-width activity panel on desktop (like the mockup's left column);
   full width on tablet/mobile. */
.cd-dash-activity { margin-top: 26px; width: 50%; background: #fff; border: 1px solid #eceef1; border-radius: 14px; box-shadow: 0 1px 3px rgba(16,24,40,.06); overflow: hidden; }
@media (max-width: 991px) { .cd-dash-activity { width: 100%; } }
.cd-dash-activity-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid #f1f2f4; margin: 0; }
.cd-dash-activity-head h6 { margin: 0; font-weight: 700; color: #1f2937; font-size: .98rem; }
.cd-dash-activity-head a { font-size: .82rem; color: #2c6ecb; text-decoration: none; font-weight: 600; }
.cd-dash-activity-head a:hover { text-decoration: underline; }
.cd-dash-activity .table-responsive { border: 0; border-radius: 0; background: transparent; }
.myquote-page .orderclient table.table.cd-dash-table { margin: 0; }
.myquote-page .orderclient table.table.cd-dash-table thead th { background: #f9fafb !important; color: #6b7280 !important; font-size: .68rem !important; font-weight: 700 !important; letter-spacing: .06em !important; text-transform: uppercase !important; border: 0 !important; border-bottom: 1px solid #eceef1 !important; padding: 11px 16px !important; }
.myquote-page .orderclient table.table.cd-dash-table tbody td { vertical-align: middle; border: 0 !important; border-bottom: 1px solid #f3f4f6 !important; padding: 13px 16px !important; color: #4b5563; font-size: .9rem; }
.myquote-page .orderclient table.table.cd-dash-table tbody tr:last-child td { border-bottom: 0 !important; }
.myquote-page .orderclient table.table.cd-dash-table tbody td:first-child { font-weight: 600; color: #1f2937; }
.myquote-page .orderclient table.table.cd-dash-table tbody tr:hover td { background: #fafbfc; }
.cd-reseller-badge { display: inline-block; background: #ede9fe; color: #6d28d9; font-size: .62rem; font-weight: 700; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; vertical-align: middle; margin-left: 8px; }

/* ── Reseller co-brand logo (header) ─────────────────────────────────────
   Rendered by the shared _BrandLogo partial when a logged-in reseller has an
   uploaded ReselllerLogo: their logo on a clean white chip (primary) + a small
   "Powered by ClickDeck" attribution (platform identity). Sits on the dark
   topbar; the logo box matches the default ClickDeck mark footprint (180×40)
   so the left logo block is identical whether reseller or default. */
.cd-brand-cobrand { display: inline-flex; align-items: center; gap: 9px; }
/* The co-brand lockup sits INSIDE the logo <a> on some topbars (QuoteSummary),
   so the "Powered by ClickDeck" text inherits the page's link colour + underline
   (the blue lines). Force it back to the brand colours with no underline. */
.cd-brand-cobrand, .cd-brand-cobrand * { text-decoration: none !important; }
.cd-powered-by, .cd-powered-by .cd-pb-label, .cd-powered-by .cd-pb-brand { color: rgba(255,255,255,.9) !important; }
.cd-cobrand-light .cd-powered-by, .cd-cobrand-light .cd-powered-by .cd-pb-label, .cd-cobrand-light .cd-powered-by .cd-pb-brand { color: #232323 !important; }
.cd-reseller-logo { display: inline-flex; align-items: center; justify-content: center; background: #fff; border-radius: 8px; padding: 4px 10px; border: 1px solid rgba(0,0,0,.06); box-shadow: 0 2px 6px rgba(0,0,0,.18); line-height: 0; }
/* filter:none guards against page rules that recolour topbar logos (e.g.
   QuoteSummary's `.qs-topbar-logo img { filter: invert(1) }`, meant for the
   mono PNG) — a reseller's real logo must keep its true colours. */
.cd-reseller-logo img { display: block; height: 34px !important; width: auto !important; max-width: 180px !important; object-fit: contain; filter: none !important; }
.cd-powered-by { display: inline-flex; flex-direction: column; justify-content: center; line-height: 1.05; color: rgba(255,255,255,.9); }
.cd-cobrand-light .cd-powered-by { color: #232323; }
.cd-pb-label { font-size: 8px; letter-spacing: .09em; text-transform: uppercase; font-weight: 600; opacity: .7; }
.cd-pb-brand { font-size: 12px; font-weight: 800; letter-spacing: .2px; }
@media (max-width: 991px) {
    .cd-reseller-logo { padding: 3px 9px; border-radius: 7px; }
    .cd-reseller-logo img { height: 30px !important; max-width: 150px !important; }
    .cd-pb-brand { font-size: 11px; }
}
/* Keep the tight Drawing topbar uncluttered on phones — chip only. */
@media (max-width: 575px) { .cd-powered-by { display: none; } }
/* Flush-left in its container (navbar-brand / .logo / qs-topbar-logo) — no
   leading margin and never stretched/centred, so it shares the default mark's
   left edge. align-self:flex-start keeps it left in the flex-column topbars. */
.cd-brand-cobrand { margin-left: 0 !important; align-self: flex-start; }
/* Pull the brand block toward the left edge on the customer navbar — the
   default left gap is the navbar's 16px padding + Bootstrap .container-fluid's
   ~12px gutter (~28px). Trim both so the logo sits near the edge. The two-class
   selector out-specifies the inline `.mainNavOuter { padding:0 16px }` rule. */
.navbar.mainNavOuter { padding-left: 4px !important; }
.mainNavOuter > .container-fluid { padding-left: 0 !important; }
/* style.css inverts the Drawing topbar logo SVG (#topbar .logo svg { filter:
   invert(1) }) — that trick was to WHITEN the OLD dark (#232323) inline SVG.
   The shared _BrandLogo now sets its colour directly (already white on the dark
   bar), so inverting it would turn the mark BLACK/invisible. Neutralise the
   invert for the brand SVG (its width:150px from that rule still applies). The
   two-class selector + !important out-specifies the original. */
#topbar .logo svg.brand-svg-mark { filter: none !important; }
/* Default ClickDeck mark — same width (→ same height) on EVERY surface. The
   navbar + Drawing topbar already pin it to 150px; this base rule brings
   QuoteSummary + Home in line so the logo height matches everywhere. */
.brand-svg-mark { width: 150px; height: auto; }
/* ── "Interest" column badges (My Quotes → Draft Quote table) ──────────────
   Coloured icon pill driven by Quote.GradingCategory (rendered by
   order-page.js renderInterestBadge): green = Interested, amber = Planning
   Stage, red = Not Interested, muted dash = ungraded. Mirrors the admin
   dashboard interest cards. */
.cd-interest {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 600; line-height: 1.4;
    white-space: nowrap; border: 1px solid transparent;
}
.cd-interest i { font-size: 12px; }
.cd-interest--yes      { background: #e7f6ec; color: #1c7c3f; border-color: #b7e4c7; }
.cd-interest--planning { background: #fff7df; color: #8a6d00; border-color: #ffe699; }
.cd-interest--no       { background: #fdecec; color: #c0392b; border-color: #f5c2c0; }
.cd-interest--none     { color: #9aa3ad; font-weight: 400; background: transparent; border: 0; padding: 0; }
