* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background: #f4f5f7;
    color: #1a1a2e;
}

.hidden {
    display: none !important;
}

.login-screen {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.login-box {
    background: white;
    padding: 40px 32px;
    border-radius: 16px;
    width: 320px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.login-box h1 {
    color: #1a1a2e;
    font-size: 24px;
    margin-bottom: 4px;
}

.subtitle {
    color: #888;
    margin-bottom: 24px;
    font-size: 14px;
}

.login-box input {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
}

.login-box button {
    width: 100%;
    padding: 12px;
    background: #f4b400;
    color: #1a1a2e;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
}

.login-box button:hover {
    background: #e0a600;
}

.error-text {
    color: #d93025;
    font-size: 13px;
    margin-top: 12px;
    min-height: 16px;
}

.admin-header {
    background: #1a1a2e;
    color: white;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    font-size: 20px;
    color: #f4b400;
}

.logout-btn {
    background: transparent;
    border: 1px solid #f4b400;
    color: #f4b400;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.logout-btn:hover {
    background: #f4b400;
    color: #1a1a2e;
}

/* Primary "+ Add X" action button, reused across every tab (Products,
   Categories, Promotions, Discount Codes, Flash Sales, Notes) plus the
   Products tab's Import/Export and Sales Channel toggles (which layer their own
   inline background/color/border on top of this for an outline look).
   Never had a base size/style before - was rendering as a bare default
   button, hence "increase the size of these" reading small everywhere. */
.add-btn {
    background: #f4b400;
    color: #1a1a2e;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}

.add-btn:hover {
    background: #e0a600;
}

.admin-tabs {
    display: flex;
    background: white;
    border-bottom: 1px solid #e5e5e5;
    padding: 0 24px;
    overflow-x: auto;
}

.tab-btn {
    background: none;
    border: none;
    padding: 16px 20px;
    font-size: 15px;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.tab-btn.active {
    color: #1a1a2e;
    border-bottom-color: #f4b400;
    font-weight: 600;
}

.tab-content {
    padding: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.stat-card .label {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
}

.stat-card .value {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
}

.stat-card.warning .value {
    color: #d93025;
}

.panel {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.panel h2, .tab-content > h2 {
    font-size: 16px;
    margin-bottom: 16px;
    color: #1a1a2e;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

th, td {
    text-align: left;
    padding: 12px 14px;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

th {
    background: #f9f9fb;
    color: #666;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.status-pending { background: #fff4e5; color: #b25e00; }
.status-paid { background: #e6f4ea; color: #1e7e34; }
.status-shipped { background: #e3f2fd; color: #0d47a1; }
.status-delivered { background: #ede7f6; color: #4527a0; }
.status-cancelled { background: #fce8e6; color: #c5221f; }

/* Vendor Orders Center stages (Task #59) - reuses the palette above where a
   stage is conceptually similar, adds a few of its own. */
.status-new { background: #eef2ff; color: #3730a3; }
.status-accepted { background: #e6f4ea; color: #1e7e34; }
.status-processing { background: #e0f2fe; color: #075985; }
.status-ready { background: #dcfce7; color: #166534; }
.status-forfeited { background: #f3f4f6; color: #374151; }

select.status-select {
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 13px;
}

.no-data {
    color: #888;
    padding: 16px 0;
    text-align: center;
}

@media (max-width: 600px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }
    thead {
        display: none;
    }
    tr {
        margin-bottom: 12px;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 8px;
    }
    td {
        border: none;
        padding: 6px 8px;
    }
    td::before {
        content: attr(data-label);
        font-weight: 600;
        display: inline-block;
        width: 110px;
        color: #888;
        font-size: 11px;
        text-transform: uppercase;
    }
}

/* Order detail modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.6);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.hidden {
    display: none;
}

.modal-box {
    background: white;
    border-radius: 14px;
    max-width: 500px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 24px;
    position: relative;
}

.modal-close-btn {
    position: absolute;
    top: 12px;
    right: 14px;
    background: #1a1a2e;
    color: #f4b400;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 18px;
    cursor: pointer;
}

.order-detail-section p {
    margin: 6px 0;
    font-size: 14px;
    color: #333;
}

.order-detail-section strong {
    color: #1a1a2e;
}

#order-detail-items table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

#order-detail-items th,
#order-detail-items td {
    text-align: left;
    padding: 8px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.order-detail-total {
    margin-top: 14px;
    font-size: 16px;
    color: #1a1a2e;
    text-align: right;
}

/* Sidebar dashboard layout */
.admin-shell {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 220px;
    background: #1a1a2e;
    color: white;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    flex-shrink: 0;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px 24px;
    font-size: 18px;
    font-weight: bold;
    border-bottom: 1px solid rgba(255,255,255,.1);
    margin-bottom: 16px;
}

.sidebar-brand-icon {
    width: 32px;
    height: 32px;
    background: #f4b400;
    color: #1a1a2e;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 12px;
    flex: 1;
}

.sidebar-nav .tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    color: #ccc;
    text-align: left;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
}

.sidebar-nav .tab-btn:hover {
    background: rgba(255,255,255,.06);
}

.sidebar-nav .tab-btn.active {
    background: #f4b400;
    color: #1a1a2e;
    font-weight: bold;
}

.sidebar-icon {
    font-size: 16px;
}

.admin-sidebar .logout-btn {
    margin: 16px 12px 0;
    background: rgba(255,255,255,.08);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
}

/* --- Sidebar: expandable nav groups (accordion), matching vendor dashboard pattern --- */

.admin-sidebar .vd-nav-group {
    margin-bottom: 2px;
}

.admin-sidebar .vd-nav-parent {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    background: none;
    color: #ccc;
    border: none;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.admin-sidebar .vd-nav-parent:hover {
    background: rgba(255,255,255,.06);
    color: #fff;
}

.admin-sidebar .vd-nav-label {
    flex: 1;
}

.admin-sidebar .vd-nav-chevron {
    font-size: 17px;
    line-height: 1;
    color: rgba(255,255,255,.4);
    transition: transform 0.15s ease;
    flex-shrink: 0;
}

.admin-sidebar .vd-nav-group.vd-nav-open .vd-nav-chevron {
    transform: rotate(90deg);
}

.admin-sidebar .vd-nav-badge {
    background: #DC2626;
    color: #fff;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    padding: 1px 7px;
    flex-shrink: 0;
}

.admin-sidebar .vd-nav-children {
    display: none;
    flex-direction: column;
}

.admin-sidebar .vd-nav-group.vd-nav-open .vd-nav-children {
    display: flex;
}

.admin-sidebar .vd-sub-item {
    padding-left: 30px !important;
    font-size: 13px;
}

.admin-sidebar .vd-sub-item-nested {
    padding-left: 46px !important;
}

.admin-sidebar .vd-sub-item-logout {
    margin-top: 8px;
    background: rgba(255,255,255,.08) !important;
    color: #fff !important;
}

.admin-main {
    flex: 1;
    background: #f4f5f7;
    min-height: 100vh;
    overflow-x: hidden;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 16px 24px;
    border-bottom: 1px solid #eee;
}

.admin-topbar-search {
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 16px;
    width: 280px;
    max-width: 50%;
    font-size: 14px;
}

.admin-topbar-title {
    font-weight: bold;
    color: #1a1a2e;
}

.admin-page-title {
    margin: 24px 24px 4px;
    color: #1a1a2e;
}

.admin-page-subtitle {
    margin: 0 24px 20px;
    color: #888;
    font-size: 14px;
}

#tab-orders, #tab-customers, #tab-products {
    padding: 0 24px 24px;
}

@media (max-width: 768px) {
    .admin-shell {
        flex-direction: column;
    }
    .admin-sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding: 12px;
    }
    .sidebar-brand {
        display: none;
    }
    .sidebar-nav {
        flex-direction: row;
        padding: 0;
    }
    .admin-sidebar .logout-btn {
        margin: 0 0 0 auto;
        white-space: nowrap;
    }
    .admin-topbar-search {
        width: 150px;
    }
}

/* Colored stat card tints (matches order: Revenue, Orders, Pending Orders, Customers, Pending Payments) */
#stats-grid .stat-card:nth-child(1) { background: #fef3e2; }
#stats-grid .stat-card:nth-child(2) { background: #e8f0fe; }
#stats-grid .stat-card:nth-child(3) { background: #fdeee9; }
#stats-grid .stat-card:nth-child(4) { background: #eafaf1; }
#stats-grid .stat-card:nth-child(5) { background: #fdeee9; }

/* ===== Account Settings ===== */

.account-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 24px;
    margin-bottom: 20px;
    max-width: 480px;
}

.account-card h3 {
    color: #1a1a2e;
    font-size: 16px;
    margin-bottom: 14px;
}

.account-card input {
    display: block;
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.account-card input:focus {
    outline: none;
    border-color: #f4b400;
}

.account-card button {
    background: #1a1a2e;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.account-card button:hover {
    background: #f4b400;
    color: #1a1a2e;
}

.account-msg {
    margin-top: 10px;
    font-size: 13px;
}

.account-msg.success {
    color: #1e7e34;
}

.account-msg.error {
    color: #c0392b;
}

#account-2fa-setup {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

#account-2fa-setup img {
    display: block;
    border-radius: 8px;
    margin-bottom: 10px;
}

#account-2fa-key {
    background: #f4f4f4;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
}

.session-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    gap: 10px;
}

.session-row:last-child {
    border-bottom: none;
}

.session-info {
    font-size: 14px;
}

.session-meta {
    font-size: 12px;
    color: #777;
    margin-top: 2px;
}

.session-current-tag {
    background: #e6f4ea;
    color: #1e7e34;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.session-logout-btn {
    background: #ffffff;
    color: #c0392b;
    border: 1px solid #c0392b;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

.session-logout-btn:hover {
    background: #c0392b;
    color: #ffffff;
}


/* Staff Accounts dropdown menu (Force Reset / Logout All / Login History etc.) */
.staff-menu-item {
    padding: 10px 14px;
    font-size: 13px;
    cursor: pointer;
    color: #1a1a2e;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
}
.staff-menu-item:last-child {
    border-bottom: none;
}
.staff-menu-item:hover {
    background: #f3f4f6;
}


/* --- Shopify-inspired product management redesign --- */

.product-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.product-summary-grid .stat-card {
    margin: 0;
}

.product-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.product-search-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.filter-tabs {
    display: flex;
    gap: 4px;
    background: #eef0f3;
    padding: 4px;
    border-radius: 10px;
}

.filter-tab {
    border: none;
    background: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
}

.filter-tab.active {
    background: #ffffff;
    color: #1a1a2e;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.product-table-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    background: #eee;
    vertical-align: middle;
}

.product-form-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-form-section {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 16px;
}

.product-form-section h4 {
    font-size: 14px;
    color: #1a1a2e;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.product-form-section .field-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Bigger, easier-to-read text and input boxes on the Add/Edit Product form
   (labels, help text and inputs in here were set inline at 11.5-13px,
   noticeably smaller than the rest of the admin panel). !important is used
   deliberately to win over those inline styles without having to touch
   every one of them individually. */
#product-form-title {
    font-size: 22px;
    margin: 0 0 4px;
}

#product-form-container label {
    font-size: 15px !important;
}

/* The category picker button replaces a plain <select> (Task: same
   searchable modal the vendor form already has) - it isn't
   covered by the input/select rule below since it's a <button>, so its
   text size is set to match explicitly. */
#product-category-btn {
    font-size: 16px !important;
}

#product-form-container .product-form-section p {
    font-size: 14px !important;
}

#product-form-container input[type="text"],
#product-form-container input[type="number"],
#product-form-container select,
#product-form-container textarea {
    font-size: 16px !important;
    padding: 12px 14px !important;
}

#product-form-container textarea {
    min-height: 70px;
}

.drag-drop-zone {
    border: 2px dashed #ccc;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    color: #888;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.drag-drop-zone.dragover {
    background: #fef3e2;
    border-color: #f4b400;
    color: #1a1a2e;
}

.drag-drop-preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.drag-drop-preview-grid img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd;
}


/* --- Swipeable profile panel --- */

.sidebar-profile-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    margin: 0 12px 16px;
    background: rgba(255,255,255,.06);
    border-radius: 10px;
    cursor: pointer;
    color: white;
    font-size: 13px;
}

.sidebar-profile-trigger:hover {
    background: rgba(255,255,255,.1);
}

.sidebar-profile-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f4b400;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 13px;
    flex-shrink: 0;
    overflow: hidden;
}

.sidebar-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-panel-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 998;
}

.profile-panel-overlay.open {
    display: block;
}

.profile-panel {
    position: fixed;
    top: 0;
    left: -100%;
    width: min(420px, 92vw);
    height: 100vh;
    background: #ffffff;
    z-index: 999;
    box-shadow: 8px 0 30px rgba(0,0,0,0.2);
    transition: left 0.25s ease;
    overflow-y: auto;
    padding: 20px;
}

.profile-panel.open {
    left: 0;
}

.profile-panel.dragging {
    transition: none;
}

.profile-panel-handle {
    width: 40px;
    height: 4px;
    background: #ddd;
    border-radius: 4px;
    margin: 0 auto 12px;
}

.profile-panel-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.profile-panel-photo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 0 24px;
}

.profile-photo-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
}

.profile-photo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo-name {
    font-size: 18px;
    font-weight: bold;
    color: #1a1a2e;
}

.profile-photo-role {
    font-size: 13px;
    color: #666;
}

.profile-form-section {
    border-top: 1px solid #eee;
    padding-top: 16px;
}

.profile-form-section h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #999;
    margin-bottom: 12px;
}

.profile-form-section .field-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-form-section input,
.profile-form-section select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.profile-panel-footer {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.profile-panel-footer button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.profile-panel-footer button:first-child {
    background: #eee;
    color: #333;
}

.profile-panel-footer button:last-child {
    background: #1a1a2e;
    color: white;
}


/* --- Photo crop modal --- */

.profile-photo-circle {
    cursor: pointer;
}

.profile-photo-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 8px;
}

.profile-photo-actions button {
    background: none;
    border: none;
    color: #f4b400;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
}

.profile-photo-actions button.remove-link {
    color: #DC2626;
}

.crop-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.75);
    z-index: 1001;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.crop-modal-overlay.open {
    display: flex;
}

.crop-viewport {
    width: min(85vw, 380px);
    height: min(85vw, 380px);
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background: #222;
    box-shadow: 0 0 0 2000px rgba(0,0,0,0.75);
    touch-action: none;
    cursor: grab;
}

.crop-viewport img {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: none;
    transform-origin: center center;
    transform: translate(-50%, -50%);
    user-select: none;
    -webkit-user-drag: none;
}

.crop-modal-hint {
    color: #ccc;
    font-size: 13px;
    margin-top: 16px;
    text-align: center;
}

.crop-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.crop-modal-actions button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.crop-modal-actions button.crop-cancel {
    background: #444;
    color: white;
}

.crop-modal-actions button.crop-confirm {
    background: #f4b400;
    color: #1a1a2e;
}

/* ---------- Category management ---------- */

.category-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    border: 1px solid #e5e7eb;
}

.category-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #9ca3af;
    font-size: 18px;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.badge-active {
    background: #dcfce7;
    color: #166534;
}

.badge-hidden {
    background: #f3f4f6;
    color: #6b7280;
}

.category-child-name {
    padding-left: 22px;
    color: #4b5563;
}

/* ---------- Promotions ---------- */

.promo-thumb {
    width: 96px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    border: 1px solid #e5e7eb;
}

.promo-hint {
    font-size: 13px;
    color: #6b7280;
    margin: -4px 0 14px;
    max-width: 640px;
}

/* Account security modal (staff pages) */
.sc-acct-modal { position: fixed; inset: 0; z-index: 900; }
.sc-acct-modal.hidden { display: none; }
.sc-acct-backdrop { position: absolute; inset: 0; background: rgba(15,27,61,.55); }
.sc-acct-panel { position: relative; max-width: 420px; margin: 8vh auto 0; background: #fff;
  border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.28); overflow: hidden; }
.sc-acct-head { display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid #e6e8ef; }
.sc-acct-head h3 { margin: 0; font-size: 17px; color: #0f1b3d; }
.sc-acct-close { background: none; border: none; font-size: 26px; line-height: 1;
  color: #6b7280; cursor: pointer; padding: 0 4px; }
.sc-acct-body { padding: 18px; }
.sc-acct-body input[type="text"] { width: 100%; padding: 10px 12px; margin: 10px 0;
  border: 1px solid #d4d7e0; border-radius: 8px; font-size: 15px; }
.sc-acct-body code { background: #f3f4f8; padding: 3px 7px; border-radius: 5px;
  font-size: 13px; word-break: break-all; }
#account-2fa-setup.hidden { display: none; }
.account-msg { margin-top: 12px; font-size: 14px; }
.account-msg.success { color: #1a7f37; }
.account-msg.error { color: #c02b2b; }

/* Live queue tags */
.q-tag { display: inline-block; padding: 3px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .3px; }
.q-waiting { background: #fef3e2; color: #b45309; }
.q-noreply { background: #fdeee9; color: #c02b2b; }
#support-queue-list select { padding: 6px 8px; border: 1px solid #d4d7e0;
  border-radius: 6px; font-size: 13px; max-width: 180px; }

/* Conversation monitor */
.q-open { cursor: pointer; color: #0f1b3d; font-weight: 600; }
.q-open:hover { text-decoration: underline; }
.monitor-head { display: flex; align-items: center; justify-content: space-between; }
.monitor-close { background: none; border: none; font-size: 26px; line-height: 1;
  color: #6b7280; cursor: pointer; padding: 0 4px; }
.monitor-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 14px; }
.m-pill { background: #f3f4f8; color: #374151; padding: 3px 9px;
  border-radius: 999px; font-size: 12px; }
.monitor-timeline { border-left: 2px solid #e6e8ef; padding-left: 14px;
  margin-bottom: 18px; }
.m-event { position: relative; font-size: 13px; color: #4b5563; padding: 5px 0; }
.m-event-dot { position: absolute; left: -20px; top: 11px; width: 8px; height: 8px;
  border-radius: 50%; background: #C9A227; }
.m-event-label { font-weight: 600; color: #1a1a2e; }
.m-event-who { color: #6b7280; margin-left: 6px; }
.m-event-time { color: #9ca3af; margin-left: 8px; font-size: 12px; }
.monitor-thread { max-height: 420px; overflow-y: auto; padding-right: 4px; }
.m-msg { max-width: 78%; margin-bottom: 10px; padding: 9px 12px; border-radius: 12px;
  font-size: 14px; line-height: 1.45; }
.m-msg-time { font-size: 11px; color: #9ca3af; margin-top: 4px; }
.m-customer { background: #f3f4f8; color: #1a1a2e; }
.m-staff { background: #0f1b3d; color: #fff; margin-left: auto; }
.m-staff .m-msg-time { color: #cbd5e1; }
.m-system, .m-ai { background: #fef3e2; color: #92400e; margin: 10px auto;
  text-align: center; font-size: 13px; }

/* Monitor actions */
.monitor-actions { display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid #e6e8ef; }
.m-btn { padding: 8px 14px; border: 1px solid #d4d7e0; background: #fff;
  border-radius: 8px; font-size: 14px; cursor: pointer; color: #374151; }
.m-btn:hover { background: #f9fafb; }
.m-btn-primary { background: #0f1b3d; color: #fff; border-color: #0f1b3d; }
.m-btn-primary:hover { background: #1a2a52; }

/* Monitor compose */
.monitor-compose { display: flex; gap: 8px; align-items: flex-end;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid #e6e8ef; }
.monitor-compose textarea { flex: 1; padding: 10px 12px; border: 1px solid #d4d7e0;
  border-radius: 8px; font-size: 14px; font-family: inherit; resize: vertical; }

/* ---- Description block editor ---- */
.lzbe { border: 1px solid #dcdfe6; border-radius: 6px; padding: 10px; margin: 8px 0 14px; }
.lzbe-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.lzbe-bar button { margin-left: 6px; padding: 5px 10px; border: 1px solid #0d1b3e; background: #fff; color: #0d1b3e; border-radius: 4px; cursor: pointer; font-size: 0.85rem; }
.lzbe-bar button:hover { background: #0d1b3e; color: #fff; }
.lzbe-busy { color: #b8860b; font-size: 0.85rem; min-height: 18px; }
.lzbe-row { border: 1px solid #eee; border-radius: 5px; padding: 8px; margin-bottom: 8px; background: #fafafa; }
.lzbe-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.lzbe-type { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: #666; font-weight: 700; }
.lzbe-ctrl button { margin-left: 4px; width: 28px; height: 26px; border: 1px solid #ccc; background: #fff; border-radius: 4px; cursor: pointer; }
.lzbe-row textarea, .lzbe-row input[type="text"] { width: 100%; padding: 6px; border: 1px solid #ccc; border-radius: 4px; font-family: inherit; }
.lzbe-thumb { max-width: 120px; height: auto; display: block; margin-bottom: 6px; border-radius: 4px; }
.lzbe-dim { font-size: 0.75rem; color: #888; margin-top: 4px; }
.lzbe-video-preview { margin: 6px 0; }
.lzbe-video-preview iframe, .lzbe-video-preview video { max-width: 100%; border-radius: 4px; background: #000; }
.lzbe-fullwidth-toggle { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 0.82rem; color: #444; cursor: pointer; }
.lzbe-fullwidth-toggle input { margin: 0; }
.lzbe-empty { color: #888; font-size: 0.88rem; margin: 4px 0; }


/* Staff Account Security shown inline in the dashboard rather than as an
   overlay. Scoped to the inline host so .sc-acct-panel keeps its modal
   appearance anywhere it is still used that way. */
#sc-acct-inline .sc-acct-panel {
    position: static;
    width: 100%;
    max-width: 640px;
    margin: 0;
    transform: none;
    box-shadow: none;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    max-height: none;
}

#sc-acct-inline .sc-acct-head {
    border-bottom: 1px solid #eee;
}

#sc-acct-inline .sc-acct-body {
    max-height: none;
    overflow: visible;
}


/* Rich text block: pasted lists keep numbering, ticks and levels. */
.lzbe-rich { min-height: 90px; border: 1px solid #ccd0d9; border-radius: 4px; padding: 8px 10px; font-size: 0.9rem; line-height: 1.5; background: #fff; overflow-wrap: break-word; }
.lzbe-rich:focus { outline: none; border-color: #0d1b3e; }
.lzbe-rich:empty:before { content: attr(data-ph); color: #9aa0ab; }
.lzbe-rich ul, .lzbe-rich ol { margin: 6px 0; padding-left: 22px; }
.lzbe-rich li { margin: 2px 0; }
.lzbe-rich ul.lzbe-check { list-style: none; padding-left: 0; }
.lzbe-rich ul.lzbe-check > li { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 10px; }
.lzbe-rich .tick { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; background: #fbeaea; color: #c0392b; font-weight: 700; font-size: 0.8rem; display: inline-flex; align-items: center; justify-content: center; }
.lzbe-tickbar { margin-top: 6px; }
.lzbe-tickbar button { padding: 4px 10px; border: 1px solid #0d1b3e; background: #fff; color: #0d1b3e; border-radius: 4px; cursor: pointer; font-size: 0.8rem; }
.lzbe-tickbar button:hover { background: #0d1b3e; color: #fff; }


/* Promotion background swatches. Pale tints only: strip text is a fixed dark
   red, so a dark background would be unreadable. */
.promo-swatch-row {
    flex: 1 1 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.promo-swatch {
    width: 40px;
    height: 32px;
    padding: 0;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    cursor: pointer;
    font-size: 0;
    transition: transform 0.12s ease, border-color 0.12s ease;
}

.promo-swatch:hover { transform: translateY(-1px); }

.promo-swatch.selected {
    border-color: #111827;
    box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.15);
}

.promo-swatch.clear {
    width: auto;
    padding: 0 12px;
    background: #ffffff;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
}


/* Promotion slot tiles */
.promo-slot-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0 16px;
}

.promo-slot-tile {
    flex: 1 1 150px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    cursor: pointer;
    text-align: left;
    position: relative;
    transition: border-color 0.12s ease, background 0.12s ease;
}

.promo-slot-tile:hover { border-color: #d1d5db; }

.promo-slot-tile.selected {
    border-color: #111827;
    background: #f9fafb;
}

.promo-slot-tile.empty { opacity: 0.65; }

.pst-name { font-size: 14px; font-weight: 700; color: #111827; }
.pst-note { font-size: 12px; color: #6b7280; }

.pst-count {
    position: absolute;
    top: 10px;
    right: 12px;
    min-width: 22px;
    padding: 1px 6px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.promo-slot-tile.selected .pst-count { background: #F5C518; color: #111827; }

/* Style preview */
.promo-preview-wrap {
    flex: 1 1 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.promo-preview-label {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.promo-preview {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-height: 56px;
    padding: 0 18px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.promo-preview strong { font-weight: 700; }
.promo-preview span { font-size: 14px; opacity: 0.9; }

.promo-preview-note { font-size: 12px; color: #6b7280; }
.promo-preview-note.warn { color: #c0392b; font-weight: 600; }

.promo-thumb-none {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 12px;
}

/* Grid block authoring — mirrors .lzbe-row's card look so it doesn't read
   as a bolted-on special case. */
.lzbe-grid-cols { display: block; font-size: 0.8rem; color: #666; margin: 6px 0; }
.lzbe-grid-cols input { width: 60px; margin-left: 6px; padding: 4px 6px; border: 1px solid #ccc; border-radius: 4px; }
.lzbe-grid-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 8px 0; }
.lzbe-grid-item { border: 1px solid #e2e2e2; border-radius: 5px; padding: 8px; background: #fff; }
.lzbe-grid-item-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.lzbe-grid-item-head button { width: 24px; height: 22px; border: 1px solid #ccc; background: #fff; border-radius: 4px; cursor: pointer; }
.lzbe-grid-item .lzbe-thumb { max-width: 100%; }
.lzbe-grid-item input, .lzbe-grid-item textarea, .lzbe-grid-item select { width: 100%; margin-top: 6px; padding: 5px; border: 1px solid #ccc; border-radius: 4px; font-family: inherit; font-size: 0.85rem; }
.lzbe-grid-item button { margin-top: 6px; padding: 4px 8px; border: 1px solid #0d1b3e; background: #fff; color: #0d1b3e; border-radius: 4px; cursor: pointer; font-size: 0.78rem; }
.lzbe-grid-add { margin-top: 4px; padding: 6px 12px; border: 1px dashed #0d1b3e; background: #fff; color: #0d1b3e; border-radius: 4px; cursor: pointer; font-size: 0.85rem; }
.lzbe-grid-add:hover { background: #0d1b3e; color: #fff; }

/* Per-item video/link fields in a grid column - a compact labeled group,
   distinct from the plain inputs above it so the optional-ness reads
   clearly in a small card. */
.lzbe-grid-media-field { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #e2e2e2; }
.lzbe-grid-media-field label { display: block; font-size: 0.75rem; color: #666; margin-bottom: 2px; }
.lzbe-grid-media-field input, .lzbe-grid-media-field select { margin-top: 0 !important; }
.lzbe-grid-media-field select { margin-top: 4px !important; }

/* --- Specs "insert table" paste tool (Word-style: pick rows/columns, then
   paste Excel data straight into the grid) --- */
/* Word/hover grid for picking a table size (replaces the
   earlier rows/columns number-input version per Ryan's screenshot of
   an "insert table" picker - hover highlights a block of cells
   and shows "cols x rows", click inserts a table that size). */
.specs-table-grid-wrap { position: relative; display: inline-block; margin-bottom: 8px; }
.specs-table-grid-trigger { padding: 7px 12px; border-radius: 6px; border: 1px solid #1a1a2e; background: #1a1a2e; color: #fff; cursor: pointer; font-size: 12.5px; }
.specs-table-grid-popover { position: absolute; top: 100%; left: 0; margin-top: 4px; background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 10px; box-shadow: 0 4px 16px rgba(0,0,0,0.15); z-index: 50; }
.specs-table-grid-popover.hidden { display: none; }
.specs-table-grid { display: grid; grid-template-columns: repeat(10, 16px); grid-template-rows: repeat(8, 16px); gap: 2px; }
.specs-grid-cell { width: 16px; height: 16px; border: 1px solid #d5d5d5; background: #fafafa; border-radius: 2px; }
.specs-grid-cell.specs-grid-cell-active { background: #bfdbfe; border-color: #3b82f6; }
.specs-table-grid-label { margin-top: 8px; font-size: 12px; color: #444; text-align: center; }
.specs-paste-table { border-collapse: collapse; width: 100%; margin-bottom: 8px; }
.specs-paste-table td { border: 1px solid #ddd; padding: 0; }
.specs-paste-table .specs-paste-cell { width: 100%; box-sizing: border-box; padding: 7px 8px; border: none; font-family: monospace; font-size: 12px; background: #fff; }
.specs-paste-table .specs-paste-cell:focus { outline: 2px solid #1a1a2e; outline-offset: -2px; background: #fbfaf5; }
.specs-paste-table-actions { display: flex; gap: 8px; }
.specs-paste-table-actions button:first-child { padding: 7px 12px; border-radius: 6px; border: 1px solid #1a1a2e; background: #1a1a2e; color: #fff; cursor: pointer; font-size: 12.5px; }
.specs-paste-table-actions button:last-child { padding: 7px 12px; border-radius: 6px; border: 1px solid #ccc; background: #fff; color: #444; cursor: pointer; font-size: 12.5px; }

/* --- Customers: one tile holding the whole list (Facebook-contacts style),
   card rows instead of a plain table --- */
.customers-tile {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 16px;
}

.customers-tile-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.customers-tile-head input {
    flex: 1;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
}

.customers-tile-count {
    font-size: 12.5px;
    color: #888;
    white-space: nowrap;
}

.customer-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 8px;
    border-bottom: 1px solid #f0f0f0;
}

.customer-card:last-child {
    border-bottom: none;
}

.customer-card-avatar {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1a1a2e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.customer-card-body {
    flex: 1;
    min-width: 0;
}

.customer-card-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.customer-card-name {
    font-weight: 700;
    font-size: 14.5px;
    color: #1a1a2e;
}

.customer-new-badge {
    background: #DC2626;
    color: #fff;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 8px;
    text-transform: uppercase;
}

.customer-card-meta {
    font-size: 12.5px;
    color: #888;
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-card-actions {
    flex: 0 0 auto;
    display: flex;
    gap: 6px;
}

.customer-card-btn {
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
    color: #fff;
}

.customer-card-btn-restore { background: #16A34A; }
.customer-card-btn-danger { background: #DC2626; }

@media (max-width: 640px) {
    .customer-card { flex-wrap: wrap; }
    .customer-card-actions { width: 100%; justify-content: flex-end; margin-top: 6px; }
}

/* Grid column's rich-text field reuses .lzbe-rich but is shorter and a
   touch smaller, since it sits in a narrow card next to an image/caption
   rather than being the whole block. */
.lzbe-grid-rich { min-height: 60px; font-size: 0.85rem; margin-top: 6px; }
.lzbe-grid-item .lzbe-tickbar { margin-top: 4px; }
.lzbe-grid-item .lzbe-tickbar button { padding: 3px 8px; font-size: 0.72rem; }

.lzbe-altcount { font-size: 12px; color: #6b7280; text-align: right; margin-top: 2px; }
.lzbe-altcount.is-near { color: #b45309; }

/* ============================================================
   Analytics / Performance Reports
   ============================================================ */

.lz-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.lz-panel-head h2 {
    margin-bottom: 0;
}

.lz-export-btn {
    background: #fff;
    border: 1px solid #1a1a2e;
    color: #1a1a2e;
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.lz-export-btn:hover { background: #1a1a2e; color: #fff; }

.lz-chart-wrap {
    position: relative;
    width: 100%;
    height: 260px;
}

.lz-analytics-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.lz-mini-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: none;
}

.lz-mini-table td {
    padding: 6px 4px;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f2;
}

.lz-mini-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: #1a1a2e;
    white-space: nowrap;
}

.sortable-th {
    cursor: pointer;
    user-select: none;
}

.sortable-th:hover { color: #1a1a2e; }

.sortable-th .lz-sort-arrow {
    margin-left: 4px;
    opacity: 0.4;
}

.sortable-th.active .lz-sort-arrow { opacity: 1; }

/* Weekly / Monthly / Annual / Custom toggle on Performance Reports */
.lz-period-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.lz-period-btn {
    background: #fff;
    border: 1px solid #d9d9d9;
    color: #555;
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.lz-period-btn:hover { border-color: #1a1a2e; color: #1a1a2e; }

.lz-period-btn.active {
    background: #1a1a2e;
    border-color: #1a1a2e;
    color: #fff;
}

/* ---------- Cloudflare-style date range picker ---------- */

.lz-dr-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.lz-dr-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    cursor: pointer;
}

.lz-dr-trigger:hover { border-color: #1a1a2e; }

.lz-dr-caret { font-size: 12px; color: #888; }

.lz-dr-pop {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 40;
    display: flex;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
    overflow: hidden;
    min-width: 560px;
}

.lz-dr-pop.hidden { display: none; }

.lz-dr-presets {
    display: flex;
    flex-direction: column;
    min-width: 150px;
    border-right: 1px solid #eee;
    padding: 8px;
    background: #fafafb;
}

.lz-dr-presets button {
    text-align: left;
    background: none;
    border: none;
    padding: 9px 10px;
    border-radius: 6px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
}

.lz-dr-presets button:hover { background: #eee; }
.lz-dr-presets button.active { background: #1a1a2e; color: #fff; }

.lz-dr-calendars { padding: 14px 16px; }

.lz-dr-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.lz-dr-cal-nav button {
    background: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 26px;
    height: 26px;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
}

.lz-dr-cal-title { font-size: 13px; font-weight: 700; color: #1a1a2e; }

.lz-dr-cal-grids {
    display: flex;
    gap: 18px;
}

table.lz-dr-cal {
    border-collapse: collapse;
    box-shadow: none;
    border-radius: 0;
}

table.lz-dr-cal caption {
    font-size: 12px;
    font-weight: 700;
    color: #555;
    padding-bottom: 6px;
    text-align: left;
}

table.lz-dr-cal th {
    background: none;
    font-size: 10px;
    color: #aaa;
    padding: 4px 6px;
    text-transform: none;
}

table.lz-dr-cal td {
    padding: 0;
    border: none;
    text-align: center;
    width: 30px;
    height: 30px;
}

.lz-dr-day {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 1px auto;
    border-radius: 50%;
    font-size: 12px;
    color: #333;
    cursor: pointer;
}

.lz-dr-day:hover { background: #f0f0f2; }
.lz-dr-day.is-muted { color: #ccc; cursor: default; }
.lz-dr-day.is-muted:hover { background: none; }
.lz-dr-day.in-range { background: #eef0fb; border-radius: 0; }
.lz-dr-day.is-start, .lz-dr-day.is-end {
    background: #1a1a2e;
    color: #fff;
    border-radius: 50%;
}

.lz-dr-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    gap: 12px;
}

.lz-dr-range-preview { font-size: 12px; color: #888; }

.lz-dr-apply {
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.lz-dr-apply:hover { background: #F5C518; color: #1a1a2e; }

@media (max-width: 640px) {
    .lz-dr-pop {
        min-width: 0;
        left: -8px;
        right: -8px;
        flex-direction: column;
    }
    .lz-dr-presets {
        flex-direction: row;
        flex-wrap: wrap;
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    .lz-dr-cal-grids { flex-direction: column; gap: 4px; }
}

/* Report column (Download PDF / Share via email) on the vendor & staff
   performance tables. */
.lz-report-actions {
    white-space: nowrap;
}

.lz-report-btn {
    background: #fff;
    border: 1px solid #d9d9d9;
    color: #333;
    border-radius: 6px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-right: 6px;
}

.lz-report-btn:last-child { margin-right: 0; }

.lz-report-btn:hover:not(:disabled) { border-color: #1a1a2e; color: #1a1a2e; }

.lz-report-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Team messaging on/off toggle */
.lz-toggle-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.lz-toggle-switch input { opacity: 0; width: 0; height: 0; }
.lz-toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
  background: #d4d7e0; border-radius: 999px; transition: .2s; }
.lz-toggle-slider::before { position: absolute; content: ""; height: 20px; width: 20px; left: 3px; bottom: 3px;
  background: #fff; border-radius: 50%; transition: .2s; }
.lz-toggle-switch input:checked + .lz-toggle-slider { background: #0f1b3d; }
.lz-toggle-switch input:checked + .lz-toggle-slider::before { transform: translateX(20px); }

/* Team Messages: presence, sticker/file bubbles, emoji/sticker composer */
.tm-thread-title-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 0; }
.tm-presence { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #666; font-weight: 400; }
.tm-presence-dot { width: 7px; height: 7px; border-radius: 50%; background: #ccc; flex-shrink: 0; }
.tm-presence-dot.tm-presence-active { background: #35d07f; }

.tm-row-dot { width: 8px; height: 8px; border-radius: 50%; background: #ccc; display: inline-block; margin-right: 6px; }
.tm-row-dot.tm-presence-active { background: #35d07f; }

.tm-sticker-msg { font-size: 40px; line-height: 1; }

.tm-file {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 8px 12px; border-radius: 10px; text-decoration: none;
    background: rgba(0,0,0,0.06); color: inherit; max-width: 100%;
}
.tm-file-icon { font-size: 18px; flex-shrink: 0; }
.tm-file-meta { display: flex; flex-direction: column; min-width: 0; }
.tm-file-name { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.tm-file-size { font-size: 10.5px; opacity: 0.7; }

.tm-composer-wrap { position: relative; margin-top: 10px; }

.tm-popover {
    position: absolute; bottom: 100%; left: 0; margin-bottom: 6px;
    background: #fff; border: 1px solid #e6e8ef; border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18); padding: 8px;
    width: 280px; max-height: 220px; overflow-y: auto; z-index: 20;
}
.tm-emoji-grid, .tm-sticker-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.tm-emoji-item, .tm-sticker-item {
    background: none; border: none; cursor: pointer; border-radius: 8px;
    padding: 5px 0; font-size: 20px; line-height: 1;
}
.tm-sticker-item { font-size: 26px; }
.tm-emoji-item:hover, .tm-sticker-item:hover { background: #f0f1f6; }

.tm-icon-btn {
    background: none; border: none; cursor: pointer; font-size: 18px;
    width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
}
.tm-icon-btn:hover { background: #f0f1f6; }

/* Team Messages: categorized full emoji picker (admin composer) */
.tm-emoji-popover-wrap {
    width: 320px;
    max-height: 280px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0;
}
.tm-emoji-popover-wrap[hidden] { display: none; }
.tm-emoji-tabs {
    display: flex;
    gap: 2px;
    padding: 6px 6px 4px;
    border-bottom: 1px solid #eef0f6;
    overflow-x: auto;
    flex-shrink: 0;
}
.tm-emoji-tab {
    background: none; border: none; cursor: pointer;
    font-size: 17px; padding: 4px 6px; border-radius: 8px; line-height: 1;
    flex-shrink: 0;
}
.tm-emoji-tab:hover { background: #f0f1f6; }
.tm-emoji-tab.active { background: #eef0f6; }
.tm-emoji-grid { overflow-y: auto; padding: 6px; }

/* ---------------------------------------------------------------------- */
/* Admin Notes tab - a private, admin-only reference scratchpad (Samsung  */
/* Notes style: title + body + colour + optional pin). See               */
/* adminNotesController.js / migrations/116_admin_notes.sql.              */

.notes-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.notes-search-input {
    flex: 1 1 240px;
    max-width: 320px;
    padding: 8px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    font-size: 14px;
}

.note-pin-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #4a5568;
    white-space: nowrap;
}

.note-color-row {
    display: flex;
    gap: 8px;
    margin: 10px 0 14px;
}

.note-color-swatch {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #dcdfe6;
    cursor: pointer;
    padding: 0;
}

.note-color-swatch.selected {
    border-color: #0f1b3d;
    box-shadow: 0 0 0 2px rgba(15,27,61,0.15);
}

#note-form-container #note-title-input {
    flex: 1 1 auto;
    padding: 9px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    font-size: 14px;
}

#note-form-container .field-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

#note-body-input {
    width: 100%;
    min-height: 380px;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 10px;
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    /* Extra top padding so a reaction badge overlapping the top of the
       first row of cards doesn't get clipped by the grid edge. */
    padding-top: 16px;
}

.note-card {
    position: relative;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    min-height: 140px;
    /* Room for the reaction badge, which overlaps the top edge rather than
       sitting flush with it. */
    margin-top: 14px;
}

/* WhatsApp-style reaction "sticker" - a small round badge overlapping the
   TOP-right corner of the card (never the bottom), matching how a reaction
   sits on top of a WhatsApp message bubble. */
.note-reaction-badge,
.note-reaction-add {
    position: absolute;
    top: -14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    z-index: 2;
}

.note-reaction-add {
    font-size: 12px;
    color: #6b7280;
    opacity: 0;
    transition: opacity 0.15s;
}

.note-card:hover .note-reaction-add {
    opacity: 1;
}

.note-reaction-picker {
    position: absolute;
    top: -52px;
    right: 8px;
    display: flex;
    align-items: center;
    gap: 2px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 20px;
    padding: 5px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 3;
}

.note-reaction-picker button {
    background: none;
    border: none;
    font-size: 17px;
    line-height: 1;
    padding: 3px;
    cursor: pointer;
    border-radius: 6px;
}

.note-reaction-picker button:hover {
    background: #f0f1f6;
}

.note-reaction-picker .note-reaction-clear {
    color: #9ca3af;
    font-size: 15px;
    font-weight: 700;
    margin-left: 2px;
}

.note-card-head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.note-pin-badge {
    font-size: 13px;
    line-height: 1;
}

.note-card-title {
    margin: 0;
    font-size: 15px;
    color: #1a1a2e;
    word-break: break-word;
}

.note-card-body {
    font-size: 13.5px;
    color: #333;
    white-space: pre-wrap;
    word-break: break-word;
    flex: 1 1 auto;
    margin-bottom: 10px;
    max-height: 180px;
    overflow-y: auto;
}

.note-card-meta {
    font-size: 11.5px;
    color: #8b93a5;
    margin-bottom: 8px;
}

.note-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.note-card-actions button {
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid #dcdfe6;
    background: rgba(255,255,255,0.7);
    cursor: pointer;
}

.note-card-actions button:hover {
    background: #fff;
    border-color: #b8bfcc;
}

/* --- Specs paste table layout --- */
.specs-paste-table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 10px;
    table-layout: fixed;
}

.specs-paste-table td {
    border: 1px solid #ccc;
    padding: 0;
    vertical-align: top;
    background: #fff;
}

.specs-paste-table input.specs-paste-cell {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: none;
    padding: 6px 8px;
    font-size: 13px;
    font-family: inherit;
    background: transparent;
    outline: none;
    min-height: 26px;
}

.specs-paste-table input.specs-paste-cell:focus {
    background: #f0f7ff;
    box-shadow: inset 0 0 0 2px #007bff;
}

.specs-paste-table-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}

.specs-paste-table-actions button {
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 12.5px;
}

/* --- Specs paste table drag-select --- */
.specs-paste-table td.specs-paste-cell {
    border: 1px solid #ccc;
    padding: 6px 8px;
    font-size: 13px;
    min-width: 40px;
    min-height: 24px;
    cursor: cell;
    user-select: none;
    outline: none;
    background: #fff;
}

.specs-paste-table td.specs-paste-cell:focus {
    box-shadow: inset 0 0 0 2px #007bff;
    background: #f0f7ff;
}

.specs-paste-table td.specs-paste-cell.specs-selected {
    background: #cfe6ff;
    box-shadow: inset 0 0 0 1px #007bff;
}

/* --- Table block editor (client/js/lz-table.js) ---------------------------
   CKEditor/: a small toolbar (Column / Row / Merge menus) above
   the table; header rows/columns render bold on a grey band. */
.lzbe-table-hint { font-size: 12px; color: #6b7280; margin: 2px 0 8px; }
.lzt-editor { position: relative; }
.lzt-toolbar { position: relative; display: inline-flex; align-items: center; gap: 2px; background: #fff; border: 1px solid #d5d8de; border-radius: 4px; box-shadow: 0 2px 6px rgba(0,0,0,.12); padding: 3px; margin-bottom: 8px; }
.lzt-tool { display: inline-flex; align-items: center; gap: 2px; background: none; border: none; border-radius: 3px; padding: 5px 6px; cursor: pointer; color: #333; }
.lzt-tool:hover, .lzt-tool-open { background: #eef4fd; color: #2b6dd2; }
.lzt-size { font-size: 11.5px; color: #8a8f99; padding: 0 8px; }
.lzt-menu { position: absolute; top: calc(100% + 2px); z-index: 60; min-width: 230px; background: #fff; border: 1px solid #d5d8de; border-radius: 2px; box-shadow: 0 4px 14px rgba(0,0,0,.18); padding: 0; }
.lzt-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; background: none; border: none; text-align: left; padding: 11px 16px; font: inherit; font-size: 14px; color: #222; cursor: pointer; }
.lzt-item:hover:not(:disabled), .lzt-item:focus-visible { background: #f0f0f0; }
.lzt-item:disabled { color: #a3a8b3; cursor: default; }
.lzt-item-toggle { background: #f0f0f0; border-bottom: 1px solid #d5d8de; }
.lzt-divider { height: 1px; background: #d5d8de; }
.lzt-switch { position: relative; width: 36px; height: 20px; border-radius: 4px; background: #808080; flex-shrink: 0; transition: background .15s; }
.lzt-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 3px; background: #fff; transition: transform .15s; }
.lzt-switch.lzt-on { background: #5d9d42; }
.lzt-switch.lzt-on::after { transform: translateX(16px); }
.lzt-scroll { overflow-x: auto; }
.lzt-table { border-collapse: collapse; min-width: 100%; table-layout: auto; }
.lzt-table td { border: 1px solid #bfbfbf; padding: 0; vertical-align: top; min-width: 90px; background: #fff; }
.lzt-table td.lzt-head { background: #f2f2f2; }
.lzt-table td.lzt-head .lzt-in { font-weight: 700; }
.lzt-table td.lzt-selected { background: #e2ecfb; }
.lzt-table-range .lzt-in { -webkit-user-select: none; user-select: none; caret-color: transparent; }
.lzt-table-range td.lzt-selected { background: #d4e3fa; }
.lzt-table td.lzt-focus { outline: 2px solid #6a9ad9; outline-offset: -2px; }
.lzt-in { min-height: 22px; padding: 8px 10px; font-size: 14px; line-height: 1.45; outline: none; white-space: pre-wrap; word-break: break-word; }
@media (max-width: 600px) {
    .lzt-table, .lzt-table tbody { display: table-row-group; }
    table.lzt-table { display: table; }
    .lzt-table tr { display: table-row; margin: 0; border: none; padding: 0; border-radius: 0; }
    .lzt-table td { display: table-cell; }
    .lzt-table td::before { content: none; }
}

/* --- Specifications: Paste from Excel / Insert Table (lz-spec-tools.js) --- */
.lz-spec-tools { margin-top: 14px; border-top: 1px dashed #ddd; padding-top: 12px; }
.lzs-block { margin-bottom: 4px; }
.lzs-title { font-size: 13px; font-weight: 700; color: #1a1a2e; margin-bottom: 3px; }
.lzs-hint { font-size: 11.5px; color: #888; margin: 0 0 8px; line-height: 1.5; }
.lzs-text { width: 100%; box-sizing: border-box; padding: 8px; border: 1px solid #ccc; border-radius: 6px; font-family: Menlo, Consolas, monospace; font-size: 12.5px; resize: vertical; }
.lzs-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.lzs-btn { padding: 8px 14px; border-radius: 6px; border: 1px solid #ccc; background: #fff; color: #333; font: inherit; font-size: 13px; cursor: pointer; }
.lzs-btn-primary { background: #f4b400; border-color: #f4b400; color: #1a1a2e; font-weight: 700; }
.lzs-btn-navy { background: #1a1a2e; border-color: #1a1a2e; color: #fff; font-weight: 600; }
.lzs-or { display: flex; align-items: center; gap: 10px; color: #9aa1ae; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin: 16px 0 12px; }
.lzs-or::before, .lzs-or::after { content: ""; flex: 1; height: 1px; background: #e5e7eb; }
.lzs-picker-wrap { position: relative; display: inline-block; margin-bottom: 10px; }
.lzs-picker { position: absolute; top: calc(100% + 4px); left: 0; z-index: 50; background: #fff; border: 1px solid #dfe1e8; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.15); padding: 10px; }
.lzs-picker[hidden] { display: none; }
.lzs-grid { display: grid; grid-template-columns: repeat(8, 20px); gap: 3px; }
.lzs-grid-cell { width: 20px; height: 20px; padding: 0; border: 1px solid #dfe1e8; background: #f9f9fb; border-radius: 2px; cursor: pointer; }
.lzs-grid-cell.lzs-on { background: #bfdbfe; border-color: #3b82f6; }
.lzs-grid-label { margin-top: 8px; font-size: 12px; color: #444; text-align: center; }
.lzs-status { font-size: 12.5px; color: #1e7e34; min-height: 16px; margin-top: 6px; }

/* Select-whole-table handle (top-left corner, CKEditor-style) */
.lzt-frame { position: relative; padding: 12px 0 0 12px; }
.lzt-grab { position: absolute; top: 0; left: 0; z-index: 2; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; padding: 0; border: 1px solid #b7c4d8; border-radius: 3px; background: #fff; color: #4a6fa5; cursor: pointer; }
.lzt-grab:hover, .lzt-grab:focus-visible, .lzt-grab-on { background: #2b6dd2; border-color: #2b6dd2; color: #fff; }
.lzt-table-all { outline: 2px solid #6a9ad9; outline-offset: 1px; }
.lzt-editor:focus { outline: none; }

/* "+" bars for adding a column (right edge) / row (bottom edge) */
.lzt-frame { display: grid; grid-template-columns: minmax(0, 1fr) 22px; grid-template-rows: auto 22px; column-gap: 4px; row-gap: 4px; }
.lzt-frame .lzt-scroll { grid-column: 1; grid-row: 1; }
.lzt-add { display: flex; align-items: center; justify-content: center; padding: 0; border: 1px dashed #b7c4d8; border-radius: 4px; background: #f7f9fc; color: #4a6fa5; font-size: 16px; font-weight: 700; line-height: 1; cursor: pointer; opacity: .75; transition: opacity .12s, background .12s; }
.lzt-add:hover, .lzt-add:focus-visible { opacity: 1; background: #2b6dd2; border-color: #2b6dd2; border-style: solid; color: #fff; }
.lzt-add:disabled { opacity: .3; cursor: not-allowed; }
.lzt-add-col { grid-column: 2; grid-row: 1; }
.lzt-add-row { grid-column: 1; grid-row: 2; }
@media (hover: none) { .lzt-add { opacity: 1; } }

/* Type-the-size controls (table toolbar + Specifications "Create table") */
.lzt-size { display: inline-flex; align-items: center; gap: 4px; padding: 0 4px 0 8px; font-size: 12px; color: #6b7280; border-left: 1px solid #e5e7eb; margin-left: 2px; }
.lzt-num, .lzs-num { width: 52px; padding: 4px 6px; border: 1px solid #ccc; border-radius: 4px; font: inherit; font-size: 13px; text-align: center; }
.lzt-set { padding: 4px 10px; border: 1px solid #1a1a2e; border-radius: 4px; background: #1a1a2e; color: #fff; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.lzs-size-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; }
.lzs-size-row label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #333; font-weight: 600; }
.lzs-size-row .lzs-picker-wrap { margin-bottom: 0; }
.lzs-or-inline { font-size: 12px; color: #9aa1ae; }
.lzt-toolbar { flex-wrap: wrap; max-width: 100%; box-sizing: border-box; row-gap: 4px; }
.lzt-x { white-space: nowrap; }
@media (max-width: 600px) { .lzt-size { border-left: none; margin-left: 0; padding-left: 4px; } }

/* Admin > Vendors > Vendor Center details (admin.js viewVendorCenterDetails) */
.admin-vc-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 400; display: flex; justify-content: flex-end; }
.admin-vc-overlay[hidden] { display: none; }
.admin-vc-panel { width: min(1100px, 100%); height: 100%; background: #fff; overflow-y: auto; box-shadow: -8px 0 24px rgba(0,0,0,.2); font-size: 15px; }
.admin-vc-head { position: sticky; top: 0; background: #fff; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 22px 28px 16px; border-bottom: 1px solid #eee; z-index: 1; }
.admin-vc-head h3 { margin: 0 0 4px; font-size: 22px; color: #1a1a2e; }
.admin-vc-close { background: none; border: 0; font-size: 30px; line-height: 1; cursor: pointer; color: #444; padding: 0 6px; }
.admin-vc-body { padding: 10px 28px 40px; }
.admin-vc-body section { margin-top: 22px; }
.admin-vc-h { font-size: 19px; color: #1a1a2e; border-bottom: 3px solid #f4b400; display: inline-block; padding-bottom: 4px; margin: 0 0 8px; }
.admin-vc-body h4 { font-size: 15.5px; margin: 18px 0 8px; color: #333; }
.admin-vc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 24px; margin: 0; }
.admin-vc-row { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid #f1f1f3; }
.admin-vc-row dt { flex: 0 0 46%; color: #666; font-size: 14px; }
.admin-vc-row dd { margin: 0; color: #111; font-size: 14.5px; word-break: break-word; }
.admin-vc-row-hl { background: #fffaf0; padding-left: 8px; padding-right: 8px; }
.admin-vc-muted { color: #888; font-size: 13.5px; }
.admin-vc-body table { width: 100%; font-size: 14px; }
@media (max-width: 700px) { .admin-vc-head, .admin-vc-body { padding-left: 16px; padding-right: 16px; } .admin-vc-row { flex-direction: column; gap: 2px; } }

/* Packed weight & size -> automatic delivery tier (client/js/lz-package-size.js) */
.lz-pack { border: 1px solid #e3e5e8; border-radius: 10px; padding: 12px 14px; background: #fafbfc; }
.lz-pack-title { font-size: 14px; font-weight: 600; color: #333; margin-bottom: 8px; }
.lz-pack-sub { font-weight: 400; color: #777; font-size: 13px; }
.lz-pack-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.lz-pack-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #555; }
.lz-pack-field input { width: 100%; box-sizing: border-box; padding: 9px 10px; border: 1px solid #ccc; border-radius: 8px; font-size: 14px; background: #fff; }
.lz-pack-field input:focus { outline: 2px solid #1a1a2e; outline-offset: 1px; }
.lz-pack-note { margin: 8px 0 0; font-size: 13px; color: #1b5e20; }
.lz-pack-note-error { color: #b3261e; }
@media (max-width: 560px) { .lz-pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* product description: roomier box + live word/character count (lz-text-counter.js) */
textarea#product-description { min-height: 220px; resize: vertical; font-size: 14.5px; line-height: 1.5; }
.lz-text-count { font-size: 12.5px; color: #777; margin-top: 4px; text-align: right; }
/* Guide links in the admin / vendor sidebars */
.admin-guide-link { display: block; text-decoration: none; color: inherit; padding: 9px 14px 9px 40px; font-size: 13.5px; border-radius: 8px; opacity: .9; }
.admin-guide-link:hover { opacity: 1; background: rgba(255,255,255,.08); }
.vd-guide-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: rgba(255,255,255,.85); padding: 10px 14px; border-radius: 10px; font-size: 15px; }
.vd-guide-link:hover { background: rgba(255,255,255,.08); color: #fff; }

/* ---- Add / Edit Product redesign (Sept 2026) ---- */
.adm-price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 10px; }
.adm-price-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: #333; }
.adm-price-grid label span { font-weight: 400; color: #888; font-size: 12px; }
.adm-price-grid input { width: 100%; box-sizing: border-box; }
.adm-price-preview { background: #f8f9fb; border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px 12px; margin: 2px 0 14px; font-size: 14px; }
.adm-pp-label { color: #6b7280; font-size: 13px; }
.adm-pp-price { color: #16a34a; font-size: 18px; }
.adm-pp-was { color: #9ca3af; }
.adm-pp-off { background: #fff4d6; color: #a86b00; font-weight: 700; font-size: 12.5px; padding: 1px 7px; border-radius: 4px; }
.adm-pp-warn { color: #b54708; font-size: 12.5px; }
.adm-pp-muted { color: #9ca3af; font-size: 13px; }
.adm-pp-margin { margin-top: 6px; font-size: 13px; color: #067647; }
.adm-pp-margin.adm-pp-loss { color: #b42318; font-weight: 700; }
.adm-color-row { border: 1px solid #eceef1; border-radius: 10px; padding: 10px 12px; }
.adm-color-row-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; color: #1f2937; flex-wrap: wrap; }
.adm-color-dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); }
.adm-color-hint { font-weight: 400; color: #6b7280; font-size: 12px; }
.adm-form-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-form-actions .adm-btn-ghost { background: #fff !important; color: #1a1a2e !important; border: 1.5px solid #1a1a2e !important; }

/* Description grid: layout picker and sideways-scrolling wide grids */
.lzbe-grid-layouts { margin: 8px 0; }
.lzbe-grid-layouts-title { font-size: 0.8rem; color: #555; font-weight: 600; margin-bottom: 4px; }
.lzbe-grid-layout-btns { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.lzbe-grid-layout { flex: 0 0 auto; padding: 6px 7px; border: 1.5px solid #d1d5db; border-radius: 8px; background: #fff; color: #9ca3af; cursor: pointer; line-height: 0; }
.lzbe-grid-layout:hover { border-color: #1a1a2e; color: #1a1a2e; }
.lzbe-grid-layout.is-on { border-color: #1a1a2e; color: #1a1a2e; background: #fff8e1; }
.lzbe-grid-layouts-note { font-size: 0.75rem; color: #6b7280; margin-top: 4px; }
.lzbe-grid-items.lzbe-grid-items-scroll { display: flex; overflow-x: auto; }
.lzbe-grid-items.lzbe-grid-items-scroll > .lzbe-grid-item { flex: 0 0 220px; }

/* Colours: customer-view tiles (same look as the product page) */
#adm-color-tiles { margin-top: 12px; }
.adm-tiles-title { font-size: 12.5px; font-weight: 700; color: #374151; margin-bottom: 6px; }
.adm-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 104px)); gap: 10px; }
.adm-tile { border: 1.5px solid #e5e7eb; border-radius: 8px; overflow: hidden; background: #fff; }
.adm-tile.on { border: 2px solid #111827; }
.adm-tile-media { aspect-ratio: 1 / 1; background: #f6f7f9; }
.adm-tile-media img, .adm-tile-media span { width: 100%; height: 100%; object-fit: cover; display: block; }
.adm-tile-name { font-size: 12.5px; font-weight: 600; text-align: center; padding: 6px 4px; color: #1f2937; }
.adm-tile-hint { font-size: 10.5px; font-weight: 400; color: #9ca3af; }

/* Description blocks: upload a video from the computer */
.lzbe-video-upload { margin: 6px 0; }
.lzbe-video-upload-btn { padding: 7px 12px; border: 1.5px solid #1a1a2e; background: #fff; color: #1a1a2e; border-radius: 8px;
    font-size: 0.8rem; font-weight: 600; cursor: pointer; }
.lzbe-video-upload-btn:disabled { opacity: .5; cursor: default; }
.lzbe-video-progress { position: relative; height: 22px; margin-top: 6px; background: #eef0f3; border-radius: 6px; overflow: hidden; }
.lzbe-video-progress-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #f4b400; transition: width .2s; }
.lzbe-video-progress-text { position: relative; display: block; text-align: center; font-size: 0.75rem; line-height: 22px; color: #1a1a2e; font-weight: 600; }
.lzbe-video-hint { font-size: 0.72rem; color: #6b7280; margin-top: 4px; }

/* Drafts tab count on the Products list */
.filter-tab-count { display: inline-block; min-width: 18px; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: #475467; color: #fff;
    font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.filter-tab-count[hidden] { display: none; }

/* ===== Vendor Compliance (Oct 2026 redesign) ===== */
.vc-panel .vc-intro { font-size: 13.5px; color: #667085; margin: 0 0 16px; }
.vc-ico { flex: 0 0 auto; }
.vc-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.vc-search { flex: 1 1 280px; display: flex; align-items: center; gap: 8px; border: 1px solid #d0d5dd; border-radius: 10px; padding: 0 12px;
    background: #fff; color: #667085; min-height: 42px; }
.vc-search input { flex: 1; border: 0 !important; outline: none; box-shadow: none !important; padding: 10px 0 !important; margin: 0 !important;
    font: inherit; font-size: 14px; background: transparent; min-width: 0; }
.vc-select { min-height: 42px; border: 1px solid #d0d5dd; border-radius: 10px; padding: 0 12px; background: #fff; font: inherit; font-size: 14px;
    color: #1d2939; width: auto !important; margin: 0 !important; }
.vc-btn, .vc-btn-outline, .vc-btn-soft { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px;
    padding: 0 16px; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; width: auto !important; margin: 0 !important; }
.vc-btn { background: #1a1a2e !important; color: #fff !important; border: 1px solid #1a1a2e !important; }
.vc-btn-red { background: #d92d20 !important; border-color: #d92d20 !important; }
.vc-btn-outline { background: #fff !important; color: #1d2939 !important; border: 1px solid #d0d5dd !important; }
.vc-btn-outline:hover { background: #f9fafb !important; }
.vc-btn-soft { background: #ecfdf3 !important; color: #067647 !important; border: 1px solid #abefc6 !important; }
.vc-btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.vc-btn-danger { color: #b42318 !important; border-color: #fda29b !important; }
.vc-btn-block { width: 100% !important; margin-top: 10px !important; }
.vc-link { background: none !important; border: 0 !important; padding: 0 !important; color: #1a56db !important; font: inherit; font-weight: 600;
    cursor: pointer; text-decoration: underline; width: auto !important; margin: 0 !important; min-height: 0 !important; }

.vc-table-wrap { border: 1px solid #eaecf0; border-radius: 14px; overflow: hidden; background: #fff; }
.vc-table { width: 100%; border-collapse: collapse; margin: 0 !important; }
.vc-table th { text-align: left; font-size: 12.5px; font-weight: 600; color: #475467; background: #f9fafb; padding: 12px 18px;
    border-bottom: 1px solid #eaecf0; text-transform: none; letter-spacing: 0; }
.vc-table td { padding: 16px 18px; border-bottom: 1px solid #f2f4f7; vertical-align: middle; }
.vc-table tbody tr:last-child td { border-bottom: 0; }
.vc-row { cursor: pointer; transition: background .12s; }
.vc-row:hover, .vc-row:focus { background: #f9fafb; outline: none; }
.vc-th-actions, .vc-td-actions { text-align: right !important; width: 70px; }
.vc-biz { display: flex; align-items: center; gap: 12px; }
.vc-avatar { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 15px;
    display: inline-flex; align-items: center; justify-content: center; }
.vc-avatar-big { width: 56px; height: 56px; border-radius: 14px; font-size: 20px; }
.vc-name { font-weight: 600; color: #101828; font-size: 14.5px; }
.vc-name-sm { font-weight: 500; font-size: 14px; }
.vc-sub { font-size: 12.5px; color: #667085; margin-top: 2px; word-break: break-word; }
.vc-badge { display: inline-flex; align-items: center; white-space: nowrap; font-size: 12px; font-weight: 600; padding: 3px 10px;
    border-radius: 999px; border: 1px solid transparent; }
.vc-b-green { background: #ecfdf3; color: #067647; border-color: #abefc6; }
.vc-b-grey { background: #f2f4f7; color: #344054; border-color: #e4e7ec; }
.vc-b-red { background: #fef3f2; color: #b42318; border-color: #fecdca; }
.vc-b-orange { background: #fff6ed; color: #c4320a; border-color: #fddcab; }
.vc-b-blue { background: #eff8ff; color: #175cd3; border-color: #b2ddff; }
.vc-dots { width: 38px !important; height: 38px; min-height: 0 !important; border-radius: 50% !important; border: 1px solid transparent !important;
    background: transparent !important; color: #475467 !important; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    padding: 0 !important; margin: 0 !important; }
.vc-dots:hover { background: #f2f4f7 !important; border-color: #e4e7ec !important; }
.vc-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 12px 4px 0;
    font-size: 13px; color: #667085; }
.vc-pager { display: flex; gap: 6px; }
.vc-pager button { min-width: 34px; height: 34px; min-height: 0 !important; border-radius: 8px !important; border: 1px solid #d0d5dd !important;
    background: #fff !important; color: #344054 !important; font: inherit; font-size: 13px; cursor: pointer; padding: 0 8px !important;
    width: auto !important; margin: 0 !important; }
.vc-pager button.on { background: #1a1a2e !important; color: #fff !important; border-color: #1a1a2e !important; }
.vc-pager button:disabled { opacity: .4; cursor: default; }

/* ⋮ menu */
.vc-menu { position: fixed; z-index: 100050; min-width: 270px; background: #fff; border: 1px solid #eaecf0; border-radius: 16px;
    box-shadow: 0 16px 40px rgba(16, 24, 40, .16); padding: 8px; }
.vc-mi { display: flex; align-items: center; gap: 14px; width: 100% !important; margin: 0 !important; min-height: 0 !important; padding: 11px 12px !important;
    border: 1px solid transparent !important; border-radius: 10px !important; background: transparent !important; color: #344054 !important;
    font: inherit; font-size: 14.5px; text-align: left; cursor: pointer; }
.vc-mi .vc-ico { color: #667085; }
.vc-mi span { display: flex; flex-direction: column; }
.vc-mi small { font-size: 11.5px; color: #98a2b3; font-weight: 400; }
.vc-mi:hover:not([disabled]), .vc-mi:focus:not([disabled]) { background: #f9fafb !important; outline: none; }
.vc-mi[disabled] { cursor: default; opacity: .55; }
.vc-mi-primary { background: #eff6ff !important; border-color: #d1e3ff !important; color: #1a56db !important; }
.vc-mi-primary .vc-ico { color: #1a56db; }
.vc-mi-primary:hover:not([disabled]) { background: #e1edff !important; }
.vc-mi-amber .vc-ico { color: #eab308; }
.vc-mi-red .vc-ico { color: #dc2626; }
.vc-mi-purple .vc-ico { color: #7c3aed; }
.vc-mi-green .vc-ico { color: #16a34a; }
.vc-menu-sep { height: 1px; background: #eaecf0; margin: 6px 4px; }

/* drawer */
.vc-drawer-back { position: fixed; inset: 0; z-index: 100020; background: rgba(16, 24, 40, .35); opacity: 0; pointer-events: none; transition: opacity .2s; }
.vc-drawer-back.open { opacity: 1; pointer-events: auto; }
.vc-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(640px, 100%); background: #fff; overflow-y: auto;
    box-shadow: -12px 0 40px rgba(16, 24, 40, .18); transform: translateX(100%); transition: transform .25s ease; border-radius: 18px 0 0 18px; }
.vc-drawer-back.open .vc-drawer { transform: none; }
body.vc-drawer-open { overflow: hidden; }
#vc-drawer-body { padding: 22px 22px 30px; }
.vc-dr-head { display: flex; gap: 14px; align-items: flex-start; }
.vc-dr-title { flex: 1; min-width: 0; }
.vc-dr-title h3 { margin: 2px 0 2px; font-size: 22px; color: #101828; display: flex; align-items: center; gap: 8px; }
.vc-ok { color: #16a34a; display: inline-flex; }
.vc-x { width: 40px !important; height: 40px; min-height: 0 !important; border: 0 !important; background: transparent !important; font-size: 30px; line-height: 1;
    color: #344054 !important; cursor: pointer; padding: 0 !important; margin: 0 !important; border-radius: 10px !important; }
.vc-x:hover { background: #f2f4f7 !important; }
.vc-dr-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; padding-bottom: 16px; border-bottom: 1px solid #eaecf0; }
.vc-sec { margin-top: 20px; }
.vc-sec h4 { margin: 0; font-size: 17px; color: #101828; }
.vc-sec-sub { margin: 3px 0 12px; font-size: 13px; color: #667085; }
.vc-docs, .vc-prods { border: 1px solid #eaecf0; border-radius: 12px; overflow: hidden; }
.vc-doc, .vc-prod { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #f2f4f7; }
.vc-doc:last-child, .vc-prod:last-child { border-bottom: 0; }
.vc-doc-name { flex: 1; font-size: 14px; font-weight: 600; color: #101828; min-width: 0; }
.vc-prod-main { flex: 1; min-width: 0; }
.vc-doc-ico { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.vc-doc-missing { background: #fef3f2; color: #d92d20; }
.vc-doc-rejected { background: #fff6ed; color: #e04f16; }
.vc-doc-submitted { background: #eff8ff; color: #1570ef; }
.vc-doc-approved { background: #ecfdf3; color: #079455; }
.vc-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .vc-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vc-qa { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 16px 10px !important;
    border: 1px solid #eaecf0 !important; border-radius: 12px !important; background: #fff !important; cursor: pointer; font: inherit;
    width: auto !important; margin: 0 !important; min-height: 0 !important; color: #101828 !important; }
.vc-qa:hover:not([disabled]) { border-color: #98a2b3 !important; box-shadow: 0 4px 12px rgba(16, 24, 40, .06); }
.vc-qa[disabled] { opacity: .5; cursor: default; }
.vc-qa strong { font-size: 13.5px; }
.vc-qa small { font-size: 11.5px; color: #667085; }
.vc-q-blue .vc-ico { color: #1570ef; } .vc-q-amber .vc-ico { color: #eab308; } .vc-q-red .vc-ico { color: #dc2626; }
.vc-q-purple .vc-ico { color: #7c3aed; } .vc-q-green .vc-ico { color: #16a34a; } .vc-q-navy .vc-ico { color: #1a1a2e; }
.vc-timeline { list-style: none; margin: 0; padding: 4px 14px; border: 1px solid #eaecf0; border-radius: 12px; }
.vc-ev { position: relative; display: flex; gap: 12px; padding: 12px 0; }
.vc-ev:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 44px; bottom: -6px; width: 2px; background: #eaecf0; }
.vc-ev-dot { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.vc-t-green { background: #dcfae6; color: #079455; } .vc-t-red { background: #fee4e2; color: #d92d20; } .vc-t-amber { background: #fef7c3; color: #ca8504; }
.vc-t-purple { background: #ebe9fe; color: #6938ef; } .vc-t-blue { background: #d1e9ff; color: #1570ef; } .vc-t-violet { background: #f4ebff; color: #7f56d9; }
.vc-t-grey { background: #f2f4f7; color: #475467; }
.vc-ev-main { flex: 1; min-width: 0; }
.vc-ev-title { font-weight: 600; font-size: 14px; color: #101828; }
.vc-ev-side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: 0 0 auto; }

/* reason box + toast */
.vc-modal-back { position: fixed; inset: 0; z-index: 100100; background: rgba(16, 24, 40, .45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.vc-modal { background: #fff; border-radius: 16px; width: min(460px, 100%); padding: 22px; box-shadow: 0 24px 60px rgba(16, 24, 40, .25); }
.vc-modal h3 { margin: 0 0 10px; font-size: 18px; color: #101828; }
.vc-modal-body { font-size: 14px; color: #475467; }
.vc-modal-body p { margin: 0 0 10px; }
.vc-need { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.vc-need li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #101828; }
.vc-modal-label { display: block; font-size: 13.5px; font-weight: 600; color: #344054; margin-top: 6px; }
.vc-modal-label em { font-weight: 400; color: #98a2b3; }
.vc-modal-label textarea { display: block; width: 100%; margin-top: 6px; border: 1px solid #d0d5dd; border-radius: 10px; padding: 10px 12px;
    font: inherit; font-size: 14px; resize: vertical; box-sizing: border-box; }
.vc-modal-err { color: #b42318; font-size: 13px; margin: 8px 0 0; }
.vc-modal-err[hidden] { display: none; }
.vc-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.vc-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100200; background: #101828; color: #fff;
    padding: 12px 18px; border-radius: 10px; font-size: 14px; box-shadow: 0 10px 30px rgba(16, 24, 40, .3); max-width: calc(100% - 32px); }
.vc-toast-bad { background: #b42318; }

@media (max-width: 760px) {
    .vc-table thead { display: none; }
    .vc-table, .vc-table tbody, .vc-table tr, .vc-table td { display: block; width: 100%; box-sizing: border-box; }
    .vc-table tr { position: relative; padding: 12px 44px 14px 68px; border-bottom: 1px solid #eaecf0; }
    .vc-table td { border: 0 !important; padding: 4px 0 !important; }
    .vc-table td[data-label="Business"], .vc-table td[data-label="Vendor"] { margin-left: -54px; width: calc(100% + 54px); }
    .vc-table td[data-label="Status"], .vc-table td[data-label="Compliance"], .vc-table td[data-label="Payouts"] { display: inline-block; width: auto;
        margin: 6px 6px 0 0; }
    .vc-table td::before { content: none !important; }
    .vc-td-actions { position: absolute; top: 12px; right: 8px; width: auto !important; padding: 0 !important; }
    .vc-select, .vc-toolbar .vc-btn-outline { flex: 1 1 40%; }
    .vc-drawer { border-radius: 0; }
    #vc-drawer-body { padding: 18px 16px 28px; }
    .vc-doc { flex-wrap: wrap; }
    .vc-doc-name { flex-basis: calc(100% - 52px); }
    .vc-doc .vc-badge { margin-left: 50px; }
    .vc-ev { flex-wrap: wrap; }
    .vc-ev-side { flex-direction: row; align-items: center; margin-left: 44px; }
}

/* ===== Vendors list v2 + Vendor Profile + Document Review (Oct 2026) ===== */
.vc-tabs { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.vc-tab { min-height: 38px; padding: 0 14px !important; border-radius: 10px !important; border: 1px solid #d0d5dd !important; background: #fff !important;
    color: #344054 !important; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; width: auto !important; margin: 0 !important;
    display: inline-flex; align-items: center; gap: 6px; }
.vc-tab.on { background: #1a1a2e !important; color: #fff !important; border-color: #1a1a2e !important; }
.vc-tab-n { background: #f4b400; color: #1a1a2e; border-radius: 999px; font-size: 11px; padding: 1px 7px; font-weight: 700; }
.vc-btn-gold { background: #f4b400 !important; color: #1a1a2e !important; border-color: #f4b400 !important; }
.vc-btn-green { background: #16a34a !important; border-color: #16a34a !important; color: #fff !important; }
.vc-btn-lg { min-height: 52px; font-size: 15.5px; padding: 0 22px; border-radius: 12px; }
.vc-btn-xs { min-height: 30px; padding: 0 10px; font-size: 12.5px; }
.vc-panel .vc-search { margin-bottom: 14px; }
.vc-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 6px; }
.vc-prog { display: flex; flex-direction: column; gap: 5px; min-width: 70px; }
.vc-prog strong { font-size: 14px; color: #101828; }
.vc-bar { display: block; height: 5px; border-radius: 999px; background: #eaecf0; overflow: hidden; width: 70px; }
.vc-bar span { display: block; height: 100%; border-radius: 999px; }
.vc-bar-green { background: #16a34a; } .vc-bar-red { background: #dc2626; } .vc-bar-blue { background: #2563eb; } .vc-bar-orange { background: #f59e0b; }
.vc-nowrap { white-space: nowrap; }
.vc-mini-red { font-size: 11.5px; color: #b42318; margin-top: 4px; font-weight: 600; }
.vc-row-btns { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; }
.vc-table .vc-th-actions, .vc-table .vc-td-actions { width: auto; }
.vc-avatar-lg { width: 52px; height: 52px; font-size: 18px; }
.vc-avatar-xl { width: 92px; height: 92px; font-size: 32px; }

/* profile page */
.vc-profile { position: fixed; inset: 0; z-index: 100010; background: #f5f6f8; overflow-y: auto; }
.vc-profile[hidden] { display: none; }
body.vc-profile-open { overflow: hidden; }
.vc-p-inner { max-width: 1240px; margin: 0 auto; padding: 18px 20px 48px; }
.vc-back { background: none !important; border: 0 !important; color: #1a56db !important; font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer;
    display: inline-flex; align-items: center; gap: 4px; padding: 6px 0 !important; width: auto !important; margin: 0 0 10px !important; min-height: 0 !important; }
.vc-p-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; background: #fff; border: 1px solid #eaecf0; border-radius: 16px; padding: 20px 22px; }
.vc-p-id { flex: 1; min-width: 260px; }
.vc-p-id h2 { margin: 0 0 10px; font-size: 26px; color: #101828; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.vc-p-meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 18px; font-size: 13.5px; color: #475467; }
.vc-p-meta span { display: inline-flex; align-items: center; gap: 7px; min-width: 0; word-break: break-word; }
.vc-p-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.vc-dots-box { border: 1px solid #d0d5dd !important; border-radius: 10px !important; width: 42px !important; height: 42px; }
.vc-ptabs { display: flex; gap: 4px; margin: 18px 0 16px; border-bottom: 1px solid #eaecf0; overflow-x: auto; scrollbar-width: none; }
.vc-ptab { background: none !important; border: 0 !important; border-bottom: 3px solid transparent !important; border-radius: 0 !important; padding: 12px 16px !important;
    font: inherit; font-size: 15px; color: #475467 !important; cursor: pointer; white-space: nowrap; width: auto !important; margin: 0 !important; min-height: 0 !important;
    display: inline-flex; align-items: center; gap: 6px; }
.vc-ptab.on { color: #1a1a2e !important; border-bottom-color: #f4b400 !important; font-weight: 700; }
.vc-card { background: #fff; border: 1px solid #eaecf0; border-radius: 16px; padding: 18px 20px; }
.vc-card h3 { margin: 0 0 14px; font-size: 18px; color: #101828; }
.vc-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.vc-card-head h3 { margin: 0; }
.vc-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; }
.vc-h3 { font-size: 19px; margin: 22px 0 12px; color: #101828; display: flex; align-items: center; gap: 10px; }
.vc-alert { display: flex; gap: 14px; align-items: flex-start; border-radius: 14px; padding: 14px 18px; margin: 4px 0 14px; }
.vc-alert p { margin: 3px 0 0; font-size: 13.5px; }
.vc-alert-red { background: #fef3f2; border: 1px solid #fecdca; color: #b42318; }
.vc-alert-red strong { font-size: 16px; }
.vc-score { display: flex; gap: 14px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid #eaecf0; margin-bottom: 8px; }
.vc-score-ico { width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.vc-score-num { font-size: 28px; font-weight: 800; }
.vc-score-num span { font-size: 18px; font-weight: 700; margin-left: 6px; }
.vc-green { color: #15803d; } .vc-amber { color: #b45309; }
.vc-checklist { list-style: none; margin: 0; padding: 0; }
.vc-checklist li { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 14px; color: #101828; border-bottom: 1px dashed #f2f4f7; }
.vc-checklist li > span:nth-child(2) { flex: 1; }
.vc-cl-ico { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.vc-cl-approved { background: #dcfae6; color: #079455; } .vc-cl-missing { background: #fee4e2; color: #d92d20; }
.vc-cl-submitted { background: #d1e9ff; color: #1570ef; } .vc-cl-rejected { background: #ffead5; color: #e04f16; }
.vc-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.vc-metric { display: flex; gap: 12px; border: 1px solid #eaecf0; border-radius: 12px; padding: 14px; align-items: flex-start; }
.vc-m-ico { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.vc-m-val { font-size: 22px; font-weight: 800; color: #101828; margin: 2px 0; word-break: break-word; }
.vc-m-sub { font-size: 12.5px; color: #667085; }
.vc-up { color: #15803d; font-weight: 600; } .vc-down { color: #b42318; font-weight: 600; }
.vc-mini { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 0 !important; }
.vc-mini th { text-align: left; font-size: 12.5px; color: #667085; font-weight: 600; padding: 8px 10px; border-bottom: 1px solid #eaecf0; background: transparent; }
.vc-mini td { padding: 10px; border-bottom: 1px solid #f2f4f7; vertical-align: middle; }
.vc-mini td .vc-ico { vertical-align: -3px; color: #1a56db; }
.vc-scroll { overflow-x: auto; }
.vc-small { font-size: 12.5px; color: #667085; margin: 10px 0 0; }

/* document review */
.vc-review-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.vc-review-status { border-left: 1px solid #eaecf0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.vc-docrows { display: flex; flex-direction: column; gap: 10px; }
.vc-docrow { display: grid; grid-template-columns: 22px 52px minmax(0, 1.6fr) minmax(130px, .8fr) minmax(150px, .9fr) auto; gap: 14px; align-items: center;
    background: #fff; border: 1px solid #eaecf0; border-radius: 14px; padding: 14px 16px; }
.vc-docrow-missing { grid-template-columns: 52px minmax(0, 1.6fr) minmax(130px, .8fr) auto auto; border-style: dashed; }
.vc-docsel { width: 18px; height: 18px; accent-color: #1a1a2e; }
.vc-filetype { width: 48px; height: 52px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; }
.vc-ft-pdf { background: #d92d20; color: #fff; font-size: 13px; }
.vc-ft-img { background: #e0edff; color: #1d4ed8; }
.vc-ft-missing { background: #f2f4f7; color: #98a2b3; }
.vc-docrow-when { font-size: 13.5px; color: #101828; }
.vc-docrow-checks { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.vc-docrow-btns { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.vc-reason { margin-top: 6px; font-size: 12.5px; background: #fff7ed; color: #9a3412; border-radius: 8px; padding: 6px 9px; }
.vc-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 6px; border: 1px solid transparent; white-space: nowrap; }
.vc-pill-green { background: #ecfdf3; color: #067647; border-color: #abefc6; }
.vc-pill-amber { background: #fffaeb; color: #b54708; border-color: #fedf89; }
.vc-pill-red { background: #fef3f2; color: #b42318; border-color: #fecdca; }
.vc-pill-grey { background: #f2f4f7; color: #475467; border-color: #e4e7ec; }
.vc-bulk { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0 0; padding: 10px 14px; background: #fff8e1; border: 1px solid #f4d98a; border-radius: 12px; font-size: 13.5px; font-weight: 600; }
.vc-bulk[hidden], .vc-bulk:empty { display: none; }
.vc-review-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.vc-review-actions .vc-btn, .vc-review-actions .vc-btn-outline { width: 100% !important; }
.vc-checks { display: grid; gap: 8px; margin: 10px 0; }
.vc-check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #101828; padding: 8px 10px; border: 1px solid #eaecf0; border-radius: 10px; cursor: pointer; }
.vc-check input { width: 18px; height: 18px; accent-color: #1a1a2e; margin: 0; }
.vc-check em { color: #98a2b3; font-style: normal; font-size: 12.5px; }
.vc-more summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: #1a56db; padding: 4px 0; }
.vc-more .vc-check { margin-top: 8px; }
.vc-bullets { margin: 4px 0 8px; padding-left: 18px; font-size: 13.5px; }
.vc-presets { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.vc-chip { border: 1px solid #d0d5dd !important; background: #f9fafb !important; color: #344054 !important; border-radius: 999px !important; font: inherit; font-size: 12.5px;
    padding: 5px 11px !important; cursor: pointer; width: auto !important; margin: 0 !important; min-height: 0 !important; }
.vc-chip:hover { background: #fff8e1 !important; border-color: #f4b400 !important; }
.vc-modal-wide { width: min(620px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; }
.vc-warn-text { color: #b54708; font-weight: 600; }
.vc-menu { z-index: 100060; }
.vc-modal-back { z-index: 100110; }
.vc-toast { z-index: 100210; }

@media (max-width: 1000px) {
    .vc-grid2 { grid-template-columns: 1fr; }
    .vc-docrow { grid-template-columns: 22px 48px minmax(0, 1fr); }
    .vc-docrow-missing { grid-template-columns: 48px minmax(0, 1fr); }
    .vc-docrow-when, .vc-docrow-checks, .vc-docrow-btns { grid-column: 3 / -1; }
    .vc-docrow-missing .vc-docrow-when, .vc-docrow-missing .vc-badge, .vc-docrow-missing .vc-docrow-btns { grid-column: 2 / -1; justify-self: start; }
    .vc-docrow-checks { flex-direction: row; flex-wrap: wrap; }
    .vc-docrow-btns { justify-content: flex-start; }
    .vc-docrow-when:empty { display: none; }
}
@media (max-width: 760px) {
    .vc-hide-sm { display: none !important; }
    .vc-panel .vc-toolbar { flex-wrap: nowrap; }
    .vc-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; min-width: 0; padding-bottom: 2px; }
    .vc-tabs::-webkit-scrollbar { display: none; }
    .vc-tab { flex: 0 0 auto; white-space: nowrap; }
    .vc-toolbar #vc-export { flex: 0 0 auto; padding: 0 12px; }
    .vc-table td[data-label="Status"], .vc-table td[data-label="Compliance"], .vc-table td[data-label="Documents"], .vc-table td[data-label="Joined"] {
        display: inline-block; width: auto; margin: 6px 10px 0 0; vertical-align: top; }
    .vc-td-actions { top: 8px !important; }
    .vc-td-actions .vc-btn-outline { display: none; }
    .vc-p-inner { padding: 12px 12px 40px; }
    .vc-p-head { padding: 16px; }
    .vc-p-head .vc-avatar-xl { width: 64px; height: 64px; font-size: 22px; }
    .vc-p-id h2 { font-size: 21px; }
    .vc-p-actions { width: 100%; }
    .vc-p-actions .vc-btn, .vc-p-actions .vc-btn-outline { flex: 1 1 45%; }
    .vc-metrics { grid-template-columns: 1fr; }
    .vc-review-actions { grid-template-columns: 1fr; }
    .vc-review-status { border-left: 0; padding-left: 0; }
    .vc-card { padding: 16px; }
}
