/* ============================================================
   ribbon.css — ERP Button Area & Ribbon Component
   Implements 4 distinct styles:
     A. Classic Tabbed Ribbon (Office-style tabbed & grouped)
     B. Compact Command Bar (Single horizontal row with overflow)
     C. Workflow-Aware Ribbon (Stage stepper + next primary action)
     D. Floating Action Dock (Right-side vertical tag & dock + Ctrl+K search)
   Each with 3 states: Expanded, Collapsed, Minimized.
   ============================================================ */

#erp-ribbon-container:empty {
  display: none;
}

.erp-ribbon-wrapper {
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 45;
  width: 100%;
  font-family: var(--font, Inter, "Segoe UI", sans-serif);
}

/* Dock style collapses the top grid row to 0 height so main takes full height */
.erp-ribbon-wrapper.erp-ribbon--dock {
  height: 0;
  min-height: 0;
  overflow: visible;
  border: 0;
}

#erp-ribbon-container:has(.erp-ribbon--dock),
#erp-ribbon-container.has-dock {
  height: 0 !important;
  min-height: 0 !important;
  background: transparent !important;
  border: 0 !important;
  overflow: visible !important;
}

/* Base Ribbon Container attached directly under Topbar */
.erp-ribbon-card {
  background: var(--toolbar-bg, var(--panel, #ffffff));
  border: 0;
  border-bottom: 1px solid var(--toolbar-border, var(--line, #d5dce6));
  border-radius: 0;
  box-shadow: var(--shadow, 0 1px 3px rgba(27, 42, 65, 0.04));
  overflow: visible;
  color: var(--toolbar-text, var(--text, #1b2a41));
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.erp-ribbon-flex {
  display: flex;
  align-items: center;
}

.erp-ribbon-spacer {
  flex: 1;
}

/* Controls & Buttons inside Ribbon */
.erp-ribbon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: var(--r, 6px);
  color: var(--toolbar-text, var(--text, #1b2a41));
  font: 500 12px var(--font, Inter, sans-serif);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
  user-select: none;
}

.erp-ribbon-btn:hover:not(:disabled) {
  background-color: var(--hover, #f0f4f8);
  color: var(--accent, #0b6573);
}

.erp-ribbon-btn:active:not(:disabled) {
  transform: scale(0.97);
}

.erp-ribbon-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Vertical Button in Classic style */
.erp-ribbon-btn--vertical {
  flex-direction: column;
  gap: 5px;
  min-width: 58px;
  padding: 8px 6px;
}

/* Horizontal Button in Compact & Workflow style */
.erp-ribbon-btn--horizontal {
  flex-direction: row;
  gap: 7px;
  min-width: 0;
  padding: 8px 12px;
}

/* ==========================================================================
   Icon-Only Ribbon Mode (Show only icons, reveal text on hover)
   ========================================================================== */
.erp-ribbon-wrapper.is-icon-only .erp-ribbon-btn > span,
.erp-ribbon-wrapper.is-icon-only .erp-ribbon-btn > span.label {
  display: none !important;
}

.erp-ribbon-wrapper.is-icon-only .erp-ribbon-btn--vertical {
  flex-direction: row;
  min-width: 36px;
  width: 36px;
  height: 36px;
  padding: 6px;
  gap: 0;
}

.erp-ribbon-wrapper.is-icon-only .erp-ribbon-btn--horizontal {
  min-width: 34px;
  width: 34px;
  height: 34px;
  padding: 6px;
  gap: 0;
}

.erp-ribbon-wrapper.is-icon-only .erp-ribbon-btn svg,
.erp-ribbon-wrapper.is-icon-only .erp-ribbon-btn .erp-ribbon-icon {
  width: 20px;
  height: 20px;
}

.erp-ribbon-wrapper.is-icon-only .erp-ribbon-group {
  padding: 3px 6px;
}

/* Tooltip on hover for ribbon icon buttons */
.erp-ribbon-btn[data-tooltip] {
  position: relative;
}

.erp-ribbon-btn[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-2px);
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--tooltip-bg, #0f172a);
  color: var(--tooltip-text, #f8fafc);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.14s ease, transform 0.14s ease;
  z-index: 10000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  line-height: 1.2;
}

.erp-ribbon-btn[data-tooltip]::after {
  content: '';
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-bottom-color: var(--tooltip-bg, #0f172a);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.14s ease;
  pointer-events: none;
  z-index: 10000;
}

.erp-ribbon-btn[data-tooltip]:hover:not(:disabled)::before,
.erp-ribbon-btn[data-tooltip]:hover:not(:disabled)::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Primary Highlight Action */
.erp-ribbon-btn--primary {
  background: var(--accent, #0b6573) !important;
  color: var(--accent-t, #ffffff) !important;
  font-weight: 600;
  box-shadow: 0 2px 6px color-mix(in srgb, var(--accent, #0b6573) 30%, transparent);
}

.erp-ribbon-btn--primary:hover:not(:disabled) {
  filter: brightness(1.1);
  background: var(--accent, #084e59) !important;
  color: var(--accent-t, #ffffff) !important;
}

.erp-ribbon-btn--primary svg,
.erp-ribbon-btn--primary .erp-ribbon-icon {
  stroke: var(--accent-t, #ffffff);
}

/* Locked / Later-stage Button */
.erp-ribbon-btn--locked {
  color: var(--muted, #5b6b7f);
  border: 1px dashed var(--line, #c3ccd8);
  background: var(--panel2, #fafbfc);
  cursor: not-allowed;
  opacity: 0.65;
}

.erp-ribbon-btn--locked:hover {
  background: var(--panel2, #fafbfc);
  color: var(--muted, #5b6b7f);
}

/* Small Control Pill Buttons (Collapse, Expand, Switcher) */
.erp-ribbon-ctrl {
  font: 500 12px var(--font, Inter, sans-serif);
  color: var(--toolbar-text, var(--accent, #0b6573));
  background: var(--panel2, #f7fafb);
  border: 1px solid var(--line, #bfd9dd);
  border-radius: var(--r, 6px);
  padding: 4px 10px;
  margin: 3px 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.erp-ribbon-ctrl:hover {
  background: var(--hover, #ebf5f7);
  border-color: var(--accent, #0b6573);
  color: var(--accent, #0b6573);
}

/* Standard SVG icon wrapper */
.erp-ribbon-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}

/* Dividers */
.erp-ribbon-divider {
  width: 1px;
  height: 24px;
  background: var(--line, #e3e8ef);
  margin: 0 8px;
  flex-shrink: 0;
}

/* ==========================================================================
   STYLE A: CLASSIC TABBED RIBBON
   ========================================================================== */
.erp-ribbon--classic .erp-ribbon-tabs {
  display: flex;
  align-items: center;
  padding: 0 18px;
  background: var(--toolbar-bg, var(--panel2, #fafbfc));
  border-bottom: 1px solid var(--toolbar-border, var(--line, #e3e8ef));
}

.erp-ribbon-tab {
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 500;
  color: var(--toolbar-text, var(--muted, #33465c));
  cursor: pointer;
  user-select: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.erp-ribbon-tab:hover {
  color: var(--accent, #0b6573);
}

.erp-ribbon-tab.is-active {
  color: var(--accent, #0b6573);
  font-weight: 600;
  border-bottom-color: var(--accent, #0b6573);
  background: var(--panel, #ffffff);
}

.erp-ribbon-hint {
  font-size: 11px;
  color: var(--muted, #5b6b7f);
  margin-right: 8px;
}

.erp-ribbon-group {
  padding: 6px 10px 4px;
  border-right: 1px solid var(--line, #e3e8ef);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.erp-ribbon-group:last-child {
  border-right: none;
}

.erp-ribbon-group-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted, #6c7c90);
  padding-top: 3px;
  text-align: center;
}

.erp-ribbon--classic.is-minimized .erp-ribbon-card {
  height: 32px;
  padding: 0 18px;
}

.erp-ribbon--classic.is-minimized .erp-ribbon-tabs {
  border-bottom: none;
  padding: 0;
}

/* ==========================================================================
   STYLE B: COMPACT COMMAND BAR
   ========================================================================== */
.erp-ribbon--compact .erp-ribbon-card {
  padding: 4px 18px;
}

.erp-ribbon--compact.is-collapsed .erp-ribbon-btn--horizontal span.label {
  display: none;
}

.erp-ribbon--compact.is-collapsed .erp-ribbon-btn--horizontal {
  padding: 8px 9px;
}

.erp-ribbon--compact.is-minimized .erp-ribbon-card {
  height: 36px;
  padding: 0 18px;
}

.erp-ribbon-screen-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--toolbar-text, var(--text, #1b2a41));
  display: flex;
  align-items: center;
  gap: 8px;
}

.erp-ribbon-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent, #0f9d8f);
}

/* ==========================================================================
   STYLE C: WORKFLOW-AWARE RIBBON
   ========================================================================== */
.erp-ribbon--workflow .erp-ribbon-stepper {
  padding: 8px 18px;
  background: var(--toolbar-bg, var(--panel2, #fafbfc));
  border-bottom: 1px solid var(--toolbar-border, var(--line, #e3e8ef));
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
}

.erp-ribbon-chip {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: var(--panel2, #e9eef4);
  color: var(--text, #33465c);
  border: 1px solid var(--line, transparent);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.erp-ribbon-chip.is-active {
  background: var(--accent, #0b6573);
  color: var(--accent-t, #ffffff);
  font-weight: 600;
  box-shadow: 0 1px 4px color-mix(in srgb, var(--accent, #0b6573) 30%, transparent);
}

.erp-ribbon-arrow {
  color: var(--muted, #8b98a7);
  font-size: 11px;
  padding: 0 4px;
  user-select: none;
}

.erp-ribbon-workflow-content {
  padding: 6px 18px;
}

.erp-ribbon-unlocks-label {
  font-size: 11px;
  color: var(--muted, #5b6b7f);
  margin-right: 6px;
  font-style: italic;
}

.erp-ribbon--workflow.is-collapsed .erp-ribbon-stepper {
  border-bottom: none;
  padding: 5px 12px;
}

.erp-ribbon--workflow.is-minimized .erp-ribbon-card {
  height: 36px;
  padding: 0 18px;
}

/* ==========================================================================
   STYLE D: FLOATING ACTION DOCK (RIGHT-SIDE DOCK & VERTICAL TAG)
   ========================================================================== */
.erp-ribbon--dock {
  position: fixed;
  right: 0;
  left: auto;
  bottom: auto;
  z-index: 990;
  margin: 0;
  pointer-events: none;
  transition: top 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Position: Middle (default, vertically centered on right screen edge) */
.erp-ribbon--dock.pos-middle {
  top: 50%;
  transform: translateY(-50%);
}

/* Position: Upper Corner (right edge, below topbar) */
.erp-ribbon--dock.pos-upper {
  top: 72px;
  transform: none;
}

/* Minimized / Collapsed: Vertical Small Tag attached to right edge */
.erp-ribbon-dock-tag-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: auto;
}

.erp-ribbon-dock-tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--toolbar-bg, var(--sidebar-bg, #1b2a41));
  color: var(--toolbar-text, var(--sidebar-text, #ffffff));
  border: 1px solid var(--toolbar-border, rgba(255, 255, 255, 0.2));
  border-right: none;
  border-radius: 9px 0 0 9px;
  padding: 12px 7px 10px;
  cursor: pointer;
  box-shadow: -4px 0 18px rgba(16, 30, 54, 0.35);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  font-family: inherit;
}

.erp-ribbon-dock-tag:hover {
  background: var(--hover, #233754);
  padding-left: 10px;
  box-shadow: -6px 0 22px rgba(16, 30, 54, 0.45);
}

.dock-tag-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent, #f7c948);
  margin-bottom: 6px;
}

.dock-tag-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 700;
  color: var(--toolbar-text, #ffffff);
  line-height: 1;
}

.dock-tag-chevron {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent, #8fd3dd);
  margin-top: 6px;
  line-height: 1;
  transition: transform 0.15s ease;
}

.erp-ribbon-dock-tag:hover .dock-tag-chevron {
  transform: translateX(-3px);
}

.erp-ribbon-dock-tag-cog {
  width: 24px;
  height: 24px;
  margin-top: 5px;
  margin-right: 2px;
  background: var(--toolbar-bg, var(--sidebar-bg, #1b2a41));
  border: 1px solid var(--toolbar-border, rgba(255, 255, 255, 0.2));
  border-radius: 50%;
  color: var(--accent, #8fd3dd);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(16, 30, 54, 0.3);
  transition: transform 0.2s ease, background 0.15s ease;
}

.erp-ribbon-dock-tag-cog:hover {
  transform: rotate(60deg);
  background: var(--hover, #233754);
  color: var(--toolbar-text, #ffffff);
}

/* Expanded: Floating Action Dock Card */
.erp-ribbon-dock-card {
  width: 250px;
  background: var(--toolbar-bg, var(--sidebar-bg, #1b2a41));
  color: var(--toolbar-text, var(--sidebar-text, #ffffff));
  border-radius: 12px;
  box-shadow: -4px 12px 36px rgba(16, 30, 54, 0.42), 0 0 0 1px var(--toolbar-border, rgba(255, 255, 255, 0.12));
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-right: 14px;
  pointer-events: auto;
  animation: erpDockSlideIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes erpDockSlideIn {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.erp-ribbon-dock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dock-header-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-transform: uppercase;
}

.dock-badge-icon {
  color: #f7c948;
}

.dock-header-tools {
  display: flex;
  align-items: center;
  gap: 5px;
}

.dock-tool-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #8fd3dd;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.dock-tool-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.erp-ribbon-dock-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.erp-ribbon-dock-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.erp-ribbon-dock-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.22);
  color: #8fd3dd;
}

.erp-ribbon-dock-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.erp-ribbon-dock-btn .erp-ribbon-icon {
  width: 15px;
  height: 15px;
  stroke: #8fd3dd;
  flex-shrink: 0;
}

.erp-ribbon-dock-search {
  font-size: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: background 0.15s;
  user-select: none;
}

.erp-ribbon-dock-search:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.2);
}

.erp-ribbon-dock-search .erp-ribbon-icon {
  width: 14px;
  height: 14px;
  stroke: #8fd3dd;
}

.erp-ribbon-dock-search kbd {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-family: inherit;
  color: #b0c4de;
}

.erp-ribbon-dock-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.erp-ribbon-dock-footer .erp-ribbon-dropdown-wrapper {
  width: 100%;
}

.erp-ribbon-dock-footer .erp-ribbon-ctrl {
  width: 100%;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 6px 10px;
  color: #b0c4de;
}

.erp-ribbon-dock-footer .erp-ribbon-ctrl:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.erp-ribbon-dock-footer .erp-ribbon-dropdown-menu {
  bottom: 100%;
  top: auto;
  margin-bottom: 6px;
  right: 0;
  width: 250px;
}

.erp-ribbon--dock.pos-upper .erp-ribbon-dock-footer .erp-ribbon-dropdown-menu {
  bottom: auto;
  top: 100%;
  margin-top: 6px;
}

/* Style Dropdown menu inside tag mode */
.erp-ribbon-dock-tag-wrapper .erp-ribbon-dropdown-menu {
  right: 0;
  top: auto;
  bottom: 100%;
  margin-bottom: 6px;
  width: 260px;
}

.erp-ribbon--dock.pos-upper .erp-ribbon-dock-tag-wrapper .erp-ribbon-dropdown-menu {
  top: 100%;
  bottom: auto;
  margin-top: 6px;
}

/* ==========================================================================
   STYLE SELECTOR & OVERFLOW DROPDOWN
   ========================================================================== */
.erp-ribbon-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.erp-ribbon-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  background: var(--panel, #ffffff);
  border: 1px solid var(--line, #d5dce6);
  border-radius: var(--r, 8px);
  box-shadow: var(--shadow, 0 10px 30px rgba(16, 30, 54, 0.15));
  min-width: 220px;
  padding: 6px 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.erp-ribbon-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text, #1b2a41);
  background: none;
  border: none;
  text-align: left;
  width: 100%;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.erp-ribbon-dropdown-item:hover {
  background: var(--hover, #f0f4f8);
  color: var(--accent, #0b6573);
}

.erp-ribbon-dropdown-item.is-selected {
  font-weight: 600;
  color: var(--accent, #0b6573);
  background: var(--hover, #edf5f6);
}

.erp-ribbon-dropdown-header {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted, #8b98a7);
  padding: 6px 16px 4px;
}

/* ==========================================================================
   COMMAND SEARCH PALETTE (Ctrl+K)
   ========================================================================== */
.erp-command-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 30, 54, 0.5);
  backdrop-filter: blur(3px);
  z-index: 1500;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  animation: erpFadeIn 0.15s ease-out;
}

.erp-command-dialog {
  background: var(--panel, #ffffff);
  border-radius: var(--r, 12px);
  width: 580px;
  max-width: 90vw;
  box-shadow: var(--shadow, 0 20px 50px rgba(16, 30, 54, 0.3));
  overflow: hidden;
  border: 1px solid var(--line, #d5dce6);
  color: var(--text);
}

.erp-command-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line, #e3e8ef);
  background: var(--panel);
}

.erp-command-input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 15px;
  font-family: inherit;
  color: var(--text, #1b2a41);
  background: transparent;
}

.erp-command-list {
  max-height: 340px;
  overflow-y: auto;
  padding: 6px 0;
}

.erp-command-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  cursor: pointer;
  font-size: 13px;
  color: #1b2a41;
  transition: background 0.1s;
}

.erp-command-item:hover,
.erp-command-item.is-selected {
  background: #f0f5f7;
  color: #0b6573;
}

.erp-command-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.erp-command-badge {
  font-size: 11px;
  background: #e9eef4;
  color: #5b6b7f;
  padding: 2px 8px;
  border-radius: 4px;
}

.erp-command-footer {
  padding: 8px 18px;
  background: #fafbfc;
  border-top: 1px solid #e3e8ef;
  font-size: 11px;
  color: #6c7c90;
  display: flex;
  gap: 16px;
}

@keyframes erpFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   Dedicated 1-Row Menu Path Strip (Sticking to Ribbon Bar)
   Reserved row for menu path navigation (Height: increased by 3px above & 3px below: 18px to 22px)
   ========================================================================== */
.erp-menu-path-strip {
  display: flex;
  align-items: center;
  height: 20px;
  min-height: 18px;
  max-height: 22px;
  line-height: 14px;
  box-sizing: border-box;
  padding: 3px 16px;
  margin: 0;
  width: 100%;
  background: var(--menupath-bg, var(--primary, #1f5fbf));
  border-top: 1px solid var(--menupath-border, color-mix(in srgb, var(--primary, #1f5fbf) 82%, black));
  border-bottom: 1px solid var(--menupath-border, color-mix(in srgb, var(--primary, #1f5fbf) 82%, black));
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
  font-family: var(--font, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  font-size: 11px;
  color: var(--menupath-text, var(--accent-t, #ffffff));
  letter-spacing: 0.01em;
  z-index: 44;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.erp-menu-path-inner {
  display: inline-flex;
  align-items: center;
  height: 100%;
  line-height: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  gap: 0;
}

.erp-menu-path-item {
  color: var(--menupath-text, var(--accent-t, #ffffff));
  text-decoration: none;
  font-size: 11px;
  line-height: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  opacity: 0.92;
  transition: opacity 0.12s ease, color 0.12s ease;
}

a.erp-menu-path-item:hover {
  color: var(--menupath-hover, var(--accent-t, #ffffff));
  text-decoration: underline;
  opacity: 1;
  cursor: pointer;
}

.erp-menu-path-item.is-current {
  color: var(--menupath-current, var(--accent-t, #ffffff));
  font-weight: 700;
  opacity: 1;
}

.erp-menu-path-sep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 6px;
  opacity: 0.7;
  font-size: 10px;
  line-height: 14px;
  color: var(--menupath-sep, var(--accent-t, #ffffff));
  user-select: none;
}


