/* ==========================================================================
   SIGMA ENTERPRISE ERP — EXECUTIVE INDUSTRY-GRADE DESIGN SYSTEM
   Mobile, Tablet, Laptop & Desktop Fully Responsive UI Architecture
   Palette: Executive Obsidian (#090e17) + Crisp White (#ffffff) + Precision Teal (#0f766e)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --erp-primary: #0f766e;
  --erp-primary-hover: #115e59;
  --erp-primary-light: #f0fdfa;
  --erp-primary-border: #ccfbf1;
  --erp-primary-ring: rgba(15, 118, 110, 0.16);

  --erp-sidebar-bg: #090e17;
  --erp-sidebar-border: #1a2232;
  --erp-sidebar-hover: rgba(255, 255, 255, 0.08);
  --erp-sidebar-text: #94a3b8;
  --erp-sidebar-text-hover: #ffffff;

  --erp-bg: #f8fafc;
  --erp-surface: #ffffff;
  --erp-surface-alt: #f1f5f9;
  --erp-border: #e2e8f0;
  --erp-border-subtle: #f1f5f9;

  --erp-text-main: #0f172a;
  --erp-text-secondary: #475569;
  --erp-text-muted: #64748b;
  --erp-text-subtle: #94a3b8;

  --erp-radius-xs: 4px;
  --erp-radius-sm: 6px;
  --erp-radius-md: 8px;
  --erp-radius-lg: 12px;

  --erp-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --erp-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.03);
  --erp-shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06);

  --erp-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --erp-font-mono: 'JetBrains Mono', monospace;
  
  --erp-topbar-height: 52px;
  --erp-sidebar-collapsed-w: 60px;
  --erp-sidebar-expanded-w: 240px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-family: var(--erp-font-sans);
  background-color: var(--erp-bg);
  color: var(--erp-text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.012em;
  overflow: hidden;
}

/* Reset unwanted code tag styles */
code {
  color: inherit;
  background-color: transparent;
  padding: 0;
  font-size: inherit;
}

/* ==========================================================================
   1. APP LAYOUT STRUCTURE
   ========================================================================== */

.erp-app-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  position: relative;
}

/* ==========================================================================
   2. COLLAPSIBLE RESPONSIVE SIDEBAR
   ========================================================================== */

.erp-sidebar {
  width: var(--erp-sidebar-collapsed-w);
  min-width: var(--erp-sidebar-collapsed-w);
  background-color: var(--erp-sidebar-bg);
  border-right: 1px solid var(--erp-sidebar-border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 8px 6px;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1050;
  overflow: hidden;
  transition: width 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.25s ease, box-shadow 0.22s ease;
}

@media (min-width: 992px) {
  .erp-sidebar:hover {
    width: var(--erp-sidebar-expanded-w);
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.25);
  }
}

.erp-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
  text-decoration: none;
  overflow: hidden;
  white-space: nowrap;
}

.erp-brand-logo-badge {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--erp-primary);
  border-radius: var(--erp-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.25rem;
}

.erp-brand-text-wrap {
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  pointer-events: none;
}

.erp-sidebar:hover .erp-brand-text-wrap,
.erp-sidebar.mobile-open .erp-brand-text-wrap {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.erp-brand-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.erp-brand-subtitle {
  font-size: 0.65rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.erp-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  padding: 0;
  margin: 0;
  list-style: none;
  overflow-y: auto;
}

.erp-nav-link {
  display: flex;
  align-items: center;
  height: 44px;
  border-radius: var(--erp-radius-sm);
  color: var(--erp-sidebar-text);
  text-decoration: none;
  transition: all 0.15s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.erp-nav-link-icon {
  width: 48px;
  min-width: 48px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--erp-sidebar-text);
  transition: transform 0.15s ease, color 0.15s ease;
}

.erp-nav-link-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--erp-sidebar-text);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  pointer-events: none;
}

.erp-sidebar:hover .erp-nav-link-text,
.erp-sidebar.mobile-open .erp-nav-link-text {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.erp-nav-link:hover {
  background-color: var(--erp-sidebar-hover);
  color: var(--erp-sidebar-text-hover);
  text-decoration: none;
}
.erp-nav-link:hover .erp-nav-link-icon {
  color: #ffffff;
}

.erp-nav-link.active {
  background-color: var(--erp-primary);
  color: #ffffff;
}
.erp-nav-link.active .erp-nav-link-icon {
  color: #ffffff;
}
.erp-nav-link.active .erp-nav-link-text {
  color: #ffffff;
  font-weight: 700;
}

/* Nested Sidebar Sub-navigation */
.erp-sidebar-subnav {
  list-style: none;
  padding: 4px 0 4px 44px;
  margin: 2px 0 6px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  margin-left: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.erp-sidebar:hover .erp-sidebar-subnav,
.erp-sidebar.mobile-open .erp-sidebar-subnav {
  opacity: 1;
  pointer-events: auto;
}

.erp-subnav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 4px;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.14s ease;
  white-space: nowrap;
}

.erp-subnav-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.erp-subnav-link.active {
  color: #ffffff;
  background-color: rgba(15, 118, 110, 0.4);
  font-weight: 700;
}

.erp-subnav-badge {
  font-size: 0.58rem;
  font-weight: 800;
  background: var(--erp-primary);
  color: #ffffff;
  padding: 1px 4px;
  border-radius: 3px;
  margin-left: auto;
}

.erp-sidebar-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 6px;
}

.erp-nav-link-classic {
  opacity: 0.75;
}
.erp-nav-link-classic:hover {
  opacity: 1;
}

/* Mobile Sidebar Backdrop */
.erp-sidebar-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(3px);
  z-index: 1040;
}

@media (max-width: 991.98px) {
  .erp-sidebar {
    width: var(--erp-sidebar-expanded-w);
    transform: translateX(-100%);
  }
  .erp-sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.4);
  }
  .erp-sidebar.mobile-open ~ .erp-sidebar-backdrop {
    display: block;
  }
}

/* ==========================================================================
   3. MAIN CONTENT WRAPPER
   ========================================================================== */

.erp-main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  margin-left: var(--erp-sidebar-collapsed-w);
  overflow: hidden;
  background-color: var(--erp-bg);
  transition: margin-left 0.22s ease;
}

@media (max-width: 991.98px) {
  .erp-main-wrapper {
    margin-left: 0;
  }
}

/* ==========================================================================
   4. FLUID RESPONSIVE TOPBAR
   ========================================================================== */

.erp-topbar {
  height: var(--erp-topbar-height);
  min-height: var(--erp-topbar-height);
  background-color: var(--erp-surface);
  border-bottom: 1px solid var(--erp-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 100;
  gap: 0.75rem;
}

.erp-topbar-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.erp-hamburger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--erp-radius-sm);
  background: transparent;
  border: 1px solid var(--erp-border);
  color: var(--erp-text-main);
  cursor: pointer;
  font-size: 0.95rem;
}

@media (max-width: 991.98px) {
  .erp-hamburger-btn {
    display: inline-flex;
  }
}

.erp-module-badge-icon {
  width: 32px;
  height: 32px;
  background: var(--erp-primary-light);
  color: var(--erp-primary);
  border: 1px solid var(--erp-primary-border);
  border-radius: var(--erp-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.erp-module-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.erp-module-meta-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--erp-text-main);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.erp-module-meta-tag {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--erp-primary);
  background: var(--erp-primary-light);
  border: 1px solid var(--erp-primary-border);
  padding: 1px 5px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .erp-module-meta-tag {
    display: none;
  }
}

/* Center Dynamic Segmented Nav */
.erp-topbar-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.erp-topbar-center::-webkit-scrollbar {
  display: none;
}

.erp-segmented-nav {
  display: inline-flex;
  align-items: center;
  background-color: #f1f5f9;
  padding: 2px;
  border-radius: var(--erp-radius-md);
  gap: 2px;
  white-space: nowrap;
}

.erp-seg-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  transition: all 0.14s ease;
  white-space: nowrap;
}

.erp-seg-item:hover {
  color: var(--erp-text-main);
  background-color: #ffffff;
  text-decoration: none;
}

.erp-seg-item.active {
  background-color: #ffffff;
  color: var(--erp-primary);
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.erp-seg-badge {
  background: var(--erp-primary);
  color: #ffffff;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
}

/* Mobile Sub-Navigation Pill Bar (< 992px) */
.erp-mobile-subnav {
  background: #ffffff;
  border-bottom: 1px solid var(--erp-border);
  padding: 6px 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.erp-mobile-subnav::-webkit-scrollbar {
  display: none;
}

.erp-mobile-subnav-scroll {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.erp-mob-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--erp-text-secondary);
  background: #f1f5f9;
  text-decoration: none;
  transition: all 0.14s ease;
  white-space: nowrap;
}

.erp-mob-nav-item:hover {
  background: #e2e8f0;
  color: var(--erp-text-main);
  text-decoration: none;
}

.erp-mob-nav-item.active {
  background: var(--erp-primary);
  color: #ffffff;
  font-weight: 700;
}

.erp-mob-badge {
  background: rgba(255, 255, 255, 0.25);
  color: inherit;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 10px;
}
.erp-mob-nav-item.active .erp-mob-badge {
  background: #ffffff;
  color: var(--erp-primary);
}

.erp-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.erp-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
}

.erp-status-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10b981;
}

.erp-btn-pill-classic {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--erp-text-muted);
  background: #ffffff;
  border: 1px solid var(--erp-border);
  border-radius: 6px;
  text-decoration: none;
}
.erp-btn-pill-classic:hover {
  color: var(--erp-primary);
  border-color: var(--erp-primary);
  text-decoration: none;
}

/* ==========================================================================
   5. SCROLLABLE PAGE VIEWPORT & EXECUTIVE HEADER
   ========================================================================== */

.erp-page-viewport {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem 1.25rem;
  background-color: var(--erp-bg);
}

@media (max-width: 767.98px) {
  .erp-page-viewport {
    padding: 0.75rem;
  }
}

.erp-page-viewport::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.erp-page-viewport::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 4px;
}

/* Executive Header */
.erp-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.erp-view-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--erp-text-main);
  margin: 0 0 0.1rem 0;
  letter-spacing: -0.02em;
}

.erp-view-meta {
  font-size: 0.75rem;
  color: var(--erp-text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.erp-view-meta strong {
  color: var(--erp-text-main);
}

.dot-sep {
  color: #cbd5e1;
}

/* ==========================================================================
   6. RESPONSIVE SUB-TABS
   ========================================================================== */

.erp-tab-bar {
  display: flex;
  gap: 1.25rem;
  border-bottom: 1px solid var(--erp-border);
  margin-bottom: 0.85rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.erp-tab-bar::-webkit-scrollbar {
  display: none;
}

.erp-tab-btn {
  background: transparent;
  border: none;
  padding: 0.5rem 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--erp-text-muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.14s ease;
  text-decoration: none;
  white-space: nowrap;
}

.erp-tab-btn:hover {
  color: var(--erp-primary);
  text-decoration: none;
}

.erp-tab-btn.active {
  color: var(--erp-primary);
  border-bottom-color: var(--erp-primary);
  font-weight: 700;
}

/* ==========================================================================
   7. CLEAN SINGLE PANEL CONTAINER
   ========================================================================== */

.erp-clean-panel {
  background: var(--erp-surface);
  border: 1px solid var(--erp-border);
  border-radius: var(--erp-radius-md);
  box-shadow: var(--erp-shadow-xs);
  overflow: hidden;
  margin-bottom: 1rem;
}

/* ==========================================================================
   8. ULTRA-PROFESSIONAL UNIFIED FILTER BAR
   ========================================================================== */

.erp-filter-toolbar {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--erp-border-subtle);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.erp-filter-row-primary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.erp-search-box {
  position: relative;
  flex: 1;
  min-width: 200px;
}

@media (max-width: 575.98px) {
  .erp-search-box {
    min-width: 100%;
  }
}

.erp-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--erp-text-muted);
  font-size: 0.8rem;
  pointer-events: none;
}

.erp-search-input {
  width: 100%;
  height: 34px;
  padding: 0 26px 0 30px;
  border: 1px solid var(--erp-border);
  border-radius: var(--erp-radius-sm);
  font-size: 0.82rem;
  color: var(--erp-text-main);
  background: var(--erp-bg);
  transition: all 0.14s ease;
}

.erp-search-input:focus {
  background: #ffffff;
  border-color: var(--erp-primary);
  box-shadow: 0 0 0 2px var(--erp-primary-ring);
  outline: none;
}

.erp-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--erp-text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  display: none;
}

.erp-select-filter {
  height: 34px;
  padding: 0 0.65rem;
  border: 1px solid var(--erp-border);
  border-radius: var(--erp-radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--erp-text-main);
  background: #ffffff;
  outline: none;
  min-width: 140px;
  cursor: pointer;
  transition: border-color 0.14s ease;
}

@media (max-width: 575.98px) {
  .erp-select-filter {
    flex: 1;
    min-width: 120px;
  }
}

.erp-select-filter:focus {
  border-color: var(--erp-primary);
}

/* Quick Filter Chip Group */
.erp-chip-group {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.erp-chip-group::-webkit-scrollbar {
  display: none;
}

.erp-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--erp-text-secondary);
  background: #f1f5f9;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.14s ease;
  white-space: nowrap;
}

.erp-filter-chip:hover {
  background: #e2e8f0;
  color: var(--erp-text-main);
}

.erp-filter-chip.active {
  background: var(--erp-primary);
  color: #ffffff;
}

.erp-filter-chip .chip-count {
  font-size: 0.65rem;
  font-weight: 700;
  opacity: 0.85;
}

/* ==========================================================================
   9. HIGH-DENSITY RESPONSIVE DATA TABLE
   ========================================================================== */

.erp-table-wrap {
  width: 100%;
  overflow-x: auto;
  background: #ffffff;
}

.erp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin: 0;
}

.erp-table thead th {
  background-color: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 7px 10px;
  border-bottom: 1px solid var(--erp-border);
  border-top: none;
  text-align: left;
  white-space: nowrap;
  user-select: none;
  position: sticky;
  top: 0;
  z-index: 10;
}

.erp-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.12s ease;
}

.erp-table tbody tr:hover {
  background-color: #f8fafc;
}

.erp-table td {
  padding: 8px 10px;
  vertical-align: middle;
  color: var(--erp-text-main);
  border: none;
}

/* SKU Badge */
.sku-badge {
  font-family: var(--erp-font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: #0f172a;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* Status Badges */
.badge-status-active {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  padding: 2px 6px;
  border-radius: 4px;
}

.badge-classification {
  font-size: 0.7rem;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.erp-table-footer {
  padding: 0.5rem 0.85rem;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--erp-text-muted);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ==========================================================================
   10. FORM CONTROLS & ERGONOMICS
   ========================================================================== */

.erp-form-section-header {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--erp-text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.erp-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--erp-text-secondary);
  margin-bottom: 0.25rem;
  display: block;
}

.erp-input {
  height: 34px;
  border: 1px solid var(--erp-border);
  border-radius: var(--erp-radius-sm);
  padding: 0 0.65rem;
  font-size: 0.82rem;
  color: var(--erp-text-main);
  background: #ffffff;
  width: 100%;
  outline: none;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.erp-input:focus {
  border-color: var(--erp-primary);
  box-shadow: 0 0 0 2px var(--erp-primary-ring);
}

/* Buttons */
.btn-erp-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 32px;
  padding: 0 11px;
  background-color: var(--erp-primary);
  color: #ffffff;
  border: 1px solid var(--erp-primary);
  border-radius: var(--erp-radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-erp-primary:hover {
  background-color: var(--erp-primary-hover);
  color: #ffffff;
  text-decoration: none;
}

.btn-erp-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 32px;
  padding: 0 9px;
  background-color: #ffffff;
  color: var(--erp-text-secondary);
  border: 1px solid var(--erp-border);
  border-radius: var(--erp-radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-erp-secondary:hover {
  background-color: #f8fafc;
  color: var(--erp-text-main);
  border-color: #cbd5e1;
  text-decoration: none;
}

/* Sticky Action Card */
.erp-sticky-console {
  position: sticky;
  top: 1rem;
}

/* Drawer / Modal */
.erp-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(2px);
  z-index: 2000;
  display: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.erp-drawer-overlay.open {
  display: flex;
  opacity: 1;
  justify-content: flex-end;
}

.erp-drawer {
  width: 460px;
  max-width: 95vw;
  background: #ffffff;
  height: 100%;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}

.erp-drawer-header {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--erp-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.erp-drawer-body {
  padding: 1.15rem;
  overflow-y: auto;
  flex: 1;
}

.erp-drawer-footer {
  padding: 0.75rem 1.15rem;
  border-top: 1px solid var(--erp-border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
