:root {
  --orion-night: #040812;
  --orion-ink: #07111f;
  --orion-panel: #0c1828;
  --orion-blue: #118cff;
  --orion-blue-2: #61b5ff;
  --orion-steel: #dce8f7;
  --orion-chrome: #f7fbff;
  --orion-line: rgba(111, 151, 196, 0.2);
  --orion-line-strong: rgba(125, 190, 255, 0.38);
  --orion-green: #15a67a;
  --orion-amber: #c98221;
  --orion-red: #c64444;
  --orion-shadow: 0 14px 36px rgba(6, 18, 34, 0.12);
}

.login-shell {
  background:
    linear-gradient(90deg, rgba(17, 140, 255, 0.11) 1px, transparent 1px),
    linear-gradient(0deg, rgba(220, 232, 247, 0.08) 1px, transparent 1px),
    linear-gradient(145deg, #02050c 0%, #07162b 52%, #0a2747 100%);
  background-size: 52px 52px, 52px 52px, auto;
}

.login-panel.card {
  border-color: rgba(125, 190, 255, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(9, 22, 38, 0.96), rgba(3, 7, 15, 0.98));
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.login-panel img {
  width: min(360px, 82vw);
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 0 20px rgba(17, 140, 255, 0.34));
}

.orion-enterprise-os.app-shell {
  min-height: 100vh;
  color: #142033;
  background:
    linear-gradient(90deg, rgba(17, 140, 255, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(6, 18, 34, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #07111f 0, #091a2f 84px, #eef3f8 84px, #f7f9fc 100%);
  background-size: 56px 56px, 56px 56px, auto;
}

.orion-enterprise-os .topbar {
  grid-template-columns: minmax(360px, 0.82fr) minmax(320px, 1fr) minmax(240px, auto);
  gap: 12px;
  min-height: 84px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(125, 190, 255, 0.32);
  background:
    linear-gradient(180deg, rgba(10, 24, 42, 0.98), rgba(3, 7, 15, 0.98)),
    var(--orion-night);
  box-shadow: 0 12px 30px rgba(2, 7, 15, 0.24);
}

.orion-enterprise-os .topbar::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(17, 140, 255, 0.9), rgba(247, 251, 255, 0.66), transparent);
  pointer-events: none;
}

.orion-enterprise-os .topbar .brand-lockup {
  display: grid !important;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.orion-enterprise-os .topbar .brand-logo-frame {
  position: relative !important;
  flex: 0 0 148px !important;
  width: 148px !important;
  height: 62px !important;
  min-width: 148px !important;
  min-height: 62px !important;
  grid-column: 1;
  grid-row: 1;
  overflow: hidden !important;
  border-color: rgba(125, 190, 255, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    #02050c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 24px rgba(17, 140, 255, 0.18);
}

.orion-enterprise-os .topbar .brand-logo-frame .brand-logo,
.orion-enterprise-os .topbar .brand-lockup img.brand-logo {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  padding: 4px 8px !important;
  border: 0 !important;
  border-radius: inherit !important;
  background: transparent !important;
  box-shadow: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  box-sizing: border-box !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.orion-enterprise-os .topbar .brand-copy {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  overflow: hidden;
}

.orion-enterprise-os .topbar .brand-copy h1 {
  overflow: hidden;
  color: #ffffff;
  font-size: 19px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orion-enterprise-os .topbar .brand-copy .help {
  overflow: hidden;
  max-width: 520px;
  color: rgba(220, 232, 247, 0.76);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orion-enterprise-os .topbar .eyebrow,
.orion-enterprise-os .eyebrow {
  color: #61b5ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.orion-enterprise-os .customer-topbar {
  grid-template-columns: minmax(360px, 0.82fr) minmax(320px, 1fr) minmax(320px, auto);
}

.orion-enterprise-os .customer-topbar .customer-topbar-controls {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)) !important;
  gap: 8px;
  align-items: stretch;
  justify-content: stretch;
}

.orion-enterprise-os .customer-topbar .customer-topbar-controls .field,
.orion-enterprise-os .customer-topbar .customer-topbar-controls .topbar-chip,
.orion-enterprise-os .customer-topbar .customer-topbar-controls > .btn {
  flex: initial !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin-left: 0 !important;
}

.orion-enterprise-os .global-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(125, 190, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.orion-enterprise-os .global-command label {
  grid-column: 1 / -1;
  color: rgba(220, 232, 247, 0.68);
  font-size: 12px;
}

.orion-enterprise-os .global-command input {
  min-height: 34px;
  border-color: rgba(125, 190, 255, 0.22);
  background: rgba(1, 6, 14, 0.62);
  color: #f7fbff;
}

.orion-enterprise-os .topbar-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
  justify-content: flex-end;
  min-width: 0;
}

.orion-enterprise-os .topbar-chip,
.orion-enterprise-os .topbar-controls .field {
  min-width: 132px;
  border: 1px solid rgba(125, 190, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 7px 8px;
}

.orion-enterprise-os .topbar-chip span,
.orion-enterprise-os .topbar-controls label {
  color: rgba(220, 232, 247, 0.66);
  font-size: 12px;
}

.orion-enterprise-os .topbar-chip strong {
  color: #ffffff;
  font-size: 12px;
}

.orion-enterprise-os .topbar-controls select {
  min-height: 32px;
  border-color: rgba(125, 190, 255, 0.22);
  background: rgba(1, 6, 14, 0.62);
  color: #f7fbff;
}

.orion-enterprise-os .shell-grid {
  grid-template-columns: 272px minmax(0, 1fr);
  min-height: calc(100vh - 84px);
}

.orion-enterprise-os .shell-grid.customer-shell,
.orion-enterprise-os .shell-grid.customer-shell[data-role="driver"] {
  grid-template-columns: 272px minmax(0, 1fr) !important;
}

.orion-enterprise-os .sidebar {
  top: 84px;
  height: calc(100vh - 84px);
  padding: 12px 10px 18px;
  border-right: 1px solid rgba(125, 190, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(9, 22, 38, 0.98), rgba(4, 8, 18, 0.99)),
    var(--orion-night);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04);
}

.orion-enterprise-os .customer-shell .sidebar,
.orion-enterprise-os .shell-grid[data-role="driver"] .sidebar {
  display: block !important;
  position: sticky !important;
  top: 84px !important;
  height: calc(100vh - 84px) !important;
  max-height: calc(100vh - 84px) !important;
}

.orion-enterprise-os .main.customer-facing > .customer-quick-switch {
  display: none !important;
}

.orion-enterprise-os .sidebar .nav-button.seamless-overflow-nav {
  display: grid !important;
}

.orion-enterprise-os .nav-list {
  gap: 7px;
}

.orion-enterprise-os .nav-group {
  gap: 5px;
}

.orion-enterprise-os .nav-group-toggle {
  min-height: 31px;
  border-color: transparent;
  background: transparent;
  color: rgba(220, 232, 247, 0.7);
  padding: 5px 7px;
  font-size: 12px;
}

.orion-enterprise-os .nav-group-toggle.active,
.orion-enterprise-os .nav-group.open .nav-group-toggle {
  background: rgba(17, 140, 255, 0.08);
  color: #ffffff;
}

.orion-enterprise-os .nav-caret {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(125, 190, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.orion-enterprise-os .nav-group-items {
  gap: 4px;
}

.orion-enterprise-os .nav-button {
  grid-template-columns: 30px minmax(0, 1fr);
  min-height: 38px;
  border-radius: 7px;
  color: rgba(220, 232, 247, 0.82);
  padding: 6px 7px;
}

.orion-enterprise-os .nav-button:hover {
  border-color: rgba(125, 190, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
}

.orion-enterprise-os .nav-button.active {
  border-color: rgba(125, 190, 255, 0.44);
  background:
    linear-gradient(90deg, rgba(17, 140, 255, 0.42), rgba(17, 140, 255, 0.12)),
    rgba(255, 255, 255, 0.08);
  box-shadow: inset 3px 0 0 #61b5ff;
}

.orion-enterprise-os .nav-icon {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(125, 190, 255, 0.18);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: #f7fbff;
}

.orion-enterprise-os .nav-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.orion-enterprise-os .sidebar-status {
  border-color: rgba(125, 190, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(17, 140, 255, 0.1), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.orion-enterprise-os .main {
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(247, 249, 252, 0.98) 140px),
    #f7f9fc;
}

.orion-enterprise-os .workspace-head {
  margin: -16px -16px 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(125, 190, 255, 0.24);
  background:
    linear-gradient(135deg, rgba(7, 17, 31, 0.98), rgba(10, 39, 71, 0.94)),
    var(--orion-ink);
}

.orion-enterprise-os .workspace-head h2 {
  margin: 0;
  color: #ffffff;
  font-size: 23px;
  line-height: 1.12;
  text-shadow: none;
}

.orion-enterprise-os .workspace-head .toolbar {
  align-items: center;
  min-width: 0;
}

.orion-enterprise-os .customer-quick-switch {
  top: 84px;
  z-index: 19;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  margin: -16px -16px 14px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(125, 190, 255, 0.22);
  background: rgba(247, 251, 255, 0.96);
  box-shadow: 0 8px 24px rgba(6, 18, 34, 0.07);
  scrollbar-width: thin;
  scrollbar-color: rgba(17, 140, 255, 0.42) rgba(220, 232, 247, 0.45);
  -webkit-overflow-scrolling: touch;
}

.orion-enterprise-os .quick-switch-btn {
  flex: 0 0 auto;
  min-height: 31px;
  border: 1px solid rgba(111, 151, 196, 0.24);
  border-radius: 7px;
  background: #ffffff;
  color: #20344f;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.orion-enterprise-os .customer-quick-switch::-webkit-scrollbar {
  height: 8px;
}

.orion-enterprise-os .customer-quick-switch::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(17, 140, 255, 0.4);
}

.orion-enterprise-os .customer-quick-switch::-webkit-scrollbar-track {
  background: rgba(220, 232, 247, 0.5);
}

.orion-enterprise-os .quick-switch-btn.active {
  border-color: rgba(17, 140, 255, 0.72);
  background: linear-gradient(180deg, #0b7ee6, #075fb2);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(17, 140, 255, 0.22);
}

.orion-enterprise-os .customer-quick-switch .quick-switch-btn.seamless-overflow-nav {
  display: inline-flex !important;
}

.orion-enterprise-os .seamless-portal-breadcrumb {
  border-color: rgba(111, 151, 196, 0.18);
  border-radius: 7px;
  background: #ffffff;
  color: #20344f;
  box-shadow: 0 6px 18px rgba(6, 18, 34, 0.05);
}

.orion-enterprise-ribbon {
  display: grid;
  grid-template-columns: minmax(250px, 0.95fr) minmax(240px, 0.9fr) minmax(360px, 1.25fr) auto;
  gap: 12px;
  align-items: stretch;
  margin: 0 0 14px;
  border: 1px solid rgba(125, 190, 255, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(5, 13, 24, 0.98), rgba(9, 31, 54, 0.96) 60%, rgba(7, 72, 128, 0.86)),
    var(--orion-panel);
  color: #f7fbff;
  box-shadow: 0 18px 42px rgba(6, 18, 34, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 12px;
}

.orion-enterprise-brand-panel,
.orion-enterprise-page-panel,
.orion-enterprise-metrics article {
  min-width: 0;
  border: 1px solid rgba(220, 232, 247, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
}

.orion-enterprise-brand-panel {
  display: grid;
  grid-template-columns: 76px minmax(150px, 1fr);
  gap: 10px;
  align-items: center;
  padding: 9px;
}

.orion-enterprise-brand-panel img {
  width: 76px;
  max-width: 100%;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(17, 140, 255, 0.34));
}

.orion-enterprise-brand-panel .eyebrow {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: normal !important;
  white-space: nowrap !important;
  word-break: keep-all;
}

.orion-enterprise-brand-panel strong,
.orion-enterprise-page-panel h3 {
  display: block;
  overflow: hidden;
  margin: 0;
  color: #ffffff;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orion-enterprise-brand-panel small,
.orion-enterprise-page-panel p,
.orion-enterprise-metrics small {
  display: block;
  overflow: hidden;
  color: rgba(220, 232, 247, 0.75);
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orion-enterprise-page-panel {
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 11px 12px;
}

.orion-enterprise-page-panel h3 {
  font-size: 19px;
}

.orion-enterprise-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.orion-enterprise-metrics article {
  display: grid;
  gap: 3px;
  min-height: 78px;
  padding: 9px 10px;
}

.orion-enterprise-metrics span {
  color: rgba(220, 232, 247, 0.67);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.orion-enterprise-metrics strong {
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
}

.orion-enterprise-metrics strong.active {
  color: #5fe0ba;
}

.orion-enterprise-metrics strong.pending {
  color: #f5bb69;
}

.orion-enterprise-metrics strong.blocked {
  color: #ff8585;
}

.orion-enterprise-ribbon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-content: center;
  justify-content: flex-end;
  min-width: 170px;
}

.orion-enterprise-os .customer-facing > .orion-enterprise-ribbon {
  grid-template-columns: minmax(230px, 0.9fr) minmax(230px, 0.9fr) minmax(330px, 1.2fr) auto;
}

.orion-enterprise-os .customer-facing > .orion-enterprise-ribbon .orion-enterprise-brand-panel {
  grid-template-columns: 62px minmax(142px, 1fr);
}

.orion-enterprise-os .customer-facing > .orion-enterprise-ribbon .orion-enterprise-brand-panel img {
  width: 62px;
  height: 44px;
}

.orion-enterprise-os .customer-facing > .orion-enterprise-ribbon .orion-enterprise-brand-panel .eyebrow {
  max-width: 100%;
}

.orion-enterprise-os .btn {
  border-color: rgba(111, 151, 196, 0.28);
  border-radius: 7px;
  background: linear-gradient(180deg, #ffffff, #f1f6fb);
  color: #0d3764;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.orion-enterprise-os .btn:hover {
  border-color: rgba(17, 140, 255, 0.54);
  background: #ffffff;
}

.orion-enterprise-os .btn.primary,
.orion-enterprise-ribbon .btn.primary {
  border-color: rgba(97, 181, 255, 0.76);
  background: linear-gradient(180deg, #118cff, #075fb2);
  color: #ffffff;
  box-shadow: 0 9px 18px rgba(17, 140, 255, 0.22);
}

.orion-enterprise-os .btn.compact {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 12px;
}

.orion-enterprise-os .card,
.orion-enterprise-os .module-card,
.orion-enterprise-os .enterprise-action-card,
.orion-enterprise-os .enterprise-workspace-card,
.orion-enterprise-os .enterprise-module-card,
.orion-enterprise-os .metric.card,
.orion-enterprise-os .notice,
.orion-enterprise-os .timeline-item,
.orion-enterprise-os .driver-tms-hero,
.orion-enterprise-os .driver-load-board,
.orion-enterprise-os .customer-surface-panel {
  border-color: rgba(111, 151, 196, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 2px rgba(6, 18, 34, 0.04), 0 12px 28px rgba(6, 18, 34, 0.06);
}

.orion-enterprise-os .main,
.orion-enterprise-os .main * {
  box-sizing: border-box;
  min-width: 0;
}

.orion-enterprise-os .card,
.orion-enterprise-os .module-card,
.orion-enterprise-os .enterprise-action-card,
.orion-enterprise-os .enterprise-workspace-card,
.orion-enterprise-os .enterprise-module-card,
.orion-enterprise-os .customer-surface-panel,
.orion-enterprise-os .orion-enterprise-ribbon,
.orion-enterprise-os .orion-enterprise-brand-panel,
.orion-enterprise-os .orion-enterprise-page-panel,
.orion-enterprise-os .orion-enterprise-metrics article,
.orion-enterprise-os .seamless-record-lens,
.orion-enterprise-os .seamless-page-index,
.orion-enterprise-os .seamless-finance-readiness,
.orion-enterprise-os .seamless-today-strip,
.orion-enterprise-os .workspace-action-drawer,
.orion-enterprise-os .workspace-action-content,
.orion-enterprise-os .tracking-link-box {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

.orion-enterprise-os .orion-enterprise-brand-panel strong,
.orion-enterprise-os .orion-enterprise-brand-panel small,
.orion-enterprise-os .orion-enterprise-page-panel h3,
.orion-enterprise-os .orion-enterprise-page-panel p,
.orion-enterprise-os .orion-enterprise-metrics small,
.orion-enterprise-os .seamless-action-row strong,
.orion-enterprise-os .seamless-action-row small,
.orion-enterprise-os .seamless-record-list strong,
.orion-enterprise-os .seamless-record-list small,
.orion-enterprise-os .seamless-record-list span,
.orion-enterprise-os .module-card .help,
.orion-enterprise-os .module-card .small,
.orion-enterprise-os .enterprise-workspace-card p,
.orion-enterprise-os .enterprise-module-card .help,
.orion-enterprise-os .tracking-link-box,
.orion-enterprise-os .tms-party-card strong,
.orion-enterprise-os .tms-party-card small,
.orion-enterprise-os .tms-party-card span {
  max-width: 100%;
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.orion-enterprise-os .choice-pill,
.orion-enterprise-os .btn.compact,
.orion-enterprise-os .pill,
.orion-enterprise-os .status-pill {
  max-width: 100%;
  min-width: 0;
  line-height: 1.2;
  overflow-wrap: anywhere;
  white-space: normal;
}

.orion-enterprise-os .field,
.orion-enterprise-os .form-grid > *,
.orion-enterprise-os .invoice-form-grid > * {
  min-width: 0;
}

.orion-enterprise-os .workspace-action-content .form-grid,
.orion-enterprise-os .customer-utility-content .form-grid,
.orion-enterprise-os article.card .form-grid,
.orion-enterprise-os section.card .form-grid,
.orion-enterprise-os details.card .form-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  align-items: start;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.orion-enterprise-os .workspace-action-content,
.orion-enterprise-os .customer-utility-content {
  max-width: 100%;
  overflow-x: hidden;
}

.orion-enterprise-os input,
.orion-enterprise-os select,
.orion-enterprise-os textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.orion-enterprise-os .field label,
.orion-enterprise-os .form-grid > button,
.orion-enterprise-os .form-grid > .btn {
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
  white-space: normal;
}

.orion-enterprise-os .form-grid > button,
.orion-enterprise-os .form-grid > .btn {
  display: inline-flex;
  justify-content: center;
  width: 100%;
}

.orion-enterprise-os .row-actions.action-overflow,
.orion-enterprise-os .row-actions.seamless-action-menu {
  flex-wrap: wrap;
  overflow-x: visible;
}

.orion-enterprise-os .row-actions.action-overflow > *,
.orion-enterprise-os .row-actions.seamless-action-menu > * {
  flex: 1 1 min(100%, 154px);
  max-width: 100%;
}

.orion-enterprise-os .tms-lifecycle-line {
  flex-wrap: wrap;
  overflow-x: visible;
}

.orion-enterprise-os .tms-lifecycle-line span,
.orion-enterprise-os .tms-doc-readiness i {
  flex: 1 1 72px;
  min-width: 0;
  max-width: 100%;
  text-align: center;
  overflow-wrap: anywhere;
  white-space: normal;
}

.orion-enterprise-os .tms-money-panel small {
  display: block;
  max-width: 100%;
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.orion-enterprise-os .owc-radar-pin {
  width: auto !important;
  min-width: 50px;
  height: auto !important;
  padding: 4px 8px;
  border-radius: 999px !important;
}

.orion-enterprise-os .owc-radar-pin span {
  position: static !important;
  display: block;
  transform: none !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  max-width: min(118px, calc(100vw - 40px));
  padding: 0 !important;
  overflow-wrap: anywhere;
  text-align: center;
  white-space: normal !important;
}

.orion-enterprise-os .card.pad,
.orion-enterprise-os .module-card,
.orion-enterprise-os .enterprise-action-card,
.orion-enterprise-os .enterprise-workspace-card,
.orion-enterprise-os .enterprise-module-card {
  padding: 12px;
}

.orion-enterprise-os .enterprise-focus-card,
.orion-enterprise-os .enterprise-suite-hero,
.orion-enterprise-os .orion-tms-hero,
.orion-enterprise-os .workspace-action-drawer > summary {
  border-color: rgba(125, 190, 255, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(5, 13, 24, 0.98), rgba(9, 31, 54, 0.96) 58%, rgba(7, 72, 128, 0.84)),
    var(--orion-panel);
  box-shadow: 0 18px 42px rgba(6, 18, 34, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.orion-enterprise-os .enterprise-focus-card h3,
.orion-enterprise-os .enterprise-suite-hero h3,
.orion-enterprise-os .orion-tms-hero h3 {
  color: #ffffff;
}

.orion-enterprise-os .enterprise-focus-card p,
.orion-enterprise-os .enterprise-suite-hero p,
.orion-enterprise-os .orion-tms-hero p {
  color: rgba(220, 232, 247, 0.78);
}

.orion-enterprise-os .grid,
.orion-enterprise-os .enterprise-workspace-grid,
.orion-enterprise-os .enterprise-module-grid,
.orion-enterprise-os .customer-capability-grid {
  gap: 11px;
}

.orion-enterprise-os .section {
  margin-bottom: 14px;
}

.orion-enterprise-os .split-actions {
  gap: 10px;
  align-items: center;
}

.orion-enterprise-os h2,
.orion-enterprise-os h3,
.orion-enterprise-os h4,
.orion-enterprise-os .module-title strong,
.orion-enterprise-os .timeline-item strong {
  color: #10243a;
}

.orion-enterprise-os .help,
.orion-enterprise-os .small {
  color: #607086;
}

.orion-enterprise-os input,
.orion-enterprise-os select,
.orion-enterprise-os textarea {
  min-height: 36px;
  border-color: rgba(111, 151, 196, 0.28);
  border-radius: 7px;
  background: #ffffff;
  color: #142033;
  padding: 8px 10px;
}

.orion-enterprise-os input:focus,
.orion-enterprise-os select:focus,
.orion-enterprise-os textarea:focus,
.orion-enterprise-os button:focus {
  outline: 2px solid rgba(17, 140, 255, 0.32);
  outline-offset: 2px;
}

.orion-enterprise-os .status-strip,
.orion-enterprise-os .row-actions {
  gap: 6px;
}

.orion-enterprise-os .pill,
.orion-enterprise-os .status-pill {
  border-radius: 999px;
  border-color: rgba(111, 151, 196, 0.22);
  background: #f4f8fc;
  color: #24405e;
  font-size: 12px;
  font-weight: 850;
}

.orion-enterprise-os .status-pill.active,
.orion-enterprise-os .pill.on {
  border-color: rgba(21, 166, 122, 0.24);
  background: rgba(21, 166, 122, 0.11);
  color: #0e7256;
}

.orion-enterprise-os .status-pill.pending,
.orion-enterprise-os .status-pill.info,
.orion-enterprise-os .status-dot.pending {
  border-color: rgba(201, 130, 33, 0.26);
  background: rgba(201, 130, 33, 0.12);
  color: #86520f;
}

.orion-enterprise-os .status-pill.blocked,
.orion-enterprise-os .status-pill.danger {
  border-color: rgba(198, 68, 68, 0.26);
  background: rgba(198, 68, 68, 0.12);
  color: #9e3030;
}

.orion-enterprise-os .table-wrap {
  border: 1px solid rgba(111, 151, 196, 0.18);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(6, 18, 34, 0.03);
}

.orion-enterprise-os table {
  border-collapse: separate;
  border-spacing: 0;
}

.orion-enterprise-os table thead th,
.orion-enterprise-os .main table thead th {
  border-bottom: 1px solid rgba(111, 151, 196, 0.2);
  background: #eef5fb;
  color: #20344f;
  font-size: 12px;
  font-weight: 900;
}

.orion-enterprise-os table tbody tr:nth-child(even) {
  background: #fbfdff;
}

.orion-enterprise-os table td {
  border-bottom-color: rgba(111, 151, 196, 0.12);
}

.orion-enterprise-os details.card,
.orion-enterprise-os .seamless-record-lens,
.orion-enterprise-os .seamless-page-index,
.orion-enterprise-os .seamless-finance-readiness,
.orion-enterprise-os .seamless-today-strip,
.orion-enterprise-os .portal-context-ribbon,
.orion-enterprise-os .portal-workflow-rail,
.orion-enterprise-os .hey-command-dock,
.orion-enterprise-os .people-compliance-command {
  border-color: rgba(111, 151, 196, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 2px rgba(6, 18, 34, 0.04), 0 10px 24px rgba(6, 18, 34, 0.055);
}

.orion-enterprise-os .portal-workflow-rail,
.orion-enterprise-os .seamless-page-index,
.orion-enterprise-os .people-compliance-actions {
  gap: 7px;
}

.orion-enterprise-os .people-compliance-command > summary {
  min-height: 58px;
}

.orion-enterprise-os .people-compliance-score {
  border-radius: 7px;
}

.orion-enterprise-os .people-compliance-metrics article,
.orion-enterprise-os .people-compliance-card,
.orion-enterprise-os .people-compliance-list article,
.orion-enterprise-os .people-compliance-row {
  border-color: rgba(111, 151, 196, 0.16);
  border-radius: 7px;
  background: #fbfdff;
}

.orion-enterprise-os .role-home-screen,
.orion-enterprise-os .workspace-answer-panel,
.orion-enterprise-os .workspace-related-rail {
  border-color: rgba(111, 151, 196, 0.18);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 2px rgba(6, 18, 34, 0.04), 0 10px 24px rgba(6, 18, 34, 0.05);
}

.orion-enterprise-os .workspace-answer-panel article,
.orion-enterprise-os .workspace-related-list button,
.orion-enterprise-os .role-home-stats article {
  border-color: rgba(111, 151, 196, 0.16);
  border-radius: 7px;
  background: #fbfdff;
}

.orion-enterprise-os .mobile-bottom-nav {
  border-top-color: rgba(111, 151, 196, 0.2);
  background: rgba(247, 251, 255, 0.96);
}

.orion-enterprise-os .mobile-bottom-nav button.active {
  color: #075fb2;
}

@media (max-width: 1280px) {
  .orion-enterprise-os .topbar {
    grid-template-columns: minmax(320px, 0.8fr) minmax(300px, 1fr);
  }

  .orion-enterprise-os .topbar-controls {
    grid-column: 1 / -1;
  }

  .orion-enterprise-os .shell-grid.customer-shell,
  .orion-enterprise-os .shell-grid.customer-shell[data-role="driver"] {
    grid-template-columns: 82px minmax(0, 1fr) !important;
  }

  .orion-enterprise-os .customer-shell .sidebar-status {
    display: none !important;
  }

  .orion-enterprise-os .customer-shell .nav-group-toggle span:first-child,
  .orion-enterprise-os .customer-shell .nav-button span:last-child {
    display: none !important;
  }

  .orion-enterprise-os .customer-shell .nav-button {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .orion-enterprise-ribbon {
    grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr);
  }

  .orion-enterprise-metrics,
  .orion-enterprise-ribbon-actions {
    grid-column: span 2;
  }

  .orion-enterprise-ribbon-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 980px) {
  .orion-enterprise-os .topbar {
    grid-template-columns: 1fr !important;
    position: relative;
  }

  .orion-enterprise-os .topbar .brand-lockup {
    grid-column: 1 !important;
    grid-row: auto !important;
    display: grid !important;
    grid-template-columns: 138px minmax(0, 1fr);
    width: 100%;
  }

  .orion-enterprise-os .topbar .brand-copy {
    display: block !important;
  }

  .orion-enterprise-os .topbar .brand-logo-frame {
    flex-basis: 138px !important;
    width: 138px !important;
    height: 58px !important;
    min-width: 138px !important;
    min-height: 58px !important;
  }

  .orion-enterprise-os .topbar .brand-copy h1 {
    font-size: 18px;
  }

  .orion-enterprise-os .topbar .brand-copy .eyebrow,
  .orion-enterprise-os .topbar .brand-copy .help {
    display: block !important;
  }

  .orion-enterprise-os .customer-topbar {
    gap: 8px !important;
    min-height: auto;
    padding: 10px 12px 12px;
  }

  .orion-enterprise-os .customer-topbar .brand-lockup {
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-items: center;
  }

  .orion-enterprise-os .customer-topbar .global-command {
    grid-column: 1 !important;
    grid-row: 2 !important;
    padding: 6px;
  }

  .orion-enterprise-os .customer-topbar .customer-topbar-controls {
    grid-column: 1 !important;
    grid-row: 3 !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)) !important;
    gap: 6px;
    align-items: stretch;
    justify-content: stretch;
    width: 100%;
  }

  .orion-enterprise-os .customer-topbar .customer-topbar-controls .field,
  .orion-enterprise-os .customer-topbar .customer-topbar-controls .topbar-chip,
  .orion-enterprise-os .customer-topbar .customer-topbar-controls > .btn {
    flex: initial !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 36px;
    margin-left: 0 !important;
    padding: 6px 8px;
  }

  .orion-enterprise-os .customer-topbar .customer-topbar-controls label,
  .orion-enterprise-os .customer-topbar .topbar-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .orion-enterprise-os .customer-topbar .customer-topbar-controls select {
    min-height: 30px;
    padding: 5px 7px;
  }

  .orion-enterprise-os .customer-facing > .orion-enterprise-ribbon {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
  }

  .orion-enterprise-os .customer-facing > .orion-enterprise-ribbon .orion-enterprise-brand-panel,
  .orion-enterprise-os .customer-facing > .orion-enterprise-ribbon .orion-enterprise-page-panel {
    min-height: 72px;
  }

  .orion-enterprise-os .customer-facing > .orion-enterprise-ribbon .orion-enterprise-brand-panel {
    grid-template-columns: 58px minmax(140px, 1fr);
  }

  .orion-enterprise-os .customer-facing > .orion-enterprise-ribbon .orion-enterprise-brand-panel img {
    width: 58px;
    height: 42px;
  }

  .orion-enterprise-os .customer-facing > .orion-enterprise-ribbon .orion-enterprise-metrics {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .orion-enterprise-os .customer-facing > .orion-enterprise-ribbon .orion-enterprise-metrics article {
    min-height: 66px;
    padding: 8px;
  }

  .orion-enterprise-os .customer-facing > .orion-enterprise-ribbon .orion-enterprise-metrics strong {
    font-size: 21px;
  }

  .orion-enterprise-os .customer-facing > .orion-enterprise-ribbon .orion-enterprise-ribbon-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-content: stretch;
    min-width: 0;
  }

  .orion-enterprise-os .customer-facing > .orion-enterprise-ribbon .orion-enterprise-ribbon-actions .btn {
    width: 100%;
    min-height: 34px;
    white-space: normal;
  }

  .orion-enterprise-os .shell-grid {
    grid-template-columns: 1fr;
  }

  .orion-enterprise-os .sidebar {
    position: static;
    height: auto;
    max-height: none;
  }

  .orion-enterprise-os .shell-grid.customer-shell,
  .orion-enterprise-os .shell-grid.customer-shell[data-role="driver"] {
    display: grid !important;
    grid-template-columns: 78px minmax(0, 1fr) !important;
  }

  .orion-enterprise-os .customer-shell .sidebar,
  .orion-enterprise-os .shell-grid[data-role="driver"] .sidebar {
    display: block !important;
    position: sticky !important;
    top: 0 !important;
    height: 100vh !important;
    max-height: 100vh !important;
    padding: 10px 8px !important;
  }

  .orion-enterprise-os .customer-shell .nav-list {
    gap: 6px;
  }

  .orion-enterprise-os .customer-shell .nav-group-toggle,
  .orion-enterprise-os .customer-shell .nav-button {
    min-height: 36px;
    padding: 5px;
  }

  .orion-enterprise-os .customer-shell .nav-icon {
    width: 28px;
    height: 28px;
  }

  .orion-enterprise-os .customer-quick-switch {
    top: 0;
  }

  .orion-enterprise-ribbon {
    grid-template-columns: 1fr;
  }

  .orion-enterprise-metrics,
  .orion-enterprise-ribbon-actions {
    grid-column: auto;
  }

  .orion-enterprise-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .orion-enterprise-os .grid.two,
  .orion-enterprise-os .grid.three,
  .orion-enterprise-os .grid.four,
  .orion-enterprise-os .enterprise-home,
  .orion-enterprise-os .people-compliance-grid,
  .orion-enterprise-os .role-home-screen {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .orion-enterprise-os .main {
    padding: 12px;
  }

  .orion-enterprise-os .workspace-head {
    margin: -12px -12px 10px;
    padding: 14px 12px;
  }

  .orion-enterprise-os .customer-quick-switch {
    margin: -12px -12px 12px;
    overflow-x: auto;
  }

  .orion-enterprise-brand-panel {
    grid-template-columns: 1fr;
  }

  .orion-enterprise-brand-panel img {
    width: 170px;
  }

  .orion-enterprise-os .topbar .brand-logo-frame {
    flex-basis: 108px !important;
    width: 108px !important;
    height: 50px !important;
    min-width: 108px !important;
    min-height: 50px !important;
  }

  .orion-enterprise-os .topbar .brand-lockup {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 10px;
  }

  .orion-enterprise-os .customer-topbar .brand-copy .help {
    white-space: normal;
    line-height: 1.25;
  }

  .orion-enterprise-os .customer-topbar .customer-topbar-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .orion-enterprise-os .customer-facing > .orion-enterprise-ribbon {
    grid-template-columns: 1fr;
  }

  .orion-enterprise-os .customer-facing > .orion-enterprise-ribbon .orion-enterprise-brand-panel {
    grid-template-columns: 58px minmax(140px, 1fr);
  }

  .orion-enterprise-os .customer-facing > .orion-enterprise-ribbon .orion-enterprise-brand-panel img {
    width: 58px;
    height: 42px;
  }

  .orion-enterprise-os .customer-facing > .orion-enterprise-ribbon .orion-enterprise-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .orion-enterprise-os .customer-facing > .orion-enterprise-ribbon .orion-enterprise-ribbon-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .orion-enterprise-metrics {
    grid-template-columns: 1fr;
  }

  .orion-enterprise-os .topbar-controls,
  .orion-enterprise-os .topbar-chip,
  .orion-enterprise-os .topbar-controls .field,
  .orion-enterprise-os .global-command {
    width: 100%;
  }
}

.orion-enterprise-os.client-ui30-os {
  --client-ui30-border: rgba(111, 151, 196, 0.2);
  --client-ui30-soft: #f6f9fc;
  --client-ui30-paper: #ffffff;
  --client-ui30-ink: #10243a;
  --client-ui30-muted: #61738a;
}

.orion-enterprise-os .client-ui30-main {
  scroll-padding-top: 120px;
}

.orion-enterprise-os .client-ui30-status-strip,
.orion-enterprise-os .client-ui30-favorites,
.orion-enterprise-os .client-ui30-page-tools,
.orion-enterprise-os .client-ui30-home-command,
.orion-enterprise-os .client-ui30-unified-today,
.orion-enterprise-os .client-ui30-invoice-panel,
.orion-enterprise-os .client-ui30-driver-flow,
.orion-enterprise-os .client-ui30-people-panel,
.orion-enterprise-os .client-ui30-settings-panel,
.orion-enterprise-os .client-ui30-message-center,
.orion-enterprise-os .client-ui30-table-controls,
.orion-enterprise-os .client-ui30-local-notes,
.orion-enterprise-os .client-ui30-activity-timeline,
.orion-enterprise-os .client-ui30-document-panel,
.orion-enterprise-os .client-ui30-notification-categories {
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--client-ui30-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 2px rgba(6, 18, 34, 0.04), 0 10px 24px rgba(6, 18, 34, 0.055);
  box-sizing: border-box;
}

.orion-enterprise-os .client-ui30-status-strip {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: 0 0 10px;
  padding: 10px 12px;
  background:
    linear-gradient(90deg, rgba(17, 140, 255, 0.08), rgba(21, 166, 122, 0.05)),
    var(--client-ui30-paper);
}

.orion-enterprise-os .client-ui30-status-strip strong,
.orion-enterprise-os .client-ui30-panel-head strong,
.orion-enterprise-os .client-ui30-invoice-panel strong,
.orion-enterprise-os .client-ui30-driver-flow strong,
.orion-enterprise-os .client-ui30-people-panel strong,
.orion-enterprise-os .client-ui30-message-center strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--client-ui30-ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orion-enterprise-os .client-ui30-status-strip small,
.orion-enterprise-os .client-ui30-panel-head small,
.orion-enterprise-os .client-ui30-invoice-panel small,
.orion-enterprise-os .client-ui30-driver-flow small,
.orion-enterprise-os .client-ui30-people-panel small,
.orion-enterprise-os .client-ui30-message-center small {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--client-ui30-muted);
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orion-enterprise-os .client-ui30-status-metrics,
.orion-enterprise-os .client-ui30-tool-actions,
.orion-enterprise-os .client-ui30-message-tabs,
.orion-enterprise-os .client-ui30-invoice-chips,
.orion-enterprise-os .client-ui30-driver-flow nav,
.orion-enterprise-os .client-ui30-people-panel nav,
.orion-enterprise-os .client-ui30-sticky-actions > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.orion-enterprise-os .client-ui30-favorites {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
  overflow-x: auto;
  margin: 0 0 10px;
  padding: 8px 10px;
}

.orion-enterprise-os .client-ui30-favorites strong {
  flex: 0 0 auto;
  color: var(--client-ui30-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.orion-enterprise-os .client-ui30-favorites .btn {
  flex: 0 0 auto;
}

.orion-enterprise-os .client-ui30-page-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin: 0 0 10px;
  padding: 9px 10px;
}

.orion-enterprise-os .client-ui30-page-tools label {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--client-ui30-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.orion-enterprise-os .client-ui30-page-tools input {
  min-height: 34px;
}

.orion-enterprise-os .client-ui30-search-hidden {
  display: none !important;
}

.orion-enterprise-os .client-ui30-panel-head,
.orion-enterprise-os .client-ui30-invoice-panel,
.orion-enterprise-os .client-ui30-driver-flow,
.orion-enterprise-os .client-ui30-people-panel,
.orion-enterprise-os .client-ui30-message-center {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
}

.orion-enterprise-os .client-ui30-home-command,
.orion-enterprise-os .client-ui30-unified-today {
  display: grid;
  gap: 10px;
  margin: 0 0 10px;
}

.orion-enterprise-os .client-ui30-command-grid,
.orion-enterprise-os .client-ui30-action-grid,
.orion-enterprise-os .client-ui30-settings-panel,
.orion-enterprise-os .client-ui30-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
  padding: 0 12px 12px;
}

.orion-enterprise-os .client-ui30-command-grid button,
.orion-enterprise-os .client-ui30-action-grid button,
.orion-enterprise-os .client-ui30-settings-panel article,
.orion-enterprise-os .client-ui30-category-grid button,
.orion-enterprise-os .client-ui30-mini-list button,
.orion-enterprise-os .client-ui30-invoice-chips button {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid rgba(111, 151, 196, 0.18);
  border-radius: 7px;
  background: #fbfdff;
  color: var(--client-ui30-ink);
  padding: 9px;
  text-align: left;
}

.orion-enterprise-os .client-ui30-command-grid button:hover,
.orion-enterprise-os .client-ui30-action-grid button:hover,
.orion-enterprise-os .client-ui30-category-grid button:hover,
.orion-enterprise-os .client-ui30-mini-list button:hover,
.orion-enterprise-os .client-ui30-invoice-chips button:hover {
  border-color: rgba(17, 140, 255, 0.36);
  background: #eef7ff;
}

.orion-enterprise-os .client-ui30-command-grid span,
.orion-enterprise-os .client-ui30-action-grid span,
.orion-enterprise-os .client-ui30-settings-panel small,
.orion-enterprise-os .client-ui30-category-grid small,
.orion-enterprise-os .client-ui30-mini-list small,
.orion-enterprise-os .client-ui30-invoice-chips small {
  min-width: 0;
  overflow: hidden;
  color: var(--client-ui30-muted);
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.orion-enterprise-os .client-ui30-readiness {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 3px solid rgba(21, 166, 122, 0.72);
  border-radius: 50%;
  color: var(--client-ui30-ink);
  font-size: 18px;
  font-weight: 950;
}

.orion-enterprise-os .client-ui30-readiness small {
  margin-top: -10px;
  font-size: 12px;
  text-transform: uppercase;
}

.orion-enterprise-os .client-ui30-sticky-actions {
  position: sticky;
  bottom: 10px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin: 12px 0 0;
  padding: 8px;
  border: 1px solid rgba(17, 140, 255, 0.24);
  border-radius: 8px;
  background: rgba(247, 251, 255, 0.96);
  box-shadow: 0 14px 32px rgba(6, 18, 34, 0.12);
  backdrop-filter: blur(10px);
}

.orion-enterprise-os .client-ui30-sticky-actions > span {
  color: var(--client-ui30-muted);
  font-size: 12px;
  font-weight: 900;
}

.orion-enterprise-os .client-ui30-table-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
  padding: 8px;
}

.orion-enterprise-os .client-ui30-saved-views,
.orion-enterprise-os .client-ui30-bulk-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.orion-enterprise-os .client-ui30-saved-views strong,
.orion-enterprise-os .client-ui30-bulk-toolbar span {
  color: var(--client-ui30-muted);
  font-size: 12px;
  font-weight: 900;
}

.orion-enterprise-os .client-ui30-saved-views button {
  border: 1px solid rgba(111, 151, 196, 0.18);
  border-radius: 999px;
  background: #ffffff;
  color: #24405e;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 850;
}

.orion-enterprise-os .client-ui30-saved-views button.active {
  border-color: rgba(17, 140, 255, 0.54);
  background: #eaf5ff;
  color: #075fb2;
}

.orion-enterprise-os .client-ui30-row-check {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 6px;
  vertical-align: middle;
}

.orion-enterprise-os .client-ui30-row-check span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.orion-enterprise-os tr.client-ui30-row-selected {
  background: #eef7ff !important;
  box-shadow: inset 3px 0 0 #118cff;
}

.orion-enterprise-os tbody tr {
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.orion-enterprise-os tbody tr:hover {
  background: #f8fbff;
}

.orion-enterprise-os .client-ui30-local-notes,
.orion-enterprise-os .client-ui30-activity-timeline,
.orion-enterprise-os .client-ui30-document-panel,
.orion-enterprise-os .client-ui30-notification-categories {
  margin: 10px 0;
}

.orion-enterprise-os .client-ui30-local-notes > summary,
.orion-enterprise-os .client-ui30-activity-timeline > summary,
.orion-enterprise-os .client-ui30-document-panel > summary,
.orion-enterprise-os .client-ui30-notification-categories > summary {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 10px 12px;
  cursor: pointer;
}

.orion-enterprise-os .client-ui30-local-notes textarea {
  width: calc(100% - 20px);
  min-height: 88px;
  margin: 0 10px 10px;
  resize: vertical;
}

.orion-enterprise-os .client-ui30-local-notes .row-actions {
  padding: 0 10px 10px;
}

.orion-enterprise-os .client-ui30-timeline-list,
.orion-enterprise-os .client-ui30-mini-list {
  display: grid;
  gap: 8px;
  padding: 0 10px 10px;
}

.orion-enterprise-os .client-ui30-timeline-list article {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 4px 10px;
  align-items: start;
  border: 1px solid rgba(111, 151, 196, 0.16);
  border-radius: 7px;
  background: #fbfdff;
  padding: 8px;
}

.orion-enterprise-os .client-ui30-timeline-list span {
  color: var(--client-ui30-muted);
  font-size: 12px;
  font-weight: 900;
}

.orion-enterprise-os .client-ui30-timeline-list strong,
.orion-enterprise-os .client-ui30-timeline-list small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orion-enterprise-os .client-ui30-timeline-list small {
  grid-column: 2;
  color: var(--client-ui30-muted);
}

.orion-enterprise-os .client-ui30-invoice-panel {
  margin: 0 0 10px;
}

.orion-enterprise-os .client-ui30-invoice-chips {
  justify-content: flex-end;
}

.orion-enterprise-os .client-ui30-invoice-chips button {
  min-width: 118px;
  padding: 7px 8px;
}

.orion-enterprise-os .client-ui30-driver-flow {
  margin: 0 0 10px;
  border-color: rgba(97, 181, 255, 0.32);
  background:
    linear-gradient(120deg, rgba(4, 8, 18, 0.96), rgba(8, 44, 80, 0.92)),
    #07111f;
}

.orion-enterprise-os .client-ui30-driver-flow strong,
.orion-enterprise-os .client-ui30-driver-flow small {
  color: #f7fbff;
}

.orion-enterprise-os .client-ui30-driver-flow small {
  color: rgba(220, 232, 247, 0.78);
}

.orion-enterprise-os .client-ui30-people-panel,
.orion-enterprise-os .client-ui30-message-center {
  margin: 0 0 10px;
}

.orion-enterprise-os .client-ui30-people-panel > div > small {
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.orion-enterprise-os .client-ui30-settings-panel {
  margin: 0 0 10px;
  padding: 12px;
}

.orion-enterprise-os .client-ui30-settings-panel article {
  padding: 11px;
}

.orion-enterprise-os .client-ui30-message-tabs {
  justify-content: flex-end;
}

.orion-enterprise-os .client-ui30-category-grid {
  padding: 0 10px 10px;
}

.orion-enterprise-os .client-ui30-qa-surface,
.orion-enterprise-os .client-ui30-qa-surface * {
  min-width: 0;
}

.orion-enterprise-os .client-ui30-qa-surface {
  overflow-wrap: anywhere;
}

.orion-enterprise-os .client-ui30-qa-surface h2,
.orion-enterprise-os .client-ui30-qa-surface h3,
.orion-enterprise-os .client-ui30-qa-surface h4,
.orion-enterprise-os .client-ui30-qa-surface strong,
.orion-enterprise-os .client-ui30-qa-surface small,
.orion-enterprise-os .client-ui30-qa-surface p {
  max-width: 100%;
}

.orion-enterprise-os .client-ui30-secondary-primary {
  background: linear-gradient(180deg, #ffffff, #f1f6fb) !important;
  color: #0d3764 !important;
}

.orion-enterprise-os .status-pill[data-client-ui30-status="blocked"],
.orion-enterprise-os .pill[data-client-ui30-status="blocked"] {
  border-color: rgba(198, 68, 68, 0.32);
  background: rgba(198, 68, 68, 0.12);
  color: #9e3030;
}

.orion-enterprise-os .status-pill[data-client-ui30-status="pending"],
.orion-enterprise-os .pill[data-client-ui30-status="pending"] {
  border-color: rgba(201, 130, 33, 0.3);
  background: rgba(201, 130, 33, 0.12);
  color: #86520f;
}

.orion-enterprise-os .status-pill[data-client-ui30-status="active"],
.orion-enterprise-os .pill[data-client-ui30-status="active"] {
  border-color: rgba(21, 166, 122, 0.28);
  background: rgba(21, 166, 122, 0.11);
  color: #0e7256;
}

@media (max-width: 980px) {
  .orion-enterprise-os .client-ui30-status-strip,
  .orion-enterprise-os .client-ui30-page-tools,
  .orion-enterprise-os .client-ui30-panel-head,
  .orion-enterprise-os .client-ui30-invoice-panel,
  .orion-enterprise-os .client-ui30-driver-flow,
  .orion-enterprise-os .client-ui30-people-panel,
  .orion-enterprise-os .client-ui30-message-center,
  .orion-enterprise-os .client-ui30-table-controls,
  .orion-enterprise-os .client-ui30-sticky-actions {
    grid-template-columns: 1fr;
  }

  .orion-enterprise-os .client-ui30-invoice-chips,
  .orion-enterprise-os .client-ui30-message-tabs,
  .orion-enterprise-os .client-ui30-status-metrics,
  .orion-enterprise-os .client-ui30-sticky-actions > div {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .orion-enterprise-os .client-ui30-status-strip,
  .orion-enterprise-os .client-ui30-page-tools,
  .orion-enterprise-os .client-ui30-home-command,
  .orion-enterprise-os .client-ui30-unified-today,
  .orion-enterprise-os .client-ui30-invoice-panel,
  .orion-enterprise-os .client-ui30-driver-flow,
  .orion-enterprise-os .client-ui30-people-panel,
  .orion-enterprise-os .client-ui30-settings-panel,
  .orion-enterprise-os .client-ui30-message-center,
  .orion-enterprise-os .client-ui30-table-controls {
    margin-right: 0;
    margin-left: 0;
  }

  .orion-enterprise-os .client-ui30-command-grid,
  .orion-enterprise-os .client-ui30-action-grid,
  .orion-enterprise-os .client-ui30-settings-panel,
  .orion-enterprise-os .client-ui30-category-grid {
    grid-template-columns: 1fr;
  }

  .orion-enterprise-os .client-ui30-sticky-actions {
    bottom: 74px;
  }

  .orion-enterprise-os .client-ui30-timeline-list article {
    grid-template-columns: 1fr;
  }

  .orion-enterprise-os .client-ui30-timeline-list small {
    grid-column: auto;
  }
}

.orion-enterprise-os.flow55-os {
  --flow55-ink: #102234;
  --flow55-muted: #60748a;
  --flow55-line: rgba(88, 117, 146, 0.2);
  --flow55-panel: rgba(255, 255, 255, 0.96);
  --flow55-panel-soft: #f7fafc;
  --flow55-brand: #0b63ce;
  --flow55-sky: #1582d7;
  --flow55-teal: #15966f;
  --flow55-amber: #b77916;
  --flow55-red: #b83c43;
}

.orion-enterprise-os .flow55-main {
  --surface-gap: 10px;
}

.orion-enterprise-os .flow55-context-rail,
.orion-enterprise-os .flow55-role-home,
.orion-enterprise-os .flow55-owner-control-tower,
.orion-enterprise-os .flow55-process-stepper,
.orion-enterprise-os .flow55-universal-create,
.orion-enterprise-os .flow55-driver-actions,
.orion-enterprise-os .flow55-done-path,
.orion-enterprise-os .flow55-report-hub {
  display: grid;
  gap: 10px;
  margin: 0 0 10px;
  border: 1px solid var(--flow55-line);
  border-radius: 8px;
  background: var(--flow55-panel);
  box-shadow: 0 10px 28px rgba(11, 31, 53, 0.08);
  color: var(--flow55-ink);
  overflow: hidden;
}

.orion-enterprise-os .flow55-context-rail,
.orion-enterprise-os .flow55-universal-create,
.orion-enterprise-os .flow55-driver-actions,
.orion-enterprise-os .flow55-done-path,
.orion-enterprise-os .flow55-report-hub {
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.5fr);
  align-items: center;
  padding: 12px;
}

.orion-enterprise-os .flow55-context-rail {
  border-color: rgba(13, 76, 140, 0.28);
  background:
    linear-gradient(90deg, rgba(9, 35, 63, 0.98), rgba(15, 76, 123, 0.94) 52%, rgba(255, 255, 255, 0.98) 52%),
    #fff;
}

.orion-enterprise-os .flow55-context-rail .eyebrow,
.orion-enterprise-os .flow55-context-rail strong {
  color: #f8fbff;
}

.orion-enterprise-os .flow55-context-rail small {
  color: rgba(231, 240, 250, 0.82);
}

.orion-enterprise-os .flow55-context-rail nav,
.orion-enterprise-os .flow55-create-actions,
.orion-enterprise-os .flow55-driver-actions nav,
.orion-enterprise-os .flow55-check-row,
.orion-enterprise-os .flow55-report-hub > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  min-width: 0;
}

.orion-enterprise-os .flow55-context-copy,
.orion-enterprise-os .flow55-role-head,
.orion-enterprise-os .flow55-owner-head,
.orion-enterprise-os .flow55-process-stepper > div:first-child,
.orion-enterprise-os .flow55-universal-create > div:first-child,
.orion-enterprise-os .flow55-driver-actions > div:first-child,
.orion-enterprise-os .flow55-done-path > div:first-child,
.orion-enterprise-os .flow55-report-hub > div:first-child {
  min-width: 0;
}

.orion-enterprise-os .flow55-context-copy strong,
.orion-enterprise-os .flow55-role-head strong,
.orion-enterprise-os .flow55-process-stepper strong,
.orion-enterprise-os .flow55-universal-create strong,
.orion-enterprise-os .flow55-driver-actions strong,
.orion-enterprise-os .flow55-done-path strong,
.orion-enterprise-os .flow55-report-hub strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orion-enterprise-os .flow55-context-copy small,
.orion-enterprise-os .flow55-role-head small,
.orion-enterprise-os .flow55-process-stepper small,
.orion-enterprise-os .flow55-universal-create small,
.orion-enterprise-os .flow55-driver-actions small,
.orion-enterprise-os .flow55-done-path small,
.orion-enterprise-os .flow55-report-hub small {
  display: block;
  color: var(--flow55-muted);
  overflow-wrap: anywhere;
}

.orion-enterprise-os .flow55-role-home {
  padding: 12px;
  background:
    linear-gradient(180deg, #ffffff, #f8fbfe),
    #fff;
}

.orion-enterprise-os .flow55-role-head,
.orion-enterprise-os .flow55-owner-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.orion-enterprise-os .flow55-health-ring {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 6px solid rgba(21, 150, 111, 0.22);
  background: #fff;
  color: var(--flow55-teal);
  font-size: 19px;
  font-weight: 950;
}

.orion-enterprise-os .flow55-health-ring.pending {
  border-color: rgba(183, 121, 22, 0.24);
  color: var(--flow55-amber);
}

.orion-enterprise-os .flow55-health-ring small {
  margin-top: -12px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.orion-enterprise-os .flow55-role-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 8px;
}

.orion-enterprise-os .flow55-role-grid button,
.orion-enterprise-os .flow55-owner-list button,
.orion-enterprise-os .flow55-record-list button,
.orion-enterprise-os .flow55-approval-list button,
.orion-enterprise-os .flow55-report-hub > div:last-child button {
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 78px;
  padding: 10px;
  border: 1px solid rgba(92, 125, 159, 0.18);
  border-radius: 8px;
  background: #fff;
  color: var(--flow55-ink);
  text-align: left;
  cursor: pointer;
}

.orion-enterprise-os .flow55-role-grid button:hover,
.orion-enterprise-os .flow55-owner-list button:hover,
.orion-enterprise-os .flow55-record-list button:hover,
.orion-enterprise-os .flow55-approval-list button:hover,
.orion-enterprise-os .flow55-report-hub > div:last-child button:hover {
  border-color: rgba(11, 99, 206, 0.34);
  box-shadow: 0 8px 22px rgba(11, 99, 206, 0.1);
}

.orion-enterprise-os .flow55-role-grid span,
.orion-enterprise-os .flow55-report-hub > div:last-child span {
  color: var(--flow55-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.orion-enterprise-os .flow55-role-grid strong,
.orion-enterprise-os .flow55-report-hub > div:last-child strong {
  font-size: 22px;
  line-height: 1;
}

.orion-enterprise-os .flow55-role-grid small,
.orion-enterprise-os .flow55-record-list small,
.orion-enterprise-os .flow55-approval-list small,
.orion-enterprise-os .flow55-owner-list small {
  min-width: 0;
  color: var(--flow55-muted);
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.orion-enterprise-os .flow55-owner-control-tower {
  padding: 12px;
  border-color: rgba(8, 59, 105, 0.28);
  background:
    linear-gradient(120deg, rgba(248, 251, 255, 0.96), rgba(255, 255, 255, 0.98)),
    #fff;
}

.orion-enterprise-os .flow55-owner-metrics,
.orion-enterprise-os .flow55-owner-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  min-width: 0;
}

.orion-enterprise-os .flow55-owner-metrics span {
  border: 1px solid rgba(11, 99, 206, 0.22);
  border-radius: 999px;
  background: #eef6ff;
  padding: 5px 8px;
  color: #0d4f92;
  font-size: 12px;
  font-weight: 900;
}

.orion-enterprise-os .flow55-owner-list {
  justify-content: stretch;
}

.orion-enterprise-os .flow55-owner-list button {
  flex: 1 1 180px;
}

.orion-enterprise-os .flow55-process-stepper {
  grid-template-columns: minmax(190px, 0.65fr) minmax(0, 1.7fr);
  align-items: center;
  padding: 12px;
  background: #ffffff;
}

.orion-enterprise-os .flow55-step-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 6px;
  min-width: 0;
}

.orion-enterprise-os .flow55-step-list button,
.orion-enterprise-os .flow55-step-list span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  min-width: 0;
  min-height: 38px;
  border: 1px solid rgba(91, 118, 149, 0.18);
  border-radius: 8px;
  background: var(--flow55-panel-soft);
  padding: 7px 8px;
  color: var(--flow55-muted);
  font-size: 12px;
  font-weight: 900;
}

.orion-enterprise-os .flow55-step-list button {
  cursor: pointer;
}

.orion-enterprise-os .flow55-step-list b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e5edf5;
  color: #31536f;
  font-size: 12px;
}

.orion-enterprise-os .flow55-step-list .done,
.orion-enterprise-os .flow55-step-list .active {
  border-color: rgba(21, 130, 215, 0.32);
  background: #eef7ff;
  color: #0d4f92;
}

.orion-enterprise-os .flow55-step-list .done b {
  background: rgba(21, 150, 111, 0.16);
  color: var(--flow55-teal);
}

.orion-enterprise-os .flow55-step-list .active b {
  background: var(--flow55-brand);
  color: #fff;
}

.orion-enterprise-os .flow55-universal-create {
  background: #fbfdff;
}

.orion-enterprise-os .flow55-driver-actions {
  border-color: rgba(21, 150, 111, 0.28);
  background:
    linear-gradient(115deg, #061526, #083b69 48%, #ffffff 48%),
    #fff;
}

.orion-enterprise-os .flow55-driver-actions .eyebrow,
.orion-enterprise-os .flow55-driver-actions strong {
  color: #f8fbff;
}

.orion-enterprise-os .flow55-driver-actions small {
  color: rgba(232, 241, 248, 0.82);
}

.orion-enterprise-os .flow55-record-drawer,
.orion-enterprise-os .flow55-approval-queue {
  margin: 0 0 10px;
  border: 1px solid var(--flow55-line);
  border-radius: 8px;
  background: var(--flow55-panel);
  box-shadow: 0 8px 22px rgba(12, 33, 52, 0.06);
}

.orion-enterprise-os .flow55-record-drawer > summary,
.orion-enterprise-os .flow55-approval-queue > summary {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 10px 12px;
  cursor: pointer;
}

.orion-enterprise-os .flow55-record-drawer > summary span:first-child,
.orion-enterprise-os .flow55-approval-queue > summary span:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.orion-enterprise-os .flow55-record-drawer > summary small,
.orion-enterprise-os .flow55-approval-queue > summary small {
  color: var(--flow55-muted);
  overflow-wrap: anywhere;
}

.orion-enterprise-os .flow55-record-list,
.orion-enterprise-os .flow55-approval-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  padding: 0 12px 12px;
}

.orion-enterprise-os .flow55-record-list button,
.orion-enterprise-os .flow55-approval-list button {
  min-height: 88px;
}

.orion-enterprise-os .flow55-record-list span {
  color: var(--flow55-sky);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.orion-enterprise-os .flow55-record-list i {
  justify-self: start;
  font-style: normal;
}

.orion-enterprise-os .flow55-done-path {
  border-color: rgba(21, 150, 111, 0.28);
  background: linear-gradient(180deg, #ffffff, #f6fbf9);
}

.orion-enterprise-os .flow55-check-row button {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  min-height: 36px;
  border: 1px solid rgba(91, 118, 149, 0.18);
  border-radius: 999px;
  background: #fff;
  padding: 6px 9px;
  color: var(--flow55-ink);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.orion-enterprise-os .flow55-check-row b {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(183, 121, 22, 0.14);
  color: var(--flow55-amber);
  font-size: 12px;
}

.orion-enterprise-os .flow55-check-row .ready b {
  background: rgba(21, 150, 111, 0.16);
  color: var(--flow55-teal);
}

.orion-enterprise-os .flow55-report-hub {
  background: #fff;
}

.orion-enterprise-os .flow55-report-hub > div:last-child button {
  flex: 1 1 130px;
  min-height: 64px;
}

.orion-enterprise-os .flow55-form-ribbon {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0 0 8px;
  border: 1px solid rgba(11, 99, 206, 0.16);
  border-radius: 8px;
  background: #f4f9ff;
  padding: 8px 10px;
}

.orion-enterprise-os .flow55-form-ribbon span:first-child {
  display: grid;
  min-width: 0;
}

.orion-enterprise-os .flow55-form-ribbon strong {
  color: var(--flow55-ink);
  font-size: 12px;
}

.orion-enterprise-os .flow55-form-ribbon small {
  color: var(--flow55-muted);
  overflow-wrap: anywhere;
}

.orion-enterprise-os .flow55-guided-form {
  position: relative;
  border-color: rgba(11, 99, 206, 0.14);
}

.orion-enterprise-os .flow55-table-workbench {
  border-radius: 8px;
}

.orion-enterprise-os .flow55-card-guard,
.orion-enterprise-os .flow55-card-guard * {
  min-width: 0;
}

.orion-enterprise-os .flow55-card-guard {
  overflow-wrap: anywhere;
}

.orion-enterprise-os .flow55-card-guard h1,
.orion-enterprise-os .flow55-card-guard h2,
.orion-enterprise-os .flow55-card-guard h3,
.orion-enterprise-os .flow55-card-guard h4,
.orion-enterprise-os .flow55-card-guard strong,
.orion-enterprise-os .flow55-card-guard p,
.orion-enterprise-os .flow55-card-guard small,
.orion-enterprise-os .flow55-card-guard span {
  max-width: 100%;
}

.orion-enterprise-os .flow55-blocked-reason {
  cursor: not-allowed;
  filter: saturate(0.82);
}

.orion-enterprise-os .flow55-section-surface {
  scroll-margin-top: 92px;
}

.orion-enterprise-os .flow55-main[data-flow55-portal-role="driver"] .client-ui30-sticky-actions {
  bottom: 82px;
}

@media (max-width: 1180px) {
  .orion-enterprise-os .flow55-role-grid {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }
}

@media (max-width: 980px) {
  .orion-enterprise-os .flow55-context-rail,
  .orion-enterprise-os .flow55-process-stepper,
  .orion-enterprise-os .flow55-universal-create,
  .orion-enterprise-os .flow55-driver-actions,
  .orion-enterprise-os .flow55-done-path,
  .orion-enterprise-os .flow55-report-hub {
    grid-template-columns: 1fr;
  }

  .orion-enterprise-os .flow55-context-rail {
    background:
      linear-gradient(180deg, rgba(9, 35, 63, 0.98), rgba(15, 76, 123, 0.94) 42%, #ffffff 42%),
      #fff;
  }

  .orion-enterprise-os .flow55-driver-actions {
    background:
      linear-gradient(180deg, #061526, #083b69 42%, #ffffff 42%),
      #fff;
  }

  .orion-enterprise-os .flow55-context-rail nav,
  .orion-enterprise-os .flow55-create-actions,
  .orion-enterprise-os .flow55-driver-actions nav,
  .orion-enterprise-os .flow55-check-row,
  .orion-enterprise-os .flow55-report-hub > div:last-child,
  .orion-enterprise-os .flow55-owner-metrics {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .orion-enterprise-os .flow55-role-head,
  .orion-enterprise-os .flow55-owner-head {
    grid-template-columns: 1fr;
  }

  .orion-enterprise-os .flow55-health-ring {
    width: 54px;
    height: 54px;
  }

  .orion-enterprise-os .flow55-role-grid,
  .orion-enterprise-os .flow55-record-list,
  .orion-enterprise-os .flow55-approval-list {
    grid-template-columns: 1fr;
  }

  .orion-enterprise-os .flow55-step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .orion-enterprise-os .flow55-context-copy strong,
  .orion-enterprise-os .flow55-role-head strong,
  .orion-enterprise-os .flow55-process-stepper strong,
  .orion-enterprise-os .flow55-universal-create strong,
  .orion-enterprise-os .flow55-driver-actions strong,
  .orion-enterprise-os .flow55-done-path strong,
  .orion-enterprise-os .flow55-report-hub strong {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }
}

@media (max-width: 460px) {
  .orion-enterprise-os .flow55-context-rail,
  .orion-enterprise-os .flow55-role-home,
  .orion-enterprise-os .flow55-owner-control-tower,
  .orion-enterprise-os .flow55-process-stepper,
  .orion-enterprise-os .flow55-universal-create,
  .orion-enterprise-os .flow55-driver-actions,
  .orion-enterprise-os .flow55-done-path,
  .orion-enterprise-os .flow55-report-hub,
  .orion-enterprise-os .flow55-record-drawer,
  .orion-enterprise-os .flow55-approval-queue {
    margin-right: 0;
    margin-left: 0;
  }

  .orion-enterprise-os .flow55-step-list {
    grid-template-columns: 1fr;
  }

  .orion-enterprise-os .flow55-context-rail nav .btn,
  .orion-enterprise-os .flow55-create-actions .btn,
  .orion-enterprise-os .flow55-driver-actions nav .btn {
    flex: 1 1 130px;
  }
}

.orion-enterprise-os.command65-os {
  --command65-ink: #102033;
  --command65-muted: #5f7187;
  --command65-line: rgba(84, 104, 128, 0.18);
  --command65-blue: #0b63ce;
  --command65-teal: #168f79;
  --command65-amber: #b77916;
  --command65-red: #b42318;
  --command65-panel: #ffffff;
  --command65-soft: #f5f8fb;
}

.orion-enterprise-os .command65-main {
  gap: 12px;
}

.orion-enterprise-os .command65-surface,
.orion-enterprise-os .command65-surface *,
.orion-enterprise-os .command65-portal-modes,
.orion-enterprise-os .command65-portal-modes * {
  box-sizing: border-box;
  min-width: 0;
}

.orion-enterprise-os .command65-surface {
  width: 100%;
  max-width: 100%;
  overflow-wrap: break-word;
}

.orion-enterprise-os .command65-text-guard {
  max-width: 100%;
  overflow-wrap: break-word;
}

.orion-enterprise-os .command65-guided-dashboard,
.orion-enterprise-os .command65-daily-inbox,
.orion-enterprise-os .command65-next-action,
.orion-enterprise-os .command65-record-graph,
.orion-enterprise-os .command65-exception-storylines,
.orion-enterprise-os .command65-communication-routing,
.orion-enterprise-os .command65-handoff-lane,
.orion-enterprise-os .command65-close-loop-receipt,
.orion-enterprise-os .command65-command-search,
.orion-enterprise-os .command65-portal-modes,
.orion-enterprise-os .command65-unified-timeline {
  margin: 0 0 12px;
  border: 1px solid var(--command65-line);
  border-radius: 8px;
  background: var(--command65-panel);
  box-shadow: 0 12px 28px rgba(18, 35, 56, 0.07);
  color: var(--command65-ink);
}

.orion-enterprise-os .command65-guided-dashboard {
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) 96px minmax(360px, 2fr) auto;
  gap: 12px;
  align-items: stretch;
  padding: 12px;
  border-color: rgba(11, 99, 206, 0.2);
  background:
    linear-gradient(90deg, rgba(8, 29, 51, 0.98), rgba(15, 62, 103, 0.96) 34%, #ffffff 34%),
    #ffffff;
}

.orion-enterprise-os .command65-dashboard-copy {
  display: grid;
  align-content: center;
  gap: 3px;
  color: #ffffff;
}

.orion-enterprise-os .command65-dashboard-copy strong {
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: 0;
}

.orion-enterprise-os .command65-dashboard-copy small {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.35;
}

.orion-enterprise-os .command65-priority-score {
  display: grid;
  place-items: center;
  min-height: 82px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.orion-enterprise-os .command65-priority-score span {
  font-size: 26px;
  font-weight: 950;
  line-height: 1;
}

.orion-enterprise-os .command65-priority-score small {
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.orion-enterprise-os .command65-priority-score.pending {
  border-color: rgba(183, 121, 22, 0.38);
  background: rgba(183, 121, 22, 0.18);
}

.orion-enterprise-os .command65-dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.orion-enterprise-os .command65-dashboard-metrics button,
.orion-enterprise-os .command65-graph-grid button,
.orion-enterprise-os .command65-story-grid button,
.orion-enterprise-os .command65-route-list button,
.orion-enterprise-os .command65-close-loop-receipt button,
.orion-enterprise-os .command65-inbox-list button,
.orion-enterprise-os .command65-timeline-list button {
  display: grid;
  gap: 4px;
  align-content: start;
  min-height: 72px;
  border: 1px solid rgba(84, 104, 128, 0.16);
  border-radius: 8px;
  background: #ffffff;
  padding: 9px;
  color: var(--command65-ink);
  text-align: left;
  cursor: pointer;
}

.orion-enterprise-os .command65-dashboard-metrics button:hover,
.orion-enterprise-os .command65-graph-grid button:hover,
.orion-enterprise-os .command65-story-grid button:hover,
.orion-enterprise-os .command65-route-list button:hover,
.orion-enterprise-os .command65-close-loop-receipt button:hover,
.orion-enterprise-os .command65-inbox-list button:hover,
.orion-enterprise-os .command65-timeline-list button:hover {
  border-color: rgba(11, 99, 206, 0.35);
  box-shadow: 0 10px 20px rgba(11, 99, 206, 0.08);
  transform: translateY(-1px);
}

.orion-enterprise-os .command65-dashboard-metrics span,
.orion-enterprise-os .command65-graph-grid span,
.orion-enterprise-os .command65-route-list span,
.orion-enterprise-os .command65-timeline-list span {
  color: var(--command65-blue);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.orion-enterprise-os .command65-dashboard-metrics strong {
  font-size: 20px;
  line-height: 1.05;
}

.orion-enterprise-os .command65-dashboard-metrics small,
.orion-enterprise-os .command65-graph-grid small,
.orion-enterprise-os .command65-story-grid small,
.orion-enterprise-os .command65-route-list small,
.orion-enterprise-os .command65-close-loop-receipt small,
.orion-enterprise-os .command65-inbox-list small,
.orion-enterprise-os .command65-timeline-list small {
  color: var(--command65-muted);
  line-height: 1.35;
}

.orion-enterprise-os .command65-dashboard-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-content: center;
  justify-content: flex-end;
  min-width: 180px;
}

.orion-enterprise-os .command65-portal-modes {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px 10px;
  background: #fbfcfe;
}

.orion-enterprise-os .command65-portal-modes > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.orion-enterprise-os .command65-portal-modes button {
  display: grid;
  gap: 2px;
  min-height: 44px;
  border: 1px solid rgba(84, 104, 128, 0.16);
  border-radius: 8px;
  background: #ffffff;
  padding: 7px 9px;
  color: var(--command65-ink);
  text-align: left;
}

.orion-enterprise-os .command65-portal-modes button.active {
  border-color: rgba(22, 143, 121, 0.34);
  background: #f1fbf8;
}

.orion-enterprise-os .command65-portal-modes strong {
  font-size: 12px;
}

.orion-enterprise-os .command65-portal-modes small {
  color: var(--command65-muted);
}

.orion-enterprise-os .command65-section-head {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.orion-enterprise-os .command65-section-head > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.orion-enterprise-os .command65-section-head strong,
.orion-enterprise-os .command65-next-action strong,
.orion-enterprise-os .command65-record-graph strong,
.orion-enterprise-os .command65-exception-storylines strong,
.orion-enterprise-os .command65-communication-routing strong,
.orion-enterprise-os .command65-close-loop-receipt strong,
.orion-enterprise-os .command65-command-search strong {
  font-size: 14px;
  line-height: 1.2;
}

.orion-enterprise-os .command65-daily-inbox,
.orion-enterprise-os .command65-record-graph,
.orion-enterprise-os .command65-exception-storylines,
.orion-enterprise-os .command65-communication-routing,
.orion-enterprise-os .command65-close-loop-receipt,
.orion-enterprise-os .command65-command-search {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.orion-enterprise-os .command65-inbox-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.orion-enterprise-os .command65-inbox-list button {
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: start;
  min-height: 94px;
}

.orion-enterprise-os .command65-inbox-list button > b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--command65-blue);
  font-size: 12px;
}

.orion-enterprise-os .command65-inbox-list button.urgent > b {
  background: #fff3de;
  color: var(--command65-amber);
}

.orion-enterprise-os .command65-inbox-list button > span {
  display: grid;
  gap: 3px;
}

.orion-enterprise-os .command65-inbox-list em {
  color: var(--command65-muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.orion-enterprise-os .command65-next-action {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(240px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-color: rgba(22, 143, 121, 0.26);
  background: linear-gradient(90deg, #f3fbf8, #ffffff 48%);
}

.orion-enterprise-os .command65-next-action > div {
  display: grid;
  gap: 3px;
}

.orion-enterprise-os .command65-next-action ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.orion-enterprise-os .command65-next-action li {
  min-height: 34px;
  border: 1px solid rgba(22, 143, 121, 0.18);
  border-radius: 8px;
  background: #ffffff;
  padding: 7px 8px;
  color: var(--command65-ink);
  font-size: 12px;
  font-weight: 850;
}

.orion-enterprise-os .command65-graph-grid,
.orion-enterprise-os .command65-story-grid,
.orion-enterprise-os .command65-route-list,
.orion-enterprise-os .command65-close-loop-receipt > div:last-child,
.orion-enterprise-os .command65-timeline-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
}

.orion-enterprise-os .command65-graph-grid button {
  position: relative;
  min-height: 106px;
}

.orion-enterprise-os .command65-graph-grid button::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 12px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--command65-teal);
  opacity: 0.78;
}

.orion-enterprise-os .command65-unified-timeline > summary {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 10px 12px;
  cursor: pointer;
}

.orion-enterprise-os .command65-unified-timeline > summary span:first-child {
  display: grid;
  gap: 2px;
}

.orion-enterprise-os .command65-unified-timeline > summary small {
  color: var(--command65-muted);
}

.orion-enterprise-os .command65-timeline-list {
  padding: 0 12px 12px;
}

.orion-enterprise-os .command65-story-grid button {
  min-height: 96px;
}

.orion-enterprise-os .command65-story-grid .status-pill {
  justify-self: start;
}

.orion-enterprise-os .command65-handoff-lane {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px 12px;
  background: #fbfcfe;
}

.orion-enterprise-os .command65-handoff-lane > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.orion-enterprise-os .command65-handoff-lane article {
  display: grid;
  gap: 3px;
  min-height: 74px;
  border: 1px solid rgba(84, 104, 128, 0.16);
  border-radius: 8px;
  background: #ffffff;
  padding: 8px 9px;
}

.orion-enterprise-os .command65-handoff-lane article span {
  color: var(--command65-blue);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.orion-enterprise-os .command65-handoff-lane article small,
.orion-enterprise-os .command65-next-action small,
.orion-enterprise-os .command65-close-loop-receipt small,
.orion-enterprise-os .command65-command-search small,
.orion-enterprise-os .command65-section-head small {
  color: var(--command65-muted);
  line-height: 1.35;
}

.orion-enterprise-os .command65-close-loop-receipt {
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
}

.orion-enterprise-os .command65-close-loop-receipt > div:first-child,
.orion-enterprise-os .command65-command-search > div:first-child {
  display: grid;
  gap: 3px;
}

.orion-enterprise-os .command65-command-search {
  grid-template-columns: minmax(240px, 1fr) auto;
  align-items: center;
}

.orion-enterprise-os .command65-command-search > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.orion-enterprise-os .command65-main[data-command65-portal-role="driver"] .command65-guided-dashboard {
  border-color: rgba(22, 143, 121, 0.28);
}

.orion-enterprise-os .command65-main[data-command65-portal-role="driver"] .command65-dashboard-copy strong::after {
  content: " | Mobile ready";
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 1180px) {
  .orion-enterprise-os .command65-guided-dashboard {
    grid-template-columns: minmax(220px, 1fr) 88px minmax(300px, 1.4fr);
  }

  .orion-enterprise-os .command65-dashboard-jump {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 980px) {
  .orion-enterprise-os .command65-guided-dashboard {
    grid-template-columns: 1fr;
    background:
      linear-gradient(180deg, rgba(8, 29, 51, 0.98), rgba(15, 62, 103, 0.96) 30%, #ffffff 30%),
      #ffffff;
  }

  .orion-enterprise-os .command65-priority-score {
    justify-self: start;
    width: 96px;
  }

  .orion-enterprise-os .command65-dashboard-metrics,
  .orion-enterprise-os .command65-inbox-list,
  .orion-enterprise-os .command65-next-action,
  .orion-enterprise-os .command65-close-loop-receipt,
  .orion-enterprise-os .command65-command-search,
  .orion-enterprise-os .command65-handoff-lane {
    grid-template-columns: 1fr;
  }

  .orion-enterprise-os .command65-command-search > div:last-child,
  .orion-enterprise-os .command65-dashboard-jump,
  .orion-enterprise-os .command65-section-head {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .orion-enterprise-os .command65-dashboard-metrics,
  .orion-enterprise-os .command65-portal-modes,
  .orion-enterprise-os .command65-portal-modes > div,
  .orion-enterprise-os .command65-handoff-lane > div,
  .orion-enterprise-os .command65-next-action ol {
    grid-template-columns: 1fr;
  }

  .orion-enterprise-os .command65-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .orion-enterprise-os .command65-section-head .btn {
    align-self: flex-start;
  }

  .orion-enterprise-os .command65-inbox-list button {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .orion-enterprise-os .command65-inbox-list button .status-pill {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 460px) {
  .orion-enterprise-os .command65-guided-dashboard,
  .orion-enterprise-os .command65-daily-inbox,
  .orion-enterprise-os .command65-next-action,
  .orion-enterprise-os .command65-record-graph,
  .orion-enterprise-os .command65-exception-storylines,
  .orion-enterprise-os .command65-communication-routing,
  .orion-enterprise-os .command65-handoff-lane,
  .orion-enterprise-os .command65-close-loop-receipt,
  .orion-enterprise-os .command65-command-search,
  .orion-enterprise-os .command65-portal-modes,
  .orion-enterprise-os .command65-unified-timeline {
    margin-right: 0;
    margin-left: 0;
  }

  .orion-enterprise-os .command65-dashboard-jump .btn,
  .orion-enterprise-os .command65-command-search .btn {
    flex: 1 1 140px;
  }
}

.orion-enterprise-os.orion275-os {
  --orion275-ink: #102033;
  --orion275-muted: #607286;
  --orion275-line: rgba(76, 96, 122, 0.18);
  --orion275-blue: #0b63ce;
  --orion275-teal: #167f71;
  --orion275-amber: #a46a10;
  --orion275-red: #b42318;
  --orion275-soft: #f6f9fc;
  --orion275-panel: #ffffff;
}

.orion-enterprise-os .orion275-main {
  overflow-x: clip;
}

.orion-enterprise-os .orion275-main,
.orion-enterprise-os .orion275-main *,
.orion-enterprise-os .orion275-text-safe,
.orion-enterprise-os .orion275-text-safe * {
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  hyphens: none !important;
}

.orion-enterprise-os .orion275-main button,
.orion-enterprise-os .orion275-main .btn {
  min-width: 0;
  max-width: 100%;
}

.orion-enterprise-os .orion275-main .card,
.orion-enterprise-os .orion275-main .module-card,
.orion-enterprise-os .orion275-main .enterprise-workspace-card,
.orion-enterprise-os .orion275-main .enterprise-action-card,
.orion-enterprise-os .orion275-main .timeline-item,
.orion-enterprise-os .orion275-main .notice {
  min-width: min(100%, 220px);
}

.orion-enterprise-os .orion275-main .grid.auto,
.orion-enterprise-os .orion275-main .grid.two,
.orion-enterprise-os .orion275-main .grid.three,
.orion-enterprise-os .orion275-main .grid.four,
.orion-enterprise-os .orion275-main .customer-capability-grid,
.orion-enterprise-os .orion275-main .enterprise-workspace-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)) !important;
}

.orion-enterprise-os .orion275-main .status-strip,
.orion-enterprise-os .orion275-main .row-actions,
.orion-enterprise-os .orion275-main .module-title,
.orion-enterprise-os .orion275-main .split-actions {
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.orion-enterprise-os .orion275-main .status-pill,
.orion-enterprise-os .orion275-main .pill,
.orion-enterprise-os .orion275-safe-pill {
  position: static !important;
  display: inline-flex;
  width: auto;
  max-width: 100%;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  white-space: normal !important;
  line-height: 1.2;
  text-align: center;
  z-index: 1;
}

.orion-enterprise-os .orion275-main .row-actions button,
.orion-enterprise-os .orion275-main .row-actions .btn,
.orion-enterprise-os .orion275-main .module-card > button,
.orion-enterprise-os .orion275-main .enterprise-workspace-card > button,
.orion-enterprise-os .orion275-main .enterprise-action-card > button {
  flex: 1 1 132px;
  min-width: 120px;
}

.orion-enterprise-os .orion275-duplicate-pill {
  display: none !important;
}

.orion-enterprise-os .orion275-command-strip,
.orion-enterprise-os .orion275-department-command,
.orion-enterprise-os .orion275-workstream-ledger,
.orion-enterprise-os .orion275-reliability-center,
.orion-enterprise-os .orion275-entity-command {
  width: 100%;
  max-width: 100%;
  margin: 0 0 12px;
  border: 1px solid var(--orion275-line);
  border-radius: 8px;
  background: var(--orion275-panel);
  box-shadow: 0 14px 30px rgba(16, 32, 51, 0.07);
  color: var(--orion275-ink);
}

.orion-enterprise-os .orion275-command-strip {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(480px, 1.4fr);
  gap: 12px;
  align-items: stretch;
  padding: 12px;
  border-color: rgba(11, 99, 206, 0.2);
  background: linear-gradient(90deg, #f7fbff, #ffffff 52%);
}

.orion-enterprise-os .orion275-command-strip > div:first-child,
.orion-enterprise-os .orion275-section-head > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.orion-enterprise-os .orion275-command-strip strong,
.orion-enterprise-os .orion275-section-head strong {
  color: var(--orion275-ink);
  font-size: 15px;
  line-height: 1.2;
}

.orion-enterprise-os .orion275-command-strip small,
.orion-enterprise-os .orion275-section-head small,
.orion-enterprise-os .orion275-department-grid small,
.orion-enterprise-os .orion275-ledger-grid small,
.orion-enterprise-os .orion275-reliability-grid small,
.orion-enterprise-os .orion275-entity-grid small {
  color: var(--orion275-muted);
  line-height: 1.36;
}

.orion-enterprise-os .orion275-strip-metrics,
.orion-enterprise-os .orion275-department-grid,
.orion-enterprise-os .orion275-ledger-grid,
.orion-enterprise-os .orion275-reliability-grid,
.orion-enterprise-os .orion275-entity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  min-width: 0;
}

.orion-enterprise-os .orion275-strip-metrics {
  grid-template-columns: repeat(4, minmax(120px, 1fr));
}

.orion-enterprise-os .orion275-strip-metrics button,
.orion-enterprise-os .orion275-department-grid button,
.orion-enterprise-os .orion275-ledger-grid button,
.orion-enterprise-os .orion275-reliability-grid button,
.orion-enterprise-os .orion275-entity-grid button {
  display: grid;
  gap: 4px;
  align-content: start;
  min-width: 0;
  min-height: 88px;
  border: 1px solid rgba(76, 96, 122, 0.16);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  color: var(--orion275-ink);
  text-align: left;
  cursor: pointer;
}

.orion-enterprise-os .orion275-strip-metrics button:hover,
.orion-enterprise-os .orion275-department-grid button:hover,
.orion-enterprise-os .orion275-ledger-grid button:hover,
.orion-enterprise-os .orion275-reliability-grid button:hover,
.orion-enterprise-os .orion275-entity-grid button:hover {
  border-color: rgba(11, 99, 206, 0.32);
  box-shadow: 0 12px 22px rgba(11, 99, 206, 0.08);
}

.orion-enterprise-os .orion275-strip-metrics span,
.orion-enterprise-os .orion275-department-grid span,
.orion-enterprise-os .orion275-ledger-grid span,
.orion-enterprise-os .orion275-reliability-grid span,
.orion-enterprise-os .orion275-entity-grid span {
  color: var(--orion275-blue);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.orion-enterprise-os .orion275-strip-metrics strong {
  font-size: 20px;
  line-height: 1.05;
}

.orion-enterprise-os .orion275-department-command,
.orion-enterprise-os .orion275-reliability-center,
.orion-enterprise-os .orion275-entity-command {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.orion-enterprise-os .orion275-section-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.orion-enterprise-os .orion275-workstream-ledger > summary {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 10px 12px;
  cursor: pointer;
}

.orion-enterprise-os .orion275-workstream-ledger > summary span:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.orion-enterprise-os .orion275-workstream-ledger > summary small {
  color: var(--orion275-muted);
}

.orion-enterprise-os .orion275-ledger-grid {
  padding: 0 12px 12px;
}

.orion-enterprise-os .orion275-ledger-grid b {
  justify-self: start;
  border-radius: 999px;
  background: #eef5ff;
  padding: 5px 8px;
  color: var(--orion275-blue);
  font-size: 12px;
}

.orion-enterprise-os .orion275-entity-grid .empty {
  grid-column: 1 / -1;
}

@media (max-width: 1180px) {
  .orion-enterprise-os .orion275-command-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .orion-enterprise-os .orion275-strip-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .orion-enterprise-os .orion275-section-head {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .orion-enterprise-os .orion275-main {
    padding-right: max(12px, env(safe-area-inset-right));
    padding-left: max(12px, env(safe-area-inset-left));
  }

  .orion-enterprise-os .orion275-main .grid.auto,
  .orion-enterprise-os .orion275-main .grid.two,
  .orion-enterprise-os .orion275-main .grid.three,
  .orion-enterprise-os .orion275-main .grid.four,
  .orion-enterprise-os .orion275-main .customer-capability-grid,
  .orion-enterprise-os .orion275-main .enterprise-workspace-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .orion-enterprise-os .orion275-strip-metrics,
  .orion-enterprise-os .orion275-department-grid,
  .orion-enterprise-os .orion275-ledger-grid,
  .orion-enterprise-os .orion275-reliability-grid,
  .orion-enterprise-os .orion275-entity-grid {
    grid-template-columns: 1fr;
  }

  .orion-enterprise-os .orion275-main button,
  .orion-enterprise-os .orion275-main .btn {
    min-width: 0;
    white-space: normal !important;
  }

  .orion-enterprise-os .orion275-main .row-actions {
    width: 100%;
  }

  .orion-enterprise-os .orion275-main .row-actions.action-overflow,
  .orion-enterprise-os .orion275-main .row-actions.seamless-action-menu {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .orion-enterprise-os .orion275-main .row-actions > *,
  .orion-enterprise-os .orion275-main .row-actions button,
  .orion-enterprise-os .orion275-main .row-actions .btn,
  .orion-enterprise-os .orion275-main .seamless-repeated-action,
  .orion-enterprise-os .orion275-main .module-card > button,
  .orion-enterprise-os .orion275-main .enterprise-workspace-card > button,
  .orion-enterprise-os .orion275-main .enterprise-action-card > button {
    flex: 1 1 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .orion-enterprise-os .orion275-main .course-row {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .orion-enterprise-os .orion275-main .course-row > .row-actions {
    grid-column: 1 / -1;
    padding-left: 38px;
  }

  .orion-enterprise-os .orion275-main .course-row > .row-actions > * {
    flex: 1 1 128px !important;
    width: auto !important;
  }
}

@media (max-width: 460px) {
  .orion-enterprise-os .orion275-command-strip,
  .orion-enterprise-os .orion275-department-command,
  .orion-enterprise-os .orion275-workstream-ledger,
  .orion-enterprise-os .orion275-reliability-center,
  .orion-enterprise-os .orion275-entity-command {
    margin-right: 0;
    margin-left: 0;
  }

  .orion-enterprise-os .orion275-main .course-row > .row-actions {
    padding-left: 0;
  }

  .orion-enterprise-os .orion275-main .course-row > .row-actions > * {
    flex: 1 1 100% !important;
    width: 100% !important;
  }
}

/* Polished all-in-one TMS layer */
.polished-tms-os {
  --polish-ink: #17202c;
  --polish-muted: #5f6d7d;
  --polish-line: #dce4ee;
  --polish-soft: #f6f8fb;
  --polish-card: #ffffff;
  --polish-blue: #0b63ce;
  --polish-green: #0f8a5f;
  --polish-amber: #9b6500;
  --polish-red: #b42318;
}

body:has(.polished-tms-os) {
  background: #f6f8fb;
}

.polished-tms-os .topbar {
  grid-template-columns: minmax(280px, 1fr) minmax(260px, auto) minmax(260px, auto);
  border-bottom: 1px solid var(--polish-line);
  background: rgba(255, 255, 255, 0.96);
  color: var(--polish-ink);
  box-shadow: 0 8px 28px rgba(23, 32, 44, 0.08);
}

.polished-tms-os .brand-logo-frame {
  width: 46px;
  height: 46px;
  border-color: var(--polish-line);
  border-radius: 10px;
  background-color: #fff;
  box-shadow: none;
}

.polished-tms-os .brand-copy h1,
.polished-tms-os .brand-copy .eyebrow {
  color: var(--polish-ink);
}

.polished-tms-os .brand-copy .help,
.polished-tms-os .topbar .help {
  color: var(--polish-muted);
}

.polished-tms-os .shell-grid {
  background: var(--polish-soft);
}

.polished-tms-os .sidebar {
  border-right: 1px solid var(--polish-line);
  background: #fff;
  box-shadow: 10px 0 28px rgba(23, 32, 44, 0.05);
}

.polished-tms-os .nav-group-toggle {
  border-color: transparent;
  background: transparent;
  color: #647084;
  letter-spacing: 0;
}

.polished-tms-os .nav-button {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--polish-ink);
}

.polished-tms-os .nav-button:hover,
.polished-tms-os .nav-button.active {
  border-color: rgba(11, 99, 206, 0.18);
  background: #eef5ff;
  color: var(--polish-blue);
}

.polished-tms-os .nav-icon {
  border-radius: 8px;
  background: #eef2f7;
  color: #526173;
}

.polished-tms-os .nav-button.active .nav-icon {
  background: var(--polish-blue);
  color: #fff;
}

.polished-tms-os .sidebar-status {
  border: 1px solid var(--polish-line);
  background: #f8fafc;
  color: var(--polish-ink);
}

.polished-tms-os .main {
  background:
    linear-gradient(180deg, #f8fbff 0, #f6f8fb 280px),
    var(--polish-soft);
}

.polished-tms-os .workspace-head {
  align-items: center;
  border: 1px solid var(--polish-line);
  border-radius: 12px;
  background: #fff;
  padding: 16px 18px;
  box-shadow: 0 10px 24px rgba(23, 32, 44, 0.06);
}

.orion-enterprise-os .shell-grid[data-role="driver"],
.orion-enterprise-os .shell-grid.customer-shell[data-role="driver"],
.polished-tms-os .shell-grid[data-role="driver"] {
  grid-template-columns: 272px minmax(0, 1fr) !important;
}

.orion-enterprise-os .shell-grid[data-role="driver"] .sidebar,
.orion-enterprise-os .shell-grid.customer-shell[data-role="driver"] .sidebar,
.polished-tms-os .shell-grid[data-role="driver"] .sidebar {
  display: block !important;
  position: sticky !important;
  top: 84px !important;
  height: calc(100vh - 84px) !important;
  max-height: calc(100vh - 84px) !important;
  overflow: auto !important;
}

.orion-enterprise-os .shell-grid[data-role="driver"] .main,
.orion-enterprise-os .shell-grid.customer-shell[data-role="driver"] .main,
.polished-tms-os .shell-grid[data-role="driver"] .main {
  grid-column: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  inline-size: auto !important;
}

.polished-tms-os .workspace-head::before {
  display: none;
}

.polished-tms-os .workspace-title {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.polished-tms-os .workspace-title h2 {
  color: var(--polish-ink);
  font-size: clamp(22px, 2.2vw, 34px);
  letter-spacing: 0;
}

.polished-tms-os .workspace-title p {
  max-width: 920px;
  margin: 0;
  color: var(--polish-muted);
  font-size: 14px;
  line-height: 1.45;
}

.polished-tms-os .btn,
.polished-tms-os button.btn {
  border-radius: 8px;
  border-color: var(--polish-line);
  background: #fff;
  color: var(--polish-ink);
  box-shadow: none;
}

.polished-tms-os .btn.primary,
.polished-tms-os button.btn.primary {
  border-color: var(--polish-blue);
  background: var(--polish-blue);
  color: #fff;
}

.polished-tms-os .card,
.polished-tms-os .metric.card,
.polished-tms-os details.card,
.polished-tms-os .module-card,
.polished-tms-os .enterprise-action-card,
.polished-tms-os .enterprise-focus-card {
  border-color: var(--polish-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(23, 32, 44, 0.05);
}

.polished-tms-command,
.polished-gap-panel {
  display: grid;
  gap: 14px;
  border: 1px solid var(--polish-line);
  border-radius: 14px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 16px 36px rgba(23, 32, 44, 0.08);
}

.polished-command-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 18px;
  align-items: center;
  min-width: 0;
}

.polished-command-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.polished-command-copy h2 {
  margin: 0;
  color: var(--polish-ink);
  font-size: clamp(24px, 2.4vw, 38px);
  line-height: 1.05;
  letter-spacing: 0;
}

.polished-command-copy p {
  max-width: 860px;
  margin: 0;
  color: var(--polish-muted);
  line-height: 1.48;
}

.polished-command-score {
  display: grid;
  place-items: center;
  min-height: 112px;
  border: 1px solid #cfe7da;
  border-radius: 12px;
  background: #f1fbf6;
  color: var(--polish-green);
}

.polished-command-score span,
.polished-command-score small,
.polished-metric-row span,
.polished-gap-grid span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.polished-command-score strong {
  font-size: 42px;
  line-height: 1;
}

.polished-metric-row,
.polished-essential-grid,
.polished-gap-grid,
.polished-workflow-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  min-width: 0;
}

.polished-command-body {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(320px, 1.55fr);
  gap: 12px;
  min-width: 0;
}

.polished-next-card {
  display: grid;
  gap: 8px;
  align-content: start;
  border: 1px solid #e8d9bd;
  border-radius: 10px;
  background: #fffaf0;
  padding: 14px;
}

.polished-next-card h3 {
  margin: 0;
  color: var(--polish-ink);
}

.polished-next-card p {
  margin: 0;
  color: var(--polish-muted);
}

.polished-metric-row button,
.polished-essential-grid button,
.polished-gap-grid button,
.polished-workflow-strip button {
  display: grid;
  gap: 4px;
  align-content: start;
  min-width: 0;
  min-height: 86px;
  border: 1px solid var(--polish-line);
  border-radius: 10px;
  background: #f8fafc;
  color: var(--polish-ink);
  padding: 12px;
  text-align: left;
}

.polished-metric-row button:hover,
.polished-essential-grid button:hover,
.polished-gap-grid button:hover,
.polished-workflow-strip button:hover {
  border-color: rgba(11, 99, 206, 0.34);
  background: #eef5ff;
}

.polished-metric-row strong,
.polished-essential-grid strong,
.polished-gap-grid strong {
  min-width: 0;
  overflow: hidden;
  color: var(--polish-ink);
  font-size: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.polished-workflow-strip button {
  grid-template-columns: minmax(0, 1fr);
  min-height: 58px;
  background: #fff;
}

.polished-workflow-strip strong {
  color: var(--polish-ink);
}

.polished-metric-row small,
.polished-essential-grid small,
.polished-gap-grid small,
.polished-workflow-strip span {
  min-width: 0;
  overflow: hidden;
  color: var(--polish-muted);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.polished-gap-panel .split-actions h3 {
  margin: 2px 0;
  color: var(--polish-ink);
}

.polished-gap-panel .split-actions p {
  margin: 0;
  color: var(--polish-muted);
}

.polished-tms-focus > .polished-secondary-layer {
  display: none !important;
}

.polished-tms-focus > .client-ui30-status-strip,
.polished-tms-focus > .flow55-context-rail,
.polished-tms-focus > .experience-digest,
.polished-tms-focus > .related-work-rail {
  display: none !important;
}

.polished-tms-os .table-wrap {
  border-color: var(--polish-line);
  border-radius: 10px;
  background: #fff;
}

.polished-tms-os table {
  border-collapse: separate;
  border-spacing: 0;
}

.polished-tms-os th {
  background: #f8fafc;
  color: #526173;
  letter-spacing: 0;
}

.polished-tms-os td {
  border-top: 1px solid #edf1f5;
}

.polished-tms-os .status-pill,
.polished-tms-os .pill {
  border-radius: 999px;
  letter-spacing: 0;
}

@media (max-width: 1180px) {
  .polished-tms-os .topbar,
  .polished-command-body,
  .polished-command-hero {
    grid-template-columns: 1fr;
  }

  .polished-command-score {
    width: 100%;
    min-height: 86px;
  }
}

@media (max-width: 760px) {
  .polished-tms-os .workspace-head {
    align-items: stretch;
    flex-direction: column;
  }

  .polished-metric-row,
  .polished-essential-grid,
  .polished-gap-grid,
  .polished-workflow-strip {
    grid-template-columns: 1fr;
  }

  .polished-tms-command,
  .polished-gap-panel {
    padding: 12px;
  }
}
