/* Shared entry cards and focused navigation for the three commercial tools. */
.commercial-launcher .report-toggle { white-space: nowrap; }
.commercial-launcher h4 { line-height: 1.35; }
#demoRequestsPanel > .commercial-launcher .report-toggle,
#clientRegistrationsPanel > .commercial-launcher .report-toggle {
  display: inline-flex; gap: 8px; min-height: 30px; padding: 0 11px;
  border: 1px solid rgba(124,235,216,.32); border-radius: 8px;
  background: rgba(0,168,143,.12); color: #7cebd8;
  font-size: .72rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase;
}
#demoRequestsPanel, #clientRegistrationsPanel { border-left: 5px solid #f6c431 !important; }
#clientRegistrationsPanel > .commercial-launcher .eyebrow { color: #f6c431; font-size: .75rem; letter-spacing: 0; }
.commercial-workspace-bar[hidden], .commercial-view-buttons[hidden] { display: none !important; }
#semaforo.commercial-focused > :not(.sales-scoreboard-stack),
#semaforo.commercial-focused .sales-scoreboard-stack > article:not(.commercial-active),
.commercial-active > .commercial-launcher { display: none !important; }
#semaforo.commercial-focused .sales-scoreboard-stack { margin-top: 0; }
#clientRegistrationsPanel:not(.commercial-active) > #clientModuleStatus { display: none; }
.commercial-active > #clientModuleStatus { margin: 18px 24px; }
html.commercial-workspace-open .main-panel > .topbar { display: none; }
html.commercial-workspace-open .main-panel { padding-top: 0; }
.commercial-active { min-height: calc(100vh - 30px); border: 0 !important; border-radius: 0; box-shadow: none; background: #071918; overflow: visible; }
#demoRequestsPanel.commercial-active, #clientRegistrationsPanel.commercial-active { border-left: 0 !important; }
.commercial-workspace-bar {
  position: sticky; top: 0; z-index: 80; padding: 20px 24px 0;
  background: #0b2021; border-bottom: 1px solid #315651;
  box-shadow: 0 8px 16px #0003;
}
.commercial-workspace-context { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 18px; }
.commercial-workspace-context > div { min-width: 0; }
.commercial-workspace-context h4 { margin: 7px 0 0; color: #f4fcfa; font-size: 23px; line-height: 1.3; }
.commercial-workspace-context h4:focus { outline: none; }
.commercial-workspace-bar button { cursor: pointer; font: inherit; }
.commercial-workspace-bar .commercial-back {
  padding: 4px 0; border: 0; background: none; color: #a2cfca; font-size: 13px; font-weight: 650;
}
.commercial-workspace-bar .commercial-back:hover { color: #fff; background: none; text-decoration: underline; text-underline-offset: 4px; }
.commercial-workspace-bar .commercial-close,
.commercial-active #demoRecordClose, .commercial-active #clientRecordClose {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; flex-shrink: 0; padding: 10px 18px; border: 1px solid #f6d36a;
  border-radius: 7px; background: #f6d36a; color: #14231e; font-size: 14px; font-weight: 750;
}
.commercial-workspace-bar .commercial-close:hover { background: #ffe59a; color: #14231e; }
.commercial-close > span { font-size: 24px; line-height: 1; }
.commercial-tabs { display: flex; gap: 8px; }
.commercial-workspace-bar .commercial-tab {
  min-height: 47px; padding: 12px 17px; border: 1px solid transparent; border-bottom: 3px solid transparent;
  border-radius: 6px 6px 0 0; color: #aec4c0; background: transparent; font-size: 14px; font-weight: 650;
}
.commercial-workspace-bar .commercial-tab:hover { background: #173d36; color: #fff; }
.commercial-workspace-bar .commercial-tab[aria-selected="true"] { color: #a4ffe7; border-bottom-color: #68dfc2; background: #153a32; }
.commercial-workspace-bar button:focus-visible { outline: 2px solid #b5ffed; outline-offset: 3px; }
.commercial-active > .commission-workspace,
.commercial-active > .demo-workspace,
.commercial-active > .client-workspace { border-top: 0; padding-top: 26px; scroll-margin-top: var(--commercial-bar-height, 160px); }
.commercial-active > .commission-workspace .commission-workspace-heading > .commission-close-button,
.commercial-active > .demo-workspace .demo-workspace-heading > [data-close-demo-workspace],
.commercial-active > .client-workspace .client-workspace-heading > [data-close-workspace] { display: none; }
.commercial-active :is(input,select,textarea,[data-client-step],.client-steps) { scroll-margin-top: var(--commercial-bar-height, 160px); }
.commercial-active .client-record-dialog > .client-workspace-heading,
.commercial-active .demo-record-dialog > .demo-record-heading {
  position: sticky; top: -25px; z-index: 5; margin: -25px -25px 22px;
  padding: 18px 24px; background: #0b2021; border-bottom: 1px solid #365a51; align-items: center;
}
.commercial-active .demo-record-heading h3 { margin-bottom: 0; }
.commercial-draft-note { color: #a8c5be; font-size: 12px; line-height: 1.5; }
@media (max-width: 800px) {
  html.commercial-section-active, html.commercial-section-active body { min-width: 0; width: 100%; }
  html.commercial-section-active .app-shell { grid-template-columns: minmax(0,1fr); }
  html.commercial-section-active .sidebar { display: none; }
  html.commercial-section-active .main-panel { padding: 20px 12px; }
  html.commercial-workspace-open .main-panel { padding: 0; }
  .commercial-workspace-bar { padding: 14px 15px 0; }
  .commercial-workspace-context { gap: 12px; padding-bottom: 12px; }
  .commercial-workspace-context h4 { font-size: 19px; }
  .commercial-workspace-bar .commercial-close { padding: 9px 12px; font-size: 13px; }
  .commercial-tabs { gap: 3px; }
  .commercial-workspace-bar .commercial-tab { flex: 1; min-width: 0; padding: 10px 7px; font-size: 12px; white-space: normal; overflow-wrap: anywhere; }
  .commissions-panel .commercial-workspace-bar .commercial-tab { padding-inline: 4px; font-size: 11px; }
  .commercial-active { min-height: 100vh; }
  .commercial-active .client-record-dialog > .client-workspace-heading,
  .commercial-active .demo-record-dialog > .demo-record-heading { top: -18px; margin: -18px -18px 18px; padding: 14px; }
  .commercial-active .client-record-dialog > .client-workspace-heading { top: -17px; margin: -17px -17px 18px; }
  .commercial-active .client-record-dialog .client-workspace-heading > div { min-width: 0; }
  .commercial-active .client-record-dialog .client-workspace-heading h3 { font-size: 18px; white-space: normal; overflow-wrap: anywhere; }
  .commercial-active #clientRecordClose { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .commercial-active * { scroll-behavior: auto !important; }
}
