/* =====================================================================
   erp.css — back-office design system (Views/Shared/_Layout).
   Load order: site.css → themes.css (palette per data-theme) → erp.css.
   1. Tokens (layered on the theme palette; dark mode via html[data-mode="dark"])
   2. Base + Bootstrap component skin (moved from the old inline <style> in _Layout)
   3. Dark-mode coverage for Bootstrap + legacy helpers
   4. App shell: sidebar / top bar / content
   5. Component kit: .erp-page, .erp-page-header, .erp-card, .erp-toolbar,
      .erp-filterbar, .erp-table, .erp-kpi, .erp-empty, .erp-badge, skeletons
   6. ErpUi overlays: dialogs, toasts, command palette
   7. Print
   Docs + examples: docs/erp-ui-kit.md. Use logical properties only (RTL + LTR).
   ===================================================================== */

/* ── 1. Tokens ──────────────────────────────────────────────────────── */
:root {
  /* semantic surfaces shared by all themes (light defaults) */
  --panel:#F6F7F9; --tint-ok:#E8F5E9; --tint-bad:#FFEBEE; --tint-warn:#FFF8E1; --tint-info:#E7F0FB;

  --erp-font:'Cairo','Segoe UI',Tahoma,Arial,sans-serif;
  --erp-radius-sm:8px; --erp-radius:12px; --erp-radius-lg:16px;
  --erp-shadow-sm:0 1px 2px rgba(16,24,40,.06);
  --erp-shadow:0 1px 3px rgba(16,24,40,.07), 0 4px 14px rgba(16,24,40,.06);
  --erp-shadow-lg:0 16px 40px rgba(16,24,40,.20);
  --erp-sidebar-w:264px; --erp-sidebar-w-collapsed:68px; --erp-topbar-h:56px;

  /* aliases on the theme palette (themes.css) — components use these */
  --erp-bg:var(--bg); --erp-surface:var(--card); --erp-surface-2:var(--panel);
  --erp-text:var(--ink); --erp-muted:var(--muted); --erp-border:var(--line);
  --erp-primary:var(--brand); --erp-accent:var(--gold);
  --erp-hover:var(--accent-soft); --erp-ring:var(--accent-ring);

  /* status tones */
  --erp-success:#15803D; --erp-danger:#B42318; --erp-warning:#B54708; --erp-info:#175CD3; --erp-neutral:#475467;
  --erp-success-soft:#ECFDF3; --erp-danger-soft:#FEF3F2; --erp-warning-soft:#FFFAEB; --erp-info-soft:#EFF8FF; --erp-neutral-soft:#F2F4F7;

  /* shell */
  --erp-sidebar-bg:var(--card); --erp-sidebar-text:#344054; --erp-sidebar-muted:#98A2B3;
  --erp-nav-active-bg:var(--accent-soft); --erp-nav-active-text:var(--brand); --erp-nav-active-bar:var(--gold);
  --erp-topbar-bg:var(--card);
}
html[data-mode="dark"] {
  --bg:#14161B; --card:#1E2128; --ink:#E6E8EC; --muted:#9AA1AC; --line:#2C313B;
  --cream:#262A32; --accent-soft:rgba(255,255,255,.06);
  --panel:#23262E; --tint-ok:rgba(56,160,90,.18); --tint-bad:rgba(220,80,80,.18);
  --tint-warn:rgba(200,150,40,.18); --tint-info:rgba(90,130,230,.18);
  --erp-shadow-sm:0 1px 2px rgba(0,0,0,.4); --erp-shadow:0 2px 10px rgba(0,0,0,.35); --erp-shadow-lg:0 16px 40px rgba(0,0,0,.55);
  --erp-success:#4ADE80; --erp-danger:#F87171; --erp-warning:#FBBF24; --erp-info:#60A5FA; --erp-neutral:#AEB4BE;
  --erp-success-soft:rgba(74,222,128,.12); --erp-danger-soft:rgba(248,113,113,.12); --erp-warning-soft:rgba(251,191,36,.12);
  --erp-info-soft:rgba(96,165,250,.12); --erp-neutral-soft:rgba(255,255,255,.07);
  --erp-sidebar-bg:#171A20; --erp-sidebar-text:#C9CED6; --erp-sidebar-muted:#6B7280;
  --erp-nav-active-bg:rgba(255,255,255,.07); --erp-nav-active-text:#fff; --erp-nav-active-bar:var(--gold);
  --erp-topbar-bg:#1A1D23;
}

/* ── 2. Base + Bootstrap skin (was the inline <style> in _Layout) ───── */
* { -webkit-tap-highlight-color:transparent; }
/* Bidi: every translatable element is its own isolate. The server renders its Arabic text and
   staff-i18n swaps it for English after the first layout; without isolation the Arabic made a
   following " (12)" resolve right-to-left and Chrome kept those mirrored glyphs after the swap
   ("All) 305("). Isolated, the neighbour's direction no longer depends on the swapped text — Arabic
   renders exactly as before. Do not remove (tests: LayoutViewEnglishGuardTests). */
[data-i18n] { unicode-bidi:isolate; }
body {
  background:var(--bg);
  font-family:var(--erp-font);
  font-size:.9rem; color:var(--ink); -webkit-text-size-adjust:100%;
}
h1,h2,h3,h4,h5,h6 { font-weight:700; color:var(--brand-deep); letter-spacing:-.01em; }

/* Dropdowns */
.dropdown-menu {
  border:1px solid var(--line); border-radius:13px; padding:.4rem;
  box-shadow:0 12px 34px rgba(16,24,40,.16); font-size:.83rem; margin-top:.4rem;
}
.dropdown-item { font-size:.83rem; border-radius:9px; padding:.48rem .7rem; transition:.12s; }
.dropdown-item:hover, .dropdown-item:focus { background:var(--cream); color:var(--brand); }
.dropdown-item-text.fw-bold { color:var(--gold) !important; letter-spacing:.03em; }
.dropdown-divider { margin:.35rem .25rem; border-color:var(--line); }

/* Buttons */
.btn { border-radius:10px; font-weight:500; transition:.15s; }
.btn-primary { background:var(--brand); border-color:var(--brand-dark); }
.btn-primary:hover { background:var(--brand-dark); border-color:var(--brand-dark); }
.btn-xs { padding:.12rem .45rem; font-size:.75rem; border-radius:7px; }

/* Cards */
.card {
  border:1px solid var(--line); border-radius:14px; background:var(--card);
  box-shadow:0 1px 2px rgba(16,24,40,.04), 0 3px 12px rgba(16,24,40,.05);
}
.card-header { border-bottom:1px solid var(--line); background:#fff; font-weight:600; }
.card-header.section-header {
  background:var(--header-grad); color:#fff;
  font-weight:600; border-radius:14px 14px 0 0 !important; border-bottom:none;
}

/* Tables (legacy .table look — .erp-table below is the new kit) */
.table thead th {
  background:var(--brand); color:#fff; font-weight:600; font-size:.82rem;
  border-color:var(--brand-dark); white-space:nowrap;
}
.table tbody tr:hover > * { background:var(--accent-soft); }
.table > :not(caption) > * > * { padding:.5rem .6rem; }

/* Forms */
.form-control, .form-select { border-radius:9px; border-color:var(--line); }
.form-control:focus, .form-select:focus { border-color:var(--gold); box-shadow:0 0 0 .2rem var(--accent-ring); }

/* Alerts */
.alert { border:1px solid var(--line); border-radius:11px; border-inline-start-width:4px; }
.alert-success { border-inline-start-color:#2E7D32; }
.alert-danger  { border-inline-start-color:#C62828; }

/* Misc */
.badge { font-weight:600; }
.section-divider {
  display:flex; align-items:center; gap:10px;
  margin:1.5rem 0 .75rem; color:var(--muted); font-size:.85rem; font-weight:600;
}
.section-divider::after { content:''; flex:1; height:1px; background:var(--line); }

/* Scrollbar */
::-webkit-scrollbar { width:10px; height:10px; }
::-webkit-scrollbar-thumb { background:#C5CBD5; border-radius:6px; border:2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background:var(--gold); }

/* Touch-friendly tap targets */
@media (max-width: 576px) {
  .table tbody tr td { min-height:44px; vertical-align:middle; }
  .btn, .btn-sm, .btn-xs { min-height:36px; }
  a.dropdown-item { min-height:40px; display:flex; align-items:center; }
}

/* ── 3. Dark mode coverage (html[data-mode="dark"]; Bootstrap follows via data-bs-theme) ── */
html[data-mode="dark"] body { background:var(--bg); color:var(--ink); }
html[data-mode="dark"] h1, html[data-mode="dark"] h2, html[data-mode="dark"] h3,
html[data-mode="dark"] h4, html[data-mode="dark"] h5, html[data-mode="dark"] h6 { color:var(--ink); }
html[data-mode="dark"] .card { background:var(--card); border-color:var(--line); }
html[data-mode="dark"] .card-header { background:var(--card); color:var(--ink); border-color:var(--line); }
html[data-mode="dark"] .card-header.section-header { color:#fff; }   /* gradient header keeps white text */
html[data-mode="dark"] .dropdown-menu { background:var(--card); border-color:var(--line); }
html[data-mode="dark"] .dropdown-item { color:var(--ink); }
html[data-mode="dark"] .dropdown-item:hover, html[data-mode="dark"] .dropdown-item:focus { background:#262A32; color:#fff; }
html[data-mode="dark"] .form-control, html[data-mode="dark"] .form-select { background-color:#262A32; color:var(--ink); border-color:var(--line); }
html[data-mode="dark"] .form-control::placeholder { color:#6B7280; }
html[data-mode="dark"] .table { color:var(--ink); --bs-table-bg:transparent; --bs-table-color:var(--ink); }
/* site.css paints every td #212529 — unreadable on dark surfaces */
html[data-mode="dark"] .table td, html[data-mode="dark"] .table th { color:var(--ink); }
html[data-mode="dark"] .table thead th { color:#fff; }
html[data-mode="dark"] .table tbody tr:hover > * { background:rgba(255,255,255,.04); }
html[data-mode="dark"] .text-muted { color:var(--muted) !important; }
html[data-mode="dark"] .modal-content { background:var(--card); color:var(--ink); }
html[data-mode="dark"] .list-group-item { background:var(--card); color:var(--ink); border-color:var(--line); }
html[data-mode="dark"] ::-webkit-scrollbar-thumb { background:#3A4150; border-color:var(--bg); }
html[data-mode="dark"] .stat-card { background:var(--card); border-color:var(--line) !important; }
html[data-mode="dark"] .stat-card .stat-label { color:var(--muted); }
html[data-mode="dark"] .stat-card .stat-sub { color:#7D8590; }
html[data-mode="dark"] .stat-card .stat-value { color:var(--ink); }
html[data-mode="dark"] .page-header { background:transparent; border-color:var(--line); }
html[data-mode="dark"] .page-header h1, html[data-mode="dark"] .page-header h2,
html[data-mode="dark"] .page-header h3, html[data-mode="dark"] .page-header h4 { color:var(--ink); }
html[data-mode="dark"] .bg-light { background-color:var(--card) !important; }
html[data-mode="dark"] .bg-white { background-color:var(--card) !important; }
html[data-mode="dark"] .text-dark { color:var(--ink) !important; }
html[data-mode="dark"] .text-body { color:var(--ink) !important; }
html[data-mode="dark"] .form-text, html[data-mode="dark"] .form-label { color:var(--muted); }
html[data-mode="dark"] .table-light, html[data-mode="dark"] .table-light > th,
html[data-mode="dark"] .table-light > td { background-color:#262A32 !important; color:var(--ink) !important; }
html[data-mode="dark"] .table-striped > tbody > tr:nth-of-type(odd) > * { background-color:rgba(255,255,255,.03); color:var(--ink); }
html[data-mode="dark"] .table-bordered > :not(caption) > * > * { border-color:var(--line); }
html[data-mode="dark"] .border, html[data-mode="dark"] .border-top, html[data-mode="dark"] .border-bottom,
html[data-mode="dark"] .border-start, html[data-mode="dark"] .border-end { border-color:var(--line) !important; }
html[data-mode="dark"] hr { border-color:var(--line); color:var(--line); opacity:.45; }
html[data-mode="dark"] .input-group-text { background:#262A32; color:var(--ink); border-color:var(--line); }
html[data-mode="dark"] .modal-header, html[data-mode="dark"] .modal-footer { border-color:var(--line); }
html[data-mode="dark"] .nav-tabs { border-color:var(--line); }
html[data-mode="dark"] .nav-tabs .nav-link { color:var(--muted); }
html[data-mode="dark"] .nav-tabs .nav-link.active { background:var(--card); color:var(--ink); border-color:var(--line) var(--line) var(--card); }
html[data-mode="dark"] .accordion-button { background:var(--card); color:var(--ink); }
html[data-mode="dark"] .list-group-item-action:hover { background:#262A32; }
html[data-mode="dark"] .btn-outline-secondary { color:#C2C8D0; border-color:var(--line); }
html[data-mode="dark"] .btn-outline-secondary:hover { background:#262A32; color:#fff; }
html[data-mode="dark"] .badge.bg-light { color:#1B2233 !important; }
html[data-mode="dark"] code.item-code { color:#E8D9C1; background:#3A2A1A; border-color:#5A4632; }

/* ── 4. App shell ───────────────────────────────────────────────────── */
.erp-skip {
  position:absolute; inset-inline-start:.5rem; top:-3rem; z-index:2000;
  background:var(--card); color:var(--ink); padding:.4rem .8rem; border-radius:8px; box-shadow:var(--erp-shadow);
}
.erp-skip:focus { top:.5rem; }

.erp-sidebar {
  position:fixed; top:0; bottom:0; inset-inline-start:0; z-index:1040;
  width:var(--erp-sidebar-w); display:flex; flex-direction:column;
  background:var(--erp-sidebar-bg); color:var(--erp-sidebar-text);
  border-inline-end:1px solid var(--line);
  transition:width .18s ease, transform .22s ease, box-shadow .18s ease;
}
.erp-sidebar__brand {
  height:var(--erp-topbar-h); flex:0 0 auto; display:flex; align-items:center; gap:.5rem;
  padding-inline:.9rem .5rem; border-bottom:1px solid var(--line);
}
.erp-brand { display:flex; align-items:center; gap:.55rem; min-width:0; flex:1; text-decoration:none; color:inherit; }
.erp-brand__logo { height:38px; width:auto; max-width:150px; object-fit:contain; }
.erp-brand__mark { display:none; width:34px; height:34px; border-radius:9px; object-fit:cover; }
.erp-brand__name { font-weight:700; font-size:.98rem; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.erp-sidebar__close.erp-icon-btn { display:none; }

.erp-nav { flex:1 1 auto; overflow-y:auto; overflow-x:hidden; padding:.6rem .55rem 1rem; scrollbar-width:thin; }
.erp-nav-link, .erp-nav-group__btn {
  display:flex; align-items:center; gap:.65rem; width:100%;
  min-height:38px; padding:.42rem .65rem; margin-block:1px;
  border:0; border-radius:9px; background:transparent;
  color:var(--erp-sidebar-text); font:inherit; font-size:.85rem; font-weight:500;
  text-decoration:none; text-align:start; cursor:pointer; position:relative;
  transition:background .12s, color .12s;
}
.erp-nav-link > .bi, .erp-nav-group__btn > .bi:first-child { flex:0 0 1.25rem; font-size:1.05rem; text-align:center; opacity:.85; }
.erp-nav-label { flex:1 1 auto; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.erp-nav-link:hover, .erp-nav-group__btn:hover { background:var(--erp-hover); color:var(--ink); }
.erp-nav-link:focus-visible, .erp-nav-group__btn:focus-visible { outline:2px solid var(--gold); outline-offset:-2px; }
.erp-nav-link.is-active {
  background:var(--erp-nav-active-bg); color:var(--erp-nav-active-text); font-weight:700;
}
.erp-nav-link.is-active::before {
  content:''; position:absolute; inset-inline-start:-.55rem; top:.45rem; bottom:.45rem; width:3px;
  border-radius:3px; background:var(--erp-nav-active-bar);
}
.erp-nav-group__btn { font-weight:600; }
.erp-nav-group__caret { font-size:.72rem; opacity:.6; transition:transform .15s; }
.erp-nav-group.is-open > .erp-nav-group__btn .erp-nav-group__caret { transform:rotate(180deg); }
.erp-nav-group__items { display:none; padding-inline-start:.55rem; margin-inline-start:.95rem; border-inline-start:1px solid var(--line); }
.erp-nav-group.is-open > .erp-nav-group__items { display:block; }
.erp-nav-group__items .erp-nav-link { font-size:.82rem; min-height:34px; }
.erp-nav-group__items .erp-nav-link.is-active::before { inset-inline-start:calc(-.55rem - 1px); }
.erp-nav-header {
  padding:.6rem .65rem .2rem; font-size:.68rem; font-weight:700; letter-spacing:.04em;
  color:var(--erp-sidebar-muted); text-transform:uppercase; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.erp-nav-divider { height:1px; background:var(--line); margin:.4rem .5rem; }
.erp-sidebar__foot { flex:0 0 auto; border-top:1px solid var(--line); padding:.4rem .55rem; }

.erp-main {
  margin-inline-start:var(--erp-sidebar-w); min-width:0; min-height:100vh;
  display:flex; flex-direction:column; transition:margin .18s ease;
}
.erp-topbar {
  position:sticky; top:0; z-index:1030; height:var(--erp-topbar-h);
  display:flex; align-items:center; gap:.6rem; padding-inline:1rem;
  background:var(--erp-topbar-bg); border-bottom:1px solid var(--line);
  box-shadow:var(--erp-shadow-sm);
}
.erp-topbar__title { flex:1 1 auto; min-width:0; }
.erp-crumbs { display:flex; align-items:center; gap:.4rem; margin:0; padding:0; list-style:none; min-width:0; }
.erp-crumbs li { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.erp-crumbs__group { color:var(--muted); font-size:.82rem; flex:0 1 auto; }
.erp-crumbs__group::after { content:'/'; margin-inline-start:.4rem; opacity:.5; }
.erp-crumbs__page { font-weight:700; font-size:.98rem; color:var(--ink); flex:0 1 auto; min-width:0; }
.erp-topbar__actions { display:flex; align-items:center; gap:.45rem; flex:0 0 auto; }

.erp-icon-btn {
  display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto;
  width:38px; height:38px; border-radius:10px; border:1px solid transparent;
  background:transparent; color:var(--ink); font-size:1.15rem; cursor:pointer; transition:.12s;
}
.erp-icon-btn:hover { background:var(--erp-hover); border-color:var(--line); }
.erp-icon-btn:focus-visible, .erp-search-btn:focus-visible, .erp-user-btn:focus-visible { outline:2px solid var(--gold); outline-offset:1px; }
html[data-mode="dark"] .erp-when-light, html:not([data-mode="dark"]) .erp-when-dark { display:none; }

.erp-search-btn {
  display:inline-flex; align-items:center; gap:.5rem; height:38px; min-width:220px;
  padding-inline:.75rem .4rem; border-radius:10px; border:1px solid var(--line);
  background:var(--panel); color:var(--muted); font:inherit; font-size:.82rem; cursor:pointer;
}
.erp-search-btn:hover { border-color:var(--gold); color:var(--ink); }
.erp-search-btn__text { flex:1; text-align:start; white-space:nowrap; }
.erp-kbd {
  font-family:inherit; font-size:.68rem; padding:.1rem .4rem; border-radius:6px;
  border:1px solid var(--line); background:var(--card); color:var(--muted); direction:ltr;
}
.erp-lang .btn-group-sm > .btn { padding:.2rem .5rem; font-size:.75rem; }

.erp-user-btn {
  display:inline-flex; align-items:center; gap:.45rem; height:38px; padding-inline:.25rem .55rem;
  border-radius:999px; border:1px solid var(--line); background:var(--card); color:var(--ink);
  font:inherit; font-size:.82rem; cursor:pointer; max-width:220px;
}
.erp-user-btn__name { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
.erp-avatar {
  display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto;
  width:30px; height:30px; border-radius:50%; background:var(--brand); color:#fff; font-weight:700; font-size:.8rem;
}
html[data-mode="dark"] .erp-avatar { background:var(--gold); }
.erp-avatar--lg { width:40px; height:40px; font-size:1rem; }
.erp-user-menu { min-width:240px; }
.erp-user-menu__head { display:flex; gap:.6rem; align-items:center; padding:.5rem .6rem; }
.erp-user-menu__roles { display:flex; flex-wrap:wrap; gap:.25rem; margin-top:.2rem; }
.erp-user-menu .dropdown-item { display:flex; align-items:center; gap:.5rem; }

.erp-content { flex:1 0 auto; width:100%; min-width:0; }
.erp-backdrop { display:none; }

/* collapsed (icon-only) desktop sidebar — expands as an overlay while hovered */
@media (min-width: 992px) {
  html.erp-sb-collapsed .erp-main { margin-inline-start:var(--erp-sidebar-w-collapsed); }
  html.erp-sb-collapsed .erp-sidebar:not(:hover) { width:var(--erp-sidebar-w-collapsed); }
  html.erp-sb-collapsed .erp-sidebar:hover { box-shadow:var(--erp-shadow-lg); }
  html.erp-sb-collapsed .erp-sidebar:not(:hover) .erp-nav-label,
  html.erp-sb-collapsed .erp-sidebar:not(:hover) .erp-nav-group__caret,
  html.erp-sb-collapsed .erp-sidebar:not(:hover) .erp-nav-header,
  html.erp-sb-collapsed .erp-sidebar:not(:hover) .erp-brand__logo,
  html.erp-sb-collapsed .erp-sidebar:not(:hover) .erp-brand__name { display:none; }
  html.erp-sb-collapsed .erp-sidebar:not(:hover) .erp-brand__mark { display:block; }
  html.erp-sb-collapsed .erp-sidebar:not(:hover) .erp-nav-group__items { display:none; }
  html.erp-sb-collapsed .erp-sidebar:not(:hover) .erp-nav-link,
  html.erp-sb-collapsed .erp-sidebar:not(:hover) .erp-nav-group__btn { justify-content:center; padding-inline:0; }
  html.erp-sb-collapsed .erp-sidebar:not(:hover) .erp-nav-group:has(.is-active) > .erp-nav-group__btn { background:var(--erp-nav-active-bg); color:var(--erp-nav-active-text); }
  html.erp-sb-collapsed .erp-sidebar__collapse > .bi { transform:scaleX(-1); }
}

/* phones / tablets: off-canvas drawer from the inline-start edge */
@media (max-width: 991.98px) {
  .erp-main { margin-inline-start:0; }
  .erp-sidebar {
    width:min(86vw, 300px); transform:translateX(-105%); visibility:hidden;
    box-shadow:var(--erp-shadow-lg);
    transition:transform .22s ease, visibility 0s linear .22s;
  }
  [dir="rtl"] .erp-sidebar { transform:translateX(105%); }
  html.erp-sb-open .erp-sidebar { transform:none; visibility:visible; transition:transform .22s ease; }
  html.erp-sb-open .erp-backdrop {
    display:block; position:fixed; inset:0; z-index:1035; background:rgba(15,23,42,.45);
  }
  html.erp-sb-open body { overflow:hidden; }
  .erp-sidebar__close.erp-icon-btn { display:inline-flex; }
  .erp-sidebar__foot { display:none; }
  .erp-nav-link, .erp-nav-group__btn { min-height:42px; }
  .erp-search-btn { min-width:0; width:38px; padding:0; justify-content:center; }
  .erp-search-btn__text, .erp-search-btn .erp-kbd { display:none; }
  .erp-crumbs__group { display:none; }
}
@media (max-width: 576px) {
  .erp-topbar { padding-inline:.5rem; gap:.35rem; }
  .erp-topbar__actions { gap:.25rem; }
  .erp-user-btn { padding:.2rem; border:0; }
  .erp-user-btn__name, .erp-user-btn > .bi { display:none; }
  .erp-crumbs__page { font-size:.9rem; }
  .erp-lang .btn-group-sm > .btn { padding:.15rem .35rem; font-size:.7rem; min-height:30px; }
}
@media (max-width: 380px) {
  .erp-lang .btn-group-sm > .btn { padding:.15rem .28rem; }
}

/* ── 5. Component kit ───────────────────────────────────────────────── */
.erp-page { display:flex; flex-direction:column; gap:1rem; min-width:0; }

.erp-page-header { display:flex; flex-direction:column; gap:.35rem; margin-bottom:1rem; }
.erp-page .erp-page-header { margin-bottom:0; }
.erp-page-header__row { display:flex; align-items:center; justify-content:space-between; gap:.75rem; flex-wrap:wrap; }
.erp-page-header__main { display:flex; align-items:center; gap:.75rem; min-width:0; }
.erp-page-header__icon {
  display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto;
  width:42px; height:42px; border-radius:12px; background:var(--accent-soft); color:var(--brand); font-size:1.25rem;
}
html[data-mode="dark"] .erp-page-header__icon { color:var(--gold); }
.erp-page-header__text { min-width:0; }
.erp-page-header__title { margin:0; font-size:1.35rem; font-weight:700; color:var(--ink); line-height:1.3; }
.erp-page-header__subtitle { margin:.1rem 0 0; color:var(--muted); font-size:.85rem; }
.erp-page-header__actions { display:flex; align-items:center; flex-wrap:wrap; gap:.4rem; }
.erp-breadcrumb ol { display:flex; flex-wrap:wrap; gap:.35rem; margin:0; padding:0; list-style:none; font-size:.78rem; color:var(--muted); }
.erp-breadcrumb li + li::before { content:'/'; margin-inline-end:.35rem; opacity:.5; }
.erp-breadcrumb a { color:inherit; text-decoration:none; }
.erp-breadcrumb a:hover { color:var(--brand); text-decoration:underline; }

.erp-card {
  background:var(--card); color:var(--ink); border:1px solid var(--line);
  border-radius:var(--erp-radius); box-shadow:var(--erp-shadow-sm); min-width:0;
}
.erp-card__header {
  display:flex; align-items:center; justify-content:space-between; gap:.5rem; flex-wrap:wrap;
  padding:.75rem 1rem; border-bottom:1px solid var(--line); font-weight:700;
}
.erp-card__title { margin:0; font-size:.98rem; font-weight:700; color:var(--ink); }
.erp-card__body { padding:1rem; }
.erp-card__footer { padding:.65rem 1rem; border-top:1px solid var(--line); }
.erp-card > .erp-table-wrap { border:0; border-radius:0 0 var(--erp-radius) var(--erp-radius); }

.erp-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:.5rem; }
.erp-toolbar__spacer { flex:1 1 auto; }

.erp-filterbar {
  display:flex; align-items:flex-end; flex-wrap:wrap; gap:.6rem .75rem;
  padding:.75rem 1rem; background:var(--card); border:1px solid var(--line);
  border-radius:var(--erp-radius); box-shadow:var(--erp-shadow-sm); margin-bottom:1rem;
}
.erp-page .erp-filterbar { margin-bottom:0; }
.erp-field { display:flex; flex-direction:column; gap:.2rem; min-width:9.5rem; margin:0; }
.erp-field__label { font-size:.74rem; font-weight:600; color:var(--muted); }
.erp-filterbar__buttons { display:flex; align-items:center; flex-wrap:wrap; gap:.4rem; margin-inline-start:auto; }
/* quick date ranges (first row of _FilterBar) */
.erp-presets { flex:1 1 100%; display:flex; flex-wrap:wrap; gap:.35rem; }
.erp-chip { border:1px solid var(--line); background:transparent; color:var(--ink); border-radius:999px;
  padding:.18rem .75rem; font-size:.78rem; font-weight:600; line-height:1.5; cursor:pointer; white-space:nowrap; }
.erp-chip:hover { border-color:var(--brand); color:var(--brand); }
.erp-chip:focus-visible { outline:2px solid var(--brand); outline-offset:2px; }
.erp-chip.is-active { background:var(--brand); border-color:var(--brand); color:#fff; }
html[data-mode="dark"] .erp-chip.is-active { background:var(--gold); border-color:var(--gold); color:#1E2128; }
html[data-mode="dark"] .erp-chip:hover:not(.is-active) { border-color:var(--gold); color:var(--gold); }
@media (max-width: 576px) {
  .erp-filterbar { padding:.65rem; }
  .erp-field { flex:1 1 calc(50% - .4rem); min-width:0; }
  .erp-filterbar__buttons { flex:1 1 100%; margin-inline-start:0; }
  .erp-presets { flex-wrap:nowrap; overflow-x:auto; padding-bottom:.15rem; scrollbar-width:thin; }
  .erp-filterbar__buttons > .btn { flex:1 1 auto; }
}

/* Tables: wrap in .erp-table-wrap (scrolls horizontally inside, never the page) */
.erp-table-wrap {
  position:relative; max-width:100%; overflow:auto; -webkit-overflow-scrolling:touch;
  background:var(--card); border:1px solid var(--line); border-radius:var(--erp-radius);
}
.erp-table-wrap--scroll { max-height:var(--erp-table-max-h, 70vh); }
.erp-table { width:100%; margin:0; border-collapse:separate; border-spacing:0; font-size:.85rem; color:var(--ink); }
.erp-table > :not(caption) > * > * { padding:.55rem .75rem; border-bottom:1px solid var(--line); background:transparent; }
.erp-table td, .erp-table th, .erp-table tbody tr td { color:inherit; vertical-align:middle; }
.erp-table thead th {
  background:var(--panel); color:var(--muted); font-size:.76rem; font-weight:700; letter-spacing:.01em;
  border-color:var(--line); border-bottom:1px solid var(--line); white-space:nowrap; text-align:start;
}
html[data-mode="dark"] .erp-table thead th { color:var(--muted); }
.erp-table-wrap > .erp-table > thead th { position:sticky; top:0; z-index:2; }
.erp-table tbody tr:last-child > * { border-bottom:0; }
.erp-table tbody tr:hover > * { background:var(--accent-soft); }
.erp-table--zebra tbody tr:nth-child(even) > * { background:rgba(16,24,40,.022); }
html[data-mode="dark"] .erp-table--zebra tbody tr:nth-child(even) > * { background:rgba(255,255,255,.025); }
.erp-table--compact > :not(caption) > * > * { padding:.35rem .55rem; }
.erp-table .num, .erp-table td.num, .erp-table th.num { text-align:end; font-variant-numeric:tabular-nums; white-space:nowrap; }
.erp-table .num.neg, .erp-table .is-neg { color:var(--erp-danger); }
.erp-table tfoot > tr > *, .erp-table tr.erp-total-row > * {
  font-weight:700; background:var(--panel); border-top:2px solid var(--line); border-bottom:0; color:var(--ink);
}
.erp-table-wrap > .erp-table > tfoot > tr > * { position:sticky; bottom:0; z-index:2; }
.erp-table tr.erp-subtotal-row > * { font-weight:600; background:var(--erp-surface-2); }
.erp-table a.erp-drill, .erp-table [data-erp-drill] { color:var(--brand); text-decoration:none; cursor:pointer; border-bottom:1px dashed currentColor; }
html[data-mode="dark"] .erp-table a.erp-drill, html[data-mode="dark"] .erp-table [data-erp-drill] { color:var(--gold); }
/* sticky first column (opt-in) */
.erp-table--sticky-first > * > tr > :first-child { position:sticky; inset-inline-start:0; z-index:1; background:var(--card); box-shadow:inset -1px 0 0 var(--line); }
[dir="rtl"] .erp-table--sticky-first > * > tr > :first-child { box-shadow:inset 1px 0 0 var(--line); }
.erp-table--sticky-first > thead > tr > :first-child { z-index:3; background:var(--panel); }
.erp-table--sticky-first > tfoot > tr > :first-child { z-index:3; background:var(--panel); }
@media (max-width: 576px) {
  .erp-table { font-size:.8rem; }
  .erp-table > :not(caption) > * > * { padding:.45rem .55rem; }
}

/* KPI tiles */
.erp-kpi-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(200px, 1fr)); gap:.75rem; }
@media (max-width: 576px) { .erp-kpi-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); gap:.5rem; } }
.erp-kpi {
  --erp-tone:var(--brand); --erp-tone-soft:var(--accent-soft);
  display:flex; align-items:flex-start; gap:.75rem; width:100%; min-width:0;
  padding:.9rem 1rem; background:var(--card); color:var(--ink); text-align:start; text-decoration:none;
  border:1px solid var(--line); border-radius:var(--erp-radius); box-shadow:var(--erp-shadow-sm); font:inherit;
}
.erp-kpi--action { cursor:pointer; transition:border-color .12s, box-shadow .12s, transform .12s; }
.erp-kpi--action:hover { border-color:var(--erp-tone); box-shadow:var(--erp-shadow); color:var(--ink); }
.erp-kpi--action:focus-visible { outline:2px solid var(--gold); outline-offset:2px; }
.erp-kpi__icon {
  display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto;
  width:40px; height:40px; border-radius:11px; background:var(--erp-tone-soft); color:var(--erp-tone); font-size:1.15rem;
}
.erp-kpi__body { display:flex; flex-direction:column; min-width:0; gap:.1rem; }
.erp-kpi__label { font-size:.76rem; color:var(--muted); font-weight:600; }
.erp-kpi__value { font-size:1.35rem; font-weight:700; line-height:1.2; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
/* Inside a KPI grid the tile width is set by the grid, so the value can scale with it: long amounts
   (e.g. "123,882,523.39" in a narrow modal) shrink to one line instead of breaking mid-number.
   Wrapping (above) stays only as a last resort. Not applied to free-standing/flex tiles, where an
   inline-size container would collapse their content-based width. */
.erp-kpi-grid > .erp-kpi { container-type:inline-size; }
.erp-kpi-grid > .erp-kpi .erp-kpi__value { font-size:clamp(.9rem, 7.5cqi, 1.35rem); }
.erp-kpi__sub { font-size:.74rem; color:var(--muted); display:flex; gap:.35rem; flex-wrap:wrap; }
.erp-kpi__trend.is-up { color:var(--erp-success); font-weight:700; }
.erp-kpi__trend.is-down { color:var(--erp-danger); font-weight:700; }
.erp-kpi--primary { --erp-tone:var(--brand); --erp-tone-soft:var(--accent-soft); }
html[data-mode="dark"] .erp-kpi--primary { --erp-tone:var(--gold); }
.erp-kpi--success { --erp-tone:var(--erp-success); --erp-tone-soft:var(--erp-success-soft); }
.erp-kpi--danger  { --erp-tone:var(--erp-danger);  --erp-tone-soft:var(--erp-danger-soft); }
.erp-kpi--warning { --erp-tone:var(--erp-warning); --erp-tone-soft:var(--erp-warning-soft); }
.erp-kpi--info    { --erp-tone:var(--erp-info);    --erp-tone-soft:var(--erp-info-soft); }
.erp-kpi--neutral { --erp-tone:var(--erp-neutral); --erp-tone-soft:var(--erp-neutral-soft); }
@media (max-width: 576px) {
  .erp-kpi { padding:.65rem .7rem; gap:.5rem; }
  .erp-kpi__icon { width:32px; height:32px; font-size:.95rem; }
  .erp-kpi__value { font-size:1.05rem; }
}

/* Empty state */
.erp-empty { display:flex; flex-direction:column; align-items:center; text-align:center; gap:.35rem; padding:2.5rem 1rem; color:var(--muted); }
.erp-empty__icon {
  display:inline-flex; align-items:center; justify-content:center; width:56px; height:56px;
  border-radius:50%; background:var(--panel); font-size:1.6rem; margin-bottom:.35rem; color:var(--muted);
}
.erp-empty__title { font-weight:700; color:var(--ink); }
.erp-empty__text { font-size:.85rem; max-width:42ch; }
.erp-empty__action { margin-top:.5rem; }
.erp-empty--compact { padding:1rem .5rem; }
.erp-empty--compact .erp-empty__icon { width:40px; height:40px; font-size:1.15rem; }

/* Badges */
.erp-badge {
  --erp-tone:var(--erp-neutral); --erp-tone-soft:var(--erp-neutral-soft);
  display:inline-flex; align-items:center; gap:.25rem; padding:.12rem .55rem; border-radius:999px;
  font-size:.72rem; font-weight:600; line-height:1.5; white-space:nowrap;
  background:var(--erp-tone-soft); color:var(--erp-tone); border:1px solid transparent;
}
.erp-badge--success { --erp-tone:var(--erp-success); --erp-tone-soft:var(--erp-success-soft); }
.erp-badge--danger  { --erp-tone:var(--erp-danger);  --erp-tone-soft:var(--erp-danger-soft); }
.erp-badge--warning { --erp-tone:var(--erp-warning); --erp-tone-soft:var(--erp-warning-soft); }
.erp-badge--info    { --erp-tone:var(--erp-info);    --erp-tone-soft:var(--erp-info-soft); }
.erp-badge--neutral { --erp-tone:var(--erp-neutral); --erp-tone-soft:var(--erp-neutral-soft); }
.erp-badge--primary { --erp-tone:var(--brand); --erp-tone-soft:var(--accent-soft); }
html[data-mode="dark"] .erp-badge--primary { --erp-tone:var(--gold); }
.erp-badge--outline { background:transparent; border-color:currentColor; }

/* Skeleton loaders */
.erp-skeleton {
  display:block; height:.85rem; border-radius:6px;
  background:linear-gradient(90deg, var(--panel) 25%, var(--line) 37%, var(--panel) 63%);
  background-size:400% 100%; animation:erp-shimmer 1.4s ease infinite;
}
.erp-skeleton + .erp-skeleton { margin-top:.55rem; }
.erp-skeleton--title { height:1.2rem; width:45%; }
.erp-skeleton--block { height:5rem; }
.erp-skeleton-wrap { padding:.5rem 0; }
@keyframes erp-shimmer { 0% { background-position:100% 50%; } 100% { background-position:0 50%; } }
@media (prefers-reduced-motion: reduce) { .erp-skeleton { animation:none; } }
/* sortable headers + table search (ErpUi: table[data-erp-sort] / [data-erp-search]) */
th.erp-sortable { cursor:pointer; user-select:none; white-space:nowrap; }
th.erp-sortable::after { content:'\2195'; display:inline-block; margin-inline-start:.3em; font-size:.75em; opacity:.3; }
th.erp-sortable:hover::after { opacity:.7; }
th.erp-sortable[aria-sort="ascending"]::after { content:'\25B2'; opacity:1; }
th.erp-sortable[aria-sort="descending"]::after { content:'\25BC'; opacity:1; }
th.erp-sortable:focus-visible { outline:2px solid var(--brand); outline-offset:-2px; }
.erp-tsearch { position:relative; display:flex; align-items:center; gap:.5rem; margin:.5rem 0; max-width:24rem; }
.erp-tsearch > .bi { position:absolute; inset-inline-start:.6rem; color:var(--muted); font-size:.8rem; pointer-events:none; }
.erp-tsearch input { padding-inline-start:1.8rem; }
.erp-tsearch__count { font-size:.78rem; color:var(--muted); white-space:nowrap; }
tr.erp-filtered-out { display:none !important; }
tr.erp-search-none td { text-align:center; color:var(--muted); padding:1rem; }
td.erp-foot-stale { opacity:.45; }
@media (max-width: 576px) { .erp-tsearch { max-width:none; } }
/* pager (Views/Shared/_Pager.cshtml) */
.erp-pager { display:flex; align-items:center; gap:.5rem 1rem; flex-wrap:wrap; padding:.6rem .75rem; border-top:1px solid var(--line); font-size:.85rem; }
.erp-pager__info { color:var(--muted); }
.erp-pager__info strong { color:var(--ink); }
.erp-pager__nav { display:flex; align-items:center; gap:.4rem; }
.erp-pager__page { color:var(--muted); min-width:3.5rem; text-align:center; }
.erp-pager__size { display:flex; align-items:center; gap:.4rem; margin:0 0 0 auto; margin-inline-start:auto; color:var(--muted); }
.erp-pager__size select { width:auto; }
[dir="ltr"] .erp-pager__prev, [dir="ltr"] .erp-pager__next { transform:scaleX(-1); }
/* loading feedback (ErpUi: automatic for user-started requests) */
.erp-progress { position:fixed; inset-inline:0; top:0; height:3px; z-index:2000; overflow:hidden; pointer-events:none;
  opacity:0; transition:opacity .2s; background:color-mix(in srgb, var(--brand) 18%, transparent); }
.erp-progress.is-on { opacity:1; }
.erp-progress::before { content:''; position:absolute; top:0; bottom:0; width:35%; inset-inline-start:-35%;
  background:var(--brand); animation:erp-progress 1.1s ease-in-out infinite; }
html[data-mode="dark"] .erp-progress::before { background:var(--gold); }
@keyframes erp-progress { from { inset-inline-start:-35%; } to { inset-inline-start:100%; } }
.btn.erp-busy { position:relative; pointer-events:none; color:transparent !important; }
.btn.erp-busy > * { visibility:hidden; }
.btn.erp-busy::after { content:''; position:absolute; inset:0; margin:auto; width:1em; height:1em; border-radius:50%;
  border:2px solid var(--bs-btn-color, currentColor); border-inline-end-color:transparent; animation:erp-spin .7s linear infinite; }
.btn-primary.erp-busy::after, .btn-success.erp-busy::after, .btn-danger.erp-busy::after { border-color:#fff; border-inline-end-color:transparent; }
@keyframes erp-spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .erp-progress::before { animation:none; inset-inline-start:0; width:100%; opacity:.6; }
  .btn.erp-busy::after { animation-duration:2s; }
}
/* inline validation (ErpUi: automatic on every form) */
.erp-fb { display:block; font-size:.8rem; margin-top:.2rem; }
.ts-wrapper.is-invalid .ts-control { border-color:var(--bs-form-invalid-border-color, #dc3545) !important; box-shadow:0 0 0 .2rem rgba(220,53,69,.15); }
td > .erp-fb { white-space:normal; min-width:8rem; }
.form-check.is-invalid + .erp-fb { margin-top:0; }

/* ── 6. ErpUi overlays ──────────────────────────────────────────────── */
body.erp-dialog-open { overflow:hidden; }
.erp-dialog-layer {
  position:fixed; inset:0; z-index:1080; display:flex; align-items:flex-start; justify-content:center;
  padding:6vh 1rem 1rem; background:rgba(15,23,42,.48); overflow-y:auto;
  animation:erp-fade .14s ease-out;
}
.erp-dialog {
  width:100%; max-width:560px; max-height:88vh; display:flex; flex-direction:column;
  background:var(--card); color:var(--ink); border:1px solid var(--line);
  border-radius:var(--erp-radius-lg); box-shadow:var(--erp-shadow-lg);
  animation:erp-pop .16s ease-out;
}
.erp-dialog--sm { max-width:420px; }
.erp-dialog--lg { max-width:880px; }
.erp-dialog--xl { max-width:1180px; }
.erp-dialog--full { max-width:calc(100vw - 2rem); }
.erp-dialog__header { display:flex; align-items:center; gap:.6rem; padding:.85rem 1rem; border-bottom:1px solid var(--line); }
.erp-dialog__icon { font-size:1.25rem; }
.erp-dialog__icon.is-danger { color:var(--erp-danger); }
.erp-dialog__icon.is-info { color:var(--erp-info); }
.erp-dialog__title { flex:1; margin:0; font-size:1rem; font-weight:700; color:var(--ink); min-width:0; }
.erp-dialog__body { padding:1rem; overflow:auto; min-height:0; }
.erp-dialog__msg { margin:0; white-space:pre-line; line-height:1.7; }
.erp-dialog__footer { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:.5rem; padding:.75rem 1rem; border-top:1px solid var(--line); }
.erp-dialog__error { color:var(--erp-danger); font-size:.8rem; margin-top:.35rem; }
.erp-dialog__loading { display:flex; align-items:center; gap:.5rem; color:var(--muted); }
html[data-mode="dark"] .erp-dialog .btn-close { filter:invert(1) grayscale(1) brightness(2); }
@media (max-width: 576px) {
  .erp-dialog-layer { padding:.5rem; align-items:flex-end; }
  .erp-dialog { max-height:calc(100vh - 1rem); border-radius:var(--erp-radius-lg) var(--erp-radius-lg) var(--erp-radius) var(--erp-radius); }
  .erp-dialog__footer > .btn { flex:1 1 auto; }
}
@keyframes erp-fade { from { opacity:0; } to { opacity:1; } }
@keyframes erp-pop { from { opacity:0; transform:translateY(8px) scale(.985); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce) { .erp-dialog-layer, .erp-dialog, .erp-toast { animation:none; } }

.erp-toast-wrap {
  position:fixed; bottom:1rem; inset-inline-end:1rem; z-index:1100;
  display:flex; flex-direction:column; gap:.5rem; width:min(380px, calc(100vw - 2rem)); pointer-events:none;
}
.erp-toast {
  --erp-tone:var(--erp-info);
  pointer-events:auto; display:flex; align-items:flex-start; gap:.6rem;
  padding:.7rem .8rem; border-radius:11px; background:var(--card); color:var(--ink);
  border:1px solid var(--line); border-inline-start:4px solid var(--erp-tone); box-shadow:var(--erp-shadow-lg);
  animation:erp-pop .16s ease-out; font-size:.85rem;
}
.erp-toast > .bi { color:var(--erp-tone); font-size:1.1rem; line-height:1.3; }
.erp-toast__msg { flex:1; min-width:0; white-space:pre-line; overflow-wrap:anywhere; }
.erp-toast__close { border:0; background:transparent; color:var(--muted); padding:0 .15rem; font-size:1rem; line-height:1; cursor:pointer; }
.erp-toast--success { --erp-tone:var(--erp-success); }
.erp-toast--error   { --erp-tone:var(--erp-danger); }
.erp-toast--warning { --erp-tone:var(--erp-warning); }
.erp-toast--info    { --erp-tone:var(--erp-info); }

/* Command palette (Ctrl+K / "/") */
.erp-palette .erp-dialog { max-width:640px; }
.erp-palette__search { display:flex; align-items:center; gap:.6rem; padding:.75rem 1rem; border-bottom:1px solid var(--line); }
.erp-palette__search > .bi { color:var(--muted); font-size:1.1rem; }
.erp-palette__input { flex:1; border:0; outline:0; background:transparent; color:var(--ink); font:inherit; font-size:1rem; min-width:0; }
.erp-palette__list { list-style:none; margin:0; padding:.4rem; max-height:min(60vh, 460px); overflow-y:auto; }
.erp-palette__item {
  display:flex; align-items:center; gap:.65rem; padding:.55rem .7rem; border-radius:9px; cursor:pointer; color:var(--ink);
}
.erp-palette__item > .bi { flex:0 0 1.3rem; text-align:center; color:var(--muted); }
.erp-palette__label { flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.erp-palette__group { color:var(--muted); font-size:.75rem; white-space:nowrap; }
.erp-palette__item.is-sel { background:var(--accent-soft); }
.erp-palette__item.is-sel > .bi { color:var(--brand); }
html[data-mode="dark"] .erp-palette__item.is-sel > .bi { color:var(--gold); }
.erp-palette__empty { padding:1.5rem; text-align:center; color:var(--muted); }
.erp-palette__hint { display:flex; gap:1rem; justify-content:flex-end; padding:.45rem 1rem; border-top:1px solid var(--line); color:var(--muted); font-size:.72rem; }

/* ── 7. Print ───────────────────────────────────────────────────────── */
@media print {
  .erp-sidebar, .erp-topbar, .erp-backdrop, .erp-skip, .erp-toast-wrap, .erp-dialog-layer,
  .erp-page-header, .erp-filterbar, .erp-toolbar { display:none !important; }
  .erp-main { margin:0 !important; min-height:0 !important; display:block !important; }
  .erp-content { padding:0 !important; }
  .erp-card { border:0 !important; box-shadow:none !important; }
  .erp-table-wrap { overflow:visible !important; max-height:none !important; border:0 !important; }
  /* sticky helpers must not stay sticky on paper (see site.css print notes) */
  .erp-table > * > tr > *, .erp-table-wrap > .erp-table > thead th,
  .erp-table-wrap > .erp-table > tfoot > tr > * { position:static !important; box-shadow:none !important; }
  .erp-table thead th { background:var(--brand) !important; color:#fff !important; }
  .erp-kpi { box-shadow:none !important; border-color:#ccc !important; break-inside:avoid; }
  .erp-badge { background:transparent !important; color:#000 !important; border:1px solid #999 !important; }
  .erp-skeleton { display:none !important; }
  .erp-progress { display:none !important; }
  .erp-pager { display:none !important; }
  .erp-fb { display:none !important; }
}
