:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --split-border: #d9e2ee;
  --split-ink: #13213a;
  --split-muted: #64748b;
  --split-blue: #086bd8;
  --split-soft: #f6f9fc;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; color: var(--split-ink); background: #fff; font-size: 12px; }
button, input, select, textarea { font: inherit; }
button, a, select { touch-action: manipulation; }
button:not(:disabled), a, select { cursor: pointer; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.split-header {
  position: relative;
  z-index: 70;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-bottom: 1px solid var(--split-border);
  background: rgb(255 255 255 / 96%);
}
.split-brand { min-width: 220px; display: flex; align-items: center; gap: 9px; color: inherit; text-decoration: none; }
.split-brand img { width: 66px; height: 34px; object-fit: contain; }
.split-brand span { min-width: 0; display: grid; gap: 2px; }
.split-brand b { font-size: 14px; line-height: 1.1; white-space: nowrap; }
.split-brand small { color: var(--split-muted); font-size: 8px; line-height: 1.2; white-space: nowrap; }
.split-search { flex: 1 1 420px; max-width: 620px; }
.split-search input { width: 100%; height: 34px; padding: 0 10px; border: 1px solid var(--split-border); border-radius: 6px; color: var(--split-ink); background: #fff; outline: 0; }
.split-search input:focus { border-color: #75afea; box-shadow: 0 0 0 3px rgb(8 107 216 / 10%); }
.version-switch, .language-switch { flex: 0 0 auto; display: inline-flex; align-items: center; padding: 2px; border: 1px solid var(--split-border); border-radius: 6px; background: var(--split-soft); }
.version-switch a, .language-switch button { min-height: 28px; display: inline-flex; align-items: center; justify-content: center; padding: 0 9px; border: 0; border-radius: 4px; color: #53637a; background: transparent; font-size: 9px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.version-switch a.active, .language-switch button.active { color: var(--split-ink); background: #fff; box-shadow: 0 1px 3px rgb(24 31 42 / 12%); }
.header-command { flex: 0 0 auto; min-height: 32px; padding: 0 10px; border: 1px solid var(--split-border); border-radius: 6px; color: #30445f; background: #fff; font-size: 9px; font-weight: 800; }
.header-command:hover, .header-command:focus-visible { border-color: #9bbce0; background: #f6faff; }
.operator-badge { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.operator-badge span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--split-blue); font-size: 9px; font-weight: 850; }
.operator-badge b { font-size: 9px; }
.classic-header { position: sticky; top: 0; }
.classic-header .split-brand { min-width: 245px; }

.erp-only .erp-ops { height: calc(100vh - 58px); min-height: 560px; }
.erp-only .erp-project { min-height: calc(100vh - 58px); }
.erp-only .erp-copilot[data-mode="full"] { inset: 58px 0 0; }
.erp-only .erp-ops-heading { min-height: 58px; padding-block: 7px; }
.erp-only .erp-ops-heading h1 { margin: 2px 0 1px; font-size: 17px; }
.erp-only .erp-stage-views { min-height: 36px; }
.erp-only .erp-queue-toolbar { min-height: 38px; padding-block: 3px; }
.erp-only .erp-search input, .erp-only .erp-filter-toggle { height: 30px; }
.erp-only .erp-bulk-bar { min-height: 34px; padding-block: 3px; }
.erp-only .erp-bulk-bar button { min-height: 27px; }
.erp-only .erp-quote-table th { height: 32px; }
.erp-only .erp-quote-table td { height: 35px; }
.erp-only .erp-queue-inspector > header { min-height: 68px; padding-top: 11px; }
.erp-only .erp-queue-inspector > header button { min-width: 34px; white-space: nowrap; }
.erp-only .erp-button { min-height: 30px; padding-inline: 10px; }
.erp-only .erp-project-header { min-height: 62px; }
.erp-only .erp-project-lifecycle { min-height: 48px; }
.compact-selection > span { margin-left: auto; }
.quotation-source { margin-bottom: 8px; }

.classic-only #erpOpsWorkspace,
.classic-only #erpQuoteProject,
.classic-only #erpRfqDialog,
.classic-only #providerSettingsModal { display: none !important; }
.classic-only .queue-shell { height: calc(100vh - 58px); }
.classic-only .workbench-workspace { min-height: calc(100vh - 58px); }

@media (max-width: 1100px) {
  .split-header { flex-wrap: wrap; }
  .split-brand { min-width: 190px; }
  .split-search { order: 5; flex-basis: 100%; max-width: none; }
  .erp-only .erp-ops { height: calc(100vh - 100px); }
  .erp-only .erp-copilot[data-mode="full"] { inset: 100px 0 0; }
}

@media (max-width: 760px) {
  .split-header { gap: 6px; padding: 6px 8px; }
  .split-brand { flex: 1 1 auto; min-width: 0; }
  .split-brand img { width: 52px; }
  .split-brand small, .operator-badge b, .ai-settings-trigger { display: none; }
  .version-switch a, .language-switch button { padding-inline: 7px; }
  .erp-only .erp-ops { height: auto; min-height: calc(100vh - 98px); }
}
