:root {
  --app-bg: #f4f7fb;
  --app-text: #172033;
  --app-muted: #64748b;
  --app-border: #dce4ee;
  --app-panel: #ffffff;
  --app-accent: #3157d5;
  --app-accent-soft: #edf2ff;
  --app-sidebar: #14243a;
  --app-sidebar-muted: #9fb0c6;
  --app-success: #15803d;
  --app-radius: 14px;
  --app-shadow: 0 8px 24px rgb(15 23 42 / 6%);
}

body {
  min-height: 100vh;
  background: var(--app-bg);
  color: var(--app-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.app-navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--app-border);
  min-height: 68px;
  padding: 0.65rem 0;
  z-index: 1025;
}

.global-search {
  flex: 0 1 420px;
  max-width: min(42vw, 420px);
  position: relative;
  width: 100%;
}

.global-search .form-control {
  background: #f7f9fc;
  border-color: transparent;
  border-radius: 12px;
  min-height: 42px;
  padding-inline: 1rem;
}

.global-search .form-control:focus {
  background: #ffffff;
  border-color: #9db4ff;
  box-shadow: 0 0 0 0.2rem rgb(49 87 213 / 12%);
}

.global-search-results {
  background: #ffffff;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgb(15 23 42 / 14%);
  display: none;
  left: 0;
  max-height: 420px;
  overflow: auto;
  position: absolute;
  right: 0;
  top: calc(100% + 0.375rem);
  z-index: 1080;
}

.global-search-results.open {
  display: block;
}

.global-search-item {
  color: var(--app-text);
  display: block;
  padding: 0.7rem 0.85rem;
  text-decoration: none;
}

.global-search-item:hover,
.global-search-item.active {
  background: #f1f5f9;
}

.notification-nav-link {
  align-items: center;
  display: inline-flex;
  gap: 0.4rem;
}

.current-seller-chip {
  align-items: flex-start;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  color: #166534;
  flex-direction: column;
  line-height: 1.15;
  max-width: 240px;
  padding: 0.35rem 0.65rem;
  text-decoration: none;
}

.current-seller-chip span {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}

.current-seller-chip strong {
  font-size: 0.78rem;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.current-seller-missing {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.seller-current-panel,
.order-seller-summary {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.order-seller-summary {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 0.75rem;
}

.order-form-section-title {
  border-top: 1px solid var(--app-border);
  padding-top: 0.25rem;
}

.order-invoice-request {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.9rem;
}

.order-invoice-request:has([data-invoice-request-toggle]:checked) {
  background: #eff6ff;
  border-color: #93c5fd;
}

.order-invoice-request-fields {
  border-top: 1px solid #bfdbfe;
  padding-top: 0.9rem;
}

.live-call-banner {
  align-items: center;
  background: #18324f;
  color: #ffffff;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
}

.live-call-banner .section-kicker,
.live-call-banner .text-secondary {
  color: #cbd5e1 !important;
}

.live-call-title {
  font-weight: 700;
}

.live-call-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.live-call-actions .softphone-timer {
  color: #bbf7d0;
  font-size: 1.1rem;
}

.app-sidebar {
  background: linear-gradient(180deg, #172a45 0%, var(--app-sidebar) 100%);
  color: #ffffff;
  flex: 0 0 276px;
  flex-direction: column;
  height: 100vh;
  padding: 1.1rem 0.9rem 0.9rem;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.app-content-shell {
  flex: 1;
  min-width: 0;
}

.app-main {
  min-height: calc(100vh - 68px);
}

.app-main > .container-fluid {
  margin-inline: auto;
  max-width: 1680px;
}

.sidebar-brand {
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  margin-bottom: 0.75rem;
  padding: 0 0.35rem 1rem;
}

.sidebar-brand a {
  align-items: center;
  color: #ffffff;
  display: flex;
  gap: 0.75rem;
  text-decoration: none;
}

.sidebar-brand a > span:last-child {
  display: grid;
}

.sidebar-brand strong {
  font-size: 1rem;
  line-height: 1.2;
}

.sidebar-brand small {
  color: var(--app-sidebar-muted);
  font-size: 0.72rem;
  font-weight: 500;
}

.sidebar-brand-mark {
  align-items: center;
  background: #ffffff;
  border-radius: 11px;
  color: var(--app-sidebar);
  display: inline-flex;
  flex: 0 0 38px;
  font-size: 1.05rem;
  font-weight: 800;
  height: 38px;
  justify-content: center;
}

.sidebar-nav {
  align-content: start;
  display: grid;
  flex: 1;
  gap: 0.3rem;
  grid-auto-rows: max-content;
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.15rem;
  scrollbar-color: rgb(255 255 255 / 20%) transparent;
}

.sidebar-link {
  border: 1px solid transparent;
  border-radius: 10px;
  color: #e5edf8;
  display: grid;
  padding: 0.6rem 0.75rem;
  text-decoration: none;
}

.sidebar-link:hover,
.sidebar-link.active {
  background: rgb(255 255 255 / 9%);
  color: #ffffff;
}

.sidebar-link.active {
  background: #ffffff;
  box-shadow: 0 6px 18px rgb(0 0 0 / 14%);
  color: #19325a;
  font-weight: 700;
}

.sidebar-link-label {
  font-weight: 650;
}

.sidebar-link-hint {
  color: var(--app-sidebar-muted);
  font-size: 0.7rem;
  line-height: 1.35;
  margin-top: 0.1rem;
}

.sidebar-link.active .sidebar-link-hint {
  color: #667793;
}

.sidebar-section {
  color: var(--app-sidebar-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 0.8rem 0 0.15rem;
  padding: 0 0.75rem;
  text-transform: uppercase;
}

.sidebar-group {
  border-top: 1px solid rgb(255 255 255 / 8%);
  margin-top: 0.45rem;
  padding-top: 0.45rem;
}

.sidebar-group summary {
  align-items: center;
  border-radius: 10px;
  color: #e5edf8;
  cursor: pointer;
  display: flex;
  font-weight: 650;
  justify-content: space-between;
  list-style: none;
  padding: 0.7rem 0.75rem;
}

.sidebar-group summary::-webkit-details-marker {
  display: none;
}

.sidebar-group summary::after {
  color: var(--app-sidebar-muted);
  content: "+";
  font-size: 1.1rem;
  font-weight: 400;
}

.sidebar-group[open] summary::after {
  content: "−";
}

.sidebar-group summary:hover {
  background: rgb(255 255 255 / 7%);
  color: #ffffff;
}

.sidebar-group-links {
  display: grid;
  gap: 0.2rem;
  padding: 0.1rem 0 0.3rem 0.55rem;
}

.sidebar-group-links .sidebar-link {
  font-size: 0.88rem;
  padding-block: 0.5rem;
}

.sidebar-footer {
  border-top: 1px solid rgb(255 255 255 / 10%);
  display: grid;
  gap: 0.15rem;
  margin-top: 0.75rem;
  padding: 0.85rem 0.7rem 0;
}

.sidebar-footer a {
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
}

.sidebar-footer span {
  color: var(--app-sidebar-muted);
  font-size: 0.7rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flash-region {
  margin: 1rem auto 0;
  max-width: calc(1680px - 3rem);
}

.flash-region:empty {
  display: none;
}

.section-guide {
  align-items: center;
  background: #eef4ff;
  border: 1px solid #d5e2ff;
  border-radius: 12px;
  color: #274064;
  display: flex;
  gap: 0.85rem;
  margin: 1rem auto -0.5rem;
  max-width: calc(1680px - 3rem);
  padding: 0.7rem 1rem;
}

.section-guide > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.6rem;
}

.section-guide strong {
  color: #1e3353;
}

.section-guide span:not(.section-guide-label) {
  color: #526b8d;
}

.section-guide-label {
  background: #ffffff;
  border: 1px solid #c9d9fb;
  border-radius: 999px;
  color: var(--app-accent);
  flex: 0 0 auto;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.55rem;
  text-transform: uppercase;
}

.friendly-steps {
  display: grid;
  gap: 1rem;
  list-style: none;
  padding: 0;
}

.friendly-steps li {
  counter-increment: friendly-step;
  display: grid;
  gap: 0.15rem;
  grid-template-columns: 32px 1fr;
}

.friendly-steps {
  counter-reset: friendly-step;
}

.friendly-steps li::before {
  align-items: center;
  background: var(--app-accent-soft);
  border-radius: 50%;
  color: var(--app-accent);
  content: counter(friendly-step);
  display: flex;
  font-size: 0.8rem;
  font-weight: 800;
  grid-row: 1 / 3;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.friendly-steps span {
  color: var(--app-muted);
  font-size: 0.82rem;
}

.dashboard-header {
  align-items: flex-start;
  display: flex;
  gap: 1.25rem;
  justify-content: space-between;
}

.dashboard-header h1 {
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  font-weight: 750;
  letter-spacing: -0.025em;
}

.page-description {
  color: var(--app-muted);
  margin: 0.4rem 0 0;
  max-width: 760px;
}

.section-kicker,
.metric-label {
  color: var(--app-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.metric-card,
.panel {
  background: var(--app-panel);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  box-shadow: var(--app-shadow);
}

.metric-card {
  min-height: 118px;
  padding: 1.1rem;
}

.metric-value {
  color: var(--app-accent);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  margin-top: 0.5rem;
}

.panel {
  min-height: 0;
  padding: 1.15rem;
}

.form-label {
  color: #334155;
  font-size: 0.84rem;
  font-weight: 650;
  margin-bottom: 0.4rem;
}

.form-control,
.form-select {
  border-color: #cfd9e6;
  border-radius: 9px;
  min-height: 42px;
}

.form-control-sm,
.form-select-sm {
  min-height: 38px;
}

.form-control:focus,
.form-select:focus {
  border-color: #8ca7fa;
  box-shadow: 0 0 0 0.2rem rgb(49 87 213 / 11%);
}

.btn {
  border-radius: 9px;
  font-weight: 650;
  min-height: 40px;
}

.btn-sm {
  min-height: 36px;
  padding: 0.42rem 0.7rem;
}

.btn-primary {
  box-shadow: 0 5px 14px rgb(49 87 213 / 18%);
}

.user-menu-button {
  align-items: center;
  border: 0;
  display: inline-flex;
  gap: 0.65rem;
  padding: 0.2rem 0.45rem;
}

.user-menu-button:hover,
.user-menu-button:focus {
  background: #f3f6fb;
}

.user-menu-button strong,
.user-menu-button small {
  display: block;
  line-height: 1.25;
}

.user-menu-button small {
  color: var(--app-muted);
  font-size: 0.7rem;
  font-weight: 500;
}

.user-avatar {
  align-items: center;
  background: var(--app-accent-soft);
  border-radius: 50%;
  color: var(--app-accent);
  display: inline-flex;
  flex: 0 0 38px;
  font-weight: 800;
  height: 38px;
  justify-content: center;
}

.user-menu-dropdown {
  border-color: var(--app-border);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgb(15 23 42 / 14%);
  min-width: 250px;
  padding: 0.5rem;
}

.topbar-menu-button {
  align-items: center;
  display: inline-flex;
  gap: 0.4rem;
}

.public-hero {
  align-items: center;
  background: linear-gradient(135deg, #172a45 0%, #294d86 100%);
  border-radius: 22px;
  color: #ffffff;
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  overflow: hidden;
  padding: clamp(2rem, 6vw, 5rem);
}

.public-hero .section-kicker,
.public-hero p {
  color: #c9d8ef;
}

.public-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 780;
  letter-spacing: -0.045em;
  line-height: 1.03;
  margin-bottom: 1.25rem;
}

.public-hero p {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  max-width: 650px;
}

.public-hero-preview {
  display: grid;
  gap: 0.75rem;
}

.public-hero-preview > div {
  background: rgb(255 255 255 / 9%);
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 14px;
  display: grid;
  gap: 0.1rem 0.75rem;
  grid-template-columns: 38px 1fr;
  padding: 1rem;
}

.public-hero-preview span {
  align-items: center;
  background: #ffffff;
  border-radius: 50%;
  color: #284b81;
  display: flex;
  font-weight: 800;
  grid-row: 1 / 3;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.public-hero-preview small {
  color: #b9cae3;
}

.public-feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.public-feature-grid article {
  background: #ffffff;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  padding: 1.35rem;
}

.public-feature-grid h2 {
  font-weight: 750;
  margin: 0.65rem 0;
}

.public-feature-grid p {
  color: var(--app-muted);
  margin: 0;
}

.login-shell {
  max-width: 420px;
}

.login-panel {
  min-height: 0;
}

.workspace-login-page {
  min-height: calc(100vh - 68px);
}

.workspace-login-shell {
  max-width: 1160px;
}

.workspace-login-header {
  margin: 0 auto 1.5rem;
  max-width: 720px;
  text-align: center;
}

.workspace-login-header h1 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 750;
  letter-spacing: -0.025em;
  margin: 0;
}

.workspace-login-header > p:last-child {
  color: var(--app-muted);
  margin: 0.45rem 0 0;
}

.workspace-login-alert {
  margin: 0 auto 1rem;
  max-width: 760px;
}

.workspace-login-form {
  align-items: start;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.75fr);
}

.workspace-picker,
.workspace-credentials {
  padding: 1.25rem;
}

.workspace-picker-heading,
.workspace-credentials-heading {
  align-items: flex-start;
  border-bottom: 1px solid var(--app-border);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: -0.1rem 0 1rem;
  padding-bottom: 0.9rem;
}

.workspace-picker-heading h2,
.workspace-credentials-heading h2 {
  font-size: 1.08rem;
  font-weight: 750;
  margin: 0;
}

.workspace-picker-heading p:last-child {
  color: var(--app-muted);
  font-size: 0.82rem;
  margin: 0.25rem 0 0;
}

.workspace-picker-step {
  background: var(--app-accent-soft);
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  color: #3157d5;
  flex: 0 0 auto;
  font-size: 0.7rem;
  font-weight: 750;
  padding: 0.3rem 0.55rem;
}

.workspace-fieldset,
.workspace-secondary fieldset {
  border: 0;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.workspace-card-grid,
.workspace-secondary-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workspace-radio {
  opacity: 0;
  position: absolute;
  width: 1px;
}

.workspace-card {
  align-items: flex-start;
  background: #fff;
  border: 1px solid #cfd9e6;
  border-radius: 12px;
  cursor: pointer;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 112px;
  padding: 0.9rem;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.workspace-card:hover {
  border-color: #9db4ff;
  box-shadow: 0 8px 20px rgb(49 87 213 / 10%);
  transform: translateY(-1px);
}

.workspace-radio:checked + .workspace-card {
  background: #f3f6ff;
  border-color: var(--app-accent);
  box-shadow: 0 0 0 3px rgb(49 87 213 / 12%);
}

.workspace-radio:focus-visible + .workspace-card {
  outline: 3px solid rgb(49 87 213 / 28%);
  outline-offset: 2px;
}

.workspace-card-mark {
  align-items: center;
  background: #edf2ff;
  border: 1px solid #c7d2fe;
  border-radius: 10px;
  color: #3157d5;
  display: inline-flex;
  flex: 0 0 42px;
  font-size: 0.72rem;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  letter-spacing: 0.03em;
  width: 42px;
}

.workspace-card-copy {
  display: grid;
  min-width: 0;
}

.workspace-card-copy strong {
  color: var(--app-text);
  font-size: 0.92rem;
}

.workspace-card-copy small {
  color: var(--app-muted);
  font-size: 0.75rem;
  line-height: 1.42;
  margin-top: 0.2rem;
}

.workspace-card-check {
  align-items: center;
  background: var(--app-accent);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 0.65rem;
  height: 20px;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 140ms ease, transform 140ms ease;
  width: 20px;
}

.workspace-radio:checked + .workspace-card .workspace-card-check {
  opacity: 1;
  transform: scale(1);
}

.workspace-secondary {
  border: 1px solid var(--app-border);
  border-radius: 12px;
  margin-top: 0.9rem;
  overflow: hidden;
}

.workspace-secondary > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  list-style: none;
  min-height: 58px;
  padding: 0.7rem 0.85rem;
}

.workspace-secondary > summary::-webkit-details-marker {
  display: none;
}

.workspace-secondary > summary:hover {
  background: #f8fafc;
}

.workspace-secondary > summary > span:first-child {
  display: grid;
}

.workspace-secondary > summary strong {
  font-size: 0.82rem;
}

.workspace-secondary > summary small {
  color: var(--app-muted);
  font-size: 0.72rem;
  margin-top: 0.1rem;
}

.workspace-secondary-toggle {
  color: var(--app-accent);
  font-size: 1.2rem;
  line-height: 1;
}

.workspace-secondary[open] .workspace-secondary-toggle {
  transform: rotate(45deg);
}

.workspace-secondary fieldset {
  background: #f8fafc;
  border-top: 1px solid var(--app-border);
  padding: 0.75rem;
}

.workspace-card-compact {
  min-height: 92px;
  padding: 0.75rem;
}

.workspace-secondary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workspace-card-compact .workspace-card-mark {
  height: 36px;
  width: 36px;
}

.workspace-credentials {
  position: sticky;
  top: 88px;
}

.workspace-selected {
  background: #f3f6ff;
  border: 1px solid #c7d2fe;
  border-radius: 10px;
  margin-bottom: 1rem;
  padding: 0.7rem 0.8rem;
}

.workspace-selected-label {
  color: #526581;
  display: block;
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
}

.workspace-selected div {
  display: grid;
}

.workspace-selected div[hidden] {
  display: none;
}

.workspace-selected strong {
  font-size: 0.9rem;
}

.workspace-selected small {
  color: var(--app-muted);
  font-size: 0.72rem;
  margin-top: 0.1rem;
}

.workspace-password-toggle {
  min-width: 78px;
}

.workspace-login-submit {
  font-weight: 700;
  min-height: 44px;
}

.workspace-login-security-note {
  border-top: 1px solid var(--app-border);
  color: var(--app-muted);
  font-size: 0.7rem;
  line-height: 1.45;
  margin: 1rem 0 0;
  padding-top: 0.8rem;
  text-align: center;
}

@media (max-width: 991.98px) {
  .workspace-login-form {
    grid-template-columns: 1fr;
  }

  .workspace-credentials {
    position: static;
  }
}

@media (max-width: 575.98px) {
  .workspace-login-page {
    padding-inline: 0.75rem;
  }

  .workspace-login-header {
    text-align: left;
  }

  .workspace-card-grid,
  .workspace-secondary-grid {
    grid-template-columns: 1fr;
  }

  .workspace-card {
    min-height: 94px;
  }

  .workspace-picker,
  .workspace-credentials {
    padding: 1rem;
  }
}

/* Login presentation: editorial product cover with the existing secure workflow. */
.login-page {
  --login-ink: #0a1832;
  --login-blue: #155eef;
  --login-blue-dark: #0c3fb6;
  --login-paper: #f4f1ea;
  --login-line: #d9e0ea;
  background: var(--login-paper);
}

.login-page > .app-navbar {
  display: none;
}

.login-page .app-main {
  min-height: 100svh;
}

.login-page .flash-region:not(:empty) {
  left: 50%;
  margin: 0;
  max-width: min(680px, calc(100vw - 2rem));
  position: fixed;
  top: 1rem;
  transform: translateX(-50%);
  width: 100%;
  z-index: 1080;
}

.login-page .workspace-login-page {
  background: #f8f9fb;
  display: grid;
  grid-template-columns: minmax(420px, 31.5vw) minmax(0, 1fr);
  min-height: 100svh;
  overflow: hidden;
  padding: 0;
}

.login-cover {
  background:
    radial-gradient(circle at 84% 17%, rgb(91 227 255 / 24%), transparent 19%),
    radial-gradient(circle at 18% 78%, rgb(113 255 192 / 13%), transparent 22%),
    linear-gradient(145deg, #07142d 0%, #0b2250 55%, #123d7e 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(2rem, 4.5vw, 4.75rem);
  position: relative;
}

.login-cover::before {
  background-image:
    linear-gradient(rgb(255 255 255 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 5%) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
  pointer-events: none;
  position: absolute;
  z-index: -2;
}

.login-cover::after {
  background: #69e7c4;
  content: "";
  height: 8px;
  left: clamp(2rem, 4.5vw, 4.75rem);
  position: absolute;
  top: 0;
  width: 92px;
}

.login-cover-brand {
  align-items: center;
  color: #fff;
  display: inline-flex;
  gap: 0.75rem;
  position: relative;
  text-decoration: none;
  width: fit-content;
  z-index: 2;
}

.login-cover-brand:hover {
  color: #fff;
}

.login-cover-brand-mark {
  align-items: center;
  background: #fff;
  border-radius: 13px;
  color: #0b2c62;
  display: inline-flex;
  font-size: 1.15rem;
  font-weight: 900;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.login-cover-brand > span:last-child {
  display: grid;
}

.login-cover-brand strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.login-cover-brand small {
  color: #a9bad7;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.login-cover-edition {
  color: #94a9cc;
  display: flex;
  font-size: 0.61rem;
  font-weight: 750;
  justify-content: space-between;
  letter-spacing: 0.16em;
  margin-top: clamp(2rem, 6vh, 4rem);
  position: relative;
  text-transform: uppercase;
  z-index: 2;
}

.login-cover-copy {
  margin: auto 0;
  max-width: 520px;
  position: relative;
  z-index: 2;
}

.login-cover-eyebrow {
  color: #70e9c8;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 1.15rem;
  text-transform: uppercase;
}

.login-cover-title {
  display: grid;
  font-size: clamp(2.55rem, 4.2vw, 5.15rem);
  font-weight: 820;
  letter-spacing: -0.065em;
  line-height: 0.91;
  text-wrap: balance;
}

.login-cover-title em {
  color: #91e8ff;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.055em;
  margin-top: 0.14em;
}

.login-cover-lead {
  color: #c2cde0;
  font-size: clamp(0.86rem, 1vw, 1rem);
  line-height: 1.65;
  margin: 1.6rem 0 0;
  max-width: 450px;
}

.login-cover-art {
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.login-cover-orbit {
  border: 1px solid rgb(146 233 255 / 34%);
  border-radius: 50%;
  position: absolute;
}

.login-cover-orbit-one {
  height: clamp(260px, 29vw, 540px);
  right: -33%;
  top: 20%;
  width: clamp(260px, 29vw, 540px);
}

.login-cover-orbit-two {
  border-color: rgb(112 233 200 / 20%);
  bottom: -17%;
  height: clamp(220px, 24vw, 450px);
  left: -21%;
  width: clamp(220px, 24vw, 450px);
}

.login-cover-signal {
  background: linear-gradient(90deg, transparent, #66ddff 35%, #79efc7 66%, transparent);
  bottom: 21%;
  height: 1px;
  left: 8%;
  opacity: 0.45;
  position: absolute;
  transform: rotate(-13deg);
  width: 108%;
}

.login-cover-footer {
  align-items: end;
  border-top: 1px solid rgb(255 255 255 / 18%);
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
  position: relative;
  z-index: 2;
}

.login-cover-footer > span {
  color: #74e9c8;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.login-cover-footer p {
  color: #aebdd3;
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  line-height: 1.45;
  margin: 0;
  text-align: right;
  text-transform: uppercase;
}

.login-entry {
  align-items: center;
  background:
    radial-gradient(circle at 96% 3%, rgb(21 94 239 / 7%), transparent 23%),
    #f8f9fb;
  display: flex;
  min-width: 0;
  overflow-y: auto;
  padding: clamp(1.5rem, 3.2vw, 3.75rem);
}

.login-page .workspace-login-shell {
  margin: auto;
  max-width: 1040px;
  width: 100%;
}

.login-page .workspace-login-header {
  margin: 0 0 1.15rem;
  max-width: none;
  text-align: left;
}

.login-page .workspace-login-header .section-kicker {
  color: var(--login-blue);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
}

.login-page .workspace-login-header h1 {
  color: var(--login-ink);
  font-size: clamp(1.85rem, 2.6vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.045em;
}

.login-page .workspace-login-header > p:last-child {
  font-size: 0.86rem;
  margin-top: 0.3rem;
}

.login-page .workspace-login-form {
  gap: 1rem;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
}

.login-page .workspace-picker,
.login-page .workspace-credentials {
  background: rgb(255 255 255 / 94%);
  border: 1px solid #e1e6ee;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgb(19 37 68 / 9%);
  padding: 1.1rem;
}

.login-page .workspace-picker-heading,
.login-page .workspace-credentials-heading {
  margin-bottom: 0.8rem;
  padding-bottom: 0.75rem;
}

.login-page .workspace-picker-heading h2,
.login-page .workspace-credentials-heading h2 {
  color: var(--login-ink);
}

.login-page .workspace-picker-step {
  background: #eef4ff;
  border-color: #c9d9ff;
  color: var(--login-blue-dark);
}

.login-page .workspace-card-grid {
  gap: 0.6rem;
}

.login-page .workspace-card-grid-primary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.login-page .workspace-card {
  --workspace-color: #155eef;
  --workspace-soft: #eef4ff;
  background: #fff;
  border-color: #dfe5ee;
  border-radius: 13px;
  min-height: 98px;
  padding: 0.78rem;
}

.login-page .workspace-card-operator {
  --workspace-color: #155eef;
  --workspace-soft: #eef4ff;
}

.login-page .workspace-card-warehouse {
  --workspace-color: #07835f;
  --workspace-soft: #ebfaf5;
}

.login-page .workspace-card-procurement {
  --workspace-color: #c75b08;
  --workspace-soft: #fff5e8;
}

.login-page .workspace-card-admin {
  --workspace-color: #7047c7;
  --workspace-soft: #f4efff;
}

.login-page .workspace-card-manager {
  --workspace-color: #3459b8;
  --workspace-soft: #eff3ff;
}

.login-page .workspace-card-accountant {
  --workspace-color: #087f8c;
  --workspace-soft: #ecf9fa;
}

.login-page .workspace-card-viewer {
  --workspace-color: #536176;
  --workspace-soft: #f1f4f7;
}

.login-page .workspace-card:hover {
  border-color: color-mix(in srgb, var(--workspace-color) 46%, #dfe5ee);
  box-shadow: 0 9px 24px rgb(21 38 69 / 10%);
}

.login-page .workspace-radio:checked + .workspace-card {
  background: var(--workspace-soft);
  border-color: var(--workspace-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--workspace-color) 14%, transparent);
}

.login-page .workspace-radio:focus-visible + .workspace-card {
  outline-color: color-mix(in srgb, var(--workspace-color) 38%, transparent);
}

.login-page .workspace-card-mark {
  background: var(--workspace-soft);
  border-color: color-mix(in srgb, var(--workspace-color) 24%, white);
  color: var(--workspace-color);
}

.login-page .workspace-card-check {
  background: var(--workspace-color);
}

.login-page .workspace-card-copy strong {
  color: #13213a;
}

.login-page .workspace-secondary {
  border-color: #dfe5ee;
  margin-top: 0.65rem;
}

.login-page .workspace-secondary > summary {
  min-height: 52px;
  padding-block: 0.55rem;
}

.login-page .workspace-secondary fieldset {
  background: #f7f9fc;
  padding: 0.6rem;
}

.login-page .workspace-secondary-grid {
  gap: 0.55rem;
}

.login-page .workspace-card-compact {
  min-height: 82px;
  padding: 0.65rem;
}

.login-page .workspace-credentials {
  top: 1.5rem;
}

.login-page .workspace-selected {
  background: linear-gradient(135deg, #eef4ff, #f7f9ff);
  border-color: #ccdaff;
}

.login-page .form-label {
  color: #263650;
  font-size: 0.78rem;
  font-weight: 750;
}

.login-page .form-control {
  border-color: #ced8e6;
  border-radius: 10px;
  min-height: 43px;
}

.login-page .form-control:focus {
  border-color: var(--login-blue);
  box-shadow: 0 0 0 0.2rem rgb(21 94 239 / 13%);
}

.login-page .workspace-password-toggle {
  border-color: #ced8e6;
  border-radius: 0 10px 10px 0;
}

.login-page .workspace-login-submit {
  background: linear-gradient(135deg, #1768ff, #0e51d7);
  border: 0;
  border-radius: 10px;
  box-shadow: 0 10px 22px rgb(21 94 239 / 22%);
  min-height: 46px;
}

.login-page .workspace-login-submit:hover {
  background: linear-gradient(135deg, #0f58e7, #0b42b6);
  transform: translateY(-1px);
}

.login-page .workspace-login-security-note {
  margin-top: 0.85rem;
}

@media (max-width: 1199.98px) {
  .login-page .workspace-login-page {
    grid-template-columns: minmax(330px, 34vw) minmax(0, 1fr);
  }

  .login-cover {
    padding: 2rem;
  }

  .login-cover::after {
    left: 2rem;
  }

  .login-cover-title {
    font-size: clamp(2.45rem, 5vw, 4rem);
  }

  .login-page .workspace-login-form {
    grid-template-columns: 1fr;
  }

  .login-page .workspace-card-grid-primary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .login-page .workspace-credentials {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .login-page .workspace-login-page {
    display: block;
    overflow: visible;
  }

  .login-cover {
    min-height: 270px;
    padding: 1.5rem;
  }

  .login-cover::after {
    left: 1.5rem;
  }

  .login-cover-edition,
  .login-cover-footer,
  .login-cover-lead {
    display: none;
  }

  .login-cover-copy {
    margin: auto 0 0;
  }

  .login-cover-eyebrow {
    margin-bottom: 0.55rem;
  }

  .login-cover-title {
    font-size: clamp(2.25rem, 10.5vw, 3.6rem);
  }

  .login-entry {
    overflow: visible;
    padding: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .login-page .workspace-login-page {
    padding: 0;
  }

  .login-cover {
    min-height: 235px;
    padding: 1.25rem;
  }

  .login-cover::after {
    left: 1.25rem;
  }

  .login-entry {
    padding: 1.1rem 0.75rem 1.5rem;
  }

  .login-page .workspace-login-header {
    padding-inline: 0.25rem;
  }

  .login-page .workspace-picker,
  .login-page .workspace-credentials {
    border-radius: 14px;
    padding: 1rem;
  }

  .login-page .workspace-card-grid-primary {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-page .workspace-card,
  .login-page .workspace-login-submit {
    transition: none;
  }

  .login-page .workspace-card:hover,
  .login-page .workspace-login-submit:hover {
    transform: none;
  }
}

.audit-filter-panel,
.audit-table-panel {
  min-height: 0;
}

.audit-table th {
  color: var(--app-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.audit-values-cell {
  min-width: 220px;
}

.audit-values-cell pre {
  background: #f8fafc;
  border: 1px solid var(--app-border);
  border-radius: 6px;
  font-size: 0.76rem;
  margin: 0.5rem 0 0;
  max-height: 180px;
  overflow: auto;
  padding: 0.5rem;
}

.customer-search-panel,
.campaign-filter-panel,
.customer-table-panel,
.customer-form-panel,
.customer-detail-panel,
.customer-import-panel,
.call-result-panel,
.call-history-panel,
.campaign-table-panel,
.campaign-form-panel,
.settings-form-panel,
.suppression-filter-panel,
.suppression-table-panel,
.product-filter-panel,
.product-table-panel,
.product-form-panel,
.order-form-panel,
.telephony-table-panel,
.telephony-form-panel,
.operator-panel,
.operator-main-panel,
.operator-timeline-panel,
.manager-filter-panel,
.manager-table-panel,
.admin-users-filter-panel,
.admin-users-panel,
.admin-user-panel,
.admin-user-form-panel,
.jobs-workers-panel,
.jobs-table-panel,
.jobs-dead-letter-panel,
.jobs-schedules-panel,
.notification-center-panel,
.wallboard-agents-panel {
  min-height: 0;
}

.order-qty-input {
  max-width: 90px;
}

.order-price-guidance {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  color: #1e3a5f;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
  padding: 0.55rem 0.7rem;
}

.order-price-heading > span,
.order-price-heading > small {
  display: block;
  white-space: nowrap;
}

.order-price-heading > small {
  color: var(--app-muted);
  font-size: 0.68rem;
  font-weight: 650;
  margin-top: 0.08rem;
  text-transform: none;
}

.order-money-cell {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.order-line-total output {
  color: #0f766e;
  font-weight: 800;
}

.order-products-summary {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  margin-top: 0.85rem;
  padding: 0.75rem 0.85rem;
}

.order-products-summary-selection,
.order-products-summary-total {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.order-products-summary-selection {
  flex: 1 1 190px;
}

.order-products-summary-selection > span,
.order-products-summary-total > span {
  color: var(--app-muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.order-products-summary-selection > strong {
  font-size: 0.84rem;
}

.order-products-summary-selection > small {
  color: var(--app-muted);
  font-size: 0.7rem;
}

.order-products-summary-total {
  flex: 1 1 260px;
  text-align: end;
}

.order-products-summary-total > strong {
  color: #0f766e;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.bundle-builder {
  background: #fbfcfe;
  border-color: #dce5f0 !important;
}

.bundle-builder-panel[hidden] {
  display: none;
}

.bundle-builder-guide {
  max-width: 920px;
}

.bundle-builder-guide li + li {
  margin-top: 0.25rem;
}

.bundle-component-quantity {
  width: 130px;
}

.order-status-select {
  min-width: 150px;
}

.import-metric {
  min-height: 96px;
}

.customer-table th {
  background: #f7f9fc;
  color: #526178;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.customer-filter-heading,
.customer-results-heading {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.customer-filter-heading {
  border-bottom: 1px solid #e7edf4;
  margin-bottom: 1rem;
  padding-bottom: 0.9rem;
}

.customer-filter-count {
  border: 1px solid #d7e2f0;
  color: #40516b !important;
  flex: 0 0 auto;
  font-weight: 700;
}

.customer-filter-grid .form-control,
.customer-filter-grid .form-select,
.customer-multiselect-summary {
  min-height: 38px;
}

.customer-multiselect {
  position: relative;
}

.customer-multiselect[open] {
  z-index: 30;
}

.customer-multiselect-summary {
  align-items: center;
  background: #ffffff;
  border: 1px solid #ced8e5;
  border-radius: 0.375rem;
  color: #27364f;
  cursor: pointer;
  display: flex;
  font-size: 0.875rem;
  justify-content: space-between;
  list-style: none;
  padding: 0.45rem 0.75rem;
  user-select: none;
}

.customer-multiselect-summary::-webkit-details-marker {
  display: none;
}

.customer-multiselect-summary::after {
  border-bottom: 1px solid #66768d;
  border-right: 1px solid #66768d;
  content: "";
  height: 0.45rem;
  margin-left: 0.75rem;
  transform: rotate(45deg) translateY(-0.12rem);
  width: 0.45rem;
}

.customer-multiselect[open] .customer-multiselect-summary {
  border-color: #86a9ff;
  box-shadow: 0 0 0 0.2rem rgb(13 110 253 / 13%);
}

.customer-multiselect[open] .customer-multiselect-summary::after {
  transform: rotate(225deg) translate(-0.1rem, -0.1rem);
}

.customer-multiselect-menu {
  background: #ffffff;
  border: 1px solid #d7e2f0;
  border-radius: 0.55rem;
  box-shadow: 0 14px 30px rgb(31 50 81 / 16%);
  display: grid;
  gap: 0.15rem;
  left: 0;
  margin-top: 0.4rem;
  max-height: 280px;
  min-width: 230px;
  overflow-y: auto;
  padding: 0.45rem;
  position: absolute;
  right: 0;
}

.customer-multiselect-option {
  align-items: center;
  border-radius: 0.4rem;
  color: #27364f;
  cursor: pointer;
  display: flex;
  font-size: 0.84rem;
  gap: 0.55rem;
  padding: 0.48rem 0.55rem;
}

.customer-multiselect-option:hover {
  background: #f2f6ff;
}

.customer-multiselect-option input {
  accent-color: var(--app-accent);
  flex: 0 0 auto;
  height: 1rem;
  width: 1rem;
}

.customer-filter-actions {
  display: flex;
  gap: 0.6rem;
}

.customer-filter-actions > * {
  flex: 1 1 0;
}

.customer-active-filters {
  align-items: center;
  border-top: 1px solid #e7edf4;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
}

.customer-active-filters-label {
  color: #60708a;
  font-size: 0.78rem;
  font-weight: 700;
  margin-right: 0.15rem;
}

.customer-filter-chip {
  align-items: center;
  background: #eef4ff;
  border: 1px solid #cddcff;
  border-radius: 999px;
  color: #174ea6;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 650;
  gap: 0.42rem;
  max-width: 100%;
  padding: 0.3rem 0.55rem 0.3rem 0.7rem;
  text-decoration: none;
}

.customer-filter-chip:hover {
  background: #dfeaff;
  color: #103b80;
}

.customer-filter-chip span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-results-heading {
  border-bottom: 1px solid #e7edf4;
  margin: -0.2rem 0 0.75rem;
  padding: 0 0 0.75rem;
}

.customer-table td,
.customer-table th {
  border-color: #e7edf4;
  padding: 0.78rem 0.7rem;
}

.customer-table tbody tr:hover td {
  background: #f9fbff;
}

@media (max-width: 575.98px) {
  .customer-filter-heading {
    align-items: flex-start;
  }

  .customer-filter-actions {
    flex-direction: column;
  }

  .customer-multiselect-menu {
    min-width: 0;
  }
}

.notes-block {
  min-height: 160px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.panel-heading {
  align-items: center;
  border-bottom: 1px solid var(--app-border);
  display: flex;
  justify-content: space-between;
  margin: -1.15rem -1.15rem 1rem;
  padding: 1rem 1.15rem;
}

.panel-heading h2 {
  color: #223049;
  font-weight: 750;
}

.empty-state {
  align-items: center;
  background: #f9fbfe;
  border: 1px dashed var(--app-border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 178px;
  text-align: center;
}

.friendly-action-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.friendly-action-card {
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  color: var(--app-text);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 124px;
  padding: 1rem;
  text-decoration: none;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.friendly-action-card:hover {
  border-color: #9db4ff;
  box-shadow: 0 10px 24px rgb(49 87 213 / 10%);
  color: var(--app-text);
  transform: translateY(-1px);
}

.friendly-action-card strong {
  font-size: 1rem;
}

.friendly-action-card span {
  color: var(--app-muted);
  font-size: 0.84rem;
}

.friendly-action-card::after {
  color: var(--app-accent);
  content: "Отвори →";
  font-size: 0.78rem;
  font-weight: 750;
  margin-top: auto;
}

.friendly-note {
  align-items: flex-start;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  color: #1e3a5f;
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
}

.friendly-note strong {
  display: block;
  margin-bottom: 0.1rem;
}

.app-main > .operator-home {
  display: grid;
  gap: 1rem;
  max-width: 1540px;
}

.operator-home-header {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.operator-home-header h1 {
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  font-weight: 760;
  letter-spacing: -0.025em;
  margin: 0;
}

.operator-home-header p:last-child {
  color: var(--app-muted);
  margin: 0.25rem 0 0;
}

.operator-home-alert {
  margin: 0;
}

.operator-next-action {
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #f4f7ff 100%);
  border: 1px solid #cad7fb;
  border-left: 4px solid var(--app-accent);
  border-radius: var(--app-radius);
  box-shadow: var(--app-shadow);
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  min-height: 126px;
  padding: 1.15rem 1.25rem;
}

.operator-next-action.action-active_call {
  background: linear-gradient(135deg, #ffffff 0%, #effcf4 100%);
  border-color: #b9e3c8;
  border-left-color: #15803d;
}

.operator-next-action.action-wrap_up,
.operator-next-action.action-overdue_callback {
  background: linear-gradient(135deg, #ffffff 0%, #fff8e8 100%);
  border-color: #f4d38b;
  border-left-color: #c87905;
}

.operator-next-action-copy {
  min-width: 0;
}

.operator-home-eyebrow {
  color: #52698c;
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.operator-next-action h2 {
  color: #172033;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  font-weight: 760;
  margin: 0;
}

.operator-next-action p {
  color: var(--app-muted);
  margin: 0.25rem 0 0;
}

.operator-next-customer {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.65rem;
  margin-top: 0.55rem;
}

.operator-next-customer strong {
  color: #20314e;
}

.operator-next-customer span {
  color: #596b85;
  font-size: 0.82rem;
}

.operator-next-action-button {
  min-height: 46px;
  min-width: 210px;
  padding-inline: 1.15rem;
  white-space: nowrap;
}

.operator-home-kpis {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.operator-home-kpi {
  background: #ffffff;
  border: 1px solid var(--app-border);
  border-top: 3px solid #9fb0c6;
  border-radius: 12px;
  box-shadow: var(--app-shadow);
  display: grid;
  min-height: 112px;
  padding: 0.8rem 0.95rem;
}

.operator-home-kpi-revenue {
  background: #f0fdfa;
  border-color: #99dfd3;
  border-top-color: #0f8b78;
}

.operator-home-kpi > span {
  color: #52657f;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.operator-home-kpi > strong {
  color: #172033;
  font-size: 1.65rem;
  line-height: 1.15;
}

.operator-home-kpi-revenue > strong {
  color: #0f766e;
}

.operator-home-kpi > small {
  color: var(--app-muted);
  font-size: 0.72rem;
}

.operator-home-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.operator-home-panel {
  background: #ffffff;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  box-shadow: var(--app-shadow);
  min-width: 0;
  overflow: hidden;
}

.operator-home-panel-heading {
  align-items: center;
  border-bottom: 1px solid #e7edf4;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  min-height: 70px;
  padding: 0.8rem 1rem;
}

.operator-home-panel-heading h2 {
  font-size: 1rem;
  font-weight: 750;
  margin: 0;
}

.operator-home-panel-heading p {
  color: var(--app-muted);
  font-size: 0.75rem;
  margin: 0.15rem 0 0;
}

.operator-home-panel-heading a {
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.operator-home-count {
  align-items: center;
  background: #f1f5f9;
  border-radius: 999px;
  color: #475569;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 750;
  height: 28px;
  justify-content: center;
  min-width: 28px;
  padding-inline: 0.45rem;
}

.operator-home-list {
  display: grid;
}

.operator-home-list-row {
  align-items: center;
  border-top: 1px solid #edf1f6;
  color: var(--app-text);
  display: grid;
  gap: 0.65rem;
  grid-template-columns: minmax(0, 1fr) auto auto;
  min-height: 57px;
  padding: 0.58rem 1rem;
  text-decoration: none;
}

.operator-home-list-row:first-child {
  border-top: 0;
}

a.operator-home-list-row:hover,
a.operator-home-list-row:focus-visible {
  background: #f7f9ff;
  color: var(--app-text);
}

.operator-home-list-main {
  display: grid;
  min-width: 0;
}

.operator-home-list-main strong {
  font-size: 0.84rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operator-home-list-main small {
  color: var(--app-muted);
  font-size: 0.7rem;
}

.operator-home-list-meta {
  color: #475569;
  font-size: 0.74rem;
  font-weight: 650;
  white-space: nowrap;
}

.operator-home-list-meta.is-overdue {
  color: #b45309;
}

.operator-home-row-arrow {
  color: var(--app-accent);
  font-size: 1rem;
}

.operator-result-badge {
  background: #eef2f7;
  border: 1px solid #d6dee9;
  border-radius: 999px;
  color: #475569;
  font-size: 0.68rem;
  font-weight: 750;
  padding: 0.25rem 0.5rem;
  white-space: nowrap;
}

.operator-result-badge.result-interested,
.operator-result-badge.result-sold,
.operator-result-badge.result-answered {
  background: #ecfdf3;
  border-color: #b7e5c8;
  color: #166534;
}

.operator-result-badge.result-callback_requested {
  background: #eff6ff;
  border-color: #bfd6fd;
  color: #1d4ed8;
}

.operator-result-badge.result-invalid_number,
.operator-result-badge.result-do_not_call,
.operator-result-badge.result-failed {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
}

.operator-result-badge.result-no_answer,
.operator-result-badge.result-busy {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.operator-home-empty {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 116px;
  padding: 1rem;
  text-align: center;
}

.operator-home-empty strong {
  font-size: 0.84rem;
}

.operator-home-empty span {
  color: var(--app-muted);
  font-size: 0.72rem;
  margin-top: 0.15rem;
}

.operator-home-help {
  background: #ffffff;
  border: 1px solid var(--app-border);
  border-radius: 10px;
}

.operator-home-help summary {
  color: #40516c;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  list-style: none;
  padding: 0.65rem 0.85rem;
}

.operator-home-help summary::-webkit-details-marker {
  display: none;
}

.operator-home-help summary::after {
  content: "+";
  float: right;
  font-size: 1rem;
}

.operator-home-help[open] summary::after {
  content: "−";
}

.operator-home-help ol {
  border-top: 1px solid #edf1f6;
  color: #52657f;
  font-size: 0.76rem;
  margin: 0;
  padding: 0.7rem 1rem 0.8rem 2.2rem;
}

.operator-home-updated {
  color: var(--app-muted);
  font-size: 0.68rem;
  margin: -0.4rem 0 0;
  text-align: end;
}

@media (max-width: 1199.98px) {
  .operator-home-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .operator-home-header,
  .operator-next-action {
    align-items: stretch;
    flex-direction: column;
  }

  .operator-home-header .btn {
    align-self: flex-start;
  }

  .operator-next-action-button {
    min-width: 0;
    width: 100%;
  }

  .operator-home-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .operator-home-kpis {
    grid-template-columns: 1fr;
  }

  .operator-home-list-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .operator-home-list-meta {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .operator-result-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

.warehouse-scan-hero {
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #f1f5ff 100%);
  border: 1px solid #cfdcff;
  border-radius: var(--app-radius);
  box-shadow: var(--app-shadow);
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(260px, 0.9fr) minmax(360px, 1.1fr);
  padding: 1.15rem;
}

.warehouse-scan-hero > div {
  align-items: center;
  display: flex;
  gap: 0.85rem;
}

.warehouse-step-number {
  align-items: center;
  background: var(--app-accent);
  border-radius: 50%;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 34px;
  font-size: 0.85rem;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  margin-right: 0.35rem;
  width: 34px;
}

.warehouse-scan-form {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.warehouse-scan-form .form-control,
.warehouse-scan-form .btn {
  min-height: 48px;
}

.warehouse-task-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.warehouse-task-card {
  background: #ffffff;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  color: var(--app-text);
  display: grid;
  gap: 0.35rem;
  min-height: 104px;
  padding: 0.9rem 1rem;
  text-align: left;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.warehouse-task-card strong {
  font-size: 0.95rem;
}

.warehouse-task-card span {
  color: var(--app-muted);
  font-size: 0.78rem;
}

.warehouse-task-card:hover,
.warehouse-task-card.active {
  border-color: #8fa8f7;
  box-shadow: 0 8px 22px rgb(49 87 213 / 10%);
  transform: translateY(-1px);
}

.warehouse-task-card.active {
  background: var(--app-accent-soft);
}

.workflow-disclosure {
  background: #ffffff;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  box-shadow: var(--app-shadow);
  scroll-margin-top: 84px;
}

.workflow-disclosure > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  list-style: none;
  min-height: 72px;
  padding: 0.9rem 1.1rem;
}

.workflow-disclosure > summary::-webkit-details-marker {
  display: none;
}

.workflow-disclosure > summary > span:first-child {
  display: grid;
  gap: 0.15rem;
}

.workflow-disclosure > summary strong {
  color: #223049;
}

.workflow-disclosure > summary small {
  color: var(--app-muted);
}

.workflow-disclosure-action {
  color: var(--app-accent);
  flex: 0 0 auto;
  font-size: 0.8rem;
  font-weight: 750;
}

.workflow-disclosure[open] .workflow-disclosure-action {
  font-size: 0;
}

.workflow-disclosure[open] .workflow-disclosure-action::after {
  content: "Скрий";
  font-size: 0.8rem;
}

.workflow-disclosure[open] > summary {
  border-bottom: 1px solid var(--app-border);
}

.workflow-disclosure-body {
  background: #f8fafc;
  border-radius: 0 0 var(--app-radius) var(--app-radius);
  padding: 1rem;
}

.workflow-disclosure-body .panel {
  box-shadow: none;
}

.after-sales-overview {
  background: #ffffff;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  padding: 1rem;
}

.after-sales-summary-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.after-sales-summary-card {
  background: #f8fafc;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  display: grid;
  gap: 0.08rem;
  min-width: 0;
  padding: 0.72rem 0.8rem;
}

.after-sales-summary-card > span {
  color: #52627a;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.after-sales-summary-card > strong {
  color: #172033;
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.after-sales-summary-card > small {
  color: var(--app-muted);
  font-size: 0.72rem;
}

.after-sales-intake-form,
.after-sales-action-card,
.after-sales-repair-list {
  display: grid;
  gap: 0.75rem;
}

.after-sales-case-list {
  display: grid;
  gap: 0.5rem;
}

.after-sales-case-list .list-group-item {
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  color: #172033;
  padding: 0.72rem;
}

.after-sales-case-list .list-group-item.active {
  background: #edf2ff;
  border-color: #8fa8f7;
  box-shadow: inset 3px 0 0 var(--app-accent);
  color: #172033;
}

.after-sales-case-list .list-group-item.active .text-secondary,
.after-sales-case-list .list-group-item.active .after-sales-next-step {
  color: #52627a !important;
}

.after-sales-next-step {
  border-top: 1px solid #e2e8f0;
  color: #3157d5;
  font-weight: 700;
  padding-top: 0.45rem;
}

.after-sales-case-heading {
  align-items: flex-start;
}

.after-sales-case-body {
  display: grid;
  gap: 1rem;
}

.after-sales-stage-strip {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.after-sales-stage {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #dbe3ee;
  border-radius: 9px;
  color: #64748b;
  display: flex;
  font-size: 0.72rem;
  gap: 0.4rem;
  min-width: 0;
  padding: 0.5rem;
}

.after-sales-stage > span {
  align-items: center;
  background: #e2e8f0;
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 24px;
  font-variant-numeric: tabular-nums;
  height: 24px;
  justify-content: center;
}

.after-sales-stage.is-current {
  background: #edf2ff;
  border-color: #8fa8f7;
  color: #1d4ed8;
}

.after-sales-stage.is-current > span {
  background: var(--app-accent);
  color: #ffffff;
}

.after-sales-stage.is-complete {
  background: #f0fdf4;
  border-color: #a7e5bc;
  color: #166534;
}

.after-sales-stage.is-complete > span {
  background: #dcfce7;
}

.after-sales-facts {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.after-sales-facts > div {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  display: grid;
  gap: 0.15rem;
  min-width: 0;
  padding: 0.65rem 0.72rem;
}

.after-sales-facts span {
  color: var(--app-muted);
  font-size: 0.67rem;
  font-weight: 750;
  text-transform: uppercase;
}

.after-sales-facts strong {
  color: #263449;
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.after-sales-action-card {
  background: #ffffff;
  border: 1px solid #cfd9e8;
  border-radius: 11px;
  padding: 0.9rem;
}

.after-sales-action-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.after-sales-replacement-card {
  border-color: #f0c86f;
}

.after-sales-repair-card {
  background: #f8fafc;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  color: #172033;
  display: block;
  padding: 0.78rem;
}

.after-sales-decision-disclosure {
  border-top: 1px solid #e2e8f0;
  padding-top: 0.65rem;
}

.after-sales-decision-disclosure > summary {
  color: #3157d5;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 750;
}

@media (max-width: 767.98px) {
  .after-sales-summary-grid,
  .after-sales-facts,
  .after-sales-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .after-sales-stage-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .after-sales-summary-grid,
  .after-sales-facts,
  .after-sales-action-grid {
    grid-template-columns: 1fr;
  }

  .after-sales-overview,
  .after-sales-action-card {
    padding: 0.75rem;
  }
}

.warehouse-supply-workspace {
  display: grid;
  gap: 0.9rem;
  min-width: 0;
}

.warehouse-supply-overview {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.warehouse-supply-overview article {
  background: #ffffff;
  border: 1px solid var(--app-border);
  border-radius: 11px;
  display: grid;
  gap: 0.1rem;
  min-width: 0;
  padding: 0.72rem 0.85rem;
}

.warehouse-supply-overview span {
  color: var(--app-muted);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.warehouse-supply-overview strong {
  color: #172033;
  font-size: 1.35rem;
  line-height: 1.15;
}

.warehouse-supply-overview small {
  color: var(--app-muted);
  font-size: 0.72rem;
}

.warehouse-supply-tabs {
  align-items: center;
  background: #eef3f9;
  border: 1px solid var(--app-border);
  border-radius: 11px;
  display: flex;
  gap: 0.25rem;
  max-width: 100%;
  overflow-x: auto;
  padding: 0.3rem;
  scrollbar-width: thin;
}

.warehouse-supply-tabs button {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #526178;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.8rem;
  font-weight: 700;
  gap: 0.45rem;
  justify-content: center;
  min-height: 38px;
  padding: 0.45rem 0.75rem;
}

.warehouse-supply-tabs button:hover {
  color: var(--app-accent);
}

.warehouse-supply-tabs button[aria-selected="true"] {
  background: #ffffff;
  border-color: #cbd8eb;
  box-shadow: 0 3px 10px rgb(30 64 175 / 8%);
  color: var(--app-accent);
}

.warehouse-supply-tabs button:focus-visible {
  outline: 3px solid rgb(37 99 235 / 24%);
  outline-offset: 1px;
}

.warehouse-supply-tabs button > span {
  align-items: center;
  background: var(--app-accent-soft);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.67rem;
  height: 21px;
  justify-content: center;
  min-width: 21px;
  padding-inline: 0.32rem;
}

.warehouse-supply-panels,
.warehouse-supply-tab-panel {
  min-width: 0;
}

.warehouse-supply-tab-panel + .warehouse-supply-tab-panel {
  margin-top: 0.9rem;
}

.warehouse-supply-workspace.is-initialized .warehouse-supply-tab-panel + .warehouse-supply-tab-panel {
  margin-top: 0;
}

.warehouse-supply-tab-panel[hidden] {
  display: none !important;
}

.warehouse-supply-section {
  overflow: hidden;
}

.warehouse-supply-section .panel-heading small {
  color: var(--app-muted);
  display: block;
  font-size: 0.74rem;
  margin-top: 0.18rem;
}

.warehouse-supply-heading-actions {
  align-items: center;
  display: flex;
  gap: 0.6rem;
}

.warehouse-supply-empty {
  align-items: center;
  background: #f8fafc;
  border: 1px dashed #cbd8e8;
  border-radius: 11px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  justify-content: center;
  min-height: 150px;
  padding: 1.35rem;
  text-align: center;
}

.warehouse-supply-empty.is-compact {
  min-height: 96px;
}

.warehouse-supply-empty strong {
  color: #223049;
}

.warehouse-supply-empty small {
  color: var(--app-muted);
  max-width: 650px;
}

.warehouse-supply-empty .btn {
  margin-top: 0.35rem;
}

.warehouse-supply-empty-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  margin-top: 0.35rem;
}

.warehouse-supply-empty-actions .btn {
  margin-top: 0;
}

.warehouse-supplier-directory {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.warehouse-supplier-directory article {
  border: 1px solid var(--app-border);
  border-radius: 10px;
  display: grid;
  gap: 0.1rem;
  min-width: 0;
  padding: 0.72rem 0.8rem;
}

.warehouse-supplier-directory article > span {
  color: var(--app-accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.warehouse-supplier-directory article > strong,
.warehouse-supplier-directory article > small {
  overflow-wrap: anywhere;
}

.warehouse-supplier-directory article > small {
  color: var(--app-muted);
  font-size: 0.72rem;
}

.warehouse-supply-form-heading {
  border-top: 1px solid var(--app-border);
  display: grid;
  gap: 0.1rem;
  margin-top: 1rem;
  padding-top: 1rem;
}

.warehouse-supply-form-heading small {
  color: var(--app-muted);
  font-size: 0.72rem;
}

.warehouse-supply-form-grid {
  align-items: end;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: minmax(100px, 0.6fr) repeat(3, minmax(150px, 1fr)) minmax(110px, 0.6fr) auto;
  margin-top: 0.75rem;
}

.warehouse-supply-field {
  min-width: 0;
}

.warehouse-supply-field .form-label {
  display: block;
}

.warehouse-supply-field > small {
  color: var(--app-muted);
  display: block;
  font-size: 0.72rem;
  margin-top: 0.35rem;
}

.warehouse-supply-form-action .btn {
  min-height: 42px;
  white-space: nowrap;
}

.warehouse-purchase-order-form {
  align-items: end;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: minmax(180px, 1fr) minmax(240px, 1.5fr) repeat(3, minmax(120px, 0.65fr));
}

.warehouse-conversion-context {
  align-items: center;
  background: #eff6ff;
  border: 1px solid #b9cdfb;
  border-radius: 10px;
  display: flex;
  gap: 1rem;
  grid-column: 1 / -1;
  justify-content: space-between;
  padding: 0.72rem 0.85rem;
}

.warehouse-conversion-context > div {
  display: grid;
  gap: 0.1rem;
}

.warehouse-conversion-context strong {
  color: #1e3a8a;
  font-size: 0.82rem;
}

.warehouse-conversion-context small {
  color: #506a9d;
  font-size: 0.72rem;
}

.warehouse-replenishment-form {
  align-items: end;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: minmax(240px, 1.35fr) minmax(150px, 0.55fr) minmax(280px, 1.45fr);
}

.warehouse-replenishment-submit {
  align-items: center;
  border-top: 1px solid var(--app-border);
  display: flex;
  gap: 1rem;
  grid-column: 1 / -1;
  justify-content: space-between;
  padding-top: 0.9rem;
}

.warehouse-replenishment-submit small {
  color: var(--app-muted);
  font-size: 0.72rem;
}

.warehouse-replenishment-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.warehouse-replenishment-item {
  align-items: center;
  border: 1px solid var(--app-border);
  border-left: 3px solid #7f9ee8;
  border-radius: 10px;
  display: grid;
  gap: 0.75rem 1rem;
  grid-template-columns: minmax(0, 1.35fr) minmax(180px, 0.75fr) auto;
  padding: 0.8rem 0.9rem;
}

.warehouse-replenishment-identity,
.warehouse-replenishment-meta,
.warehouse-replenishment-action > span {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.warehouse-replenishment-identity > span {
  color: var(--app-accent);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.035em;
}

.warehouse-replenishment-identity > strong {
  color: #223049;
  overflow-wrap: anywhere;
}

.warehouse-replenishment-identity > small,
.warehouse-replenishment-meta > small,
.warehouse-replenishment-action small {
  color: var(--app-muted);
  font-size: 0.7rem;
}

.warehouse-replenishment-meta {
  justify-items: start;
}

.warehouse-replenishment-item > p {
  background: #f8fafc;
  border-radius: 8px;
  color: #475569;
  font-size: 0.76rem;
  grid-column: 1 / -1;
  margin: 0;
  overflow-wrap: anywhere;
  padding: 0.5rem 0.6rem;
}

.warehouse-replenishment-action {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.warehouse-replenishment-progress {
  background: #f8fafc;
  border: 1px solid #e3eaf5;
  border-radius: 9px;
  display: grid;
  gap: 0.6rem;
  grid-column: 1 / -1;
  padding: 0.65rem 0.75rem;
}

.warehouse-replenishment-progress > dl {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.warehouse-replenishment-progress > dl > div {
  display: grid;
  gap: 0.08rem;
}

.warehouse-replenishment-progress dt {
  color: var(--app-muted);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.warehouse-replenishment-progress dd {
  color: #223049;
  font-size: 0.78rem;
  font-weight: 800;
  margin: 0;
}

.warehouse-replenishment-progress > small,
.warehouse-replenishment-meter small {
  color: var(--app-muted);
  font-size: 0.68rem;
}

.warehouse-replenishment-meter {
  align-items: center;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: minmax(120px, 1fr) auto;
}

.warehouse-replenishment-meter progress {
  accent-color: var(--app-accent);
  height: 0.55rem;
  width: 100%;
}

.warehouse-supply-checkbox {
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  gap: 0.65rem;
  grid-column: 1 / -1;
  padding: 0.75rem 0.85rem;
}

.warehouse-supply-checkbox .form-check-input {
  flex: 0 0 auto;
  margin-top: 0.15rem;
}

.warehouse-supply-checkbox span {
  display: grid;
}

.warehouse-supply-checkbox small {
  color: var(--app-muted);
  font-size: 0.72rem;
}

.warehouse-purchase-order-submit,
.warehouse-receipt-submit {
  align-items: center;
  border-top: 1px solid var(--app-border);
  display: flex;
  gap: 1rem;
  grid-column: 1 / -1;
  justify-content: space-between;
  padding-top: 0.9rem;
}

.warehouse-purchase-order-submit > small,
.warehouse-receipt-submit small {
  color: var(--app-muted);
  font-size: 0.72rem;
}

.warehouse-supply-receipt-form {
  display: grid;
  gap: 1rem;
}

.warehouse-receipt-context {
  background: #f5f8ff;
  border: 1px solid #cddafe;
  border-radius: 12px;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: minmax(280px, 1.15fr) minmax(360px, 1.85fr);
  padding: 0.9rem;
}

.warehouse-receipt-summary {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.warehouse-receipt-summary > div {
  border-left: 1px solid #d9e3f4;
  min-width: 0;
  padding-left: 0.7rem;
}

.warehouse-receipt-summary dt {
  color: var(--app-muted);
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.035em;
  margin-bottom: 0.15rem;
  text-transform: uppercase;
}

.warehouse-receipt-summary dd {
  color: #223049;
  font-size: 0.8rem;
  font-weight: 650;
  margin: 0;
  overflow-wrap: anywhere;
}

.warehouse-receipt-summary dd small {
  color: var(--app-muted);
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
}

.warehouse-receipt-fields {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: minmax(220px, 1.3fr) repeat(2, minmax(160px, 0.75fr)) minmax(200px, 1fr);
}

.warehouse-receipt-fields .is-full {
  grid-column: 1 / -1;
}

.warehouse-receipt-submit > div {
  display: grid;
  gap: 0.1rem;
}

.warehouse-receipt-submit .btn {
  min-width: 180px;
}

.warehouse-supply-control-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.warehouse-supply-control-card {
  align-items: center;
  border: 1px solid var(--app-border);
  border-radius: 11px;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 0.9rem;
}

.warehouse-supply-control-number {
  align-items: center;
  background: var(--app-accent-soft);
  border-radius: 10px;
  color: var(--app-accent);
  display: inline-flex;
  font-size: 1.3rem;
  font-weight: 800;
  height: 46px;
  justify-content: center;
  min-width: 46px;
}

.warehouse-supply-control-card > div {
  display: grid;
  gap: 0.15rem;
}

.warehouse-supply-control-card small {
  color: var(--app-muted);
  font-size: 0.72rem;
}

.warehouse-supply-control-card .btn {
  grid-column: 1 / -1;
  justify-self: start;
}

.warehouse-valuation-unavailable {
  grid-column: 1 / -1;
}

.warehouse-valuation-history {
  border-top: 1px solid var(--app-border);
  margin-top: 1rem;
  padding-top: 1rem;
}

.warehouse-valuation-history-heading {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.warehouse-valuation-history-heading > div {
  display: grid;
  gap: 0.12rem;
}

.warehouse-valuation-history-heading small,
.warehouse-valuation-run small,
.warehouse-valuation-table td small {
  color: var(--app-muted);
  font-size: 0.7rem;
}

.warehouse-valuation-run-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.warehouse-valuation-run {
  border: 1px solid var(--app-border);
  border-radius: 11px;
  overflow: hidden;
}

.warehouse-valuation-run > summary {
  align-items: center;
  background: #f8fafc;
  cursor: pointer;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(190px, 1.3fr) repeat(2, minmax(90px, 0.55fr)) minmax(130px, 0.75fr) auto;
  list-style: none;
  padding: 0.8rem 0.9rem;
}

.warehouse-valuation-run > summary::-webkit-details-marker {
  display: none;
}

.warehouse-valuation-run[open] > summary {
  border-bottom: 1px solid var(--app-border);
}

.warehouse-valuation-run-title,
.warehouse-valuation-run-metric,
.warehouse-valuation-run-total {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.warehouse-valuation-run-title strong,
.warehouse-valuation-run-total strong {
  color: #223049;
}

.warehouse-valuation-run-metric strong,
.warehouse-valuation-run-total strong {
  font-variant-numeric: tabular-nums;
}

.warehouse-valuation-run-action {
  color: var(--app-accent);
  font-size: 0.72rem;
  font-weight: 750;
}

.warehouse-valuation-table {
  min-width: 760px;
}

.warehouse-valuation-table td:first-child strong,
.warehouse-valuation-table td:first-child small,
.warehouse-valuation-table td:last-child small {
  display: block;
}

.warehouse-valuation-table td,
.warehouse-valuation-table th {
  padding: 0.65rem 0.75rem;
}

.warehouse-supply-orders td:first-child strong,
.warehouse-supply-orders td:first-child small,
.warehouse-supply-line-summary {
  display: block;
}

.warehouse-supply-orders td:first-child small {
  color: var(--app-muted);
  font-size: 0.68rem;
}

.warehouse-supply-line-summary {
  color: #334155;
  font-size: 0.76rem;
  max-width: 420px;
}

.warehouse-supply-line-summary + .warehouse-supply-line-summary {
  margin-top: 0.2rem;
}

.warehouse-handoff-summary {
  color: #172033;
}

.warehouse-handoff-status {
  align-items: flex-start;
  border: 1px solid;
  border-radius: 12px;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.85rem 1rem;
}

.warehouse-handoff-status strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.warehouse-handoff-status p {
  font-size: 0.78rem;
  margin: 0;
}

.warehouse-handoff-status ul {
  font-size: 0.78rem;
  margin: 0;
  max-width: 56%;
  padding-left: 1.1rem;
}

.warehouse-handoff-status li + li {
  margin-top: 0.35rem;
}

.warehouse-handoff-status li small {
  background: rgb(255 255 255 / 68%);
  border: 1px solid rgb(124 45 18 / 18%);
  border-radius: 999px;
  display: block;
  font-size: 0.64rem;
  font-weight: 700;
  margin-top: 0.16rem;
  padding: 0.08rem 0.38rem;
  width: fit-content;
}

.warehouse-handoff-status.is-complete {
  background: #effaf4;
  border-color: #a9dfbf;
  color: #14532d;
}

.warehouse-handoff-status.is-incomplete {
  background: #fff6ed;
  border-color: #f2c18f;
  color: #7c2d12;
}

.warehouse-handoff-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.warehouse-handoff-card,
.warehouse-handoff-instructions,
.warehouse-handoff-invoice {
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  padding: 0.85rem;
}

.warehouse-handoff-card {
  border-left: 3px solid #7f9ee8;
  min-width: 0;
}

.warehouse-handoff-card.is-invalid,
.warehouse-handoff-invoice.is-invalid {
  background: #fff1f2;
  border-color: #f4a7af;
  border-left-color: #dc3545;
}

.warehouse-handoff-missing {
  color: #9f1239 !important;
}

.warehouse-handoff-missing::before {
  content: "!";
  align-items: center;
  background: #be123c;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 0.62rem;
  font-weight: 800;
  height: 1rem;
  justify-content: center;
  margin-right: 0.3rem;
  vertical-align: 0.08rem;
  width: 1rem;
}

.warehouse-handoff-owner-note {
  background: #ffe4e6;
  border-radius: 8px;
  color: #9f1239;
  font-size: 0.7rem;
  font-weight: 650;
  margin: 0.7rem 0 0;
  padding: 0.45rem 0.55rem;
}

.warehouse-handoff-correction {
  background: #ffffff;
  border: 1px solid #c8d6ea;
  border-radius: 12px;
  overflow: visible;
}

.warehouse-handoff-correction > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  list-style: none;
  padding: 0.75rem 0.9rem;
}

.warehouse-handoff-correction > summary::-webkit-details-marker {
  display: none;
}

.warehouse-handoff-correction > summary strong,
.warehouse-handoff-correction > summary small {
  display: block;
}

.warehouse-handoff-correction > summary strong {
  color: #17325c;
  font-size: 0.86rem;
}

.warehouse-handoff-correction > summary small {
  color: var(--app-muted);
  font-size: 0.72rem;
  margin-top: 0.1rem;
}

.warehouse-handoff-correction-action {
  border: 1px solid #4f6fcb;
  border-radius: 8px;
  color: #2148b5;
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 750;
  padding: 0.35rem 0.55rem;
}

.warehouse-handoff-correction-action [data-handoff-action-close] {
  display: none;
}

.warehouse-handoff-correction[open] .warehouse-handoff-correction-action [data-handoff-action-open] {
  display: none;
}

.warehouse-handoff-correction[open] .warehouse-handoff-correction-action [data-handoff-action-close] {
  display: inline;
}

.warehouse-handoff-correction[open] > summary {
  background: #f1f5ff;
  border-bottom: 1px solid #c8d6ea;
  border-radius: 12px 12px 0 0;
}

.warehouse-handoff-correction-form {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0.9rem;
}

.warehouse-handoff-correction-form > section {
  background: #f8fafc;
  border: 1px solid #e1e7f0;
  border-radius: 10px;
  min-width: 0;
  padding: 0.75rem;
}

.warehouse-handoff-form-heading {
  align-items: start;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.warehouse-handoff-form-heading h3 {
  font-size: 0.84rem;
  font-weight: 750;
  margin: 0;
}

.warehouse-handoff-form-note {
  color: var(--app-muted);
  font-size: 0.68rem;
  max-width: 180px;
  text-align: right;
}

.warehouse-handoff-form-grid {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.warehouse-handoff-form-grid.is-three-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.warehouse-handoff-correction-form .form-label {
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.warehouse-handoff-correction-form .form-text {
  font-size: 0.66rem;
}

.warehouse-handoff-exception {
  align-self: center;
  background: #ffffff;
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  margin-top: 1.25rem;
  padding: 0.55rem 0.55rem 0.45rem 1.9rem;
}

.warehouse-handoff-payer-fieldset {
  background: #ffffff;
  border: 1px solid #d7e0ed;
  border-radius: 9px;
  margin: 0;
  padding: 0.65rem 0.75rem;
}

.warehouse-handoff-payer-fieldset .form-check {
  align-items: center;
  display: inline-flex;
  gap: 0.35rem;
  margin: 0;
  min-height: 1.7rem;
  padding-left: 1.35rem;
}

.warehouse-handoff-payer-fieldset .form-check-label {
  color: #1f2937;
  font-size: 0.75rem;
  font-weight: 650;
}

.warehouse-handoff-correction-reason {
  grid-column: 1 / -1;
}

.warehouse-handoff-correction-footer {
  align-items: center;
  display: flex;
  gap: 1rem;
  grid-column: 1 / -1;
  justify-content: space-between;
}

.warehouse-handoff-correction-footer p {
  color: var(--app-muted);
  font-size: 0.68rem;
  margin: 0;
}

.warehouse-handoff-correction-buttons {
  display: flex;
  flex: 0 0 auto;
  gap: 0.5rem;
}

.warehouse-handoff-correction-locked {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #d7dee9;
  border-radius: 10px;
  color: #475569;
  display: flex;
  font-size: 0.72rem;
  gap: 0.7rem;
  padding: 0.65rem 0.8rem;
}

.warehouse-handoff-correction-locked strong {
  color: #334155;
  flex: 0 0 auto;
}

.warehouse-handoff-items-invalid {
  background: #fff1f2;
  border: 1px solid #f4a7af;
  border-radius: 10px;
  padding: 0.35rem;
}

.warehouse-handoff-kicker {
  color: #58708f;
  display: block;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
}

.warehouse-handoff-card h3,
.warehouse-handoff-instructions h3,
.warehouse-handoff-invoice h3 {
  font-size: 0.9rem;
  font-weight: 750;
  margin: 0;
  overflow-wrap: anywhere;
}

.warehouse-handoff-secondary {
  color: var(--app-muted);
  font-size: 0.75rem;
  margin: 0.2rem 0 0;
}

.warehouse-handoff-card dl {
  display: grid;
  gap: 0.45rem;
  margin: 0.7rem 0 0;
}

.warehouse-handoff-card dl > div {
  align-items: start;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: minmax(96px, 0.42fr) minmax(0, 0.58fr);
}

.warehouse-handoff-card dt,
.warehouse-invoice-grid span {
  color: var(--app-muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.warehouse-handoff-card dd {
  font-size: 0.76rem;
  font-weight: 650;
  margin: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.warehouse-handoff-card dd small {
  color: var(--app-muted);
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  margin-top: 0.15rem;
}

.warehouse-handoff-instructions {
  align-items: start;
  background: #f8fbff;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 0.68fr);
}

.warehouse-handoff-note {
  color: #2f405a;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.warehouse-handoff-invoice {
  background: #f4f7ff;
  border-color: #c9d6ff;
}

.warehouse-invoice-grid {
  display: grid;
  gap: 0.55rem 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.warehouse-invoice-grid > div {
  display: grid;
  gap: 0.1rem;
}

.warehouse-invoice-grid strong {
  font-size: 0.76rem;
  overflow-wrap: anywhere;
}

.warehouse-packing-blocked {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  color: #7c2d12;
  padding: 1rem;
}

.warehouse-packing-blocked strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.warehouse-packing-blocked p {
  font-size: 0.78rem;
  margin: 0;
}

.warehouse-dispatch-flow {
  display: grid;
  gap: 0.85rem;
}

.warehouse-dispatch-step {
  background: #ffffff;
  border: 1px solid #d8e1ed;
  border-radius: 14px;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 2rem minmax(0, 1fr);
  padding: 1rem;
}

.warehouse-dispatch-step.is-complete,
.warehouse-dispatch-step.is-ready {
  border-color: #9ed8b4;
  box-shadow: inset 3px 0 0 #198754;
}

.warehouse-dispatch-step-number {
  align-items: center;
  background: #eaf0ff;
  border-radius: 999px;
  color: #2453ca;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 800;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.warehouse-dispatch-step.is-complete .warehouse-dispatch-step-number,
.warehouse-dispatch-step.is-ready .warehouse-dispatch-step-number {
  background: #dcfce7;
  color: #166534;
}

.warehouse-dispatch-step-body {
  min-width: 0;
}

.warehouse-dispatch-step-heading {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.warehouse-dispatch-step-heading h3 {
  color: #172033;
  font-size: 1rem;
  font-weight: 760;
  margin: 0;
}

.warehouse-dispatch-step-heading p {
  color: #64748b;
  font-size: 0.75rem;
  margin: 0.15rem 0 0;
}

.warehouse-dispatch-items {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-top: 0.8rem;
  overflow: hidden;
}

.warehouse-dispatch-items thead th {
  background: #f5f7fb;
  color: #52627a;
  font-size: 0.66rem;
  letter-spacing: 0.035em;
  padding: 0.55rem 0.65rem;
  text-transform: uppercase;
}

.warehouse-dispatch-items tbody td {
  border-color: #edf1f6;
  font-size: 0.76rem;
  padding: 0.55rem 0.65rem;
}

.warehouse-dispatch-primary-action,
.warehouse-dispatch-processing,
.warehouse-dispatch-retry,
.warehouse-dispatch-error,
.warehouse-dispatch-documents,
.warehouse-dispatch-confirmed {
  align-items: center;
  border-radius: 10px;
  display: flex;
  gap: 0.85rem;
  justify-content: space-between;
  padding: 0.75rem 0.85rem;
}

.warehouse-dispatch-primary-action {
  background: #f1f6ff;
  border: 1px solid #c9d9ff;
}

.warehouse-dispatch-primary-action.is-final {
  background: #effaf4;
  border-color: #afe0c1;
}

.warehouse-dispatch-primary-action > div,
.warehouse-dispatch-processing > div,
.warehouse-dispatch-retry > div,
.warehouse-dispatch-error > div:first-child {
  display: grid;
  gap: 0.1rem;
}

.warehouse-dispatch-primary-action small,
.warehouse-dispatch-processing small,
.warehouse-dispatch-retry small,
.warehouse-dispatch-error small,
.warehouse-dispatch-confirmed small {
  color: #64748b;
  display: block;
  font-size: 0.7rem;
}

.warehouse-dispatch-confirmed {
  background: #effaf4;
  border: 1px solid #afe0c1;
  color: #14532d;
  justify-content: flex-start;
}

.warehouse-dispatch-confirmed > span {
  align-items: center;
  background: #198754;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 800;
  height: 1.6rem;
  justify-content: center;
  width: 1.6rem;
}

.warehouse-dispatch-waiting {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  color: #64748b;
  font-size: 0.78rem;
  margin-top: 0.8rem;
  padding: 0.85rem;
}

.warehouse-dispatch-processing {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  margin-top: 0.8rem;
}

.warehouse-dispatch-retry {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  margin-top: 0.8rem;
}

.warehouse-dispatch-error {
  align-items: center;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #881337;
  margin-top: 0.8rem;
}

.warehouse-dispatch-error small {
  color: #9f1239;
}

.warehouse-dispatch-error-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.warehouse-document-panel {
  align-items: stretch;
  background: #ffffff;
  border: 1px solid #cfdae8;
  flex-direction: column;
  gap: 0;
  margin-top: 0.8rem;
  overflow: hidden;
  padding: 0;
}

.warehouse-document-panel-header {
  align-items: center;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.8rem 0.9rem;
}

.warehouse-document-panel-header > div:first-child {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.warehouse-document-panel-header h4 {
  color: #172033;
  font-size: 0.9rem;
  font-weight: 760;
  margin: 0;
}

.warehouse-document-reference-line {
  align-items: center;
  color: #64748b;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.7rem;
  gap: 0.35rem;
}

.warehouse-document-reference-line strong {
  color: #334155;
  font-weight: 700;
}

.warehouse-document-available-count {
  background: #e8f7ee;
  border: 1px solid #b9e3c8;
  border-radius: 999px;
  color: #166534;
  flex: 0 0 auto;
  font-size: 0.7rem;
  font-weight: 750;
  padding: 0.3rem 0.6rem;
}

.warehouse-document-export {
  display: grid;
  min-width: 0;
  width: 100%;
}

.warehouse-document-toolbar {
  align-items: center;
  border-bottom: 1px solid #edf1f6;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.65rem 0.9rem;
}

.warehouse-document-select-all {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 0.6rem;
  margin: 0;
}

.warehouse-document-select-all .form-check-input {
  flex: 0 0 auto;
  height: 1.05rem;
  margin: 0;
  width: 1.05rem;
}

.warehouse-document-select-all > span {
  display: grid;
  gap: 0.02rem;
}

.warehouse-document-select-all strong {
  color: #25324a;
  font-size: 0.76rem;
}

.warehouse-document-select-all small {
  color: #64748b;
  font-size: 0.65rem;
}

.warehouse-document-selection-status {
  background: #eef4ff;
  border: 1px solid #cfddff;
  border-radius: 999px;
  color: #234da5;
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.28rem 0.55rem;
}

.warehouse-document-list {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0.8rem 0.9rem;
}

.warehouse-document-option {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d8e1ed;
  border-radius: 9px;
  display: flex;
  gap: 0.7rem;
  justify-content: space-between;
  min-height: 4rem;
  min-width: 0;
  padding: 0.6rem 0.65rem;
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.warehouse-document-option.is-selected,
.warehouse-document-option:has(.form-check-input:checked) {
  background: #f5f8ff;
  border-color: #9ab7f5;
  box-shadow: 0 0 0 1px rgb(74 119 219 / 8%);
}

.warehouse-document-option.is-preview-only {
  background: #f8fafc;
  color: #64748b;
}

.warehouse-document-option-main {
  align-items: center;
  display: flex;
  gap: 0.6rem;
  min-width: 0;
}

.warehouse-document-option-main > .form-check-input {
  flex: 0 0 auto;
  height: 1.05rem;
  margin: 0;
  width: 1.05rem;
}

.warehouse-document-identity {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 0.55rem;
  margin: 0;
  min-width: 0;
}

.warehouse-document-identity > span:last-child {
  display: grid;
  gap: 0.06rem;
  min-width: 0;
}

.warehouse-document-identity strong {
  color: #25324a;
  font-size: 0.76rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.warehouse-document-identity small {
  color: #64748b;
  font-size: 0.64rem;
}

.warehouse-document-file-mark {
  align-items: center;
  background: #e8efff;
  border-radius: 7px;
  color: #2453ca;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.56rem;
  font-weight: 800;
  height: 2rem;
  justify-content: center;
  letter-spacing: 0.03em;
  width: 2rem;
}

.warehouse-document-preview {
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-weight: 700;
}

.warehouse-document-export-footer {
  align-items: center;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.75rem 0.9rem;
}

.warehouse-document-export-help {
  display: grid;
  gap: 0.08rem;
  max-width: 34rem;
}

.warehouse-document-export-help strong {
  color: #334155;
  font-size: 0.7rem;
}

.warehouse-document-export-help small {
  color: #64748b;
  font-size: 0.64rem;
  line-height: 1.35;
}

.warehouse-document-export-buttons {
  align-items: stretch;
  display: flex;
  flex: 0 0 auto;
  gap: 0.5rem;
  justify-content: flex-end;
}

.warehouse-document-export-buttons .btn {
  display: grid;
  gap: 0.03rem;
  min-width: 9.5rem;
  padding: 0.45rem 0.7rem;
}

.warehouse-document-export-buttons .btn > span {
  font-size: 0.72rem;
  font-weight: 750;
}

.warehouse-document-export-buttons .btn > small {
  font-size: 0.59rem;
  font-weight: 600;
  opacity: 0.78;
}

.warehouse-scan-verification {
  background: #ffffff;
  border: 1px solid #d8e1ed;
  border-radius: 12px;
  overflow: hidden;
}

.warehouse-scan-verification > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  list-style: none;
  padding: 0.75rem 0.9rem;
}

.warehouse-scan-verification > summary::-webkit-details-marker {
  display: none;
}

.warehouse-scan-verification > summary > span:first-child {
  display: grid;
  gap: 0.08rem;
}

.warehouse-scan-verification > summary small {
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 400;
}

.warehouse-scan-verification[open] > summary {
  background: #f8fafc;
  border-bottom: 1px solid #d8e1ed;
}

.warehouse-scan-verification-body {
  padding: 0.85rem;
}

@media (max-width: 991.98px) {
  .warehouse-handoff-status {
    display: grid;
  }

  .warehouse-handoff-status ul {
    max-width: none;
  }

  .warehouse-handoff-correction-form {
    grid-template-columns: 1fr;
  }

  .warehouse-handoff-correction-reason,
  .warehouse-handoff-correction-footer {
    grid-column: auto;
  }
}

@media (max-width: 767.98px) {
  .warehouse-handoff-grid,
  .warehouse-invoice-grid {
    grid-template-columns: 1fr;
  }

  .warehouse-handoff-instructions {
    grid-template-columns: 1fr;
  }

  .warehouse-handoff-form-grid.is-three-columns {
    grid-template-columns: 1fr;
  }

  .warehouse-dispatch-step-heading,
  .warehouse-dispatch-primary-action,
  .warehouse-dispatch-processing,
  .warehouse-dispatch-retry,
  .warehouse-dispatch-error,
  .warehouse-dispatch-documents {
    align-items: stretch;
    flex-direction: column;
  }

  .warehouse-document-list {
    grid-template-columns: 1fr;
  }

  .warehouse-document-export-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .warehouse-document-export-buttons {
    justify-content: stretch;
  }

  .warehouse-document-export-buttons .btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 575.98px) {
  .warehouse-document-panel-header,
  .warehouse-document-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .warehouse-document-available-count,
  .warehouse-document-selection-status {
    align-self: flex-start;
  }

  .warehouse-document-export-buttons {
    flex-direction: column;
  }

  .warehouse-document-export-buttons .btn {
    width: 100%;
  }

  .warehouse-document-option {
    align-items: stretch;
    flex-direction: column;
  }

  .warehouse-document-option-main {
    width: 100%;
  }

  .warehouse-document-preview {
    align-self: flex-end;
  }

  .warehouse-handoff-card dl > div {
    gap: 0.15rem;
    grid-template-columns: 1fr;
  }

  .warehouse-handoff-card dd {
    text-align: left;
  }

  .warehouse-handoff-correction > summary,
  .warehouse-handoff-correction-footer,
  .warehouse-handoff-correction-locked,
  .warehouse-handoff-form-heading {
    align-items: stretch;
    display: grid;
  }

  .warehouse-handoff-correction-buttons {
    display: grid;
    width: 100%;
  }

  .warehouse-handoff-form-grid {
    grid-template-columns: 1fr;
  }

  .warehouse-handoff-form-note {
    max-width: none;
    text-align: left;
  }

  .warehouse-dispatch-step {
    grid-template-columns: 1fr;
  }
}

.app-sidebar-mobile {
  background: var(--app-sidebar);
  color: #ffffff;
}

.app-sidebar-mobile .offcanvas-header {
  border-bottom: 1px solid rgb(255 255 255 / 10%);
}

.app-sidebar-mobile .text-secondary {
  color: var(--app-sidebar-muted) !important;
}

.operator-workspace .panel {
  padding: 0.875rem;
}

.operator-empty {
  min-height: 96px;
}

.operator-main-panel {
  min-height: 640px;
}

.operator-catalog-heading,
.operator-product-card-heading,
.operator-product-card-actions {
  align-items: flex-start;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.operator-catalog-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.operator-catalog-tools {
  align-items: flex-end;
  display: grid;
  flex: 0 0 min(230px, 38%);
  gap: 0.4rem;
  justify-items: end;
}

.operator-catalog-search {
  max-width: 230px;
  width: 100%;
}

.operator-catalog-results {
  min-height: 0;
}

.operator-catalog-filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.operator-catalog-filter {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: #475569;
  font-size: 0.76rem;
  font-weight: 700;
  min-height: 28px;
  padding: 0.2rem 0.65rem;
}

.operator-catalog-filter:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.operator-catalog-filter.is-active {
  background: #eaf0ff;
  border-color: #6f8ff2;
  color: #2347bb;
}

.operator-catalog-filter:focus-visible {
  outline: 3px solid rgb(37 99 235 / 22%);
  outline-offset: 1px;
}

.operator-product-grid {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.operator-product-card {
  --operator-card-background: #ffffff;
  --operator-card-border: var(--app-border);
  --operator-card-accent: #94a3b8;
  --operator-card-hover-border: #b8c7dc;

  background: var(--operator-card-background);
  border: 1px solid var(--operator-card-border);
  border-inline-start: 3px solid var(--operator-card-accent);
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  min-height: 118px;
  padding: 0.7rem 0.75rem;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.operator-product-card-success {
  --operator-card-background: #f1faf4;
  --operator-card-border: #b9dec5;
  --operator-card-accent: #23834a;
  --operator-card-hover-border: #82bd96;
}

.operator-product-card-warning {
  --operator-card-background: #fff8e6;
  --operator-card-border: #ead39b;
  --operator-card-accent: #bd6c08;
  --operator-card-hover-border: #d5ab57;
}

.operator-product-card-danger {
  --operator-card-background: #fff2f1;
  --operator-card-border: #e9c1bd;
  --operator-card-accent: #bf4038;
  --operator-card-hover-border: #d9948e;
}

.operator-product-card[hidden] {
  display: none;
}

.operator-product-card:hover {
  border-color: var(--operator-card-hover-border);
  border-inline-start-color: var(--operator-card-accent);
  box-shadow: 0 6px 16px rgb(15 23 42 / 7%);
}

.operator-product-card:focus-within {
  box-shadow: 0 0 0 3px rgb(37 99 235 / 18%), 0 6px 16px rgb(15 23 42 / 7%);
}

.operator-product-title-line {
  align-items: flex-start;
  display: flex;
  gap: 0.35rem;
  min-width: 0;
}

.operator-product-price {
  color: #0f766e;
  flex: 0 0 auto;
  font-size: 0.9rem;
  white-space: nowrap;
}

.operator-product-card h3 {
  font-size: 0.9rem;
  line-height: 1.25;
}

.operator-featured-star {
  color: #d97706;
  flex: 0 0 auto;
  font-size: 0.92rem;
  line-height: 1.15;
}

.operator-product-type {
  color: #64748b;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  margin-top: 0.1rem;
  text-transform: uppercase;
}

.operator-product-pitch {
  color: #526174 !important;
  display: -webkit-box;
  flex: 1 1 auto;
  line-height: 1.35;
  margin: 0.3rem 0 0.45rem;
  min-height: 1.35em;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.operator-product-card-actions {
  align-items: center;
  gap: 0.5rem;
}

.operator-product-card-actions .btn-sm {
  min-height: 30px;
  padding: 0.3rem 0.55rem;
}

.operator-product-card-buttons {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 0.25rem;
}

.operator-product-details-button {
  color: #475569;
  padding-inline: 0.35rem !important;
  text-decoration: none;
}

.operator-product-details-button:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.operator-stock-state {
  align-items: center;
  background: #eef2f6;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: #334155;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 800;
  gap: 0.35rem;
  letter-spacing: 0.01em;
  line-height: 1.15;
  padding: 0.28rem 0.5rem;
  white-space: nowrap;
}

.operator-stock-state > span[aria-hidden="true"] {
  background: #94a3b8;
  border-radius: 999px;
  flex: 0 0 7px;
  height: 7px;
  width: 7px;
}

.operator-stock-success {
  background: #e2f4e8;
  border-color: #91caa4;
  color: #155f34;
}

.operator-stock-success > span[aria-hidden="true"] {
  background: #23834a;
}

.operator-stock-warning {
  background: #ffedc2;
  border-color: #e3b45c;
  color: #754100;
}

.operator-stock-warning > span[aria-hidden="true"] {
  background: #bd6c08;
}

.operator-stock-danger {
  background: #fbdedb;
  border-color: #dfa09a;
  color: #8a2924;
}

.operator-stock-danger > span[aria-hidden="true"] {
  background: #bf4038;
}

.operator-product-detail {
  display: grid;
  gap: 1rem;
}

.operator-product-detail-labels {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.operator-product-detail-featured {
  color: #b45309;
  font-size: 0.8rem;
  font-weight: 800;
}

.operator-product-detail-pitch {
  color: #334155;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.operator-product-detail-summary {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.operator-product-detail-summary > div {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--app-border);
  border-radius: 9px;
  display: flex;
  justify-content: space-between;
  padding: 0.75rem;
}

.operator-product-detail-summary dt {
  color: #64748b;
  font-size: 0.78rem;
}

.operator-product-detail-summary dd {
  color: #0f172a;
  font-weight: 800;
  margin: 0;
}

.operator-timeline-panel {
  min-height: 640px;
}

.operator-stat {
  border: 1px solid var(--app-border);
  border-radius: 8px;
  padding: 0.75rem;
}

.operator-stat .metric-value {
  font-size: 1.5rem;
  margin-top: 0.25rem;
}

.operator-timeline {
  display: grid;
  gap: 0.75rem;
}

.operator-timeline-item {
  border-left: 3px solid var(--app-accent);
  padding-left: 0.75rem;
}

.operator-primary-workspace {
  margin-inline: auto;
  max-width: 1680px;
}

.operator-customer-grid {
  display: grid;
  gap: 0.75rem;
  min-height: 0;
}

.operator-detail-column {
  min-height: 0;
}

.operator-focus-bar,
.operator-completion,
.operator-call-dock {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgb(15 23 42 / 6%);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.9rem 1rem;
}

.operator-focus-bar {
  border-left: 4px solid #2563eb;
}

.operator-focus-copy {
  min-width: 0;
}

.operator-focus-title {
  font-size: 1.05rem;
  font-weight: 800;
}

.operator-focus-actions,
.operator-completion-actions,
.operator-context-actions,
.operator-call-primary-controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.operator-context-actions {
  justify-content: space-between;
  position: relative;
}

.operator-context-links,
.operator-session-tools {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.operator-session-tools {
  justify-content: flex-end;
  margin-left: auto;
}

.operator-presence-control {
  position: relative;
  z-index: 1085;
}

.operator-presence-control > summary {
  list-style: none;
}

.operator-presence-control > summary::-webkit-details-marker,
.operator-tool-disclosure > summary::-webkit-details-marker {
  display: none;
}

.operator-session-chip {
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.78rem;
  gap: 0.4rem;
  min-height: 32px;
  padding: 0.3rem 0.65rem;
  text-decoration: none;
}

.operator-session-chip:hover,
.operator-session-chip:focus-visible,
.operator-presence-control[open] > .operator-session-chip {
  background: #f8fafc;
  border-color: #2563eb;
  color: #1d4ed8;
}

.operator-session-chip:focus-visible {
  outline: 3px solid rgb(37 99 235 / 18%);
  outline-offset: 2px;
}

.operator-session-chip strong {
  color: #0f172a;
  font-weight: 800;
}

.operator-session-dot {
  background: #94a3b8;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgb(148 163 184 / 15%);
  flex: 0 0 8px;
  height: 8px;
  width: 8px;
}

.operator-presence-available .operator-session-dot,
.operator-presence-on_call .operator-session-dot,
.operator-presence-wrap_up .operator-session-dot,
.operator-audio-chip[data-audio-status="ready"] .operator-session-dot,
.operator-audio-chip[data-audio-status="connected"] .operator-session-dot,
.operator-audio-overview[data-audio-status="ready"] .operator-audio-overview-icon,
.operator-audio-overview[data-audio-status="connected"] .operator-audio-overview-icon {
  background: #16a34a;
  box-shadow: 0 0 0 3px rgb(22 163 74 / 14%);
}

.operator-presence-paused .operator-session-dot,
.operator-presence-break .operator-session-dot,
.operator-audio-chip[data-audio-status="checking"] .operator-session-dot,
.operator-audio-chip[data-audio-status="connecting"] .operator-session-dot {
  background: #d97706;
  box-shadow: 0 0 0 3px rgb(217 119 6 / 14%);
}

.operator-audio-chip[data-audio-status="failed"] .operator-session-dot,
.operator-audio-chip[data-audio-status="denied"] .operator-session-dot,
.operator-audio-chip[data-audio-status="disconnected"] .operator-session-dot,
.operator-audio-chip[data-audio-status="offline"] .operator-session-dot,
.operator-audio-overview[data-audio-status="failed"] .operator-audio-overview-icon,
.operator-audio-overview[data-audio-status="denied"] .operator-audio-overview-icon,
.operator-audio-overview[data-audio-status="disconnected"] .operator-audio-overview-icon,
.operator-audio-overview[data-audio-status="offline"] .operator-audio-overview-icon {
  background: #dc2626;
  box-shadow: 0 0 0 3px rgb(220 38 38 / 14%);
}

.operator-audio-chip .badge {
  font-size: 0.68rem;
}

.operator-presence-popover {
  background: #ffffff;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  box-shadow: 0 18px 46px rgb(15 23 42 / 20%);
  padding: 0.85rem;
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  width: min(330px, calc(100vw - 2rem));
}

.operator-presence-heading {
  display: grid;
  gap: 0.15rem;
  margin-bottom: 0.65rem;
}

.operator-presence-heading span {
  color: var(--app-muted);
  font-size: 0.75rem;
}

.operator-presence-options {
  display: grid;
  gap: 0.35rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.operator-presence-option {
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  color: var(--app-text);
  display: flex;
  gap: 0.5rem;
  min-height: 54px;
  padding: 0.55rem;
  text-align: left;
}

.operator-presence-option:hover:not(:disabled),
.operator-presence-option:focus-visible {
  background: #eff6ff;
  border-color: #60a5fa;
}

.operator-presence-option:focus-visible {
  outline: 3px solid rgb(37 99 235 / 16%);
  outline-offset: 1px;
}

.operator-presence-option:disabled {
  background: #f8fafc;
  color: #94a3b8;
  cursor: not-allowed;
}

.operator-presence-option > span:last-child {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.operator-presence-option strong {
  font-size: 0.78rem;
  line-height: 1.2;
}

.operator-presence-option small {
  color: var(--app-muted);
  font-size: 0.68rem;
  line-height: 1.25;
}

.operator-presence-option-dot {
  background: #d97706;
  border-radius: 999px;
  flex: 0 0 8px;
  height: 8px;
  margin-top: 0.2rem;
  width: 8px;
}

.operator-presence-option-dot-available {
  background: #16a34a;
}

.operator-presence-option-dot-offline {
  background: #64748b;
}

.operator-presence-custom {
  border-top: 1px solid var(--app-border);
  margin-top: 0.65rem;
  padding-top: 0.65rem;
}

.operator-presence-custom > summary {
  color: #475569;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
}

.operator-presence-custom-fields {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.operator-presence-custom-fields .form-label {
  font-size: 0.72rem;
  margin: 0;
}

.operator-completion {
  align-items: flex-start;
  border-left: 4px solid #16a34a;
  margin-inline: auto;
  max-width: 920px;
  padding: 1.25rem;
}

.operator-completion-icon {
  align-items: center;
  background: #dcfce7;
  border-radius: 999px;
  color: #166534;
  display: flex;
  flex: 0 0 44px;
  font-size: 1.4rem;
  font-weight: 800;
  height: 44px;
  justify-content: center;
}

.operator-completion-copy {
  flex: 1 1 280px;
}

.operator-order-confirmation {
  max-width: none;
  width: 100%;
}

.operator-order-confirmation-content {
  flex: 1 1 auto;
  min-width: 0;
}

.operator-order-confirmation-heading {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.operator-order-confirmation-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-top: 1rem;
}

.operator-order-confirmation-fact {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  padding: 0.65rem 0.75rem;
}

.operator-order-confirmation-fact > span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.operator-order-confirmation-fact > strong {
  color: #0f172a;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.operator-order-confirmation-destination {
  grid-column: span 2;
}

.operator-order-confirmation-actions {
  justify-content: flex-end;
  margin-top: 1rem;
}

.operator-created-order-details {
  border-left: 3px solid #2563eb;
  width: 100%;
}

.operator-created-order-table th {
  color: #64748b;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.operator-created-order-review {
  align-items: stretch;
  border-top: 1px solid #e2e8f0;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.3fr);
  margin-top: 0.75rem;
  padding-top: 0.9rem;
}

.operator-created-order-meta {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.operator-created-order-meta > div {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  padding: 0.65rem 0.75rem;
}

.operator-created-order-meta span,
.operator-created-order-notes > span {
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.operator-created-order-meta strong {
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.operator-created-order-total {
  align-content: center;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  display: grid;
  gap: 0.15rem;
  justify-items: end;
  padding: 0.7rem 0.85rem;
  text-align: right;
}

.operator-created-order-total > span {
  color: #475569;
  font-size: 0.78rem;
}

.operator-created-order-total > strong {
  color: #0f172a;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}

.operator-created-order-total > small {
  color: #64748b;
}

.operator-created-order-notes {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
}

.operator-created-order-notes p {
  overflow-wrap: anywhere;
}

@media (max-width: 1399.98px) {
  .operator-order-confirmation-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .operator-created-order-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .operator-order-confirmation-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .operator-order-confirmation-grid {
    grid-template-columns: 1fr;
  }

  .operator-order-confirmation-destination {
    grid-column: auto;
  }

  .operator-created-order-review,
  .operator-created-order-meta {
    grid-template-columns: 1fr;
  }

  .operator-created-order-total {
    justify-items: start;
    text-align: left;
  }
}

.operator-inline-disclosure {
  grid-column: 1 / -1;
}

.operator-inline-disclosure > summary {
  align-items: center;
  color: var(--app-text);
  cursor: pointer;
  display: flex;
  font-size: 0.86rem;
  font-weight: 700;
  gap: 0.5rem;
  justify-content: space-between;
  list-style: none;
}

.operator-inline-disclosure > summary::-webkit-details-marker,
.operator-disclosure > summary::-webkit-details-marker {
  display: none;
}

.operator-inline-disclosure[open] > summary {
  margin-bottom: 0.65rem;
}

.operator-call-dock {
  border-left: 4px solid #16a34a;
}

.operator-call-identity,
.operator-call-timer {
  align-items: center;
  display: flex;
  gap: 0.65rem;
}

.operator-call-live-dot {
  background: #16a34a;
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgb(22 163 74 / 12%);
  flex: 0 0 10px;
  height: 10px;
}

.operator-call-timer {
  border-inline: 1px solid var(--app-border);
  flex-direction: column;
  gap: 0;
  min-width: 115px;
  padding-inline: 1rem;
}

.operator-call-timer span,
.operator-call-timer small {
  color: var(--app-muted);
  font-size: 0.72rem;
}

.operator-call-timer strong {
  color: #166534;
  font-variant-numeric: tabular-nums;
}

.operator-call-primary-controls form {
  margin: 0;
}

.operator-disclosure {
  background: #ffffff;
  border: 1px solid var(--app-border);
  border-radius: 9px;
  overflow: hidden;
  scroll-margin-top: 5rem;
}

.operator-disclosure.panel {
  padding: 0;
}

.operator-disclosure > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  list-style: none;
  min-height: 54px;
  padding: 0.75rem 0.9rem;
}

.operator-disclosure > summary::after {
  color: var(--app-muted);
  content: "+";
  flex: 0 0 auto;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
}

.operator-disclosure[open] > summary {
  border-bottom: 1px solid var(--app-border);
}

.operator-disclosure[open] > summary::after {
  content: "−";
}

.operator-disclosure > summary:focus-visible,
.operator-inline-disclosure > summary:focus-visible {
  outline: 3px solid rgb(37 99 235 / 25%);
  outline-offset: -3px;
}

.operator-disclosure-body {
  padding: 0.9rem;
}

.operator-section-disclosure {
  --operator-section-border: #d8e1ee;
  --operator-section-header: #f3f6fa;
  --operator-section-header-hover: #edf2f8;
  --operator-section-header-open: #e8f0fc;
  border-color: var(--operator-section-border);
  box-shadow: 0 1px 2px rgb(15 23 42 / 4%);
}

.operator-section-disclosure > summary {
  background: var(--operator-section-header);
  border-inline-start: 3px solid transparent;
  color: #1e293b;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    color 140ms ease;
}

.operator-section-disclosure > summary:hover {
  background: var(--operator-section-header-hover);
}

.operator-section-disclosure > summary > :first-child {
  font-weight: 700;
}

.operator-section-disclosure > summary::after {
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: #475569;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 700;
  height: 1.45rem;
  justify-content: center;
  width: 1.45rem;
}

.operator-section-disclosure[open] > summary {
  background: var(--operator-section-header-open);
  border-bottom-color: var(--operator-section-border);
  border-inline-start-color: #2563eb;
  color: #0f2747;
}

.operator-section-disclosure[open] > summary:hover {
  background: #e1ebfa;
}

.operator-section-disclosure[open] > summary::after {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.operator-section-disclosure > .operator-disclosure-body {
  background: #ffffff;
}

.operator-recipient-state {
  align-items: center;
  border: 1px solid;
  border-radius: 0.65rem;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  padding: 0.7rem 0.8rem;
}

.operator-recipient-state > div {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.operator-recipient-state strong {
  color: #172033;
  font-size: 0.88rem;
}

.operator-recipient-state span:not(.operator-recipient-state-icon) {
  color: #526173;
  font-size: 0.78rem;
}

.operator-recipient-state-warning {
  background: #fff8e8;
  border-color: #f0c86e;
}

.operator-recipient-state-complete {
  background: #effaf3;
  border-color: #9bd6ae;
  justify-content: flex-start;
}

.operator-recipient-state-icon {
  align-items: center;
  background: #198754;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 800;
  height: 1.65rem;
  justify-content: center;
  width: 1.65rem;
}

.operator-recipient-dialog {
  background: #ffffff;
  border: 0;
  border-radius: 0.9rem;
  box-shadow: 0 1.5rem 4rem rgba(15, 23, 42, 0.28);
  color: #172033;
  margin: auto;
  max-width: min(720px, calc(100vw - 2rem));
  padding: 0;
  width: 100%;
}

.operator-recipient-dialog::backdrop {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}

.operator-recipient-dialog-form {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
}

.operator-recipient-dialog-header {
  align-items: start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.operator-recipient-name-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.operator-recipient-name-grid .is-disabled {
  opacity: 0.55;
}

.operator-recipient-exception {
  align-items: start;
  background: #f8fafc;
  border: 1px solid #dbe3ee;
  border-radius: 0.65rem;
  cursor: pointer;
  display: flex;
  gap: 0.65rem;
  padding: 0.75rem;
}

.operator-recipient-exception > span {
  display: grid;
  gap: 0.15rem;
}

.operator-recipient-exception small,
.operator-recipient-dialog-note {
  color: #5c6b7c;
  font-size: 0.78rem;
}

.operator-recipient-dialog-note {
  background: #eef5ff;
  border-inline-start: 3px solid #2563eb;
  border-radius: 0.35rem;
  padding: 0.65rem 0.75rem;
}

.operator-recipient-dialog-actions {
  display: flex;
  gap: 0.65rem;
  justify-content: flex-end;
}

@media (max-width: 767.98px) {
  .operator-recipient-state {
    align-items: stretch;
    flex-direction: column;
  }

  .operator-recipient-name-grid {
    grid-template-columns: 1fr;
  }
}

.operator-customer-overview {
  display: grid;
  gap: 0.8rem;
  min-width: 0;
}

.operator-customer-section {
  min-width: 0;
}

.operator-customer-section + .operator-customer-section,
.operator-customer-secondary {
  border-top: 1px solid var(--app-border);
  padding-top: 0.8rem;
}

.operator-customer-section-heading {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}

.operator-customer-section-title {
  color: #475569;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  margin: 0 0 0.55rem;
  text-transform: uppercase;
}

.operator-customer-section-heading .operator-customer-section-title {
  margin-bottom: 0;
}

.operator-customer-facts,
.operator-customer-history-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.operator-customer-fact,
.operator-customer-history-list > div {
  align-items: start;
  border-bottom: 1px solid #edf2f7;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(92px, 0.34fr) minmax(0, 1fr);
  padding: 0.42rem 0;
}

.operator-customer-fact:first-child,
.operator-customer-history-list > div:first-child {
  padding-top: 0;
}

.operator-customer-fact:last-child,
.operator-customer-history-list > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.operator-customer-fact dt,
.operator-customer-history-list dt {
  color: var(--app-muted);
  font-size: 0.78rem;
  font-weight: 650;
  margin: 0;
}

.operator-customer-fact dd,
.operator-customer-history-list dd {
  margin: 0;
  min-width: 0;
}

.operator-customer-value,
.operator-customer-history-list dd {
  color: var(--app-text);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}

.operator-customer-email {
  overflow-wrap: anywhere;
}

.operator-customer-phone-list {
  display: grid;
  gap: 0.35rem;
}

.operator-customer-phone {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: space-between;
  min-width: 0;
}

.operator-contact-badge,
.operator-customer-count {
  align-items: center;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: #1d4ed8;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.24rem 0.42rem;
}

.operator-customer-count {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #475569;
  min-width: 1.5rem;
  justify-content: center;
}

.operator-customer-empty {
  color: var(--app-muted);
  font-size: 0.82rem;
}

.operator-customer-check-list {
  display: grid;
  gap: 0.45rem;
}

.operator-customer-check {
  align-items: start;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  padding: 0.55rem 0.65rem;
}

.operator-customer-check-icon {
  align-items: center;
  background: #e2e8f0;
  border-radius: 999px;
  color: #475569;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  height: 1.45rem;
  justify-content: center;
  line-height: 1;
  width: 1.45rem;
}

.operator-customer-check-copy {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.operator-customer-check-copy strong {
  color: var(--app-text);
  font-size: 0.8rem;
  line-height: 1.3;
}

.operator-customer-check-copy span {
  color: #475569;
  font-size: 0.74rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.operator-customer-check-success {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.operator-customer-check-success .operator-customer-check-icon {
  background: #dcfce7;
  color: #166534;
}

.operator-customer-check-warning {
  background: #fffbeb;
  border-color: #fde68a;
}

.operator-customer-check-warning .operator-customer-check-icon {
  background: #fef3c7;
  color: #92400e;
}

.operator-customer-check-danger {
  background: #fef2f2;
  border-color: #fecaca;
}

.operator-customer-check-danger .operator-customer-check-icon {
  background: #fee2e2;
  color: #991b1b;
}

.operator-customer-check-info {
  background: #f0f9ff;
  border-color: #bae6fd;
}

.operator-customer-check-info .operator-customer-check-icon {
  background: #e0f2fe;
  color: #075985;
}

.operator-customer-metrics {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0.5rem;
}

.operator-customer-metric {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: grid;
  gap: 0.15rem;
  min-width: 0;
  padding: 0.48rem 0.58rem;
}

.operator-customer-metric span {
  color: var(--app-muted);
  font-size: 0.68rem;
  font-weight: 750;
  text-transform: uppercase;
}

.operator-customer-metric strong {
  color: #0f766e;
  font-size: 0.92rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.operator-customer-secondary {
  margin: 0;
}

.operator-customer-secondary > summary {
  align-items: center;
  color: var(--app-text);
  cursor: pointer;
  display: grid;
  font-size: 0.8rem;
  font-weight: 700;
  gap: 0.45rem;
  grid-template-columns: minmax(0, 1fr) auto 1rem;
  list-style: none;
}

.operator-customer-secondary > summary::-webkit-details-marker {
  display: none;
}

.operator-customer-secondary > summary::after {
  color: var(--app-muted);
  content: "+";
  font-size: 1rem;
  font-weight: 500;
  justify-self: end;
  line-height: 1;
}

.operator-customer-secondary[open] > summary::after {
  content: "−";
}

.operator-customer-secondary > summary:focus-visible {
  border-radius: 6px;
  outline: 3px solid rgb(37 99 235 / 25%);
  outline-offset: 3px;
}

.operator-customer-secondary-hint {
  color: var(--app-muted);
  font-size: 0.72rem;
  font-weight: 500;
}

.operator-customer-secondary-body {
  padding-top: 0.65rem;
}

.operator-disclosure .sales-console-customer {
  border-bottom: 0;
  padding-bottom: 0.9rem;
}

.operator-disclosure .sales-console-outcome {
  border: 0;
  border-radius: 0;
}

.operator-main-panel,
.operator-timeline-panel {
  min-height: 0;
}

.operator-drawer {
  background: #ffffff;
  box-shadow: -20px 0 48px rgb(15 23 42 / 18%);
  height: 100dvh;
  max-width: 100%;
  overflow: hidden;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(105%);
  transition: transform 180ms ease;
  width: min(460px, 100vw);
  z-index: 1100;
}

.operator-drawer.is-open {
  transform: translateX(0);
}

.operator-drawer-header {
  align-items: center;
  border-bottom: 1px solid var(--app-border);
  display: flex;
  justify-content: space-between;
  min-height: 72px;
  padding: 0.9rem 1rem;
}

.operator-drawer-body {
  height: calc(100dvh - 72px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1rem;
}

.operator-drawer-body .panel {
  box-shadow: none;
}

.operator-audio-drawer,
.operator-call-drawer {
  width: min(420px, 100vw);
}

.operator-audio-overview,
.operator-call-extra-summary,
.operator-tool-section,
.operator-tool-disclosure {
  background: #ffffff;
  border: 1px solid var(--app-border);
  border-radius: 10px;
}

.operator-audio-overview {
  align-items: center;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 0.85rem;
}

.operator-audio-overview-icon {
  align-items: center;
  background: #64748b;
  border-radius: 999px;
  color: #ffffff;
  display: flex;
  font-size: 1rem;
  font-weight: 800;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.operator-audio-overview-copy {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.operator-audio-overview-copy > span {
  color: var(--app-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.operator-audio-overview-copy strong {
  font-size: 0.86rem;
}

.operator-audio-overview-copy small {
  color: var(--app-muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.operator-tool-section {
  padding: 0.9rem;
}

.operator-tool-section-heading {
  align-items: flex-start;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.operator-audio-actions {
  display: grid;
  gap: 0.5rem;
}

.operator-audio-actions .btn {
  width: 100%;
}

.operator-audio-permission {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  display: flex;
  font-size: 0.78rem;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 0.55rem 0.65rem;
}

.operator-audio-permission span {
  color: var(--app-muted);
}

.operator-tool-disclosure {
  overflow: hidden;
}

.operator-tool-disclosure > summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 0.2rem;
  grid-template-columns: minmax(0, 1fr) auto;
  list-style: none;
  min-height: 52px;
  padding: 0.7rem 0.85rem;
}

.operator-tool-disclosure > summary::after {
  color: var(--app-muted);
  content: "+";
  font-size: 1.1rem;
  grid-column: 2;
  grid-row: 1 / span 2;
}

.operator-tool-disclosure[open] > summary::after {
  content: "−";
}

.operator-tool-disclosure > summary > span {
  font-size: 0.84rem;
  font-weight: 800;
}

.operator-tool-disclosure > summary > small {
  color: var(--app-muted);
  font-size: 0.7rem;
}

.operator-tool-disclosure > summary:hover,
.operator-tool-disclosure > summary:focus-visible {
  background: #f8fafc;
}

.operator-tool-disclosure > summary:focus-visible {
  outline: 3px solid rgb(37 99 235 / 18%);
  outline-offset: -3px;
}

.operator-tool-disclosure-body {
  border-top: 1px solid var(--app-border);
  padding: 0.85rem;
}

.operator-technical-disclosure {
  background: #f8fafc;
  border-style: dashed;
}

.operator-call-extra-summary {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 0.75rem 0.85rem;
}

.operator-call-extra-summary > div:first-child {
  display: grid;
  gap: 0.1rem;
}

.operator-call-extra-summary > div:first-child span {
  color: var(--app-muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.operator-call-state-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.operator-call-action-grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 1fr;
}

.operator-call-action-grid form,
.operator-call-action-grid .btn {
  margin: 0;
  width: 100%;
}

.operator-drawer-backdrop {
  background: rgb(15 23 42 / 42%);
  border: 0;
  cursor: default;
  inset: 0;
  padding: 0;
  position: fixed;
  z-index: 1090;
}

.operator-drawer-backdrop[hidden] {
  display: none;
}

body.operator-workspace-drawer-open {
  overflow: hidden;
}

.sales-console-header {
  align-items: flex-start;
}

.sales-console-command {
  align-items: stretch;
  background: #ffffff;
  border: 1px solid var(--app-border);
  border-left: 4px solid #0f766e;
  border-radius: 8px;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 2fr);
  padding: 0.875rem 1rem;
}

.sales-console-command-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sales-console-next {
  color: var(--app-text);
  font-size: 1.1rem;
  font-weight: 700;
}

.sales-console-workflow {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(6, minmax(86px, 1fr));
}

.sales-console-step {
  border: 1px solid var(--app-border);
  border-radius: 8px;
  display: grid;
  gap: 0.2rem;
  min-height: 68px;
  padding: 0.55rem 0.65rem;
}

.sales-console-step span,
.sales-console-readiness-item span {
  color: var(--app-muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.sales-console-step strong,
.sales-console-readiness-item strong {
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.sales-console-step-complete {
  border-color: #86efac;
  box-shadow: inset 3px 0 0 #16a34a;
}

.sales-console-step-current {
  border-color: #facc15;
  box-shadow: inset 3px 0 0 #ca8a04;
}

.sales-console-step-pending {
  background: #f8fafc;
}

.sales-console-readiness {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.sales-console-readiness-item {
  background: #ffffff;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  display: grid;
  gap: 0.2rem;
  min-height: 72px;
  padding: 0.65rem 0.8rem;
}

.sales-console-readiness-success {
  border-bottom: 3px solid #16a34a;
}

.sales-console-readiness-warning {
  border-bottom: 3px solid #ca8a04;
}

.sales-console-readiness-neutral {
  border-bottom: 3px solid #64748b;
}

.agent-command-bar {
  background: #ffffff;
  border: 1px solid var(--app-border);
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgb(15 23 42 / 6%);
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(260px, 1.05fr) minmax(300px, 1.2fr);
  padding: 0.85rem;
  position: static;
}

.agent-screen-pop {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(160px, 0.85fr) minmax(220px, 1.15fr);
  min-width: 0;
}

.agent-screen-pop-main {
  min-width: 0;
}

.agent-screen-pop-name {
  font-size: 1.05rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.agent-screen-pop-metrics {
  display: grid;
  gap: 0.4rem;
  grid-template-columns: repeat(3, minmax(72px, 1fr));
}

.agent-screen-pop-metrics div,
.agent-compliance-prompt,
.agent-script-cue {
  border: 1px solid var(--app-border);
  border-radius: 8px;
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  padding: 0.45rem 0.55rem;
}

.agent-screen-pop-metrics span,
.agent-compliance-prompt span,
.agent-script-cue span {
  color: var(--app-muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.agent-screen-pop-metrics strong,
.agent-compliance-prompt strong,
.agent-script-cue strong {
  font-size: 0.82rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.agent-screen-pop-metrics .softphone-timer {
  font-size: 0.98rem;
}

.agent-compliance-stack {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.agent-compliance-success {
  border-color: #86efac;
  box-shadow: inset 3px 0 0 #16a34a;
}

.agent-compliance-warning {
  border-color: #fde68a;
  box-shadow: inset 3px 0 0 #ca8a04;
}

.agent-compliance-danger {
  border-color: #fecaca;
  box-shadow: inset 3px 0 0 #dc2626;
}

.agent-compliance-info {
  border-color: #bae6fd;
  box-shadow: inset 3px 0 0 #0284c7;
}

.agent-compliance-neutral {
  background: #f8fafc;
}

.agent-script-strip,
.agent-quick-disposition,
.agent-recovery {
  grid-column: 1 / -1;
}

.agent-script-strip {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.agent-script-cue strong {
  max-height: 3.4rem;
  overflow: auto;
  white-space: pre-wrap;
}

.agent-quick-disposition,
.agent-recovery-actions,
.presence-quick-reasons,
.objection-insert-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.agent-quick-disposition .btn,
.presence-quick-reasons .btn,
.objection-insert-list .btn {
  min-height: 34px;
}

.agent-recovery {
  align-items: center;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #7c2d12;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 0.6rem 0.7rem;
}

.agent-recovery > span {
  font-weight: 700;
  min-width: 0;
  overflow-wrap: anywhere;
}

.sales-console-customer {
  border-bottom: 1px solid var(--app-border);
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr 1fr;
  padding-bottom: 1rem;
}

.compact-list {
  display: grid;
  gap: 0.4rem;
}

.compact-list div {
  align-items: baseline;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(88px, 0.75fr) minmax(0, 1fr);
}

.compact-list dt,
.compact-list dd {
  margin: 0;
}

.sales-console-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  color: #78350f;
  padding: 0.75rem;
}

.sales-script-tabs {
  gap: 0.35rem;
}

.sales-script-tabs .nav-link {
  border-radius: 8px;
  color: var(--app-text);
  padding: 0.35rem 0.65rem;
}

.sales-script-tabs .nav-link.active {
  background: #0f766e;
}

.sales-script-content {
  background: #f8fafc;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  min-height: 124px;
  padding: 0.85rem;
}

.sales-console-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sales-console-outcome {
  background: #f8fafc;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  padding: 0.85rem;
}

.operator-disposition-form {
  display: grid;
  gap: 0.85rem;
}

.operator-outcome-section {
  border: 0;
  margin: 0;
  min-inline-size: 0;
  padding: 0;
}

.operator-outcome-section > legend {
  color: var(--app-text);
  float: none;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  width: auto;
}

.operator-outcome-help {
  color: var(--app-muted);
  font-size: 0.75rem;
  margin: 0 0 0.55rem;
}

.operator-outcome-grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.operator-outcome-grid-secondary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.operator-outcome-choice,
.operator-follow-up-toggle {
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.6rem 0.65rem;
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.operator-outcome-choice:hover,
.operator-follow-up-toggle:hover {
  border-color: #60a5fa;
}

.operator-outcome-choice:has(input:checked),
.operator-follow-up-toggle:has(input:checked) {
  background: #eff6ff;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgb(37 99 235 / 12%);
}

.operator-outcome-choice:has(input:focus-visible),
.operator-follow-up-toggle:has(input:focus-visible) {
  outline: 3px solid rgb(37 99 235 / 25%);
  outline-offset: 2px;
}

.operator-outcome-choice input,
.operator-follow-up-toggle input {
  accent-color: #2563eb;
  flex: 0 0 auto;
  margin-top: 0.18rem;
}

.operator-outcome-choice span,
.operator-follow-up-toggle span {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.operator-outcome-choice strong,
.operator-follow-up-toggle strong {
  color: var(--app-text);
  font-size: 0.82rem;
  line-height: 1.25;
}

.operator-outcome-choice small,
.operator-follow-up-toggle small {
  color: var(--app-muted);
  font-size: 0.7rem;
  line-height: 1.3;
}

.operator-follow-up {
  background: #f8fafc;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  padding: 0.65rem;
}

.operator-follow-up-toggle {
  border-color: transparent;
  padding: 0.35rem;
}

.operator-context-field {
  max-width: 460px;
}

.operator-outcome-more {
  background: #ffffff;
  border: 1px solid var(--app-border);
  border-radius: 8px;
}

.operator-outcome-more > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 0.6rem 0.7rem;
}

.operator-outcome-more > summary::-webkit-details-marker {
  display: none;
}

.operator-outcome-more > summary span {
  color: var(--app-text);
  font-size: 0.8rem;
  font-weight: 700;
}

.operator-outcome-more > summary small {
  color: var(--app-muted);
  font-size: 0.7rem;
}

.operator-outcome-more-body {
  border-top: 1px solid var(--app-border);
  padding: 0.65rem;
}

.operator-outcome-choice-sensitive:has(input[value="do_not_call"]:checked) {
  background: #fff1f2;
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgb(239 68 68 / 10%);
}

.operator-do-not-call-fields {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 0.65rem;
}

.operator-outcome-notes textarea {
  min-height: 68px;
}

.operator-outcome-submit {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

@media (max-width: 767.98px) {
  .operator-outcome-grid,
  .operator-outcome-grid-secondary {
    grid-template-columns: 1fr;
  }

  .operator-outcome-more > summary,
  .operator-outcome-submit {
    align-items: stretch;
    flex-direction: column;
  }
}

.sales-offer-list {
  display: grid;
  gap: 0.5rem;
}

.sales-offer-item {
  align-items: center;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  color: var(--app-text);
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 0.65rem 0.75rem;
  text-decoration: none;
}

.sales-offer-item:hover {
  border-color: #0f766e;
  color: #0f766e;
}

.softphone-status {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.softphone-timer {
  color: var(--app-success);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
}

.softphone-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.softphone-controls form {
  margin: 0;
}

.browser-softphone-panel {
  border-color: #bae6fd;
}

.softphone-device-grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 1fr;
}

.softphone-media-state {
  border-top: 1px solid var(--app-border);
  display: grid;
  gap: 0.35rem;
  padding-top: 0.75rem;
}

.softphone-media-state div,
.media-event-item {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
}

.softphone-media-state span,
.media-event-item span {
  color: var(--app-muted);
  min-width: 0;
  overflow-wrap: anywhere;
}

.softphone-media-state strong,
.media-event-item strong {
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: right;
}

.media-event-list {
  display: grid;
  gap: 0.25rem;
}

.media-event-item {
  background: #f8fafc;
  border: 1px solid var(--app-border);
  border-radius: 6px;
  padding: 0.35rem 0.45rem;
}

.playbook-panel {
  border-bottom: 1px solid var(--app-border);
  border-top: 1px solid var(--app-border);
  padding: 0.875rem 0;
}

.playbook-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.playbook-grid {
  display: grid;
  gap: 0.75rem;
}

.playbook-copy {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.system-list dt {
  color: var(--app-muted);
  font-weight: 600;
}

.system-list dd {
  font-family: "Cascadia Mono", Consolas, monospace;
  overflow-wrap: anywhere;
}

.notification-list {
  display: grid;
  gap: 0.75rem;
}

.notification-item {
  align-items: flex-start;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.9rem;
}

.notification-item.unread {
  border-color: #bfdbfe;
  box-shadow: inset 3px 0 0 var(--app-accent);
}

.notification-main {
  min-width: 0;
}

.notification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.notification-severity-info {
  background: #e0f2fe;
  color: #075985;
}

.notification-severity-success {
  background: #dcfce7;
  color: #166534;
}

.notification-severity-warning {
  background: #fef3c7;
  color: #92400e;
}

.notification-severity-danger {
  background: #fee2e2;
  color: #991b1b;
}

.wallboard-metrics {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.wallboard-metrics .metric-card {
  min-height: 104px;
}

@media (min-width: 1200px) {
  .operator-page {
    overflow: hidden;
  }

  .operator-page .app-shell,
  .operator-page .app-content-shell {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  .operator-page .app-sidebar {
    flex-basis: 238px;
    padding: 0.8rem 0.7rem 0.7rem;
  }

  .operator-page .sidebar-brand {
    margin-bottom: 0.45rem;
    padding-bottom: 0.7rem;
  }

  .operator-page .sidebar-link {
    padding-block: 0.48rem;
  }

  .operator-page .sidebar-section {
    margin-top: 0.55rem;
  }

  .operator-page .app-navbar {
    min-height: 58px;
    padding-block: 0.4rem;
  }

  .operator-page .global-search .form-control {
    min-height: 38px;
  }

  .operator-page .app-main {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - 58px);
    min-height: 0;
    overflow: hidden;
  }

  .operator-page .flash-region {
    margin: 0;
    max-width: min(460px, calc(100vw - 2rem));
    position: fixed;
    right: 1rem;
    top: 68px;
    width: 100%;
    z-index: 1080;
  }

  .operator-page .flash-region .alert {
    box-shadow: 0 14px 36px rgb(15 23 42 / 16%);
    margin-bottom: 0.5rem;
  }

  .operator-workspace {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    padding-bottom: 0.65rem !important;
    padding-top: 0.65rem !important;
  }

  .operator-workspace .sales-console-header {
    align-items: center;
    margin-bottom: 0.5rem !important;
  }

  .operator-workspace .sales-console-header h1 {
    font-size: 1.35rem;
  }

  .operator-workspace .operator-focus-bar,
  .operator-workspace .operator-call-dock {
    margin-bottom: 0.5rem !important;
    padding: 0.55rem 0.75rem;
  }

  .operator-workspace .operator-focus-title {
    font-size: 0.95rem;
  }

  .operator-workspace .operator-context-actions {
    margin-bottom: 0.5rem !important;
  }

  .operator-workspace .operator-context-actions .btn-sm {
    min-height: 30px;
    padding: 0.25rem 0.55rem;
  }

  .operator-workspace-layout {
    flex: 1 1 auto;
    min-height: 0;
  }

  .operator-primary-workspace {
    height: 100%;
    max-width: none;
    min-height: 0;
  }

  .operator-customer-grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(370px, 0.9fr);
    height: 100%;
  }

  .operator-catalog-panel,
  .operator-detail-column {
    height: 100%;
  }

  .operator-catalog-results,
  .operator-detail-column {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 0.2rem;
    scrollbar-gutter: stable;
  }

  .operator-detail-column .operator-main-panel {
    padding: 0.65rem;
  }

  .operator-detail-column .operator-disclosure {
    margin-bottom: 0.5rem !important;
  }

  .operator-detail-column > .operator-disclosure {
    margin-top: 0.5rem !important;
  }

  .operator-detail-column .operator-disclosure > summary {
    min-height: 44px;
    padding: 0.55rem 0.7rem;
  }
}

@media (max-width: 575.98px) {
  .operator-customer-fact,
  .operator-customer-history-list > div {
    gap: 0.15rem;
    grid-template-columns: 1fr;
  }

  .operator-customer-secondary > summary {
    grid-template-columns: minmax(0, 1fr) 1rem;
  }

  .operator-customer-secondary-hint {
    display: none;
  }

  .dashboard-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .dashboard-header > :last-child {
    text-align: start !important;
    width: 100%;
  }

  .dashboard-header .btn,
  .dashboard-header form {
    flex: 1 1 auto;
  }

  .live-call-banner,
  .notification-item {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 767.98px) {
  .app-main > .container-fluid {
    padding-inline: 1rem !important;
  }

  .flash-region {
    margin-inline: 1rem;
  }

  .section-guide {
    align-items: flex-start;
    margin-inline: 1rem;
  }

  .app-navbar {
    min-height: 60px;
  }

  .notification-nav-link {
    font-size: 0.82rem;
  }

  .operator-focus-bar,
  .operator-call-dock,
  .operator-completion {
    align-items: stretch;
    flex-direction: column;
  }

  .operator-context-actions {
    align-items: stretch;
    flex-direction: column;
    justify-content: flex-start;
  }

  .operator-context-links,
  .operator-session-tools {
    justify-content: flex-start;
    margin-left: 0;
  }

  .operator-session-tools {
    border-top: 1px solid var(--app-border);
    padding-top: 0.5rem;
  }

  .operator-catalog-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .operator-catalog-tools {
    align-items: stretch;
    flex: 1 1 auto;
    justify-items: stretch;
  }

  .operator-catalog-search {
    max-width: none;
  }

  .operator-product-grid {
    grid-template-columns: 1fr;
  }

  .operator-call-timer {
    align-items: flex-start;
    border-inline: 0;
    padding-inline: 0;
  }

  .operator-focus-actions .btn,
  .operator-focus-actions form,
  .operator-completion-actions .btn,
  .operator-completion-actions form {
    width: 100%;
  }
}

@media (min-width: 1600px) {
  .operator-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1199.98px) {
  .public-hero {
    grid-template-columns: 1fr;
  }

  .warehouse-task-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .warehouse-scan-hero {
    grid-template-columns: 1fr;
  }

  .warehouse-supply-form-grid,
  .warehouse-purchase-order-form,
  .warehouse-replenishment-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .warehouse-replenishment-form .is-wide:last-of-type {
    grid-column: 1 / -1;
  }

  .warehouse-replenishment-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .warehouse-replenishment-meta {
    grid-column: 1;
  }

  .warehouse-replenishment-action {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .warehouse-supply-form-action,
  .warehouse-supply-form-action .btn {
    width: 100%;
  }

  .warehouse-receipt-context {
    grid-template-columns: 1fr;
  }

  .warehouse-receipt-summary > div:first-child {
    border-left: 0;
    padding-left: 0;
  }

  .warehouse-receipt-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent-command-bar {
    grid-template-columns: 1fr;
    position: static;
  }

  .agent-screen-pop,
  .agent-compliance-stack,
  .agent-script-strip {
    grid-template-columns: 1fr;
  }

  .sales-console-command,
  .sales-console-customer {
    grid-template-columns: 1fr;
  }

  .sales-console-workflow {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }

  .sales-console-readiness {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }
}

@media (max-width: 575.98px) {
  .public-feature-grid {
    grid-template-columns: 1fr;
  }

  .warehouse-task-grid,
  .warehouse-scan-form {
    grid-template-columns: 1fr;
  }

  .warehouse-task-card {
    min-height: 88px;
  }

  .workflow-disclosure > summary {
    align-items: flex-start;
  }

  .workflow-disclosure-body {
    padding: 0.65rem;
  }

  .warehouse-supply-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .warehouse-supply-overview article {
    padding: 0.65rem 0.7rem;
  }

  .warehouse-supply-section {
    padding: 0.9rem;
  }

  .warehouse-supply-section .panel-heading {
    align-items: flex-start;
    margin: -0.9rem -0.9rem 0.9rem;
    padding: 0.85rem 0.9rem;
  }

  .warehouse-supply-heading-actions {
    align-items: flex-end;
    flex-direction: column;
  }

  .warehouse-supply-form-grid,
  .warehouse-purchase-order-form,
  .warehouse-replenishment-form,
  .warehouse-receipt-fields,
  .warehouse-receipt-summary {
    grid-template-columns: 1fr;
  }

  .warehouse-receipt-summary > div,
  .warehouse-receipt-summary > div:first-child {
    border-left: 0;
    border-top: 1px solid #d9e3f4;
    padding: 0.5rem 0 0;
  }

  .warehouse-receipt-summary > div:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .warehouse-purchase-order-submit,
  .warehouse-replenishment-submit,
  .warehouse-receipt-submit {
    align-items: stretch;
    flex-direction: column;
  }

  .warehouse-purchase-order-submit .btn,
  .warehouse-replenishment-submit .btn,
  .warehouse-receipt-submit .btn,
  .warehouse-supply-control-card .btn {
    justify-self: stretch;
    width: 100%;
  }

  .warehouse-conversion-context {
    align-items: stretch;
    flex-direction: column;
  }

  .warehouse-replenishment-form .is-wide:last-of-type,
  .warehouse-replenishment-item,
  .warehouse-replenishment-meta,
  .warehouse-replenishment-action,
  .warehouse-replenishment-progress,
  .warehouse-replenishment-item > p {
    grid-column: 1;
    grid-row: auto;
  }

  .warehouse-replenishment-action {
    justify-self: stretch;
  }

  .warehouse-replenishment-progress > dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .warehouse-replenishment-meter {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .warehouse-replenishment-action .btn {
    width: 100%;
  }

  .warehouse-supply-control-grid {
    grid-template-columns: 1fr;
  }

  .warehouse-valuation-history-heading {
    align-items: flex-start;
  }

  .warehouse-valuation-run > summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .warehouse-valuation-run-title,
  .warehouse-valuation-run-action {
    grid-column: 1 / -1;
  }

  .warehouse-valuation-run-action {
    justify-self: start;
  }

  .agent-screen-pop-metrics,
  .sales-console-workflow,
  .sales-console-readiness {
    grid-template-columns: 1fr;
  }

  .agent-recovery {
    align-items: stretch;
    flex-direction: column;
  }

  .operator-drawer {
    width: 100vw;
  }

  .operator-presence-control {
    position: static;
  }

  .operator-presence-popover {
    left: 1rem;
    position: fixed;
    right: 1rem;
    top: 76px;
    width: auto;
  }

  .operator-presence-options {
    grid-template-columns: 1fr;
  }

  .operator-audio-overview {
    align-items: start;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .operator-audio-overview > .badge {
    grid-column: 2;
    justify-self: start;
  }

  .operator-call-primary-controls .btn,
  .operator-call-primary-controls form {
    flex: 1 1 auto;
  }

  .operator-disclosure > summary > .text-secondary {
    display: none;
  }
}
.report-progress {
  appearance: none;
  border: 0;
  border-radius: 999px;
  display: block;
  height: 8px;
  overflow: hidden;
  width: 100%;
}

.report-progress::-webkit-progress-bar {
  background-color: var(--bs-secondary-bg);
}

.report-progress::-webkit-progress-value {
  background-color: var(--bs-primary);
}

.report-progress::-moz-progress-bar {
  background-color: var(--bs-primary);
}

.report-progress-success::-webkit-progress-value {
  background-color: var(--bs-success);
}

.report-progress-success::-moz-progress-bar {
  background-color: var(--bs-success);
}

.report-progress-info::-webkit-progress-value {
  background-color: var(--bs-info);
}

.report-progress-info::-moz-progress-bar {
  background-color: var(--bs-info);
}

.report-threshold-input {
  max-width: 90px;
}

.courier-office-picker {
  position: relative;
}

.courier-office-results {
  box-shadow: 0 0.75rem 1.5rem rgb(15 23 42 / 14%);
  left: 0;
  max-height: 280px;
  overflow-y: auto;
  position: absolute;
  right: 0;
  top: calc(100% + 0.25rem);
  z-index: 1080;
}

.courier-office-option {
  display: grid;
  gap: 0.2rem;
  text-align: left;
}

.courier-office-option-title {
  font-weight: 700;
}

.courier-office-option-details {
  color: var(--bs-secondary-color);
  font-size: 0.82rem;
}

.courier-office-option.active .courier-office-option-details {
  color: inherit;
}

/* Operator self-service activity */
.operator-activity-page {
  margin-inline: auto;
  max-width: 1720px;
}

.operator-activity-header {
  align-items: flex-end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.operator-activity-header h1 {
  font-size: clamp(1.55rem, 2vw, 2rem);
  font-weight: 750;
  letter-spacing: -0.025em;
  margin: 0;
}

.operator-activity-header p:last-child {
  color: var(--app-muted);
  margin: 0.2rem 0 0;
}

.operator-activity-filter-band,
.operator-activity-section,
.operator-activity-metric-group,
.operator-activity-calls,
.operator-activity-orders {
  background: var(--app-panel);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  box-shadow: var(--app-shadow);
}

.operator-activity-filter-band {
  margin-bottom: 0.85rem;
  padding: 0.9rem 1rem 1rem;
}

.operator-activity-filter-heading,
.operator-activity-section-heading {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.operator-activity-filter-heading h2,
.operator-activity-section-heading h2 {
  font-size: 1rem;
  font-weight: 750;
  margin: 0;
}

.operator-activity-filter-heading p,
.operator-activity-section-heading p {
  color: var(--app-muted);
  font-size: 0.78rem;
  margin: 0.1rem 0 0;
}

.operator-period-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.operator-filter-chip {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: #334155;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.48rem 0.7rem;
  text-decoration: none;
}

.operator-filter-chip:hover,
.operator-filter-chip:focus-visible {
  background: #f8fafc;
  border-color: #64748b;
  color: #0f172a;
}

.operator-filter-chip.active {
  background: var(--app-accent-soft);
  border-color: #8ca6fa;
  color: #1e40af;
}

.operator-activity-filter-form {
  align-items: end;
  border-top: 1px solid #e8edf4;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: minmax(150px, 220px) minmax(150px, 220px) auto;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
}

.operator-activity-filter-form label {
  color: #475569;
  display: block;
  font-size: 0.7rem;
  font-weight: 750;
  margin-bottom: 0.24rem;
  text-transform: uppercase;
}

.operator-activity-filter-form .form-control,
.operator-activity-filter-form .form-select,
.operator-activity-filter-actions .btn {
  min-height: 40px;
}

.operator-activity-filter-actions {
  display: flex;
  gap: 0.4rem;
}

.operator-activity-summary-groups {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.operator-activity-metric-group {
  padding: 0.8rem 0.9rem 0.9rem;
}

.operator-metric-group-heading {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.operator-metric-group-heading .section-kicker {
  margin: 0;
}

.operator-metric-group-heading h2 {
  font-size: 0.96rem;
  font-weight: 750;
  margin: 0.08rem 0 0;
}

.operator-activity-filtered-badge {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  color: #3730a3;
  font-size: 0.68rem;
  font-weight: 750;
  padding: 0.28rem 0.55rem;
}

.operator-activity-metrics {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0;
}

.operator-call-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.operator-sales-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.operator-activity-metric {
  background: #fff;
  border: 1px solid var(--app-border);
  border-block-start: 3px solid #94a3b8;
  border-radius: 12px;
  min-width: 0;
  padding: 0.75rem 0.85rem;
}

.operator-activity-metric.metric-primary {
  border-block-start-color: var(--app-accent);
}

.operator-activity-metric.metric-revenue {
  background: #f0fdfa;
  border-color: #99f6e4;
  border-block-start-color: #0f766e;
}

.operator-activity-metric.metric-duration {
  background: #f0f9ff;
  border-color: #bae6fd;
  border-block-start-color: #0369a1;
}

.operator-activity-metric.metric-duration > strong {
  color: #075985;
}

.operator-activity-metric > span {
  color: #64748b;
  display: block;
  font-size: 0.69rem;
  font-weight: 750;
  letter-spacing: 0.035em;
  line-height: 1.25;
  min-height: 1.7em;
  text-transform: uppercase;
}

.operator-activity-metric > strong {
  color: #0f172a;
  display: block;
  font-size: clamp(1.25rem, 1.7vw, 1.7rem);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  margin-top: 0.22rem;
}

.operator-activity-metric.metric-revenue > strong {
  color: #0f766e;
}

.operator-activity-metric > small {
  color: #64748b;
  display: block;
  font-size: 0.7rem;
  line-height: 1.35;
  margin-top: 0.3rem;
}

.operator-activity-insights {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, 0.75fr);
  margin-bottom: 0.85rem;
}

.operator-activity-section,
.operator-activity-calls,
.operator-activity-orders {
  padding: 0.9rem 1rem;
}

.operator-activity-count {
  background: #f1f5f9;
  border-radius: 999px;
  color: #334155;
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 750;
  padding: 0.28rem 0.58rem;
}

.operator-outcome-list {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-top: 0.8rem;
  overflow: hidden;
}

.operator-outcome-list-header,
.operator-outcome-row {
  align-items: center;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: minmax(190px, 1.6fr) minmax(54px, 0.42fr) minmax(62px, 0.48fr) minmax(90px, 0.68fr) minmax(78px, 0.6fr);
}

.operator-outcome-list-header {
  background: #f8fafc;
  color: #64748b;
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.035em;
  padding: 0.48rem 0.65rem;
  text-transform: uppercase;
}

.operator-outcome-row {
  border-top: 1px solid #e8edf4;
  color: #334155;
  font-size: 0.75rem;
  min-width: 0;
  padding: 0.55rem 0.65rem;
}

.operator-outcome-row > strong,
.operator-outcome-row > span {
  font-variant-numeric: tabular-nums;
}

.operator-outcome-main {
  min-width: 0;
}

.operator-outcome-main > strong {
  color: #172033;
  display: block;
  font-size: 0.76rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operator-outcome-track {
  background: #e8edf4;
  border-radius: 999px;
  height: 0.46rem;
  margin-top: 0.3rem;
  overflow: hidden;
}

.operator-outcome-bar {
  background: #64748b;
  border-radius: inherit;
  display: block;
  height: 100%;
  min-width: 0;
}

.operator-outcome-bar.tone-primary { background: #3157d5; }
.operator-outcome-bar.tone-success { background: #15803d; }
.operator-outcome-bar.tone-warning { background: #b45309; }
.operator-outcome-bar.tone-danger { background: #c2413b; }
.operator-outcome-bar.tone-info { background: #0e7490; }
.operator-outcome-bar.tone-neutral { background: #64748b; }

.operator-attention-list {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0.8rem 0;
}

.operator-attention-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.65rem;
}

.operator-attention-item.is-urgent {
  background: #fff7ed;
  border-color: #fdba74;
}

.operator-attention-item > span,
.operator-attention-item > small {
  color: #64748b;
  display: block;
  font-size: 0.7rem;
}

.operator-attention-item > strong {
  color: #0f172a;
  display: block;
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  margin: 0.12rem 0;
}

.operator-attention-item.is-urgent > strong {
  color: #9a3412;
}

.operator-activity-caveat {
  border-top: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 0.7rem;
  line-height: 1.4;
  margin: 0.8rem 0 0;
  padding-top: 0.7rem;
}

.operator-activity-calls {
  margin-bottom: 0.85rem;
}

.operator-section-filter-form {
  align-items: end;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  display: grid;
  gap: 0.6rem;
  margin-top: 0.75rem;
  padding: 0.65rem;
}

.operator-call-filter-form {
  grid-template-columns: minmax(150px, 0.85fr) minmax(150px, 0.85fr) minmax(220px, 1.45fr) minmax(165px, 0.9fr) auto;
}

.operator-order-filter-form {
  grid-template-columns: minmax(175px, 0.9fr) minmax(240px, 1.6fr) minmax(180px, 0.9fr) auto;
}

.operator-section-filter-form label {
  color: #475569;
  display: block;
  font-size: 0.66rem;
  font-weight: 750;
  margin-bottom: 0.22rem;
  text-transform: uppercase;
}

.operator-section-filter-form .form-control,
.operator-section-filter-form .form-select,
.operator-section-filter-form .btn {
  min-height: 38px;
}

.operator-call-list {
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  margin-top: 0.75rem;
  overflow: hidden;
}

.operator-call-list-header,
.operator-call-entry > summary {
  align-items: center;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: minmax(112px, 0.78fr) minmax(190px, 1.35fr) minmax(130px, 0.9fr) minmax(135px, 0.9fr) minmax(150px, 1fr) auto;
}

.operator-call-list-header {
  background: #f8fafc;
  color: #64748b;
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.035em;
  padding: 0.52rem 0.72rem;
  text-transform: uppercase;
}

.operator-call-entry {
  background: #fff;
  border-inline-start: 3px solid #94a3b8;
  border-top: 1px solid #e2e8f0;
}

.operator-call-entry:first-of-type {
  border-top: 0;
}

.operator-call-entry.tone-primary { border-inline-start-color: #3157d5; }
.operator-call-entry.tone-success { border-inline-start-color: #15803d; }
.operator-call-entry.tone-warning { border-inline-start-color: #b45309; }
.operator-call-entry.tone-danger { border-inline-start-color: #c2413b; }
.operator-call-entry.tone-info { border-inline-start-color: #0e7490; }

.operator-call-entry > summary {
  cursor: pointer;
  list-style: none;
  min-height: 66px;
  padding: 0.6rem 0.72rem;
}

.operator-call-entry > summary::-webkit-details-marker {
  display: none;
}

.operator-call-entry > summary:hover {
  background: #f8fafc;
}

.operator-call-entry > summary:focus-visible {
  box-shadow: inset 0 0 0 3px rgb(49 87 213 / 24%);
  outline: 2px solid var(--app-accent);
  outline-offset: -2px;
}

.operator-call-entry[open] > summary {
  background: #edf2ff;
  border-block-end: 1px solid #c7d2fe;
}

.operator-call-entry[open] .operator-order-details-label > span {
  transform: rotate(45deg);
}

.operator-call-cell {
  min-width: 0;
}

.operator-call-cell > strong,
.operator-call-cell > small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operator-call-cell > strong {
  color: #172033;
  font-size: 0.79rem;
  font-variant-numeric: tabular-nums;
}

.operator-call-cell > small {
  color: #64748b;
  font-size: 0.68rem;
  margin-top: 0.12rem;
}

.operator-call-connection,
.operator-call-outcome {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.66rem;
  font-weight: 750;
  line-height: 1;
  padding: 0.34rem 0.48rem;
}

.operator-call-connection.is-connected,
.operator-call-outcome.tone-success {
  background: #ecfdf5;
  border-color: #86efac;
  color: #166534;
}

.operator-call-connection.is-live,
.operator-call-outcome.tone-primary,
.operator-call-outcome.tone-info {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.operator-call-connection.is-missed,
.operator-call-outcome.tone-warning {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #92400e;
}

.operator-call-outcome.tone-danger {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}

.operator-call-outcome.tone-neutral {
  background: #f8fafc;
  color: #475569;
}

.operator-call-detail {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.8fr);
  padding: 0.75rem;
}

.operator-call-facts {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.operator-call-facts > div {
  border-bottom: 1px solid #e2e8f0;
  min-width: 0;
  padding: 0.45rem 0.55rem;
}

.operator-call-facts dt,
.operator-call-note > span {
  color: #64748b;
  font-size: 0.64rem;
  font-weight: 750;
  text-transform: uppercase;
}

.operator-call-facts dd {
  color: #172033;
  font-size: 0.75rem;
  font-weight: 650;
  margin: 0.08rem 0 0;
  overflow-wrap: anywhere;
}

.operator-call-note {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 0.65rem;
}

.operator-call-note p {
  color: #334155;
  font-size: 0.75rem;
  margin: 0.25rem 0 0;
  white-space: pre-wrap;
}

.operator-activity-orders {
  margin-bottom: 0.6rem;
}

.operator-order-list {
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  margin-top: 0.8rem;
  overflow: hidden;
}

.operator-order-list-header,
.operator-order-entry > summary {
  align-items: center;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(125px, 0.9fr) minmax(170px, 1.2fr) minmax(185px, 1.25fr) minmax(120px, 0.8fr) minmax(120px, 0.8fr) auto;
}

.operator-order-list-header {
  background: #f8fafc;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.035em;
  padding: 0.55rem 0.75rem;
  text-transform: uppercase;
}

.operator-order-entry {
  background: #fff;
  border-top: 1px solid #e2e8f0;
}

.operator-order-entry:first-of-type {
  border-top: 0;
}

.operator-order-entry > summary {
  cursor: pointer;
  list-style: none;
  min-height: 68px;
  padding: 0.62rem 0.75rem;
}

.operator-order-entry > summary::-webkit-details-marker {
  display: none;
}

.operator-order-entry > summary:hover {
  background: #f8fafc;
}

.operator-order-entry > summary:focus-visible {
  box-shadow: inset 0 0 0 3px rgb(49 87 213 / 24%);
  outline: 2px solid var(--app-accent);
  outline-offset: -2px;
}

.operator-order-entry[open] > summary {
  background: #edf2ff;
  border-block-end: 1px solid #c7d2fe;
}

.operator-order-cell {
  min-width: 0;
}

.operator-order-cell > strong,
.operator-order-cell > small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operator-order-cell > strong {
  color: #172033;
  font-size: 0.8rem;
}

.operator-order-cell > small {
  color: #64748b;
  font-size: 0.69rem;
  margin-top: 0.12rem;
}

.operator-order-reference > strong,
.operator-order-value > strong {
  font-variant-numeric: tabular-nums;
}

.operator-order-value > strong {
  color: #0f766e;
}

.operator-order-status {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: #334155;
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1;
  padding: 0.35rem 0.5rem;
}

.operator-order-status.status-confirmed,
.operator-order-status.status-sent_to_courier,
.operator-order-status.status-delivered {
  background: #ecfdf5;
  border-color: #86efac;
  color: #166534;
}

.operator-order-status.status-refused,
.operator-order-status.status-cancelled {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}

.operator-order-status.status-draft {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #92400e;
}

.operator-order-details-label {
  align-items: center;
  color: #3157d5;
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 750;
  gap: 0.3rem;
  justify-self: end;
  white-space: nowrap;
}

.operator-order-details-label > span {
  font-size: 1rem;
  line-height: 1;
}

.operator-order-entry[open] .operator-order-details-label > span {
  transform: rotate(45deg);
}

.operator-order-detail {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.75fr) minmax(250px, 0.75fr);
  padding: 0.85rem;
}

.operator-order-detail h3 {
  font-size: 0.82rem;
  font-weight: 750;
  margin: 0 0 0.5rem;
}

.operator-order-detail .table {
  font-size: 0.76rem;
}

.operator-order-facts {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin: 0;
  padding: 0.35rem 0.7rem;
}

.operator-order-facts > div {
  border-top: 1px solid #e2e8f0;
  padding: 0.42rem 0;
}

.operator-order-facts > div:first-child {
  border-top: 0;
}

.operator-order-facts dt {
  color: #64748b;
  font-size: 0.66rem;
  font-weight: 750;
  text-transform: uppercase;
}

.operator-order-facts dd {
  color: #172033;
  font-size: 0.76rem;
  font-weight: 650;
  margin: 0.08rem 0 0;
  overflow-wrap: anywhere;
}

.operator-activity-empty {
  align-items: center;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 0.8rem;
  min-height: 108px;
  padding: 1rem;
  text-align: center;
}

.operator-activity-empty strong {
  font-size: 0.85rem;
}

.operator-activity-empty span,
.operator-activity-pagination,
.operator-activity-updated {
  color: #64748b;
  font-size: 0.72rem;
}

.operator-activity-pagination {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding-top: 0.75rem;
}

.operator-activity-updated {
  margin: 0;
  text-align: end;
}

@media (max-width: 1399.98px) {
  .operator-activity-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .operator-activity-filter-form,
  .operator-section-filter-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .operator-activity-search-field,
  .operator-section-search-field {
    grid-column: span 2;
  }

  .operator-activity-filter-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 991.98px) {
  .operator-activity-insights,
  .operator-order-detail,
  .operator-call-detail {
    grid-template-columns: 1fr;
  }

  .operator-call-list-header {
    display: none;
  }

  .operator-call-entry > summary {
    align-items: start;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0.72rem;
  }

  .operator-call-cell::before {
    color: #64748b;
    content: attr(data-label);
    display: block;
    font-size: 0.6rem;
    font-weight: 750;
    margin-bottom: 0.12rem;
    text-transform: uppercase;
  }

  .operator-call-entry .operator-order-details-label {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .operator-order-list-header,
  .operator-order-entry > summary {
    grid-template-columns: minmax(110px, 0.9fr) minmax(150px, 1.2fr) minmax(150px, 1fr) minmax(105px, 0.75fr) auto;
  }

  .operator-order-list-header > span:nth-child(3),
  .operator-order-entry > summary > .operator-order-cell:nth-child(3) {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .operator-activity-header,
  .operator-activity-filter-heading,
  .operator-activity-section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .operator-activity-header .btn {
    align-self: flex-start;
  }

  .operator-period-presets {
    flex-wrap: nowrap;
    margin-inline: -0.1rem;
    overflow-x: auto;
    padding: 0.1rem;
  }

  .operator-filter-chip {
    flex: 0 0 auto;
    min-height: 40px;
    padding-block: 0.72rem;
  }

  .operator-activity-filter-form,
  .operator-section-filter-form,
  .operator-activity-metrics,
  .operator-call-entry > summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .operator-activity-search-field,
  .operator-section-search-field,
  .operator-activity-filter-actions {
    grid-column: 1 / -1;
  }

  .operator-outcome-list-header {
    display: none;
  }

  .operator-outcome-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0.65rem;
  }

  .operator-outcome-main {
    grid-column: 1 / -1;
  }

  .operator-outcome-row > [data-label]::before {
    color: #64748b;
    content: attr(data-label);
    display: block;
    font-size: 0.6rem;
    font-weight: 750;
    margin-bottom: 0.08rem;
    text-transform: uppercase;
  }

  .operator-outcome-main::before {
    display: none !important;
  }

  .operator-activity-filter-actions .btn {
    flex: 1 1 0;
  }

  .operator-order-list-header {
    display: none;
  }

  .operator-order-entry {
    border-top: 1px solid #e2e8f0;
  }

  .operator-order-entry > summary {
    align-items: start;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0.75rem;
  }

  .operator-order-entry > summary > .operator-order-cell:nth-child(3) {
    display: block;
  }

  .operator-order-cell::before {
    color: #64748b;
    content: attr(data-label);
    display: block;
    font-size: 0.62rem;
    font-weight: 750;
    margin-bottom: 0.12rem;
    text-transform: uppercase;
  }

  .operator-order-details-label {
    grid-column: 1 / -1;
    justify-self: start;
    min-height: 36px;
  }

  .operator-activity-updated {
    text-align: start;
  }
}

@media (max-width: 575.98px) {
  .operator-activity-filter-form,
  .operator-section-filter-form,
  .operator-activity-metrics,
  .operator-attention-list,
  .operator-call-entry > summary,
  .operator-call-facts {
    grid-template-columns: 1fr;
  }

  .operator-activity-search-field,
  .operator-section-search-field,
  .operator-activity-filter-actions {
    grid-column: auto;
  }

  .operator-activity-metric > span {
    min-height: 0;
  }

  .operator-order-entry > summary {
    grid-template-columns: 1fr;
  }

  .operator-order-details-label {
    grid-column: auto;
  }

  .operator-activity-pagination {
    align-items: stretch;
    flex-direction: column;
    gap: 0.5rem;
  }
}

.order-support-overlay {
  align-items: flex-start;
  background: rgba(15, 23, 42, 0.58);
  display: flex;
  inset: 0;
  justify-content: center;
  overflow-y: auto;
  padding: clamp(1rem, 3vw, 2.5rem);
  position: fixed;
  z-index: 1090;
}

.order-support-shell {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 1rem;
  box-shadow: 0 1.5rem 4rem rgba(15, 23, 42, 0.28);
  max-width: 70rem;
  overflow: hidden;
  width: 100%;
}

.order-support-header {
  align-items: flex-start;
  background: #fff;
  border-bottom: 1px solid #dbe4ef;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 2;
}

.order-support-body { padding: 1.25rem 1.5rem 1.5rem; }

.order-support-stage {
  align-items: center;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-left-width: 0.3rem;
  border-radius: 0.65rem;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
}

.order-support-stage > div { display: grid; gap: 0.2rem; }
.order-support-stage > div > span { color: #475569; font-size: 0.875rem; }
.order-support-stage-success { border-left-color: #15803d; }
.order-support-stage-warning { border-left-color: #d97706; }
.order-support-stage-info { border-left-color: #2563eb; }
.order-support-stage-secondary { border-left-color: #64748b; }

.order-support-summary {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.order-support-summary > div {
  background: #fff;
  border: 1px solid #dbe4ef;
  border-radius: 0.55rem;
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  padding: 0.7rem 0.8rem;
}

.order-support-summary span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.order-support-summary strong { overflow-wrap: anywhere; }

.order-support-action {
  background: #fff;
  border: 1px solid #dbe4ef;
  border-radius: 0.7rem;
  margin-top: 0.75rem;
  overflow: visible;
}

.order-support-action > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  list-style: none;
  padding: 0.9rem 1rem;
}

.order-support-action > summary::-webkit-details-marker { display: none; }
.order-support-action > summary > span:first-child { display: grid; gap: 0.15rem; }
.order-support-action > summary small { color: #64748b; font-weight: 400; }

.order-support-action[open] > summary {
  background: #f1f5f9;
  border-bottom: 1px solid #dbe4ef;
}

.order-support-action-danger > summary strong { color: #b91c1c; }

.order-support-form {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 1rem;
}

[data-commercial-handoff-repair] .order-support-form {
  background: rgb(255 255 255 / 58%);
  border: 1px solid rgb(133 77 14 / 16%);
  border-radius: 0.6rem;
  padding: 0.75rem;
}

.order-support-field-wide { grid-column: 1 / -1; }

.order-support-products {
  border: 1px solid #dbe4ef;
  border-radius: 0.55rem;
  padding: 0.8rem;
}

.order-support-products .table-responsive { max-height: 18rem; }
.order-support-quantity { display: inline-block; max-width: 5.5rem; }

.order-support-invoice {
  background: #f8fafc;
  border: 1px solid #dbe4ef;
  border-radius: 0.55rem;
  padding: 0.8rem;
}

.order-support-submit {
  align-items: center;
  border-top: 1px solid #dbe4ef;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding-top: 1rem;
}

.order-support-cancel-form {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.order-support-cancel-form .btn { justify-self: end; }
.order-support-history { display: grid; gap: 0.6rem; padding: 1rem; }
.order-support-history article { border-left: 0.2rem solid #94a3b8; padding: 0.25rem 0.75rem; }

@media (max-width: 767.98px) {
  .order-support-overlay { padding: 0; }
  .order-support-shell { border-radius: 0; min-height: 100%; }
  .order-support-header,
  .order-support-body { padding: 1rem; }
  .order-support-summary,
  .order-support-form { grid-template-columns: 1fr; }
  .order-support-field-wide { grid-column: auto; }
  .order-support-stage,
  .order-support-submit { align-items: stretch; flex-direction: column; }
}

.order-change-review {
  border: 1px solid #d8e2ef;
  border-radius: 0.75rem;
  overflow: hidden;
}

.order-change-review-header {
  background: #f8fafc;
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
}

.order-change-review-title {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.order-change-review-title > div:last-child {
  display: grid;
  text-align: right;
}

.order-change-review-meta {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.order-change-review-meta > div {
  border-left: 0.18rem solid #cbd8ea;
  min-width: 0;
  padding-left: 0.65rem;
}

.order-change-review-meta dt,
.order-change-review-reason > span,
.order-change-value > span {
  color: var(--app-muted);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.order-change-review-meta dd {
  font-size: 0.82rem;
  margin: 0.12rem 0 0;
}

.order-change-review-reason {
  background: #fff7df;
  border: 1px solid #f1d792;
  border-radius: 0.55rem;
  padding: 0.7rem 0.8rem;
}

.order-change-review-reason p {
  margin: 0.2rem 0 0;
  white-space: pre-wrap;
}

.order-change-review-summary {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #e1e8f2;
  border-top: 1px solid #e1e8f2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  padding: 0.7rem 1rem;
}

.order-change-review-summary span {
  color: var(--app-muted);
  font-size: 0.78rem;
}

.order-change-groups {
  display: grid;
}

.order-change-group {
  background: #ffffff;
  min-width: 0;
  padding: 1rem;
}

.order-change-group + .order-change-group {
  border-top: 1px solid #e1e8f2;
}

.order-change-group-heading {
  margin-bottom: 0.65rem;
}

.order-change-group-heading h3 {
  font-size: 0.86rem;
  margin: 0;
}

.order-change-group-heading p {
  color: var(--app-muted);
  font-size: 0.73rem;
  margin: 0.15rem 0 0;
}

.order-change-list {
  display: grid;
  gap: 0.45rem;
}

.order-change-row {
  align-items: stretch;
  background: #f8fafc;
  border: 1px solid #dce5f0;
  border-left: 0.22rem solid #cbd5e1;
  border-radius: 0.55rem;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: minmax(9rem, 0.9fr) minmax(10rem, 1fr) auto minmax(10rem, 1fr);
  min-width: 0;
  padding: 0.65rem 0.75rem;
}

.order-change-row.is-changed {
  background: #fffaf0;
  border-left-color: #e5a50a;
}

.order-change-row.is-unknown {
  background: #f8fafc;
  border-left-color: #64748b;
}

.order-change-field,
.order-change-value {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.order-change-field {
  align-content: center;
  justify-items: start;
}

.order-change-field strong,
.order-change-value strong {
  overflow-wrap: anywhere;
}

.order-change-value {
  background: #ffffff;
  border: 1px solid #e1e8f2;
  border-radius: 0.4rem;
  padding: 0.45rem 0.55rem;
}

.order-change-value.is-requested {
  border-color: #b9cdfb;
}

.order-change-arrow {
  align-self: center;
  color: var(--app-muted);
  font-size: 1.05rem;
}

@media (max-width: 767.98px) {
  .order-change-review-title {
    display: grid;
  }

  .order-change-review-title > div:last-child {
    text-align: left;
  }

  .order-change-review-meta {
    grid-template-columns: 1fr;
  }

  .order-change-row {
    grid-template-columns: 1fr;
  }

  .order-change-arrow {
    display: none;
  }
}

/* Assigned customers keep their primary action fully visible on small screens. */
@media (max-width: 767.98px) {
  .assigned-customers-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .assigned-customers-table,
  .assigned-customers-table tbody,
  .assigned-customers-table tr,
  .assigned-customers-table td {
    display: block;
    width: 100%;
  }

  .assigned-customers-table tr {
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
  }

  .assigned-customers-table td {
    border: 0;
    padding: 0.375rem 0;
    overflow-wrap: anywhere;
  }

  .assigned-customers-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    color: var(--bs-secondary-color, #6c757d);
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
  }

  .assigned-customers-table td:last-child .btn {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
  }
}
