/* ══════════════════════════════════════════════════════════════
   VM BI Portal — main.css
   Bootstrap 5 base, custom app shell + nav
   ══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --vm-font-sans: 'Inter', system-ui, sans-serif;
  --vm-font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  --vm-font-size-base: 0.9375rem;
  --vm-font-size-sm: 0.835rem;
  --vm-font-size-xs: 0.75rem;
  --pri:       #2563eb;
  --pri-dk:    #1d4ed8;
  --pri-soft:  #dbeafe;
  --accent:    #60a5fa;
  --accent-dk: #3b82f6;
  --brand-glow-a: rgba(37, 99, 235, .14);
  --brand-glow-b: rgba(96, 165, 250, .12);
  --brand-glow-c: rgba(217, 164, 65, .09);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --nav-w:     260px;
  --nav-mini:  64px;
  --topbar-h:  56px;
  --bnav-h:    62px;
  --nav-bg:    #14213d;
  --nav-bdr:   #24375f;
  --nav-text:  #d5e3ff;
  --nav-hover: rgba(219,234,254,.08);
  --nav-act:   rgba(96,165,250,.18);
  --nav-act-c: #93c5fd;

  --bs-primary: #2563eb;
  --bs-primary-rgb: 37, 99, 235;
  --bs-secondary: #64748b;
  --bs-secondary-rgb: 100, 116, 139;
  --bs-success: #2f9e78;
  --bs-success-rgb: 47, 158, 120;
  --bs-info: #3b82f6;
  --bs-info-rgb: 59, 130, 246;
  --bs-warning: #d9a441;
  --bs-warning-rgb: 217, 164, 65;
  --bs-danger: #c75b6a;
  --bs-danger-rgb: 199, 91, 106;
  --bs-light: #eef4ff;
  --bs-light-rgb: 238, 244, 255;
  --bs-dark: #1e293b;
  --bs-dark-rgb: 30, 41, 59;
  --bs-body-bg: #f6f9ff;
  --bs-body-bg-rgb: 246, 249, 255;
  --bs-body-color: #314155;
  --bs-body-color-rgb: 49, 65, 85;
  --bs-border-color: #d9e4fb;
  --bs-secondary-bg: #e8f0ff;
  --bs-tertiary-bg: #f8fbff;
  --bs-link-color: #1d4ed8;
  --bs-link-hover-color: #1e40af;
  --bs-focus-ring-color: rgba(37, 99, 235, .24);
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--vm-font-sans);
  font-size: var(--vm-font-size-base);
  line-height: 1.45;
  background: linear-gradient(180deg, #f9fbff 0%, #edf4ff 100%);
  color: var(--bs-body-color);
  overflow: hidden;
}

button,
input,
select,
textarea,
.btn,
.form-control,
.form-select,
.input-group-text,
.dropdown-item,
.nav-link,
.table,
.badge,
.alert,
.card,
.offcanvas,
.modal-content {
  font-size: inherit;
}

.small,
small,
.form-text {
  font-size: var(--vm-font-size-sm) !important;
}

.btn-sm,
.form-control-sm,
.form-select-sm,
.input-group-sm > .form-control,
.input-group-sm > .form-select,
.input-group-sm > .input-group-text,
.input-group-sm > .btn {
  font-size: var(--vm-font-size-sm) !important;
}

code,
kbd,
pre,
.font-monospace,
.vm-amount,
.vm-number,
.value-end,
.table :is(th, td).text-end,
input[type="number"],
input[inputmode="decimal"] {
  font-family: var(--vm-font-mono) !important;
  font-variant-numeric: tabular-nums lining-nums;
}

.vm-amount,
.vm-number {
  letter-spacing: -0.02em;
}

body.vm-command-palette-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(42rem 42rem at 85% 14%, var(--brand-glow-a) 0%, rgba(37, 99, 235, 0) 62%),
    radial-gradient(34rem 34rem at 12% 78%, var(--brand-glow-b) 0%, rgba(96, 165, 250, 0) 60%),
    radial-gradient(26rem 26rem at 58% 36%, var(--brand-glow-c) 0%, rgba(217, 164, 65, 0) 56%);
}

.value-end {
  text-align: right;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

@media (max-width: 767.98px) {
  .vm-mobile-filter-shell {
    --vm-mobile-filter-surface: linear-gradient(180deg, rgba(var(--vm-mobile-chrome-rgb), .97) 0%, rgba(var(--vm-mobile-chrome-alt-rgb), .92) 100%);
    --vm-mobile-filter-border: rgba(147, 197, 253, .18);
    --vm-mobile-filter-border-strong: rgba(191, 219, 254, .24);
    --vm-mobile-filter-text: #f8fbff;
    --vm-mobile-filter-muted: rgba(213, 227, 255, .76);
    --vm-mobile-filter-control-bg: rgba(255, 255, 255, .08);
    --vm-mobile-filter-control-bg-hover: rgba(255, 255, 255, .12);
    --vm-mobile-filter-accent: #93c5fd;
    position: sticky;
    top: 0;
    z-index: 8;
    overflow: visible !important;
  }

  .vm-mobile-filter-topbar,
  .vm-mobile-filter-shell > .vm-mobile-filter-topbar {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 3.75rem;
    padding: 1rem !important;
    display: flex;
    align-items: center;
    gap: .75rem;
    border-radius: 0 !important;
    border-bottom: 1px solid var(--vm-mobile-filter-border) !important;
    background: var(--vm-mobile-filter-surface) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 14px 30px rgba(10, 24, 48, .16) !important;
    margin-bottom: 0 !important;
    color: var(--vm-mobile-filter-text) !important;
  }

  .vm-mobile-filter-topbar > * {
    min-width: 0;
  }

  .vm-mobile-filter-topbar .small {
    font-size: .78rem;
    line-height: 1.2;
  }

  .vm-mobile-filter-topbar .fw-medium {
    font-weight: 700 !important;
  }

  .vm-mobile-filter-topbar .text-muted {
    color: var(--vm-mobile-filter-muted) !important;
  }

  .vm-mobile-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 46px;
    padding: .72rem .92rem;
    border-radius: .95rem;
    border: 1px solid var(--vm-mobile-filter-border);
    background: var(--vm-mobile-filter-control-bg);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .02);
    color: var(--vm-mobile-filter-text);
    font-weight: 700;
    white-space: nowrap;
  }

  .vm-mobile-filter-toggle:hover,
  .vm-mobile-filter-toggle:focus-visible,
  .vm-mobile-filter-toggle[aria-expanded="true"] {
    border-color: var(--vm-mobile-filter-border-strong);
    background: var(--vm-mobile-filter-control-bg-hover);
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(191, 219, 254, .08);
  }

  .vm-mobile-filter-toggle i {
    transition: transform .22s ease, opacity .18s ease;
    transform-origin: 50% 50%;
  }

  .vm-mobile-filter-toggle[aria-expanded="true"] i {
    transform: rotate(180deg) scale(1.04);
  }

  .vm-mobile-filter-shell .vm-mobile-filter-toggle {
    display: none !important;
  }

  .vm-mobile-filter-panel,
  .vm-mobile-filter-shell > .vm-mobile-filter-panel {
    position: fixed !important;
    top: auto;
    bottom: calc(var(--bnav-h) + var(--safe-bottom));
    left: 0;
    right: 0;
    z-index: 1032;
    margin: 0 !important;
    padding: 1rem !important;
    max-height: calc(100dvh - var(--topbar-h) - var(--safe-top) - var(--bnav-h) - var(--safe-bottom) - .75rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-top: 1px solid var(--vm-mobile-filter-border);
    border-bottom: 0 !important;
    background: var(--vm-mobile-filter-surface) !important;
    backdrop-filter: blur(14px);
    box-shadow: 0 -20px 36px rgba(10, 24, 48, .28);
    transform-origin: bottom center;
    display: grid !important;
    gap: .85rem !important;
    align-content: start;
    width: 100% !important;
    color: var(--vm-mobile-filter-text) !important;
  }

  .vm-mobile-filter-panel > *,
  .vm-mobile-filter-shell > .vm-mobile-filter-panel > * {
    min-width: 0;
    margin: 0 !important;
  }

  .vm-mobile-filter-panel :is(label:not(.form-check-label), .small.fw-medium),
  .vm-mobile-filter-shell > .vm-mobile-filter-panel :is(label:not(.form-check-label), .small.fw-medium) {
    display: block;
    margin-bottom: .35rem;
    font-size: .73rem;
    line-height: 1.2;
    font-weight: 700 !important;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--vm-mobile-filter-muted) !important;
  }

  .vm-mobile-filter-panel :is(.form-control, .form-select, .input-group, .btn, .btn-group),
  .vm-mobile-filter-shell > .vm-mobile-filter-panel :is(.form-control, .form-select, .input-group, .btn, .btn-group),
  .vm-mobile-filter-shell > .vm-mobile-filter-panel :is([style*="width:auto"], [style*="width:200px"], [style*="width:220px"], [style*="width:9rem"], [style*="width:11rem"], [style*="width: 200px"], [style*="width: 220px"], [style*="width: 9rem"], [style*="width: 11rem"]) {
    width: 100% !important;
    max-width: none !important;
  }

  .vm-mobile-filter-panel :is(.form-control, .form-select, .btn, .input-group-text),
  .vm-mobile-filter-shell > .vm-mobile-filter-panel :is(.form-control, .form-select, .btn, .input-group-text) {
    min-height: 44px;
    border-radius: .95rem;
  }

  .vm-mobile-filter-panel :is(.form-control, .form-select, .input-group-text),
  .vm-mobile-filter-shell > .vm-mobile-filter-panel :is(.form-control, .form-select, .input-group-text) {
    border: 1px solid var(--vm-mobile-filter-border) !important;
    background: var(--vm-mobile-filter-control-bg) !important;
    color: var(--vm-mobile-filter-text) !important;
    box-shadow: none !important;
  }

  .vm-mobile-filter-panel :is(.form-control, .form-select)::placeholder,
  .vm-mobile-filter-shell > .vm-mobile-filter-panel :is(.form-control, .form-select)::placeholder {
    color: rgba(213, 227, 255, .58) !important;
  }

  .vm-mobile-filter-panel .form-check-label,
  .vm-mobile-filter-shell > .vm-mobile-filter-panel .form-check-label,
  .vm-mobile-filter-panel .text-muted,
  .vm-mobile-filter-shell > .vm-mobile-filter-panel .text-muted {
    color: var(--vm-mobile-filter-muted) !important;
  }

  .vm-mobile-filter-panel .form-check-input,
  .vm-mobile-filter-shell > .vm-mobile-filter-panel .form-check-input {
    border-color: var(--vm-mobile-filter-border) !important;
    background-color: rgba(255, 255, 255, .06) !important;
  }

  .vm-mobile-filter-panel .form-check-input:checked,
  .vm-mobile-filter-shell > .vm-mobile-filter-panel .form-check-input:checked {
    border-color: rgba(96, 165, 250, .95) !important;
    background-color: rgba(59, 130, 246, .9) !important;
  }

  .vm-mobile-filter-panel .input-group-text,
  .vm-mobile-filter-shell > .vm-mobile-filter-panel .input-group-text {
    justify-content: center;
    min-width: 44px;
  }

  .vm-mobile-filter-panel .btn,
  .vm-mobile-filter-shell > .vm-mobile-filter-panel .btn,
  .vm-mobile-filter-shell > .vm-mobile-filter-panel a.btn {
    font-weight: 600;
    border: 1px solid var(--vm-mobile-filter-border) !important;
    background: var(--vm-mobile-filter-control-bg) !important;
    color: var(--vm-mobile-filter-text) !important;
    box-shadow: none !important;
  }

  .vm-mobile-filter-topbar .btn,
  .vm-mobile-filter-shell > .vm-mobile-filter-topbar .btn {
    border: 1px solid var(--vm-mobile-filter-border) !important;
    background: var(--vm-mobile-filter-control-bg) !important;
    color: var(--vm-mobile-filter-text) !important;
    box-shadow: none !important;
  }

  .vm-mobile-filter-panel .btn:hover,
  .vm-mobile-filter-panel .btn:focus-visible,
  .vm-mobile-filter-shell > .vm-mobile-filter-panel .btn:hover,
  .vm-mobile-filter-shell > .vm-mobile-filter-panel .btn:focus-visible,
  .vm-mobile-filter-topbar .btn:hover,
  .vm-mobile-filter-topbar .btn:focus-visible {
    background: var(--vm-mobile-filter-control-bg-hover) !important;
    border-color: var(--vm-mobile-filter-border-strong) !important;
    color: #ffffff !important;
  }

  .vm-mobile-filter-panel .btn-primary,
  .vm-mobile-filter-shell > .vm-mobile-filter-panel .btn-primary,
  .vm-mobile-filter-panel .btn.active,
  .vm-mobile-filter-shell > .vm-mobile-filter-panel .btn.active,
  .vm-mobile-filter-panel a.btn-primary,
  .vm-mobile-filter-shell > .vm-mobile-filter-panel a.btn-primary {
    background: linear-gradient(180deg, rgba(59, 130, 246, .9) 0%, rgba(37, 99, 235, .84) 100%) !important;
    border-color: rgba(147, 197, 253, .52) !important;
    color: #ffffff !important;
  }

  .vm-mobile-filter-panel .btn-outline-secondary,
  .vm-mobile-filter-shell > .vm-mobile-filter-panel .btn-outline-secondary,
  .vm-mobile-filter-topbar .btn-outline-secondary,
  .vm-mobile-filter-shell > .vm-mobile-filter-topbar .btn-outline-secondary,
  .vm-mobile-filter-panel .btn-outline-primary,
  .vm-mobile-filter-shell > .vm-mobile-filter-panel .btn-outline-primary {
    background: var(--vm-mobile-filter-control-bg) !important;
    border-color: var(--vm-mobile-filter-border) !important;
    color: var(--vm-mobile-filter-text) !important;
  }

  .vm-mobile-filter-panel .btn-group,
  .vm-mobile-filter-shell > .vm-mobile-filter-panel .btn-group {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
    gap: .65rem;
  }

  .vm-mobile-filter-panel :is(.d-flex, .flex-wrap, form),
  .vm-mobile-filter-shell > .vm-mobile-filter-panel :is(.d-flex, .flex-wrap, form) {
    gap: .65rem !important;
  }

  .vm-mobile-filter-shell > .vm-mobile-filter-panel :is(.d-flex, form) {
    width: 100% !important;
    flex-direction: column;
    align-items: stretch !important;
  }

  .vm-mobile-filter-shell > .vm-mobile-filter-panel :is(.quotes-filter-panel, .complaints-filter-panel, .trips-mobile-filters, .loyalty-filter-row) {
    padding: 1rem !important;
    background: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
  }

  .vm-mobile-filter-panel .partner-mobile-filter-grid > div,
  .vm-mobile-filter-panel .partner-mobile-filter-grid .form-check,
  .vm-mobile-filter-shell > .vm-mobile-filter-panel .partner-mobile-filter-grid > div,
  .vm-mobile-filter-shell > .vm-mobile-filter-panel .partner-mobile-filter-grid .form-check {
    padding: 1rem !important;
    border: 1px solid var(--vm-mobile-filter-border) !important;
    border-radius: .95rem !important;
    background: rgba(255, 255, 255, .06) !important;
    box-shadow: none !important;
  }

  .vm-mobile-filter-panel .partner-mobile-filter-grid label,
  .vm-mobile-filter-shell > .vm-mobile-filter-panel .partner-mobile-filter-grid label {
    color: var(--vm-mobile-filter-muted) !important;
  }

  .vm-mobile-filter-panel.collapse:not(.show) {
    display: none !important;
  }

  .vm-mobile-filter-panel.collapsing {
    position: fixed !important;
    top: auto;
    bottom: calc(var(--bnav-h) + var(--safe-bottom));
    left: 0;
    right: 0;
    max-height: calc(100dvh - var(--topbar-h) - var(--safe-top) - var(--bnav-h) - var(--safe-bottom) - .75rem);
    overflow: hidden;
  }
}

@media (min-width: 768px) {
  .vm-mobile-filter-toggle {
    display: none !important;
  }
}

/* ── Brand color overrides ──────────────────────────────────── */
.btn,
.form-control,
.form-select,
.input-group-text,
.dropdown-menu,
.modal-content,
.offcanvas,
.card,
.accordion,
.list-group,
.table,
.popover,
.tooltip {
  --bs-border-color: #d9e4fb;
}

.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active { background-color: var(--pri) !important; border-color: var(--pri) !important; }
.btn-primary:hover  { background-color: var(--pri-dk) !important; border-color: var(--pri-dk) !important; }
.btn-outline-primary { color: var(--pri) !important; border-color: var(--pri) !important; }
.btn-outline-primary:hover { background-color: var(--pri) !important; color: #fff !important; }
.btn-secondary { --bs-btn-bg: var(--bs-secondary); --bs-btn-border-color: var(--bs-secondary); --bs-btn-hover-bg: #526176; --bs-btn-hover-border-color: #526176; }
.btn-outline-secondary { --bs-btn-color: var(--bs-secondary); --bs-btn-border-color: #a7b4c7; --bs-btn-hover-bg: var(--bs-secondary); --bs-btn-hover-border-color: var(--bs-secondary); }
.text-primary  { color: var(--pri) !important; }
.bg-primary    { background-color: rgba(var(--bs-primary-rgb), var(--bs-bg-opacity, 1)) !important; }
.border-primary { border-color: var(--pri) !important; }
.bg-light { background-color: var(--bs-light) !important; }
.text-bg-light { background-color: #e6f0ff !important; color: #2158c9 !important; }
.form-control:focus, .form-select:focus {
  border-color: var(--pri);
  box-shadow: 0 0 0 .2rem rgba(37,99,235,.15);
}
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link { background-color: var(--pri) !important; }
.nav-tabs .nav-link.active { color: var(--pri) !important; border-bottom-color: var(--pri) !important; }
.nav-tabs .nav-link:hover  { color: var(--pri-dk); }
.dropdown-item:active,
.dropdown-item.active { background-color: var(--pri) !important; }
.page-link {
  color: var(--pri-dk);
  background-color: #fbfdff;
  border-color: #d9e4fb;
}
.page-link:hover,
.page-link:focus {
  color: #1e40af;
  background-color: #dbeafe;
  border-color: #adcaf8;
}
.active > .page-link,
.page-link.active {
  background-color: var(--pri);
  border-color: var(--pri);
}
.table {
  --bs-table-striped-bg: #f4f8ff;
  --bs-table-hover-bg: #eaf1ff;
}
.table-dark {
  --bs-table-bg: #223250;
  --bs-table-striped-bg: #2b3d60;
  --bs-table-hover-bg: #344875;
  --bs-table-border-color: #47638d;
}
.alert-primary {
  --bs-alert-color: #1d4db6;
  --bs-alert-bg: #dbeafe;
  --bs-alert-border-color: #a9c7fb;
}
.alert-secondary {
  --bs-alert-color: #445063;
  --bs-alert-bg: #e9eef6;
  --bs-alert-border-color: #c5d0de;
}
.alert-success {
  --bs-alert-color: #21664c;
  --bs-alert-bg: #dbf2ea;
  --bs-alert-border-color: #9fd4bf;
}
.alert-warning {
  --bs-alert-color: #72531a;
  --bs-alert-bg: #f8edd7;
  --bs-alert-border-color: #e1c48e;
}
.alert-danger {
  --bs-alert-color: #7a3744;
  --bs-alert-bg: #f6e0e5;
  --bs-alert-border-color: #e2adb8;
}
.badge.text-bg-primary { background-color: var(--pri) !important; }
.badge.text-bg-secondary { background-color: var(--bs-secondary) !important; }
.badge.text-bg-success { background-color: var(--bs-success) !important; }
.badge.text-bg-warning { background-color: var(--bs-warning) !important; color: #5d3b0f !important; }
.badge.text-bg-danger { background-color: var(--bs-danger) !important; }
.progress,
.progress-stacked {
  --bs-progress-bg: #dde8fb;
  --bs-progress-bar-bg: var(--pri);
}
.accordion {
  --bs-accordion-active-bg: #dbeafe;
  --bs-accordion-active-color: #1e40af;
  --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgba(37,99,235,.12);
}
.list-group {
  --bs-list-group-active-bg: var(--pri);
  --bs-list-group-active-border-color: var(--pri);
}
.form-check-input:checked {
  background-color: var(--pri);
  border-color: var(--pri);
}
.form-range::-webkit-slider-thumb { background: var(--pri); }
.form-range::-moz-range-thumb { background: var(--pri); }

/* ── Sidebar ────────────────────────────────────────────────── */
.erp-sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--nav-w);
  background: var(--nav-bg);
  display: flex;
  flex-direction: column;
  z-index: 1030;
  overflow: hidden;
  transition: width .25s cubic-bezier(.4,0,.2,1), transform .25s cubic-bezier(.4,0,.2,1);
}

.erp-sidebar-header {
  display: flex;
  align-items: center;
  height: 82px;
  padding: 0 1rem;
  flex-shrink: 0;
  border-bottom: 1px solid var(--nav-bdr);
  background: rgba(0,0,0,.15);
  gap: .5rem;
}
.erp-sidebar-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  flex: 1;
}
.erp-logo-full {
  display: flex;
  align-items: center;
  width: 100%;
}
.erp-logo-full img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 48px;
  object-fit: contain;
  object-position: left center;
}
.erp-logo-mini img {
  height: 34px;
  width: auto;
}
.erp-bell.erp-global-bell {
  position: fixed;
  inset: 10px 10px auto auto;
  left: auto;
  right: 10px;
  z-index: 1042;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: transparent;
  border: none;
  box-shadow: none;
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.erp-bell.erp-global-bell i {
  font-size: 1.45rem;
  color: inherit;
}
.erp-bell.erp-global-bell:hover {
  background: transparent;
  color: #1e40af;
}
.erp-bell.erp-global-bell .erp-bell-badge {
  top: 8px;
  right: 8px;
}

.vm-command-launcher {
  position: fixed;
  inset: 10px 72px auto auto;
  z-index: 1041;
  align-items: center;
  gap: .6rem;
  padding: .7rem .9rem;
  border: 1px solid rgba(191, 209, 240, .92);
  border-radius: 1rem;
  background: rgba(255, 255, 255, .88);
  color: #1e3a8a;
  box-shadow: 0 16px 34px rgba(22, 40, 78, .12);
  backdrop-filter: blur(16px);
  font-size: .86rem;
  font-weight: 700;
}

.vm-command-launcher:hover {
  background: rgba(255, 255, 255, .95);
  border-color: rgba(147, 197, 253, .94);
}

.vm-command-launcher i {
  font-size: .95rem;
}

.vm-command-launcher kbd {
  margin-left: .15rem;
  padding: .18rem .38rem;
  border-radius: .45rem;
  background: rgba(219, 234, 254, .96);
  color: #1d4ed8;
  font-size: .72rem;
  font-weight: 800;
  box-shadow: inset 0 -1px 0 rgba(37, 99, 235, .12);
}

.vm-command-palette {
  position: fixed;
  inset: 0;
  z-index: 2500;
}

.vm-command-palette[hidden] {
  display: none !important;
}

.vm-command-palette__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 24, 48, .34);
  backdrop-filter: blur(10px);
}

.vm-command-palette__dialog {
  position: relative;
  width: min(92vw, 54rem);
  max-height: min(78vh, 44rem);
  margin: clamp(3.5rem, 8vh, 6rem) auto 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(191, 209, 240, .9);
  border-radius: 1.45rem;
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, .12), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(247, 250, 255, .98));
  box-shadow: 0 38px 80px rgba(10, 24, 48, .22);
}

.vm-command-palette__header {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1rem 1rem .8rem;
  border-bottom: 1px solid rgba(217, 228, 251, .95);
}

.vm-command-palette__search-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .95rem 1rem;
  border: 1px solid rgba(191, 209, 240, .82);
  border-radius: 1rem;
  background: rgba(255, 255, 255, .92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55);
}

.vm-command-palette__search-wrap i {
  color: #2563eb;
  font-size: 1rem;
}

.vm-command-palette__input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #0f172a;
  font-size: 1.02rem;
  font-weight: 600;
}

.vm-command-palette__input::placeholder {
  color: #6b7d99;
  font-weight: 500;
}

.vm-command-palette__close {
  width: 2.9rem;
  height: 2.9rem;
  border: 1px solid rgba(191, 209, 240, .9);
  border-radius: .95rem;
  background: rgba(255, 255, 255, .84);
  color: #64748b;
}

.vm-command-palette__meta,
.vm-command-palette__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1.1rem;
}

.vm-command-palette__meta {
  border-bottom: 1px solid rgba(217, 228, 251, .86);
  background: rgba(244, 248, 255, .88);
}

.vm-command-palette__title {
  font-size: .95rem;
  font-weight: 800;
  color: #1e3a8a;
}

.vm-command-palette__subtitle,
.vm-command-palette__hint,
.vm-command-palette__footer {
  color: #64748b;
  font-size: .78rem;
}

.vm-command-palette__results {
  overflow: auto;
  padding: .7rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}

.vm-command-palette__section {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.vm-command-palette__section-label {
  padding: .2rem .4rem;
  color: #6b7d99;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.vm-command-palette__item {
  width: 100%;
  display: grid;
  grid-template-columns: 2.8rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .85rem;
  padding: .82rem .9rem;
  border: 1px solid transparent;
  border-radius: 1rem;
  background: rgba(255, 255, 255, .78);
  color: #0f172a;
  text-align: left;
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease, background-color .14s ease;
}

.vm-command-palette__item:hover,
.vm-command-palette__item.is-active {
  transform: translateY(-1px);
  border-color: rgba(147, 197, 253, .95);
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 14px 30px rgba(37, 99, 235, .1);
}

.vm-command-palette__item-icon {
  width: 2.8rem;
  height: 2.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: .95rem;
  background: rgba(219, 234, 254, .94);
  color: #2563eb;
  font-size: 1rem;
}

.vm-command-palette__item-main {
  min-width: 0;
}

.vm-command-palette__item-label {
  font-size: .95rem;
  font-weight: 800;
  color: #0f172a;
}

.vm-command-palette__item-description {
  margin-top: .15rem;
  color: #64748b;
  font-size: .8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vm-command-palette__item-meta {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .55rem;
  border-radius: 999px;
  background: rgba(248, 250, 252, .98);
  border: 1px solid rgba(226, 232, 240, .92);
  color: #64748b;
  font-size: .72rem;
  font-weight: 700;
}

.vm-command-palette__empty {
  padding: 2.2rem 1rem;
  border: 1px dashed rgba(191, 209, 240, .95);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, .7);
  color: #64748b;
  text-align: center;
}

.vm-command-palette__footer {
  border-top: 1px solid rgba(217, 228, 251, .95);
  background: rgba(250, 252, 255, .9);
}

.vm-command-palette__footer-dot {
  width: .3rem;
  height: .3rem;
  border-radius: 999px;
  background: #cbd5e1;
  flex-shrink: 0;
}

.vm-activity-rail {
  position: fixed;
  inset: 0;
  z-index: 2400;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, visibility .18s ease;
}

.vm-activity-rail.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.vm-activity-rail__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 24, 48, .18);
}

.vm-activity-rail__panel {
  position: absolute;
  top: 1rem;
  right: 1rem;
  bottom: 1rem;
  width: min(26rem, calc(100vw - 1rem));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(191, 209, 240, .9);
  border-radius: 1.4rem;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,249,255,.98));
  box-shadow: 0 30px 64px rgba(10, 24, 48, .22);
  transform: translateX(1rem);
  transition: transform .2s ease;
}

.vm-activity-rail.is-open .vm-activity-rail__panel {
  transform: translateX(0);
}

.vm-activity-rail__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem .85rem;
  border-bottom: 1px solid rgba(217, 228, 251, .9);
}

.vm-activity-rail__title {
  font-size: 1rem;
  font-weight: 800;
  color: #1e3a8a;
}

.vm-activity-rail__subtitle {
  font-size: .78rem;
  color: #64748b;
}

.vm-activity-rail__close {
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(191, 209, 240, .9);
  border-radius: .9rem;
  background: rgba(255,255,255,.92);
  color: #64748b;
}

.vm-activity-rail__filters {
  display: flex;
  gap: .45rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid rgba(217, 228, 251, .84);
  overflow-x: auto;
}

.vm-activity-rail__filter {
  padding: .45rem .75rem;
  border: 1px solid rgba(191, 209, 240, .9);
  border-radius: 999px;
  background: rgba(255,255,255,.84);
  color: #64748b;
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
}

.vm-activity-rail__filter.is-active {
  background: rgba(219, 234, 254, .96);
  border-color: rgba(147, 197, 253, .96);
  color: #1d4ed8;
}

.vm-activity-rail__list {
  flex: 1;
  overflow: auto;
  padding: .8rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.vm-activity-rail__item {
  display: grid;
  grid-template-columns: 2.8rem minmax(0, 1fr);
  gap: .8rem;
  padding: .9rem;
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 1rem;
  background: rgba(255,255,255,.92);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(37, 99, 235, .06);
}

.vm-activity-rail__item:hover {
  border-color: rgba(147, 197, 253, .95);
  box-shadow: 0 16px 28px rgba(37, 99, 235, .08);
}

.vm-activity-rail__item-icon {
  width: 2.8rem;
  height: 2.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: .95rem;
  background: rgba(219, 234, 254, .92);
  font-size: 1rem;
}

.vm-activity-rail__item-title {
  font-size: .92rem;
  font-weight: 800;
  color: #0f172a;
}

.vm-activity-rail__item-text,
.vm-activity-rail__item-meta {
  color: #64748b;
  font-size: .78rem;
}

.vm-activity-rail__item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .35rem;
}

.vm-activity-rail__empty {
  padding: 2rem 1rem;
  border: 1px dashed rgba(191, 209, 240, .95);
  border-radius: 1rem;
  text-align: center;
  color: #64748b;
}

.vm-detail-origin-active {
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, .18), 0 18px 34px rgba(37, 99, 235, .12);
  transition: box-shadow .18s ease, transform .18s ease;
}

.vm-detail-transition-ghost {
  position: fixed;
  z-index: 2600;
  pointer-events: none;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(239,246,255,.84));
  box-shadow: 0 22px 48px rgba(37, 99, 235, .14);
  border: 1px solid rgba(191, 219, 254, .96);
  transform-origin: center;
}

.erp-page-header:not(:empty) > div > .rounded-3:first-child,
.erp-page-header:not(:empty) > div > .rounded-xl:first-child {
  display: none !important;
}

.erp-page-header:not(:empty) > div > div:nth-child(2) > .display-6,
.erp-page-header:not(:empty) > div > div:nth-child(2) > .fw-bold,
.erp-page-header:not(:empty) > div > div:nth-child(2) > .font-bold,
.erp-page-header:not(:empty) > div > div:nth-child(2) > .text-base.font-bold {
  font-size: calc(1.375rem + 1.5vw) !important;
  line-height: 1.1;
  font-weight: 300 !important;
  margin: 0;
}

@media (min-width: 1200px) {
  .erp-page-header:not(:empty) > div > div:nth-child(2) > .display-6,
  .erp-page-header:not(:empty) > div > div:nth-child(2) > .fw-bold,
  .erp-page-header:not(:empty) > div > div:nth-child(2) > .font-bold,
  .erp-page-header:not(:empty) > div > div:nth-child(2) > .text-base.font-bold {
    font-size: 2.5rem !important;
  }
}

.erp-nav-toggle {
  position: fixed;
  left: calc(var(--nav-w) - 13px);
  top: 78px;
  width: 26px; height: 26px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #6b7280;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 1035;
  box-shadow: 0 1px 6px rgba(0,0,0,.14);
  padding: 0;
  font-size: .7rem;
  transition: left .25s cubic-bezier(.4,0,.2,1), background .15s, color .15s, box-shadow .15s;
}
.erp-nav-toggle:hover {
  background: var(--pri);
  border-color: var(--pri);
  color: #fff;
  box-shadow: 0 2px 8px rgba(111,143,93,.35);
}

.erp-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.erp-nav-list::-webkit-scrollbar { display: none; }

.erp-nav-section {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #7f93b8;
  padding: .45rem .5rem .1rem;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity .2s, height .2s;
}

.erp-nav-entry {
  display: flex;
  flex: 1 1 0;
  min-height: 0;
  margin: 0;
}

.erp-navitem {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .95rem 1rem;
  color: var(--nav-text);
  font-size: 1.08rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  margin: 0;
  transition: background .15s, color .15s, transform .15s, box-shadow .15s, border-color .15s;
  border-radius: 0;
  border: 1px solid rgba(147, 197, 253, .08);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.02));
  min-height: clamp(3.65rem, 6vh, 5rem);
  flex: 1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.erp-nav-svg {
  width: 2.2rem;
  height: 2.2rem;
  flex-shrink: 0;
  display: block;
}
.erp-nav-svg--current,
.erp-nav-svg--menu,
.erp-nav-svg--tile {
  width: 100%;
  height: 100%;
}
.erp-navitem span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity .2s;
  line-height: 1.2;
}
.erp-navitem:hover {
  background: rgba(147, 197, 253, .12);
  border-color: rgba(147, 197, 253, .18);
  color: #eff6ff;
  transform: translateY(-1px);
}
.erp-navitem.active {
  background: linear-gradient(180deg, rgba(96, 165, 250, .18), rgba(37, 99, 235, .16));
  color: #dbeafe;
  border-color: rgba(147, 197, 253, .28);
  box-shadow: 0 12px 22px rgba(10, 24, 48, .18);
}

/* ── Sidebar footer ──────────────────────────────────────────── */
.erp-sidebar-footer { flex-shrink: 0; border-top: 1px solid var(--nav-bdr); }
.erp-user-block {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .875rem 1rem;
  overflow: hidden;
}
.erp-user-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(111,143,93,.18);
  color: var(--nav-act-c);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.erp-user-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: opacity .2s, width .2s;
}
.erp-username {
  color: #e2e8f0;
  font-size: .875rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.erp-userrole {
  color: #475569;
  font-size: .75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.erp-bell {
  position: absolute;
  top: 16px; 
  right: 16px;
  background: transparent;
  border: none;
  color: var(--nav-text);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: background .15s;
  padding: 0;
}
.erp-bell:hover { background: var(--nav-hover); color: #fff; }
.erp-bell-badge {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 16px; height: 16px;
  background: #dc2626;
  color: #fff;
  border-radius: 9999px;
  font-size: .625rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
  pointer-events: none;
}
.erp-logout {
  width: 30px; height: 30px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--nav-text);
  text-decoration: none;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.erp-logout:hover { background: rgba(220,38,38,.15); color: #f87171; }

/* ── Collapsed sidebar (desktop) ────────────────────────────── */
body.nav-collapsed .erp-nav-toggle { left: calc(var(--nav-mini) - 13px); }
body.nav-collapsed .erp-sidebar { width: var(--nav-mini); }
body.nav-collapsed .erp-logo-full { display: none !important; }
body.nav-collapsed .erp-logo-mini { display: flex !important; }
body.nav-collapsed .erp-sidebar-brand {
  justify-content: center;
}
body.nav-collapsed .erp-nav-section { opacity: 0; height: 0; padding: 0; overflow: hidden; }
body.nav-collapsed .erp-navitem span,
body.nav-collapsed .erp-user-info,
body.nav-collapsed .erp-logout { opacity: 0; width: 0; overflow: hidden; }
body.nav-collapsed .erp-navitem { justify-content: center; }
body.nav-collapsed .erp-nav-list {
  padding-left: 0;
  padding-right: 0;
}
body.nav-collapsed .erp-nav-entry {
  flex-basis: auto;
}
body.nav-collapsed .erp-user-block { justify-content: center; }

/* ── Mobile topbar ───────────────────────────────────────────── */
.erp-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-bdr);
  z-index: 1031;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 .75rem;
  gap: .5rem;
}
.erp-topbar-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: .95rem;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(147, 197, 253, .12);
}
.erp-topbar-logo { height: 24px; width: auto; }
.erp-topbar-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .12rem;
}
.erp-topbar-kicker {
  font-size: .63rem;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(213, 227, 255, .64);
  font-weight: 700;
}
.erp-topbar-title {
  min-width: 0;
  color: #f8fbff;
  font-size: 1.92rem;
  line-height: 1.05;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.erp-topbar-subtitle {
  min-width: 0;
  color: rgba(213, 227, 255, .7);
  font-size: .72rem;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.erp-topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  flex-shrink: 0;
}

/* ── Mobile sidebar overlay ─────────────────────────────────── */
.erp-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1029;
}
body.nav-open .erp-sidebar  { transform: translateX(0); }
body.nav-open .erp-backdrop { display: block; }

/* ── App body & main ─────────────────────────────────────────── */
.erp-body {
  display: flex;
  position: relative;
  top: 0;
  height: 100dvh;
  overflow: hidden;
  margin-top: 0;
  padding-left: var(--nav-w);
  padding-top: 0;
  isolation: isolate;
  transition: padding-left .25s cubic-bezier(.4,0,.2,1);
}
body.nav-collapsed .erp-body { padding-left: var(--nav-mini); }
.erp-body--no-nav { padding-left: 0 !important; }

.erp-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.erp-main > * {
  position: relative;
  z-index: 1;
}

.erp-content-slot {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.erp-main > .flex-fill,
.erp-main > .d-flex.flex-fill,
.erp-main > [class*="overflow-"] {
  min-height: 0;
}

/* ── Page header ─────────────────────────────────────────────── */
.erp-page-header:not(:empty) {
  display: flex;
  align-items: center;
  padding: .95rem 1.25rem;
  margin-top: 0;
  flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  gap: .75rem;
  min-height: 72px;
}

.erp-page-header:not(:empty) > * {
  margin-top: 0;
  margin-bottom: 0;
}

.erp-page-header:not(:empty) .rounded-3[style*="width:38px"] {
  width: 46px !important;
  height: 46px !important;
}

.erp-page-header:not(:empty) .rounded-3[style*="width:2.25rem"] {
  width: 2.9rem !important;
  height: 2.9rem !important;
}

/* ── Bottom nav (mobile) ─────────────────────────────────────── */
.erp-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--bnav-h);
  z-index: 1030;
}
.erp-bottom-dock {
  width: 100%;
  --erp-bottom-dock-icon-color: #93c5fd;
  --erp-bottom-dock-icon-active-color: #eff6ff;
  --erp-bottom-dock-svg-size: 1.92rem;
  --erp-bottom-dock-bi-size: 1.9rem;
  --erp-bottom-dock-menu-size: 2.28rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  padding: 0;
  border-top: 1px solid var(--nav-bdr);
  background: linear-gradient(180deg, rgba(20, 10, 58, .97) 0%, rgba(13, 7, 42, .96) 100%);
  box-shadow: 0 -14px 32px rgba(8, 4, 30, .32);
  overflow: hidden;
}
.erp-bottom-dock-item {
  min-width: 0;
  min-height: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .58rem;
  padding: .62rem .28rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(213, 227, 255, .72);
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
  position: relative;
  overflow: hidden;
}
.erp-bottom-dock-item + .erp-bottom-dock-item {
  box-shadow: inset 1px 0 0 rgba(147, 197, 253, .1);
}
.erp-bottom-dock-item {
  order: 1;
}
#erp-mobile-filter-trigger {
  order: 98;
}
#erp-bottom-nav-toggle {
  order: 99;
}
#erp-bottom-nav-toggle.erp-bottom-dock-item {
  gap: .36rem;
}
.erp-bottom-dock-item:hover,
.erp-bottom-dock-item:focus-visible {
  color: #eff6ff;
  background: rgba(255, 255, 255, .05);
}
.erp-bottom-dock-item.active {
  color: #f8fbff;
  background: linear-gradient(180deg, rgba(37, 99, 235, .32) 0%, rgba(29, 78, 216, .26) 100%);
  box-shadow: inset 0 0 0 1px rgba(147, 197, 253, .12);
  transform: none;
}
.erp-bottom-dock-item.active::after {
  content: "";
  position: absolute;
  top: .42rem;
  right: .42rem;
  width: .38rem;
  height: .38rem;
  border-radius: 999px;
  background: #93c5fd;
  box-shadow: 0 0 0 .16rem rgba(147, 197, 253, .14);
}
.erp-bottom-dock-item--menu {
  cursor: pointer;
}
.erp-bottom-dock-icon {
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--erp-bottom-dock-icon-color) !important;
  flex-shrink: 0;
}
.erp-bottom-dock-item.active .erp-bottom-dock-icon {
  background: none;
  box-shadow: none;
  color: var(--erp-bottom-dock-icon-active-color) !important;
}
.erp-bottom-dock-icon .erp-nav-svg {
  display: block;
  width: var(--erp-bottom-dock-svg-size);
  height: var(--erp-bottom-dock-svg-size);
  filter: saturate(1.08) brightness(1.04);
}
#erp-bottom-nav-toggle .erp-bottom-dock-icon .erp-nav-svg {
  width: var(--erp-bottom-dock-menu-size);
  height: var(--erp-bottom-dock-menu-size);
}
.erp-bottom-dock-icon .bi {
  font-size: var(--erp-bottom-dock-bi-size);
  line-height: 1;
}
.erp-bottom-dock-label {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .9rem;
  line-height: 1.05;
  font-weight: 800;
  text-align: center;
}
.erp-bottom-nav-toggle {
  width: min(100%, 42rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .875rem;
  padding: .7rem .9rem;
  border: 1px solid rgba(147, 197, 253, .18);
  border-radius: 1.1rem;
  background: linear-gradient(180deg, rgba(18, 32, 61, .96) 0%, rgba(20, 33, 61, .92) 100%);
  color: var(--nav-text);
  box-shadow: 0 14px 36px rgba(11, 23, 46, .26);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.erp-bottom-nav-toggle:hover,
.erp-bottom-nav-toggle:focus-visible {
  border-color: rgba(147, 197, 253, .34);
  box-shadow: 0 18px 42px rgba(11, 23, 46, .32);
}
.erp-bottom-nav-current,
.erp-bottom-nav-action {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.erp-bottom-nav-current {
  min-width: 0;
}
.erp-bottom-nav-current-icon,
.erp-bottom-nav-action .erp-nav-svg {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: .9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(96, 165, 250, .14);
  color: #bfdbfe;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.erp-bottom-nav-current-icon .erp-nav-svg,
.erp-bottom-nav-action .erp-nav-svg {
  display: block;
}
.erp-bottom-nav-current-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: left;
}
.erp-bottom-nav-current-copy strong {
  color: #f8fbff;
  font-size: .92rem;
  line-height: 1.1;
}
.erp-bottom-nav-current-copy small {
  color: rgba(213, 227, 255, .72);
  font-size: .7rem;
  line-height: 1.15;
}
.erp-bottom-nav-action {
  color: #eff6ff;
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
}

.erp-mobile-menu-sheet {
  --bs-offcanvas-height: min(74dvh, 42rem);
  padding: 0 !important;
  border-top-left-radius: 1.4rem;
  border-top-right-radius: 1.4rem;
  border-top: 1px solid var(--nav-bdr);
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, .16), transparent 34%),
    radial-gradient(circle at top left, rgba(37, 99, 235, .14), transparent 28%),
    linear-gradient(180deg, rgba(18, 32, 61, .98) 0%, rgba(20, 33, 61, .96) 100%);
}
.erp-mobile-menu-sheet.is-dragging {
  transition: none !important;
}
.erp-mobile-menu-sheet.is-settling {
  transition: transform .22s cubic-bezier(.22, .61, .36, 1) !important;
}
.erp-mobile-menu-drag-handle {
  width: 3rem;
  height: .3rem;
  margin: .45rem auto .12rem;
  border-radius: 999px;
  background: rgba(213, 227, 255, .28);
}
.erp-mobile-menu-sheet .offcanvas-body {
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.erp-mobile-menu-sections {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  min-height: 0;
}
.erp-mobile-menu-section {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  min-height: 0;
}
.erp-mobile-menu-section-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.erp-mobile-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 0;
  border-top: 1px solid rgba(147, 197, 253, .14);
  border-left: 1px solid rgba(147, 197, 253, .14);
  background: rgba(18, 32, 61, .36);
}
.erp-mobile-menu-grid--full {
  flex: 1;
  min-height: 0;
  align-content: stretch;
}
.erp-mobile-menu-item {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem .55rem;
  border-radius: 0;
  border: 0;
  border-right: 1px solid rgba(147, 197, 253, .14);
  border-bottom: 1px solid rgba(147, 197, 253, .14);
  background: rgba(20, 33, 61, .82);
  color: var(--nav-text);
  text-decoration: none;
  text-align: center;
  box-shadow: none;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, color .16s ease, background .16s ease;
  position: relative;
  overflow: hidden;
}
.erp-mobile-menu-grid > .erp-mobile-menu-item:nth-child(2n) {
  border-right: 0;
}
.erp-mobile-menu-item:hover,
.erp-mobile-menu-item:focus-visible {
  transform: none;
  border-color: rgba(147, 197, 253, .24);
  background: rgba(30, 64, 175, .26);
  color: #f8fbff;
}
.erp-mobile-menu-item.active {
  border-color: rgba(147, 197, 253, .22);
  background: linear-gradient(180deg, rgba(37, 99, 235, .32) 0%, rgba(29, 78, 216, .26) 100%);
  color: #f8fbff;
  box-shadow: inset 0 0 0 1px rgba(147, 197, 253, .18);
  transform: none;
}
.erp-mobile-menu-item.active .erp-mobile-menu-item-label {
  color: #f8fbff;
}
.erp-mobile-menu-item.active::after {
  content: "";
  position: absolute;
  top: .55rem;
  right: .55rem;
  width: .55rem;
  height: .55rem;
  border-radius: 999px;
  background: #93c5fd;
  box-shadow: 0 0 0 .2rem rgba(147, 197, 253, .12);
}
.erp-mobile-menu-item-icon {
  width: 2.85rem;
  height: 2.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: .92rem;
  background: linear-gradient(180deg, rgba(96, 165, 250, .14) 0%, rgba(59, 130, 246, .1) 100%);
  color: inherit;
  font-size: 1.2rem;
}
.erp-mobile-menu-item.active .erp-mobile-menu-item-icon {
  background: linear-gradient(180deg, rgba(191, 219, 254, .18) 0%, rgba(147, 197, 253, .2) 100%);
  box-shadow: inset 0 0 0 1px rgba(147, 197, 253, .12);
}
.erp-mobile-menu-item-icon .erp-nav-svg {
  display: block;
}
.erp-mobile-menu-item-label {
  font-size: .86rem;
  line-height: 1.15;
  font-weight: 700;
}
.erp-mobile-menu-item-label small {
  display: block;
  margin-top: .12rem;
  font-size: .72rem;
  font-weight: 600;
  color: rgba(213, 227, 255, .72);
}
.erp-mobile-menu-grid--actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.erp-mobile-menu-item--profile {
  align-items: center;
  text-align: center;
  background: rgba(20, 33, 61, .82);
  border-color: rgba(147, 197, 253, .14);
  color: var(--nav-text);
}
.erp-mobile-menu-item--profile .erp-mobile-menu-item-label,
.erp-mobile-menu-item--logout .erp-mobile-menu-item-label {
  width: 100%;
}
.erp-mobile-menu-item--profile .erp-mobile-menu-item-icon {
  background: linear-gradient(180deg, rgba(96, 165, 250, .14) 0%, rgba(59, 130, 246, .1) 100%);
}
.erp-mobile-menu-item--logout {
  color: #f8b4c0;
}
.erp-mobile-menu-item--logout .erp-mobile-menu-item-icon {
  background: linear-gradient(180deg, rgba(199, 91, 106, .18) 0%, rgba(199, 91, 106, .12) 100%);
}

/* ── Mobile layout adjustments ─────────────────────────────── */
@media (max-width: 767.98px) {
  .vm-command-launcher {
    display: none !important;
  }

  :root {
    --vm-font-size-base: 1.02rem;
    --vm-font-size-sm: 0.92rem;
    --vm-font-size-xs: 0.82rem;
    --topbar-h: 68px;
    --bnav-h: 84px;
    --vm-mobile-toolbar-pad-x: 1rem;
    --vm-mobile-toolbar-pad-y: .9rem;
    --vm-mobile-toolbar-min-h: 64px;
  }

  .vm-mobile-filter-topbar,
  .trips-mobile-toolbar,
  .quotes-filter-bar,
  #tk-toolbar,
  .complaints-filter-summary,
  .loyalty-filter-topbar,
  #cat-search-wrap {
    min-height: var(--vm-mobile-toolbar-min-h);
    padding-left: var(--vm-mobile-toolbar-pad-x) !important;
    padding-right: var(--vm-mobile-toolbar-pad-x) !important;
  }

  .vm-mobile-filter-topbar,
  .trips-mobile-toolbar,
  .quotes-filter-bar,
  #tk-toolbar,
  .complaints-filter-summary,
  .loyalty-filter-topbar {
    padding-top: var(--vm-mobile-toolbar-pad-y) !important;
    padding-bottom: var(--vm-mobile-toolbar-pad-y) !important;
  }

  .vm-activity-rail__panel {
    top: .5rem;
    right: .5rem;
    bottom: .5rem;
    width: calc(100vw - 1rem);
    border-radius: 1.15rem;
  }

  .vm-command-palette__dialog {
    width: calc(100vw - 1rem);
    max-height: calc(100dvh - 1rem);
    margin: .5rem auto 0;
    border-radius: 1.15rem;
  }

  .vm-command-palette__meta,
  .vm-command-palette__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .vm-command-palette__item {
    grid-template-columns: 2.5rem minmax(0, 1fr);
  }

  .vm-command-palette__item-meta {
    display: none;
  }

  body {
    overflow: auto;
    overscroll-behavior-y: none;
    background: #f2f2f7;
    -webkit-font-smoothing: antialiased;
  }
  .erp-sidebar {
    width: min(320px, 86vw);
    transform: translateX(-100%);
    transition: transform .25s cubic-bezier(.4,0,.2,1);
    top: 0;
    box-shadow: 0 22px 48px rgba(10, 24, 48, .28);
  }
  .erp-topbar {
    height: calc(var(--topbar-h) + var(--safe-top));
    padding: calc(var(--safe-top) + .55rem) max(.85rem, var(--safe-right)) .55rem max(.85rem, var(--safe-left));
    background: linear-gradient(180deg, rgba(var(--vm-mobile-chrome-rgb), .97) 0%, rgba(var(--vm-mobile-chrome-alt-rgb), .92) 100%);
    backdrop-filter: blur(18px);
    box-shadow: 0 14px 34px rgba(10, 24, 48, .18);
    gap: .7rem;
    transition: transform .24s cubic-bezier(.22, .61, .36, 1), filter .24s ease, opacity .24s ease;
  }
  .erp-topbar-brand {
    width: 46px;
    height: 46px;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(148, 163, 184, .18);
    box-shadow: 0 8px 20px rgba(10, 24, 48, .12);
    overflow: hidden;
  }
  .erp-topbar-copy {
    flex: 1;
  }
  .erp-topbar .erp-bell {
    position: relative;
    top: auto;
    right: auto;
    align-self: center;
    width: 2.4rem;
    height: 2.4rem;
    border: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
  }
  .erp-topbar .erp-bell .bi {
    font-size: 1.4rem;
    line-height: 1;
  }
  .erp-topbar .erp-bell:hover,
  .erp-topbar .erp-bell:focus-visible {
    background: none;
    box-shadow: none;
  }
  body:has(.vm-mobile-filter-toggle) #erp-mobile-filter-trigger {
    display: flex !important;
  }
  .erp-topbar-logo { height: 28px; }
  .erp-backdrop {
    backdrop-filter: blur(3px);
    background: rgba(10, 24, 48, .42);
  }
  .erp-body {
    padding-left: 0 !important;
    padding-top: calc(var(--topbar-h) + var(--safe-top));
    padding-bottom: calc(var(--bnav-h) + var(--safe-bottom));
    height: auto;
    min-height: 100dvh;
    transform-origin: center top;
    transition: transform .24s cubic-bezier(.22, .61, .36, 1), filter .24s ease, opacity .24s ease;
  }
  .erp-body--no-nav {
    padding-top: 0 !important;
  }
  .erp-main {
    height: auto;
    overflow-y: visible;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 1rem;
  }
  .erp-content-slot {
    gap: 0;
  }
  .erp-content-slot > * {
    min-width: 0;
    width: 100%;
    max-width: none;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .erp-main :is(.container, .container-sm, .container-md, .container-lg, .container-xl, .container-xxl, .container-fluid) {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .erp-main > :is(.px-4, .p-4, .px-3, .p-3),
  .erp-content-slot > :is(.px-4, .p-4, .px-3, .p-3),
  .erp-main .border-bottom.px-4,
  .erp-main .bg-light.px-4,
  .erp-main .bg-white.px-4,
  .erp-main .bg-white.py-2.px-4,
  .erp-main .bg-white.py-3.px-4,
  .erp-main :is(.mx-4, .mx-3, .mx-2, .mx-1) {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  /* Reduce inner wrappers to uniform small padding */
  .erp-main .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .erp-main .p-4:not(.modal-body):not(.offcanvas-body) {
    padding: 1rem !important;
  }
  .erp-main .tab-pane.p-4 {
    padding: 1rem !important;
  }
  .vm-mobile-filter-shell {
    top: 0;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
  }
  .vm-mobile-filter-topbar {
    width: 100%;
    border-radius: 0 !important;
  }
  .vm-mobile-filter-panel,
  .vm-mobile-filter-panel.collapsing {
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 1.1rem 1.1rem 0 0;
  }
  .erp-page-header:not(:empty) {
    display: none !important;
  }
  .erp-bottom-nav {
    height: calc(var(--bnav-h) + var(--safe-bottom));
    padding: 0 var(--safe-right) var(--safe-bottom) var(--safe-left);
    background: linear-gradient(180deg, rgba(var(--vm-mobile-chrome-rgb), .97) 0%, rgba(var(--vm-mobile-chrome-alt-rgb), .92) 100%);
    backdrop-filter: blur(18px);
    box-shadow: 0 -14px 34px rgba(10, 24, 48, .18);
    transition: opacity .18s ease, transform .22s ease;
  }
  body.mobile-menu-open .erp-bottom-nav {
    opacity: 0;
    transform: translateY(1rem);
    pointer-events: none;
  }
  body.mobile-menu-open .erp-topbar,
  body.mobile-menu-open .erp-body {
    transform: scale(.985);
    filter: blur(2px) saturate(.94);
    opacity: .92;
  }
  .erp-bottom-dock {
    width: 100%;
    gap: 0;
    padding: 0;
    border-radius: 0;
    border-color: rgba(147, 197, 253, .16);
    box-shadow: none;
  }
  .erp-bottom-dock-item {
    color: rgba(213, 227, 255, .72);
  }
  .erp-bottom-dock-item:hover,
  .erp-bottom-dock-item:focus-visible {
    color: #eff6ff;
    background: rgba(255, 255, 255, .05);
  }
  .erp-bottom-dock-item.active {
    color: #f8fbff;
    background: linear-gradient(180deg, rgba(37, 99, 235, .32) 0%, rgba(29, 78, 216, .26) 100%);
    box-shadow: inset 0 0 0 1px rgba(147, 197, 253, .18);
  }
  .erp-bottom-dock-item.active::after {
    background: #93c5fd;
    box-shadow: 0 0 0 .16rem rgba(147, 197, 253, .14);
  }
  .erp-mobile-menu-sheet {
    background:
      radial-gradient(circle at top right, rgba(96, 165, 250, .16), transparent 34%),
      radial-gradient(circle at top left, rgba(37, 99, 235, .14), transparent 28%),
      linear-gradient(180deg, rgba(var(--vm-mobile-chrome-rgb), .98) 0%, rgba(var(--vm-mobile-chrome-alt-rgb), .96) 100%);
  }
  .erp-mobile-menu-grid {
    border-top: 1px solid rgba(147, 197, 253, .14);
    border-left: 1px solid rgba(147, 197, 253, .14);
    background: rgba(var(--vm-mobile-chrome-rgb), .36);
  }
  .erp-mobile-menu-item {
    border-right: 1px solid rgba(147, 197, 253, .14);
    border-bottom: 1px solid rgba(147, 197, 253, .14);
    background: rgba(var(--vm-mobile-chrome-alt-rgb), .82);
    color: var(--nav-text);
  }
  .erp-mobile-menu-item:hover,
  .erp-mobile-menu-item:focus-visible {
    border-color: rgba(147, 197, 253, .24);
    background: rgba(30, 64, 175, .26);
    color: #f8fbff;
  }
  .erp-mobile-menu-item.active {
    border-color: rgba(147, 197, 253, .22);
    background: linear-gradient(180deg, rgba(37, 99, 235, .32) 0%, rgba(29, 78, 216, .26) 100%);
    color: #f8fbff;
    box-shadow: inset 0 0 0 1px rgba(147, 197, 253, .18);
  }
  .erp-mobile-menu-item.active::after {
    background: #93c5fd;
    box-shadow: 0 0 0 .2rem rgba(147, 197, 253, .12);
  }
  .erp-mobile-menu-item-icon {
    background: linear-gradient(180deg, rgba(96, 165, 250, .14) 0%, rgba(59, 130, 246, .1) 100%);
  }
  .erp-mobile-menu-item.active .erp-mobile-menu-item-icon {
    background: linear-gradient(180deg, rgba(191, 219, 254, .18) 0%, rgba(147, 197, 253, .2) 100%);
    box-shadow: inset 0 0 0 1px rgba(147, 197, 253, .12);
  }
  .erp-mobile-menu-item-label small {
    color: rgba(213, 227, 255, .72);
  }
  .erp-mobile-menu-item--profile {
    background: rgba(var(--vm-mobile-chrome-alt-rgb), .82);
    border-color: rgba(147, 197, 253, .14);
    color: var(--nav-text);
  }
  .erp-mobile-menu-item--profile .erp-mobile-menu-item-icon {
    background: linear-gradient(180deg, rgba(96, 165, 250, .14) 0%, rgba(59, 130, 246, .1) 100%);
  }
  .erp-mobile-menu-sheet {
    --bs-offcanvas-height: 100dvh;
    height: 100dvh !important;
    max-height: 100dvh !important;
    padding: 0 !important;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-top: 0;
  }
  .erp-mobile-menu-sheet .offcanvas-body {
    padding: 0 !important;
  }
  .erp-mobile-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 0;
  }
  .erp-mobile-menu-section {
    padding: 0;
    gap: 0;
  }
  .erp-mobile-menu-item {
    min-height: 0;
    padding: .75rem .5rem;
    border-radius: 0;
  }
  .erp-mobile-menu-item-icon {
    width: 2.65rem;
    height: 2.65rem;
    border-radius: .9rem;
  }
  .erp-main :is(h1, .h1) {
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color: #1c1c1e;
  }
  .erp-main :is(h2, .h2, .display-6) {
    font-size: 1.32rem;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -.01em;
    color: #1c1c1e;
  }
  .erp-main :is(h3, .h3, h4, .h4) {
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.22;
    color: #1c1c1e;
  }

  /* ── iOS-native buttons ─────────────────────────────────── */
  .erp-main .btn {
    min-height: 50px;
    padding: .78rem 1.1rem;
    border-radius: 12px;
    font-size: .94rem;
    font-weight: 600;
    letter-spacing: -.01em;
    transition: opacity .15s ease, transform .1s ease;
  }
  .erp-main .btn:active {
    opacity: .65;
    transform: scale(.98);
  }
  .erp-main .btn-primary {
    background: #007aff !important;
    border-color: #007aff !important;
  }
  .erp-main .btn-outline-secondary {
    background: rgba(120, 120, 128, .12) !important;
    border-color: transparent !important;
    color: #007aff !important;
  }
  .erp-main .btn-outline-secondary:hover,
  .erp-main .btn-outline-secondary:focus-visible {
    background: rgba(120, 120, 128, .2) !important;
    color: #007aff !important;
  }
  .erp-main .btn-outline-danger {
    background: rgba(255, 59, 48, .1) !important;
    border-color: transparent !important;
    color: #ff3b30 !important;
  }
  .erp-main .btn-success,
  .erp-main .btn-outline-success {
    background: #34c759 !important;
    border-color: #34c759 !important;
    color: #fff !important;
  }
  .erp-main .btn.btn-sm,
  .erp-main .input-group-sm > .btn {
    min-height: 36px;
    padding: .42rem .75rem;
    border-radius: 8px;
    font-size: .84rem;
  }

  /* ── iOS-native form controls ───────────────────────────── */
  .erp-main :is(.form-control, .form-select, .input-group-text) {
    min-height: 44px;
    padding: .62rem .95rem;
    border-radius: 10px;
    border: .5px solid rgba(60, 60, 67, .18);
    background: #fff;
    font-size: .94rem;
    color: #1c1c1e;
    transition: border-color .2s ease, box-shadow .2s ease;
  }
  .erp-main :is(.form-control, .form-select):focus {
    border-color: #007aff;
    box-shadow: 0 0 0 3.5px rgba(0, 122, 255, .15);
  }
  .erp-main :is(.form-control-sm, .form-select-sm),
  .erp-main .input-group-sm > :is(.form-control, .form-select, .input-group-text) {
    min-height: 36px;
    padding: .38rem .72rem;
    border-radius: 8px;
    font-size: .84rem;
  }
  .erp-main .form-control::placeholder {
    color: rgba(60, 60, 67, .3);
  }
  .erp-main .input-group-text {
    background: rgba(120, 120, 128, .06);
    border-color: rgba(60, 60, 67, .18);
    color: #8e8e93;
  }
  .erp-main .input-group {
    border-radius: 10px;
    overflow: hidden;
  }
  .erp-main .input-group > :not(:first-child) {
    border-left: .5px solid rgba(60, 60, 67, .12);
  }
  .erp-main .input-group > .form-control,
  .erp-main .input-group > .form-select,
  .erp-main .input-group > .input-group-text,
  .erp-main .input-group > .btn {
    border-radius: 0 !important;
  }

  /* ── iOS-native form-check (toggle style) ───────────────── */
  .erp-main .form-check-input {
    width: 1.4rem;
    height: 1.4rem;
    border: 2px solid rgba(60, 60, 67, .2);
    border-radius: .36rem;
    background: #fff;
  }
  .erp-main .form-check-input:checked {
    background-color: #007aff;
    border-color: #007aff;
  }
  .erp-main .form-check-input[type="checkbox"]:checked {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
  }
  .erp-main .form-check-label {
    font-size: .94rem;
    color: #1c1c1e;
    padding-top: .08rem;
  }
  .erp-main .form-switch .form-check-input {
    width: 3.1rem;
    height: 1.9rem;
    border-radius: 999px;
    border: 0;
    background-color: rgba(120, 120, 128, .16);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
    background-size: 1.5rem;
    transition: background-color .2s ease, background-position .2s ease;
  }
  .erp-main .form-switch .form-check-input:checked {
    background-color: #34c759;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
  }

  /* ── iOS-native labels/sections ─────────────────────────── */
  .erp-main label:not(.form-check-label):not(.btn) {
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #6e6e73;
    margin-bottom: .35rem;
  }
  .erp-main .form-label {
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #6e6e73;
  }
  .erp-main .text-muted {
    color: #8e8e93 !important;
  }

  /* ── iOS-native alerts ──────────────────────────────────── */
  .erp-main .alert {
    border: 0;
    border-radius: 12px;
    margin-left: 1rem;
    margin-right: 1rem;
    font-size: .88rem;
    font-weight: 500;
  }
  .erp-main .alert-success {
    background: rgba(52, 199, 89, .12);
    color: #248a3d;
  }
  .erp-main .alert-danger {
    background: rgba(255, 59, 48, .12);
    color: #d70015;
  }
  .erp-main .alert-warning {
    background: rgba(255, 149, 0, .12);
    color: #c93400;
  }
  .erp-main .alert-info,
  .erp-main .alert-primary {
    background: rgba(0, 122, 255, .1);
    color: #0040dd;
  }

  /* ── iOS-style nav tabs ─────────────────────────────────── */
  .erp-main .nav-tabs {
    border-bottom: .5px solid rgba(60, 60, 67, .12);
    padding: 0 1rem !important;
    gap: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
  }
  .erp-main .nav-tabs::-webkit-scrollbar {
    display: none;
  }
  .erp-main .nav-tabs .nav-link {
    border: 0;
    border-bottom: 2.5px solid transparent;
    border-radius: 0;
    padding: .72rem .85rem;
    font-size: .84rem;
    font-weight: 600;
    color: #8e8e93;
    white-space: nowrap;
    flex-shrink: 0;
    min-height: auto;
    background: none;
  }
  .erp-main .nav-tabs .nav-link.active {
    color: #007aff;
    border-bottom-color: #007aff;
    background: none;
  }

  /* ── iOS-style list groups ──────────────────────────────── */
  .erp-main .list-group {
    border-radius: 0;
  }
  .erp-main .list-group-item {
    border-left: 0;
    border-right: 0;
    border-color: rgba(60, 60, 67, .12);
    padding: .82rem 1rem;
    font-size: .94rem;
    color: #1c1c1e;
  }
  .erp-main .list-group-item:first-child {
    border-top: 0;
    border-radius: 0;
  }
  .erp-main .list-group-item:last-child {
    border-radius: 0;
  }

  /* ── Flat background surfaces ───────────────────────────── */
  .erp-main .bg-light,
  .erp-main .bg-light-subtle {
    background: #f2f2f7 !important;
  }
  .erp-main .bg-white {
    background: #fff !important;
  }
  .erp-main .border-bottom {
    border-color: rgba(60, 60, 67, .12) !important;
  }
  .erp-main .border {
    border-color: rgba(60, 60, 67, .12) !important;
  }
  /* ── Flatten cards & panels: edge-to-edge, no decoration ── */
  .erp-main .card {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }
  .erp-main .card > .card-body {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .erp-main .table-responsive.rounded-3.border,
  .erp-main .table-responsive.rounded-4.border,
  .erp-main .table-responsive.rounded-3.border.bg-white,
  .erp-main .border.rounded-3.bg-white,
  .erp-main .border.rounded-4.bg-white,
  .erp-main .border.rounded-3,
  .erp-main .border.rounded-4,
  .erp-main .rounded-3.border,
  .erp-main .rounded-4.border {
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    box-shadow: none !important;
  }
  .erp-main .modal-content,
  .erp-main .offcanvas {
    border-radius: 1.2rem !important;
  }
  /* Catch template-specific card/panel classes with inline border-radius */
  .erp-main [class*="summary-card"],
  .erp-main [class*="quote-card"],
  .erp-main [class*="barcode-card"],
  .erp-main [class*="trip-active-card"],
  .erp-main [class*="-card"].border,
  .erp-main .bg-white.border {
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    box-shadow: none !important;
  }
  .erp-main .badge {
    padding: .38em .62em;
    border-radius: 6px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .01em;
  }
  .erp-main .table {
    font-size: .88rem;
    color: #1c1c1e;
  }
  .erp-main .table thead th {
    font-size: .72rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #6e6e73;
    font-weight: 600;
    border-bottom-color: rgba(60, 60, 67, .18);
  }
  .erp-main .table td {
    border-color: rgba(60, 60, 67, .08);
  }
  .modal-dialog {
    max-width: none;
    width: 100vw;
    margin: 0;
  }
  .modal-content {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    border-radius: 0;
    overflow: hidden;
    background: #f2f2f7;
  }
  .modal.fade .modal-dialog {
    transform: translateY(100%);
  }
  .modal.show .modal-dialog {
    transform: translateY(0);
  }
  .offcanvas:not(.erp-mobile-menu-sheet) {
    border-radius: 12px 12px 0 0;
  }
  .offcanvas.offcanvas-bottom:not(.erp-mobile-menu-sheet) {
    --bs-offcanvas-height: min(92dvh, 48rem);
  }
  .offcanvas.offcanvas-start,
  .offcanvas.offcanvas-end {
    width: 100vw;
  }
  .modal-header,
  .offcanvas-header {
    position: sticky;
    top: 0;
    z-index: 4;
    align-items: center;
    gap: .75rem;
    padding: .72rem 1rem !important;
    min-height: 44px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: .5px solid rgba(60, 60, 67, .18) !important;
  }
  .modal-header .modal-title,
  .offcanvas-header .offcanvas-title {
    font-size: .94rem;
    font-weight: 600;
    text-align: center;
    flex: 1;
    color: #1c1c1e;
  }
  .modal-header .btn-close,
  .offcanvas-header .btn-close {
    flex-shrink: 0;
    margin: 0;
    padding: .65rem;
    border-radius: 999px;
    background-color: rgba(120, 120, 128, .12);
    opacity: 1;
  }
  .modal-body,
  .offcanvas-body {
    padding: 1rem !important;
    overscroll-behavior: contain;
    background: #f2f2f7;
  }
  .modal-footer,
  .offcanvas-body > .mt-auto.pt-3.border-top,
  .offcanvas-body > .mt-auto.pt-3.border-top.d-flex,
  .offcanvas-body > .mt-auto.pt-3.border-top.d-flex.justify-content-end {
    position: sticky;
    bottom: 0;
    z-index: 4;
    padding: .72rem 1rem calc(.72rem + var(--safe-bottom)) !important;
    margin-left: -1rem;
    margin-right: -1rem;
    margin-bottom: -1rem;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: .5px solid rgba(60, 60, 67, .18) !important;
    gap: .65rem !important;
    align-items: stretch !important;
  }
  .modal-footer {
    justify-content: stretch;
  }
  .modal-footer .btn,
  .offcanvas-body > .mt-auto.pt-3.border-top .btn {
    flex: 1 1 0;
    width: 100%;
  }
  .modal-footer .btn + .btn,
  .offcanvas-body > .mt-auto.pt-3.border-top .btn + .btn {
    margin-left: 0;
  }
  .modal-body .row,
  .offcanvas-body .row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
  }
  .modal-body .input-group,
  .offcanvas-body .input-group {
    flex-wrap: nowrap;
  }
  .modal-body .d-flex.gap-2,
  .offcanvas-body .d-flex.gap-2,
  .offcanvas-body .d-flex.gap-3 {
    flex-wrap: wrap;
  }
  .modal-body .d-flex.gap-2 > .btn,
  .offcanvas-body .d-flex.gap-2 > .btn,
  .offcanvas-body .d-flex.gap-3 > .btn {
    flex: 1 1 100%;
  }

  .erp-main .table-responsive {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overflow-x: visible;
  }
  .erp-main .table-responsive::-webkit-scrollbar {
    display: none;
  }
  .erp-main .table-responsive > .table {
    margin-bottom: 0;
  }
  .erp-main .table-responsive.vm-mobile-cards-wrap {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    overflow: visible;
  }
  .erp-main table.vm-mobile-cards,
  .erp-main table.vm-mobile-pairs {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
  }
  .erp-main table.vm-mobile-cards thead,
  .erp-main table.vm-mobile-pairs thead,
  .erp-main table.vm-mobile-cards colgroup,
  .erp-main table.vm-mobile-pairs colgroup {
    display: none !important;
  }
  .erp-main table.vm-mobile-cards tbody,
  .erp-main table.vm-mobile-cards tfoot,
  .erp-main table.vm-mobile-pairs tbody,
  .erp-main table.vm-mobile-pairs tfoot {
    display: block;
  }
  .erp-main table.vm-mobile-cards tbody tr,
  .erp-main table.vm-mobile-cards tfoot tr,
  .erp-main table.vm-mobile-pairs tbody tr,
  .erp-main table.vm-mobile-pairs tfoot tr {
    display: block;
    margin-bottom: 0;
    padding: .85rem 1rem;
    border: 0;
    border-bottom: .5px solid rgba(60, 60, 67, .12);
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }
  .erp-main table.vm-mobile-cards tbody tr:last-child,
  .erp-main table.vm-mobile-cards tfoot tr:last-child,
  .erp-main table.vm-mobile-pairs tbody tr:last-child,
  .erp-main table.vm-mobile-pairs tfoot tr:last-child {
    border-bottom: 0;
  }
  .erp-main table.vm-mobile-cards tbody td,
  .erp-main table.vm-mobile-cards tfoot td,
  .erp-main table.vm-mobile-pairs tbody td,
  .erp-main table.vm-mobile-pairs tfoot td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: .52rem 0;
    border: 0;
    background: transparent !important;
    text-align: left !important;
    white-space: normal;
  }
  .erp-main table.vm-mobile-cards tbody td::before,
  .erp-main table.vm-mobile-cards tfoot td::before {
    content: attr(data-cell-label);
    flex: 0 0 38%;
    max-width: 38%;
    font-size: .72rem;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #6e6e73;
    font-weight: 600;
  }
  .erp-main table.vm-mobile-cards tbody td[data-cell-label=""]::before,
  .erp-main table.vm-mobile-cards tfoot td[data-cell-label=""]::before {
    display: none;
  }
  .erp-main table.vm-mobile-cards tbody td > *,
  .erp-main table.vm-mobile-cards tfoot td > *,
  .erp-main table.vm-mobile-pairs tbody td > *,
  .erp-main table.vm-mobile-pairs tfoot td > * {
    min-width: 0;
  }
  .erp-main table.vm-mobile-cards tbody td > :last-child,
  .erp-main table.vm-mobile-cards tfoot td > :last-child,
  .erp-main table.vm-mobile-pairs tbody td > :last-child,
  .erp-main table.vm-mobile-pairs tfoot td > :last-child {
    margin-left: auto;
  }
  .erp-main table.vm-mobile-cards tbody td.text-end,
  .erp-main table.vm-mobile-cards tbody td.value-end,
  .erp-main table.vm-mobile-cards tfoot td.text-end,
  .erp-main table.vm-mobile-cards tfoot td.value-end,
  .erp-main table.vm-mobile-pairs tbody td.text-end,
  .erp-main table.vm-mobile-pairs tbody td.value-end,
  .erp-main table.vm-mobile-pairs tfoot td.text-end,
  .erp-main table.vm-mobile-pairs tfoot td.value-end {
    text-align: left !important;
  }
  .erp-main table.vm-mobile-cards tbody td.font-monospace,
  .erp-main table.vm-mobile-cards tfoot td.font-monospace,
  .erp-main table.vm-mobile-pairs tbody td.font-monospace,
  .erp-main table.vm-mobile-pairs tfoot td.font-monospace {
    word-break: break-word;
  }
  .erp-main table.vm-mobile-cards tbody td .btn,
  .erp-main table.vm-mobile-cards tfoot td .btn,
  .erp-main table.vm-mobile-pairs tbody td .btn,
  .erp-main table.vm-mobile-pairs tfoot td .btn {
    min-height: 42px;
  }

}

@media (min-width: 1200px) {
}

@media (max-width: 420px) {
  .erp-mobile-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 0;
  }
  .erp-mobile-menu-grid--actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .erp-topbar {
    gap: .55rem;
  }
  .erp-topbar-brand {
    width: 2.45rem;
    height: 2.45rem;
  }
  .erp-topbar-kicker,
  .erp-topbar-subtitle {
    display: none;
  }
  .erp-topbar-title {
    font-size: 1.84rem;
  }
  .erp-bottom-dock {
    --erp-bottom-dock-svg-size: 1.86rem;
    --erp-bottom-dock-bi-size: 1.82rem;
    --erp-bottom-dock-menu-size: 2.14rem;
    gap: 0;
    padding: 0;
    border-radius: 0;
  }
  .erp-bottom-dock-item {
    min-height: 3.62rem;
    gap: .34rem;
    padding: .38rem .08rem;
    border-radius: 0;
  }
  #erp-bottom-nav-toggle.erp-bottom-dock-item {
    gap: .16rem;
  }
  .erp-bottom-dock-icon {
    width: auto;
    height: auto;
  }
  .erp-bottom-dock-label {
    font-size: .72rem;
  }
  .modal {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .modal-dialog {
    margin: 0;
  }
  .modal-content {
    border-radius: 0;
    min-height: 100dvh;
  }
  .offcanvas,
  .offcanvas-sm,
  .offcanvas-md,
  .offcanvas-lg,
  .offcanvas-xl,
  .offcanvas-xxl {
    --bs-offcanvas-width: 100vw;
    --bs-offcanvas-height: min(90dvh, 100%);
  }
  .card {
    border-radius: 0;
  }
  body.nav-open {
    overflow: hidden;
  }
}

/* ── Two-panel layout ────────────────────────────────────────── */
.erp-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}
.erp-sidebar-panel {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid #e2e8f0;
  background: #fff;
  overflow: hidden;
}
.erp-content-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
}
@media (max-width: 767.98px) {
  .erp-layout { position: relative; }
  .erp-sidebar-panel { width: 100%; position: absolute; inset: 0; z-index: 2; }
  .erp-content-panel { width: 100%; position: absolute; inset: 0; z-index: 1; background: #fff; transform: translateX(100%); transition: transform .25s; }
  .erp-layout.show-detail .erp-content-panel { transform: translateX(0); z-index: 3; }
}

/* ── SSE Toasts ──────────────────────────────────────────────── */
.erp-toast-container {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 2000;
  display: flex;
  flex-direction: column-reverse;
  gap: .5rem;
  max-width: min(340px, 92vw);
  pointer-events: none;
}
.sse-toast {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #6b7280;
  border-radius: 10px;
  padding: .75rem 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  pointer-events: auto;
  transition: opacity .3s;
}
.sse-toast-icon { flex-shrink: 0; font-size: 1.1rem; margin-top: 1px; }
.sse-toast-body { flex: 1; min-width: 0; }
.sse-toast-title { font-size: .875rem; font-weight: 600; color: #1e293b; }
.sse-toast-msg   { margin-top: 1px; }

@media (max-width: 767.98px) {
  .erp-toast-container {
    left: .75rem;
    right: .75rem;
    bottom: calc(var(--bnav-h) + var(--safe-bottom) + .75rem);
    max-width: none;
  }
}

/* ── Native mobile modal/offcanvas forms (iOS-style) ─────────── */
.vm-m-mobile-only  { display:none; }
.vm-m-hdr-btn {
  display:none; background:none; border:none; color:#007aff;
  font-size:.97rem; padding:.25rem .1rem; cursor:pointer;
}

@media (max-width: 767.98px) {
  /* Toggle desktop / mobile form sections */
  .vm-m-desktop-only { display:none !important; }
  .vm-m-mobile-only  { display:block !important; }

  /* ── Modal → fullscreen with iOS header ────────────────── */
  .vm-m-native .modal-dialog {
    margin:0; max-width:100%; width:100%; height:100%;
  }
  .vm-m-native .modal-content {
    border:0; border-radius:0; height:100%;
    display:flex; flex-direction:column;
  }
  .vm-m-native .modal-header {
    position:sticky; top:0; z-index:10;
    background:#fff;
    border-bottom:1px solid #e5e7eb;
    padding:.75rem 1rem;
    flex-shrink:0;
    display:flex; align-items:center; justify-content:space-between;
  }
  .vm-m-native .modal-header .modal-title,
  .vm-m-native .modal-header .offcanvas-title {
    font-size:1.05rem; flex:1; text-align:center;
    margin:0; order:2;
  }
  /* When title is wrapped in a div (e.g. custModal), centre that wrapper */
  .vm-m-native .modal-header > div {
    flex:1; text-align:center; order:2;
  }
  .vm-m-native .modal-header > div > .modal-title {
    font-size:1.05rem; margin:0;
  }
  .vm-m-native .modal-header .vm-m-hdr-close { display:none; }
  .vm-m-native .modal-header .vm-m-hdr-cancel { order:1; display:block; }
  .vm-m-native .modal-header .vm-m-hdr-save   { order:3; display:block; font-weight:600; }
  .vm-m-native .modal-footer { display:none !important; }
  .vm-m-native .modal-body {
    flex:1; overflow-y:auto; -webkit-overflow-scrolling:touch;
    max-height:none !important;
    padding:1rem;
    background:#f2f2f7;
  }
  /* When using iOS-section layout, remove body padding (sections have their own margins) */
  .vm-m-native .modal-body > .vm-m-mobile-only {
    margin:-1rem;
  }

  /* ── Offcanvas → fullscreen with iOS header ────────────── */
  .vm-m-native.offcanvas {
    width:100% !important; max-width:100%;
  }
  .vm-m-native .offcanvas-header {
    position:sticky; top:0; z-index:10;
    background:#fff;
    border-bottom:1px solid #e5e7eb;
    padding:.75rem 1rem;
    flex-shrink:0;
    display:flex; align-items:center; justify-content:space-between;
  }
  .vm-m-native .offcanvas-header > div {
    flex:1; text-align:center; order:2;
  }
  .vm-m-native .offcanvas-header > .offcanvas-title {
    flex:1; text-align:center; order:2; font-size:1.05rem; margin:0;
  }
  .vm-m-native .offcanvas-header > div > .offcanvas-title {
    font-size:1.05rem; margin:0;
  }
  .vm-m-native .offcanvas-header > div > .small:not(.vm-m-desktop-only) { display:none; }
  .vm-m-native .offcanvas-header .vm-m-hdr-close { display:none; }
  .vm-m-native .offcanvas-header .vm-m-hdr-cancel { order:1; display:block; }
  .vm-m-native .offcanvas-header .vm-m-hdr-save   { order:3; display:block; font-weight:600; }
  /* Hide inline footer action bars — iOS header buttons replace them */
  .vm-m-native .offcanvas-body > .mt-auto.border-top { display:none !important; }
  .vm-m-native .offcanvas-body {
    -webkit-overflow-scrolling:touch;
    padding:1rem;
    background:#f2f2f7;
  }
  /* ── iOS-style grouped form sections ───────────────────── */
  .vm-m-section {
    margin:1rem .85rem 0;
  }
  .vm-m-section:last-child {
    margin-bottom:1rem;
  }
  .vm-m-section-title {
    font-size:.7rem; font-weight:600; letter-spacing:.06em;
    text-transform:uppercase; color:#6b7280;
    padding:0 .5rem .35rem;
  }
  .vm-m-section-card {
    background:#fff;
    border-radius:.85rem;
    overflow:hidden;
  }
  .vm-m-row {
    display:flex; align-items:center;
    padding:.7rem 1rem;
    gap:.75rem;
    min-height:2.85rem;
  }
  .vm-m-row + .vm-m-row {
    border-top:1px solid #e5e7eb;
    margin-left:1rem;
    padding-left:0;
  }
  .vm-m-row label {
    font-size:.88rem; font-weight:500; color:#1c1c1e;
    flex-shrink:0; width:7rem; margin:0;
  }
  .vm-m-row .form-control,
  .vm-m-row .form-select,
  .vm-m-row textarea.form-control {
    border:none; box-shadow:none; background:transparent;
    font-size:.94rem; color:#1c1c1e;
    padding:.25rem 0; height:auto; min-height:0;
    text-align:right; flex:1; min-width:0;
  }
  .vm-m-row .form-select {
    padding-right:1.2rem;
    background-position:right 0 center;
    background-size:.7em;
  }
  .vm-m-row textarea.form-control {
    text-align:left; resize:none;
    padding:.35rem 0;
  }
  .vm-m-row .form-control::placeholder,
  .vm-m-row textarea.form-control::placeholder {
    color:#c7c7cc;
  }
  .vm-m-row .form-control:focus,
  .vm-m-row .form-select:focus,
  .vm-m-row textarea.form-control:focus {
    box-shadow:none;
  }
  .vm-m-row .input-group {
    flex:1; min-width:0;
  }
  .vm-m-row .input-group .form-control {
    text-align:right;
  }
  .vm-m-row .input-group .input-group-text {
    border:none; background:transparent; color:#8e8e93;
    font-size:.82rem; padding:.25rem .35rem;
  }
  .vm-m-row-full {
    flex-direction:column; align-items:stretch; gap:.3rem;
  }
  .vm-m-row-full label {
    width:auto; font-size:.8rem; color:#6b7280;
  }
  .vm-m-row-full textarea.form-control {
    text-align:left;
    background:#f9fafb;
    border-radius:.5rem;
    padding:.5rem .65rem;
    border:1px solid #e5e7eb;
    font-size:.88rem;
  }
  .vm-m-row-full .form-control {
    text-align:left;
    background:#f9fafb;
    border-radius:.5rem;
    padding:.5rem .65rem;
    border:1px solid #e5e7eb;
    font-size:.88rem;
  }
  .vm-m-error {
    margin:.75rem .85rem 0;
    border-radius:.75rem;
  }

  /* ── File upload inside mobile form ────────────────────── */
  .vm-m-section-card .vm-m-file-row {
    padding:.7rem 1rem;
  }
  .vm-m-section-card .vm-m-file-row + .vm-m-row {
    border-top:1px solid #e5e7eb;
  }
  .vm-m-section-card .vm-m-file-row label {
    font-size:.8rem; color:#6b7280; font-weight:500;
    display:block; margin-bottom:.4rem;
  }

  /* ── Autocomplete inside mobile form ───────────────────── */
  .vm-m-row .ac-dd-wrap {
    flex:1; min-width:0; position:relative;
  }
  .vm-m-row .ac-dd-wrap .form-control {
    text-align:right;
  }
  .vm-m-row .ac-dd-wrap .ac-dd {
    text-align:left;
  }
}

/* ── Misc ────────────────────────────────────────────────────── */
:root { scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
