/* Hide page title only on the WCRP dashboard page */
body.wcrp-dashboard-page .entry-title,
body.wcrp-dashboard-page h1.entry-title,
body.wcrp-dashboard-page .page-title,
body.wcrp-dashboard-page .page-header {
    display: none !important;
}

/* ── Break out of theme container ─────────────────────────── */
/* Storefront, Astra, OceanWP, Flatsome & generic WP containers */
body.wcrp-dashboard-page .site-content,
body.wcrp-dashboard-page .entry-content,
body.wcrp-dashboard-page .page-content,
body.wcrp-dashboard-page article.page,
body.wcrp-dashboard-page article,
body.wcrp-dashboard-page .wp-block-group,
body.wcrp-dashboard-page #content,
body.wcrp-dashboard-page #primary,
body.wcrp-dashboard-page #main,
body.wcrp-dashboard-page main,
body.wcrp-dashboard-page .site-main,
body.wcrp-dashboard-page .container,
body.wcrp-dashboard-page .col-full,
body.wcrp-dashboard-page .ast-container,
body.wcrp-dashboard-page .oceanwp-container,
body.wcrp-dashboard-page .woocommerce-page #page,
body.wcrp-dashboard-page .hfeed {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Storefront specific: the inner col-full wrapper */
body.wcrp-dashboard-page .col-full {
    max-width: 100% !important;
    padding: 0 !important;
}


/* ═══════════════════════════════════════════════════════════ */
/*  WCRP Dashboard — Modern Design System                     */
/* ═══════════════════════════════════════════════════════════ */

:root {
    --wcrp-primary: #6366f1;
    --wcrp-primary-hover: #4f46e5;
    --wcrp-primary-light: #eef2ff;
    --wcrp-success: #10b981;
    --wcrp-warning: #f59e0b;
    --wcrp-danger: #ef4444;
    --wcrp-bg: #f1f5f9;
    --wcrp-surface: #ffffff;
    --wcrp-surface-2: #f8fafc;
    --wcrp-border: #e2e8f0;
    --wcrp-text: #0f172a;
    --wcrp-text-secondary: #64748b;
    --wcrp-radius: 14px;
    --wcrp-radius-sm: 8px;
    --wcrp-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
    --wcrp-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .07), 0 2px 4px -1px rgba(0, 0, 0, .05);
    --wcrp-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .08), 0 4px 6px -2px rgba(0, 0, 0, .04);
    --wcrp-transition: .18s ease;
    --wcrp-sidebar-width: 230px;
    --wcrp-max-width: 1280px;
    --wcrp-widget-width: 380px;
    --wcrp-widget-min-height: 320px;
    --wcrp-widget-max-height: 420px;
}

.wcrp-dark {
    --wcrp-bg: #0f172a;
    --wcrp-surface: #1e293b;
    --wcrp-surface-2: #162032;
    --wcrp-border: #334155;
    --wcrp-text: #f1f5f9;
    --wcrp-text-secondary: #94a3b8;
    --wcrp-primary-light: #1e1b4b;
    --wcrp-shadow: 0 1px 3px rgba(0, 0, 0, .4);
    --wcrp-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .3);
    --wcrp-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .4);
}

/* ── Outer shell ───────────────────────────────────────────── */
.wcrp-dashboard {
    background: var(--wcrp-bg);
    color: var(--wcrp-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    border-radius: var(--wcrp-radius);
    overflow: hidden;
    box-shadow: var(--wcrp-shadow-lg);
    min-height: 600px;
    width: 100%;
    max-width: 1280px;
    margin-top: 100px;
    margin-bottom: 40px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    display: block;
    box-sizing: border-box;
}

/* ── Header ────────────────────────────────────────────────── */
.wcrp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 28px;
    background: var(--wcrp-surface);
    border-bottom: 1px solid var(--wcrp-border);
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: var(--wcrp-shadow);
}

.wcrp-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.wcrp-header-left img {
    border-radius: 50%;
    border: 2px solid var(--wcrp-primary-light);
    box-shadow: 0 0 0 2px var(--wcrp-primary);
}

.wcrp-header-left h2 {
    margin: 0 0 3px;
    font-size: 17px;
    font-weight: 700;
    color: var(--wcrp-text);
}

/* ── Layout ────────────────────────────────────────────────── */
.wcrp-layout {
    display: flex;
    min-height: 560px;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    gap: 0;
}

/* ── Sidebar ───────────────────────────────────────────────── */
.wcrp-sidebar {
    width: 230px;
    min-width: 230px;
    background: var(--wcrp-surface);
    border-right: 1px solid var(--wcrp-border);
    padding: 16px 8px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wcrp-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--wcrp-text-secondary);
    text-decoration: none;
    border-radius: var(--wcrp-radius-sm);
    transition: background var(--wcrp-transition), color var(--wcrp-transition);
    font-size: 13.5px;
    font-weight: 500;
}

.wcrp-nav-item .dashicons {
    font-size: 17px;
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    transition: color var(--wcrp-transition);
}

.wcrp-nav-item:hover {
    background: var(--wcrp-bg);
    color: var(--wcrp-primary);
}

.wcrp-nav-item:hover .dashicons {
    color: var(--wcrp-primary);
}

.wcrp-nav-item.active {
    background: var(--wcrp-primary-light);
    color: var(--wcrp-primary);
    font-weight: 600;
}

.wcrp-nav-item.active .dashicons {
    color: var(--wcrp-primary);
}

.wcrp-nav-label {
    flex: 1;
}

/* ── Main content area ─────────────────────────────────────── */
.wcrp-main {
    flex: 1;
    min-width: 0;
    padding: 24px;
    overflow-x: auto;
    background: var(--wcrp-bg);
    box-sizing: border-box;
}

/* ── Widget Grid ───────────────────────────────────────────── */
.wcrp-widget-grid {
    display: grid;
    grid-template-columns: repeat(var(--wcrp-columns, 3), 1fr);
    gap: 24px;
}

.wcrp-widget {
    background: var(--wcrp-surface);
    border-radius: var(--wcrp-radius);
    box-shadow: var(--wcrp-shadow);
    border: 1px solid var(--wcrp-border);
    overflow: hidden;
    transition: box-shadow var(--wcrp-transition), transform var(--wcrp-transition);
    min-height: var(--wcrp-widget-min-height);
    max-height: var(--wcrp-widget-max-height);
    width: 100%;
    box-sizing: border-box;
    overflow-y: auto;

    @media (max-width: 1280px) {
        .wcrp-dashboard {
            max-width: 100vw;
            border-radius: 0;
        }

        .wcrp-layout {
            flex-direction: column;
        }

        .wcrp-sidebar {
            width: 100%;
            min-height: unset;
            border-right: none;
            border-bottom: 1px solid var(--wcrp-border);
            padding: 12px 0;
            display: flex;
            flex-direction: row;
            justify-content: space-around;
        }

        .wcrp-main {
            padding: 16px 0;
        }

        .wcrp-widget-grid {
            grid-template-columns: 1fr;
            gap: 16px;
            margin-bottom: 16px;
        }

        .wcrp-widget {
            min-height: 220px;
            max-height: 320px;
            padding: 12px;
        }
    }

    @media (max-width: 800px) {
        .wcrp-dashboard {
            max-width: 100vw;
            border-radius: 0;
        }

        .wcrp-layout {
            flex-direction: column;
        }

        .wcrp-sidebar {
            width: 100%;
            min-height: unset;
            border-right: none;
            border-bottom: 1px solid var(--wcrp-border);
            padding: 8px 0;
            display: flex;
            flex-direction: row;
            justify-content: space-around;
        }

        .wcrp-main {
            padding: 8px 0;
        }

        .wcrp-widget-grid {
            grid-template-columns: 1fr;
            gap: 8px;
            margin-bottom: 8px;
        }

        .wcrp-widget {
            min-height: 160px;
            max-height: 220px;
            padding: 8px;
        }
    }
}

.wcrp-widget:hover {
    box-shadow: var(--wcrp-shadow-md);
    transform: translateY(-1px);
}

.wcrp-widget-header {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--wcrp-border);
    cursor: grab;
    background: var(--wcrp-surface);
}

.wcrp-widget-header:active {
    cursor: grabbing;
}

.wcrp-widget-header h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    flex: 1;
    color: var(--wcrp-text);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.wcrp-widget-header .dashicons {
    color: var(--wcrp-primary);
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.wcrp-widget-body {
    padding: 18px;
}

.wcrp-widget-actions button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--wcrp-text-secondary);
    padding: 2px 4px;
    border-radius: 4px;
    transition: color var(--wcrp-transition), background var(--wcrp-transition);
}

.wcrp-widget-actions button:hover {
    color: var(--wcrp-text);
    background: var(--wcrp-bg);
}

/* ── Cards ─────────────────────────────────────────────────── */
.wcrp-card {
    background: var(--wcrp-surface);
    border-radius: var(--wcrp-radius);
    box-shadow: var(--wcrp-shadow);
    border: 1px solid var(--wcrp-border);
    padding: 22px;
}

.wcrp-card h3 {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 700;
}

/* ── Tables ────────────────────────────────────────────────── */
.wcrp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.wcrp-table th {
    text-align: left;
    padding: 10px 14px;
    font-weight: 700;
    color: var(--wcrp-text-secondary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    border-bottom: 2px solid var(--wcrp-border);
    background: var(--wcrp-surface-2);
}

.wcrp-table th:first-child {
    border-radius: var(--wcrp-radius-sm) 0 0 0;
}

.wcrp-table th:last-child {
    border-radius: 0 var(--wcrp-radius-sm) 0 0;
}

.wcrp-table td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--wcrp-border);
    vertical-align: middle;
}

.wcrp-table tbody tr:last-child td {
    border-bottom: none;
}

.wcrp-table tbody tr:hover td {
    background: var(--wcrp-bg);
}

/* ── Stat Cards ────────────────────────────────────────────── */
.wcrp-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 14px;
}

.wcrp-stat-card {
    background: linear-gradient(135deg, var(--wcrp-surface-2) 0%, var(--wcrp-surface) 100%);
    border: 1px solid var(--wcrp-border);
    border-radius: var(--wcrp-radius-sm);
    padding: 16px 14px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: box-shadow var(--wcrp-transition);
}

.wcrp-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--wcrp-primary), var(--wcrp-success));
}

.wcrp-stat-card:hover {
    box-shadow: var(--wcrp-shadow-md);
}

.wcrp-stat-value {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--wcrp-primary);
    line-height: 1.1;
}

.wcrp-stat-label {
    display: block;
    font-size: 10.5px;
    color: var(--wcrp-text-secondary);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 600;
}

/* ── Badges ────────────────────────────────────────────────── */
.wcrp-role-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--wcrp-primary), var(--wcrp-primary-hover));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
    box-shadow: 0 2px 6px rgba(99, 102, 241, .35);
}

.wcrp-savings-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 11px;
    font-weight: 700;
}

.wcrp-dark .wcrp-savings-badge {
    background: #14532d;
    color: #bbf7d0;
}

.wcrp-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.wcrp-status-completed,
.wcrp-status-active {
    background: #dcfce7;
    color: #166534;
}

.wcrp-status-processing {
    background: #dbeafe;
    color: #1e40af;
}

.wcrp-status-on-hold {
    background: #fef3c7;
    color: #92400e;
}

.wcrp-status-cancelled,
.wcrp-status-failed {
    background: #fee2e2;
    color: #991b1b;
}

/* ── Buttons ───────────────────────────────────────────────── */
.wcrp-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: 1px solid var(--wcrp-border);
    border-radius: var(--wcrp-radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--wcrp-transition), border-color var(--wcrp-transition), box-shadow var(--wcrp-transition);
    background: var(--wcrp-surface);
    color: var(--wcrp-text);
    text-decoration: none;
    line-height: 1.4;
}

.wcrp-btn:hover {
    background: var(--wcrp-bg);
    border-color: var(--wcrp-text-secondary);
    box-shadow: var(--wcrp-shadow);
}

.wcrp-btn-primary {
    background: var(--wcrp-primary);
    color: #fff;
    border-color: var(--wcrp-primary);
    box-shadow: 0 2px 6px rgba(99, 102, 241, .3);
}

.wcrp-btn-primary:hover {
    background: var(--wcrp-primary-hover);
    border-color: var(--wcrp-primary-hover);
    box-shadow: 0 4px 10px rgba(99, 102, 241, .4);
}

.wcrp-btn-sm {
    padding: 5px 12px;
    font-size: 12px;
}

.wcrp-btn-danger {
    color: var(--wcrp-danger);
    border-color: var(--wcrp-danger);
}

.wcrp-btn-danger:hover {
    background: #fee2e2;
}

/* ── Inputs ────────────────────────────────────────────────── */
.wcrp-input {
    width: 100%;
    padding: 9px 13px;
    border: 1px solid var(--wcrp-border);
    border-radius: var(--wcrp-radius-sm);
    font-size: 14px;
    background: var(--wcrp-surface);
    color: var(--wcrp-text);
    transition: border-color var(--wcrp-transition), box-shadow var(--wcrp-transition);
    box-sizing: border-box;
    font-family: inherit;
}

.wcrp-input:focus {
    outline: none;
    border-color: var(--wcrp-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .15);
}

.wcrp-input::placeholder {
    color: var(--wcrp-text-secondary);
}

/* ── Theme Toggle ──────────────────────────────────────────── */
.wcrp-theme-toggle {
    background: var(--wcrp-bg);
    border: 1px solid var(--wcrp-border);
    border-radius: var(--wcrp-radius-sm);
    padding: 7px 11px;
    cursor: pointer;
    color: var(--wcrp-text-secondary);
    transition: all var(--wcrp-transition);
    display: flex;
    align-items: center;
}

.wcrp-theme-toggle:hover {
    background: var(--wcrp-primary-light);
    border-color: var(--wcrp-primary);
    color: var(--wcrp-primary);
}

/* ── Order Pad ─────────────────────────────────────────────── */
.wcrp-search-box {
    position: relative;
    margin-bottom: 18px;
}

.wcrp-search-results {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    background: var(--wcrp-surface);
    border: 1px solid var(--wcrp-border);
    border-radius: 0 0 var(--wcrp-radius-sm) var(--wcrp-radius-sm);
    box-shadow: var(--wcrp-shadow-md);
    z-index: 10;
    display: none;
    max-height: 220px;
    overflow-y: auto;
}

.wcrp-recent-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--wcrp-border);
}

.wcrp-recent-item:last-child {
    border-bottom: none;
}

.wcrp-recent-item img {
    border-radius: 6px;
}

.wcrp-qty-input {
    width: 60px;
    padding: 5px 8px;
    border: 1px solid var(--wcrp-border);
    border-radius: 6px;
    text-align: center;
    font-size: 13px;
    background: var(--wcrp-surface);
    color: var(--wcrp-text);
}

.wcrp-pad-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

/* ── Activity ──────────────────────────────────────────────── */
.wcrp-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--wcrp-border);
}

.wcrp-activity-item:last-child {
    border-bottom: none;
}

.wcrp-activity-item .dashicons {
    color: var(--wcrp-primary);
    margin-top: 1px;
    flex-shrink: 0;
}

.wcrp-activity-content {
    flex: 1;
    min-width: 0;
}

.wcrp-activity-content a {
    color: var(--wcrp-primary);
    text-decoration: none;
    font-weight: 600;
}

.wcrp-activity-content a:hover {
    text-decoration: underline;
}

.wcrp-date {
    font-size: 11px;
    color: var(--wcrp-text-secondary);
    white-space: nowrap;
    font-weight: 500;
}

/* ── Credit Bar ────────────────────────────────────────────── */
.wcrp-credit-bar {
    height: 8px;
    background: var(--wcrp-bg);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid var(--wcrp-border);
}

.wcrp-credit-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--wcrp-success), var(--wcrp-primary));
    border-radius: 999px;
    transition: width .5s ease;
}

/* ── Alerts ────────────────────────────────────────────────── */
.wcrp-alert-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--wcrp-border);
}

.wcrp-alert-item:last-child {
    border-bottom: none;
}

.wcrp-alert-item img {
    border-radius: 6px;
}

.wcrp-alert-triggered {
    opacity: .55;
}

.wcrp-arrival-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    text-decoration: none;
    color: var(--wcrp-text);
    border-bottom: 1px solid var(--wcrp-border);
    transition: color var(--wcrp-transition);
}

.wcrp-arrival-item:last-child {
    border-bottom: none;
}

.wcrp-arrival-item:hover {
    color: var(--wcrp-primary);
}

/* ── Templates ─────────────────────────────────────────────── */
.wcrp-template-card {
    background: var(--wcrp-surface-2);
    border: 1px solid var(--wcrp-border);
    border-radius: var(--wcrp-radius-sm);
    padding: 16px;
    margin-bottom: 12px;
}

.wcrp-template-card h4 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 700;
}

.wcrp-template-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

/* ── Stock ─────────────────────────────────────────────────── */
.wcrp-stock-instock {
    color: var(--wcrp-success);
    font-weight: 700;
}

.wcrp-stock-outofstock {
    color: var(--wcrp-danger);
    font-weight: 700;
}

.wcrp-stock-onbackorder {
    color: var(--wcrp-warning);
    font-weight: 700;
}

/* ── Top Products ──────────────────────────────────────────── */
.wcrp-top-products {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}

.wcrp-top-products li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--wcrp-border);
}

.wcrp-top-products li:last-child {
    border-bottom: none;
}

.wcrp-top-products li img {
    border-radius: 5px;
}

/* ── Announcements ─────────────────────────────────────────── */
.wcrp-announcement-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--wcrp-border);
}

.wcrp-announcement-item:last-child {
    border-bottom: none;
}

.wcrp-announcement-item strong {
    display: block;
    margin-bottom: 3px;
}

/* ── Analytics ─────────────────────────────────────────────── */
.wcrp-analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
}

/* ── Sub-page ──────────────────────────────────────────────── */
.wcrp-page h2 {
    margin: 0 0 22px;
    font-size: 21px;
    font-weight: 800;
    color: var(--wcrp-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.wcrp-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.wcrp-filters select {
    padding: 7px 11px;
    border: 1px solid var(--wcrp-border);
    border-radius: var(--wcrp-radius-sm);
    background: var(--wcrp-surface);
    color: var(--wcrp-text);
    font-size: 13px;
    cursor: pointer;
    transition: border-color var(--wcrp-transition);
}

.wcrp-filters select:focus {
    outline: none;
    border-color: var(--wcrp-primary);
}

/* ── Price List controls ───────────────────────────────────── */
.wcrp-pl-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    align-items: center;
}

.wcrp-pl-controls .wcrp-input {
    width: auto;
    flex: 1;
    min-width: 140px;
}

/* ── Tier calculator ───────────────────────────────────────── */
.wcrp-tier-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-bottom: 18px;
}

.wcrp-tier-form select,
.wcrp-tier-form input {
    padding: 9px 13px;
    border: 1px solid var(--wcrp-border);
    border-radius: var(--wcrp-radius-sm);
    font-size: 14px;
    background: var(--wcrp-surface);
    color: var(--wcrp-text);
}

.wcrp-tier-form select {
    flex: 2;
    min-width: 160px;
}

.wcrp-tier-form input {
    width: 100px;
}

/* ── Toast ─────────────────────────────────────────────────── */
.wcrp-toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    padding: 13px 22px;
    background: #1e293b;
    color: #fff;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    animation: wcrpSlideUp .25s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wcrp-dark .wcrp-toast {
    background: #0f172a;
    border: 1px solid var(--wcrp-border);
}

@keyframes wcrpSlideUp {
    from {
        transform: translateY(16px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ── Scrollable table wrapper (keeps controls visible) ────── */
.wcrp-table-scroll {
    max-height: 340px;
    overflow-y: auto;
    overflow-x: auto;
    border-radius: 0 0 var(--wcrp-radius-sm) var(--wcrp-radius-sm);
}

.wcrp-table-scroll::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

.wcrp-table-scroll::-webkit-scrollbar-track {
    background: var(--wcrp-bg);
}

.wcrp-table-scroll::-webkit-scrollbar-thumb {
    background: var(--wcrp-border);
    border-radius: 999px;
}

.wcrp-table-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--wcrp-text-secondary);
}

/* Sticky thead inside scroll wrapper */
.wcrp-table-scroll .wcrp-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}

/* Price list controls stay above the scroll area */
.wcrp-pl-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 14px 0 12px;
    align-items: center;
    position: sticky;
    background: var(--wcrp-surface);
    z-index: 2;
}

/* ── Login / access messages ───────────────────────────────── */
.wcrp-login-required,
.wcrp-access-denied {
    padding: 22px 26px;
    background: var(--wcrp-surface);
    border: 1px solid var(--wcrp-border);
    border-radius: var(--wcrp-radius);
    color: var(--wcrp-text-secondary);
    font-weight: 500;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .wcrp-layout {
        flex-direction: column;
    }

    .wcrp-sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 10px 12px;
        gap: 4px;
        border-right: none;
        border-bottom: 1px solid var(--wcrp-border);
    }

    .wcrp-nav-item {
        flex-shrink: 0;
        border-radius: 999px;
        padding: 7px 14px;
        gap: 6px;
    }

    .wcrp-nav-item.active {
        background: var(--wcrp-primary);
        color: #fff;
    }

    .wcrp-nav-item.active .dashicons {
        color: #fff;
    }

    .wcrp-nav-label {
        font-size: 12px;
    }

    .wcrp-main {
        padding: 18px 14px;
    }

    .wcrp-widget-grid {
        grid-template-columns: 1fr !important;
    }

    .wcrp-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .wcrp-header {
        padding: 14px 16px;
    }
}