/* ==========================================================================
   Real Estate Platform Pro — Frontend CSS
   Mirrors logistics-platform-pro sidebar + skeleton pattern
   ========================================================================== */

/* ── Custom Properties ─────────────────────────────────────────────────── */
:root {
    --rp-primary:       #1A3FD4;
    --rp-primary-light: #EEF3FF;
    --rp-primary-mid:   #4A7BF7;
    --rp-sidebar-bg:    #0F1C3F;
    --rp-sidebar-w:     240px;
    --rp-sidebar-w-sm:  64px;
    --rp-sidebar-text:  #A8B8D8;
    --rp-sidebar-hover: rgba(255,255,255,.07);
    --rp-sidebar-active:rgba(74,123,247,.18);
    --rp-topbar-h:      58px;
    --rp-radius:        10px;
    --rp-shadow:        0 2px 12px rgba(0,0,0,.07);
    --rp-border:        #E8EDF5;
    --rp-text:          #1a1f36;
    --rp-muted:         #6b7280;
    --rp-success:       #2e7d32;
    --rp-danger:        #c62828;
    --rp-warning:       #e65100;
    --rp-info:          #1565c0;
}

/* ── Reset inside plugin wrapper ───────────────────────────────────────── */
.rp-dash-wrap *,
.rp-wrap *,
.rp-listing-wrap * { box-sizing: border-box; }

/* ── Dashboard layout ─────────────────────────────────────────────────── */
.rp-dash-wrap {
    display: flex;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #F4F7FB;
    color: var(--rp-text);
    position: relative;
}

/* ── Sidebar ──────────────────────────────────────────────────────────── */
.rp-dash-sidebar {
    width: var(--rp-sidebar-w);
    background: var(--rp-sidebar-bg);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    flex-shrink: 0;
    transition: width .28s cubic-bezier(.4,0,.2,1);
    overflow: hidden;
    z-index: 100;
}
.rp-sidebar-collapsed .rp-dash-sidebar { width: var(--rp-sidebar-w-sm); }

.rp-dash-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 14px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    min-height: 64px;
    overflow: hidden;
}
.rp-dash-brand-circle {
    width: 36px; height: 36px; border-radius: 8px;
    background: var(--rp-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 14px; flex-shrink: 0;
}
.rp-dash-brand-logo { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; flex-shrink: 0; }
.rp-dash-brand-name { color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.rp-sidebar-collapsed .rp-dash-brand-name { display: none; }

#rp-sidebar-toggle {
    margin-left: auto; background: none; border: none; cursor: pointer;
    color: var(--rp-sidebar-text); padding: 4px; border-radius: 6px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    transition: background .2s;
}
#rp-sidebar-toggle:hover { background: var(--rp-sidebar-hover); }
.rp-toggle-icon { transition: transform .28s; }
.rp-sidebar-collapsed .rp-toggle-icon { transform: rotate(180deg); }
.rp-sidebar-collapsed #rp-sidebar-toggle { margin-left: 0; width: 100%; justify-content: center; }

/* Nav items */
.rp-dash-nav { flex: 1; padding: 10px 8px; overflow-y: auto; overflow-x: hidden; }
.rp-dash-nav::-webkit-scrollbar { width: 4px; }
.rp-dash-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }

.rp-dash-nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 10px; border-radius: 8px; cursor: pointer;
    color: var(--rp-sidebar-text); font-size: 13.5px; font-weight: 500;
    transition: background .18s, color .18s; white-space: nowrap;
    overflow: hidden; user-select: none; margin-bottom: 2px;
    position: relative;
}
.rp-dash-nav-item:hover { background: var(--rp-sidebar-hover); color: #fff; }
.rp-dash-nav-item.active { background: var(--rp-sidebar-active); color: #fff; }
.rp-dash-nav-item.active .rp-dash-nav-icon svg { stroke: var(--rp-primary-mid); }
.rp-dash-nav-item.active::before {
    content: ''; position: absolute; left: 0; top: 20%; height: 60%;
    width: 3px; background: var(--rp-primary-mid); border-radius: 0 3px 3px 0;
}

.rp-dash-nav-icon { flex-shrink: 0; width: 20px; display: flex; align-items: center; }
.rp-dash-nav-icon svg { width: 18px; height: 18px; }
.rp-dash-nav-label { overflow: hidden; text-overflow: ellipsis; }
.rp-sidebar-collapsed .rp-dash-nav-label { display: none; }
.rp-sidebar-collapsed .rp-dash-nav-item { padding: 12px; justify-content: center; gap: 0; }
.rp-sidebar-collapsed .rp-dash-nav-item::before { display: none; }

/* Sidebar tooltip in collapsed mode */
.rp-sidebar-collapsed .rp-dash-nav-item { position: relative; }
.rp-sidebar-collapsed .rp-dash-nav-item[data-label]:hover::after {
    content: attr(data-label);
    position: absolute; left: calc(var(--rp-sidebar-w-sm) + 8px); top: 50%;
    transform: translateY(-50%);
    background: #1a1f36; color: #fff; padding: 5px 10px; border-radius: 6px;
    font-size: 12px; white-space: nowrap; pointer-events: none; z-index: 999;
}

/* Sidebar footer */
.rp-dash-sidebar-foot {
    display: flex; align-items: center; gap: 10px; padding: 14px;
    border-top: 1px solid rgba(255,255,255,.07); overflow: hidden;
}
.rp-sidebar-collapsed .rp-dash-sidebar-foot { justify-content: center; padding: 12px 8px; }
.rp-dash-foot-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--rp-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.rp-dash-foot-meta { flex: 1; overflow: hidden; }
.rp-sidebar-collapsed .rp-dash-foot-meta,
.rp-sidebar-collapsed .rp-dash-foot-logout { display: none; }
.rp-dash-foot-name { color: #fff; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-dash-foot-role { color: var(--rp-sidebar-text); font-size: 11px; }
.rp-dash-foot-logout {
    color: var(--rp-sidebar-text); text-decoration: none; display: flex;
    padding: 5px; border-radius: 6px; transition: background .2s, color .2s;
}
.rp-dash-foot-logout:hover { background: rgba(198,40,40,.3); color: #ff8a80; }

/* ── Main area ─────────────────────────────────────────────────────────── */
.rp-dash-main {
    flex: 1; display: flex; flex-direction: column;
    min-width: 0; overflow-x: hidden;
}

/* Topbar */
.rp-dash-topbar {
    height: var(--rp-topbar-h); background: #fff;
    border-bottom: 1px solid var(--rp-border);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; gap: 16px; position: sticky; top: 0; z-index: 50;
}
.rp-dash-page-title { font-size: 16px; font-weight: 700; margin: 0; color: var(--rp-text); }
.rp-dash-topbar-right { display: flex; align-items: center; gap: 10px; }
.rp-dash-role-chip {
    background: var(--rp-primary-light); color: var(--rp-primary);
    border-radius: 20px; padding: 3px 12px; font-size: 12px; font-weight: 600;
}

/* Content */
.rp-dash-content { flex: 1; padding: 24px; overflow-y: auto; }

/* ── Skeleton Loading ─────────────────────────────────────────────────── */
@keyframes rp-shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position: 600px 0; }
}
.rp-skel {
    background: linear-gradient(90deg, #e8edf5 25%, #f4f7fb 50%, #e8edf5 75%);
    background-size: 600px 100%;
    animation: rp-shimmer 1.5s infinite;
    border-radius: 8px;
}
.rp-skel-wrap { padding: 4px 0; }
.rp-skel-title  { height: 28px; width: 40%; margin-bottom: 24px; }
.rp-skel-kpi    { height: 96px; border-radius: 10px; }
.rp-skel-table  { height: 220px; border-radius: 10px; }

/* ── Common Wrap ──────────────────────────────────────────────────────── */
.rp-wrap { max-width: 1200px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }

/* ── Section card ─────────────────────────────────────────────────────── */
.rp-section {
    background: #fff; border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius); padding: 20px;
    margin-bottom: 16px;
}

/* ── Header row ───────────────────────────────────────────────────────── */
.rp-header {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px; margin-bottom: 20px;
}
.rp-header h2 { margin: 0; font-size: 20px; font-weight: 700; }

/* ── KPI Cards ────────────────────────────────────────────────────────── */
.rp-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}
.rp-kpi-card {
    background: #fff; border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius); padding: 16px;
    display: flex; align-items: center; gap: 12px;
    box-shadow: var(--rp-shadow);
}
.rp-kpi-icon {
    width: 44px; height: 44px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
}
.rp-kpi-data { display: flex; flex-direction: column; min-width: 0; }
.rp-kpi-value { font-size: 20px; font-weight: 800; color: var(--rp-text); line-height: 1.1; }
.rp-kpi-label { font-size: 11.5px; color: var(--rp-muted); margin-top: 2px; }

/* ── Grid helpers ─────────────────────────────────────────────────────── */
.rp-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rp-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 768px) { .rp-grid-2, .rp-grid-3 { grid-template-columns: 1fr; } }

/* ── Quick Action cards ───────────────────────────────────────────────── */
.rp-quick-action {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    background: #fff; border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius); padding: 20px 12px;
    text-decoration: none; color: var(--rp-text); font-size: 13px; font-weight: 600;
    transition: box-shadow .2s, transform .15s, border-color .2s;
    cursor: pointer;
}
.rp-quick-action:hover { box-shadow: 0 4px 20px rgba(26,63,212,.12); transform: translateY(-2px); border-color: var(--rp-primary); }
.rp-qa-icon { font-size: 28px; }

/* ── Table ────────────────────────────────────────────────────────────── */
.rp-table {
    width: 100%; border-collapse: collapse; font-size: 13.5px;
    background: #fff; border-radius: var(--rp-radius); overflow: hidden;
    box-shadow: var(--rp-shadow); border: 1px solid var(--rp-border);
}
.rp-table thead th {
    background: #F8FAFC; color: var(--rp-muted); font-size: 11px;
    font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
    padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--rp-border);
    white-space: nowrap;
}
.rp-table tbody td { padding: 12px 14px; border-bottom: 1px solid var(--rp-border); vertical-align: middle; }
.rp-table tbody tr:last-child td { border-bottom: none; }
.rp-table tbody tr:hover td { background: #F8FAFC; }

/* ── Badges ───────────────────────────────────────────────────────────── */
.rp-badge {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 3px 9px; border-radius: 12px;
    font-size: 11px; font-weight: 700; white-space: nowrap;
}
.rp-badge-success { background: #e8f5e9; color: #2e7d32; }
.rp-badge-danger  { background: #fce4ec; color: #c62828; }
.rp-badge-warning { background: #fff3e0; color: #e65100; }
.rp-badge-info    { background: #e3f2fd; color: #1565c0; }
.rp-badge-paid    { background: #e8f5e9; color: #2e7d32; }
.rp-badge-pending { background: #fff3e0; color: #e65100; }
.rp-badge-active  { background: #e8f5e9; color: #2e7d32; }
.rp-badge-occupied{ background: #e3f2fd; color: #1565c0; }
.rp-badge-vacant  { background: #e8f5e9; color: #2e7d32; }
.rp-badge-maintenance { background: #fff3e0; color: #e65100; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.rp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    padding: 8px 16px; border-radius: 7px; font-size: 13px; font-weight: 600;
    cursor: pointer; text-decoration: none; border: 1px solid var(--rp-border);
    background: #fff; color: var(--rp-text); line-height: 1.3;
    transition: background .18s, border-color .18s, box-shadow .18s, transform .12s;
    white-space: nowrap;
}
.rp-btn:hover { background: #f4f7fb; border-color: #c0c8d8; }
.rp-btn:active { transform: translateY(1px); }
.rp-btn-primary { background: var(--rp-primary); color: #fff; border-color: var(--rp-primary); }
.rp-btn-primary:hover { background: #1530a8; border-color: #1530a8; }
.rp-btn-success { background: #2e7d32; color: #fff; border-color: #2e7d32; }
.rp-btn-success:hover { background: #1b5e20; }
.rp-btn-danger  { background: #c62828; color: #fff; border-color: #c62828; }
.rp-btn-danger:hover  { background: #7f0000; }
.rp-btn-warning { background: #e65100; color: #fff; border-color: #e65100; }
.rp-btn-sm  { padding: 5px 10px; font-size: 12px; border-radius: 5px; }
.rp-btn-lg  { padding: 12px 24px; font-size: 15px; }
.rp-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ── Forms ────────────────────────────────────────────────────────────── */
.rp-form-group { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; }
.rp-form-group label { font-size: 12px; font-weight: 600; color: var(--rp-muted); text-transform: uppercase; letter-spacing: .3px; }
.rp-form-group small { font-size: 11px; color: var(--rp-muted); }
.rp-form-group input,
.rp-form-group select,
.rp-form-group textarea {
    width: 100%; padding: 8px 12px; border: 1px solid var(--rp-border);
    border-radius: 7px; font-size: 13.5px; color: var(--rp-text);
    background: #fff; outline: none; font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
}
.rp-form-group input:focus,
.rp-form-group select:focus,
.rp-form-group textarea:focus { border-color: var(--rp-primary); box-shadow: 0 0 0 3px rgba(26,63,212,.1); }
.rp-form-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.rp-form-row .rp-form-group { min-width: 140px; }

/* ── Modal ────────────────────────────────────────────────────────────── */
.rp-modal {
    position: fixed; inset: 0; background: rgba(15,28,63,.5);
    z-index: 9999; display: flex; align-items: center; justify-content: center;
    padding: 20px; backdrop-filter: blur(3px);
}
.rp-modal-content {
    background: #fff; border-radius: 14px; width: 100%; max-width: 580px;
    max-height: 90vh; display: flex; flex-direction: column;
    box-shadow: 0 24px 60px rgba(0,0,0,.2); animation: rp-modal-in .2s ease;
}
@keyframes rp-modal-in { from { opacity:0; transform:scale(.95) translateY(10px); } to { opacity:1; transform:none; } }
.rp-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px; border-bottom: 1px solid var(--rp-border);
}
.rp-modal-header h3 { margin: 0; font-size: 16px; font-weight: 700; }
.rp-modal-close { background: none; border: none; cursor: pointer; font-size: 18px; color: var(--rp-muted); padding: 2px 6px; border-radius: 5px; line-height: 1; }
.rp-modal-close:hover { background: #f4f7fb; }
.rp-modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.rp-modal-footer { padding: 14px 20px; border-top: 1px solid var(--rp-border); display: flex; justify-content: flex-end; gap: 10px; }

/* ── Notices ──────────────────────────────────────────────────────────── */
.rp-notice {
    padding: 12px 16px; border-radius: 8px;
    font-size: 13.5px; margin-bottom: 16px; line-height: 1.5;
}
.rp-notice a { font-weight: 700; }
.rp-notice-success { background: #e8f5e9; color: #1b5e20; border-left: 3px solid #2e7d32; }
.rp-notice-error   { background: #fce4ec; color: #7f0000; border-left: 3px solid #c62828; }
.rp-notice-warning { background: #fff3e0; color: #7f3b00; border-left: 3px solid #e65100; }
.rp-notice-info    { background: #e3f2fd; color: #0d3c61; border-left: 3px solid #1565c0; }

/* ── Empty state ──────────────────────────────────────────────────────── */
.rp-empty-state {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; text-align: center;
    padding: 48px 20px; color: var(--rp-muted);
}
.rp-empty-icon { font-size: 3.5rem; margin-bottom: 14px; }
.rp-empty-state h4 { margin: 0 0 6px; font-size: 17px; color: var(--rp-text); }
.rp-empty-state p { margin: 0 0 18px; font-size: 13.5px; }

/* ── Toast ────────────────────────────────────────────────────────────── */
#rp-toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 99999; display: flex; flex-direction: column; gap: 8px; }
.rp-toast {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 18px; border-radius: 10px;
    font-size: 13.5px; font-weight: 500; min-width: 240px;
    box-shadow: 0 6px 24px rgba(0,0,0,.15);
    animation: rp-toast-in .25s ease;
    color: #fff;
}
@keyframes rp-toast-in { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } }
.rp-toast-success { background: #2e7d32; }
.rp-toast-error   { background: #c62828; }
.rp-toast-info    { background: var(--rp-primary); }

/* ── Property card grid ───────────────────────────────────────────────── */
.rp-property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}
.rp-property-card {
    background: #fff; border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius); overflow: hidden;
    box-shadow: var(--rp-shadow);
    transition: box-shadow .2s, transform .15s;
    display: flex; flex-direction: column;
}
.rp-property-card:hover { box-shadow: 0 6px 24px rgba(26,63,212,.12); transform: translateY(-2px); }
.rp-prop-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 14px 14px 0; }
.rp-prop-thumb { font-size: 2.2rem; }
.rp-prop-status-badges { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.rp-prop-body { padding: 10px 14px 14px; flex: 1; }
.rp-prop-body h4 { margin: 0 0 4px; font-size: 15px; font-weight: 700; }
.rp-prop-addr { color: var(--rp-muted); font-size: 12.5px; margin: 0 0 10px; }
.rp-prop-meta { display: flex; gap: 12px; font-size: 12.5px; color: var(--rp-muted); margin-bottom: 10px; }
.rp-prop-rent { font-size: 1.3rem; font-weight: 800; color: var(--rp-primary); }
.rp-prop-rent span { font-size: 12px; font-weight: 400; color: var(--rp-muted); }
.rp-prop-footer { padding: 12px 14px; border-top: 1px solid var(--rp-border); display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Listing portal ───────────────────────────────────────────────────── */
.rp-listing-wrap { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }

.rp-listing-hero {
    background: linear-gradient(135deg, #0F1C3F 0%, #1A3FD4 100%);
    color: #fff; padding: 48px 20px 36px;
}
.rp-listing-hero-inner { max-width: 900px; margin: 0 auto; }
.rp-listing-hero h2 { font-size: 2rem; margin: 0 0 6px; font-weight: 800; }
.rp-listing-hero p  { color: rgba(255,255,255,.75); margin: 0 0 24px; font-size: 15px; }

.rp-search-bar {
    display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
    background: #fff; border-radius: 12px; padding: 12px;
}
.rp-search-input {
    flex: 2; min-width: 180px; padding: 9px 12px;
    border: 1px solid var(--rp-border); border-radius: 7px;
    font-size: 13.5px; outline: none; color: var(--rp-text);
}
.rp-search-input:focus { border-color: var(--rp-primary); }
.rp-search-select {
    padding: 9px 10px; border: 1px solid var(--rp-border); border-radius: 7px;
    font-size: 13px; color: var(--rp-text); background: #fff; outline: none;
    cursor: pointer;
}
.rp-search-select:focus { border-color: var(--rp-primary); }

.rp-listing-body { max-width: 1100px; margin: 0 auto; padding: 28px 16px; }
.rp-listing-results-bar { font-size: 13px; color: var(--rp-muted); margin-bottom: 18px; }

.rp-listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px; margin-bottom: 32px;
}
.rp-listing-card {
    background: #fff; border: 1px solid var(--rp-border);
    border-radius: 12px; overflow: hidden; box-shadow: var(--rp-shadow);
    display: flex; flex-direction: column;
    transition: box-shadow .2s, transform .15s;
}
.rp-listing-card:hover { box-shadow: 0 8px 32px rgba(26,63,212,.12); transform: translateY(-3px); }
.rp-listing-card-img { position: relative; height: 190px; overflow: hidden; }
.rp-listing-card-img img { width: 100%; height: 100%; object-fit: cover; }
.rp-listing-card-thumb {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--rp-primary-light), #dce8ff);
    display: flex; align-items: center; justify-content: center; font-size: 4rem;
}
.rp-listing-badge {
    position: absolute; top: 10px; left: 10px; padding: 4px 10px;
    border-radius: 6px; font-size: 11px; font-weight: 700; color: #fff;
}
.rp-listing-badge-vacant { background: #2e7d32; }
.rp-listing-badge-occupied { background: #c62828; }

.rp-listing-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.rp-listing-card-body h4 { margin: 0 0 4px; font-size: 15px; font-weight: 700; }
.rp-listing-addr { color: var(--rp-muted); font-size: 12.5px; margin: 0 0 10px; }
.rp-listing-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: var(--rp-muted); margin-bottom: 10px; }
.rp-listing-amenities { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.rp-listing-amenities span {
    background: var(--rp-primary-light); color: var(--rp-primary);
    font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 10px;
}
.rp-listing-price { font-size: 1.35rem; font-weight: 800; color: var(--rp-primary); margin-top: auto; }
.rp-listing-price span { font-size: 12px; font-weight: 400; color: var(--rp-muted); }
.rp-listing-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* Pagination */
.rp-pagination { display: flex; gap: 6px; justify-content: center; margin-top: 28px; }
.rp-page-btn {
    padding: 7px 14px; border: 1px solid var(--rp-border); border-radius: 7px;
    font-size: 13px; font-weight: 600; color: var(--rp-text); text-decoration: none;
    background: #fff; transition: all .15s;
}
.rp-page-btn:hover, .rp-page-btn.active {
    background: var(--rp-primary); border-color: var(--rp-primary); color: #fff;
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .rp-dash-sidebar { position: fixed; left: 0; height: 100vh; z-index: 200; }
    .rp-dash-main    { margin-left: var(--rp-sidebar-w-sm); }
    .rp-sidebar-collapsed .rp-dash-sidebar { width: 0; overflow: hidden; }
    .rp-dash-content { padding: 16px; }
    .rp-kpi-grid { grid-template-columns: repeat(2,1fr); }
    .rp-listing-hero h2 { font-size: 1.4rem; }
}
@media (max-width: 560px) {
    .rp-kpi-grid { grid-template-columns: 1fr; }
    .rp-search-bar { flex-direction: column; }
    .rp-search-input, .rp-search-select { width: 100%; }
    .rp-dash-topbar { padding: 0 14px; }
    .rp-table { display: block; overflow-x: auto; }
}
