:root {
  --ss-ocean-950: #03191f;
  --ss-ocean-900: #05252d;
  --ss-ocean-850: #07313a;
  --ss-ocean-800: #0a3d46;
  --ss-teal-600: #00a99d;
  --ss-teal-500: #18c7b6;
  --ss-teal-100: #dff9f6;
  --ss-mint-50: #effdf8;
  --ss-magenta-500: #d957cc;
  --ss-magenta-600: #c944bd;
  --ss-magenta-700: #a92fa0;
  --ss-magenta-100: #fde7fa;
  --ss-magenta-50: #fff4fd;
  --ss-pink-50: #fff4fd;
  --ss-gold-500: #bf9353;
  --ss-gold-100: #f7ecd9;
  --ss-amber-50: #fff8eb;
  --ss-emerald-600: #0ba875;
  --ss-emerald-500: #18c98c;
  --ss-emerald-100: #ddfaee;
  --ss-blue-700: #1d4ed8;
  --ss-blue-50: #eaf2ff;
  --ss-white: #fff;
  --ss-offwhite: #f8faf9;
  --ss-cloud: #eef4f4;
  --ss-slate-950: #08161a;
  --ss-slate-900: #10242b;
  --ss-slate-700: #365158;
  --ss-slate-600: #587078;
  --ss-slate-500: #768a90;
  --ss-slate-300: #cbd6d8;
  --ss-slate-200: #e5ecec;
  --ss-success: #10b981;
  --ss-success-dark: #047857;
  --ss-success-bg: #dcfce7;
  --ss-warning: #d9982b;
  --ss-warning-dark: #a16207;
  --ss-warning-bg: #fff4d6;
  --ss-danger: #dc3545;
  --ss-danger-dark: #991b1b;
  --ss-danger-bg: #fde2e5;
  --ss-info: #2684ff;
  --ss-info-dark: #1d4ed8;
  --ss-info-bg: #e4f0ff;
  --module-wis: var(--ss-magenta-500);
  --module-workday: var(--ss-gold-500);
  --module-pi: var(--ss-emerald-500);
  --module-csp: var(--ss-teal-500);
  --os-accent: var(--ss-magenta-500);
  --os-accent-dark: var(--ss-magenta-700);
  --os-accent-soft: var(--ss-magenta-100);
  --os-accent-pale: var(--ss-magenta-50);
  --app-bg: #f6f9f9;
  --sidebar-bg: linear-gradient(180deg, #03191f 0%, #062b34 100%);
  --topbar-bg: #03191f;
  --card-bg: #fff;
  --card-bg-warm: #fffbf4;
  --card-bg-dark: #06252d;
  --text-primary: #10242b;
  --text-secondary: #587078;
  --text-muted: #8a9ca1;
  --text-inverse: #fff;
  --border-light: #e1eaea;
  --border-medium: #cbdada;
  --border-dark: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 2px 8px rgba(3, 25, 31, 0.06);
  --shadow-md: 0 10px 30px rgba(3, 25, 31, 0.1);
  --shadow-lg: 0 24px 60px rgba(3, 25, 31, 0.18);
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --font-main: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Inbound release impact */
.inbound-release-summary {
  display: grid;
  gap: 16px;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid #dbe7ea;
  border-left: 4px solid #cf2bb7;
  border-radius: 8px;
  background: #fbfdfe;
}

.inbound-release-summary.is-missing {
  border-left-color: #94a7ad;
}

.inbound-release-summary > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.inbound-release-summary h3,
.inbound-release-summary p {
  margin: 0;
}

.inbound-release-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.inbound-release-summary-grid span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #e3ecef;
  border-radius: 7px;
  background: #fff;
}

.inbound-release-summary-grid small,
.inbound-release-summary-note {
  color: #607980;
}

.inbound-release-summary-grid strong {
  font-size: 1.35rem;
}

.inbound-release-summary .btn {
  justify-self: start;
}

.inbound-release-impact {
  display: grid;
  gap: 20px;
}

.inbound-release-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 4px;
}

.inbound-release-hero h1,
.inbound-release-hero p {
  margin: 0;
}

.inbound-release-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.inbound-release-kpis article {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 18px;
  border: 1px solid #dbe7ea;
  border-top: 3px solid #cf2bb7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(3, 36, 43, .06);
}

.inbound-release-kpis article.is-success { border-top-color: #13a36d; }
.inbound-release-kpis article.is-warning { border-top-color: #d99613; }
.inbound-release-kpis article.is-danger { border-top-color: #dc4052; }

.inbound-release-kpis small,
.inbound-release-kpis span {
  color: #607980;
}

.inbound-release-kpis strong {
  font-size: 2rem;
  line-height: 1;
}

.inbound-release-notices p {
  margin: 0;
}

.inbound-release-source {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 12px 16px;
  border: 1px solid #dbe7ea;
  border-radius: 7px;
  background: #f7fafb;
}

.inbound-release-source span {
  display: grid;
  gap: 2px;
}

.inbound-release-source small {
  color: #607980;
}

.inbound-release-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inbound-release-filters a {
  padding: 9px 13px;
  border: 1px solid #d6e2e5;
  border-radius: 7px;
  color: #294850;
  background: #fff;
  font-weight: 700;
  text-decoration: none;
}

.inbound-release-filters a.active {
  border-color: #cf2bb7;
  color: #a91e94;
  background: #fff2fc;
}

.inbound-release-skus,
.inbound-release-orders,
.inbound-release-empty {
  overflow: hidden;
}

.inbound-release-table td,
.inbound-release-table th {
  vertical-align: middle;
}

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

  .inbound-release-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .inbound-release-hero,
  .inbound-release-summary > header {
    align-items: stretch;
    flex-direction: column;
  }

  .inbound-release-kpis,
  .inbound-release-summary-grid {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-main);
  background: var(--app-bg);
  color: var(--text-primary);
}

body.is-sidebar-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--app-bg);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--sidebar-bg);
  color: var(--text-inverse);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-backdrop {
  display: none;
}

.sidebar-logo {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
}

.brand-mark {
  width: 34px;
  height: 30px;
  flex: 0 0 34px;
  display: inline-block;
  background-image: url("../img/shipshark-mark.png");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  line-height: 1;
  letter-spacing: 0;
}

.brand-shipshark {
  color: #fff;
  font-size: 21px;
  font-weight: 400;
}

.brand-wordmark strong {
  color: #ff2bbf;
  font-size: 24px;
  font-weight: 900;
}

.sidebar-nav {
  flex: 1;
  padding: 8px 0 22px;
  overflow: auto;
}

.sidebar-section-label {
  margin: 22px 18px 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.48);
  font-weight: 800;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: calc(100% - 24px);
  min-height: 44px;
  margin: 4px 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
  border: 1px solid transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.sidebar-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: white;
}

.sidebar-item.active {
  background: linear-gradient(135deg, rgba(217, 87, 204, 0.22), rgba(169, 47, 160, 0.16));
  color: white;
  border-color: rgba(217, 87, 204, 0.45);
  box-shadow: inset 3px 0 0 var(--os-accent);
}

.sidebar-item.has-children {
  margin-bottom: 2px;
}

.sidebar-parent-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  align-items: center;
  width: calc(100% - 24px);
  min-height: 44px;
  margin: 4px 12px 2px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.78);
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.sidebar-parent-row:hover {
  background: rgba(255, 255, 255, 0.06);
  color: white;
}

.sidebar-parent-row.active {
  background: linear-gradient(135deg, rgba(217, 87, 204, 0.22), rgba(169, 47, 160, 0.16));
  color: white;
  border-color: rgba(217, 87, 204, 0.45);
  box-shadow: inset 3px 0 0 var(--os-accent);
}

.sidebar-parent-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 42px;
  padding: 10px 4px 10px 14px;
  color: inherit;
}

.sidebar-parent-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-right: 2px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: rgba(255, 255, 255, 0.56);
  cursor: pointer;
}

.sidebar-parent-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.sidebar-parent-toggle svg {
  transition: transform 160ms ease, color 160ms ease;
}

.sidebar-parent-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.sidebar-children {
  display: grid;
  gap: 2px;
  margin: 0 12px 10px 26px;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-children[hidden] {
  display: none;
}

.sidebar-subitem {
  min-height: 36px;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.68);
}

.sidebar-subitem svg {
  width: 16px;
  height: 16px;
}

.sidebar-subitem.active {
  box-shadow: inset 2px 0 0 var(--os-accent);
}

.main {
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 28px;
  background: var(--topbar-bg);
  color: var(--text-inverse);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  color: white;
  background: rgba(255, 255, 255, 0.07);
  font-weight: 800;
  cursor: pointer;
}

.global-search {
  position: relative;
  width: min(740px, 48vw);
  height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.66);
  background: rgba(0, 0, 0, 0.16);
}

.global-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 40;
  max-height: min(520px, 72vh);
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: white;
  box-shadow: var(--shadow-lg);
}

.global-search-results a,
.global-search-empty {
  display: grid;
  gap: 3px;
  padding: 12px;
  border-radius: var(--radius-xs);
  color: var(--text-primary);
  text-decoration: none;
}

.global-search-results a:hover,
.global-search-results a:focus-visible {
  background: var(--ss-offwhite);
}

.global-search-results span {
  width: fit-content;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  color: var(--ss-blue-700);
  background: var(--ss-blue-50);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.global-search-results small,
.global-search-empty {
  color: var(--text-secondary);
  line-height: 1.35;
}

.global-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: white;
  background: transparent;
}

.global-search input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.os-global-search-trigger {
  width: min(740px, 48vw);
  height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.74);
  background: rgba(0, 0, 0, 0.16);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.os-global-search-trigger:hover,
.os-global-search-trigger:focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  outline: 0;
}

.os-global-search-trigger svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.os-global-search-trigger span {
  flex: 1;
  min-width: 0;
  font-weight: 750;
}

.os-global-search-trigger kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.os-global-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: start center;
  padding: 9vh 18px 24px;
  background: rgba(3, 25, 31, 0.58);
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
}

.os-global-search-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.is-global-search-open {
  overflow: hidden;
}

.os-global-search-modal {
  width: min(760px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(3, 25, 31, 0.34);
  transform: translateY(-8px);
  transition: transform 140ms ease;
}

.os-global-search-overlay.is-open .os-global-search-modal {
  transform: translateY(0);
}

.os-global-search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(217, 87, 204, 0.18), transparent 34%),
    linear-gradient(135deg, var(--ss-ocean-950), var(--ss-ocean-850));
}

.os-global-search-header .eyebrow {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.62);
}

.os-global-search-header h2 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  letter-spacing: 0;
}

.os-global-search-input-shell {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-light);
  background: #fff;
}

.os-global-search-input-shell svg {
  width: 20px;
  height: 20px;
  color: var(--os-accent);
}

.os-global-search-input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text-primary);
  background: transparent;
  font-size: 16px;
  font-weight: 750;
}

.os-global-search-input::placeholder {
  color: var(--text-muted);
  font-weight: 650;
}

.os-global-search-results {
  max-height: min(520px, 58vh);
  overflow: auto;
  padding: 12px;
  background: var(--ss-offwhite);
}

.os-global-search-group + .os-global-search-group {
  margin-top: 12px;
}

.os-global-search-context {
  margin: 0 8px 10px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
}

.os-global-search-group h3 {
  margin: 6px 8px 7px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.os-global-search-row {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) auto auto 30px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text-primary);
  background: #fff;
  text-decoration: none;
  cursor: pointer;
}

.os-global-search-row + .os-global-search-row {
  margin-top: 6px;
}

.os-global-search-row:hover,
.os-global-search-row:focus-visible,
.os-global-search-row.is-active {
  border-color: rgba(217, 87, 204, 0.34);
  background: var(--ss-magenta-50);
  outline: 0;
}

.os-global-search-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 94px;
  padding: 5px 8px;
  border-radius: var(--radius-pill);
  color: var(--os-accent-dark);
  background: var(--os-accent-soft);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.os-global-search-row-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.os-global-search-row-main strong,
.os-global-search-row-main small,
.os-global-search-row em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.os-global-search-row-main strong {
  font-size: 14px;
}

.os-global-search-row-main small {
  color: var(--text-secondary);
  font-size: 12px;
}

.os-global-search-row em {
  max-width: 140px;
  color: var(--text-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

.os-global-search-enter-hint {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 850;
}

.os-global-search-favorite,
.os-global-search-favorite-placeholder {
  width: 30px;
  height: 30px;
}

.os-global-search-favorite {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.os-global-search-favorite:hover,
.os-global-search-favorite.is-favorite {
  color: var(--os-accent);
  border-color: rgba(217, 87, 204, 0.3);
  background: var(--ss-magenta-50);
}

.os-global-search-empty,
.os-global-search-loading,
.os-global-search-error {
  padding: 34px 18px;
  border: 1px dashed var(--border-medium);
  border-radius: 12px;
  color: var(--text-secondary);
  background: #fff;
  text-align: center;
  font-weight: 750;
}

.os-global-search-error {
  color: var(--ss-danger-dark);
  background: var(--ss-danger-bg);
  border-color: rgba(220, 53, 69, 0.28);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-cutoff-button {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(217, 87, 204, 0.62);
  border-radius: var(--radius-pill);
  color: white;
  background: linear-gradient(135deg, rgba(217, 87, 204, 0.24), rgba(169, 47, 160, 0.18));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  padding: 0;
  text-decoration: none;
}

.topbar-cutoff-button:hover,
.topbar-cutoff-button:focus-visible {
  color: white;
  background: linear-gradient(135deg, rgba(217, 87, 204, 0.34), rgba(169, 47, 160, 0.24));
  border-color: rgba(217, 87, 204, 0.78);
  transform: translateY(-1px);
}

.icon-button {
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.notification-button b {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 11px;
  background: var(--module-wis);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 8px;
  color: white;
  text-decoration: none;
}

.user-avatar {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--ss-magenta-700), var(--ss-magenta-500));
  font-weight: 800;
}

.user-avatar-img {
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.18);
  background: var(--ss-ocean-800);
}

.user-menu small {
  display: block;
  color: rgba(255, 255, 255, 0.62);
}

.logout-link {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.content {
  width: min(1660px, 100%);
  flex: 1;
  margin: 0 auto;
  padding: 0 32px 28px;
}

body.os-wide-page .content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: clamp(20px, 2vw, 36px);
  padding-right: clamp(20px, 2vw, 36px);
}

body.os-wide-page .page-heading {
  margin-top: 22px;
}

body.inbound-page .content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: 22px;
  padding-right: 22px;
}

body.warehouse-page .content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: clamp(20px, 2vw, 36px);
  padding-right: clamp(20px, 2vw, 36px);
}

body.warehouse-page .page-heading {
  margin-top: 22px;
}

body.returnflow-page .content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: clamp(20px, 2vw, 36px);
  padding-right: clamp(20px, 2vw, 36px);
}

body.returnflow-page .page-heading {
  margin-top: 22px;
}

body.pickpack-page .content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: clamp(20px, 2vw, 36px);
  padding-right: clamp(20px, 2vw, 36px);
}

body.pickpack-page .page-heading {
  margin-top: 22px;
}

body.pickpack-page .section-tabs {
  margin-bottom: 18px;
}

body.warehouse-overview-page .page-heading {
  display: none;
}

.ops-dashboard-page .content {
  padding-top: 24px;
}

.os-help-page .content {
  padding-top: 26px;
}

.module-tabs {
  width: fit-content;
  display: flex;
  margin-left: 16px;
  background: var(--ss-ocean-900);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.module-tab {
  min-width: 132px;
  display: grid;
  gap: 2px;
  padding: 12px 22px;
  color: rgba(255, 255, 255, 0.72);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.module-tab:last-child {
  border-right: 0;
}

.module-tab strong {
  color: white;
}

.module-tab small {
  font-size: 12px;
}

.module-tab.wis {
  box-shadow: inset 0 -3px 0 var(--module-wis);
}

.module-tab.workday {
  box-shadow: inset 0 -3px 0 var(--module-workday);
}

.module-tab.pi {
  box-shadow: inset 0 -3px 0 var(--module-pi);
}

.module-tab.csp {
  box-shadow: inset 0 -3px 0 var(--module-csp);
}

.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0 18px;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--os-accent-dark);
}

.page-heading h1 {
  margin: 0;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.05;
  color: var(--text-primary);
}

.page-heading p {
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 16px;
}

.heading-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.date-filter {
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: white;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--ss-magenta-700), var(--ss-magenta-500));
  color: white;
  box-shadow: 0 10px 24px rgba(217, 87, 204, 0.22);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(217, 87, 204, 0.3);
}

.btn-secondary {
  color: var(--text-primary);
  background: white;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-danger {
  color: white;
  background: linear-gradient(135deg, var(--ss-danger-dark), var(--ss-danger));
  box-shadow: 0 10px 24px rgba(220, 53, 69, 0.18);
}

.btn-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(220, 53, 69, 0.24);
}

.btn:disabled,
.btn[disabled],
.btn.is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
  pointer-events: none;
}

.notice {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.notice.danger {
  color: var(--ss-danger-dark);
  background: var(--ss-danger-bg);
}

.notice.success {
  color: var(--os-accent-dark);
  background: var(--os-accent-soft);
}

.notice.warning {
  color: var(--ss-warning-dark);
  background: var(--ss-warning-bg);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.kpi-card,
.card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.kpi-card {
  position: relative;
  min-height: 150px;
  padding: 20px;
  overflow: hidden;
}

.kpi-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 20px;
  width: 28px;
  height: 3px;
  border-radius: 99px;
  background: var(--os-accent);
}

.kpi-card.wis::before,
.kpi-card.wis .kpi-icon {
  color: var(--module-wis);
  background: var(--ss-magenta-100);
}

.kpi-card.workday::before,
.kpi-card.workday .kpi-icon {
  color: var(--module-workday);
  background: var(--ss-gold-100);
}

.kpi-card.pi::before,
.kpi-card.pi .kpi-icon {
  color: var(--module-pi);
  background: var(--ss-emerald-100);
}

.kpi-card.csp::before,
.kpi-card.csp .kpi-icon {
  color: var(--module-csp);
  background: var(--ss-teal-100);
}

.kpi-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.kpi-label {
  margin: 20px 0 10px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.kpi-value {
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
}

.kpi-helper {
  margin: 9px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.45;
}

.kpi-card > span:not(.kpi-icon),
.kpi-card > small {
  display: block;
  max-width: 100%;
}

.kpi-card > span:not(.kpi-icon) {
  margin: 20px 0 8px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  text-transform: uppercase;
}

.kpi-card > strong {
  display: block;
  max-width: 100%;
  margin: 0;
  color: var(--text-primary);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.kpi-card > small {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.4;
}

.kpi-delta {
  margin-right: 6px;
  font-weight: 800;
}

.kpi-delta.positive {
  color: var(--ss-success-dark);
}

.kpi-delta.negative {
  color: var(--ss-danger);
}

.kpi-card-link {
  display: block;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.kpi-card-link:hover,
.kpi-card-link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--os-accent);
  box-shadow: var(--shadow-md);
  outline: 0;
}

.ops-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 0.94fr)) minmax(0, 1.24fr);
}

.ops-kpi-card {
  min-height: 176px;
}

.ops-kpi-card .kpi-label {
  margin-bottom: 4px;
}

.ops-support-kpi-card {
  min-height: 176px;
  padding: 20px 22px 18px;
}

.ops-support-kpi-card::before {
  display: none;
}

.ops-support-kpi-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.ops-support-kpi-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: #7c3aed;
  background: #f3e8ff;
  border-radius: 12px;
}

.ops-support-kpi-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 2.1;
}

.ops-support-kpi-title {
  max-width: 150px;
  margin: 0;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.32;
}

.ops-support-kpi-value {
  color: var(--text-primary);
  font-size: 35px;
  font-weight: 900;
  line-height: 1;
}

.ops-support-kpi-value-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.ops-support-kpi-index {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.ops-support-kpi-index svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}

.ops-support-kpi-index.positive {
  color: var(--ss-success);
}

.ops-support-kpi-index.negative {
  color: var(--ss-danger);
}

.ops-support-kpi-value.is-muted {
  color: var(--text-muted);
  font-weight: 650;
}

.ops-support-kpi-helper {
  margin: 15px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.ops-on-time-card {
  min-height: 176px;
  padding: 20px 22px 18px;
}

.ops-on-time-card::before {
  display: none;
}

.ops-on-time-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.ops-on-time-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: var(--ss-success);
  background: var(--ss-success-bg);
  border-radius: 12px;
}

.ops-on-time-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 2.1;
}

.ops-on-time-title,
.ops-on-time-subtitle {
  margin: 0;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.32;
}

.ops-on-time-title {
  margin-bottom: 2px;
}

.ops-on-time-value-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.ops-on-time-value-row strong {
  color: var(--text-primary);
  font-size: 35px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.ops-on-time-delta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.ops-on-time-delta svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.4;
}

.ops-on-time-delta.positive {
  color: var(--ss-success);
}

.ops-on-time-delta.negative {
  color: var(--ss-danger);
}

.ops-on-time-helper {
  margin: 15px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.ops-accuracy-icon {
  color: #d946ef;
  background: #fdf2f8;
}

.ops-accuracy-card .ops-on-time-helper,
.ops-accuracy-target {
  margin: 15px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.ops-accuracy-target {
  margin-top: 3px;
}

.ops-found-lost-card {
  min-height: 176px;
  padding: 20px 22px 18px;
}

.ops-found-lost-card::before {
  display: none;
}

.ops-found-lost-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.ops-found-lost-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: var(--ss-warning);
  background: var(--ss-warning-bg);
  border-radius: 12px;
}

.ops-found-lost-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 2.1;
}

.ops-found-lost-title,
.ops-found-lost-subtitle {
  margin: 0;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.32;
}

.ops-found-lost-title {
  margin-bottom: 2px;
  font-weight: 900;
}

.ops-found-lost-subtitle {
  color: var(--text-secondary);
  font-weight: 400;
}

.ops-found-lost-value-row {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}

.ops-found-lost-value-row strong {
  color: var(--text-primary);
  font-size: 35px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.ops-found-lost-delta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.ops-found-lost-delta svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.4;
}

.ops-found-lost-delta.positive {
  color: var(--ss-success);
}

.ops-found-lost-delta.negative {
  color: var(--ss-danger);
}

.ops-found-lost-helper {
  margin: 15px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.ops-kpi-subtitle {
  margin: 0 0 16px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.35;
}

.ops-kpi-card.is-long-value .kpi-value {
  font-size: 20px;
  line-height: 1.15;
}

.ops-health-lines {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.ops-health-lines span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 12px;
}

.ops-health-lines small {
  color: inherit;
}

.ops-health-lines strong {
  color: var(--text-primary);
  font-size: 13px;
}

.ops-health-card {
  --health-color: var(--ss-success);
  min-height: 176px;
  padding: 20px 22px 18px;
}

.ops-health-card::before {
  display: none;
}

.ops-health-warning {
  --health-color: var(--ss-warning);
}

.ops-health-danger {
  --health-color: var(--ss-danger);
}

.ops-health-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
}

.ops-health-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: var(--health-color);
  background: var(--ss-success-bg);
  border-radius: 12px;
}

.ops-health-warning .ops-health-icon {
  background: var(--ss-warning-bg);
}

.ops-health-danger .ops-health-icon {
  background: var(--ss-danger-bg);
}

.ops-health-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 2.1;
}

.ops-health-title {
  margin: 0;
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.25;
}

.ops-health-score-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 13px 62px;
}

.ops-health-score-link {
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.ops-health-score-link:hover .ops-health-gauge span,
.ops-health-score-link:hover .ops-health-status strong {
  color: var(--ss-magenta-600);
}

.ops-health-gauge {
  position: relative;
  width: 66px;
  height: 66px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--health-color);
  background: conic-gradient(from 225deg, var(--health-color) 0 var(--score-pct), #eaf0f2 var(--score-pct) 75%, transparent 75% 100%);
  border-radius: 50%;
}

.ops-health-gauge::after {
  content: "";
  position: absolute;
  inset: 7px;
  background: var(--card-bg);
  border-radius: 50%;
}

.ops-health-gauge span {
  position: relative;
  z-index: 1;
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
}

.ops-health-status {
  display: grid;
  gap: 6px;
}

.ops-health-status strong {
  color: var(--health-color);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
}

.ops-health-status span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}

.ops-health-status span.positive {
  color: var(--ss-success);
}

.ops-health-status span.negative {
  color: var(--ss-danger);
}

.ops-health-status svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

.ops-health-metrics {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.ops-health-metric {
  display: grid;
  grid-template-columns: minmax(112px, 1fr) minmax(70px, 0.8fr) 40px;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 400;
}

.ops-health-track {
  height: 6px;
  overflow: hidden;
  background: #eef2f4;
  border-radius: var(--radius-pill);
}

.ops-health-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #059669 0%, #10b981 58%, #34d399 100%);
  border-radius: inherit;
}

.ops-health-track.warning i {
  background: linear-gradient(90deg, #b45309 0%, #f59e0b 58%, #fbbf24 100%);
}

.ops-health-track.danger i {
  background: linear-gradient(90deg, #b91c1c 0%, #ef4444 58%, #fb7185 100%);
}

.ops-health-metric strong {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  text-align: right;
}

.ops-health-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  color: var(--text-secondary);
  font-weight: 500;
}

.ops-dashboard-main {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(340px, 0.82fr);
  gap: 18px;
  align-items: stretch;
}

.ops-dashboard-bottom {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.ops-support-card {
  grid-column: span 2;
}

.ops-chart-card,
.ops-alerts-card,
.ops-priority-putaway-card,
.ops-support-card,
.ops-plan-card,
.ops-ai-card {
  min-height: 100%;
}

.ops-chart-card {
  position: relative;
  overflow: visible;
}

.ops-priority-putaway-card {
  min-width: 0;
}

.ops-priority-putaway-groups {
  display: grid;
  gap: 18px;
  max-height: 390px;
  overflow-y: auto;
  padding-right: 4px;
}

.ops-priority-putaway-group h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
  color: var(--text-primary);
  font-size: 14px;
}

.ops-priority-putaway-group h3 span {
  display: inline-flex;
  min-width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ss-magenta-100);
  color: var(--ss-magenta-700);
  font-size: 12px;
}

.ops-priority-putaway-list {
  display: grid;
}

.ops-priority-putaway-list a {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
  text-decoration: none;
}

.ops-priority-putaway-list a:last-child {
  border-bottom: 0;
}

.ops-priority-putaway-list a:hover strong {
  color: var(--ss-magenta-700);
}

.ops-priority-putaway-list a > svg:first-child {
  color: var(--ss-magenta-600);
}

.ops-priority-putaway-list a > svg:last-child {
  color: var(--text-secondary);
}

.ops-priority-putaway-list strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 700;
}

.ops-priority-putaway-empty {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.85fr) minmax(340px, 0.85fr);
  gap: 18px;
  align-items: stretch;
}

.lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr) minmax(340px, 0.8fr);
  gap: 18px;
  margin-top: 18px;
}

.card {
  padding: 20px;
}

.warm-card {
  background: var(--card-bg-warm);
  border-color: #eadcc8;
}

.dark-card {
  color: white;
  background: radial-gradient(circle at top right, rgba(24, 201, 140, 0.24), transparent 38%), var(--card-bg-dark);
  border-color: var(--border-dark);
}

.dark-card p {
  color: rgba(255, 255, 255, 0.75);
}

.dark-card .btn {
  margin-top: 12px;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.card-header h2 {
  margin: 0;
  font-size: 18px;
}

.card-header p {
  margin: 5px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.card-header a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ss-info-dark);
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}

.card-header a.btn-primary {
  color: white;
}

.card-header a.btn-secondary {
  color: var(--text-primary);
}

.help-guide-open .page-heading {
  display: none;
}

.ops-dashboard-page .page-heading {
  display: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-pill);
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 800;
}

.status-success {
  color: var(--ss-success-dark);
  background: var(--ss-success-bg);
}

.status-info {
  color: var(--ss-info-dark);
  background: var(--ss-info-bg);
}

.status-warning {
  color: var(--ss-warning-dark);
  background: var(--ss-warning-bg);
}

.status-danger {
  color: var(--ss-danger-dark);
  background: var(--ss-danger-bg);
}

.status-muted {
  color: #64748b;
  background: #eef2f6;
}

.status-accent {
  color: var(--os-accent-dark);
  background: var(--os-accent-soft);
}

.legend-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-size: 13px;
}

.legend-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 8px;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font: inherit;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, opacity 140ms ease;
}

.legend-toggle:hover,
.legend-toggle:focus-visible {
  color: var(--text-primary);
  background: var(--ss-offwhite);
  border-color: var(--border-light);
  outline: 0;
}

.legend-toggle[aria-pressed="false"] {
  opacity: 0.45;
}

.legend-dot {
  width: 9px;
  height: 9px;
  display: inline-block;
  border-radius: 50%;
  margin-right: 0;
}

.legend-dot.wis {
  background: var(--module-wis);
}

.legend-dot.workday {
  background: var(--module-workday);
}

.legend-dot.pi {
  background: var(--module-pi);
}

.legend-dot.csp {
  background: var(--module-csp);
}

.ops-chart-range {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 168px;
  height: 42px;
  color: var(--text-primary);
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.ops-chart-range-icon,
.ops-chart-range-chevron {
  position: absolute;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  pointer-events: none;
  transform: translateY(-50%);
}

.ops-chart-range-icon {
  left: 12px;
}

.ops-chart-range-chevron {
  right: 10px;
}

.ops-chart-range select {
  width: 100%;
  height: 100%;
  padding: 0 34px 0 40px;
  color: var(--text-primary);
  background: transparent;
  border: 0;
  outline: 0;
  appearance: none;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.line-chart {
  width: 100%;
  height: 250px;
  margin-top: 10px;
}

.ops-line-chart {
  display: block;
  height: 285px;
  margin-top: 8px;
}

.chart-grid {
  fill: none;
  stroke: #e6eeee;
  stroke-width: 1;
  stroke-dasharray: 3 5;
}

.line {
  fill: none;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.line.wis {
  stroke: var(--module-wis);
}

.line.workday {
  stroke: var(--module-workday);
}

.line.pi {
  stroke: var(--module-pi);
}

.line.csp {
  stroke: var(--module-csp);
}

.chart-axis {
  fill: var(--text-secondary);
  font-size: 11px;
  font-weight: 750;
}

.chart-axis-right {
  text-anchor: start;
}

.chart-point {
  fill: white;
  stroke-width: 2.2;
  cursor: pointer;
}

.chart-point.wis {
  stroke: var(--module-wis);
}

.chart-point.workday {
  stroke: var(--module-workday);
}

.chart-point.csp {
  stroke: var(--module-csp);
}

.chart-point.pi {
  stroke: var(--module-pi);
}

.chart-point:hover {
  stroke-width: 3;
}

.ops-chart-tooltip {
  position: absolute;
  z-index: 8;
  max-width: 240px;
  padding: 8px 10px;
  color: white;
  background: var(--ss-slate-950);
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-md);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  pointer-events: none;
  transform: translate(-50%, -115%);
}

.ops-chart-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 10px;
  height: 10px;
  background: inherit;
  transform: translateX(-50%) rotate(45deg);
}

[data-chart-series].is-hidden {
  display: none;
}

.chart-labels {
  position: relative;
  height: 20px;
  color: var(--text-muted);
  font-size: 12px;
  padding: 0;
}

.chart-labels span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
}

.carrier-list,
.status-list,
.alert-stack {
  display: grid;
  gap: 10px;
}

.carrier-row,
.status-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border-light);
}

.carrier-row:last-child,
.status-row:last-child {
  border-bottom: 0;
}

.carrier-row span,
.status-row span {
  color: var(--text-secondary);
}

.carrier-row small {
  color: var(--text-muted);
}

.alert-card {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: white;
}

.alert-card span {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.alert-card strong {
  font-size: 15px;
}

.alert-card small {
  color: var(--text-secondary);
  line-height: 1.45;
}

.alert-card.wis {
  border-left: 4px solid var(--module-wis);
}

.alert-card.workday {
  border-left: 4px solid var(--module-workday);
}

.alert-card.pi {
  border-left: 4px solid var(--module-pi);
}

.alert-card.csp {
  border-left: 4px solid var(--module-csp);
}

.alert-card.ops-alert-card {
  min-height: 96px;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.alert-card.ops-alert-card:hover,
.alert-card.ops-alert-card:focus-visible {
  transform: translateY(-1px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
  outline: 0;
}

.alert-card.ops-alert-card span {
  width: fit-content;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  background: var(--ss-slate-100);
}

.alert-card.severity-lav span {
  color: var(--ss-info-dark);
  background: var(--ss-info-bg);
}

.alert-card.severity-medium span {
  color: var(--ss-warning-dark);
  background: var(--ss-warning-bg);
}

.alert-card.severity-høj span,
.alert-card.severity-hoj span {
  color: var(--ss-danger-dark);
  background: var(--ss-danger-bg);
}

.alert-card.severity-kritisk span {
  color: white;
  background: var(--ss-danger);
}

.ops-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.ops-support-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 880px;
  font-size: 13px;
}

.ops-support-table th,
.ops-support-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
  vertical-align: middle;
}

.ops-support-table th {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.ops-support-table td {
  color: var(--text-primary);
}

.ops-support-table td:nth-child(3) {
  max-width: 260px;
  font-weight: 750;
}

.ops-support-table td a {
  color: var(--ss-info-dark);
  font-weight: 850;
}

.ops-support-table .status-pill {
  padding: 5px 8px;
  font-size: 11px;
  white-space: nowrap;
}

.plan-metrics {
  display: grid;
  gap: 10px;
}

.plan-metrics span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eadcc8;
}

.plan-metrics span:last-child {
  border-bottom: 0;
}

.plan-metrics small {
  color: var(--text-secondary);
}

.plan-metrics strong {
  font-size: 18px;
}

.positive {
  color: var(--ss-success-dark);
}

.negative {
  color: var(--ss-danger);
}

.ops-progress {
  height: 9px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: #e8edf3;
}

.ops-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ss-magenta-700), var(--ss-magenta-500));
}

.ops-muted {
  margin: 10px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.ops-ai-card {
  display: flex;
  flex-direction: column;
}

.ops-ai-card h3 {
  margin: 8px 0 10px;
  font-size: 18px;
}

.ops-ai-card small {
  display: block;
  margin-top: auto;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.ops-dashboard-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
  color: var(--text-secondary);
  font-size: 13px;
}

.ops-dashboard-status span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ops-dashboard-status i {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
  background: var(--ss-emerald-500);
}

.empty-state {
  min-height: 110px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.5);
}

.upload-tabs {
  display: flex;
  gap: 10px;
  margin: 0 0 18px;
  flex-wrap: wrap;
}

.upload-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  background: white;
  color: var(--text-secondary);
  font-weight: 750;
  box-shadow: var(--shadow-sm);
}

.upload-tabs a.is-active {
  color: var(--os-accent-dark);
  border-color: rgba(217, 87, 204, 0.32);
  background: var(--os-accent-soft);
}

.section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 18px;
  padding: 8px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-sm);
}

.section-tabs a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-weight: 900;
  text-decoration: none;
}

.section-tabs a:hover,
.section-tabs a.is-active {
  color: white;
  background: linear-gradient(135deg, var(--ss-magenta-700), var(--ss-magenta-500));
  box-shadow: 0 10px 24px rgba(217, 87, 204, 0.2);
}

.upload-panel[hidden] {
  display: none !important;
}

.upload-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.upload-layout.single {
  grid-template-columns: minmax(0, 1fr);
}

.upload-card {
  min-height: 100%;
}

.upload-card-main {
  width: 100%;
  max-width: none;
}

.upload-summary-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.2fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid rgba(16, 185, 129, 0.24);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fff, #effdf6);
  box-shadow: var(--shadow-sm);
}

.upload-summary-card h2,
.upload-summary-card p {
  margin: 0;
}

.upload-summary-card p:not(.eyebrow) {
  margin-top: 6px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.upload-summary-card dl {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.upload-summary-card dl div {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.68);
}

.upload-summary-card dt {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.upload-summary-card dd {
  margin: 5px 0 0;
  color: var(--text-primary);
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.os-upload-form {
  display: grid;
  gap: 16px;
}

.os-upload-form label {
  display: grid;
  gap: 7px;
}

.os-upload-form label > span {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.os-upload-form input,
.os-upload-form select {
  min-height: 52px;
  width: 100%;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  color: var(--text-primary);
  background: white;
  outline: none;
}

.os-upload-form input[type="file"] {
  min-height: 52px;
  padding: 8px 12px;
}

.os-upload-form input[type="file"]::file-selector-button {
  margin-right: 12px;
  border: 1px solid rgba(217, 87, 204, 0.28);
  border-radius: var(--radius-sm);
  min-height: 34px;
  padding: 7px 12px;
  color: var(--os-accent-dark);
  background: var(--os-accent-pale);
  font-weight: 800;
  cursor: pointer;
}

.form-grid.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.os-upload-form .form-grid.two > label {
  min-width: 0;
}

.os-upload-form .form-grid.two > label > span {
  min-height: 16px;
}

.upload-check {
  display: flex !important;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-weight: 650;
}

.upload-check input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--os-accent);
}

.upload-conditional {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(217, 87, 204, 0.22);
  border-radius: var(--radius-md);
  background: var(--os-accent-pale);
}

.upload-conditional[hidden] {
  display: none;
}

.upload-help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.upload-help-grid div {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--ss-offwhite);
}

.upload-help-grid span,
.upload-help-grid small {
  color: var(--text-secondary);
  line-height: 1.4;
}

.upload-help-grid small {
  font-weight: 700;
}

.upload-guide-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
  align-items: stretch;
}

.upload-guide-panel div {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 5px 12px;
  align-content: start;
  min-height: 74px;
  padding: 15px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--ss-offwhite);
}

.upload-guide-panel b {
  width: 26px;
  height: 26px;
  display: inline-grid;
  grid-row: span 2;
  place-items: center;
  align-self: start;
  margin-top: 1px;
  border-radius: 50%;
  color: white;
  background: var(--os-accent);
  font-size: 12px;
  line-height: 1;
}

.upload-guide-panel strong,
.upload-guide-panel span {
  line-height: 1.35;
}

.upload-guide-panel strong {
  display: block;
  min-height: 19px;
  line-height: 1.2;
}

.upload-guide-panel span {
  color: var(--text-secondary);
  font-size: 13px;
  align-self: start;
}

.upload-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(360px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.upload-workspace-main {
  min-width: 0;
}

.upload-mode-guide {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(217, 87, 204, 0.22);
  border-radius: var(--radius-sm);
  background: var(--os-accent-pale);
}

.upload-mode-guide span {
  color: var(--text-secondary);
  line-height: 1.45;
}

.upload-file-feedback {
  min-height: 20px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.35;
}

.upload-file-feedback.tone-success {
  color: var(--ss-success-dark);
}

.upload-file-feedback.tone-warning {
  color: var(--ss-warning-dark);
}

.upload-file-feedback.tone-danger {
  color: var(--ss-danger-dark);
}

.upload-side-panel {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(217, 87, 204, 0.22);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(217, 87, 204, 0.14), transparent 36%),
    #fff;
  box-shadow: var(--shadow-sm);
}

.upload-side-panel h3,
.upload-side-panel p {
  margin: 0;
}

.upload-side-panel h3 {
  font-size: 20px;
}

.upload-side-panel p:not(.eyebrow) {
  color: var(--text-secondary);
  line-height: 1.5;
}

.upload-loading {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 25, 31, 0.56);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.upload-loading[hidden] {
  display: none;
}

.upload-loading.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.upload-loading-card {
  width: min(460px, 100%);
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  color: white;
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(217, 87, 204, 0.28), transparent 42%),
    var(--ss-ocean-900);
  box-shadow: var(--shadow-lg);
}

.upload-loading-card h2,
.upload-loading-card p {
  margin: 0;
}

.upload-loading-card p,
.upload-loading-card small {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.45;
}

.upload-loading-spinner {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.16);
  border-top-color: var(--os-accent);
  border-right-color: var(--os-accent);
  animation: upload-spin 900ms linear infinite;
}

.upload-loading-bar {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
}

.upload-loading-bar span {
  width: 45%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ss-magenta-700), var(--ss-magenta-500));
  animation: upload-bar 1.35s ease-in-out infinite;
}

body.is-uploading {
  cursor: progress;
}

@keyframes upload-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes upload-bar {
  0% {
    transform: translateX(-110%);
  }

  100% {
    transform: translateX(230%);
  }
}

.upload-version-card,
.upload-history-grid {
  margin-top: 18px;
}

.upload-history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 18px;
}

.table-card {
  overflow-x: auto;
}

.table-card.no-horizontal-scroll-card {
  overflow-x: visible;
}

.table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.table th {
  text-align: left;
  padding: 12px 14px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--ss-offwhite);
  border-bottom: 1px solid var(--border-light);
}

.table td {
  padding: 12px 14px;
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.4;
  border-bottom: 1px solid var(--border-light);
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.table tbody tr:hover td {
  background: var(--ss-offwhite);
}

.os-table th,
.os-table td {
  white-space: nowrap;
}

.os-table td:nth-child(2) {
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.warehouse-double-pick-table {
  table-layout: fixed;
  min-width: 1180px;
}

.warehouse-double-pick-table .double-pick-sku-col {
  width: 12%;
}

.warehouse-double-pick-table .double-pick-description-col {
  width: 20%;
}

.warehouse-double-pick-table .double-pick-owner-col {
  width: 15%;
}

.warehouse-double-pick-table .double-pick-abc-col {
  width: 5%;
}

.warehouse-double-pick-table .double-pick-pick-col,
.warehouse-double-pick-table .double-pick-qty-col {
  width: 7%;
}

.warehouse-double-pick-table .double-pick-locations-col {
  width: 34%;
}

.warehouse-double-pick-table th,
.warehouse-double-pick-table td {
  white-space: normal;
  vertical-align: top;
}

.warehouse-double-pick-table th:nth-child(4),
.warehouse-double-pick-table th:nth-child(5),
.warehouse-double-pick-table th:nth-child(6),
.warehouse-double-pick-table td:nth-child(4),
.warehouse-double-pick-table td:nth-child(5),
.warehouse-double-pick-table td:nth-child(6) {
  text-align: center;
  white-space: nowrap;
}

.warehouse-double-pick-table td:nth-child(1),
.warehouse-double-pick-table td:nth-child(2),
.warehouse-double-pick-table td:nth-child(3) {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  word-break: normal;
}

.warehouse-double-pick-table .double-pick-locations-cell {
  width: auto;
  max-width: none;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.45;
  vertical-align: top;
}

.os-table.compact th,
.os-table.compact td {
  padding: 12px 14px;
}

.inline-upload-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.inline-upload-actions form {
  margin: 0;
}

.mini-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0 11px;
  background: var(--ss-white);
  color: var(--text-primary);
  font-weight: 800;
  cursor: pointer;
}

.mini-button svg {
  width: 16px;
  height: 16px;
}

.mini-button.danger {
  color: var(--ss-danger-dark);
  border-color: rgba(220, 53, 69, 0.28);
  background: var(--ss-danger-bg);
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.system-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 220px;
}

.system-card h2,
.system-card p {
  margin: 0;
}

.system-card p:not(.eyebrow) {
  color: var(--text-secondary);
  line-height: 1.5;
}

.system-card .btn {
  width: fit-content;
  align-self: end;
  margin-top: 8px;
}

.accent-card {
  background: linear-gradient(135deg, var(--os-accent-pale), #fff);
  border-color: rgba(217, 87, 204, 0.24);
}

.health-hero-os {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-bottom: 18px;
  padding: 26px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fff, var(--ss-offwhite));
  box-shadow: var(--shadow-sm);
}

.health-hero-os h2,
.health-hero-os p {
  margin: 0;
}

.health-hero-os h2 {
  font-size: 26px;
  line-height: 1.15;
}

.health-hero-os p:not(.eyebrow) {
  margin-top: 8px;
  color: var(--text-secondary);
}

.health-hero-os.tone-success {
  border-color: rgba(16, 185, 129, 0.25);
  background: linear-gradient(135deg, #fff, #effdf6);
}

.health-hero-os.tone-warning {
  border-color: rgba(217, 152, 43, 0.28);
  background: linear-gradient(135deg, #fff, #fff8e8);
}

.health-hero-os.tone-danger {
  border-color: rgba(220, 53, 69, 0.24);
  background: linear-gradient(135deg, #fff, #fff1f3);
}

.health-score-ring {
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 58%, transparent 59%),
    conic-gradient(var(--os-accent) 0 var(--health-score, 78%), var(--ss-slate-200) var(--health-score, 78%) 100%);
  box-shadow: inset 0 0 0 1px var(--border-light);
}

.health-score-ring strong {
  font-size: 34px;
  line-height: 1;
}

.health-score-ring span {
  color: var(--text-secondary);
  font-size: 13px;
}

.os-health-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.health-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 210px;
}

.health-card h2,
.health-card p {
  margin: 0;
}

.health-card strong {
  font-size: 25px;
}

.health-card p:not(.eyebrow) {
  color: var(--text-secondary);
  line-height: 1.45;
}

.health-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ss-success);
}

.health-card.tone-warning .health-dot,
.friendly-action.tone-warning span {
  background: var(--ss-warning);
}

.health-card.tone-danger .health-dot,
.friendly-action.tone-danger span {
  background: var(--ss-danger);
}

.health-card.tone-success {
  border-color: rgba(16, 185, 129, 0.2);
}

.health-card.tone-warning {
  border-color: rgba(217, 152, 43, 0.28);
}

.health-card.tone-danger {
  border-color: rgba(220, 53, 69, 0.24);
}

.os-action-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 18px;
  margin-bottom: 18px;
}

.friendly-action-list {
  display: grid;
  gap: 10px;
}

.friendly-action {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 3px 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--ss-offwhite);
}

.friendly-action span {
  width: 12px;
  height: 12px;
  grid-row: span 2;
  border-radius: 50%;
  background: var(--ss-success);
}

.friendly-action small {
  color: var(--text-secondary);
  line-height: 1.35;
}

.friendly-action em {
  grid-column: 3;
  grid-row: 1 / span 2;
  color: var(--ss-info-dark);
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.helper-card {
  display: grid;
  align-content: start;
  gap: 14px;
}

.helper-card h2 {
  margin: 0;
}

.plain-check-list {
  display: grid;
  gap: 10px;
}

.plain-check-list span {
  display: block;
  color: var(--text-secondary);
  line-height: 1.45;
}

.plain-check-list b {
  color: var(--text-primary);
}

.settings-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.6fr) minmax(260px, 0.6fr);
  gap: 18px;
  margin-bottom: 18px;
}

.settings-hero h2,
.settings-hero p,
.settings-status-card strong,
.settings-status-card small {
  margin: 0;
}

.settings-hero h2 {
  font-size: 24px;
}

.settings-hero p:not(.eyebrow),
.settings-status-card small {
  color: var(--text-secondary);
  line-height: 1.45;
}

.settings-status-card {
  display: grid;
  align-content: start;
  gap: 10px;
}

.settings-status-card strong {
  font-size: 18px;
}

.settings-layout-os {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.settings-panel {
  margin-bottom: 18px;
}

.settings-form {
  display: grid;
  gap: 16px;
}

.settings-form label {
  display: grid;
  gap: 7px;
}

.settings-form label > span {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.settings-form input,
.settings-form select {
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  color: var(--text-primary);
  background: white;
  outline: none;
}

.settings-form small {
  color: var(--text-secondary);
  line-height: 1.4;
}

.settings-group-stack {
  display: grid;
  gap: 16px;
}

.settings-field-group {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--ss-offwhite);
}

.settings-field-group header {
  display: grid;
  gap: 4px;
}

.settings-field-group h3,
.settings-field-group p {
  margin: 0;
}

.settings-field-group h3 {
  font-size: 17px;
}

.settings-field-group p {
  color: var(--text-secondary);
}

.form-grid.three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.settings-workday-task-panel {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #fff 0%, var(--ss-offwhite) 100%);
}

.settings-workday-task-panel > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.settings-workday-task-panel h3,
.settings-workday-task-panel p {
  margin: 0;
}

.settings-workday-task-panel h3 {
  font-size: 17px;
}

.settings-workday-task-panel p {
  color: var(--text-secondary);
  line-height: 1.45;
  max-width: 980px;
}

.settings-workday-task-create,
.settings-task-type-row {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.settings-task-type-list {
  display: grid;
  gap: 10px;
}

.settings-task-type-fields {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(140px, 1fr) 110px minmax(160px, 1fr) minmax(140px, 1fr) 110px;
  gap: 10px;
  align-items: end;
}

.settings-task-type-fields label {
  display: grid;
  gap: 6px;
}

.settings-task-type-fields label > span,
.settings-toggle-line span {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.settings-task-type-fields input,
.settings-task-type-fields select {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0 11px;
  background: #fff;
  color: var(--text-primary);
  outline: none;
}

.settings-task-type-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.settings-toggle-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.settings-toggle-line input {
  width: 18px;
  height: 18px;
  accent-color: var(--ss-pink);
}

.input-with-suffix {
  position: relative;
}

.input-with-suffix input {
  padding-right: 42px;
}

.input-with-suffix em {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-style: normal;
  font-weight: 800;
}

.friendly-info-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.friendly-info-row span,
.settings-password-state {
  display: grid;
  gap: 4px;
  padding: 13px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--ss-offwhite);
  color: var(--text-secondary);
  line-height: 1.35;
}

.friendly-info-row b,
.settings-password-state strong {
  color: var(--text-primary);
}

.settings-password-state small {
  color: var(--text-secondary);
  font-weight: 800;
  text-transform: uppercase;
}

.settings-password-state em {
  color: var(--text-secondary);
  font-style: normal;
  line-height: 1.35;
}

.settings-mail-test-form {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
}

.settings-mail-test-form h3,
.settings-mail-test-form p {
  margin: 0;
}

.settings-mail-test-form h3 {
  font-size: 18px;
}

.settings-mail-test-form p {
  color: var(--text-secondary);
  line-height: 1.45;
}

.settings-mail-test-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.settings-mail-test-result {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #fff, #f8fbfc);
}

.settings-mail-test-result.is-ok {
  border-color: rgba(22, 163, 74, 0.28);
  background: linear-gradient(180deg, #fff, #ecfdf3);
}

.settings-mail-test-result.is-error {
  border-color: rgba(244, 63, 94, 0.28);
  background: linear-gradient(180deg, #fff, #fff1f3);
}

.settings-mail-test-result header {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.settings-mail-test-result ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
  color: var(--text-primary);
}

.settings-mail-test-result details {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
}

.settings-mail-test-result summary {
  cursor: pointer;
  padding: 12px 14px;
  color: var(--text-primary);
  font-weight: 800;
}

.settings-mail-test-result pre {
  max-height: 280px;
  margin: 0;
  overflow: auto;
  padding: 0 14px 14px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

@media (max-width: 760px) {
  .settings-mail-test-row {
    grid-template-columns: 1fr;
  }
}

/* Owner 360 Customer Portal control center */
.owner360-portal-tab {
  align-items: stretch;
  display: inline-flex;
  flex: 0 0 auto;
  min-width: max-content;
  position: relative;
}

.owner360-portal-tab > a {
  padding-right: 6px;
}

.owner360-portal-menu-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: #31465c;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  min-height: 56px;
  padding: 0 9px 0 4px;
}

.owner360-portal-tab.is-active > a,
.owner360-portal-tab.is-active .owner360-portal-menu-toggle {
  border-bottom-color: var(--ss-magenta-500);
  color: var(--ss-magenta-700);
}

.owner360-portal-menu-toggle svg {
  height: 15px;
  transition: transform .18s ease;
  width: 15px;
}

.owner360-portal-menu-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.owner360-portal-menu {
  background: #fff;
  border: 1px solid #dfe7ee;
  border-radius: 12px;
  box-shadow: 0 22px 55px rgba(15, 35, 55, .2);
  display: grid;
  gap: 3px;
  left: var(--owner360-portal-menu-left, 16px);
  max-height: min(72vh, 620px);
  overflow-y: auto;
  padding: 12px;
  position: fixed;
  top: var(--owner360-portal-menu-top, 120px);
  width: min(360px, calc(100vw - 24px));
  z-index: 1200;
}

.owner360-portal-menu[hidden] {
  display: none;
}

.owner360-portal-menu > p {
  color: #66798e;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .09em;
  margin: 8px 9px 3px;
}

.owner360-tabs .owner360-portal-menu a {
  align-items: center;
  border: 0;
  border-radius: 9px;
  color: #263b50;
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 11px;
  grid-template-columns: 36px minmax(0, 1fr);
  min-height: 0;
  min-width: 0;
  padding: 10px;
  text-decoration: none;
  white-space: normal;
}

.owner360-tabs .owner360-portal-menu a:hover,
.owner360-tabs .owner360-portal-menu a:focus-visible,
.owner360-tabs .owner360-portal-menu a.is-current {
  background: #fff0fb;
  color: #b522a8;
  outline: 0;
}

.owner360-portal-menu a > span:first-child {
  align-items: center;
  background: #f6f1fa;
  border-radius: 8px;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.owner360-portal-menu a > span:first-child svg {
  height: 17px;
  width: 17px;
}

.owner360-portal-menu a > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.owner360-portal-menu a strong {
  color: inherit;
  font-size: 13px;
  font-weight: 950;
}

.owner360-portal-menu a small {
  color: #6c7d90;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.owner360-portal-page-head {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.owner360-portal-page-head h2 {
  color: #102033;
  font-size: 28px;
  line-height: 1.1;
  margin: 3px 0 7px;
}

.owner360-portal-page-head > div > p:last-child {
  color: #607286;
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

.owner360-portal-eyebrow {
  color: #c128b6;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  margin: 0;
  text-transform: uppercase;
}

.owner360-portal-kpis {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.owner360-portal-overview-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr) minmax(250px, .72fr);
}

.owner360-portal-overview-grid .owner360-span-2 {
  grid-column: span 2;
}

.owner360-portal-inline-link {
  align-items: center;
  color: #b522a8;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  gap: 7px;
  margin-top: 16px;
  text-decoration: none;
}

.owner360-portal-inline-link svg {
  height: 16px;
  width: 16px;
}

.owner360-portal-attention-list {
  display: grid;
  gap: 5px;
}

.owner360-portal-attention-list a {
  align-items: center;
  border-bottom: 1px solid #edf1f5;
  color: #102033;
  display: grid;
  gap: 10px;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  padding: 10px 0;
  text-decoration: none;
}

.owner360-portal-attention-list a > span {
  align-items: center;
  background: #fff1e7;
  border-radius: 8px;
  color: #cf6519;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.owner360-portal-attention-list a > span svg,
.owner360-portal-attention-list a > svg {
  height: 16px;
  width: 16px;
}

.owner360-portal-attention-list div {
  display: grid;
  gap: 3px;
}

.owner360-portal-attention-list strong {
  font-size: 13px;
}

.owner360-portal-attention-list small {
  color: #6b7c8f;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.owner360-portal-module-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.owner360-portal-module-grid .owner360-module.is-inactive {
  background: #fafcfd;
  opacity: .75;
}

.owner360-portal-module-card-grid {
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.owner360-portal-module-card {
  background: #fff;
  border: 1px solid #e3eaf0;
  border-radius: 10px;
  display: grid;
  gap: 12px;
  min-height: 142px;
  padding: 14px;
}

.owner360-portal-module-card.is-override {
  background: linear-gradient(145deg, #fff 35%, #fff4fd);
  border-color: #e8c6e5;
}

.owner360-portal-module-card.is-inactive {
  background: #fafcfd;
}

.owner360-portal-module-card-head {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
}

.owner360-portal-module-icon {
  align-items: center;
  background: #f7effa;
  border-radius: 8px;
  color: #ae29a4;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.owner360-portal-module-card.is-active .owner360-portal-module-icon {
  background: #ebf9f3;
  color: #14875b;
}

.owner360-portal-module-card.is-inactive .owner360-portal-module-icon {
  background: #f0f3f6;
  color: #74869a;
}

.owner360-portal-module-icon svg,
.owner360-portal-module-more svg {
  height: 17px;
  width: 17px;
}

.owner360-portal-module-card-head > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.owner360-portal-module-card-head strong {
  color: #102033;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.owner360-portal-module-card-head small {
  color: #6e8093;
  font-size: 11px;
  font-weight: 800;
}

.owner360-portal-module-more {
  color: #718398;
  line-height: 0;
  padding-top: 3px;
}

.owner360-portal-module-card-status {
  display: flex;
}

.owner360-portal-module-status {
  background: #e7f8ef;
  border-radius: 999px;
  color: #087c50;
  display: inline-flex;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  padding: 6px 9px;
}

.owner360-portal-module-card.is-override .owner360-portal-module-status {
  background: #f4e4fb;
  color: #8b2caf;
}

.owner360-portal-module-card.is-inactive .owner360-portal-module-status {
  background: #f5e8e8;
  color: #a94c4c;
}

.owner360-portal-module-card dl {
  display: grid;
  gap: 4px;
  margin: auto 0 0;
}

.owner360-portal-module-card dl > div {
  align-items: baseline;
  display: flex;
  gap: 5px;
}

.owner360-portal-module-card dt,
.owner360-portal-module-card dd {
  color: #66798d;
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
  line-height: 1.35;
  margin: 0;
}

.owner360-portal-module-card dt::after {
  content: ":";
}

.owner360-portal-module-card dd {
  color: #41566d;
  font-weight: 900;
}

.owner360-portal-single-field {
  grid-template-columns: 1fr;
}

.owner360-portal-action-divider {
  border-top: 1px solid #e7edf3;
  margin-top: 18px;
  padding-top: 18px;
}

.owner360-table-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.owner360-table-actions form {
  margin: 0;
}

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

.owner360-portal-effective-access {
  overflow: hidden;
}

.owner360-portal-access-equation {
  align-items: stretch;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr) 22px minmax(0, 1fr) 22px minmax(0, 1fr);
}

.owner360-portal-access-equation > div {
  background: #faf8ff;
  border: 1px solid #e5ddf3;
  border-radius: 10px;
  display: grid;
  gap: 6px;
  min-height: 100px;
  min-width: 0;
  padding: 16px;
}

.owner360-portal-access-equation > div.is-temporary {
  background: #fffbf2;
  border-color: #f0dfb9;
}

.owner360-portal-access-equation > div.is-overrides {
  background: #f1fbf7;
  border-color: #ccebdd;
}

.owner360-portal-access-equation > div.is-result {
  background: #fff0fb;
  border-color: #f0c9eb;
}

.owner360-portal-access-equation > b {
  align-self: center;
  color: #75869a;
  font-size: 21px;
  text-align: center;
}

.owner360-portal-access-equation small {
  color: #6c50a0;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .02em;
}

.owner360-portal-access-equation strong {
  color: #102033;
  font-size: 16px;
  line-height: 1.25;
}

.owner360-portal-access-equation em {
  color: #6c7e91;
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
  line-height: 1.35;
}

.owner360-portal-active-override-chips {
  align-items: center;
  border-top: 1px solid #edf1f5;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 16px;
  padding-top: 14px;
}

.owner360-portal-active-override-chips > strong {
  color: #4d6176;
  font-size: 11px;
  font-weight: 950;
}

.owner360-portal-active-override-chips > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.owner360-portal-active-override-chips span {
  align-items: center;
  background: #f7ebfb;
  border: 1px solid #ebd3f1;
  border-radius: 999px;
  color: #712486;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  gap: 7px;
  min-height: 28px;
  padding: 5px 10px;
}

.owner360-portal-active-override-chips span.is-deny {
  background: #fff3ef;
  border-color: #f4d8ce;
  color: #a14e37;
}

.owner360-portal-active-override-chips small {
  color: inherit;
  font-size: 10px;
  opacity: .72;
}

.owner360-portal-modules-layout {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) 250px;
}

.owner360-portal-module-groups {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.owner360-portal-module-group {
  padding: 14px;
}

.owner360-portal-module-group-head {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.owner360-portal-module-group-head > div {
  align-items: baseline;
  display: flex;
  gap: 9px;
}

.owner360-portal-module-group-head h3 {
  color: #263a50;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  margin: 0;
}

.owner360-portal-module-group-head span,
.owner360-portal-module-group-head p {
  color: #708196;
  font-size: 11px;
  font-weight: 750;
  margin: 0;
}

.owner360-portal-modules-aside {
  padding: 0;
  position: sticky;
  top: 18px;
}

.owner360-portal-modules-aside > section,
.owner360-portal-modules-aside > nav {
  padding: 16px;
}

.owner360-portal-modules-aside > nav {
  border-top: 1px solid #e7edf3;
}

.owner360-portal-quick-status {
  display: grid;
  gap: 4px;
  margin: 12px 0 0;
}

.owner360-portal-quick-status > div {
  align-items: center;
  display: grid;
  gap: 2px 9px;
  grid-template-columns: 32px minmax(0, 1fr);
  padding: 8px 0;
}

.owner360-portal-quick-status span {
  align-items: center;
  background: #f5eff9;
  border-radius: 8px;
  color: #a82a9e;
  display: inline-flex;
  grid-row: span 2;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.owner360-portal-quick-status svg {
  height: 16px;
  width: 16px;
}

.owner360-portal-quick-status dt,
.owner360-portal-quick-status dd {
  margin: 0;
}

.owner360-portal-quick-status dt {
  color: #718297;
  font-size: 10px;
  font-weight: 850;
}

.owner360-portal-quick-status dd {
  color: #102033;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.3;
}

.owner360-portal-modules-aside nav {
  display: grid;
  gap: 3px;
}

.owner360-portal-modules-aside nav > p {
  margin-bottom: 9px;
}

.owner360-portal-modules-aside nav a {
  align-items: center;
  border-radius: 8px;
  color: #435a70;
  display: grid;
  font-size: 11px;
  font-weight: 850;
  gap: 8px;
  grid-template-columns: 18px minmax(0, 1fr) 14px;
  padding: 9px 7px;
  text-decoration: none;
}

.owner360-portal-modules-aside nav a:hover,
.owner360-portal-modules-aside nav a:focus-visible {
  background: #fff0fb;
  color: #a9279f;
  outline: 0;
}

.owner360-portal-modules-aside nav svg {
  height: 14px;
  width: 14px;
}

.owner360-portal-active-access-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.owner360-portal-active-access-grid > section {
  min-width: 0;
}

.owner360-portal-active-access-grid h4 {
  color: #263a50;
  font-size: 12px;
  font-weight: 950;
  margin: 0 0 10px;
}

.owner360-portal-dialog {
  background: #fff;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(8, 25, 43, .28);
  color: #102033;
  max-height: min(90vh, 780px);
  max-width: min(760px, calc(100vw - 28px));
  overflow: auto;
  padding: 0;
  width: 100%;
}

.owner360-portal-dialog::backdrop {
  background: rgba(7, 24, 40, .58);
  backdrop-filter: blur(2px);
}

.owner360-portal-dialog > form {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.owner360-portal-dialog header,
.owner360-portal-dialog footer {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.owner360-portal-dialog header h3 {
  font-size: 22px;
  margin: 3px 0 5px;
}

.owner360-portal-dialog header p:last-child {
  color: #65778b;
  font-size: 13px;
  margin: 0;
}

.owner360-portal-dialog footer {
  border-top: 1px solid #e7edf3;
  justify-content: flex-end;
  padding-top: 18px;
}

.owner360-portal-billing-kpis,
.owner360-portal-performance-kpis {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.owner360-portal-filter-chips {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.owner360-portal-filter-chips a {
  background: #f5f8fb;
  border: 1px solid #e4ebf1;
  border-radius: 999px;
  color: #506579;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 13px;
  text-decoration: none;
}

.owner360-portal-filter-chips a.is-active {
  background: #102842;
  border-color: #102842;
  color: #fff;
}

.owner360-portal-activity-list strong .status-pill {
  margin-left: 5px;
}

.owner360-portal-settings-section + .owner360-portal-settings-section {
  border-top: 1px solid #e7edf3;
  padding-top: 18px;
}

.owner360-portal-settings-section h4 {
  color: #102033;
  font-size: 15px;
  margin: 0 0 12px;
}

.owner360-portal-note-field {
  display: grid;
  gap: 7px;
}

.owner360-portal-note-field > span {
  color: #102033;
  font-size: 12px;
  font-weight: 950;
}

.owner360-portal-note-field textarea {
  border: 1px solid #d7e2ec;
  border-radius: 8px;
  color: #102033;
  font: inherit;
  font-size: 13px;
  min-height: 110px;
  padding: 12px;
  resize: vertical;
}

.owner360-portal-settings-save {
  align-items: center;
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid #e5ebf1;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  margin: 0 -18px -18px;
  padding: 14px 18px;
  position: sticky;
  z-index: 3;
}

@media (max-width: 1500px) {
  .owner360-portal-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .owner360-portal-module-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1360px) {
  .owner360-portal-modules-layout {
    grid-template-columns: 1fr;
  }

  .owner360-portal-modules-aside {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: static;
  }

  .owner360-portal-modules-aside > nav {
    border-left: 1px solid #e7edf3;
    border-top: 0;
  }
}

@media (max-width: 1180px) {
  .owner360-portal-overview-grid,
  .owner360-grid-2 {
    grid-template-columns: 1fr;
  }

  .owner360-portal-overview-grid .owner360-span-2 {
    grid-column: auto;
  }

  .owner360-portal-access-equation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .owner360-portal-access-equation > b {
    display: none;
  }

  .owner360-portal-active-access-grid {
    grid-template-columns: 1fr;
  }

  .owner360-portal-billing-kpis,
  .owner360-portal-performance-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .owner360-portal-page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .owner360-portal-page-head h2 {
    font-size: 24px;
  }

  .owner360-portal-modules-head-actions {
    align-items: stretch;
    display: grid;
    width: 100%;
  }

  .owner360-portal-modules-head-actions .btn {
    justify-content: center;
    width: 100%;
  }

  .owner360-portal-kpis,
  .owner360-portal-billing-kpis,
  .owner360-portal-performance-kpis,
  .owner360-portal-module-grid,
  .owner360-portal-module-card-grid,
  .owner360-portal-access-equation {
    grid-template-columns: 1fr;
  }

  .owner360-portal-modules-aside {
    grid-template-columns: 1fr;
  }

  .owner360-portal-modules-aside > nav {
    border-left: 0;
    border-top: 1px solid #e7edf3;
  }

  .owner360-portal-module-group-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .owner360-portal-active-override-chips {
    align-items: flex-start;
    flex-direction: column;
  }

  .owner360-portal-dialog > form {
    padding: 17px;
  }

  .owner360-portal-dialog footer {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .owner360-portal-dialog footer .btn {
    width: 100%;
  }

  .owner360-portal-menu {
    left: 12px !important;
    max-height: calc(100vh - 120px);
    right: 12px;
    width: auto;
  }
}

.settings-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.settings-category-card {
  min-height: 172px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--module-wis);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
  background: white;
  box-shadow: var(--shadow-sm);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.settings-category-card:hover,
.settings-category-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.settings-category-card > span {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--module-wis);
  background: var(--ss-mint-50);
}

.settings-category-card.pi {
  border-top-color: var(--module-pi);
}

.settings-category-card.pi > span {
  color: var(--module-pi);
  background: var(--ss-pink-50);
}

.settings-category-card.workday {
  border-top-color: var(--module-workday);
}

.settings-category-card.workday > span {
  color: var(--module-workday);
  background: var(--ss-amber-50);
}

.settings-category-card.csp {
  border-top-color: var(--module-csp);
}

.settings-category-card.csp > span {
  color: var(--module-csp);
  background: var(--ss-blue-50);
}

.settings-category-card strong {
  font-size: 20px;
}

.settings-category-card small {
  min-height: 44px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.settings-category-card em {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ss-blue-700);
  font-style: normal;
  font-weight: 900;
}

.csp-action-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 18px;
}

.csp-action-grid .settings-category-card {
  min-height: 190px;
  padding: 20px;
}

.csp-admin-body .page-heading {
  display: none;
}

.csp-admin-body .content {
  padding-top: 30px;
}

.csp-admin-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin: 0 0 22px;
}

.csp-admin-title {
  min-width: 0;
}

.csp-admin-title p {
  margin: 0 0 6px;
  color: var(--os-accent);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.csp-admin-title h1 {
  margin: 0;
  color: #111827;
  font-size: 44px;
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: 0;
}

.csp-admin-title span {
  display: block;
  margin-top: 10px;
  color: #667085;
  font-size: 15px;
  line-height: 1.45;
}

.csp-admin-invite {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, var(--ss-magenta-700), var(--ss-magenta-500));
  box-shadow: 0 16px 34px rgba(217, 87, 204, 0.24);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.csp-admin-invite:hover,
.csp-admin-invite:focus-visible {
  color: white;
  filter: brightness(1.03);
  outline: 3px solid rgba(217, 87, 204, 0.16);
}

.csp-admin-invite svg {
  width: 22px;
  height: 22px;
}

.csp-admin-tabs {
  min-height: 54px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0 22px;
  margin: 0 0 24px;
  padding: 0 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  background: white;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.06);
  overflow-x: auto;
  scrollbar-width: thin;
}

.csp-admin-tabs a {
  position: relative;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: #111827;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.csp-admin-tabs a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 2px;
  border-radius: 999px;
  background: transparent;
}

.csp-admin-tabs a.is-active {
  color: var(--os-accent);
}

.csp-admin-tabs a.is-active::after {
  background: var(--os-accent);
}

.csp-overview-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 24px;
}

.csp-overview-metric {
  min-height: 126px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px 18px 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  color: #111827;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.csp-overview-metric:hover,
.csp-overview-metric:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(217, 87, 204, 0.24);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
  outline: 0;
}

.csp-overview-metric-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
}

.csp-overview-metric-icon svg {
  width: 23px;
  height: 23px;
}

.csp-overview-metric-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.csp-overview-metric-copy > span {
  min-height: 18px;
  color: #657085;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
}

.csp-overview-metric-copy strong {
  color: #111827;
  font-size: 30px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
}

.csp-overview-metric-copy small {
  min-height: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
}

.csp-overview-metric-copy small b {
  min-width: 0;
  color: inherit;
  font-weight: 500;
}

.csp-overview-metric-copy small svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: #16a875;
}

.csp-overview-metric-copy small.trend-down svg {
  color: var(--ss-danger);
}

.csp-overview-metric-copy small em,
.csp-overview-metric-copy small i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  font-style: normal;
  line-height: 8px;
}

.csp-overview-metric-copy small em {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f97316;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
}

.csp-overview-metric-copy small i {
  background: #c15cff;
}

.csp-overview-metric.teal .csp-overview-metric-icon {
  color: #00a99d;
  background: #dff9f6;
}

.csp-overview-metric.orange .csp-overview-metric-icon {
  color: #f97316;
  background: #fff0e3;
}

.csp-overview-metric.purple .csp-overview-metric-icon {
  color: #a855f7;
  background: #f4e8ff;
}

.csp-overview-metric.pink .csp-overview-metric-icon {
  color: #e83eaa;
  background: #ffe7f7;
}

.csp-overview-metric.green .csp-overview-metric-icon {
  color: #10b981;
  background: #e0faee;
}

.csp-overview-metric.blue .csp-overview-metric-icon {
  color: #3b82f6;
  background: #e8f0ff;
}

.csp-overview-metric.pink .csp-overview-metric-copy small {
  color: #e83eaa;
}

.csp-command-strip {
  display: grid;
  grid-template-columns: minmax(360px, 1.18fr) minmax(340px, 1.02fr) minmax(260px, 0.74fr) minmax(230px, 0.68fr);
  gap: 14px;
  margin: 0 0 24px;
  align-items: stretch;
}

.csp-command-card {
  min-height: 292px;
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.csp-command-users {
  grid-template-columns: minmax(120px, 0.62fr) minmax(0, 1fr);
}

.csp-command-intro,
.csp-command-main,
.csp-command-card {
  min-width: 0;
}

.csp-command-intro {
  display: grid;
  align-content: start;
  gap: 11px;
}

.csp-command-main {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  padding-left: 20px;
  border-left: 1px solid rgba(15, 23, 42, 0.08);
}

.csp-command-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.csp-command-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
}

.csp-command-icon svg {
  width: 23px;
  height: 23px;
}

.csp-command-icon.teal {
  color: #00a99d;
  background: #dff9f6;
}

.csp-command-icon.purple {
  color: #a855f7;
  background: #f4e8ff;
}

.csp-command-icon.green {
  color: #10b981;
  background: #e0faee;
}

.csp-command-icon.pink {
  color: #e83eaa;
  background: #ffe7f7;
}

.csp-command-card h2,
.csp-command-card h3,
.csp-command-card p,
.csp-command-card dl {
  margin: 0;
}

.csp-command-card h2 {
  color: #111827;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: 0;
}

.csp-command-card h3 {
  color: #111827;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 950;
}

.csp-command-card p,
.csp-command-card small {
  color: #657085;
  font-size: 13px;
  line-height: 1.35;
}

.csp-command-user-list,
.csp-command-campaign-list,
.csp-priority-list {
  display: grid;
}

.csp-command-user-list a,
.csp-command-campaign-list a {
  min-width: 0;
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  color: #111827;
}

.csp-command-user-list a {
  grid-template-columns: minmax(0, 1fr) auto;
}

.csp-command-user-list a:first-child,
.csp-command-campaign-list a:first-child {
  border-top: 0;
  padding-top: 4px;
}

.csp-command-user-list strong,
.csp-command-campaign-list strong {
  display: block;
  overflow: hidden;
  color: #111827;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.csp-command-user-list small,
.csp-command-campaign-list small {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 2px;
}

.csp-command-user-list b {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.csp-command-main > p {
  padding-top: 4px;
  font-weight: 500;
}

.csp-command-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  align-self: end;
  width: fit-content;
  padding: 0 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  color: #344054;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.csp-command-button:hover,
.csp-command-button:focus-visible {
  color: var(--os-accent-dark);
  border-color: rgba(217, 87, 204, 0.28);
  outline: 0;
}

.csp-command-button svg {
  width: 17px;
  height: 17px;
}

.csp-forecast-mini {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 16px;
  align-items: stretch;
}

.csp-forecast-mini-chart {
  min-width: 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
}

.csp-forecast-axis {
  display: grid;
  align-content: space-between;
  padding: 4px 0 22px;
}

.csp-forecast-axis span {
  color: #657085;
  font-size: 12px;
  font-weight: 800;
}

.csp-forecast-plot {
  position: relative;
  min-height: 156px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.csp-forecast-plot::before,
.csp-forecast-plot::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(15, 23, 42, 0.06);
}

.csp-forecast-plot::before {
  top: 33%;
}

.csp-forecast-plot::after {
  top: 66%;
}

.csp-forecast-plot svg {
  position: absolute;
  left: 0;
  right: 0;
  top: 4px;
  bottom: 24px;
  z-index: 2;
  width: 100%;
  height: calc(100% - 28px);
  overflow: visible;
}

.csp-forecast-plot polyline {
  fill: none;
  stroke: #c15cff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.csp-forecast-bars {
  position: absolute;
  inset: 4px 0 0;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  align-items: end;
}

.csp-forecast-bars span {
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr 22px;
  justify-items: center;
  align-items: end;
}

.csp-forecast-bars i {
  width: min(18px, 78%);
  height: var(--bar-height);
  min-height: 4px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, rgba(193, 92, 255, 0.3), rgba(193, 92, 255, 0.12));
}

.csp-forecast-bars b {
  color: #657085;
  font-size: 12px;
  line-height: 22px;
  font-weight: 850;
}

.csp-forecast-mini dl {
  display: grid;
  align-content: space-between;
  padding-left: 14px;
  border-left: 1px solid rgba(15, 23, 42, 0.08);
}

.csp-forecast-mini dt {
  color: #657085;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 500;
}

.csp-forecast-mini dd {
  margin: 4px 0 0;
  color: #111827;
  font-size: 18px;
  line-height: 1;
  font-weight: 500;
}

.csp-forecast-mini dl div:nth-child(2) dd {
  color: #c15cff;
}

.csp-forecast-mini dl div:nth-child(3) dd {
  color: #10b981;
}

.csp-command-campaign-list a {
  grid-template-columns: 48px minmax(0, 1fr);
}

.csp-campaign-date {
  display: grid;
  justify-items: center;
  gap: 2px;
}

.csp-campaign-date b {
  color: #111827;
  font-size: 18px;
  line-height: 1;
  font-weight: 950;
}

.csp-campaign-date small {
  color: #657085;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.csp-command-campaign-list i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #10b981;
}

.csp-priority-list {
  gap: 10px;
}

.csp-priority-list a {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
  font-size: 13px;
  font-weight: 950;
}

.csp-priority-list b {
  font-weight: 950;
}

.csp-priority-list .high {
  color: #e83eaa;
}

.csp-priority-list .normal {
  color: #f97316;
}

.csp-priority-list .low {
  color: #10b981;
}

.csp-command-empty {
  min-height: 78px;
  display: grid;
  place-items: center;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  color: #657085;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.csp-dialog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 24px;
}

.csp-dialog-card {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.csp-dialog-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.csp-dialog-card-header > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.csp-dialog-title-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
}

.csp-dialog-title-icon svg {
  width: 19px;
  height: 19px;
}

.csp-dialog-card h2,
.csp-dialog-card p {
  margin: 0;
}

.csp-dialog-card h2 {
  color: #111827;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 950;
  letter-spacing: 0;
}

.csp-dialog-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0 16px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 8px;
  color: #344054;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
  font-size: 12px;
  font-weight: 950;
}

.csp-dialog-table-wrap {
  min-width: 0;
  overflow-x: auto;
}

.csp-dialog-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.csp-dialog-table th,
.csp-dialog-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  color: #667085;
  font-size: 13px;
  line-height: 1.25;
  text-align: left;
  white-space: nowrap;
}

.csp-dialog-table th {
  color: #64748b;
  font-size: 11px;
  font-weight: 550;
  text-transform: uppercase;
}

.csp-dialog-table td {
  font-weight: 750;
}

.csp-dialog-table td strong {
  display: block;
  max-width: 190px;
  overflow: hidden;
  color: #111827;
  font-weight: 950;
  text-overflow: ellipsis;
}

.csp-dialog-table .status-pill {
  min-width: 74px;
  justify-content: center;
  padding: 6px 10px;
  font-size: 12px;
}

.csp-dialog-more {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
}

.csp-dialog-more svg {
  width: 17px;
  height: 17px;
}

.csp-dialog-card > p {
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
}

.csp-dialog-empty {
  min-height: 72px;
  display: grid;
  place-items: center;
  color: #64748b;
  font-weight: 850;
  text-align: center;
}

.csp-support-nav {
  display: flex;
  gap: 6px 18px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 18px;
  padding: 0 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
}

.csp-support-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 12px;
  border-bottom: 3px solid transparent;
  color: var(--text-primary);
  font-weight: 900;
}

.csp-support-nav a.active {
  border-bottom-color: var(--os-accent);
  color: var(--os-accent-dark);
}

.csp-portal-tabs a {
  gap: 8px;
}

.csp-portal-tabs svg {
  width: 18px;
  height: 18px;
}

.csp-portal-panel .card-header p {
  max-width: 860px;
  margin: 5px 0 0;
  color: var(--text-secondary);
}

.csp-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.csp-row-actions .inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.csp-portal-panel .muted {
  display: block;
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}

.csp-confirm-dialog .os-dialog-detail-header {
  margin-bottom: 14px;
}

.csp-delete-form {
  display: grid;
  gap: 16px;
}

.csp-delete-form label {
  display: grid;
  gap: 8px;
}

.csp-delete-form label > span {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.csp-delete-form input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: white;
}

.csp-impact-list {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 14px 16px 14px 34px;
  border: 1px solid rgba(220, 53, 69, 0.18);
  border-radius: var(--radius-sm);
  color: var(--ss-danger-dark);
  background: var(--ss-danger-bg);
  font-weight: 700;
}

.csp-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.csp-settings-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.csp-settings-note {
  margin-top: 18px;
}

.csp-campaign-board {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.csp-campaign-admin-layout.has-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 18px;
  align-items: start;
}

.csp-campaign-admin-layout.has-detail .csp-campaign-board {
  min-width: 0;
}

.csp-campaign-main-stack {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.csp-campaign-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.csp-campaign-kpi-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  min-height: 146px;
  padding: 24px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.csp-campaign-kpi-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 12px;
  color: #fff;
  box-shadow: 0 18px 32px rgba(217, 70, 239, 0.18);
}

.csp-campaign-kpi-card.purple .csp-campaign-kpi-icon {
  background: linear-gradient(135deg, #8b5cf6, #d946ef);
}

.csp-campaign-kpi-card.pink .csp-campaign-kpi-icon {
  background: linear-gradient(135deg, #ec4899, #f43f5e);
}

.csp-campaign-kpi-card.violet .csp-campaign-kpi-icon {
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
}

.csp-campaign-kpi-card.rose .csp-campaign-kpi-icon {
  background: linear-gradient(135deg, #e11d48, #ec4899);
}

.csp-campaign-kpi-icon svg {
  width: 28px;
  height: 28px;
}

.csp-campaign-kpi-card div {
  display: grid;
  gap: 4px;
}

.csp-campaign-kpi-card span {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
}

.csp-campaign-kpi-card strong {
  color: var(--text-primary);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.05;
}

.csp-campaign-kpi-card small {
  color: var(--text-secondary);
  font-size: 14px;
}

.csp-campaign-kpi-card em {
  margin-top: 14px;
  color: #059669;
  font-style: normal;
  font-size: 14px;
  font-weight: 400;
}

.csp-campaign-detail-panel {
  position: sticky;
  top: 92px;
  z-index: 5;
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.csp-campaign-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.csp-campaign-detail-head h2 {
  margin: 0 0 10px;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
}

.csp-campaign-detail-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: #fff;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 24px;
  line-height: 1;
}

.csp-campaign-detail-identity {
  display: grid;
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
}

.csp-campaign-detail-identity strong {
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.15;
}

.csp-campaign-detail-identity span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-weight: 400;
}

.csp-campaign-detail-identity svg {
  width: 18px;
  height: 18px;
}

.csp-campaign-detail-list {
  display: grid;
}

.csp-campaign-detail-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-weight: 400;
}

.csp-campaign-detail-row svg {
  width: 18px;
  height: 18px;
  color: #64748b;
}

.csp-campaign-detail-row strong {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  text-align: right;
}

.csp-campaign-detail-form {
  display: grid;
  gap: 14px;
}

.csp-campaign-detail-form label {
  display: grid;
  gap: 8px;
  color: var(--text-secondary);
  font-weight: 400;
}

.csp-campaign-detail-form select,
.csp-campaign-detail-form textarea {
  width: 100%;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: #fff;
  color: var(--text-primary);
  font: inherit;
  font-weight: 400;
}

.csp-campaign-detail-form select {
  position: relative;
  z-index: 6;
  min-height: 44px;
  padding: 0 12px;
  cursor: pointer;
  pointer-events: auto;
}

.csp-campaign-detail-form textarea {
  min-height: 120px;
  padding: 12px;
  resize: vertical;
}

.csp-risk-picker {
  position: relative;
  z-index: 8;
}

.csp-risk-picker-toggle,
.csp-risk-picker-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--border-light);
  background: #fff;
  color: var(--text-primary);
  font: inherit;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
}

.csp-risk-picker-toggle {
  min-height: 46px;
  padding: 0 12px;
  border-radius: 10px;
}

.csp-risk-picker-toggle svg {
  width: 17px;
  height: 17px;
  color: #64748b;
}

.csp-risk-picker-toggle span,
.csp-risk-picker-option span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.csp-risk-picker-toggle i,
.csp-risk-picker-option i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.csp-risk-picker-toggle.low,
.csp-risk-picker-option.low {
  background: #effaf5;
}

.csp-risk-picker-toggle.medium,
.csp-risk-picker-option.medium {
  background: #fff7ed;
}

.csp-risk-picker-toggle.high,
.csp-risk-picker-option.high {
  background: #fff1f8;
}

.csp-risk-picker-toggle.low i,
.csp-risk-picker-option.low i {
  background: #34d399;
}

.csp-risk-picker-toggle.medium i,
.csp-risk-picker-option.medium i {
  background: #f59e0b;
}

.csp-risk-picker-toggle.high i,
.csp-risk-picker-option.high i {
  background: #ec4899;
}

.csp-risk-picker-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.csp-risk-picker-option {
  min-height: 38px;
  padding: 0 10px;
  border-radius: 9px;
}

.csp-risk-picker-option.is-selected {
  border-color: rgba(217, 70, 239, 0.38);
  box-shadow: inset 0 0 0 1px rgba(217, 70, 239, 0.2);
}

.csp-campaign-note-box {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.78);
}

.csp-campaign-note-box span {
  color: var(--text-secondary);
  font-weight: 400;
}

.csp-campaign-note-box p {
  margin: 0;
  color: var(--text-primary);
  line-height: 1.45;
}

.csp-campaign-note-box.muted {
  background: #fff;
}

.csp-campaign-detail-panel .csp-campaign-risk,
.csp-campaign-detail-form .btn {
  font-weight: 400;
}

@media (max-width: 1280px) {
  .csp-campaign-admin-layout.has-detail {
    grid-template-columns: 1fr;
  }

  .csp-campaign-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .csp-campaign-detail-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .csp-campaign-kpis {
    grid-template-columns: 1fr;
  }
}

.performance-log-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.performance-log-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 16px 16px;
}

.performance-log-summary > div {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--ss-offwhite);
}

.performance-log-summary span {
  color: var(--text-secondary);
  font-size: 12px;
}

.performance-log-summary strong {
  font-size: 18px;
}

.performance-log-table td {
  vertical-align: top;
}

.performance-log-table td > code:not(.performance-log-query) {
  white-space: nowrap;
}

.performance-log-query {
  display: block;
  min-width: 280px;
  max-width: 520px;
  white-space: normal;
  overflow-wrap: anywhere;
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .performance-log-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.csp-campaign-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 1180px;
}

.csp-campaign-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.csp-campaign-title h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 20px;
  letter-spacing: 0;
}

.csp-campaign-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--text-secondary);
}

.csp-campaign-info svg {
  width: 18px;
  height: 18px;
}

.csp-campaign-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.csp-campaign-icon-btn,
.csp-campaign-select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: #fff;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.csp-campaign-icon-btn {
  width: 42px;
  padding: 0;
  font-size: 22px;
}

.csp-campaign-select {
  gap: 10px;
  padding: 0 14px;
  font-size: 14px;
}

.csp-campaign-icon-btn svg,
.csp-campaign-select svg {
  width: 17px;
  height: 17px;
}

.csp-campaign-timeline {
  min-width: 1180px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(226, 232, 240, 0.7) 1px, transparent 1px) 220px 0 / calc((100% - 220px) / var(--campaign-weeks)) 100%,
    #fff;
}

.csp-campaign-load-row,
.csp-campaign-week-header,
.csp-campaign-row {
  display: grid;
  grid-template-columns: 220px repeat(var(--campaign-weeks), minmax(76px, 1fr));
}

.csp-campaign-load-row {
  min-height: 76px;
  border-bottom: 1px solid var(--border-light);
}

.csp-campaign-load-label {
  display: flex;
  align-items: center;
  padding: 16px;
  border-right: 1px solid var(--border-light);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.csp-campaign-load-cell {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  min-width: 0;
  border-right: 1px solid rgba(226, 232, 240, 0.75);
  color: var(--text-primary);
}

.csp-campaign-load-cell span {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 900;
}

.csp-campaign-load-cell strong {
  width: 100%;
  padding: 7px 6px;
  text-align: center;
  font-size: 14px;
}

.csp-campaign-load-cell.high strong {
  background: linear-gradient(90deg, #fff1f8, #fbcfe8);
}

.csp-campaign-load-cell.medium strong {
  background: linear-gradient(90deg, #fff7ed, #fed7aa);
}

.csp-campaign-load-cell.low strong {
  background: linear-gradient(90deg, #f0fdf4, #bbf7d0);
}

.csp-campaign-week-header {
  min-height: 48px;
  border-bottom: 1px solid var(--border-light);
  background: rgba(248, 250, 252, 0.82);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 900;
}

.csp-campaign-week-header > div {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  border-right: 1px solid rgba(226, 232, 240, 0.75);
}

.csp-campaign-week-header .csp-campaign-customer-head {
  justify-content: flex-start;
  padding: 0 16px;
  color: var(--text-primary);
}

.csp-campaign-row {
  position: relative;
  min-height: 56px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.csp-campaign-row:last-of-type {
  border-bottom: 0;
}

.csp-campaign-customer {
  z-index: 2;
  grid-row: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border-right: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text-primary);
}

.csp-campaign-customer strong {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.csp-campaign-chevron {
  color: var(--text-secondary);
  font-size: 20px;
  line-height: 1;
}

.csp-campaign-risk {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.csp-campaign-risk.high {
  background: #fff1f8;
  color: #c02668;
}

.csp-campaign-risk.medium {
  background: #fff7ed;
  color: #b45309;
}

.csp-campaign-risk.low {
  background: #ecfdf5;
  color: #047857;
}

.csp-campaign-risk.planned {
  background: #f8f3ff;
  color: #7c3aed;
}

.csp-campaign-week-cell {
  grid-row: 1;
  min-width: 0;
  border-right: 1px solid rgba(226, 232, 240, 0.55);
}

.csp-campaign-bar {
  z-index: 3;
  grid-row: 1;
  align-self: center;
  display: grid;
  gap: 1px;
  min-height: 36px;
  margin: 9px 5px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text-primary);
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.csp-campaign-bar strong,
.csp-campaign-bar span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.csp-campaign-bar strong {
  font-size: 12px;
  font-weight: 900;
}

.csp-campaign-bar span {
  color: rgba(51, 65, 85, 0.84);
  font-size: 11px;
  font-weight: 800;
}

.csp-campaign-bar.planned {
  border-color: #e9d5ff;
  background: #faf5ff;
}

.csp-campaign-bar.high {
  border-color: #fbcfe8;
  background: #fff1f8;
}

.csp-campaign-bar.medium {
  border-color: #fed7aa;
  background: #fff7ed;
}

.csp-campaign-bar.low {
  border-color: #bbf7d0;
  background: #effaf5;
}

.csp-campaign-bar.is-selected {
  outline: 2px solid rgba(217, 70, 239, 0.35);
  outline-offset: 2px;
}

.csp-campaign-empty {
  padding: 34px 18px;
  color: var(--text-secondary);
  text-align: center;
  font-weight: 900;
}

.csp-campaign-table-card {
  min-width: 960px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: #fff;
}

.csp-campaign-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text-primary);
}

.csp-campaign-table th,
.csp-campaign-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
  vertical-align: middle;
}

.csp-campaign-table th {
  background: rgba(248, 250, 252, 0.86);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
}

.csp-campaign-table td {
  font-size: 14px;
  font-weight: 400;
}

.csp-campaign-table a {
  color: var(--os-accent-dark);
  text-decoration: none;
}

.csp-campaign-table tr.is-selected td {
  background: #fff7fd;
}

.csp-campaign-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  min-width: 1180px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 800;
}

.csp-campaign-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.csp-campaign-legend i {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 3px;
}

.csp-campaign-legend i.planned {
  background: #faf5ff;
}

.csp-campaign-legend i.high {
  background: #fff1f8;
  border: 1px solid #fbcfe8;
}

.csp-campaign-legend i.medium {
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.csp-campaign-legend i.low {
  background: #effaf5;
  border: 1px solid #bbf7d0;
}

.csp-forecast-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 560px);
  gap: 22px;
  align-items: end;
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  background:
    radial-gradient(circle at 8% 0%, rgba(236, 72, 153, 0.12), transparent 34%),
    linear-gradient(135deg, #fff, #fff7fd 54%, #faf5ff);
  box-shadow: var(--shadow-sm);
}

.csp-forecast-hero h2 {
  margin: 0 0 8px;
  color: var(--text-primary);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0;
}

.csp-forecast-hero p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
}

.csp-forecast-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.csp-forecast-filters label {
  display: grid;
  gap: 7px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
}

.csp-forecast-filters select {
  min-height: 44px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: #fff;
  color: var(--text-primary);
  font: inherit;
  font-weight: 500;
}

.csp-forecast-filter-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.csp-forecast-filter-actions .btn {
  min-height: 42px;
}

.csp-forecast-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.csp-forecast-layout.has-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 18px;
  align-items: start;
}

.csp-forecast-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.csp-forecast-card {
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.csp-forecast-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border-light);
}

.csp-forecast-card-header h2 {
  margin: 0 0 6px;
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0;
}

.csp-forecast-card-header p {
  margin: 0;
  color: var(--text-secondary);
}

.csp-forecast-table-wrap {
  overflow-x: auto;
}

.csp-forecast-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  color: var(--text-primary);
}

.csp-forecast-table.compact {
  min-width: 980px;
}

.csp-forecast-table th,
.csp-forecast-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
  font-weight: 400;
}

.csp-forecast-table th {
  background: rgba(248, 250, 252, 0.9);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
}

.csp-forecast-table tr:last-child td {
  border-bottom: 0;
}

.csp-forecast-table tr.is-selected td {
  background: #fff7fd;
}

.csp-forecast-owner {
  display: block;
  color: var(--text-primary);
  font-weight: 500;
}

.csp-forecast-table small {
  display: block;
  margin-top: 3px;
  color: var(--text-secondary);
  font-size: 12px;
}

.csp-forecast-detail-panel {
  position: sticky;
  top: 92px;
  z-index: 5;
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.csp-forecast-detail-panel h2 {
  margin: 10px 0 6px;
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0;
}

.csp-forecast-detail-panel p {
  margin: 0;
  color: var(--text-secondary);
}

.csp-forecast-detail-list {
  display: grid;
  border-top: 1px solid var(--border-light);
}

.csp-forecast-detail-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 46px;
  border-bottom: 1px solid var(--border-light);
}

.csp-forecast-detail-list span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text-secondary);
  font-weight: 400;
}

.csp-forecast-detail-list svg {
  width: 18px;
  height: 18px;
  color: #64748b;
}

.csp-forecast-detail-list strong {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  text-align: right;
}

.csp-forecast-review-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.csp-forecast-review-actions .btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 1320px) {
  .csp-forecast-hero,
  .csp-forecast-layout.has-detail {
    grid-template-columns: 1fr;
  }

  .csp-forecast-detail-panel {
    position: static;
  }
}

@media (max-width: 980px) {
  .csp-forecast-kpis,
  .csp-forecast-filters {
    grid-template-columns: 1fr;
  }

  .csp-forecast-filter-actions,
  .csp-forecast-review-actions {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }
}

.settings-detail-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.settings-side-nav {
  position: sticky;
  top: 82px;
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: white;
  box-shadow: var(--shadow-sm);
}

.settings-side-nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 9px 10px;
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 800;
}

.settings-side-nav a:hover,
.settings-side-nav a.active {
  color: var(--ss-blue-700);
  background: var(--ss-blue-50);
}

.settings-detail-stack {
  display: grid;
  gap: 18px;
}

.settings-section {
  scroll-margin-top: 90px;
}

.settings-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.settings-action-card {
  min-height: 120px;
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  text-decoration: none;
  background: var(--ss-offwhite);
}

.settings-action-card small {
  color: var(--text-secondary);
  line-height: 1.4;
}

.performance-settings-section {
  overflow: hidden;
}

.performance-settings-heading,
.performance-settings-header-actions,
.performance-settings-footer,
.performance-setting-option,
.performance-settings-note {
  display: flex;
  align-items: center;
}

.performance-settings-heading {
  gap: 12px;
}

.performance-settings-heading h2,
.performance-settings-heading p,
.performance-settings-note p {
  margin: 0;
}

.performance-settings-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 8px;
  color: var(--ss-magenta-700);
  background: var(--ss-pink-50);
}

.performance-settings-header-actions {
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.performance-settings-form {
  gap: 16px;
}

.performance-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.performance-settings-form .performance-setting-option {
  min-height: 104px;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--ss-offwhite);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.performance-settings-form .performance-setting-option:hover {
  border-color: rgba(210, 46, 190, 0.34);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.performance-setting-copy {
  display: grid;
  gap: 6px;
}

.performance-setting-copy strong {
  font-size: 17px;
}

.performance-setting-copy small {
  max-width: 44ch;
  color: var(--text-secondary);
  line-height: 1.45;
}

.performance-switch {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.performance-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.performance-switch-track {
  position: relative;
  width: 48px;
  height: 26px;
  display: block;
  border-radius: 999px;
  background: #d7e0e5;
  box-shadow: inset 0 0 0 1px rgba(28, 55, 64, 0.08);
  transition: background 160ms ease;
}

.performance-switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 35, 42, 0.2);
  transition: transform 160ms ease;
}

.performance-switch input:checked + .performance-switch-track {
  background: var(--ss-magenta-600);
}

.performance-switch input:checked + .performance-switch-track::after {
  transform: translateX(22px);
}

.performance-switch input:focus-visible + .performance-switch-track {
  outline: 3px solid rgba(37, 99, 235, 0.2);
  outline-offset: 2px;
}

.performance-settings-note {
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid #f3d89a;
  border-radius: 8px;
  color: #8a5600;
  background: #fff9e8;
}

.performance-settings-note > span {
  display: inline-flex;
  flex: 0 0 auto;
}

.performance-settings-footer {
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.performance-settings-form .performance-settings-footer .btn {
  width: auto;
}

.performance-settings-footer > span {
  color: var(--text-secondary);
  font-size: 13px;
}

.performance-settings-footer code {
  color: var(--text-primary);
}

@media (max-width: 820px) {
  .performance-settings-grid {
    grid-template-columns: 1fr;
  }

  .performance-settings-header-actions {
    justify-content: flex-start;
  }
}

.cron-token-once {
  display: grid;
  gap: 6px;
}

.cron-token-once code,
.cron-token-once small {
  display: block;
  overflow-wrap: anywhere;
}

.cron-job-list {
  display: grid;
  gap: 14px;
}

.cron-job-row {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--ss-offwhite);
}

.cron-job-row > header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.cron-job-row h3,
.cron-job-row p,
.cron-runs h3,
.cron-runs p {
  margin: 0;
}

.cron-job-row p,
.cron-runs p {
  color: var(--text-secondary);
  line-height: 1.45;
}

.cron-job-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.cron-job-meta span {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  background: #fff;
  color: var(--text-secondary);
  font-size: 13px;
}

.cron-job-meta b {
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
}

.cron-job-meta code {
  overflow-wrap: anywhere;
  color: var(--text-primary);
  font-size: 12px;
}

.cron-token-actions,
.cron-run-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}

.cron-run-form {
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.cron-manual-note {
  align-self: stretch;
  background: rgba(217, 87, 204, 0.07);
  border: 1px solid rgba(217, 87, 204, 0.18);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  display: grid;
  gap: 4px;
  line-height: 1.35;
  max-width: 520px;
  min-width: min(520px, 100%);
  padding: 10px 12px;
}

.cron-manual-note strong {
  color: var(--text-primary);
  font-size: 13px;
}

.cron-manual-note span {
  font-size: 12px;
}

.cron-run-form label {
  min-width: 180px;
  display: grid;
  gap: 6px;
}

.cron-checkbox-field {
  display: grid;
  gap: 8px;
  min-width: 270px;
}

.cron-run-form label > span {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.cron-checkbox-field > span {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.cron-checkbox-field label {
  align-items: center;
  display: flex;
  gap: 9px;
  min-height: 42px;
  min-width: 0;
}

.cron-checkbox-field label > span {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.cron-checkbox-field input {
  accent-color: var(--ss-magenta-500);
  min-height: 16px;
  padding: 0;
  width: 16px;
}

.cron-run-form input,
.cron-run-form select {
  min-height: 42px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  background: #fff;
}

.cron-run-form .cron-checkbox-field input[type="checkbox"] {
  border-radius: 4px;
  min-height: 16px;
  padding: 0;
  width: 16px;
}

.cron-runs {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.log-grid,
.profile-layout {
  display: grid;
  gap: 18px;
}

.log-grid {
  grid-template-columns: 1fr;
}

.search-page-card {
  margin-bottom: 18px;
}

.search-page-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.search-page-form label {
  display: grid;
  gap: 7px;
}

.search-page-form label > span {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.search-page-form input {
  min-height: 46px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0 14px;
}

.search-result-list,
.user-admin-list {
  display: grid;
  gap: 12px;
}

.search-result-row {
  display: grid;
  grid-template-columns: auto minmax(180px, 0.35fr) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  text-decoration: none;
  background: white;
}

.search-result-row small {
  color: var(--text-secondary);
}

.users-layout {
  align-items: start;
}

.users-table td,
.users-table th {
  white-space: nowrap;
}

.users-table td:nth-child(2),
.users-table td:nth-child(3) {
  white-space: normal;
}

.table-cell-link {
  display: block;
  min-height: 24px;
  color: inherit;
  text-decoration: none;
}

.table-cell-link:hover {
  color: var(--os-accent-dark);
}

.table-drilldown-button {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.table-drilldown-button:hover,
.table-drilldown-button:focus-visible {
  color: var(--os-accent-dark);
  text-decoration: underline;
  outline: none;
}

.os-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 25, 31, 0.58);
  backdrop-filter: blur(7px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.os-loading-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.os-loading-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(420px, 100%);
  padding: 30px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top, rgba(217, 87, 204, 0.24), transparent 44%),
    var(--ss-ocean-900);
  box-shadow: var(--shadow-lg);
  color: var(--text-inverse);
  text-align: center;
}

.os-loading-card strong {
  font-size: 20px;
  line-height: 1.25;
}

.os-loading-card small {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.45;
}

body.is-os-loading {
  cursor: progress;
}

.user-detail-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.user-detail-header h2,
.user-detail-header p {
  margin: 0;
}

.user-detail-header p {
  color: var(--text-secondary);
  margin-top: 4px;
}

.user-detail-form {
  margin-bottom: 18px;
}

.user-detail-form label {
  display: grid;
  gap: 7px;
}

.user-detail-form label > span {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.user-detail-form input,
.user-detail-form select {
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  background: white;
}

.user-detail-form input:disabled,
.user-detail-form select:disabled {
  color: var(--text-secondary);
  background: var(--ss-offwhite);
}

.user-detail-form .toggle-row {
  display: inline-flex;
}

.user-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.user-access-shell {
  display: grid;
  gap: 16px;
}

.user-access-tabs {
  align-items: center;
  background: #fff;
  border: 1px solid #e5ebf1;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 35, 55, 0.04);
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 0 18px;
  scrollbar-width: thin;
}

.user-access-tabs button {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: #31465c;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  gap: 8px;
  min-height: 56px;
  min-width: max-content;
  padding: 0 16px;
}

.user-access-tabs button.is-active {
  border-bottom-color: var(--ss-magenta-500);
  color: var(--ss-magenta-700);
}

.user-access-tabs button:focus-visible {
  outline: 2px solid rgba(217, 87, 204, 0.45);
  outline-offset: -5px;
}

.user-access-panel[hidden] {
  display: none;
}

.user-permission-sections {
  display: grid;
  gap: 16px;
}

.user-permission-section {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--ss-offwhite);
}

.user-permission-section-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.user-permission-section-header h3,
.user-permission-section-header p {
  margin: 0;
}

.user-permission-section-header h3 {
  color: var(--text-primary);
  font-size: 16px;
}

.user-permission-section-header p {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.4;
}

.user-permission-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.user-permission-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 8px;
  align-items: start;
  padding: 11px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fff;
}

.user-permission-card > span {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.user-permission-card small {
  grid-column: 2;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.35;
}

.user-permission-card input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--os-accent);
}

.user-permission-card.is-admin-permission {
  border-color: rgba(217, 87, 204, 0.28);
  background: var(--ss-pink-50);
}

.permission-source-wrap {
  grid-column: 2;
}

.permission-source-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.permission-source-badge.source-role {
  color: #0f766e;
  background: #ccfbf1;
}

.permission-source-badge.source-added {
  color: #166534;
  background: #dcfce7;
}

.permission-source-badge.source-removed {
  color: #991b1b;
  background: #fee2e2;
}

.permission-source-badge.source-superadmin {
  color: #86198f;
  background: #fae8ff;
}

.permission-source-badge.source-muted {
  color: #64748b;
  background: #e2e8f0;
}

.users-top-tabs {
  margin-bottom: 18px;
}

.role-actions-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.role-actions-cell form {
  margin: 0;
}

.role-actions-cell .mini-button {
  min-height: 30px;
}

.role-actions-cell .mini-button.danger {
  color: #991b1b;
  border-color: #fecdd3;
  background: #fff1f2;
}

.role-apply-preview {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(217, 87, 204, 0.22);
  border-radius: var(--radius-sm);
  background: #fff7fb;
}

.role-apply-preview header,
.role-apply-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.role-apply-preview h3,
.role-apply-preview p {
  margin: 0;
}

.role-apply-preview p {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 13px;
}

.role-diff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.role-diff-grid > div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fff;
}

.role-diff-grid strong {
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.role-diff-grid span {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.35;
}

.role-apply-actions > span {
  color: var(--text-secondary);
  font-size: 12px;
}

.role-apply-all {
  margin-top: 14px;
  justify-content: flex-start;
}

.form-span-two {
  grid-column: 1 / -1;
}

.user-qr-login-card {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(117, 139, 150, 0.22);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfe 100%);
}

.user-qr-login-grid {
  align-items: end;
}

.user-qr-login-toggle {
  width: fit-content;
}

.user-qr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.user-credentials-panel {
  display: grid;
  gap: 18px;
}

.user-credentials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.user-credential-section {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(117, 139, 150, 0.22);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfe 100%);
}

.user-credentials-panel .user-qr-login-card {
  margin-top: 0;
}

.user-password-reset-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.user-password-reset-actions > span {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 980px) {
  .user-credentials-grid {
    grid-template-columns: 1fr;
  }
}

.work-hub-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid rgba(217, 87, 204, 0.22);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fff 0%, var(--ss-magenta-50) 100%);
  box-shadow: var(--shadow-sm);
}

.work-hub-hero h2,
.work-hub-hero p {
  margin: 0;
}

.work-hub-hero h2 {
  color: var(--text-primary);
  font-size: 28px;
}

.work-hub-hero p {
  margin-top: 6px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.work-dialog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.work-dialog-card {
  display: grid;
  gap: 16px;
  min-height: 220px;
  padding: 20px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--text-primary);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.work-dialog-card:hover,
.work-dialog-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(217, 87, 204, 0.45);
  box-shadow: var(--shadow-md);
  outline: 0;
}

.work-dialog-card.is-prepared {
  background: linear-gradient(180deg, #fff 0%, #fffaf0 100%);
}

.work-dialog-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--ss-magenta-700);
  background: var(--ss-magenta-100);
}

.work-dialog-copy {
  display: grid;
  gap: 7px;
}

.work-dialog-copy small {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.work-dialog-copy strong {
  font-size: 22px;
  line-height: 1.15;
}

.work-dialog-copy em {
  color: var(--text-secondary);
  font-style: normal;
  line-height: 1.45;
}

.work-dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.work-dialog-footer b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ss-magenta-700);
  font-size: 14px;
}

@media (max-width: 720px) {
  .work-dialog-grid {
    grid-template-columns: 1fr;
  }

  .work-dialog-card {
    min-height: auto;
    padding: 18px;
  }

  .work-dialog-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .work-dialog-footer b {
    justify-content: center;
    min-height: 44px;
    padding: 11px 14px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--ss-magenta-700), var(--ss-magenta-500));
  }
}

.work-empty-card {
  padding: 22px;
}

.work-placeholder-shell {
  display: grid;
  gap: 18px;
}

.work-placeholder-shell > .btn {
  justify-self: start;
}

.work-placeholder-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 24px;
}

.work-placeholder-card h2,
.work-placeholder-card p {
  margin: 0;
}

.work-placeholder-card h2 {
  margin-top: 12px;
  color: var(--text-primary);
}

.work-placeholder-card p {
  margin-top: 8px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.work-placeholder-card .button-row {
  margin-top: 18px;
}

.work-returnflow-dialog-page .content {
  padding-bottom: 96px;
}

.work-returnflow-shell {
  width: min(900px, 100%);
  margin: 0 auto;
}

.work-returnflow-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.work-returnflow-form {
  display: grid;
  gap: 14px;
}

.work-returnflow-card {
  padding: 18px;
}

.work-returnflow-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.work-returnflow-card-head h2,
.work-returnflow-card-head p {
  margin: 0;
}

.work-returnflow-card-head h2 {
  color: var(--text-primary);
  font-size: 24px;
}

.work-returnflow-card-head p:not(.eyebrow) {
  margin-top: 4px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.work-returnflow-fields,
.work-returnflow-line {
  display: grid;
  gap: 12px;
}

.work-returnflow-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.work-returnflow-line {
  grid-template-columns: minmax(120px, 1fr) minmax(180px, 1.4fr) 88px minmax(140px, 1fr);
  align-items: end;
  margin-top: 12px;
}

.work-returnflow-form label,
.work-product-search label,
.work-returnflow-note {
  display: grid;
  gap: 7px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 400;
}

.work-returnflow-form label > span,
.work-product-search label > span,
.work-returnflow-note > span {
  color: var(--text-primary);
  font-weight: 400;
}

.work-returnflow-form input,
.work-returnflow-form select,
.work-returnflow-form textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  background: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  padding: 13px 14px;
}

.work-returnflow-form input:focus,
.work-returnflow-form select:focus,
.work-returnflow-form textarea:focus {
  border-color: var(--ss-magenta-500);
  box-shadow: 0 0 0 3px rgba(217, 87, 204, 0.16);
  outline: 0;
}

.work-returnflow-form textarea {
  min-height: 124px;
  line-height: 1.45;
  resize: vertical;
}

.work-returnflow-check {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  padding: 13px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--ss-offwhite);
}

.work-returnflow-check input {
  width: 22px;
  height: 22px;
  min-height: 0;
  margin-top: 2px;
  accent-color: var(--ss-magenta-500);
}

.work-returnflow-check span {
  display: grid;
  gap: 3px;
}

.work-returnflow-check strong {
  font-weight: 400;
  font-size: 16px;
}

.work-returnflow-check small {
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.35;
}

.work-product-search {
  position: relative;
}

.work-repack-dialog-page .work-product-search input,
.work-repack-dialog-page .work-repack-log-form input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-primary);
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
}

.work-repack-dialog-page .work-product-search input:focus,
.work-repack-dialog-page .work-repack-log-form input:focus {
  border-color: var(--ss-magenta-500);
  box-shadow: 0 0 0 3px rgba(217, 87, 204, 0.16);
  outline: 0;
}

.work-repack-dialog-page .work-product-search label,
.work-repack-dialog-page .work-repack-log-form label {
  font-weight: 400;
}

.work-repack-dialog-page .work-product-search label > span,
.work-repack-dialog-page .work-repack-log-form label > span {
  font-weight: 400;
}

.work-product-results {
  position: absolute;
  z-index: 12;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: grid;
  gap: 8px;
  max-height: min(380px, 48vh);
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.work-product-option {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 76px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-primary);
  text-align: left;
  padding: 12px;
}

.work-product-option strong {
  font-weight: 400;
  font-size: 16px;
}

.work-returnflow-card .btn {
  font-weight: 500;
}

.work-product-option span,
.work-product-option small {
  overflow: hidden;
  color: var(--text-secondary);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-product-option:active,
.work-product-option:focus-visible {
  border-color: var(--ss-magenta-500);
  box-shadow: 0 0 0 3px rgba(217, 87, 204, 0.14);
  outline: 0;
}

.work-product-empty {
  margin: 0;
  color: var(--text-secondary);
  padding: 10px;
}

.work-returnflow-line.is-filled input {
  border-color: rgba(217, 87, 204, 0.46);
  background: var(--ss-magenta-50);
}

.work-returnflow-actions {
  position: sticky;
  bottom: 0;
  z-index: 18;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin: 4px -18px -96px;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border-light);
  background: rgba(246, 249, 249, 0.92);
  backdrop-filter: blur(10px);
}

.work-returnflow-actions .btn {
  min-height: 54px;
  font-size: 16px;
}

.work-repack-mode-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 16px;
}

.work-repack-mode-grid button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  font: inherit;
  font-weight: 800;
  gap: 10px;
  min-height: 62px;
  padding: 16px;
}

.work-repack-mode-grid button small {
  flex-basis: 100%;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  opacity: 0.85;
  padding-left: 34px;
}

.work-repack-mode-grid button[data-repack-mode-button="log"]::after {
  content: "Scan et produkt og gem Ompak.";
  flex-basis: 100%;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  opacity: 0.85;
  padding-left: 34px;
}

.work-repack-mode-grid button.is-active {
  background: linear-gradient(135deg, var(--ss-magenta-500), #d957cc);
  border-color: transparent;
  color: #fff;
}

.work-repack-instructions {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  line-height: 1.55;
  min-height: 120px;
  padding: 16px;
  white-space: pre-wrap;
}

.work-repack-doc-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.work-repack-doc-list a {
  align-items: center;
  background: #f8fbfd;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  display: flex;
  font-weight: 700;
  justify-content: space-between;
  padding: 12px 14px;
  text-decoration: none;
}

@media (max-width: 820px) {
  .work-returnflow-dialog-page .page-heading {
    padding-bottom: 10px;
  }

  .work-returnflow-dialog-page .page-heading h1 {
    font-size: 30px;
    line-height: 1.05;
  }

  .work-returnflow-dialog-page .page-heading p {
    font-size: 14px;
    line-height: 1.35;
  }

  .work-returnflow-fields,
  .work-returnflow-line {
    grid-template-columns: 1fr;
  }

  .work-returnflow-card {
    padding: 14px;
  }

  .work-returnflow-card-head {
    flex-direction: column;
  }

  .work-returnflow-card-head .btn {
    width: 100%;
  }

  .work-returnflow-actions {
    grid-template-columns: 1fr;
    margin-left: -18px;
    margin-right: -18px;
  }

  .work-repack-mode-grid {
    grid-template-columns: 1fr;
  }
}

.user-invite-choice {
  align-content: start;
  padding: 12px;
  border: 1px solid rgba(217, 87, 204, 0.24);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #fff 0%, var(--ss-magenta-50) 100%);
}

.user-invite-choice input {
  width: auto;
  min-height: 0;
}

.user-invite-choice small {
  color: var(--text-secondary);
  line-height: 1.4;
}

.user-invite-status {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--ss-offwhite);
}

.user-invite-status div {
  display: grid;
  gap: 4px;
}

.user-invite-status strong {
  font-size: 18px;
}

.user-invite-status small {
  color: var(--text-secondary);
}

.danger-zone {
  border-color: rgba(220, 53, 69, 0.24);
  background: linear-gradient(180deg, #fff 0%, #fff8f9 100%);
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.permission-grid label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 8px;
  align-items: start;
  padding: 11px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--ss-offwhite);
}

.permission-grid label > span {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 900;
  text-transform: none;
  letter-spacing: 0;
}

.permission-grid small {
  grid-column: 2;
  color: var(--text-secondary);
}

.permission-grid input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--os-accent);
}

.permission-grid .is-admin-permission {
  border-color: rgba(217, 87, 204, 0.28);
  background: var(--ss-pink-50);
}

.user-admin-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: white;
  box-shadow: var(--shadow-sm);
}

.user-admin-card header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.user-admin-card header strong {
  display: block;
  font-size: 18px;
}

.user-admin-card header small {
  color: var(--text-secondary);
}

.user-admin-card label {
  display: grid;
  gap: 7px;
}

.user-admin-card label > span {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.user-admin-card input,
.user-admin-card select {
  min-height: 42px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  background: white;
}

.user-admin-card .permission-grid input {
  width: 16px;
  min-height: 16px;
  padding: 0;
}

.toggle-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
}

.toggle-row input {
  width: 16px;
  min-height: 16px;
  padding: 0;
  accent-color: var(--os-accent);
}

.profile-layout {
  grid-template-columns: minmax(280px, 0.32fr) minmax(0, 1fr);
  align-items: start;
}

.profile-summary-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.profile-avatar-large {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.profile-avatar-fallback {
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--ss-magenta-700), var(--ss-magenta-500));
  font-size: 38px;
  font-weight: 900;
}

.profile-summary-card h2,
.profile-summary-card p {
  margin: 0;
}

.profile-summary-card p {
  color: var(--text-secondary);
}

.friendly-info-row.single {
  width: 100%;
  grid-template-columns: 1fr;
  text-align: left;
}

.profile-forms {
  display: grid;
  gap: 18px;
}

.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.profile-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  color: var(--text-secondary);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 800;
}

.profile-tab svg {
  width: 16px;
  height: 16px;
}

.profile-tab:hover,
.profile-tab.active {
  color: var(--ss-magenta-700);
  background: #fff4f7;
  border-color: #ffd6e0;
}

.profile-tab-panel {
  display: grid;
  gap: 18px;
}

.profile-info-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  color: #4b5563;
  background: #f7fafc;
  border: 1px solid #dbe4ea;
  border-radius: var(--radius-sm);
}

.profile-info-box.warning {
  color: #854d0e;
  background: #fff7ed;
  border-color: #fed7aa;
}

.profile-info-box.danger {
  color: #991b1b;
  background: #fff1f2;
  border-color: #fecdd3;
}

.profile-info-box svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}

.profile-info-box strong,
.profile-info-box span {
  display: block;
}

.profile-info-box span {
  margin-top: 3px;
  line-height: 1.45;
}

.profile-notification-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.profile-notification-intro {
  margin-bottom: 4px;
}

.profile-notification-section {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.profile-notification-section-header {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.profile-notification-section-header h3 {
  color: var(--text-primary);
  font-size: 17px;
  line-height: 1.2;
  margin: 0;
}

.profile-notification-section-header p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.4;
  margin: 4px 0 0;
}

.profile-notification-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.36fr);
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.profile-notification-card-single {
  grid-template-columns: 1fr;
}

.profile-notification-card:has(.profile-notification-choice input:checked) {
  border-color: rgba(217, 87, 204, 0.42);
  background: linear-gradient(135deg, #fff 0%, var(--ss-magenta-50) 100%);
  box-shadow: inset 0 0 0 1px rgba(217, 87, 204, 0.12);
}

.profile-notification-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.profile-notification-choice input {
  width: 16px;
  min-height: 16px;
  padding: 0;
  margin-top: 3px;
  accent-color: var(--ss-magenta-500);
}

.profile-notification-choice span {
  display: grid;
  gap: 5px;
}

.settings-form .profile-notification-choice > span {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.profile-notification-choice strong {
  display: block;
  color: var(--text-primary);
  font-size: 15px;
}

.profile-notification-choice small {
  display: block;
  color: var(--text-secondary);
  line-height: 1.4;
}

.profile-notification-severity {
  display: grid;
  gap: 7px;
}

.profile-notification-severity span {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.settings-form .profile-notification-severity > span {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.help-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.45fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.help-hero h2,
.help-hero p {
  margin: 0;
}

.help-hero h2 {
  font-size: 28px;
}

.help-hero p:not(.eyebrow) {
  margin-top: 8px;
  color: var(--text-secondary);
}

.help-search {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: white;
  box-shadow: var(--shadow-sm);
}

.help-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text-primary);
}

.help-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.help-quick-card {
  display: grid;
  gap: 9px;
  min-height: 160px;
  align-content: start;
}

.help-quick-card strong {
  font-size: 17px;
}

.help-quick-card span,
.help-topic-card p {
  color: var(--text-secondary);
  line-height: 1.45;
}

.help-quick-card em {
  align-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ss-info-dark);
  font-style: normal;
  font-weight: 800;
}

.help-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.help-topic-card {
  margin-bottom: 18px;
}

.help-topic-card h2,
.help-topic-card p {
  margin: 0;
}

.help-topic-card h2 {
  margin-bottom: 10px;
}

.help-file-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.help-file-card {
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--ss-offwhite);
}

.help-file-card span {
  color: var(--text-secondary);
  line-height: 1.4;
}

.help-file-card b {
  color: var(--text-primary);
}

.status-explainer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 12px;
  align-items: center;
  margin-bottom: 14px;
}

.status-explainer p {
  color: var(--text-secondary);
}

.help-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.help-status-grid div {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--ss-offwhite);
}

.help-status-grid p {
  margin: 0;
}

.help-command-center {
  max-width: 980px;
  margin: 0 auto 20px;
  text-align: center;
}

.help-command-center h2,
.help-command-center p {
  margin: 0;
}

.help-command-center h2 {
  font-size: 34px;
}

.help-command-center p:not(.eyebrow) {
  max-width: 720px;
  margin: 10px auto 18px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.help-search-xl {
  min-height: 58px;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 18px;
}

.help-search-xl input {
  font-size: 18px;
}

.help-live-results {
  max-width: 760px;
  margin: 10px auto 0;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: white;
  box-shadow: var(--shadow-md);
  text-align: left;
}

.help-live-results a {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: var(--radius-sm);
}

.help-live-results a:hover,
.help-live-results a:focus-visible {
  background: var(--ss-offwhite);
  outline: 0;
}

.help-live-results strong {
  color: var(--text-primary);
}

.help-live-results span {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.35;
}

.help-category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.help-category-card {
  display: grid;
  gap: 10px;
  min-height: 164px;
  align-content: start;
  padding: 18px;
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--os-accent);
  border-radius: var(--radius-sm);
  background: white;
  box-shadow: var(--shadow-sm);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.help-category-card:hover,
.help-category-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  outline: 0;
}

.help-category-card.wis {
  border-top-color: var(--module-wis);
}

.help-category-card.workday {
  border-top-color: var(--module-workday);
}

.help-category-card.csp {
  border-top-color: var(--module-csp);
}

.help-category-card.pi {
  border-top-color: var(--module-pi);
}

.help-category-card strong {
  font-size: 17px;
}

.help-category-card span {
  color: var(--text-secondary);
  line-height: 1.45;
}

.help-category-card em {
  align-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ss-info-dark);
  font-style: normal;
  font-weight: 800;
}

.help-guide-section {
  margin-bottom: 18px;
  padding: 22px;
}

.help-guide-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.help-guide-section > h3 {
  margin: 20px 0 12px;
  font-size: 18px;
}

.help-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 0 18px;
}

.help-guide-panel,
.help-definition-card {
  padding: 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--ss-offwhite);
}

.help-guide-panel h3,
.help-guide-panel p,
.help-guide-panel ol {
  margin: 0;
}

.help-guide-panel h3 {
  margin-bottom: 10px;
}

.help-guide-panel p,
.help-guide-panel li {
  color: var(--text-secondary);
  line-height: 1.5;
}

.help-guide-panel p + p {
  margin-top: 10px;
}

.help-guide-panel ol {
  padding-left: 20px;
}

.help-guide-panel li + li {
  margin-top: 7px;
}

.help-os-guide {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
  padding: 0;
}

.help-os-guide[hidden] {
  display: none;
}

.help-guide-legacy {
  display: none !important;
}

.help-os-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.help-os-hero h2,
.help-os-hero p,
.help-os-version-card h3,
.help-os-version-meta,
.help-os-version-meta dd,
.help-os-info-card h3,
.help-os-info-card p,
.help-os-info-card ol,
.help-os-shortcuts h3 {
  margin: 0;
}

.help-os-hero h2 {
  font-size: 30px;
}

.help-os-hero p {
  max-width: 720px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.help-os-version-card,
.help-os-info-card,
.help-os-shortcuts,
.help-os-note {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: white;
  box-shadow: var(--shadow-sm);
}

.help-os-version-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  background:
    radial-gradient(circle at 8% 50%, rgba(217, 87, 204, 0.11), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #fbfcfc 100%);
}

.help-os-brand {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.help-os-logo {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(217, 87, 204, 0.11);
  box-shadow: 0 16px 34px rgba(185, 58, 185, 0.12);
}

.help-os-logo img {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.help-os-version-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
}

.help-os-version-card h3 span,
.help-os-version-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.help-os-version-card h3 span {
  padding: 6px 10px;
  color: #0f7c42;
  background: #dff8e8;
}

.help-os-version-pill {
  padding: 4px 8px;
  color: var(--ss-ocean-950);
  border: 1px solid rgba(25, 155, 117, 0.35);
  background: rgba(25, 155, 117, 0.08);
}

.help-os-version-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 0;
  margin-top: 16px;
}

.help-os-version-meta div {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 0 22px;
  border-left: 1px solid var(--border-light);
}

.help-os-version-meta div:first-child {
  padding-left: 0;
  border-left: 0;
}

.help-os-version-meta dt {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.help-os-version-meta dd {
  color: var(--text-primary);
  font-weight: 900;
}

.help-os-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.help-os-info-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  padding: 28px;
}

.help-os-card-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.help-os-card-icon-purple {
  color: #8f36a9;
  background: rgba(217, 87, 204, 0.14);
}

.help-os-card-icon-green {
  color: #15803d;
  background: rgba(28, 181, 118, 0.15);
}

.help-os-card-icon-blue {
  color: #096f96;
  background: rgba(14, 165, 233, 0.14);
}

.help-os-info-card h3,
.help-os-shortcuts h3 {
  font-size: 20px;
}

.help-os-info-card p,
.help-os-info-card li,
.help-os-note {
  color: var(--text-secondary);
  line-height: 1.55;
}

.help-os-info-card p + p {
  margin-top: 14px;
}

.help-os-info-card ol {
  display: grid;
  gap: 10px;
  padding-left: 20px;
}

.help-os-info-card li::marker {
  color: #15a36d;
  font-weight: 900;
}

.help-os-shortcuts {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.help-os-shortcuts-heading {
  display: flex;
  align-items: center;
  gap: 16px;
}

.help-os-shortcut-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.help-os-shortcut-list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "icon title arrow"
    "icon subtitle arrow";
  align-items: center;
  column-gap: 12px;
  min-width: 0;
  padding: 8px 14px;
  border-left: 1px solid var(--border-light);
}

.help-os-shortcut-list a:first-child {
  border-left: 0;
}

.help-os-shortcut-list a > span {
  grid-area: icon;
  color: var(--ss-ocean-700);
}

.help-os-shortcut-list a strong {
  grid-area: title;
  color: var(--text-primary);
  font-size: 13px;
}

.help-os-shortcut-list a small {
  grid-area: subtitle;
  color: var(--text-muted);
  font-size: 11px;
}

.help-os-shortcut-list a > svg:last-child {
  grid-area: arrow;
  color: var(--ss-ocean-600);
}

.help-os-note {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  background: var(--ss-offwhite);
}

.help-os-note svg {
  color: var(--ss-info-dark);
}

@media (max-width: 1100px) {
  .help-os-version-card,
  .help-os-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .help-os-version-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 18px;
  }

  .help-os-version-meta div:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .help-os-shortcut-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .help-os-shortcut-list a {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
  }
}

@media (max-width: 760px) {
  .help-os-card-grid,
  .help-os-shortcut-list,
  .help-os-version-meta {
    grid-template-columns: 1fr;
  }

  .help-os-brand,
  .help-os-info-card {
    grid-template-columns: 1fr;
  }

  .help-os-version-meta div,
  .help-os-version-meta div:nth-child(odd) {
    padding: 0;
    border-left: 0;
  }
}

.help-definition-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.help-definition-card {
  display: grid;
  gap: 8px;
  align-content: start;
}

.help-definition-card strong {
  color: var(--text-primary);
}

.help-definition-card span,
.help-definition-card small {
  color: var(--text-secondary);
  line-height: 1.4;
}

.os-login-body {
  min-height: 100vh;
  overflow-x: hidden;
  background: white;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(600px, 43.45vw) minmax(0, 1fr);
}

.login-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 104px clamp(54px, 5vw, 88px) 54px;
  background:
    radial-gradient(circle at 22% 7%, rgba(217, 87, 204, 0.055), transparent 29%),
    linear-gradient(180deg, #ffffff 0%, #fbfcfc 100%);
}

.login-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(100%, 646px);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  line-height: 1;
  white-space: nowrap;
}

.login-brand .brand-mark {
  width: 50px;
  height: 42px;
  flex-basis: 50px;
}

.login-brand .brand-wordmark {
  gap: 8px;
}

.login-brand .brand-shipshark {
  color: var(--text-primary);
  font-size: 30px;
  font-weight: 800;
}

.login-brand .brand-wordmark strong {
  color: var(--os-accent);
  font-size: 33px;
  font-weight: 900;
}

.login-platform-pill {
  min-width: 276px;
  min-height: 82px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 11px;
  padding: 15px 18px 16px;
  border: 1px solid rgba(217, 87, 204, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(129, 40, 120, 0.08);
}

.login-platform-pill small {
  flex: 0 0 100%;
  color: var(--module-wis);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.login-platform-pill i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(217, 87, 204, 0.34);
}

.pill-module {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.pill-module.wis {
  color: var(--module-wis);
}

.pill-module.workday {
  color: var(--module-workday);
}

.pill-module.pi {
  color: var(--module-pi);
}

.login-copy {
  width: min(100%, 646px);
  margin-top: 86px;
}

.login-copy h1 {
  margin: 0;
  font-size: clamp(56px, 4.55vw, 72px);
  line-height: 0.98;
  color: var(--text-primary);
  letter-spacing: 0;
}

.login-copy p:not(.eyebrow) {
  max-width: 560px;
  margin: 16px 0 0;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.42;
}

.os-login-body .eyebrow {
  margin-bottom: 13px;
  color: var(--module-wis);
  font-size: 14px;
  letter-spacing: 0.06em;
}

.login-error {
  width: min(100%, 646px);
  margin: 24px 0 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  color: var(--ss-danger-dark);
  background: var(--ss-danger-bg);
  font-weight: 700;
}

.login-success {
  width: min(100%, 646px);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 24px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(22, 163, 108, 0.2);
  border-radius: var(--radius-sm);
  color: #08764d;
  background: #eafaf2;
  font-weight: 800;
  line-height: 1.45;
}

.login-success svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  margin-top: 1px;
}

.login-form {
  width: min(100%, 646px);
  display: grid;
  gap: 20px;
  margin-top: 32px;
}

.login-qr-capture {
  display: none;
}

.login-qr-form {
  width: min(100%, 646px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 28px;
  padding: 14px;
  border: 1px solid rgba(117, 139, 150, 0.2);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(8, 22, 26, 0.035);
}

.login-qr-form label > span,
.login-qr-form label > small {
  display: block;
}

.login-qr-form label > span {
  margin-bottom: 5px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.login-qr-form label > small {
  margin-bottom: 9px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.35;
}

.login-qr-form .input-shell {
  height: 52px;
}

.login-qr-submit {
  min-height: 52px;
  white-space: nowrap;
}

.login-form label > span {
  display: block;
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.input-shell {
  height: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  border: 1px solid #d9e1e4;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  background: white;
  box-shadow: 0 7px 18px rgba(8, 22, 26, 0.025);
}

.input-shell svg {
  width: 21px;
  height: 21px;
  color: #81939a;
}

.input-shell input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text-primary);
  background: transparent;
  font-size: 16px;
}

.input-shell input::placeholder {
  color: #8798a0;
}

.password-toggle {
  border: 0;
  color: #83949a;
  background: transparent;
  cursor: pointer;
  font-size: 0;
}

.password-toggle::before {
  content: "";
  width: 21px;
  height: 21px;
  display: block;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2.5 12s3.5-6 9.5-6 9.5 6 9.5 6-3.5 6-9.5 6-9.5-6-9.5-6z'/%3E%3Ccircle cx='12' cy='12' r='3' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-secondary);
  margin-top: 2px;
  font-size: 14px;
}

.login-options a {
  color: var(--module-wis);
  font-weight: 650;
}

.check-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.check-row input {
  appearance: none;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1px solid #d6e0e3;
  border-radius: 3px;
  background: white;
}

.login-submit {
  width: 100%;
  min-height: 56px;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.os-login-body .btn-primary {
  background: linear-gradient(135deg, #cf43bf 0%, #bd39b4 100%);
  color: white;
  box-shadow: 0 18px 32px rgba(201, 77, 188, 0.24);
}

.os-login-body .btn-primary:hover {
  box-shadow: 0 20px 38px rgba(201, 77, 188, 0.32);
}

.os-activate-copy {
  margin-top: 76px;
}

.os-password-reset-copy {
  margin-top: 76px;
}

.os-password-reset-copy h1 {
  max-width: 646px;
  font-size: clamp(48px, 4.1vw, 66px);
  line-height: 1.02;
}

.os-auth-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.os-auth-back-link:hover {
  color: var(--os-accent-dark);
}

.os-auth-back-link svg {
  width: 17px;
  height: 17px;
}

.os-activation-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.os-activation-rules span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  background: var(--ss-offwhite);
  border: 1px solid var(--border-light);
  font-size: 13px;
  font-weight: 800;
}

.os-activation-rules svg {
  width: 16px;
  height: 16px;
  color: var(--os-accent);
}

.os-activate-help {
  width: min(100%, 646px);
  margin: 16px 0 0;
}

.os-activate-help a {
  color: var(--os-accent-dark);
  font-weight: 900;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  margin-top: 8px;
  font-size: 16px;
}

.login-divider::before,
.login-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--border-light);
}

.sso-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.sso-grid .btn {
  min-height: 66px;
  gap: 11px;
  font-size: 18px;
  font-weight: 500;
  border-color: #dde6e8;
  box-shadow: 0 10px 24px rgba(8, 22, 26, 0.035);
}

.sso-logo {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
}

.sso-logo.microsoft {
  background:
    linear-gradient(#f35325, #f35325) left top / 10px 10px no-repeat,
    linear-gradient(#81bc06, #81bc06) right top / 10px 10px no-repeat,
    linear-gradient(#05a6f0, #05a6f0) left bottom / 10px 10px no-repeat,
    linear-gradient(#ffba08, #ffba08) right bottom / 10px 10px no-repeat;
}

.sso-logo.google {
  color: #4285f4;
  font-weight: 800;
}

.login-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 646px);
  padding-top: 44px;
}

.login-footnote,
.support-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 15px;
}

.login-footnote svg {
  width: 18px;
  height: 18px;
  color: var(--module-wis);
}

.support-link {
  color: var(--text-primary);
  font-weight: 650;
}

.login-visual {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding: 74px clamp(54px, 5vw, 86px);
  color: white;
  background: #06252d;
}

.login-visual-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% center;
  filter: brightness(1.22) contrast(0.9) saturate(1.05);
  transform: scale(1.01);
}

.login-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 82, 94, 0.08), rgba(255, 255, 255, 0.08) 52%, rgba(255, 255, 255, 0.04)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(3, 25, 31, 0) 42%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.visual-copy {
  position: relative;
  z-index: 1;
}

.visual-copy {
  max-width: 710px;
  margin-left: 3px;
}

.visual-copy h2 {
  margin: 0;
  font-size: clamp(26px, 2.1vw, 34px);
  line-height: 1.15;
  color: #fff;
  font-weight: 500;
  letter-spacing: 0;
  text-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
}

.inbound-command-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.32fr);
  gap: 18px;
  margin-bottom: 18px;
}

.inbound-command-bar h2 {
  margin: 0;
  font-size: 24px;
}

.inbound-command-bar p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--text-secondary);
  line-height: 1.5;
}

.inbound-upload-card {
  display: grid;
  gap: 10px;
  align-content: start;
}

.inbound-upload-card strong {
  font-size: 20px;
}

.inbound-upload-card small {
  color: var(--text-secondary);
  line-height: 1.45;
}

.inbound-kpi-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.inbound-filter-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr)) minmax(220px, 1.4fr);
  gap: 14px;
  align-items: end;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--ss-offwhite);
}

.inbound-filter-bar label {
  display: grid;
  gap: 7px;
}

.inbound-filter-bar label > span {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.inbound-filter-bar input,
.inbound-filter-bar select {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  color: var(--text-primary);
  background: white;
}

.filter-checks {
  grid-column: 1 / -1;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 13px;
}

.filter-checks label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.filter-checks input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--os-accent);
}

.inbound-panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.8fr);
  gap: 18px;
  margin-bottom: 18px;
}

.inbound-bucket-list {
  display: grid;
  gap: 10px;
}

.inbound-bucket-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  min-height: 54px;
  padding: 13px 14px;
  border: 1px solid var(--border-light);
  border-left-width: 4px;
  border-radius: var(--radius-sm);
  background: var(--ss-offwhite);
}

.inbound-bucket-row.tone-success {
  border-left-color: var(--ss-success);
}

.inbound-bucket-row.tone-warning {
  border-left-color: var(--ss-warning);
}

.inbound-bucket-row.tone-danger {
  border-left-color: var(--ss-danger);
}

.inbound-bucket-row.tone-info {
  border-left-color: var(--ss-info);
}

.inbound-bucket-row span {
  font-weight: 800;
}

.inbound-bucket-row small {
  color: var(--text-secondary);
}

.inbound-performance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.inbound-sla-range {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.inbound-sla-range a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.inbound-sla-range a:hover,
.inbound-sla-range a:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(198, 49, 190, 0.26);
  box-shadow: 0 10px 24px rgba(15, 35, 42, 0.1);
}

.inbound-sla-range a.is-active {
  border-color: rgba(198, 49, 190, 0.42);
  background: white;
  color: var(--os-accent);
  box-shadow: 0 0 0 2px rgba(198, 49, 190, 0.08), var(--shadow-sm);
}

.inbound-performance-grid span,
.inbound-oldest {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--ss-offwhite);
}

.inbound-performance-grid small,
.inbound-oldest span,
.inbound-oldest small {
  color: var(--text-secondary);
}

.inbound-performance-grid strong,
.inbound-oldest strong {
  font-size: 20px;
}

.inbound-oldest {
  margin-top: 12px;
}

.inbound-table-card {
  margin-bottom: 18px;
  overflow-x: auto;
}

.inbound-table th,
.inbound-table td {
  white-space: nowrap;
}

.inbound-restorder-count {
  min-width: 2.75rem;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

.inbound-priority-row {
  background: linear-gradient(90deg, rgba(255, 246, 219, 0.72), rgba(255, 255, 255, 0));
}

.inbound-priority-badge {
  display: inline-flex;
  margin-left: 8px;
  vertical-align: middle;
}

.text-danger {
  color: var(--ss-danger);
  font-weight: 800;
}

.text-success {
  color: var(--ss-emerald-600);
  font-weight: 800;
}

.text-warning {
  color: var(--ss-warning-dark);
  font-weight: 800;
}

.inbound-modal {
  width: min(1120px, calc(100vw - 36px));
  max-height: min(860px, calc(100vh - 36px));
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: var(--shadow-lg);
}

.inbound-modal::backdrop {
  background: rgba(3, 25, 31, 0.58);
}

.inbound-priority-panel {
  align-items: center;
  background: linear-gradient(135deg, rgba(217, 87, 204, 0.08), rgba(255, 255, 255, 0.94));
  border: 1px solid rgba(217, 87, 204, 0.22);
  border-radius: var(--radius-md);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 18px 0;
  padding: 16px;
}

.inbound-priority-panel h3,
.inbound-priority-panel p {
  margin: 0;
}

.inbound-priority-panel h3 {
  color: var(--text-primary);
  font-size: 18px;
}

.inbound-priority-panel p:not(.eyebrow) {
  color: var(--text-secondary);
  line-height: 1.45;
  margin-top: 4px;
}

.inbound-priority-panel form {
  align-items: center;
  display: flex;
  gap: 10px;
}

.inbound-priority-panel.is-active {
  background: linear-gradient(135deg, rgba(255, 244, 214, 0.9), rgba(255, 255, 255, 0.95));
  border-color: rgba(245, 158, 11, 0.28);
}

.inbound-priority-panel.is-disabled {
  background: #f8fbfd;
  border-color: var(--border-light);
}

.os-dialog {
  width: min(860px, calc(100vw - 36px));
  max-height: min(780px, calc(100vh - 36px));
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: var(--shadow-lg);
}

.os-dialog::backdrop {
  background: rgba(3, 25, 31, 0.58);
}

.os-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  background: white;
  color: var(--text-primary);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.os-dialog-content {
  padding: 24px;
}

.os-dialog-detail-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-right: 44px;
  margin-bottom: 18px;
}

.os-dialog-detail-header h2,
.os-dialog-detail-header p {
  margin: 0;
}

.os-dialog-detail-header p {
  color: var(--text-secondary);
  margin-top: 5px;
}

.os-dialog-print-meta {
  font-size: 12px;
}

.os-dialog-header-actions {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.os-dialog-source {
  border-radius: var(--radius-pill);
  background: var(--ss-mint);
  color: var(--ss-teal-dark);
  font-weight: 800;
  font-size: 12px;
  padding: 7px 11px;
  white-space: nowrap;
}

.os-export,
.os-dialog-export {
  position: relative;
}

.os-export-toggle,
.os-dialog-export .os-export-toggle {
  font-weight: 650;
}

.os-export-menu,
.os-dialog-export-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  display: grid;
  min-width: 190px;
  padding: 6px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: white;
  box-shadow: var(--shadow-md);
}

.os-export-menu button,
.os-dialog-export-menu button {
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-radius: var(--radius-xs);
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
}

.os-export-menu button:hover,
.os-export-menu button:focus-visible,
.os-dialog-export-menu button:hover,
.os-dialog-export-menu button:focus-visible {
  background: var(--ss-offwhite);
  outline: none;
}

.os-export-print-root {
  display: none;
}

.os-export-print-header {
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #d8e4e7;
}

.os-export-print-header p,
.os-export-print-header h1,
.os-export-print-header span {
  margin: 0;
}

.os-export-print-header p {
  color: #58717a;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.os-export-print-header h1 {
  margin-top: 4px;
  color: #092532;
  font-size: 24px;
}

.os-export-print-header span {
  display: block;
  margin-top: 6px;
  color: #58717a;
  font-size: 12px;
}

.os-export-mail-modal[hidden] {
  display: none;
}

.os-export-mail-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
}

.os-export-mail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 28, 35, 0.58);
}

.os-export-mail-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  width: min(780px, calc(100vw - 32px));
  max-height: min(760px, 92vh);
  overflow: auto;
  padding: 26px 28px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: white;
  box-shadow: var(--shadow-lg);
}

.os-export-mail-card header {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-right: 46px;
}

.os-export-mail-card header h2,
.os-export-mail-card header p {
  margin: 0;
}

.os-export-mail-card header p:not(.eyebrow) {
  margin-top: 4px;
  color: var(--text-secondary);
}

.os-export-mail-fields {
  display: grid;
  gap: 14px;
}

.os-export-mail-fields[hidden] {
  display: none;
}

.os-export-mail-card .settings-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.os-export-mail-card .settings-wide {
  grid-column: 1 / -1;
}

.os-export-mail-card label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--text-primary);
  font-weight: 650;
}

.os-export-mail-card label > span {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.os-export-mail-card input,
.os-export-mail-card textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--text-primary);
  font: inherit;
  font-weight: 400;
}

.os-export-mail-card input {
  min-height: 44px;
  padding: 0 12px;
}

.os-export-mail-card input:focus,
.os-export-mail-card textarea:focus {
  border-color: var(--os-accent);
  box-shadow: 0 0 0 3px rgba(217, 87, 204, 0.14);
  outline: none;
}

.os-export-mail-card textarea {
  min-height: 120px;
  padding: 12px;
  resize: vertical;
}

.os-export-mail-options {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--ss-offwhite);
}

.os-export-mail-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-weight: 400;
}

.os-export-mail-options label > span {
  color: inherit;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.os-export-mail-options input {
  width: 16px;
  min-width: 16px;
  min-height: 16px;
  accent-color: var(--os-accent);
}

.os-export-mail-status {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--ss-rose);
  color: #9a0f22;
  font-weight: 650;
}

.os-export-mail-status.is-success {
  background: var(--ss-mint);
  color: var(--ss-teal-dark);
}

.os-export-mail-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.os-export-mail-success {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(24, 194, 143, 0.26);
  border-radius: var(--radius-sm);
  background: var(--ss-mint);
}

.os-export-mail-success[hidden] {
  display: none;
}

.os-export-mail-success h3,
.os-export-mail-success p {
  margin: 0;
}

.os-export-mail-success h3 {
  color: var(--ss-teal-dark);
}

.os-export-mail-success p {
  color: var(--text-secondary);
}

.os-dialog-fact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.os-dialog-fact {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--ss-offwhite);
}

.os-dialog-fact small {
  color: var(--text-secondary);
  font-weight: 700;
}

@media (max-width: 760px) {
  .os-export-mail-modal {
    padding: 16px;
  }

  .os-export-mail-card {
    padding: 22px;
  }

  .os-export-mail-card .settings-form-grid {
    grid-template-columns: 1fr;
  }
}

/* System Health Center */
body.system-health-page .page-heading {
  margin-bottom: 18px;
}

.system-health-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.system-health-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.system-health-card {
  margin-bottom: 18px;
  padding: 20px;
}

.system-health-card .card-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.system-health-card h2 {
  margin: 0;
  font-size: 20px;
}

.system-health-card p {
  margin: 6px 0 0;
  color: var(--text-muted);
}

.system-health-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.system-health-table th,
.system-health-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
  vertical-align: top;
}

.system-health-table thead th {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: var(--ss-offwhite);
}

.system-health-table tbody th {
  width: 220px;
  font-weight: 900;
}

.system-health-table small {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-weight: 700;
}

.system-health-table code {
  color: var(--text);
  font-size: 12px;
  background: var(--ss-offwhite);
  border-radius: 8px;
  padding: 4px 7px;
}

.system-health-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.system-health-badge.is-ok {
  color: #007a43;
  background: #dcfce7;
}

.system-health-badge.is-warning {
  color: #9a5d00;
  background: #fff1c7;
}

.system-health-badge.is-critical,
.system-health-badge.is-missing {
  color: #a30d2d;
  background: #ffe3ea;
}

.system-health-badge.is-info,
.system-health-badge.is-unknown,
.system-health-badge.is-muted {
  color: #315371;
  background: #eaf3ff;
}

body.database-intelligence-page .content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: clamp(20px, 2vw, 36px);
  padding-right: clamp(20px, 2vw, 36px);
}

.database-intelligence-page .page-heading {
  margin-bottom: 18px;
}

.dbintel-warning {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(217, 152, 43, 0.28);
  border-radius: var(--radius-lg);
  color: #5b4200;
  background: #fff8e8;
  box-shadow: var(--shadow-sm);
}

.dbintel-warning svg {
  flex: 0 0 auto;
  color: #a66800;
}

.dbintel-warning strong,
.dbintel-warning span {
  display: block;
}

.dbintel-warning span {
  margin-top: 3px;
  color: #6b5a30;
  line-height: 1.45;
}

.dbintel-success {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(16, 185, 129, 0.24);
  border-radius: var(--radius-lg);
  color: var(--ss-success-dark);
  background: var(--ss-success-bg);
  box-shadow: var(--shadow-sm);
}

.dbintel-success svg {
  flex: 0 0 auto;
  color: var(--ss-success-dark);
}

.dbintel-success strong,
.dbintel-success span {
  display: block;
}

.dbintel-success span {
  margin-top: 3px;
  color: #166534;
  line-height: 1.45;
}

.dbintel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}

.dbintel-actions .btn {
  gap: 8px;
}

.dbintel-action-form {
  display: inline-flex;
  margin: 0;
}

.dbintel-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.dbintel-meta-card,
.dbintel-table-card {
  margin-bottom: 18px;
}

.dbintel-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.dbintel-meta-grid div {
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--ss-offwhite);
}

.dbintel-meta-grid span {
  display: block;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dbintel-safe-cleanup td small {
  display: block;
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 800;
}

.dbintel-safe-checks {
  display: grid;
  gap: 4px;
  min-width: 150px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
}

.dbintel-safe-summary {
  margin-bottom: 16px;
}

.dbintel-sql-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dbintel-sql-grid label {
  display: grid;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 850;
}

.dbintel-sql-grid textarea {
  min-height: 220px;
  width: 100%;
}

.dbintel-meta-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.dbintel-note {
  margin: 14px 0 0;
  color: var(--text-secondary);
  line-height: 1.5;
}

.dbintel-badge-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.dbintel-filter-bar {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(220px, 1fr) repeat(4, auto) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
}

.dbintel-filter-bar label:not(.dbintel-check) {
  display: grid;
  gap: 5px;
}

.dbintel-filter-bar label span {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dbintel-filter-bar input[type="search"],
.dbintel-filter-bar select {
  min-height: 40px;
  width: 100%;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  background: white;
  color: var(--text-primary);
  font: inherit;
}

.dbintel-check {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 800;
}

.dev-table-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #f8fbfd;
}

.dev-table-bottom-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  justify-content: flex-end;
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fbfdff;
}

.dev-table-summary {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dev-table-control-label {
  display: grid;
  gap: 5px;
  min-width: 130px;
}

.dev-table-search {
  min-width: min(260px, 100%);
}

.dev-table-control-label span {
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dev-table-control-label input,
.dev-table-control-label select {
  min-height: 38px;
  width: 100%;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0 10px;
  background: #fff;
  color: var(--text-primary);
  font: inherit;
}

.dev-table-pager {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.dev-table-page-label {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.dev-table-sortable {
  cursor: pointer;
}

.dev-table-empty::after {
  content: "No matching rows.";
  display: block;
  padding: 14px;
  color: var(--text-secondary);
  font-weight: 800;
}

.dev-table-empty-message {
  margin: 10px 0 0;
  padding: 14px;
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-sm);
  background: #f8fbfd;
  color: var(--text-secondary);
  font-weight: 800;
}

.dbintel-table td {
  vertical-align: top;
}

.dbintel-table .status-pill {
  margin: 0 4px 4px 0;
  white-space: nowrap;
}

.dbintel-path-list {
  max-width: 380px;
  white-space: normal;
  overflow-wrap: anywhere;
  color: var(--text-secondary);
}

.dbintel-snippet {
  display: inline-block;
  max-width: 520px;
  max-height: 96px;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: anywhere;
  color: #143447;
  background: #eef5f8;
  border-radius: 6px;
  padding: 3px 5px;
}

.dev-command-nav,
.dev-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.dev-subnav {
  margin-bottom: 18px;
  padding: 10px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: #f8fbfd;
}

.dev-command-nav a,
.dev-subnav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  background: #fff;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-sm);
}

.dev-command-nav a:hover,
.dev-command-nav a.is-active,
.dev-subnav a:hover,
.dev-subnav a.is-active {
  border-color: rgba(219, 39, 119, 0.34);
  color: #a41462;
  background: #fff0f7;
}

.dev-command-panel {
  margin-bottom: 18px;
}

.dev-landing-hero {
  margin-bottom: 18px;
}

.dev-landing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.dev-control-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.dev-control-grid.is-compact {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.dev-landing-card,
.dev-control-card,
.dev-summary-card,
.dev-action-card,
.dev-triage-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.dev-landing-card,
.dev-control-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
}

.dev-landing-card header,
.dev-control-card header,
.dev-action-card header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.dev-control-card header {
  justify-content: flex-start;
}

.dev-landing-card h3,
.dev-control-card h3,
.dev-action-card h3,
.dev-command-panel h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 18px;
  line-height: 1.25;
}

.dev-control-card p {
  margin: 4px 0 0;
  color: var(--text-secondary);
  line-height: 1.45;
}

.dev-control-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  color: #b31383;
  background: #fff0f7;
  flex: 0 0 auto;
}

.dev-control-card-meta,
.dev-control-actions,
.dev-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.dev-control-card-note {
  min-height: 38px;
  font-size: 13px;
}

.dev-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.dev-summary-card {
  display: flex;
  gap: 12px;
  padding: 16px;
}

.dev-summary-card > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  color: #0f3553;
  background: #eaf3ff;
  flex: 0 0 auto;
}

.dev-summary-card small {
  display: block;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dev-summary-card strong {
  display: block;
  margin-top: 2px;
  color: var(--text-primary);
  font-size: 26px;
  line-height: 1;
}

.dev-summary-card p {
  margin: 6px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.35;
}

.dev-safe-alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(217, 152, 43, 0.28);
  border-radius: var(--radius-sm);
  color: #5b4200;
  background: #fff8e8;
}

.dev-safe-alert strong,
.dev-safe-alert span {
  display: block;
}

.dev-safe-alert span {
  margin-top: 2px;
  color: #6b5a30;
}

.dev-filter-bar {
  margin: 0 0 14px;
}

.dev-filter-bar a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  background: #fff;
  font-weight: 850;
  text-decoration: none;
}

.dev-filter-bar a.is-active,
.dev-filter-bar a:hover {
  border-color: rgba(219, 39, 119, 0.34);
  color: #a41462;
  background: #fff0f7;
}

.dev-muted-section {
  background: linear-gradient(180deg, #fff, #fbfdff);
}

.dev-advanced-card {
  border-style: dashed;
}

.dev-breadcrumb {
  margin: 0 0 14px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 800;
}

.dev-landing-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.45;
}

.dev-landing-card li {
  display: flex;
  gap: 8px;
}

.dev-landing-card li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 7px;
  border-radius: 999px;
  background: #db2777;
  flex: 0 0 auto;
}

.dev-landing-actions,
.dev-action-prompt-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.dev-triage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}

.dev-triage-card {
  padding: 13px 14px;
}

.dev-triage-card span,
.dev-triage-card small,
.dev-action-grid span {
  display: block;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dev-triage-card strong {
  display: block;
  margin: 5px 0 2px;
  color: var(--text-primary);
  font-size: 24px;
}

.dev-action-list {
  display: grid;
  gap: 14px;
}

.dev-action-card {
  padding: 16px;
}

.dev-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.dev-action-grid div {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #f8fbfd;
}

.dev-action-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--text-primary);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.dev-view-hidden {
  display: none !important;
}

.dev-page-actions {
  align-items: center;
}

.dev-action-menu {
  position: relative;
}

.dev-action-menu > summary {
  list-style: none;
  cursor: pointer;
}

.dev-action-menu > summary::-webkit-details-marker {
  display: none;
}

.dev-action-menu-list {
  position: absolute;
  right: 0;
  z-index: 30;
  display: grid;
  min-width: 210px;
  gap: 6px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.dev-action-menu-list a,
.dev-action-menu-list button {
  justify-content: flex-start;
  width: 100%;
}

.dev-table-exportbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  margin: 10px 0 8px;
}

.dev-table-exportbar strong {
  margin-right: auto;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dev-report-summary {
  margin-bottom: 18px;
}

.dev-report-toplist {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.dev-report-toplist article {
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fbfdff;
}

.dev-report-toplist strong,
.dev-report-toplist span,
.dev-report-toplist small {
  display: block;
}

.dev-report-toplist span {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.dev-report-toplist p {
  margin: 8px 0;
  color: var(--text-secondary);
}

.dev-report-prompt {
  margin-top: 12px;
}

.dev-action-explainer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.dev-action-explainer div {
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: var(--radius-sm);
  background: #fff;
}

.dev-action-explainer strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text-primary);
  font-size: 12px;
}

.dev-action-explainer p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.45;
}

.dev-action-why {
  margin: 0 0 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.dev-action-details,
.dev-action-prompt {
  margin-top: 10px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fbfdff;
}

.dev-action-details > summary,
.dev-action-prompt > summary {
  cursor: pointer;
  padding: 10px 12px;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dev-action-details ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 12px 12px 28px;
  color: var(--text-secondary);
}

.dev-action-details code,
.dev-action-details small {
  overflow-wrap: anywhere;
}

.dev-action-prompt-toolbar {
  padding: 0 12px 10px;
}

.dev-action-prompt-toolbar strong {
  color: var(--text-primary);
  font-size: 12px;
}

.dev-triage-prompt {
  width: calc(100% - 24px);
  margin: 0 12px 12px;
}

.dev-triage-review-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 12px 0 0;
}

.dev-triage-review-form select,
.dev-triage-review-form input[type="text"] {
  min-height: 36px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0 10px;
  background: #fff;
  color: var(--text-primary);
  font: inherit;
}

.dev-triage-review-form input[type="text"] {
  flex: 1 1 220px;
}

.dev-empty-state {
  padding: 18px;
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-lg);
  background: #f8fbfd;
  color: var(--text-secondary);
  font-weight: 800;
}

.dev-advanced-raw {
  border-style: dashed;
}

.dev-advanced-raw .card-header h2::after {
  content: "Advanced";
  display: inline-flex;
  margin-left: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #7c2d12;
  background: #fff4e6;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.dbintel-table-wrap {
  overflow-x: auto;
}

.dbintel-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fbfd;
}

.dbintel-known-conflicts-wrap {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 4px;
}

.dbintel-known-conflicts-table {
  min-width: 1560px;
  table-layout: fixed;
}

.dbintel-known-conflicts-table th:nth-child(1),
.dbintel-known-conflicts-table td:nth-child(1) {
  width: 96px;
}

.dbintel-known-conflicts-table th:nth-child(2),
.dbintel-known-conflicts-table td:nth-child(2) {
  width: 150px;
}

.dbintel-known-conflicts-table th:nth-child(3),
.dbintel-known-conflicts-table td:nth-child(3) {
  width: 170px;
}

.dbintel-known-conflicts-table th:nth-child(4),
.dbintel-known-conflicts-table td:nth-child(4) {
  width: 260px;
}

.dbintel-known-conflicts-table th:nth-child(5),
.dbintel-known-conflicts-table td:nth-child(5) {
  width: 60px;
}

.dbintel-known-conflicts-table th:nth-child(6),
.dbintel-known-conflicts-table td:nth-child(6) {
  width: 330px;
}

.dbintel-known-conflicts-table th:nth-child(7),
.dbintel-known-conflicts-table td:nth-child(7) {
  width: 90px;
}

.dbintel-known-conflicts-table th:nth-child(8),
.dbintel-known-conflicts-table td:nth-child(8),
.dbintel-known-conflicts-table th:nth-child(9),
.dbintel-known-conflicts-table td:nth-child(9) {
  width: 250px;
}

.dbintel-known-conflicts-table td {
  line-height: 1.45;
}

.dbintel-conflict-snippet {
  display: block;
  max-width: none;
  max-height: 180px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: normal;
  font-size: 12px;
  line-height: 1.45;
}

.dbintel-conflict-problem,
.dbintel-conflict-recommendation {
  color: var(--text-primary);
  overflow-wrap: break-word;
}

.database-intelligence-page #known-conflicts.table-card,
.database-intelligence-page #known-conflicts .dbintel-known-conflicts-wrap {
  overflow-x: visible;
}

.database-intelligence-page #known-conflicts .dbintel-known-conflicts-table {
  width: 100%;
  min-width: 0;
  table-layout: auto;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.database-intelligence-page #known-conflicts .dbintel-known-conflicts-table thead {
  display: none;
}

.database-intelligence-page #known-conflicts .dbintel-known-conflicts-table tbody,
.database-intelligence-page #known-conflicts .dbintel-known-conflicts-table tr,
.database-intelligence-page #known-conflicts .dbintel-known-conflicts-table td {
  display: block;
}

.database-intelligence-page #known-conflicts .dbintel-known-conflicts-table tr {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px 14px;
  padding: 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fff;
}

.database-intelligence-page #known-conflicts .dbintel-known-conflicts-table td {
  width: auto;
  min-width: 0;
  padding: 0;
  border-bottom: 0;
  line-height: 1.45;
}

.database-intelligence-page #known-conflicts .dbintel-known-conflicts-table td::before {
  display: block;
  margin-bottom: 4px;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.database-intelligence-page #known-conflicts .dbintel-known-conflicts-table td:nth-child(1) {
  grid-column: 1 / span 1;
}

.database-intelligence-page #known-conflicts .dbintel-known-conflicts-table td:nth-child(1)::before {
  content: "Severity";
}

.database-intelligence-page #known-conflicts .dbintel-known-conflicts-table td:nth-child(2) {
  grid-column: 2 / span 2;
}

.database-intelligence-page #known-conflicts .dbintel-known-conflicts-table td:nth-child(2)::before {
  content: "Source";
}

.database-intelligence-page #known-conflicts .dbintel-known-conflicts-table td:nth-child(3) {
  grid-column: 4 / span 2;
}

.database-intelligence-page #known-conflicts .dbintel-known-conflicts-table td:nth-child(3)::before {
  content: "Tabel";
}

.database-intelligence-page #known-conflicts .dbintel-known-conflicts-table td:nth-child(4) {
  grid-column: 6 / span 2;
}

.database-intelligence-page #known-conflicts .dbintel-known-conflicts-table td:nth-child(4)::before {
  content: "Kolonne";
}

.database-intelligence-page #known-conflicts .dbintel-known-conflicts-table td:nth-child(5) {
  grid-column: 8 / span 3;
}

.database-intelligence-page #known-conflicts .dbintel-known-conflicts-table td:nth-child(5)::before {
  content: "Fil";
}

.database-intelligence-page #known-conflicts .dbintel-known-conflicts-table td:nth-child(6) {
  grid-column: 11 / span 1;
}

.database-intelligence-page #known-conflicts .dbintel-known-conflicts-table td:nth-child(6)::before {
  content: "Linje";
}

.database-intelligence-page #known-conflicts .dbintel-known-conflicts-table td:nth-child(8) {
  grid-column: 12 / span 1;
  grid-row: 1;
}

.database-intelligence-page #known-conflicts .dbintel-known-conflicts-table td:nth-child(8)::before {
  content: "Confidence";
}

.database-intelligence-page #known-conflicts .dbintel-known-conflicts-table td:nth-child(7) {
  grid-column: 1 / span 4;
  grid-row: 2;
}

.database-intelligence-page #known-conflicts .dbintel-known-conflicts-table td:nth-child(7)::before {
  content: "Snippet";
}

.database-intelligence-page #known-conflicts .dbintel-known-conflicts-table td:nth-child(9) {
  grid-column: 5 / span 4;
  grid-row: 2;
}

.database-intelligence-page #known-conflicts .dbintel-known-conflicts-table td:nth-child(9)::before {
  content: "Problem";
}

.database-intelligence-page #known-conflicts .dbintel-known-conflicts-table td:nth-child(10) {
  grid-column: 9 / span 4;
  grid-row: 2;
}

.database-intelligence-page #known-conflicts .dbintel-known-conflicts-table td:nth-child(10)::before {
  content: "Anbefaling";
}

.database-intelligence-page #known-conflicts .dbintel-conflict-snippet {
  max-height: 150px;
  padding: 9px 10px;
}

.database-intelligence-page #known-conflicts .dbintel-path-list {
  max-width: none;
}

@media (max-width: 980px) {
  .database-intelligence-page #known-conflicts .dbintel-known-conflicts-table tr {
    grid-template-columns: 1fr;
  }

  .database-intelligence-page #known-conflicts .dbintel-known-conflicts-table td:nth-child(n) {
    grid-column: 1;
    grid-row: auto;
  }
}

.dbintel-facts {
  margin: 0;
  padding-left: 20px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.dbintel-textarea {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px;
  color: var(--text-primary);
  background: #fff;
  font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  box-shadow: inset 0 1px 2px rgba(6, 32, 51, 0.04);
}

.dbintel-textarea[readonly] {
  background: #f8fbfd;
}

.dbintel-sql-form {
  display: grid;
  gap: 12px;
}

.dbintel-sql-form .btn {
  width: fit-content;
  gap: 8px;
}

.dbintel-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.dbintel-inline-form label {
  display: grid;
  gap: 5px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 850;
}

.dbintel-inline-form select {
  min-height: 40px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  background: white;
  color: var(--text-primary);
  font: inherit;
}

.dbintel-sql-draft {
  min-height: 360px;
  white-space: pre;
}

.dbintel-sql-result {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--ss-offwhite);
}

.dbintel-sql-result h3,
.dbintel-sql-result h4 {
  margin: 0 0 10px;
}

.dbintel-sql-result h4 {
  margin-top: 14px;
  font-size: 14px;
}

.deployment-issue-grid,
.deployment-manifest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.deployment-issue-grid > div,
.deployment-manifest-grid > div {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--ss-offwhite);
  padding: 14px;
}

.deployment-issue-grid h3,
.deployment-manifest-grid h3 {
  margin: 0 0 10px;
  color: var(--text-primary);
  font-size: 15px;
}

.deployment-parser-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.deployment-filter-row {
  align-items: end;
  margin-bottom: 14px;
}

.deployment-review-check {
  min-height: 40px;
  padding: 0 10px;
}

.deployment-file-table small {
  display: block;
  margin-top: 3px;
  color: var(--text-secondary);
}

.deployment-danger-warning {
  margin-top: 0;
}

.deployment-copy-list {
  min-height: 165px;
}

.smoke-source-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.smoke-field-label {
  display: block;
  margin-bottom: 7px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.smoke-source-meta {
  margin-top: 14px;
}

.smoke-manual-table select {
  min-height: 36px;
  width: 170px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0 10px;
  background: #fff;
  color: var(--text-primary);
  font: inherit;
}

.smoke-danger-warning {
  border-color: rgba(220, 38, 38, 0.28);
  background: #fff1f2;
  color: #8f1d2c;
}

.smoke-danger-warning svg {
  color: #b91c1c;
}

.release-form-grid,
.release-text-grid,
.release-confirmation-grid {
  display: grid;
  gap: 12px;
}

.release-form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.release-text-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.release-form-grid label,
.release-text-grid label {
  display: grid;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.release-form-grid input,
.release-form-grid select,
.release-followup-table input,
.release-followup-table select {
  min-height: 38px;
  width: 100%;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0 10px;
  background: #fff;
  color: var(--text-primary);
  font: inherit;
}

.release-text-grid .dbintel-textarea {
  min-height: 120px;
  text-transform: none;
}

.release-confirmation-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 14px;
}

.release-confirmation-grid div {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--ss-offwhite);
  padding: 12px;
}

.release-confirmation-grid span {
  display: block;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.release-confirmation-grid strong {
  display: block;
  margin-top: 4px;
}

.runtime-health-page .runtime-health-hero {
  border-left: 4px solid var(--os-accent);
}

.runtime-health-inline-actions {
  margin-top: 16px;
  margin-bottom: 0;
}

.runtime-health-log-lines {
  margin-top: 8px;
}

.runtime-health-log-lines summary {
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.runtime-health-log-lines pre {
  max-height: 240px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #f8fbfd;
  color: #143447;
  font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  margin: 8px 0 0;
  padding: 10px;
}

.ai-command-page .ai-command-hero {
  border-left: 4px solid var(--os-accent);
}

.ai-command-warning {
  align-items: flex-start;
}

.ai-command-status-grid {
  margin-bottom: 18px;
}

.ai-command-action-list {
  display: grid;
  gap: 12px;
}

.ai-command-action-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fbfdff;
  padding: 14px;
}

.ai-command-action-card h3,
.ai-command-risk-card h3,
.ai-command-snippet h3 {
  margin: 8px 0 6px;
  font-size: 16px;
  line-height: 1.25;
}

.ai-command-action-card p,
.ai-command-risk-card p {
  margin: 0 0 6px;
  color: var(--text-primary);
}

.ai-command-action-card small,
.ai-command-risk-card small {
  color: var(--text-secondary);
  line-height: 1.45;
}

.ai-command-action-buttons,
.ai-command-prompt-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.ai-command-prompt-form {
  margin-bottom: 14px;
}

.ai-command-prompt-form label {
  display: grid;
  gap: 5px;
  min-width: min(100%, 260px);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.ai-command-prompt-form select {
  min-height: 40px;
  width: 100%;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  background: white;
  color: var(--text-primary);
  font: inherit;
  text-transform: none;
}

.ai-command-prompt-output {
  min-height: 560px;
}

.ai-command-snippet-grid,
.ai-command-risk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ai-command-snippet {
  margin: 0;
}

.ai-command-risk-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fbfdff;
  padding: 14px;
}

.ai-command-risk-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ai-task-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ai-task-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fbfdff;
  padding: 14px;
}

.ai-task-card h3 {
  margin: 10px 0 6px;
  font-size: 17px;
  line-height: 1.25;
}

.ai-task-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.45;
}

.ai-task-card-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ai-task-card-meta span {
  min-width: 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: white;
  padding: 8px;
  color: var(--text-secondary);
  font-size: 12px;
}

.ai-task-card-meta strong {
  display: block;
  margin-top: 3px;
  color: var(--text-primary);
}

.ai-task-actions,
.ai-task-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ai-task-readiness-list {
  margin: 0;
}

.ai-task-filter-bar {
  align-items: end;
}

.ai-task-form-grid label,
.ai-task-text-grid label {
  text-transform: none;
}

.ai-task-roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ai-task-roadmap-column {
  min-width: 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fbfdff;
  padding: 14px;
}

.ai-task-roadmap-column h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.ai-task-roadmap-item {
  display: grid;
  gap: 5px;
  border-top: 1px solid var(--border-light);
  padding: 10px 0;
}

.ai-task-roadmap-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.ai-task-roadmap-item strong {
  line-height: 1.3;
}

.ai-task-roadmap-item small {
  color: var(--text-secondary);
}

.ai-task-detail {
  scroll-margin-top: 90px;
}

.knowledge-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.knowledge-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fbfdff;
  padding: 14px;
}

.knowledge-card h3 {
  margin: 10px 0 6px;
  font-size: 17px;
  line-height: 1.25;
}

.knowledge-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.45;
}

.knowledge-card-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.knowledge-card-meta span {
  min-width: 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: white;
  padding: 8px;
  color: var(--text-secondary);
  font-size: 12px;
}

.knowledge-card-meta strong {
  display: block;
  margin-top: 3px;
  color: var(--text-primary);
}

.knowledge-actions,
.knowledge-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.knowledge-stale-list {
  margin: 0;
}

.knowledge-filter-bar,
.knowledge-context-form {
  align-items: end;
}

.checkbox-label {
  min-height: 40px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 850;
}

.checkbox-label input {
  width: 16px;
  height: 16px;
}

.knowledge-form-grid label,
.knowledge-text-grid label {
  text-transform: none;
}

.knowledge-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.knowledge-module-card {
  min-width: 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fbfdff;
  padding: 14px;
}

.knowledge-module-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.knowledge-detail {
  scroll-margin-top: 90px;
}

.qa-suite-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.qa-suite-card,
.qa-runner-case {
  display: grid;
  gap: 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fbfdff;
  padding: 14px;
}

.qa-suite-card h3,
.qa-runner-case h3 {
  margin: 10px 0 6px;
  font-size: 17px;
  line-height: 1.25;
}

.qa-suite-card p,
.qa-runner-case p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.45;
}

.qa-suite-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.qa-suite-meta span {
  min-width: 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: white;
  padding: 8px;
  color: var(--text-secondary);
  font-size: 12px;
}

.qa-suite-meta strong {
  display: block;
  margin-top: 3px;
  color: var(--text-primary);
}

.qa-actions,
.qa-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.qa-filter-bar,
.qa-builder-form {
  align-items: end;
}

.qa-form-grid label,
.qa-text-grid label {
  text-transform: none;
}

.qa-runner-form {
  display: grid;
  gap: 14px;
}

.qa-runner-list {
  display: grid;
  gap: 14px;
}

.qa-runner-case {
  grid-template-columns: minmax(0, 1.25fr) minmax(180px, 0.45fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.qa-runner-case label {
  display: grid;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 850;
}

.qa-detail {
  scroll-margin-top: 90px;
}

.security-audit-page .security-filter-bar {
  margin-bottom: 16px;
}

.security-audit-page .security-table small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  max-width: 520px;
}

.security-audit-page code {
  color: var(--ink);
  white-space: normal;
  word-break: break-word;
}

.performance-audit-page .performance-filter-bar {
  margin-bottom: 16px;
}

.performance-audit-page .performance-table code,
.performance-audit-page code {
  color: var(--ink);
  white-space: normal;
  word-break: break-word;
}

@media (max-width: 980px) {
  .deployment-issue-grid,
  .deployment-manifest-grid,
  .smoke-source-grid,
  .release-form-grid,
  .release-text-grid,
  .ai-command-snippet-grid,
  .ai-command-risk-grid,
  .ai-command-action-card,
  .ai-task-card-grid,
  .ai-task-roadmap-grid,
  .ai-task-card-meta,
  .knowledge-card-grid,
  .knowledge-card-meta,
  .knowledge-module-grid,
  .qa-suite-grid,
  .qa-suite-meta,
  .qa-runner-case {
    grid-template-columns: 1fr;
  }

  .ai-command-action-buttons {
    justify-content: flex-start;
  }
}

.dbintel-flash {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-weight: 800;
}

.dbintel-flash-ok {
  color: var(--ss-success-dark);
  background: var(--ss-success-bg);
}

.dbintel-flash-error {
  color: var(--ss-danger-dark);
  background: var(--ss-danger-bg);
}

.dbintel-bulk-form {
  display: grid;
  gap: 12px;
}

.dbintel-bulk-form > select,
.dbintel-bulk-form > input,
.dbintel-review-editor input,
.dbintel-review-editor select,
.dbintel-review-editor textarea,
.dbintel-review-detail-form input,
.dbintel-review-detail-form select,
.dbintel-review-detail-form textarea {
  min-height: 40px;
  width: 100%;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  background: white;
  color: var(--text-primary);
  font: inherit;
}

.dbintel-review-editor textarea,
.dbintel-review-detail-form textarea {
  min-height: 90px;
  padding: 10px 12px;
}

.dbintel-review-forms {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.dbintel-review-editor {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--ss-offwhite);
}

.dbintel-review-editor summary {
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 900;
}

.dbintel-review-editor form,
.dbintel-review-detail-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
  padding: 0 14px 14px;
}

.dbintel-review-detail-form {
  margin-top: 16px;
  padding: 0;
}

.dbintel-review-editor label,
.dbintel-review-detail-form label {
  display: grid;
  gap: 5px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 850;
}

.dbintel-review-note,
.dbintel-review-editor .btn,
.dbintel-review-detail-form .btn {
  grid-column: 1 / -1;
}

.preflight-checklist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.preflight-checklist {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.preflight-checklist label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-secondary);
  font-weight: 800;
}

@media (max-width: 1180px) {
  .dbintel-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dbintel-filter-bar .btn {
    width: fit-content;
  }
}

@media (max-width: 720px) {
  .dbintel-filter-bar,
  .dbintel-meta-grid,
  .dbintel-sql-grid {
    grid-template-columns: 1fr;
  }

  .dbintel-review-editor form,
  .dbintel-review-detail-form {
    grid-template-columns: 1fr;
  }

  .dbintel-badge-stack {
    justify-content: flex-start;
  }

  .preflight-checklist-grid {
    grid-template-columns: 1fr;
  }
}

.system-health-inline-form {
  display: grid;
  grid-template-columns: minmax(118px, 0.7fr) minmax(160px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.system-health-inline-form select,
.system-health-inline-form input {
  min-height: 38px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
  color: var(--text);
  font-weight: 700;
}

.system-health-inline-form .button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}

.system-health-actions {
  display: grid;
  gap: 12px;
}

.system-health-action {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  background: var(--ss-offwhite);
}

.system-health-action strong {
  display: block;
  margin-bottom: 4px;
}

.system-health-action p {
  margin: 0;
}

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

@media (max-width: 860px) {
  .system-health-kpis,
  .system-health-grid {
    grid-template-columns: 1fr;
  }

  .system-health-card .card-header-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .system-health-inline-form {
    grid-template-columns: 1fr;
  }
}

/* Infoscreen V2 styling lives in assets/css/infoscreen.css. */
.smart-upload-body .content {
  background: #f4f8fb;
  min-width: 0;
  overflow-x: hidden;
  overflow-x: clip;
}

.smart-upload-body .card,
.smart-upload-selected,
.smart-upload-supported,
.smart-upload-review-card,
.smart-upload-result-card,
.smart-upload-sticky-actions,
.smart-upload-history-table {
  box-sizing: border-box;
  max-width: 100%;
}

.smart-upload-hero,
.smart-upload-review-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.smart-upload-hero > div,
.smart-upload-review-head > div {
  min-width: 0;
}

.smart-upload-hero h1,
.smart-upload-review-head h1 {
  color: #091827;
  font-size: 34px;
  font-weight: 950;
  letter-spacing: 0;
  margin: 0 0 8px;
}

.smart-upload-hero p,
.smart-upload-review-head p {
  color: #50677c;
  margin: 0;
}

.smart-upload-zone {
  align-items: center;
  border: 2px dashed #cfe0ea;
  cursor: pointer;
  display: grid;
  gap: 26px;
  grid-template-columns: 96px minmax(0, 1fr);
  margin-bottom: 18px;
  min-height: 300px;
  padding: 56px;
  position: relative;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.smart-upload-zone:hover,
.smart-upload-zone.is-dragover {
  border-color: #d83bc1;
  box-shadow: 0 18px 45px rgba(216, 59, 193, 0.14);
  transform: translateY(-1px);
}

.smart-upload-zone h2 {
  color: #081827;
  font-size: 36px;
  font-weight: 850;
  letter-spacing: 0;
  margin: 0 0 4px;
}

.smart-upload-zone p {
  color: #29445b;
  font-size: 18px;
  font-weight: 650;
  margin: 0 0 6px;
}

.smart-upload-zone small {
  color: #6d8191;
  font-weight: 500;
}

.smart-upload-input {
  height: 1px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  width: 1px;
}

.smart-upload-zone-icon {
  align-items: center;
  background: linear-gradient(135deg, #ffe5fb, #eaf3ff);
  border-radius: 22px;
  color: #d83bc1;
  display: inline-flex;
  height: 96px;
  justify-content: center;
  width: 96px;
}

.smart-upload-zone-icon svg {
  height: 42px;
  width: 42px;
}

.smart-upload-selected,
.smart-upload-supported,
.smart-upload-review-card,
.smart-upload-result-card,
.smart-upload-sticky-actions {
  margin-bottom: 18px;
}

.smart-upload-file-list {
  display: grid;
  gap: 10px;
}

.smart-upload-file-row {
  align-items: center;
  background: #f8fbfd;
  border: 1px solid #dfe9ef;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
}

.smart-upload-file-row strong {
  color: #0a1b2b;
  display: block;
  font-weight: 900;
}

.smart-upload-file-row span,
.smart-upload-file-row em {
  color: #627789;
  font-size: 13px;
  font-style: normal;
  font-weight: 750;
}

.smart-upload-file-row em {
  background: #e7f7ee;
  border-radius: 999px;
  color: #0e8f4f;
  padding: 6px 10px;
}

.smart-upload-actions,
.smart-upload-sticky-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 16px;
}

.smart-upload-type-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.smart-upload-type-chip {
  background: #fbfdff;
  border: 1px solid #dde8ef;
  border-radius: 12px;
  display: grid;
  gap: 7px;
  padding: 14px;
}

.smart-upload-type-chip.is-link {
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.smart-upload-type-chip.is-link:hover,
.smart-upload-type-chip.is-link:focus-visible {
  border-color: #d83bc1;
  box-shadow: 0 12px 30px rgba(216, 59, 193, 0.13);
  outline: none;
  transform: translateY(-1px);
}

.smart-upload-type-chip-top {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.smart-upload-type-chip strong {
  color: #102033;
  font-weight: 950;
}

.smart-upload-type-chip span {
  color: #51677a;
  font-size: 13px;
  line-height: 1.45;
}

.smart-upload-type-chip em {
  align-items: center;
  color: #d83bc1;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  gap: 4px;
  white-space: nowrap;
}

.smart-upload-type-chip em svg {
  height: 14px;
  width: 14px;
}

.smart-upload-type-columns {
  background: #f3f8fb;
  border-radius: 8px;
  padding: 8px 10px;
}

.smart-upload-type-columns b {
  color: #29445b;
  font-weight: 850;
}

.smart-upload-type-columns.is-muted {
  background: transparent;
  color: #667b8c;
  padding: 0;
}

.smart-upload-type-chip small {
  color: #d83bc1;
  font-weight: 850;
  text-transform: uppercase;
}

.smart-upload-review-stats {
  flex: 1 1 520px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  max-width: 100%;
  min-width: 0;
}

.smart-upload-review-stats span {
  background: #f8fbfd;
  border: 1px solid #deebf2;
  border-radius: 12px;
  color: #5b7081;
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 4px;
  padding: 12px;
}

.smart-upload-review-stats strong {
  color: #102033;
  font-size: 22px;
  font-weight: 950;
}

.smart-upload-review-list,
.smart-upload-result-list {
  display: grid;
  gap: 22px;
}

.smart-upload-review-card header,
.smart-upload-result-card header {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.smart-upload-review-card,
.smart-upload-result-card {
  padding: 24px;
}

.smart-upload-review-card header > div,
.smart-upload-result-card header > div {
  min-width: 0;
}

.smart-upload-review-card h2,
.smart-upload-result-card h2 {
  color: #0a1b2b;
  font-size: 20px;
  font-weight: 760;
  letter-spacing: 0;
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}

.smart-upload-review-card p,
.smart-upload-result-card p {
  color: #596f81;
  margin: 0;
  overflow-wrap: anywhere;
}

.smart-upload-operation-card {
  align-items: center;
  background: linear-gradient(135deg, #fff7fd 0%, #f5fbff 100%);
  border: 1px solid #efd2ef;
  border-radius: 14px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: 0 0 14px;
  min-width: 0;
  padding: 14px 16px;
}

.smart-upload-operation-card > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.smart-upload-operation-card span:first-child {
  color: #8b4a7f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.smart-upload-operation-card strong {
  color: #102033;
  font-size: 18px;
  font-weight: 720;
}

.smart-upload-operation-card p {
  color: #4f6577 !important;
  font-size: 14px;
  font-weight: 500;
}

.smart-upload-review-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.smart-upload-review-grid > div,
.smart-upload-review-grid label,
.smart-upload-preview {
  background: #f8fbfd;
  border: 1px solid #dde8ef;
  border-radius: 12px;
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
}

.smart-upload-review-grid span,
.smart-upload-review-grid label > span,
.smart-upload-preview strong,
.smart-upload-result-grid dt {
  color: #52697c;
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
}

.smart-upload-review-grid strong,
.smart-upload-result-grid dd {
  color: #0e2032;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.smart-upload-review-grid select {
  background: #fff;
  border: 1px solid #ccdbe5;
  border-radius: 10px;
  color: #12263a;
  font-weight: 650;
  min-height: 42px;
  padding: 0 12px;
}

.smart-upload-toggle {
  align-items: center;
  display: flex !important;
  flex-direction: row;
  gap: 10px;
}

.smart-upload-toggle input {
  accent-color: #d83bc1;
  height: 18px;
  width: 18px;
}

.smart-upload-preview {
  margin-top: 12px;
}

.smart-upload-preview summary {
  color: #102033;
  cursor: pointer;
  font-weight: 650;
}

.smart-upload-preview-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 12px;
}

.smart-upload-preview-grid > div,
.smart-upload-filter-card {
  background: #f8fbfd;
  border: 1px solid #dde8ef;
  border-radius: 12px;
  padding: 12px;
}

.smart-upload-preview-table {
  margin-top: 12px;
  max-width: 100%;
  overflow-x: auto;
}

.smart-upload-preview-note {
  color: #607586;
  font-weight: 800;
  margin-top: 12px !important;
}

.smart-upload-preview p,
.smart-upload-preview small {
  color: #5d7385;
  font-size: 13px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.smart-upload-history-table {
  overflow-x: auto;
}

.smart-upload-warning-list,
.smart-upload-error-list {
  background: #fff8e7;
  border: 1px solid #ffe2a7;
  border-radius: 12px;
  color: #9c6300;
  font-weight: 500;
  margin: 12px 0 0;
  padding: 12px 16px 12px 32px;
}

.smart-upload-error-list {
  background: #fff1f3;
  border-color: #ffc4ce;
  color: #a20f2f;
}

.smart-upload-info-list {
  background: #f0f7ff;
  border: 1px solid #cfe2ff;
  border-radius: 12px;
  color: #245982;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  margin-top: 12px;
  padding: 12px;
}

.smart-upload-info-list span {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.smart-upload-result-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin: 0;
}

.smart-upload-result-grid div {
  background: #f8fbfd;
  border: 1px solid #dde8ef;
  border-radius: 12px;
  padding: 12px;
}

.smart-upload-result-message {
  background: #fdf7fc;
  border: 1px solid #f3d2ee;
  border-radius: 12px;
  color: #52304b !important;
  font-weight: 800;
  margin-top: 12px !important;
  padding: 12px;
}

.smart-upload-result-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.smart-upload-action-needed {
  background: #ecfdf3;
  border: 1px solid #c4f1d2;
  border-radius: 12px;
  color: #0c7d43 !important;
  font-weight: 900;
  margin: 12px 0 !important;
  padding: 10px 12px;
}

.smart-upload-action-needed.is-needed {
  background: #fff1f3;
  border-color: #ffc4ce;
  color: #a20f2f !important;
}

.smart-upload-progress-shell {
  display: grid;
  gap: 18px;
}

.smart-upload-progress-card {
  display: grid;
  gap: 16px;
}

.smart-upload-progress-head {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
}

.smart-upload-progress-head h2 {
  color: #0a1b2b;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: 0;
  margin: 10px 0 6px;
}

.smart-upload-progress-head p {
  color: #5d7385;
  font-weight: 800;
  margin: 0;
}

.smart-upload-progress-head > strong {
  color: #d83bc1;
  font-size: 34px;
  font-weight: 950;
}

.smart-upload-progress-track {
  background: #edf4f8;
  border: 1px solid #dbe8ef;
  border-radius: 999px;
  height: 16px;
  overflow: hidden;
  width: 100%;
}

.smart-upload-progress-track span {
  background: linear-gradient(90deg, #d83bc1, #ff7bd5);
  border-radius: inherit;
  display: block;
  height: 100%;
  min-width: 4px;
  transition: width 0.22s ease;
}

.smart-upload-live-status {
  background: #eef7ff;
  border: 1px solid #cae3fb;
  border-radius: 999px;
  color: #245982 !important;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  margin-top: 10px !important;
  padding: 7px 11px;
}

.smart-upload-live-status.is-active {
  background: #ecfdf3;
  border-color: #bdeccf;
  color: #0d7a45 !important;
}

.smart-upload-live-status.is-error {
  background: #fff1f3;
  border-color: #ffc4ce;
  color: #a20f2f !important;
}

.smart-upload-progress-track.is-small {
  height: 10px;
}

.smart-upload-progress-file {
  display: grid;
  gap: 12px;
}

.smart-upload-progress-file header {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
}

.smart-upload-progress-file h2 {
  color: #0a1b2b;
  font-size: 18px;
  font-weight: 720;
  letter-spacing: 0;
  margin: 0 0 4px;
  overflow-wrap: anywhere;
}

.smart-upload-progress-file p {
  color: #5f7485;
  font-weight: 500;
  margin: 0;
}

.smart-upload-progress-file-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.smart-upload-progress-file-meta span {
  background: #f8fbfd;
  border: 1px solid #deebf2;
  border-radius: 999px;
  color: #52697c;
  font-size: 12px;
  font-weight: 550;
  padding: 6px 10px;
}

.smart-upload-snapshot-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 12px;
}

.smart-upload-snapshot-grid > div {
  background: #fff;
  border: 1px solid #dde8ef;
  border-radius: 12px;
  padding: 12px;
}

.smart-upload-snapshot-grid p {
  color: #52697c;
  font-size: 13px;
  font-weight: 500;
  margin: 6px 0 0;
  overflow-wrap: anywhere;
}

.smart-upload-step-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.smart-upload-step-list article {
  align-items: center;
  background: #fff;
  border: 1px solid #dde8ef;
  border-radius: 12px;
  display: grid;
  gap: 6px;
  grid-template-columns: auto minmax(160px, 0.8fr) minmax(220px, 1.4fr) auto;
  padding: 12px;
}

.smart-upload-step-list strong {
  color: #102033;
  font-weight: 650;
}

.smart-upload-step-list p,
.smart-upload-step-list small {
  color: #52697c;
  font-size: 13px;
  font-weight: 500;
  margin: 0;
}

.smart-upload-history-filters {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.smart-upload-history-filters label {
  display: grid;
  gap: 6px;
}

.smart-upload-history-filters span {
  color: #52697c;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.smart-upload-history-filters input,
.smart-upload-history-filters select {
  background: #fff;
  border: 1px solid #ccdbe5;
  border-radius: 10px;
  color: #12263a;
  font-weight: 800;
  min-height: 42px;
  padding: 0 12px;
}

.smart-upload-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.smart-upload-session-stats {
  margin-bottom: 18px;
  min-width: 0;
}

@media (max-width: 1500px) {
  .smart-upload-type-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .smart-upload-review-grid,
  .smart-upload-preview-grid,
  .smart-upload-result-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .smart-upload-hero,
  .smart-upload-review-head,
  .smart-upload-file-row,
  .smart-upload-sticky-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .smart-upload-zone,
  .smart-upload-review-grid,
  .smart-upload-preview-grid,
  .smart-upload-result-grid,
  .smart-upload-type-grid,
  .smart-upload-review-stats,
  .smart-upload-step-list article,
  .smart-upload-history-filters {
    grid-template-columns: 1fr;
  }

  .smart-upload-review-stats {
    min-width: 0;
  }
}

@media print {
  body.is-export-printing .app-shell,
  body.is-export-printing .os-dialog,
  body.is-export-printing .os-loading-overlay,
  body.is-export-printing .os-export-mail-modal {
    display: none !important;
  }

  body.is-export-printing .os-export-print-root {
    display: block !important;
    color: #092532;
  }

  body.is-export-printing .os-export-print-root,
  body.is-export-printing .os-export-print-root *,
  body.is-export-printing .os-export-print-root .table-card {
    overflow: visible !important;
    text-overflow: clip !important;
  }

  body.is-export-printing .os-export-print-root .card,
  body.is-export-printing .os-export-print-root .table-card {
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  body.is-export-printing .os-export-print-root table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 9px;
  }

  body.is-export-printing .os-export-print-root th,
  body.is-export-printing .os-export-print-root td {
    padding: 6px 7px;
    border-bottom: 1px solid #d8e4e7;
    max-width: none !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  body.is-export-printing .os-export-print-root .warehouse-double-pick-table {
    min-width: 0 !important;
    width: 100% !important;
    table-layout: fixed !important;
  }

  body.is-export-printing .os-export-print-root .warehouse-double-pick-table .double-pick-sku-col {
    width: 14% !important;
  }

  body.is-export-printing .os-export-print-root .warehouse-double-pick-table .double-pick-description-col {
    width: 22% !important;
  }

  body.is-export-printing .os-export-print-root .warehouse-double-pick-table .double-pick-owner-col {
    width: 16% !important;
  }

  body.is-export-printing .os-export-print-root .warehouse-double-pick-table .double-pick-abc-col,
  body.is-export-printing .os-export-print-root .warehouse-double-pick-table .double-pick-pick-col {
    width: 5% !important;
  }

  body.is-export-printing .os-export-print-root .warehouse-double-pick-table .double-pick-qty-col {
    width: 8% !important;
  }

  body.is-export-printing .os-export-print-root .warehouse-double-pick-table .double-pick-locations-col {
    width: 30% !important;
  }

  body.is-export-printing .os-export-print-root .warehouse-double-pick-table .double-pick-locations-cell {
    width: auto !important;
    max-width: none !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  body.is-export-printing .os-export-print-root .os-export,
  body.is-export-printing .os-export-print-root .btn,
  body.is-export-printing .os-export-print-root button,
  body.is-export-printing .os-export-print-root form {
    display: none !important;
  }

  body.is-dialog-printing .app-shell,
  body.is-dialog-printing .os-loading-overlay,
  body.is-dialog-printing .os-dialog-close,
  body.is-dialog-printing .os-dialog-header-actions {
    display: none !important;
  }

  body.is-dialog-printing .os-dialog {
    position: static;
    width: auto;
    max-height: none;
    border: 0;
    box-shadow: none;
  }

  body.is-dialog-printing .os-dialog::backdrop {
    background: transparent;
  }

  body.is-dialog-printing .os-dialog-content {
    padding: 0;
  }
}

.inbound-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  background: white;
  color: var(--text-primary);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.inbound-detail {
  padding: 24px;
}

.inbound-detail-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-right: 44px;
  margin-bottom: 18px;
}

.inbound-detail-header h2 {
  margin: 0;
}

.inbound-detail-header p {
  margin: 6px 0 0;
  color: var(--text-secondary);
}

.inbound-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.inbound-detail-grid span {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--ss-offwhite);
}

.inbound-detail-grid small {
  color: var(--text-secondary);
}

.inbound-detail-section {
  margin-top: 18px;
}

.inbound-detail-section h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.timeline-list {
  display: grid;
  gap: 9px;
  max-height: 260px;
  overflow: auto;
}

.timeline-item {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: white;
}

.timeline-item time,
.timeline-item small {
  color: var(--text-secondary);
  font-size: 12px;
}

.alert-mini-list {
  display: grid;
  gap: 8px;
}

.alert-mini-list span {
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--ss-warning);
  border-radius: var(--radius-sm);
  background: var(--ss-offwhite);
}

.warehouse-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  background:
    linear-gradient(135deg, rgba(223, 249, 246, 0.72), rgba(255, 244, 253, 0.68)),
    white;
}

.warehouse-hero h2,
.warehouse-hero p {
  margin: 0;
}

.warehouse-hero h2 {
  margin-top: 4px;
  font-size: 28px;
}

.warehouse-hero p:not(.eyebrow) {
  margin-top: 8px;
  color: var(--text-secondary);
}

.warehouse-score {
  min-width: 170px;
  display: grid;
  gap: 8px;
  justify-items: end;
  text-align: right;
}

.warehouse-score-link {
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius-md);
}

.warehouse-score-link:hover strong {
  color: var(--ss-magenta-600);
}

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

.warehouse-score span:last-child {
  color: var(--text-secondary);
  font-size: 13px;
}

.warehouse-health-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  background:
    linear-gradient(135deg, rgba(255, 241, 247, 0.82), rgba(223, 249, 246, 0.62)),
    white;
}

.warehouse-health-hero h2,
.warehouse-health-hero p {
  margin: 0;
}

.warehouse-health-hero h2 {
  margin-top: 4px;
  font-size: 48px;
  line-height: 1;
}

.warehouse-health-hero p:not(.eyebrow) {
  margin-top: 8px;
  max-width: 720px;
  color: var(--text-secondary);
}

.warehouse-health-summary {
  min-width: 180px;
  display: grid;
  justify-items: end;
  gap: 8px;
  text-align: right;
}

.warehouse-health-summary strong {
  color: var(--text-primary);
  font-size: 38px;
  line-height: 1;
}

.warehouse-health-summary small {
  color: var(--text-secondary);
  font-size: 13px;
}

.warehouse-health-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.warehouse-health-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  margin-bottom: 18px;
}

.warehouse-health-actions {
  display: grid;
  gap: 12px;
}

.warehouse-health-action {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px 14px;
  align-items: center;
  padding: 14px;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--border);
  border-left: 4px solid var(--ss-warning);
  border-radius: var(--radius-sm);
  background: #fff;
}

.warehouse-health-action:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.warehouse-health-action.tone-danger {
  border-left-color: var(--ss-danger);
}

.warehouse-health-action.tone-success {
  border-left-color: var(--ss-success);
}

.warehouse-health-action strong {
  color: var(--text-primary);
  font-size: 15px;
}

.warehouse-health-action em {
  color: var(--text-primary);
  font-style: normal;
  font-weight: 850;
}

.warehouse-health-action p {
  grid-column: 2 / 4;
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.35;
}

.warehouse-health-impact {
  align-self: start;
  padding: 5px 9px;
  color: var(--ss-warning-dark);
  background: var(--ss-warning-bg);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.warehouse-health-explain h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.warehouse-health-explain p {
  margin: 0 0 10px;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .warehouse-health-kpis,
  .warehouse-health-layout {
    grid-template-columns: 1fr;
  }
}

.warehouse-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 18px;
}

.warehouse-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.warehouse-hub-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.warehouse-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.warehouse-nav-card {
  min-height: 156px;
  display: grid;
  gap: 10px;
  align-content: start;
  color: var(--text-primary);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.warehouse-nav-card:hover,
.warehouse-nav-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--os-accent);
  box-shadow: var(--shadow-md);
  outline: 0;
}

.warehouse-nav-card span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--module-wis);
  background: var(--ss-magenta-100);
}

.warehouse-nav-card strong {
  font-size: 17px;
}

.warehouse-nav-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.45;
}

.warehouse-filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}

.warehouse-filter-bar-inline {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

body.warehouse-page .kpi-grid {
  margin-top: 18px;
}

body.warehouse-page .kpi-grid + .table-card {
  margin-top: 18px;
}

.warehouse-filter-bar label {
  display: grid;
  gap: 7px;
}

.warehouse-filter-bar label > span {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.warehouse-filter-bar input,
.warehouse-filter-bar select {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  color: var(--text-primary);
  background: white;
}

.warehouse-filter-bar .btn {
  min-height: 42px;
}

.warehouse-table-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 0;
  border-top: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.warehouse-table-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.warehouse-table-pager a,
.warehouse-table-pager select {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #fff;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-xs);
}

.warehouse-table-pager a.is-active {
  border-color: rgba(218, 38, 187, 0.28);
  background: rgba(218, 38, 187, 0.1);
  color: var(--os-accent-dark);
}

.warehouse-table-pager a.is-disabled {
  pointer-events: none;
  opacity: 0.45;
}

.warehouse-table-pager svg {
  width: 16px;
  height: 16px;
}

.warehouse-table-pager form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.warehouse-table-pager span {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.warehouse-locations-page .page-heading {
  margin-bottom: 16px;
}

.location-analysis-panel {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
}

.location-analysis-panel h2,
.location-analysis-panel p {
  margin: 0;
}

.location-analysis-panel h2 {
  margin-top: 2px;
  color: var(--text-primary);
  font-size: 20px;
  line-height: 1.15;
}

.location-analysis-panel p:not(.eyebrow) {
  margin-top: 5px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.35;
}

.location-analysis-panel-side {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.location-analysis-panel-side > span {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
}

.warehouse-locations-page .location-kpi-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
  margin-bottom: 16px;
}

.warehouse-locations-page .location-kpi-grid .kpi-card {
  min-height: 118px;
  padding: 16px;
  border-color: rgba(15, 35, 42, 0.08);
  box-shadow: 0 10px 24px rgba(15, 35, 42, 0.055);
}

.warehouse-locations-page .location-kpi-grid .kpi-card::before {
  left: 16px;
  width: 24px;
  height: 2px;
  opacity: 0.5;
}

.warehouse-locations-page .location-kpi-grid .kpi-icon {
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.warehouse-locations-page .location-kpi-grid .kpi-label {
  margin-top: 18px;
  font-size: 11px;
  line-height: 1.2;
}

.warehouse-locations-page .location-kpi-grid .kpi-value {
  font-size: 26px;
}

.warehouse-locations-page .location-kpi-grid .kpi-helper {
  font-size: 12px;
  line-height: 1.3;
}

.warehouse-locations-page .location-kpi-grid .kpi-card:nth-child(1)::before,
.warehouse-locations-page .location-kpi-grid .kpi-card:nth-child(1) .kpi-icon {
  color: #7c3aed;
  background: #f3e8ff;
}

.warehouse-locations-page .location-kpi-grid .kpi-card:nth-child(2)::before,
.warehouse-locations-page .location-kpi-grid .kpi-card:nth-child(2) .kpi-icon {
  color: #2587ff;
  background: #e5f2ff;
}

.warehouse-locations-page .location-kpi-grid .kpi-card:nth-child(3)::before,
.warehouse-locations-page .location-kpi-grid .kpi-card:nth-child(3) .kpi-icon {
  color: #14b8a6;
  background: #defaf2;
}

.warehouse-locations-page .location-kpi-grid .kpi-card:nth-child(4)::before,
.warehouse-locations-page .location-kpi-grid .kpi-card:nth-child(4) .kpi-icon {
  color: #f59e0b;
  background: #fff2d6;
}

.warehouse-locations-page .location-kpi-grid .kpi-card:nth-child(5)::before,
.warehouse-locations-page .location-kpi-grid .kpi-card:nth-child(5) .kpi-icon {
  color: #f43f7f;
  background: #ffe6f1;
}

.warehouse-locations-page .location-kpi-grid .kpi-card:nth-child(6)::before,
.warehouse-locations-page .location-kpi-grid .kpi-card:nth-child(6) .kpi-icon {
  color: #16a34a;
  background: #defae9;
}

.location-analysis-workbench {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
  padding: 16px;
}

.location-workbench-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.location-workbench-head h2,
.location-workbench-head p {
  margin: 0;
}

.location-workbench-head h2 {
  margin-top: 2px;
  color: var(--text-primary);
  font-size: 20px;
  line-height: 1.2;
}

.location-workbench-head p:not(.eyebrow) {
  margin-top: 5px;
  color: var(--text-secondary);
  font-size: 13px;
}

.location-analysis-insight {
  min-width: 150px;
  display: grid;
  gap: 2px;
  align-content: center;
  padding: 10px 12px;
  border: 1px solid rgba(217, 87, 204, 0.22);
  border-radius: var(--radius-sm);
  background: rgba(217, 87, 204, 0.055);
  color: var(--text-primary);
  text-decoration: none;
}

.location-analysis-insight span {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.location-analysis-insight strong {
  color: var(--os-accent-dark);
  font-size: 22px;
  line-height: 1;
}

.location-analysis-switcher,
.location-quality-switcher {
  display: flex;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  padding: 3px 0 8px;
  scrollbar-width: thin;
}

.location-analysis-switcher a,
.location-quality-switcher a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-xs);
}

.location-analysis-switcher a:hover,
.location-analysis-switcher a.is-active,
.location-quality-switcher a:hover,
.location-quality-switcher a.is-active {
  border-color: rgba(217, 87, 204, 0.32);
  background: rgba(217, 87, 204, 0.1);
  color: var(--os-accent-dark);
}

.location-analysis-switcher em {
  min-width: 22px;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border-radius: var(--radius-pill);
  background: var(--ss-offwhite);
  color: var(--text-secondary);
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
}

.location-analysis-switcher a.is-active em {
  background: #fff;
  color: var(--os-accent-dark);
}

.location-table-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) repeat(3, minmax(150px, 0.55fr)) auto;
  gap: 10px;
  align-items: end;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.location-table-toolbar label {
  display: grid;
  gap: 6px;
}

.location-table-toolbar label[hidden] {
  display: none;
}

.location-table-toolbar label > span {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.location-table-toolbar input,
.location-table-toolbar select {
  min-height: 38px;
  width: 100%;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0 11px;
  color: var(--text-primary);
  background: #fff;
}

.location-table-toolbar > span {
  align-self: center;
  justify-self: end;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
}

.warehouse-locations-page .table-card {
  border-radius: 16px;
}

.warehouse-locations-page .table-card .card-header {
  padding-bottom: 12px;
}

.warehouse-locations-page .table-card .os-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fbfb;
}

.warehouse-locations-page .table-card .os-table th,
.warehouse-locations-page .table-card .os-table td {
  padding-top: 14px;
  padding-bottom: 14px;
  vertical-align: top;
}

.warehouse-locations-page .double-pick-locations-cell {
  max-width: 460px;
  color: var(--text-secondary);
  font-size: 13px;
}

.location-empty-state {
  display: grid;
  place-items: center;
  gap: 5px;
  padding: 30px 16px;
  color: var(--text-secondary);
  text-align: center;
}

.location-empty-state strong {
  color: var(--text-primary);
  font-size: 16px;
}

.location-empty-state span {
  font-size: 13px;
}

@media (max-width: 1320px) {
  .warehouse-locations-page .location-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .location-table-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .location-table-toolbar > span {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .location-analysis-panel,
  .location-workbench-head {
    align-items: stretch;
    flex-direction: column;
  }

  .location-analysis-panel-side {
    justify-content: flex-start;
  }

  .warehouse-locations-page .location-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .location-table-toolbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .warehouse-locations-page .location-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.sku-locator-card {
  overflow: visible;
}

.sku-locator-upload-form {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(220px, 320px);
  gap: 14px;
  align-items: stretch;
  margin-top: 16px;
}

.sku-locator-file-field {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: center;
  min-height: 78px;
  padding: 14px 16px;
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(248,251,253,0.95));
}

.sku-locator-file-field > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  grid-row: span 3;
  border-radius: 14px;
  color: var(--os-accent);
  background: rgba(214, 43, 184, 0.10);
}

.sku-locator-file-field strong {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 900;
}

.sku-locator-file-field small {
  color: var(--text-secondary);
  font-size: 12px;
}

.sku-locator-file-field input[type="file"] {
  width: 100%;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
}

.sku-locator-file-field input[type="file"]::file-selector-button {
  min-height: 32px;
  margin-right: 10px;
  padding: 0 12px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--text-primary);
  font-weight: 800;
  cursor: pointer;
}

.sku-locator-file-field input[type="file"]::file-selector-button:hover {
  border-color: rgba(214, 43, 184, 0.45);
  color: var(--os-accent);
}

.sku-locator-submit {
  min-height: 78px;
  justify-content: center;
  box-shadow: 0 14px 28px rgba(214, 43, 184, 0.18);
}

.sku-locator-notices {
  display: grid;
  gap: 8px;
  margin: 14px 0 4px;
}

.sku-locator-notice {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 11px 13px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  font-weight: 800;
}

.sku-locator-notice svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.sku-locator-notice-error {
  color: #991b1b;
  border-color: rgba(239, 68, 68, 0.22);
  background: #fff1f2;
}

.sku-locator-notice-warning {
  color: #92400e;
  border-color: rgba(245, 158, 11, 0.24);
  background: #fff7ed;
}

.sku-locator-empty-card .empty-state {
  min-height: 110px;
}

.sku-locator-table td {
  vertical-align: top;
}

.sku-locator-table {
  min-width: 1120px;
}

.sku-locator-table th:nth-child(1),
.sku-locator-table td:nth-child(1) {
  min-width: 90px;
}

.sku-locator-table th:nth-child(2),
.sku-locator-table td:nth-child(2),
.sku-locator-table th:nth-child(4),
.sku-locator-table td:nth-child(4) {
  min-width: 140px;
}

.sku-locator-table th:nth-child(3),
.sku-locator-table td:nth-child(3) {
  min-width: 320px;
  white-space: normal;
}

.sku-locator-table th:nth-child(5),
.sku-locator-table td:nth-child(5) {
  min-width: 140px;
}

.sku-locator-table .sku-locator-location-cell {
  min-width: 150px;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  line-height: 1.45;
}

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

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.btn-small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.owner-detail-card {
  margin-top: 18px;
}

.owner-masterdata-panel,
.owner-ops-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.owner-masterdata-panel {
  display: grid;
  gap: 16px;
  margin: 18px 0;
  padding: 18px;
}

.owner-masterdata-panel > header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.owner-masterdata-panel h3,
.owner-masterdata-panel p,
.owner-ops-card h3,
.owner-ops-card p {
  margin: 0;
}

.owner-masterdata-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.owner-masterdata-grid article {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--ss-offwhite);
}

.owner-masterdata-grid span,
.owner-masterdata-grid strong {
  display: block;
}

.owner-masterdata-grid span,
.owner-ops-card small,
.owner-ops-metrics {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.4;
}

.owner-masterdata-grid span {
  font-weight: 850;
  text-transform: uppercase;
}

.owner-masterdata-grid strong {
  margin-top: 5px;
  color: var(--text-primary);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.owner-ops-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.owner-ops-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 18px;
}

.owner-ops-card > div:first-child {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
}

.owner-ops-card > div:first-child .eyebrow {
  grid-column: 2;
}

.owner-ops-card > div:first-child h3 {
  grid-column: 2;
}

.owner-ops-icon {
  grid-row: 1 / span 2;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--os-accent);
  background: var(--os-accent-soft);
}

.owner-ops-card > strong {
  font-size: 27px;
  line-height: 1;
}

.owner-ops-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.owner-ops-metrics span {
  padding: 6px 9px;
  border-radius: var(--radius-pill);
  background: var(--ss-offwhite);
}

.owner-detail-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.owner-detail-kpis article {
  padding: 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--ss-offwhite);
}

.owner-detail-kpis span,
.owner-detail-kpis small {
  display: block;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.35;
}

.owner-detail-kpis span {
  font-weight: 850;
  text-transform: uppercase;
}

.owner-detail-kpis strong {
  display: block;
  margin: 7px 0 4px;
  font-size: 24px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.owner-portal-panel {
  display: grid;
  gap: 16px;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--ss-magenta-50), #fff 42%);
}

.owner-portal-panel > header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.owner-portal-panel h3,
.owner-portal-panel h4,
.owner-portal-panel p {
  margin: 0;
}

.owner-portal-panel p,
.owner-portal-panel small {
  color: var(--text-secondary);
}

.owner-portal-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.owner-portal-access-form {
  display: grid;
  gap: 10px;
}

.owner-portal-access-form label {
  display: grid;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 800;
}

.owner-portal-access-form input,
.owner-portal-access-form select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-primary);
}

.csp-invite-panel {
  max-width: 760px;
}

.csp-invite-form {
  max-width: 560px;
}

.owner-portal-users {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.owner-pricing-panel {
  display: grid;
  gap: 16px;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #fff, var(--ss-magenta-50) 120%);
}

.owner-pricing-panel > header,
.owner-pricing-section .card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.owner-pricing-panel h3,
.owner-pricing-panel h4,
.owner-pricing-panel p {
  margin: 0;
}

.owner-pricing-panel p,
.owner-pricing-panel small {
  color: var(--text-secondary);
}

.owner-pricing-note {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 750;
  padding: 11px 12px;
}

.owner-pricing-kpis {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.owner-pricing-kpis article,
.owner-pricing-section {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fff;
}

.owner-pricing-kpis article {
  min-width: 0;
  padding: 14px;
}

.owner-pricing-kpis span,
.owner-pricing-kpis strong,
.owner-pricing-kpis small {
  display: block;
}

.owner-pricing-kpis span {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.owner-pricing-kpis strong {
  margin: 6px 0 4px;
  color: var(--text-primary);
  font-size: 20px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.owner-pricing-section {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.owner-danger-action {
  color: var(--ss-danger-dark);
}

.owner-stock-table th,
.owner-stock-table td {
  white-space: normal;
}

.owner-stock-table td:nth-child(2) {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
}

.warehouse-next-card {
  display: grid;
  gap: 14px;
}

.warehouse-next-card h2,
.warehouse-next-card p {
  margin: 0;
}

.warehouse-next-card > p:not(.eyebrow) {
  max-width: 820px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.settings-list {
  display: grid;
  gap: 10px;
}

.settings-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  background: var(--ss-offwhite);
}

.settings-list a:hover,
.settings-list a:focus-visible {
  border-color: var(--os-accent);
  outline: 0;
}

.settings-list span {
  color: var(--text-secondary);
  font-weight: 800;
}

.report-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.report-card-header h2,
.report-card-header p {
  margin: 0;
}

.report-card-header p:not(.eyebrow) {
  margin-top: 6px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.pickpack-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pickpack-flow-grid,
.pickpack-period-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.pickpack-flow-grid div,
.pickpack-period-summary div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--ss-offwhite);
}

.pickpack-period-summary {
  margin-bottom: 18px;
}

.pickpack-flow-grid span,
.pickpack-period-summary span,
.pickpack-flow-grid small,
.pickpack-period-summary small {
  color: var(--text-secondary);
}

.pickpack-flow-grid strong,
.pickpack-period-summary strong {
  font-size: 20px;
}

.pickpack-hour-grid {
  display: grid;
  gap: 8px;
}

.hour-row {
  display: grid;
  grid-template-columns: 64px repeat(3, minmax(80px, 1fr)) 120px;
  gap: 10px;
  align-items: center;
  color: var(--text-secondary);
  font-size: 13px;
}

.hour-row strong {
  color: var(--text-primary);
}

.hour-row span {
  height: 9px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--ss-cloud);
}

.hour-row span:nth-of-type(1) i {
  background: var(--module-workday);
}

.hour-row span:nth-of-type(2) i {
  background: var(--module-pi);
}

.hour-row span:nth-of-type(3) i {
  background: var(--module-wis);
}

.hour-row i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  transition: width 220ms ease;
}

.hour-row em {
  color: var(--text-secondary);
  font-style: normal;
  text-align: right;
}

.pickpack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.pickpack-grid + .card,
.card + .pickpack-grid,
.pickpack-grid + .pickpack-grid {
  margin-top: 18px;
}

.pp-filter-panel,
.pp-view-tabs,
.pp-kpi-grid,
.pp-dashboard-grid,
.pp-two-col,
.pp-orders-layout,
.pp-trend-layout {
  margin-top: 18px;
}

.pp-filter-panel {
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.pp-filter-bar {
  display: grid;
  grid-template-columns: minmax(150px, 0.85fr) minmax(150px, 0.85fr) minmax(220px, 1.2fr) minmax(240px, 1.25fr) minmax(150px, 0.72fr) minmax(130px, 0.62fr);
  gap: 12px;
  align-items: end;
}

.pp-filter-bar label {
  display: grid;
  gap: 7px;
}

.pp-filter-bar label > span {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pp-filter-bar input,
.pp-filter-bar select {
  min-height: 44px;
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 10px;
  padding: 0 13px;
  color: var(--text-primary);
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.02);
}

.pp-filter-bar .btn {
  min-height: 44px;
  justify-content: center;
}

.pp-view-tabs {
  width: min(1040px, 100%);
  display: flex;
  gap: 6px;
  align-items: center;
  overflow-x: auto;
  padding: 7px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.pp-view-tabs a {
  min-height: 38px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.pp-view-tabs a:hover,
.pp-view-tabs a:focus-visible {
  background: rgba(218, 38, 187, 0.08);
  color: var(--ss-magenta-dark);
  outline: 0;
}

.pp-view-tabs a.is-active {
  color: var(--ss-magenta-dark);
  background: rgba(218, 38, 187, 0.11);
  box-shadow: inset 0 0 0 1px rgba(218, 38, 187, 0.08);
}

.pp-view-tabs svg {
  width: 18px;
  height: 18px;
}

.pp-kpi-grid {
  display: grid;
  gap: 16px;
}

.pp-kpi-grid-overview {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pp-kpi-grid-load,
.pp-kpi-grid-orders {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.pp-kpi-grid-flow,
.pp-kpi-grid-team,
.pp-kpi-grid-owners {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pp-kpi-card {
  min-height: 124px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 88px;
  gap: 15px;
  align-items: center;
  padding: 20px 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: linear-gradient(145deg, #fff 0%, rgba(248, 250, 252, 0.9) 100%);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.pp-kpi-card:hover {
  transform: translateY(-1px);
  border-color: rgba(218, 38, 187, 0.16);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.pp-kpi-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: var(--pp-accent, var(--os-accent));
  background: color-mix(in srgb, var(--pp-accent, var(--os-accent)) 13%, #fff);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--pp-accent, var(--os-accent)) 18%, transparent);
}

.pp-kpi-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.1;
}

.pp-kpi-card small,
.pp-kpi-card em {
  display: block;
}

.pp-kpi-card small {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.pp-kpi-card strong {
  display: block;
  margin-top: 6px;
  color: var(--text-primary);
  font-size: clamp(24px, 2vw, 31px);
  font-weight: 900;
  line-height: 1;
}

.pp-kpi-card em {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.35;
}

.pp-sparkline {
  width: 88px;
  height: 38px;
}

.pp-sparkline polyline {
  fill: none;
  stroke: var(--pp-accent, var(--os-accent));
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pp-kpi-card.tone-pink,
.pp-sparkline-pink {
  --pp-accent: #da26bb;
}

.pp-kpi-card.tone-purple,
.pp-sparkline-purple {
  --pp-accent: #8b5cf6;
}

.pp-kpi-card.tone-blue,
.pp-sparkline-blue {
  --pp-accent: #2f80ed;
}

.pp-kpi-card.tone-teal,
.pp-sparkline-teal {
  --pp-accent: #14b8b0;
}

.pp-kpi-card.tone-orange,
.pp-sparkline-orange {
  --pp-accent: #f59e0b;
}

.pp-kpi-card.tone-green,
.pp-sparkline-green {
  --pp-accent: #22c55e;
}

.pp-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.88fr) minmax(300px, 0.78fr);
  gap: 18px;
  align-items: start;
}

.pp-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.pp-load-layout {
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.8fr);
}

.pp-owner-layout {
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.85fr);
}

.pp-orders-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.32fr);
  gap: 18px;
  align-items: start;
}

.pp-trend-layout {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.65fr);
}

.pp-card {
  border-radius: 18px;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.pp-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.pp-card-head h2,
.pp-card-head p {
  margin: 0;
}

.pp-card-head h2 {
  font-size: 18px;
  line-height: 1.2;
}

.pp-card-head p:not(.eyebrow) {
  margin-top: 5px;
  color: var(--text-secondary);
  font-size: 13px;
}

.pp-card-head a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.pp-card-head a:hover,
.pp-card-head a:focus-visible {
  color: var(--ss-magenta-dark);
  outline: 0;
}

.pp-card-head a svg {
  width: 16px;
  height: 16px;
}

.pp-flow-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.pp-flow-metrics div,
.pp-flow-bars div,
.pp-peak-list div,
.pp-mini-load div {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.62);
}

.pp-flow-metrics div {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.pp-flow-metrics span,
.pp-flow-bars span,
.pp-peak-list span,
.pp-mini-load span {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}

.pp-flow-metrics strong,
.pp-flow-bars strong,
.pp-peak-list strong {
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 850;
  line-height: 1.05;
}

.pp-flow-metrics small,
.pp-flow-bars small,
.pp-peak-list em {
  color: var(--text-secondary);
  font-size: 12px;
  font-style: normal;
}

.pp-mini-load {
  display: grid;
  gap: 10px;
}

.pp-mini-load div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
}

.pp-mini-load i,
.pp-flow-bars i,
.pp-progress,
.pp-hour-bar-row span {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.07);
}

.pp-mini-load i,
.pp-flow-bars i {
  height: 9px;
}

.pp-mini-load b,
.pp-flow-bars b,
.pp-progress b,
.pp-hour-bar-row i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ss-magenta-700), var(--ss-magenta-500));
  transition: width 220ms ease;
}

.pp-insight-list {
  display: grid;
  gap: 12px;
}

.pp-insight-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 0;
}

.pp-insight-item + .pp-insight-item {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.pp-insight-item > span {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: var(--pp-insight, var(--os-accent));
  background: color-mix(in srgb, var(--pp-insight, var(--os-accent)) 12%, #fff);
}

.pp-insight-item.success {
  --pp-insight: var(--ss-success);
}

.pp-insight-item.warning {
  --pp-insight: var(--ss-warning);
}

.pp-insight-item.danger {
  --pp-insight: var(--ss-danger);
}

.pp-insight-item.info {
  --pp-insight: var(--ss-info);
}

.pp-insight-item strong,
.pp-insight-item small {
  display: block;
}

.pp-insight-item strong {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 800;
}

.pp-insight-item small {
  margin-top: 3px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.35;
}

.pp-flow-bars {
  display: grid;
  gap: 14px;
}

.pp-flow-bars div {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 110px minmax(160px, 1.4fr) 90px;
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.pp-hour-bars {
  display: grid;
  gap: 9px;
}

.pp-hour-legend {
  display: flex;
  gap: 18px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
}

.pp-hour-legend span::before {
  content: "";
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
}

.pp-hour-legend .created {
  color: #8b5cf6;
}

.pp-hour-legend .picked {
  color: #14b8b0;
}

.pp-hour-legend .packed {
  color: #f59e0b;
}

.pp-hour-bar-row {
  display: grid;
  grid-template-columns: 62px repeat(3, minmax(80px, 1fr)) 64px;
  gap: 10px;
  align-items: center;
}

.pp-hour-bar-row strong {
  color: var(--text-secondary);
  font-size: 12px;
}

.pp-hour-bar-row span {
  height: 10px;
}

.pp-hour-bar-row i.created {
  background: #8b5cf6;
}

.pp-hour-bar-row i.picked {
  background: #14b8b0;
}

.pp-hour-bar-row i.packed {
  background: #f59e0b;
}

.pp-hour-bar-row em {
  color: var(--text-secondary);
  font-size: 12px;
  font-style: normal;
  text-align: right;
}

.pp-peak-list {
  display: grid;
  gap: 12px;
}

.pp-peak-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  align-items: center;
  padding: 15px;
}

.pp-peak-list span {
  grid-column: 1 / -1;
}

.pp-heat-table {
  min-width: 900px;
}

.pp-heat-table td span {
  display: inline-flex;
  min-width: 38px;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: color-mix(in srgb, var(--ss-magenta-500) var(--heat, 0%), rgba(248, 250, 252, 1));
  color: var(--text-primary);
  font-size: 12px;
}

.pp-rank {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--ss-magenta-700), var(--ss-magenta-500));
  font-size: 11px;
  font-weight: 800;
}

.pp-progress {
  width: min(140px, 100%);
  height: 8px;
  display: inline-block;
  margin-right: 10px;
  vertical-align: middle;
}

.pp-side-stack {
  display: grid;
  gap: 18px;
}

.pp-order-insights {
  position: sticky;
  top: 82px;
}

.pp-line-chart {
  width: 100%;
  min-height: 280px;
  display: block;
}

.pp-chart-grid {
  stroke: rgba(15, 23, 42, 0.08);
  stroke-width: 1;
}

.pp-chart-average {
  stroke: rgba(218, 38, 187, 0.35);
  stroke-width: 1.4;
  stroke-dasharray: 5 6;
}

.pp-chart-area {
  fill: rgba(218, 38, 187, 0.08);
}

.pp-chart-line {
  fill: none;
  stroke: var(--ss-magenta-600);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pp-chart-label {
  fill: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
}

.pp-empty-chart {
  min-height: 220px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(15, 23, 42, 0.16);
  border-radius: 14px;
  color: var(--text-secondary);
  background: rgba(248, 250, 252, 0.7);
}

@media (max-width: 1500px) {
  .pp-filter-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pp-kpi-grid-overview,
  .pp-kpi-grid-load,
  .pp-kpi-grid-orders {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pp-dashboard-grid,
  .pp-load-layout,
  .pp-orders-layout,
  .pp-trend-layout {
    grid-template-columns: 1fr;
  }

  .pp-order-insights {
    position: static;
  }
}

@media (max-width: 1120px) {
  .pp-kpi-grid-overview,
  .pp-kpi-grid-load,
  .pp-kpi-grid-orders,
  .pp-kpi-grid-flow,
  .pp-kpi-grid-team,
  .pp-kpi-grid-owners,
  .pp-flow-metrics,
  .pp-two-col,
  .pp-owner-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pp-kpi-card {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .pp-kpi-card .pp-sparkline {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 720px) {
  body.pickpack-page .content {
    padding-left: 14px;
    padding-right: 14px;
  }

  .pp-filter-bar,
  .pp-kpi-grid-overview,
  .pp-kpi-grid-load,
  .pp-kpi-grid-orders,
  .pp-kpi-grid-flow,
  .pp-kpi-grid-team,
  .pp-kpi-grid-owners,
  .pp-flow-metrics,
  .pp-two-col,
  .pp-owner-layout {
    grid-template-columns: 1fr;
  }

  .pp-view-tabs {
    width: 100%;
  }

  .pp-flow-bars div {
    grid-template-columns: 1fr;
  }

  .pp-hour-bar-row {
    grid-template-columns: 52px minmax(0, 1fr) 48px;
  }

  .pp-hour-bar-row span:nth-of-type(2),
  .pp-hour-bar-row span:nth-of-type(3) {
    display: none;
  }
}

.table-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 14px 0 0;
}

.table-pager .btn {
  min-width: 34px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  box-shadow: none;
  font-size: 13px;
  font-weight: 700;
}

.table-pager .btn-secondary {
  background: #fff;
}

.table-pager .btn-primary {
  border-color: rgba(218, 38, 187, 0.24);
  background: rgba(218, 38, 187, 0.12);
  color: var(--ss-magenta-dark);
}

.table-pager .disabled {
  pointer-events: none;
  opacity: 0.45;
}

.table-pager span {
  color: var(--text-secondary);
}

.score-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 900;
}

.score-pill.neutral {
  color: var(--ss-info-dark);
  background: var(--ss-info-bg);
}

.score-pill.success {
  color: var(--ss-success-dark);
  background: var(--ss-success-bg);
}

.score-pill.warning {
  color: var(--ss-warning-dark);
  background: var(--ss-warning-bg);
}

.sortable-table th,
.table[data-sortable-table="1"] th {
  cursor: pointer;
  user-select: none;
}

.sortable-table th.sort-asc::after,
.table[data-sortable-table="1"] th.sort-asc::after {
  content: " \2191";
}

.sortable-table th.sort-desc::after,
.table[data-sortable-table="1"] th.sort-desc::after {
  content: " \2193";
}

.accuracy-visual-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}

.os-mini-chart {
  min-height: 260px;
}

.donut-chart {
  width: min(190px, 70vw);
  aspect-ratio: 1;
  margin: 10px auto 18px;
  border-radius: 50%;
  background:
    conic-gradient(
      var(--ss-success) 0 calc(var(--cycle, 0) * 1%),
      var(--ss-info) calc(var(--cycle, 0) * 1%) calc((var(--cycle, 0) + var(--found, 0)) * 1%),
      var(--ss-danger) calc((var(--cycle, 0) + var(--found, 0)) * 1%) 100%
    );
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(3, 25, 31, 0.06);
}

.donut-chart::after {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: var(--card-bg);
  box-shadow: inset 0 0 0 1px var(--border-light);
}

.chart-legend {
  display: grid;
  gap: 8px;
}

.chart-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-weight: 800;
}

.chart-legend i {
  width: 11px;
  height: 11px;
  border-radius: var(--radius-pill);
}

.legend-success i {
  background: var(--ss-success);
}

.legend-info i {
  background: var(--ss-info);
}

.legend-danger i {
  background: var(--ss-danger);
}

.bar-trend-chart {
  display: flex;
  align-items: end;
  gap: 10px;
  min-height: 180px;
  padding-top: 18px;
}

.bar-trend-chart span {
  display: grid;
  align-items: end;
  justify-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  height: 160px;
}

.bar-trend-chart i {
  display: block;
  width: 100%;
  min-height: 8px;
  max-width: 34px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: linear-gradient(180deg, var(--ss-teal-500), var(--ss-magenta-500));
}

.bar-trend-chart small {
  width: 100%;
  overflow: hidden;
  color: var(--text-secondary);
  font-weight: 800;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.horizontal-bars {
  display: grid;
  gap: 12px;
}

.horizontal-bars span {
  display: grid;
  grid-template-columns: minmax(90px, 1.2fr) minmax(120px, 2fr) auto;
  align-items: center;
  gap: 10px;
}

.horizontal-bars strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.horizontal-bars i {
  display: block;
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--ss-cloud);
  overflow: hidden;
}

.horizontal-bars em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--ss-warning);
}

.horizontal-bars small {
  color: var(--text-secondary);
  font-weight: 900;
}

.warehouse-accuracy-page .page-heading {
  margin-bottom: 16px;
}

.accuracy-toolbar-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(520px, 1.4fr);
  gap: 20px;
  align-items: center;
  padding: 18px 20px;
  margin-bottom: 16px;
}

.accuracy-toolbar-copy {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.accuracy-toolbar-icon,
.accuracy-kpi-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--os-accent);
  background: rgba(217, 87, 204, 0.11);
  box-shadow: 0 10px 22px rgba(217, 87, 204, 0.12);
}

.accuracy-toolbar-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
}

.accuracy-toolbar-card h2,
.accuracy-toolbar-card p {
  margin: 0;
}

.accuracy-toolbar-card h2 {
  margin-top: 2px;
  color: var(--text-primary);
  font-size: 20px;
  line-height: 1.15;
}

.accuracy-toolbar-card p:not(.eyebrow) {
  margin-top: 5px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.35;
}

.accuracy-toolbar-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.65fr) minmax(150px, 0.65fr) minmax(140px, 0.55fr);
  gap: 10px;
  align-items: end;
}

.accuracy-toolbar-form label {
  display: grid;
  gap: 6px;
}

.accuracy-toolbar-form label > span {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.accuracy-toolbar-form select {
  min-height: 40px;
  width: 100%;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  background: #fff;
  color: var(--text-primary);
}

.accuracy-toolbar-form .btn {
  min-height: 40px;
  justify-content: center;
}

.accuracy-kpi-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) repeat(5, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.accuracy-kpi-card {
  position: relative;
  min-width: 0;
  min-height: 126px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(15, 35, 42, 0.08);
  border-radius: 18px;
  background: linear-gradient(145deg, #fff 0%, rgba(248, 251, 253, 0.9) 100%);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.accuracy-kpi-card::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 0;
  width: 28px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--accuracy-tone, var(--os-accent));
  opacity: 0.4;
}

.accuracy-kpi-card p,
.accuracy-kpi-card strong,
.accuracy-kpi-card small {
  display: block;
  margin: 0;
}

.accuracy-kpi-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: var(--accuracy-tone, var(--os-accent));
  background: var(--accuracy-soft, rgba(217, 87, 204, 0.11));
  box-shadow: 0 10px 22px var(--accuracy-shadow, rgba(217, 87, 204, 0.12));
}

.accuracy-kpi-card p {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.accuracy-kpi-card strong {
  margin-top: 7px;
  color: var(--text-primary);
  font-size: 28px;
  font-weight: 900;
  line-height: 0.98;
  overflow-wrap: anywhere;
}

.accuracy-kpi-card small {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.3;
}

.accuracy-kpi-primary {
  grid-template-columns: 52px minmax(0, 1fr) 82px;
}

.accuracy-kpi-primary .accuracy-kpi-icon {
  width: 52px;
  height: 52px;
}

.accuracy-kpi-primary strong {
  font-size: 34px;
}

.accuracy-card-spark {
  height: 38px;
  display: inline-flex;
  align-items: end;
  justify-content: flex-end;
  gap: 3px;
  align-self: end;
}

.accuracy-card-spark span {
  width: 5px;
  min-height: 8px;
  border-radius: var(--radius-pill);
  background: var(--accuracy-tone, var(--os-accent));
  opacity: 0.72;
}

.accuracy-card-spark .is-placeholder {
  height: 8px;
  background: var(--border-medium);
  opacity: 0.45;
}

.accuracy-kpi-card.is-success,
.accuracy-kpi-card.is-cycle {
  --accuracy-tone: #10b981;
  --accuracy-soft: #defaf2;
  --accuracy-shadow: rgba(16, 185, 129, 0.14);
}

.accuracy-kpi-card.is-warning {
  --accuracy-tone: #f59e0b;
  --accuracy-soft: #fff2d6;
  --accuracy-shadow: rgba(245, 158, 11, 0.16);
}

.accuracy-kpi-card.is-danger,
.accuracy-kpi-card.is-lost {
  --accuracy-tone: #f43f5e;
  --accuracy-soft: #ffe4ec;
  --accuracy-shadow: rgba(244, 63, 94, 0.15);
}

.accuracy-kpi-card.is-found,
.accuracy-kpi-card.is-trend {
  --accuracy-tone: #2587ff;
  --accuracy-soft: #e5f2ff;
  --accuracy-shadow: rgba(37, 135, 255, 0.14);
}

.accuracy-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(270px, 0.8fr) minmax(420px, 1.35fr) minmax(280px, 0.85fr);
  gap: 16px;
  margin-bottom: 16px;
}

.accuracy-score-card,
.accuracy-trend-card,
.accuracy-insights-card,
.accuracy-mix-card,
.accuracy-owner-card,
.accuracy-actions-card {
  padding: 18px;
}

.accuracy-score-card .card-header,
.accuracy-trend-card .card-header,
.accuracy-insights-card .card-header,
.accuracy-mix-card .card-header,
.accuracy-owner-card .card-header,
.accuracy-actions-card .card-header,
.accuracy-table-card .card-header {
  padding-bottom: 12px;
}

.accuracy-score-body {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.accuracy-score-ring {
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 58%, transparent 59%),
    conic-gradient(var(--score-color, var(--os-accent)) 0 calc(var(--score, 0) * 1%), #edf3f6 0 100%);
  box-shadow: inset 0 0 0 1px rgba(15, 35, 42, 0.06), 0 18px 30px rgba(15, 23, 42, 0.08);
}

.accuracy-score-ring strong,
.accuracy-score-ring span {
  display: block;
  margin: 0;
  text-align: center;
}

.accuracy-score-ring strong {
  color: var(--text-primary);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.accuracy-score-ring span {
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
}

.accuracy-score-facts {
  display: grid;
  gap: 10px;
}

.accuracy-score-facts span {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--ss-offwhite);
}

.accuracy-score-facts small {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.accuracy-score-facts strong {
  color: var(--text-primary);
  font-size: 15px;
}

.accuracy-score-facts .is-positive {
  color: var(--ss-success-dark);
}

.accuracy-score-facts .is-negative {
  color: var(--ss-danger-dark);
}

.accuracy-trend-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.accuracy-trend-summary span {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #fff, rgba(248, 251, 253, 0.86));
}

.accuracy-trend-summary small {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.accuracy-trend-summary strong {
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.1;
}

.accuracy-line-chart {
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(217, 87, 204, 0.035), rgba(255,255,255,0.92) 42%),
    #fff;
}

.accuracy-line-chart svg {
  display: block;
  width: 100%;
  height: 285px;
}

.accuracy-grid-line {
  stroke: rgba(15, 35, 42, 0.08);
  stroke-width: 1;
}

.accuracy-axis-label,
.accuracy-x-label,
.accuracy-target-label,
.accuracy-average-label {
  fill: var(--text-secondary);
  font-size: 11px;
  font-weight: 750;
}

.accuracy-axis-label {
  text-anchor: start;
}

.accuracy-x-label {
  text-anchor: middle;
}

.accuracy-target-label {
  fill: var(--os-accent-dark);
  text-anchor: end;
}

.accuracy-average-label {
  fill: #64748b;
}

.accuracy-target-line-svg {
  stroke: rgba(217, 87, 204, 0.45);
  stroke-width: 1.2;
  stroke-dasharray: 5 6;
}

.accuracy-average-line-svg {
  stroke: rgba(100, 116, 139, 0.35);
  stroke-width: 1.2;
  stroke-dasharray: 4 7;
}

.accuracy-trend-area {
  fill: url(#accuracyTrendFill);
}

.accuracy-trend-line {
  fill: none;
  stroke: var(--os-accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 7px 10px rgba(217, 87, 204, 0.18));
}

.accuracy-trend-point {
  fill: #fff;
  stroke: var(--os-accent);
  stroke-width: 3;
}

.accuracy-chart-note {
  margin: 10px 0 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.35;
}

.accuracy-insight-list,
.accuracy-action-list {
  display: grid;
  gap: 10px;
}

.accuracy-insight-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fff;
}

.accuracy-insight-item > span,
.accuracy-action-list > a > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
}

.accuracy-insight-item.is-success > span {
  color: var(--ss-success-dark);
  background: var(--ss-success-bg);
}

.accuracy-insight-item.is-info > span {
  color: var(--ss-info-dark);
  background: var(--ss-info-bg);
}

.accuracy-insight-item.is-warning > span {
  color: var(--ss-warning-dark);
  background: var(--ss-warning-bg);
}

.accuracy-insight-item.is-danger > span {
  color: var(--ss-danger-dark);
  background: var(--ss-danger-bg);
}

.accuracy-insight-item strong,
.accuracy-insight-item small,
.accuracy-action-list strong,
.accuracy-action-list small {
  display: block;
  margin: 0;
}

.accuracy-insight-item strong,
.accuracy-action-list strong {
  color: var(--text-primary);
  font-size: 13px;
}

.accuracy-insight-item small,
.accuracy-action-list small {
  margin-top: 3px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.35;
}

.accuracy-secondary-grid {
  display: grid;
  grid-template-columns: minmax(310px, 0.95fr) minmax(380px, 1.15fr) minmax(280px, 0.8fr);
  gap: 16px;
  margin-bottom: 16px;
}

.accuracy-mix-body {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.accuracy-donut {
  width: 170px;
  margin: 0;
}

.accuracy-legend p {
  margin: 6px 0 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.4;
}

.accuracy-horizontal-bars span {
  grid-template-columns: minmax(120px, 1.1fr) minmax(140px, 2fr) auto;
}

.accuracy-horizontal-bars em {
  background: linear-gradient(90deg, #f59e0b, var(--os-accent));
}

.accuracy-action-list a {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 18px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  text-decoration: none;
  background: #fff;
}

.accuracy-action-list a:hover {
  border-color: rgba(217, 87, 204, 0.24);
  background: rgba(217, 87, 204, 0.045);
}

.accuracy-action-list > a > span {
  color: var(--os-accent);
  background: rgba(217, 87, 204, 0.1);
}

.accuracy-action-list a > svg {
  color: var(--text-secondary);
  width: 18px;
  height: 18px;
}

.accuracy-table-grid {
  align-items: start;
}

.accuracy-table-card {
  overflow: auto;
}

.accuracy-table-card .os-table th {
  background: #f8fbfb;
}

.accuracy-table-card .os-table th,
.accuracy-table-card .os-table td {
  padding-top: 13px;
  padding-bottom: 13px;
  vertical-align: middle;
}

.accuracy-empty-state {
  display: grid;
  place-items: center;
  min-height: 160px;
  color: var(--text-secondary);
  font-weight: 750;
  text-align: center;
}

@media (max-width: 1500px) {
  .accuracy-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .accuracy-kpi-primary {
    grid-column: span 1;
  }

  .accuracy-dashboard-grid,
  .accuracy-secondary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .accuracy-insights-card,
  .accuracy-actions-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1050px) {
  .accuracy-toolbar-card {
    grid-template-columns: 1fr;
  }

  .accuracy-toolbar-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .accuracy-dashboard-grid,
  .accuracy-secondary-grid,
  .warehouse-two-col.accuracy-table-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .accuracy-kpi-grid,
  .accuracy-toolbar-form {
    grid-template-columns: 1fr;
  }

  .accuracy-kpi-primary,
  .accuracy-score-body,
  .accuracy-mix-body {
    grid-template-columns: 1fr;
  }

  .accuracy-card-spark {
    display: none;
  }
}

.wh-overview-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  margin-bottom: 16px;
}

.wh-overview-hero h1,
.wh-overview-hero p {
  margin: 0;
}

.wh-overview-hero h1 {
  margin-top: 8px;
  color: var(--text-primary);
  font-size: 42px;
  line-height: 1;
}

.wh-overview-hero p {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 16px;
}

.wh-overview-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 800;
}

.wh-overview-breadcrumb svg {
  width: 14px;
  height: 14px;
  color: var(--border-medium);
}

.wh-overview-breadcrumb strong {
  color: var(--text-primary);
}

.wh-overview-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 16px;
}

.wh-overview-kpi {
  position: relative;
  min-width: 0;
  min-height: 132px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 82px;
  gap: 14px;
  align-items: center;
  overflow: hidden;
  padding: 22px 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 1) 0%, rgba(248, 251, 253, 0.78) 100%);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.wh-overview-kpi:hover,
.wh-overview-kpi:focus-within {
  transform: translateY(-1px);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.09);
}

.wh-overview-kpi-icon {
  position: relative;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--wh-tone, var(--os-accent));
  background:
    radial-gradient(circle at 50% 50%, #fff 0 42%, var(--wh-soft, var(--ss-magenta-50)) 43% 100%);
  box-shadow:
    0 8px 18px var(--wh-shadow, rgba(217, 87, 204, 0.14)),
    inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.wh-overview-kpi-icon::before {
  content: "";
  position: absolute;
  inset: -5px;
  z-index: -1;
  border-radius: inherit;
  background: var(--wh-soft, var(--ss-magenta-50));
  filter: blur(5px);
  opacity: 0.48;
}

.wh-overview-kpi-icon svg {
  width: 24px;
  height: 24px;
  color: inherit;
  position: static;
  opacity: 1;
  stroke-width: 2.15;
}

.wh-overview-kpi p,
.wh-overview-kpi strong,
.wh-overview-kpi small {
  display: block;
  margin: 0;
}

.wh-overview-kpi p {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.22;
  letter-spacing: 0;
  text-align: left;
  text-wrap: balance;
}

.wh-overview-kpi strong {
  margin-top: 6px;
  color: var(--text-primary);
  font-size: clamp(28px, 1.75vw, 34px);
  font-weight: 900;
  line-height: 0.98;
  text-align: left;
}

.wh-overview-kpi small {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  text-align: left;
}

.wh-overview-kpi small.is-up {
  color: var(--ss-success-dark);
}

.wh-overview-kpi small.is-down {
  color: var(--ss-danger-dark);
}

.wh-overview-kpi > svg {
  position: static;
  justify-self: end;
  align-self: end;
  width: 82px;
  height: 42px;
  color: var(--wh-tone, var(--os-accent));
  opacity: 0.58;
  transform: none;
  filter: drop-shadow(0 4px 6px var(--wh-shadow, rgba(217, 87, 204, 0.09)));
}

.wh-overview-kpi > svg polyline {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wh-overview-kpi::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: 20px;
  width: 42px;
  height: 1px;
  border-radius: var(--radius-pill);
  background: var(--wh-tone, var(--os-accent));
  opacity: 0.08;
}

.wh-overview-kpi.tone-pink {
  --wh-tone: #8b3dff;
  --wh-soft: #f0e7ff;
  --wh-shadow: rgba(139, 61, 255, 0.16);
}

.wh-insight-row.priority-low,
.wh-location-row.tone-pink,
.wh-health-lines .tone-pink {
  --wh-tone: var(--os-accent);
  --wh-soft: var(--ss-magenta-50);
}

.wh-overview-kpi.tone-blue {
  --wh-tone: #248bff;
  --wh-soft: #e7f1ff;
  --wh-shadow: rgba(36, 139, 255, 0.15);
}

.wh-location-row.tone-blue,
.wh-health-lines .tone-blue {
  --wh-tone: var(--ss-info);
  --wh-soft: var(--ss-info-bg);
}

.wh-overview-kpi.tone-teal {
  --wh-tone: #13bfc2;
  --wh-soft: #dff9f6;
  --wh-shadow: rgba(19, 191, 194, 0.15);
}

.wh-location-row.tone-teal {
  --wh-tone: var(--ss-teal-600);
  --wh-soft: var(--ss-teal-100);
}

.wh-overview-kpi.tone-orange {
  --wh-tone: #f59e0b;
  --wh-soft: #fff3d8;
  --wh-shadow: rgba(245, 158, 11, 0.15);
}

.wh-location-row.tone-orange,
.wh-health-lines .tone-orange {
  --wh-tone: var(--ss-warning);
  --wh-soft: var(--ss-warning-bg);
}

.wh-overview-kpi.tone-red {
  --wh-tone: #f0447d;
  --wh-soft: #ffe2eb;
  --wh-shadow: rgba(240, 68, 125, 0.15);
}

.wh-location-row.tone-red,
.wh-health-lines .tone-red {
  --wh-tone: var(--ss-danger);
  --wh-soft: var(--ss-danger-bg);
}

.wh-overview-kpi.tone-green {
  --wh-tone: #18c96f;
  --wh-soft: #dcfce7;
  --wh-shadow: rgba(24, 201, 111, 0.15);
}

.wh-location-row.tone-green,
.wh-health-lines .tone-green {
  --wh-tone: var(--ss-success);
  --wh-soft: var(--ss-success-bg);
}

.wh-overview-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(360px, 0.86fr);
  gap: 16px;
  margin-bottom: 16px;
}

.wh-overview-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.72fr) minmax(340px, 0.66fr);
  gap: 16px;
}

.wh-overview-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.wh-overview-card-head h2,
.wh-overview-card-head p {
  margin: 0;
}

.wh-overview-card-head h2 {
  font-size: 18px;
}

.wh-overview-card-head p {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
}

.wh-overview-card-head > span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.wh-overview-chart {
  position: relative;
  min-height: 286px;
  padding: 10px 0 0;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.wh-overview-chart-stage {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.wh-overview-chart-yaxis {
  height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  padding: 2px 0 5px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 500;
}

.wh-overview-chart-plot {
  position: relative;
  min-width: 0;
  height: 220px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(217, 87, 204, 0.025), rgba(217, 87, 204, 0)),
    repeating-linear-gradient(0deg, transparent 0 53px, rgba(203, 214, 216, 0.25) 54px 55px);
}

.wh-overview-chart svg {
  width: 100%;
  height: 100%;
  display: block;
}

.wh-overview-chart polygon {
  fill: rgba(217, 87, 204, 0.035);
}

.wh-overview-chart polyline {
  fill: none;
  stroke: var(--os-accent);
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.72;
  vector-effect: non-scaling-stroke;
}

.wh-overview-chart-average {
  stroke: rgba(217, 87, 204, 0.42);
  stroke-width: 1.15;
  stroke-dasharray: 5 5;
  opacity: 0.9;
  vector-effect: non-scaling-stroke;
}

.wh-overview-chart-xaxis {
  display: grid;
  grid-template-columns: 42px repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 500;
}

.wh-overview-chart-xaxis span:not(:first-child) {
  text-align: center;
}

.wh-overview-chart-empty {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-secondary);
  text-align: center;
}

.wh-overview-chart-empty strong {
  color: var(--text-primary);
  font-size: 15px;
}

.wh-overview-chart-empty span {
  max-width: 360px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.wh-overview-chart-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 13px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
}

.wh-overview-chart-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wh-overview-chart-meta i {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--os-accent);
}

.wh-overview-chart-meta strong {
  color: var(--text-primary);
  font-weight: 500;
}

.wh-location-bars,
.wh-insight-list,
.wh-quick-list,
.wh-health-lines {
  display: grid;
  gap: 10px;
}

.wh-location-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto auto;
  gap: 10px 12px;
  align-items: center;
  padding: 12px;
  color: var(--text-primary);
  text-decoration: none;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--ss-offwhite);
  font-weight: 500;
}

.wh-location-row:hover,
.wh-location-row:focus-visible,
.wh-insight-row:hover,
.wh-insight-row:focus-visible,
.wh-quick-list a:hover,
.wh-quick-list a:focus-visible {
  border-color: var(--os-accent);
  outline: 0;
}

.wh-location-row span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.wh-location-row span i {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-pill);
  background: var(--wh-tone, var(--os-accent));
}

.wh-location-row em {
  padding: 5px 8px;
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  background: #fff;
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
}

.wh-location-row strong {
  font-weight: 600;
}

.wh-location-row b {
  grid-column: 1 / -1;
  height: 5px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: rgba(238, 244, 244, 0.8);
}

.wh-location-row b i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--wh-tone, var(--os-accent));
  opacity: 0.82;
}

.wh-overview-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--os-accent-dark);
  font-weight: 600;
  text-decoration: none;
}

.wh-overview-link svg {
  width: 16px;
  height: 16px;
}

.wh-insight-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 20px;
  gap: 12px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  text-decoration: none;
  background: #fff;
}

.wh-insight-row > span {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: var(--wh-tone, var(--os-accent));
  background: var(--wh-soft, var(--ss-magenta-50));
}

.wh-insight-row strong,
.wh-insight-row small {
  display: block;
}

.wh-insight-row small {
  margin-top: 3px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.35;
}

.wh-insight-row em {
  justify-self: end;
  padding: 6px 9px;
  border-radius: var(--radius-pill);
  color: var(--ss-success-dark);
  background: var(--ss-success-bg);
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.wh-insight-row.priority-high {
  --wh-tone: var(--ss-danger);
  --wh-soft: var(--ss-danger-bg);
}

.wh-insight-row.priority-medium {
  --wh-tone: var(--ss-warning);
  --wh-soft: var(--ss-warning-bg);
}

.wh-insight-row.priority-high em {
  color: var(--ss-danger-dark);
  background: var(--ss-danger-bg);
}

.wh-insight-row.priority-medium em {
  color: var(--ss-warning-dark);
  background: var(--ss-warning-bg);
}

.wh-health-body {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.wh-health-donut {
  width: 142px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 58%, transparent 59%),
    conic-gradient(var(--os-accent) 0 calc(var(--score) * 1%), var(--ss-cloud) calc(var(--score) * 1%) 100%);
  box-shadow: inset 0 0 0 1px var(--border-light);
}

.wh-health-donut strong,
.wh-health-donut span {
  display: block;
  text-align: center;
}

.wh-health-donut strong {
  font-size: 38px;
  line-height: 1;
}

.wh-health-donut span {
  margin-top: 4px;
  color: var(--ss-success-dark);
  font-size: 12px;
  font-weight: 500;
}

.wh-health-lines div {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(120px, 1.5fr) 34px;
  gap: 10px;
  align-items: center;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
}

.wh-health-lines b {
  height: 9px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--ss-cloud);
}

.wh-health-lines i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--wh-tone, var(--os-accent));
}

.wh-health-lines strong {
  text-align: right;
  font-weight: 600;
}

.wh-quick-list a {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 20px;
  gap: 4px 11px;
  align-items: center;
  padding: 10px;
  color: var(--text-primary);
  text-decoration: none;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fff;
}

.wh-quick-list span {
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--os-accent);
  background: var(--ss-magenta-50);
}

.wh-quick-list strong,
.wh-quick-list small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wh-quick-list small {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
}

.wh-quick-list a > svg {
  grid-column: 3;
  grid-row: 1 / span 2;
}

.wh-overview-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
}

.wh-overview-footer span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wh-overview-footer i {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-pill);
  background: var(--ss-success);
}

@media (max-width: 1280px) {
  .wh-overview-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wh-overview-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1120px) {
  .wh-overview-main-grid {
    grid-template-columns: 1fr;
  }
}

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

@media (max-width: 760px) {
  .wh-overview-hero,
  .wh-overview-footer {
    display: grid;
  }

  .wh-overview-kpis {
    grid-template-columns: 1fr;
  }

  .wh-health-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .wh-overview-kpi {
    grid-template-columns: 52px minmax(0, 1fr);
    padding: 20px;
  }

  .wh-overview-kpi > svg,
  .wh-overview-kpi::after {
    display: none;
  }
}

@media (max-width: 1050px) {
  .accuracy-visual-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .os-dialog-detail-header {
    display: grid;
  }

  .os-dialog-header-actions {
    justify-content: flex-start;
    padding-right: 44px;
  }

  .os-dialog-export-menu {
    left: 0;
    right: auto;
  }
}

@media (max-width: 1320px) {
  .kpi-grid,
  .csp-overview-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .csp-command-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .csp-dialog-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid,
  .lower-grid,
  .ops-dashboard-main,
  .ops-dashboard-bottom,
  .settings-hero,
  .friendly-info-row,
  .inbound-command-bar,
  .inbound-panels,
  .upload-summary-card,
  .warehouse-hub-kpis,
  .warehouse-grid,
  .warehouse-two-col,
  .pickpack-kpis,
  .pickpack-flow-grid,
  .pickpack-period-summary,
  .role-diff-grid,
  .pickpack-grid {
    grid-template-columns: 1fr;
  }

  .ops-support-card {
    grid-column: auto;
  }

  .os-health-grid,
  .settings-card-grid,
  .settings-action-grid,
  .user-permission-grid,
  .permission-grid,
  .help-category-grid,
  .help-definition-grid,
  .help-quick-grid,
  .help-file-grid,
  .help-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .login-shell {
    grid-template-columns: minmax(540px, 44vw) minmax(0, 1fr);
  }

  .login-panel {
    padding: 72px 48px 44px;
  }

  .login-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .login-copy {
    margin-top: 58px;
  }

  .login-platform-pill {
    min-width: 0;
    width: 100%;
    max-width: 316px;
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    z-index: 80;
    top: 0;
    left: 0;
    width: min(84vw, 320px);
    height: 100dvh;
    transform: translateX(-104%);
    box-shadow: var(--shadow-lg);
    transition: transform 180ms ease;
  }

  .app-shell.is-sidebar-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: block;
    background: rgba(3, 25, 31, 0.48);
    backdrop-filter: blur(4px);
  }

  .sidebar-backdrop[hidden] {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .topbar {
    flex-direction: row;
    align-items: center;
    height: auto;
    padding: 12px 14px;
  }

  .page-heading {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    padding: 18px;
  }

  .global-search,
  .os-global-search-trigger {
    width: min(100%, 52vw);
    flex: 1 1 auto;
  }

  .topbar-actions {
    flex: 0 0 auto;
  }

  .topbar-actions .notification-button,
  .topbar-actions .user-menu span,
  .topbar-actions .logout-link {
    display: none;
  }

  .work-hub-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .work-placeholder-card {
    grid-template-columns: 1fr;
  }

  .content {
    padding: 0 18px 24px;
  }

  .csp-admin-body .content {
    padding-top: 24px;
  }

  .csp-admin-hero {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }

  .csp-admin-title h1 {
    font-size: 38px;
  }

  .csp-admin-invite {
    width: fit-content;
  }

  .csp-admin-tabs {
    margin-bottom: 18px;
  }

  .csp-command-strip,
  .csp-command-users,
  .csp-forecast-mini {
    grid-template-columns: 1fr;
  }

  .csp-command-main,
  .csp-forecast-mini dl {
    padding-left: 0;
    border-left: 0;
  }

  .csp-command-main {
    padding-top: 16px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
  }

  .csp-dialog-card-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .module-tabs {
    margin-left: 0;
    width: 100%;
    overflow-x: auto;
  }

  .kpi-grid {
    grid-template-columns: 1fr;
  }

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

  .ops-kpi-grid {
    grid-template-columns: 1fr;
  }

  .upload-layout,
  .upload-workspace,
  .upload-guide-panel,
  .upload-history-grid,
  .upload-help-grid,
  .form-grid.two,
  .form-grid.three,
  .system-grid,
  .os-health-grid,
  .os-action-layout,
  .settings-hero,
  .settings-layout-os,
  .settings-detail-layout,
  .settings-card-grid,
  .settings-action-grid,
  .settings-task-type-fields,
  .user-permission-grid,
  .permission-grid,
  .profile-layout,
  .search-page-form,
  .search-result-row,
  .friendly-info-row,
  .help-hero,
  .help-category-grid,
  .help-definition-grid,
  .help-guide-grid,
  .help-quick-grid,
  .help-layout,
  .help-file-grid,
  .help-status-grid,
  .warehouse-hub-kpis,
  .warehouse-two-col,
  .warehouse-filter-bar,
  .inbound-filter-bar,
  .inbound-performance-grid,
  .inbound-detail-grid,
  .os-dialog-fact-grid {
    grid-template-columns: 1fr;
  }

  .inbound-bucket-row,
  .user-detail-header,
  .warehouse-hero,
  .hour-row,
  .timeline-item,
  .os-dialog-detail-header {
    grid-template-columns: 1fr;
  }

  .hour-row em {
    text-align: left;
  }

  .user-detail-header,
  .warehouse-hero,
  .os-dialog-detail-header {
    align-items: stretch;
    flex-direction: column;
  }

  .health-hero-os,
  .friendly-action {
    grid-template-columns: 1fr;
  }

  .friendly-action em {
    grid-column: auto;
    grid-row: auto;
  }

  .upload-summary-card dl {
    grid-template-columns: 1fr;
  }

  .upload-side-panel {
    position: static;
  }

  .table-card {
    overflow-x: auto;
  }

  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-panel {
    min-height: auto;
    padding: 44px 24px 30px;
  }

  .login-topline,
  .login-copy,
  .login-qr-form,
  .login-form,
  .login-bottom,
  .login-error,
  .login-success {
    width: 100%;
  }

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

  .login-visual {
    min-height: 620px;
    padding: 44px 24px;
  }

  .sso-grid {
    grid-template-columns: 1fr;
  }

  .login-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .csp-overview-metrics {
    grid-template-columns: 1fr;
  }

  .csp-overview-metric {
    min-height: 118px;
  }
}

/* Webshop monthly report v1.3 polish */
.monthly-report-page,
.monthly-report-detail-page {
  display: grid;
  gap: 18px;
}

.monthly-report-page .monthly-report-toolbar {
  align-items: start;
  grid-template-columns: minmax(0, 1fr) auto;
}

.monthly-report-page .monthly-report-filter {
  grid-template-columns: minmax(150px, 0.18fr) minmax(150px, 0.18fr) minmax(160px, 0.18fr) minmax(240px, 1fr) auto auto;
}

.monthly-report-page .monthly-report-actions {
  align-items: start;
  position: relative;
}

.monthly-actions-menu,
.monthly-row-menu,
.monthly-action-details,
.monthly-source-details {
  position: relative;
}

.monthly-actions-menu > summary,
.monthly-row-menu > summary,
.monthly-action-details > summary {
  cursor: pointer;
  list-style: none;
}

.monthly-actions-menu > summary::-webkit-details-marker,
.monthly-row-menu > summary::-webkit-details-marker,
.monthly-action-details > summary::-webkit-details-marker,
.monthly-source-details > summary::-webkit-details-marker {
  display: none;
}

.monthly-actions-menu > div,
.monthly-row-menu > div {
  background: #fff;
  border: 1px solid #dfe8f0;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(9, 39, 54, 0.14);
  display: grid;
  gap: 4px;
  min-width: 230px;
  padding: 8px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
}

.monthly-row-menu > div {
  min-width: 180px;
}

.monthly-actions-menu a,
.monthly-actions-menu button,
.monthly-row-menu a,
.monthly-row-menu button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #0b2639;
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  gap: 8px;
  min-height: 36px;
  padding: 0 10px;
  text-align: left;
  text-decoration: none;
  width: 100%;
}

.monthly-actions-menu a:hover,
.monthly-actions-menu button:hover,
.monthly-row-menu a:hover,
.monthly-row-menu button:hover {
  background: #f8fafc;
}

.monthly-actions-menu button:disabled,
.monthly-row-menu button:disabled {
  color: #9aa8b5;
  cursor: not-allowed;
  opacity: .72;
}

.monthly-actions-menu button:disabled:hover,
.monthly-row-menu button:disabled:hover {
  background: transparent;
}

.monthly-actions-menu a svg,
.monthly-actions-menu button svg,
.monthly-row-menu a svg,
.monthly-row-menu button svg {
  flex: 0 0 auto;
  height: 16px;
  width: 16px;
}

.monthly-actions-note {
  border-top: 1px solid #e6edf3;
  margin-top: 4px;
  padding-top: 6px;
}

.monthly-actions-note summary {
  color: #42576c;
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
  padding: 8px 10px;
}

.monthly-actions-note form {
  display: grid;
  gap: 8px;
  padding: 6px 10px 10px;
}

.monthly-actions-note input {
  border: 1px solid #d8e2ea;
  border-radius: 8px;
  min-height: 36px;
  padding: 0 10px;
}

.monthly-report-page .monthly-closing-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.monthly-report-page .monthly-closing-grid article {
  min-height: 78px;
}

.monthly-report-page .monthly-report-table th,
.monthly-report-page .monthly-report-table td {
  vertical-align: middle;
}

.monthly-activity-stack {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 190px;
}

.monthly-activity-stack span {
  color: #40556a;
  font-size: 12px;
  line-height: 1.25;
}

.monthly-activity-stack b {
  color: #0b2639;
  font-weight: 900;
  margin-right: 4px;
}

.monthly-document-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 150px;
}

.monthly-document-badges a.status-pill {
  text-decoration: none;
}

.monthly-muted-value {
  color: #73859a;
  font-size: 12px;
  font-weight: 800;
}

.monthly-report-page .status-pill,
.monthly-report-detail-page .status-pill {
  padding: 4px 9px;
  white-space: nowrap;
}

.monthly-report-detail-page .monthly-report-detail-head {
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 62%, rgba(223, 63, 205, 0.10) 100%);
  border-color: rgba(223, 63, 205, 0.16);
}

.monthly-report-detail-page .monthly-report-detail-actions {
  max-width: 680px;
}

.monthly-report-detail-page .monthly-report-detail-actions .monthly-report-approval-note {
  display: none;
}

.monthly-report-detail-page .monthly-report-not-invoice {
  border-color: #f2ddaa;
  color: #7a560a;
  background: #fff8e7;
  font-weight: 750;
}

.monthly-report-detail-page .monthly-report-kpis {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.monthly-report-detail-page .monthly-report-kpis .owner360-kpi {
  min-height: 96px;
}

.monthly-report-overview-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.monthly-report-overview-grid .card {
  display: grid;
  gap: 12px;
}

.monthly-report-overview-grid h2,
.monthly-export-card h2 {
  font-size: 18px;
  margin: 0;
}

.monthly-ready-summary {
  display: grid;
  gap: 10px;
}

.monthly-ready-summary p {
  color: #64758a;
  font-size: 13px;
  font-weight: 750;
  margin: 0;
}

.monthly-mini-list {
  display: grid;
  gap: 10px;
}

.monthly-mini-list span {
  align-items: center;
  border-bottom: 1px solid #edf2f6;
  color: #40556a;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  min-height: 32px;
}

.monthly-mini-list span:last-child {
  border-bottom: 0;
}

.monthly-mini-list strong {
  color: #0b2639;
  font-size: 12px;
  font-weight: 900;
}

.monthly-source-details summary {
  color: var(--ss-magenta-700);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.monthly-source-details dl {
  background: #f8fafc;
  border: 1px solid #e6edf3;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding: 10px;
}

.monthly-source-details dt {
  color: #64758a;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.monthly-source-details dd {
  color: #10283c;
  font-size: 12px;
  margin: 0 0 4px;
  overflow-wrap: anywhere;
}

.monthly-source-details pre {
  background: #071821;
  border-radius: 8px;
  color: #e8f3f7;
  font-size: 11px;
  margin: 8px 0 0;
  max-height: 220px;
  overflow: auto;
  padding: 10px;
  white-space: pre-wrap;
}

.monthly-export-list {
  border: 1px solid #e1e9ef;
  border-radius: 8px;
  overflow: hidden;
}

.monthly-export-list article {
  align-items: center;
  border-bottom: 1px solid #e8eef3;
  display: grid;
  gap: 14px;
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  min-height: 68px;
  padding: 12px 14px;
}

.monthly-export-list article:last-child {
  border-bottom: 0;
}

.monthly-export-icon {
  align-items: center;
  background: #fff0fb;
  border-radius: 8px;
  color: var(--ss-magenta-700);
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.monthly-export-list strong {
  color: #0b2639;
  display: block;
  font-size: 14px;
  font-weight: 900;
}

.monthly-export-list small {
  color: #64758a;
  display: block;
  font-size: 12px;
  margin-top: 2px;
}

.monthly-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.monthly-action-details {
  display: grid;
  gap: 10px;
}

.monthly-action-details form {
  background: #f8fafc;
  border: 1px solid #e6edf3;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.monthly-report-status-panel .monthly-action-details > summary.btn {
  width: 100%;
}

@media (max-width: 1180px) {
  .monthly-report-page .monthly-report-filter,
  .monthly-report-page .monthly-closing-grid,
  .monthly-report-detail-page .monthly-report-kpis,
  .monthly-report-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .monthly-report-page .monthly-report-toolbar {
    grid-template-columns: 1fr;
  }

  .monthly-report-status-panel {
    position: static;
  }

  .monthly-export-list article {
    grid-template-columns: 40px minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .monthly-report-page .monthly-report-filter,
  .monthly-report-page .monthly-closing-grid,
  .monthly-report-detail-page .monthly-report-kpis,
  .monthly-report-overview-grid,
  .monthly-activity-stack {
    grid-template-columns: 1fr;
  }
}

/* Workday Action Center */
.workday-todo {
  display: grid;
  gap: 18px;
}

.workday-todo .btn {
  font-weight: 500;
}

.wd-todo-toolbar,
.wd-todo-filters,
.wd-todo-card-top,
.wd-todo-card-footer,
.wd-todo-date-actions,
.wd-todo-edit-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wd-todo-toolbar {
  justify-content: space-between;
}

.wd-todo-toolbar h2 {
  margin: 2px 0 0;
  font-size: 28px;
}

.wd-todo-date-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.wd-todo-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.wd-todo-kpi {
  position: relative;
  padding: 18px;
  min-height: 124px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.wd-todo-kpi::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: var(--os-accent);
}

.wd-todo-kpi span,
.wd-todo-kpi small {
  display: block;
  color: var(--text-secondary);
}

.wd-todo-kpi span {
  font-size: 12px;
  font-weight: 500;
  text-transform: none;
}

.wd-todo-kpi strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 30px;
  font-weight: 650;
}

.wd-todo-kpi.blue::before { background: var(--ss-info); }
.wd-todo-kpi.danger::before { background: var(--ss-danger); }
.wd-todo-kpi.warning::before { background: var(--ss-warning); }
.wd-todo-kpi.teal::before { background: var(--ss-teal-500); }
.wd-todo-kpi.purple::before { background: var(--ss-magenta-500); }
.wd-todo-kpi.success::before { background: var(--ss-success); }

.wd-todo-filters {
  flex-wrap: wrap;
  align-items: end;
  padding: 14px;
}

.wd-todo-filters label,
.wd-todo-create-form label,
.wd-todo-edit-form label,
.wd-todo-comment-form label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: none;
}

.wd-todo-filters input,
.wd-todo-filters select,
.wd-todo-create-form input,
.wd-todo-create-form select,
.wd-todo-create-form textarea,
.wd-todo-edit-form input,
.wd-todo-edit-form select,
.wd-todo-edit-form textarea,
.wd-todo-comment-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: #fff;
  color: var(--text-primary);
}

.wd-todo-filters label:first-child {
  min-width: 230px;
  flex: 1 1 260px;
}

.wd-todo-toggle {
  display: flex !important;
  grid-auto-flow: column;
  align-items: center;
  min-height: 42px;
  text-transform: none !important;
}

.wd-todo-toggle input,
.wd-todo-checkbox input {
  width: auto;
  min-height: auto;
}

.wd-todo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.wd-todo-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(240px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.wd-todo-column {
  min-width: 240px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow-sm);
}

.wd-todo-column > header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--border-light);
}

.wd-todo-column > header b {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  background: var(--ss-blue-50);
  color: var(--ss-blue-700);
  font-size: 12px;
}

.wd-todo-column-body {
  display: grid;
  gap: 10px;
  min-height: 240px;
  padding: 12px;
}

.wd-todo-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--ss-slate-300);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.wd-todo-card.priority-urgent { border-left-color: var(--ss-danger); }
.wd-todo-card.priority-high { border-left-color: var(--ss-warning); }
.wd-todo-card.priority-normal { border-left-color: var(--ss-teal-500); }
.wd-todo-card.priority-low { border-left-color: var(--ss-slate-300); }

.wd-todo-card-top {
  justify-content: space-between;
  align-items: flex-start;
}

.wd-todo-card-top strong {
  line-height: 1.35;
  font-weight: 500;
}

.wd-todo-pin {
  color: var(--ss-magenta-500);
  font-weight: 900;
}

.wd-todo-card-chips,
.wd-todo-card-meta,
.wd-todo-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wd-todo-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  background: var(--ss-cloud);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 500;
}

.wd-todo-chip-priority-urgent,
.wd-todo-chip-status-blocked {
  background: var(--ss-danger-bg);
  color: var(--ss-danger-dark);
}

.wd-todo-chip-priority-high,
.wd-todo-chip-status-waiting {
  background: var(--ss-warning-bg);
  color: var(--ss-warning-dark);
}

.wd-todo-chip-priority-normal,
.wd-todo-chip-status-in_progress,
.wd-todo-chip-status-done {
  background: var(--ss-success-bg);
  color: var(--ss-success-dark);
}

.wd-todo-chip-priority-low,
.wd-todo-chip-status-open,
.wd-todo-chip.muted {
  background: var(--ss-blue-50);
  color: var(--ss-blue-700);
}

.wd-todo-card-meta {
  color: var(--text-secondary);
  font-size: 12px;
}

.wd-todo-card-meta span,
.wd-todo-card-footer span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.wd-todo-card-meta svg,
.wd-todo-card-footer svg {
  width: 15px;
  height: 15px;
}

.wd-todo-card-note,
.wd-todo-card-comment {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.45;
}

.wd-todo-card-comment {
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--ss-offwhite);
}

.wd-todo-card-footer {
  justify-content: space-between;
}

.wd-todo-inline-form {
  display: inline;
}

.wd-todo-card-action {
  border: 0;
  border-radius: var(--radius-pill);
  padding: 5px 8px;
  background: var(--ss-cloud);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
}

.wd-todo-card-action.success {
  background: var(--ss-success-bg);
  color: var(--ss-success-dark);
}

.wd-todo-card-action.danger {
  background: var(--ss-danger-bg);
  color: var(--ss-danger-dark);
}

.wd-todo-edit {
  border-top: 1px solid var(--border-light);
  padding-top: 8px;
}

.wd-todo-edit summary {
  cursor: pointer;
  color: var(--ss-blue-700);
  font-weight: 500;
}

.wd-todo-edit-form,
.wd-todo-comment-form,
.wd-todo-create-form {
  display: grid;
  gap: 12px;
}

.wd-todo-edit-form {
  margin-top: 12px;
}

.wd-todo-form-grid.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.wd-todo-comment-form {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 10px;
}

.wd-todo-side {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 86px;
}

.wd-todo-create {
  border-top: 4px solid var(--module-workday);
}

.wd-todo-modal {
  position: fixed;
  inset: 0;
  z-index: 2600;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(4, 24, 28, 0.28);
  backdrop-filter: blur(9px);
}

.wd-todo-modal.is-open {
  display: grid;
}

.wd-todo-modal-panel {
  position: relative;
  width: min(680px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  box-shadow: var(--shadow-lg);
}

.wd-todo-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-primary);
  cursor: pointer;
}

.wd-todo-modal-close svg {
  width: 18px;
  height: 18px;
}

.wd-todo-modal-header {
  margin: 0 48px 18px 0;
}

.wd-todo-modal-header h2 {
  margin: 2px 0 0;
  font-size: 28px;
}

.wd-todo-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.wd-todo-backlog-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.wd-todo-backlog-item:last-child {
  border-bottom: 0;
}

.wd-todo-backlog-item strong {
  font-weight: 500;
}

.wd-todo-backlog-item span {
  color: var(--ss-danger-dark);
  font-size: 12px;
}

.wd-todo-backlog-item em {
  justify-self: end;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--ss-warning-bg);
  color: var(--ss-warning-dark);
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
}

.wd-todo-backlog-item small {
  color: var(--text-secondary);
}

.wd-todo-empty,
.workday-todo-migration .muted {
  color: var(--text-secondary);
}

.wd-todo-empty {
  display: grid;
  place-items: center;
  min-height: 84px;
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

/* Action Center V2 */
.wd-action-center {
  display: grid;
  gap: 14px;
  max-width: 1680px;
  margin: 0 auto;
}

.wd-ac-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 2px 2px;
}

.wd-ac-hero--actions-only {
  justify-content: flex-end;
  padding-top: 0;
}

.wd-ac-hero h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
}

.wd-ac-hero p {
  margin: 4px 0 0;
  color: var(--text-secondary);
  font-size: 15px;
}

.wd-ac-hero-actions,
.wd-action-secondary-actions,
.wd-ac-pagination,
.wd-ac-filter-actions,
.wd-action-drawer-footer,
.wd-action-drawer-footer-left,
.wd-action-drawer-footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wd-ac-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 12px;
}

.wd-ac-kpi {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 86px;
  padding: 13px 44px 13px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-primary);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.wd-ac-kpi::before {
  content: "";
  position: absolute;
  inset: 12px auto 12px 0;
  width: 3px;
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  background: var(--os-accent);
}

.wd-ac-kpi::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-pill);
  background: var(--ss-magenta-50);
}

.wd-ac-kpi span,
.wd-ac-kpi small {
  color: var(--text-secondary);
  font-size: 12px;
}

.wd-ac-kpi strong {
  font-size: 28px;
  line-height: 1;
}

.wd-ac-kpi.danger::before { background: var(--ss-danger); }
.wd-ac-kpi.blue::before { background: var(--ss-info); }
.wd-ac-kpi.teal::before { background: var(--ss-teal-500); }
.wd-ac-kpi.purple::before { background: var(--ss-magenta-500); }
.wd-ac-kpi.warning::before { background: var(--ss-warning); }
.wd-ac-kpi.danger::after { background: var(--ss-danger-bg); }
.wd-ac-kpi.blue::after { background: var(--ss-blue-50); }
.wd-ac-kpi.teal::after { background: var(--ss-mint-50); }
.wd-ac-kpi.purple::after { background: var(--ss-magenta-50); }
.wd-ac-kpi.warning::after { background: var(--ss-warning-bg); }

.wd-ac-tabs {
  display: flex;
  gap: 4px;
  padding: 0 2px;
  border-bottom: 1px solid var(--border-light);
  background: #fff;
  overflow-x: auto;
  scrollbar-width: thin;
}

.wd-ac-tabs a {
  position: relative;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 12px 16px 10px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.wd-ac-tabs a.is-active {
  color: var(--os-accent-dark);
}

.wd-ac-tabs a.is-active::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: -1px;
  left: 12px;
  height: 3px;
  border-radius: var(--radius-pill) var(--radius-pill) 0 0;
  background: var(--os-accent);
}

.wd-ac-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  padding: 12px;
}

.wd-ac-filters label,
.wd-ac-more-filters label,
.wd-action-drawer-form label,
.wd-ac-checklist-add,
.wd-ac-comment-form {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.wd-ac-filters > label {
  flex: 1 1 145px;
  min-width: 145px;
}

.wd-ac-filters > .wd-ac-filter-search {
  flex: 2 1 320px;
  min-width: 260px;
}

.wd-ac-filters > .wd-ac-filter-date {
  flex: 0 0 160px;
}

.wd-ac-filters input,
.wd-ac-filters select,
.wd-ac-more-filters input,
.wd-ac-more-filters select,
.wd-action-drawer-form input,
.wd-action-drawer-form select,
.wd-action-drawer-form textarea,
.wd-ac-checklist-add input,
.wd-ac-comment-form input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  background: #fff;
  color: var(--text-primary);
}

.wd-ac-filters input[type="checkbox"],
.wd-ac-more-filters input[type="checkbox"],
.wd-action-drawer-form input[type="checkbox"] {
  width: auto;
  min-height: 0;
  padding: 0;
}

.wd-ac-filters .wd-todo-toggle,
.wd-ac-more-filters .wd-todo-toggle,
.wd-action-drawer-form .wd-todo-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
}

.wd-ac-more-filters {
  position: relative;
  flex: 0 0 auto;
}

.wd-ac-more-filters summary {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.wd-ac-more-filters[open] {
  display: grid;
  gap: 10px;
  flex: 1 1 320px;
  padding: 10px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.wd-ac-filter-actions {
  flex: 0 0 auto;
  align-self: flex-end;
}

.wd-ac-filter-actions .btn {
  min-height: 40px;
}

.wd-ac-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
  align-items: start;
}

.wd-ac-main,
.wd-ac-task-list,
.wd-ac-suggestions {
  display: grid;
  gap: 12px;
}

.wd-ac-side {
  position: sticky;
  top: 82px;
}

.wd-ac-section {
  padding: 14px;
}

.wd-ac-section > .card-header {
  margin-bottom: 10px;
}

.wd-ac-section > .card-header h2 {
  font-size: 18px;
}

.wd-ac-section .status-pill {
  min-height: 26px;
  padding: 4px 10px;
  font-size: 12px;
}

.wd-ac-task-list {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fff;
}

.wd-ac-task {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 34px;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--border-light);
  border-radius: 0;
  background: #fff;
}

.wd-ac-task:last-child {
  border-bottom: 0;
}

.wd-ac-task.is-overdue {
  background: linear-gradient(90deg, rgba(220, 53, 69, 0.045), #fff 120px);
}

.wd-ac-task.is-done {
  opacity: 0.72;
}

.wd-ac-task-check,
.wd-ac-table-check {
  margin: 0;
}

.wd-ac-task-check button,
.wd-ac-table-check button,
.wd-ac-checklist-item button {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--ss-success-dark);
  cursor: pointer;
}

.wd-ac-task-check button svg,
.wd-ac-table-check button svg,
.wd-ac-checklist-item button svg {
  width: 15px;
  height: 15px;
}

.wd-ac-task-title-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.wd-ac-task h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
}

.wd-ac-task h3 a,
.wd-ac-table td strong a {
  color: var(--text-primary);
  text-decoration: none;
}

.wd-ac-task h3 a:hover,
.wd-ac-table td strong a:hover {
  color: var(--os-accent-dark);
}

.wd-ac-task-meta,
.wd-ac-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wd-ac-task-meta {
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 12px;
}

.wd-ac-task-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 105px;
}

.wd-ac-task-meta svg {
  width: 13px;
  height: 13px;
  color: var(--text-muted);
}

.wd-ac-task-meta .wd-ac-meta-owner {
  min-width: 150px;
}

.wd-ac-task-meta .wd-ac-meta-assigned {
  min-width: 135px;
}

.wd-ac-task-meta .wd-ac-meta-deadline.is-danger,
.wd-ac-date-danger {
  color: var(--ss-danger-dark);
  font-weight: 700;
}

.wd-ac-badges {
  margin-top: 6px;
}

.wd-ac-badge,
.wd-ac-pin {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: var(--ss-cloud);
  color: var(--text-secondary);
  font-size: 10.5px;
  font-weight: 500;
}

.wd-ac-badge.muted {
  background: var(--ss-blue-50);
  color: var(--ss-blue-700);
}

.wd-ac-project-badge,
.wd-ac-priority-urgent,
.wd-ac-status-blocked {
  background: var(--ss-danger-bg);
  color: var(--ss-danger-dark);
}

.wd-ac-priority-high,
.wd-ac-status-waiting {
  background: var(--ss-warning-bg);
  color: var(--ss-warning-dark);
}

.wd-ac-priority-normal,
.wd-ac-status-open,
.wd-ac-status-in_progress,
.wd-ac-status-done {
  background: var(--ss-success-bg);
  color: var(--ss-success-dark);
}

.wd-ac-priority-low {
  background: var(--ss-blue-50);
  color: var(--ss-blue-700);
}

.wd-ac-pin {
  background: var(--ss-magenta-50);
  color: var(--module-workday);
}

.wd-ac-row-action {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
}

.wd-ac-row-action:hover {
  border-color: var(--border-light);
  background: var(--ss-offwhite);
  color: var(--text-primary);
}

.wd-ac-row-action svg {
  width: 17px;
  height: 17px;
}

.wd-ac-table-wrap {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: auto;
}

.wd-ac-table {
  min-width: 980px;
}

.wd-ac-table th {
  white-space: nowrap;
}

.wd-ac-table td {
  vertical-align: middle;
}

.wd-ac-table td strong,
.wd-ac-suggestion strong {
  display: block;
  font-weight: 600;
}

.wd-ac-table td small {
  display: block;
  margin-top: 4px;
  color: var(--text-secondary);
}

.wd-ac-suggestion {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-primary);
  text-decoration: none;
}

.wd-ac-suggestion span {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.35;
}

.wd-action-drawer {
  position: fixed;
  inset: 0;
  z-index: 2600;
  display: none;
  justify-content: flex-end;
  background: rgba(4, 24, 28, 0.34);
  backdrop-filter: blur(7px);
}

.wd-action-drawer.is-open {
  display: flex;
}

body.wd-action-drawer-open {
  overflow: hidden;
}

.wd-action-drawer-panel {
  display: flex;
  flex-direction: column;
  width: min(700px, calc(100vw - 24px));
  height: 100%;
  overflow: hidden;
  border-left: 1px solid var(--border-light);
  background: var(--card-bg);
  box-shadow: -20px 0 50px rgba(3, 25, 31, 0.22);
}

.wd-action-drawer-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border-light);
  background: #fff;
}

.wd-action-drawer-header h2 {
  margin: 2px 0 0;
  font-size: 24px;
  line-height: 1.16;
}

.wd-action-drawer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.wd-action-drawer-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--ss-blue-50);
  color: var(--ss-blue-700);
  font-size: 12px;
  font-weight: 600;
}

.wd-action-drawer-close {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-primary);
}

.wd-action-drawer-close svg {
  width: 18px;
  height: 18px;
}

.wd-action-drawer-body {
  display: grid;
  gap: 16px;
  flex: 1 1 auto;
  overflow: auto;
  padding: 18px 22px 22px;
}

.wd-action-drawer-form,
.wd-action-drawer-section {
  display: grid;
  gap: 12px;
}

.wd-action-drawer-section {
  padding: 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fff;
}

.wd-action-drawer-section h3 {
  margin: 0;
  font-size: 16px;
}

.wd-ac-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.wd-action-drawer-form > label:first-of-type,
.wd-action-drawer-form > label:nth-of-type(2),
.wd-action-drawer-form > label:last-of-type {
  grid-column: 1 / -1;
}

.wd-action-drawer-form textarea {
  min-height: 112px;
  resize: vertical;
}

.wd-ac-checklist {
  display: grid;
  gap: 8px;
}

.wd-ac-checklist-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin: 0;
}

.wd-ac-checklist-item span.is-done {
  color: var(--text-secondary);
  text-decoration: line-through;
}

.wd-ac-checklist-add,
.wd-ac-comment-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.wd-ac-latest-note {
  margin: 0;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--ss-offwhite);
  color: var(--text-secondary);
}

.wd-action-drawer-footer {
  justify-content: space-between;
  flex: 0 0 auto;
  padding: 14px 18px;
  border-top: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -12px 24px rgba(3, 25, 31, 0.06);
}

.wd-action-drawer-footer-left,
.wd-action-drawer-footer-right {
  flex-wrap: wrap;
}

.wd-action-drawer-inline-form {
  margin: 0;
}

.wd-action-secondary-actions {
  flex-wrap: wrap;
}

/* Control Tower */
.controltower-shell {
  display: grid;
  gap: 18px;
}

.controltower-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.controltower-hero h2 {
  margin: 0 0 6px;
  font-size: 30px;
}

.controltower-snapshot {
  min-width: 230px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--ss-mint-50);
  border: 1px solid var(--border-light);
}

.controltower-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.controltower-kpi {
  padding: 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.controltower-kpi span {
  display: block;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.controltower-kpi strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 26px;
}

.controltower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.controltower-risk-list,
.controltower-action-list {
  display: grid;
  gap: 10px;
}

.controltower-risk,
.controltower-action {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--ss-offwhite);
}

.controltower-priority {
  display: inline-grid;
  place-items: center;
  min-width: 84px;
  height: 30px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.controltower-priority.low { background: var(--ss-blue-50); color: var(--ss-blue-700); }
.controltower-priority.medium { background: var(--ss-warning-bg); color: var(--ss-warning-dark); }
.controltower-priority.high { background: var(--ss-danger-bg); color: var(--ss-danger-dark); }
.controltower-priority.critical { background: var(--ss-slate-950); color: #fff; }

.controltower-risk h3,
.controltower-action h3 {
  margin: 0 0 4px;
}

.controltower-risk p,
.controltower-action p {
  margin: 0 0 6px;
  color: var(--text-secondary);
}

.controltower-risk-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 12px;
}

.controltower-actions-table td,
.controltower-actions-table th {
  vertical-align: top;
}

.workday-intel-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.workday-intel-hero h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

.workday-intel-hero p {
  margin: 0;
  color: var(--text-secondary);
  max-width: 820px;
}

.os-filter-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.os-filter-bar label {
  display: grid;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.os-filter-bar input,
.os-filter-bar select {
  min-height: 44px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  background: #fff;
  color: var(--text-primary);
  font: inherit;
  text-transform: none;
}

.os-tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.os-tab {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border-radius: var(--radius-sm);
  padding: 0 14px;
  color: var(--text-primary);
  font-weight: 800;
  text-decoration: none;
  background: var(--ss-offwhite);
}

.os-tab.active {
  color: #fff;
  background: var(--ss-magenta-500);
  box-shadow: var(--shadow-pink);
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.table-scroll.no-horizontal-scroll {
  overflow-x: visible;
}

.workday-team-table,
.workday-forecast-table {
  table-layout: fixed;
}

.workday-team-table th,
.workday-team-table td,
.workday-forecast-table th,
.workday-forecast-table td {
  white-space: normal;
  vertical-align: top;
}

.workday-team-table td:nth-child(2),
.workday-forecast-table td:nth-child(2) {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
}

.workday-team-table th:nth-child(1) { width: 14%; }
.workday-team-table th:nth-child(2) { width: 12%; }
.workday-team-table th:nth-child(3),
.workday-team-table th:nth-child(4),
.workday-team-table th:nth-child(5),
.workday-team-table th:nth-child(6),
.workday-team-table th:nth-child(7) { width: 10%; }
.workday-team-table th:nth-child(8),
.workday-team-table th:nth-child(9),
.workday-team-table th:nth-child(10) { width: 8%; }

.workday-forecast-table th:nth-child(1) { width: 7%; }
.workday-forecast-table th:nth-child(2) { width: 7%; }
.workday-forecast-table th:nth-child(3),
.workday-forecast-table th:nth-child(4),
.workday-forecast-table th:nth-child(5),
.workday-forecast-table th:nth-child(6),
.workday-forecast-table th:nth-child(7),
.workday-forecast-table th:nth-child(8),
.workday-forecast-table th:nth-child(9),
.workday-forecast-table th:nth-child(10) { width: 5%; }
.workday-forecast-table .forecast-recommendation { width: 46%; }

.team-hero-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 240px auto;
  gap: 28px;
  align-items: center;
  min-height: 138px;
  padding: 24px 28px;
  margin-bottom: 14px;
  border-radius: 8px;
}

.team-hero-art {
  position: relative;
  width: 132px;
  height: 92px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 45%, rgba(217, 87, 204, 0.20), transparent 52%),
              radial-gradient(circle at 68% 42%, rgba(139, 61, 255, 0.14), transparent 56%);
}

.team-hero-bars {
  position: absolute;
  left: 30px;
  top: 28px;
  display: inline-flex;
  align-items: flex-end;
  gap: 7px;
}

.team-hero-bars i {
  width: 9px;
  border-radius: 99px 99px 0 0;
  background: linear-gradient(180deg, #ff64dc, #9d4cff);
  box-shadow: 0 10px 22px rgba(217, 87, 204, 0.20);
}

.team-hero-bars i:nth-child(1) { height: 30px; }
.team-hero-bars i:nth-child(2) { height: 47px; }
.team-hero-bars i:nth-child(3) { height: 38px; }

.team-hero-avatar {
  position: absolute;
  left: 54px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--ss-slate-950);
  background: linear-gradient(180deg, #f5f2ff, #d8c6ff);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
}

.team-hero-check {
  position: absolute;
  right: 24px;
  top: 22px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #d946cf;
  background: #ffe7fa;
  box-shadow: 0 10px 22px rgba(217, 87, 204, 0.16);
}

.team-hero-copy h2 {
  margin: 0 0 8px;
  color: var(--text-primary);
  font-size: 22px;
  line-height: 1.1;
}

.team-hero-copy p {
  max-width: 740px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.team-hero-status {
  display: grid;
  gap: 8px;
  padding-left: 26px;
  border-left: 1px solid var(--border-light);
}

.team-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  min-height: 30px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  color: var(--ss-emerald-700);
  background: var(--ss-mint-50);
  font-size: 13px;
  font-weight: 850;
}

.team-live-pill svg {
  width: 16px;
  height: 16px;
}

.team-hero-status small {
  color: var(--text-secondary);
  font-size: 12px;
}

.team-controltower-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--ss-magenta-500);
  border-radius: 8px;
  color: var(--ss-magenta-700);
  background: #fff;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.team-controltower-btn:hover {
  color: #fff;
  background: var(--ss-magenta-500);
  box-shadow: var(--shadow-pink);
}

.team-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.team-kpi-card {
  position: relative;
  min-height: 166px;
  padding: 18px 18px 12px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.team-kpi-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.team-kpi-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
}

.team-kpi-icon svg {
  width: 23px;
  height: 23px;
}

.team-kpi-card > strong {
  display: block;
  margin: -4px 0 0 58px;
  color: var(--text-primary);
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.team-kpi-card > small {
  display: block;
  margin: 8px 0 0 58px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.25;
}

.team-kpi-delta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: 12px;
}

.team-kpi-delta svg {
  width: 15px;
  height: 15px;
}

.team-kpi-delta b {
  font-weight: 900;
}

.team-kpi-delta.is-positive svg,
.team-kpi-delta.is-positive b {
  color: var(--ss-emerald-600);
}

.team-kpi-delta.is-negative svg,
.team-kpi-delta.is-negative b {
  color: #ff6b00;
}

.team-kpi-sparkline {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  width: calc(100% - 28px);
  height: 32px;
}

.team-kpi-sparkline polyline {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.team-kpi-badge {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  color: var(--ss-emerald-700);
  background: var(--ss-mint-50);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.team-kpi-card.is-violet { color: #8b3dff; }
.team-kpi-card.is-pink { color: #ff36c9; }
.team-kpi-card.is-blue { color: #2587ff; }
.team-kpi-card.is-green { color: #14b8a6; }
.team-kpi-card.is-orange { color: #ff8a00; }
.team-kpi-card.is-purple { color: #7c3aed; }

.team-kpi-card.is-violet .team-kpi-icon { background: #f3e8ff; box-shadow: 0 18px 26px rgba(139, 61, 255, 0.18); }
.team-kpi-card.is-pink .team-kpi-icon { background: #ffe6f8; box-shadow: 0 18px 26px rgba(255, 54, 201, 0.18); }
.team-kpi-card.is-blue .team-kpi-icon { background: #e5f2ff; box-shadow: 0 18px 26px rgba(37, 135, 255, 0.18); }
.team-kpi-card.is-green .team-kpi-icon { background: #defaf2; box-shadow: 0 18px 26px rgba(20, 184, 166, 0.16); }
.team-kpi-card.is-orange .team-kpi-icon { background: #fff2d6; box-shadow: 0 18px 26px rgba(255, 138, 0, 0.18); }
.team-kpi-card.is-purple .team-kpi-icon { background: #f3e8ff; box-shadow: 0 18px 26px rgba(124, 58, 237, 0.16); }

.team-filter-card {
  padding: 16px 18px;
  margin-bottom: 14px;
  border-radius: 8px;
}

.team-filter-form {
  display: grid;
  grid-template-columns: 1.15fr 1.35fr 1fr 1fr;
  gap: 12px;
  align-items: end;
}

.team-filter-form label {
  display: grid;
  gap: 7px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.team-filter-form input,
.team-filter-form select {
  min-height: 45px;
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  color: var(--text-primary);
  font: inherit;
  text-transform: none;
}

.team-tab-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.team-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-primary);
  background: #fff;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.team-tab.active {
  color: #fff;
  border-color: var(--ss-magenta-500);
  background: var(--ss-magenta-500);
  box-shadow: var(--shadow-pink);
}

.team-save-view {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  color: var(--text-secondary);
  font-size: 12px;
}

.team-save-view svg {
  width: 16px;
  height: 16px;
}

.team-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 14px;
}

.team-table-card,
.team-insights-card {
  border-radius: 8px;
}

.team-card-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.team-card-heading h2 {
  margin: 2px 0 0;
  font-size: 18px;
}

.team-table-wrap {
  overflow-x: auto;
}

.team-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.team-table th {
  padding: 12px 12px;
  color: var(--text-secondary);
  background: var(--ss-offwhite);
  border-bottom: 1px solid var(--border-light);
  font-size: 11px;
  font-weight: 850;
  text-align: left;
  text-transform: uppercase;
}

.team-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
  font-size: 13px;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.team-table th:nth-child(1) { width: 20%; }
.team-table th:nth-child(2) { width: 11%; }
.team-table th:nth-child(3),
.team-table th:nth-child(4),
.team-table th:nth-child(5),
.team-table th:nth-child(6),
.team-table th:nth-child(7) { width: 8%; }
.team-table th:nth-child(8) { width: 11%; }
.team-table th:nth-child(9) { width: 5%; }
.team-table th:nth-child(10) { width: 8%; }
.team-table th:nth-child(11) { width: 5%; }

.team-member-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.team-member-link {
  color: inherit;
  text-decoration: none;
}

.team-member-link:hover strong {
  color: var(--ss-magenta-600);
}

.team-member-cell strong,
.team-member-cell small {
  display: block;
}

.team-member-cell strong {
  color: var(--text-primary);
  font-weight: 850;
}

.team-member-cell small {
  margin-top: 3px;
  color: var(--text-secondary);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.team-avatar {
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.10);
}

.team-avatar.is-violet { background: #e9ddff; }
.team-avatar.is-pink { background: #ffe0f4; }
.team-avatar.is-blue { background: #ddecff; }
.team-avatar.is-green { background: #dcf8ee; }
.team-avatar.is-orange { background: #ffe8cd; }
.team-avatar.is-muted { background: #e9eef2; }

.team-strength-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.team-strength-pill.is-violet { color: #6d28d9; background: #f3e8ff; }
.team-strength-pill.is-pink { color: #db2777; background: #ffe6f8; }
.team-strength-pill.is-blue { color: #2563eb; background: #e5f2ff; }
.team-strength-pill.is-green { color: #059669; background: #ddfaea; }
.team-strength-pill.is-orange { color: var(--ss-warning-dark); background: var(--ss-warning-bg); }
.team-strength-pill.is-muted { color: var(--text-secondary); background: var(--ss-offwhite); }

.team-skill {
  display: grid;
  gap: 3px;
}

.team-skill strong {
  color: var(--text-primary);
  font-weight: 850;
}

.team-skill small {
  color: var(--text-secondary);
  font-size: 12px;
}

.team-activity-value {
  display: block;
  margin-bottom: 4px;
  color: var(--text-primary);
  font-weight: 850;
}

.team-activity-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  width: 78px;
  height: 24px;
  color: var(--ss-magenta-500);
}

.team-activity-bars i {
  flex: 1;
  min-width: 3px;
  border-radius: 99px 99px 0 0;
  background: currentColor;
}

.team-confidence-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 28px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 900;
}

.team-confidence-pill.is-good {
  color: var(--ss-emerald-700);
  background: var(--ss-mint-50);
}

.team-confidence-pill.is-warning {
  color: var(--ss-warning-dark);
  background: var(--ss-warning-bg);
}

.team-row-action {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
}

.team-row-action:hover {
  color: var(--text-primary);
  background: var(--ss-offwhite);
}

.team-row-action svg {
  width: 18px;
  height: 18px;
}

.team-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  color: var(--text-secondary);
  font-size: 12px;
}

.team-table-footer b {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-left: 8px;
  padding: 0 12px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-primary);
  background: #fff;
}

.team-insights-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 18px;
}

.team-insight {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #fff;
}

.team-insight-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.team-insight-icon svg {
  width: 22px;
  height: 22px;
}

.team-insight strong {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 850;
}

.team-insight p {
  margin: 4px 0 10px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.35;
}

.team-insight > b {
  align-self: end;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 900;
}

.team-insight-bar {
  display: block;
  height: 5px;
  border-radius: var(--radius-pill);
  background: var(--ss-offwhite);
  overflow: hidden;
}

.team-insight-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: currentColor;
}

.team-insight.is-pink { color: #ff36c9; }
.team-insight.is-green { color: var(--ss-emerald-600); }
.team-insight.is-orange { color: #ff8a00; }
.team-insight.is-pink .team-insight-icon { background: #ffe6f8; }
.team-insight.is-green .team-insight-icon { background: #ddfaea; }
.team-insight.is-orange .team-insight-icon { background: #fff2d6; }

.employee-os-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 14px;
  padding: 24px 28px;
  border-radius: 8px;
}

.employee-os-identity,
.employee-os-actions,
.employee-os-badges,
.employee-os-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
}

.employee-os-identity {
  gap: 18px;
}

.employee-os-avatar {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 22px;
  color: var(--text-primary);
  background: linear-gradient(135deg, #ffe6f8, #e9ddff);
  box-shadow: 0 20px 36px rgba(217, 87, 204, 0.18);
  font-size: 22px;
  font-weight: 900;
}

.employee-os-identity h2,
.employee-os-summary h2 {
  margin: 2px 0 12px;
  color: var(--text-primary);
  font-size: 28px;
  line-height: 1.05;
}

.employee-os-badges {
  flex-wrap: wrap;
}

.employee-os-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.employee-os-actions > span {
  color: var(--text-secondary);
  font-size: 13px;
}

.employee-os-name-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--ss-offwhite);
}

.employee-os-name-form label {
  display: grid;
  gap: 4px;
  min-width: 210px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.employee-os-name-form input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: 7px 10px;
  background: #fff;
  color: var(--text-primary);
  font: inherit;
}

.employee-os-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.employee-os-kpis .team-kpi-card {
  min-height: 132px;
  padding: 18px;
}

.employee-os-kpis .team-kpi-card > span {
  display: block;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.employee-os-kpis .team-kpi-card > strong,
.employee-os-kpis .team-kpi-card > small {
  margin-left: 0;
}

.employee-os-kpis .team-kpi-card > strong {
  margin-top: 16px;
}

.employee-os-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 14px;
  margin-bottom: 14px;
}

.employee-skill-card,
.employee-os-summary,
.employee-trend-card,
.employee-empty-card {
  border-radius: 8px;
}

.employee-skill-stack {
  display: grid;
  gap: 12px;
}

.employee-skill-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}

.employee-skill-row:last-child {
  border-bottom: 0;
}

.employee-skill-row strong,
.employee-skill-row span,
.employee-skill-row small {
  display: block;
}

.employee-skill-row strong {
  color: var(--text-primary);
  font-size: 14px;
}

.employee-skill-row span {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 13px;
}

.employee-skill-row small {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.35;
}

.employee-skill-bar {
  height: 9px;
  border-radius: var(--radius-pill);
  background: var(--ss-offwhite);
  overflow: hidden;
}

.employee-skill-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ss-magenta-500), #8b3dff);
}

.employee-os-summary {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px;
}

.employee-os-summary p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.5;
}

.employee-os-summary div {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.employee-os-summary span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 13px;
}

.employee-os-summary b {
  color: var(--text-primary);
  font-size: 15px;
}

.employee-table-wrap {
  overflow-x: auto;
}

.employee-os-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
}

.employee-os-table th,
.employee-os-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
}

.employee-os-table th {
  color: var(--text-secondary);
  background: var(--ss-offwhite);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.employee-os-table td {
  color: var(--text-primary);
  font-size: 13px;
}

.employee-empty-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.employee-empty-card h2 {
  margin: 4px 0 8px;
}

.employee-empty-card p {
  margin: 0;
  color: var(--text-secondary);
}

body.planner-page .empty-banner,
body.planner-page .soft-card {
  padding: 22px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

body.planner-page .empty-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 14px;
}

body.planner-page .empty-banner h2,
body.planner-page .section-heading h2,
body.planner-page .planner-toolbar h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 22px;
  line-height: 1.15;
}

body.planner-page .empty-banner p,
body.planner-page .team-muted-text {
  max-width: 860px;
  margin: 8px 0 0;
  color: var(--text-secondary);
  line-height: 1.55;
}

body.planner-page .button-primary,
body.planner-page .button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

body.planner-page .button-primary {
  color: #fff;
  border-color: var(--ss-magenta-500);
  background: linear-gradient(135deg, var(--ss-magenta-500), #b832b3);
  box-shadow: var(--shadow-pink);
}

body.planner-page .button-secondary {
  color: var(--text-primary);
  background: #fff;
}

body.planner-page .button-secondary:hover {
  border-color: rgba(217, 87, 204, 0.34);
  color: var(--ss-magenta-700);
}

body.planner-page .danger-soft {
  color: var(--ss-danger-dark);
  border-color: rgba(220, 53, 69, 0.20);
  background: var(--ss-danger-bg);
}

body.planner-page .metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

body.planner-page .metric-card {
  display: grid;
  min-height: 138px;
  padding: 18px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

body.planner-page .metric-card span,
body.planner-page .metric-card small {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.35;
}

body.planner-page .metric-card span {
  font-weight: 700;
  text-transform: uppercase;
}

body.planner-page .metric-card strong {
  align-self: center;
  color: var(--text-primary);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

body.planner-page .section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

body.planner-page .settings-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.planner-date-form {
  min-width: 230px;
}

.planner-date-navigator {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  justify-content: center;
  flex: 1 1 520px;
  gap: 8px;
}

.planner-date-form label,
.planner-editor-panel label {
  display: grid;
  gap: 7px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.planner-date-form input,
.planner-editor-panel input,
.planner-editor-panel select,
.planner-editor-panel textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: 9px 12px;
  background: #fff;
  color: var(--text-primary);
  font: inherit;
  outline: none;
}

.planner-coverage-card {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.planner-coverage-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.planner-coverage-item {
  display: grid;
  gap: 5px;
  min-height: 96px;
  padding: 13px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--ss-offwhite);
}

.planner-coverage-item span,
.planner-coverage-item small {
  color: var(--text-secondary);
}

.planner-coverage-item span {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.planner-coverage-item strong {
  color: var(--text-primary);
  font-size: 19px;
  font-weight: 900;
}

.planner-coverage-item.is-ok {
  border-color: rgba(16, 185, 129, 0.26);
  background: var(--ss-mint-50);
}

.planner-coverage-item.is-ok strong {
  color: var(--ss-emerald-600);
}

.planner-coverage-item.is-missing {
  border-color: rgba(220, 53, 69, 0.24);
  background: var(--ss-danger-bg);
}

.planner-coverage-item.is-missing strong {
  color: var(--ss-danger-dark);
}

.planner-coverage-item.is-over {
  border-color: rgba(217, 152, 43, 0.28);
  background: var(--ss-warning-bg);
}

.planner-ratio-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #fff;
}

.planner-ratio-alert strong {
  color: var(--text-primary);
}

.planner-ratio-alert span {
  color: var(--text-secondary);
  line-height: 1.45;
}

.planner-ratio-alert.is-ok {
  border-color: rgba(16, 185, 129, 0.26);
  background: var(--ss-mint-50);
}

.planner-ratio-alert.is-missing {
  border-color: rgba(220, 53, 69, 0.24);
  background: var(--ss-danger-bg);
}

.planner-save-state {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.planner-save-state.is-ok {
  color: var(--ss-emerald-600);
  border-color: rgba(16, 185, 129, 0.26);
  background: var(--ss-mint-50);
}

.planner-save-state.is-warning {
  color: var(--ss-warning-dark);
  border-color: rgba(217, 152, 43, 0.28);
  background: var(--ss-warning-bg);
}

.planner-save-state.is-danger {
  color: var(--ss-danger-dark);
  border-color: rgba(220, 53, 69, 0.24);
  background: var(--ss-danger-bg);
}

.planner-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 14px;
}

.planner-toolbar > div:first-child {
  flex: 1 1 220px;
}

.planner-toolbar-actions {
  display: flex;
  flex: 1 1 360px;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.planner-day-team-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.planner-day-team-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #fff;
  color: var(--text-primary);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.planner-day-team-chip > div {
  min-width: 0;
}

.planner-day-team-chip strong,
.planner-day-team-chip small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.planner-day-team-chip small {
  color: var(--text-secondary);
  font-size: 12px;
}

.planner-day-team-chip.is-included {
  border-color: rgba(16, 185, 129, 0.22);
  background: var(--ss-mint-50);
}

.planner-day-team-chip.is-excluded {
  border-color: rgba(220, 53, 69, 0.20);
  background: var(--ss-danger-bg);
}

.planner-day-team-chip.is-muted {
  opacity: 0.68;
}

.planner-day-team-note {
  display: grid;
  gap: 7px;
  margin: 4px 0 12px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.planner-day-team-note input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: 8px 11px;
  background: #fff;
  color: var(--text-primary);
  font: inherit;
}

.planner-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.planner-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.planner-task-bank {
  position: sticky;
  top: 18px;
}

.planner-small-button {
  min-height: 34px !important;
  padding: 0 12px !important;
}

.planner-task-scroll-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 30px;
  margin-top: 10px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #fff;
  color: var(--text-secondary);
  font-weight: 900;
  cursor: pointer;
}

.planner-task-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  max-height: 624px;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: none;
}

.planner-task-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.planner-task-template {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  cursor: grab;
  user-select: none;
  box-shadow: var(--shadow-sm);
}

.planner-task-template > span {
  flex: 1 1 auto;
  min-width: 0;
}

.planner-task-template:active {
  cursor: grabbing;
}

.planner-task-template span {
  display: grid;
  gap: 2px;
}

.planner-task-template strong {
  color: var(--text-primary);
}

.planner-task-template small,
.planner-task-template em {
  color: var(--text-secondary);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.planner-time-header {
  display: grid;
  grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
  gap: 12px;
  margin-top: 14px;
  padding: 0 2px 8px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.planner-time-header div {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
}

.planner-time-header div span {
  text-align: center;
}

.planner-board {
  display: grid;
  gap: 10px;
}

.planner-employee-row {
  display: grid;
  grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.planner-employee-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #fff;
}

.planner-employee-card > div {
  min-width: 0;
}

.planner-employee-card strong,
.planner-employee-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.planner-employee-card small {
  color: var(--text-secondary);
}

.mini-avatar {
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--text-primary);
  background: linear-gradient(135deg, #ffe6f8, #e9ddff);
  font-size: 12px;
  font-weight: 900;
}

.planner-employee-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.planner-employee-meta span {
  padding: 3px 7px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  background: var(--ss-offwhite);
  font-size: 11px;
  font-weight: 700;
}

.planner-employee-row.is-overbooked .planner-employee-card {
  border-color: rgba(220, 53, 69, 0.24);
  background: var(--ss-danger-bg);
}

.planner-timeline {
  position: relative;
  min-height: 82px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--ss-offwhite);
}

.planner-timeline.is-over {
  box-shadow: inset 0 0 0 2px rgba(217, 87, 204, 0.24);
  background: var(--ss-magenta-50);
}

.planner-slot {
  position: relative;
  float: left;
  width: 10%;
  min-height: 82px;
  height: 100%;
  border-right: 1px solid var(--border-light);
}

.planner-slot:last-child {
  border-right: 0;
}

.planner-assignment {
  position: absolute;
  top: 12px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 78px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
  cursor: grab;
  overflow: hidden;
}

.planner-assignment-main {
  min-width: 0;
  flex: 1 1 auto;
}

.planner-assignment strong,
.planner-assignment small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.planner-assignment strong {
  font-size: 13px;
}

.planner-assignment small {
  color: rgba(16, 36, 43, 0.72);
  font-size: 11px;
  font-weight: 700;
}

.planner-assignment button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
  font-weight: 900;
}

.planner-resize-handle {
  align-self: stretch;
  flex: 0 0 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.64);
  cursor: ew-resize;
}

.planner-task-pick,
.planner-task-picking { background: #e9ddff; color: #6d28d9; }
.planner-task-pack,
.planner-task-packing { background: #ffe6f8; color: #be185d; }
.planner-task-inbound { background: #dff9f6; color: #047a72; }
.planner-task-returns,
.planner-task-return { background: #ffe8cd; color: #9a3412; }
.planner-task-replenishment,
.planner-task-replen { background: #ddfaea; color: #047857; }
.planner-task-todo { background: var(--ss-blue-50); color: var(--ss-blue-700); }
.planner-task-repack { background: #fff2d6; color: var(--ss-warning-dark); }
.planner-task-break,
.planner-task-admin { background: #eef4f4; color: var(--text-secondary); }

.planner-editor,
.planner-dialog {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3, 25, 31, 0.26);
  backdrop-filter: blur(8px);
}

.planner-editor[hidden],
.planner-dialog[hidden] {
  display: none;
}

.planner-editor-panel,
.planner-dialog-panel {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(520px, 100%);
  padding: 24px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.planner-dialog-panel {
  width: min(1120px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  scrollbar-width: none;
}

.planner-dialog-panel::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.planner-editor-panel h2 {
  margin: 0;
}

.planner-editor-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--ss-offwhite);
  color: var(--text-primary);
  font-size: 22px;
  line-height: 1;
}

.planner-editor-fit {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--ss-offwhite);
}

.planner-editor-fit span {
  color: var(--text-secondary);
}

.planner-editor-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.forecast-engine-page .page-heading {
  margin-bottom: 18px;
}

.forecast-heading-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -8px 0 22px;
}

.forecast-last-run-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  width: fit-content;
  padding: 0 14px;
  border-radius: 8px;
  color: var(--ss-magenta-700);
  background: rgba(255, 54, 201, 0.12);
  box-shadow: 0 10px 22px rgba(217, 87, 204, 0.12);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.forecast-last-run-pill svg {
  width: 16px;
  height: 16px;
}

.forecast-heading-actions {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.forecast-engine-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.forecast-kpi-card {
  position: relative;
  min-height: 166px;
  padding: 18px 18px 34px;
  overflow: hidden;
  border: 1px solid rgba(220, 226, 235, 0.78);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.forecast-kpi-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-height: 48px;
}

.forecast-kpi-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.10);
}

.forecast-kpi-icon svg {
  width: 25px;
  height: 25px;
  stroke-width: 2.15;
}

.forecast-kpi-card.is-violet .forecast-kpi-icon { color: #8b3dff; background: #f3e8ff; box-shadow: 0 18px 26px rgba(139, 61, 255, 0.20); }
.forecast-kpi-card.is-pink .forecast-kpi-icon { color: #ff36c9; background: #ffe6f8; box-shadow: 0 18px 26px rgba(255, 54, 201, 0.20); }
.forecast-kpi-card.is-blue .forecast-kpi-icon { color: #2587ff; background: #e5f2ff; box-shadow: 0 18px 26px rgba(37, 135, 255, 0.20); }
.forecast-kpi-card.is-orange .forecast-kpi-icon { color: #ff8a00; background: #fff2d6; box-shadow: 0 18px 26px rgba(255, 138, 0, 0.20); }
.forecast-kpi-card.is-green .forecast-kpi-icon { color: #16b66a; background: #ddfaea; box-shadow: 0 18px 26px rgba(22, 182, 106, 0.20); }
.forecast-kpi-card.is-red .forecast-kpi-icon { color: var(--ss-danger); background: var(--ss-danger-bg); box-shadow: 0 18px 26px rgba(220, 38, 38, 0.18); }
.forecast-kpi-card.is-purple .forecast-kpi-icon { color: #7c3aed; background: #f3e8ff; box-shadow: 0 18px 26px rgba(124, 58, 237, 0.18); }

.forecast-kpi-label {
  display: block;
  color: var(--text-secondary);
  padding-top: 3px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.28;
  text-transform: uppercase;
}

.forecast-kpi-card strong {
  display: block;
  margin: -6px 0 0 62px;
  color: var(--text-primary);
  font-size: 32px;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0;
}

.forecast-kpi-card small {
  display: block;
  margin: 0 0 0 62px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.1;
  min-height: 14px;
}

.forecast-kpi-delta {
  position: absolute;
  left: 18px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.forecast-kpi-delta svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.3;
}

.forecast-kpi-delta b {
  font-weight: 900;
}

.forecast-kpi-delta.is-positive b,
.forecast-kpi-delta.is-positive svg {
  color: var(--ss-emerald-600);
}

.forecast-kpi-delta.is-negative b,
.forecast-kpi-delta.is-negative svg {
  color: #ff6b00;
}

.forecast-kpi-delta.is-neutral {
  color: var(--text-secondary);
}

.forecast-engine-filter {
  padding: 18px;
  margin-bottom: 14px;
  border-radius: 8px;
}

.forecast-filter-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(110px, 0.55fr) repeat(3, minmax(150px, 0.75fr));
  gap: 14px;
  align-items: end;
}

.forecast-filter-form label {
  display: grid;
  gap: 7px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.forecast-filter-form input {
  min-height: 46px;
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: 0 13px;
  background: #fff;
  color: var(--text-primary);
  font: inherit;
}

.forecast-trend-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  padding: 14px 16px 14px 14px;
  margin-bottom: 14px;
  border-radius: 8px;
  align-items: stretch;
}

.forecast-trend-main {
  min-width: 0;
}

.forecast-chart-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 2px;
}

.forecast-chart-top h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.forecast-chart-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: var(--text-secondary);
  font-size: 12px;
}

.forecast-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.forecast-chart-legend i {
  width: 18px;
  height: 2px;
  border-radius: 99px;
}

.forecast-chart-legend .is-need { background: var(--ss-magenta-500); }
.forecast-chart-legend .is-capacity {
  background: repeating-linear-gradient(90deg, #9aa6b2 0 8px, transparent 8px 12px);
}

.forecast-trend-chart {
  width: 100%;
  height: auto;
  aspect-ratio: 1160 / 220;
  min-height: 0;
  margin-top: 0;
  display: block;
  max-width: none;
  overflow: visible;
}

.forecast-trend-chart .grid {
  stroke: var(--border-light);
  stroke-width: 1;
}

.forecast-trend-chart polyline {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.forecast-trend-chart .need-area {
  fill: url(#forecastTrendFill);
}

.forecast-trend-chart .need {
  stroke: var(--ss-magenta-500);
}

.forecast-trend-chart .capacity {
  stroke: #9aa6b2;
  stroke-dasharray: 8 7;
}

.forecast-trend-chart .axis-label,
.forecast-trend-chart .date-label {
  fill: var(--text-secondary);
  font-size: 11px;
  font-weight: 650;
}

.forecast-trend-chart .date-label {
  text-anchor: middle;
}

.forecast-trend-chart .chart-point {
  stroke: #fff;
  stroke-width: 2.5;
}

.forecast-trend-chart .chart-point.is-need {
  fill: var(--ss-magenta-500);
}

.forecast-trend-chart .chart-point.is-capacity {
  fill: #9aa6b2;
}

.forecast-trend-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-content: center;
  min-height: 220px;
  padding: 22px 16px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #fbfdfd;
}

.forecast-trend-summary div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.forecast-trend-summary div:last-child {
  border-bottom: 0;
}

.forecast-trend-summary span {
  color: var(--text-secondary);
  font-size: 13px;
}

.forecast-trend-summary strong {
  color: var(--text-primary);
  font-size: 14px;
  text-align: right;
}

.forecast-trend-summary .is-danger { color: var(--ss-danger); }
.forecast-trend-summary .is-good { color: var(--ss-emerald-600); }

.forecast-results-card {
  padding: 18px;
  border-radius: 8px;
}

.forecast-engine-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.forecast-engine-table th:nth-child(1) { width: 7%; }
.forecast-engine-table th:nth-child(2) { width: 11%; }
.forecast-engine-table th:nth-child(3) { width: 7%; }
.forecast-engine-table th:nth-child(4) { width: 13%; }
.forecast-engine-table th:nth-child(5) { width: 8%; }
.forecast-engine-table th:nth-child(6) { width: 9%; }
.forecast-engine-table th:nth-child(7) { width: 21%; }
.forecast-engine-table th:nth-child(8) { width: 24%; }

.forecast-results-card .table-scroll {
  overflow-x: visible;
}

.forecast-engine-table th {
  white-space: nowrap;
}

.forecast-engine-table td {
  vertical-align: top;
  white-space: normal;
  overflow-wrap: break-word;
}

.forecast-engine-table.os-table td:nth-child(2) {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
}

.forecast-engine-table .forecast-metric span {
  white-space: normal;
}

.forecast-engine-table td > small {
  display: block;
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 11px;
}

.forecast-metric strong {
  display: block;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 850;
}

.forecast-inbound-trigger {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--text-primary);
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 850;
  letter-spacing: 0;
  margin: 0;
  padding: 0;
  text-align: left;
}

.forecast-inbound-trigger:hover,
.forecast-inbound-trigger:focus-visible {
  color: var(--os-accent-dark);
  text-decoration: underline;
  text-decoration-color: rgba(211, 69, 200, 0.42);
  text-underline-offset: 4px;
}

.forecast-inbound-trigger:focus-visible {
  outline: 2px solid rgba(211, 69, 200, 0.3);
  outline-offset: 5px;
}

.forecast-inbound-modal .os-modal-panel {
  max-width: 880px;
}

.forecast-inbound-dialog-list {
  display: grid;
  gap: 10px;
}

.forecast-inbound-dialog-row {
  align-items: center;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(190px, 1.4fr) minmax(150px, 1fr) minmax(100px, auto) auto;
  padding: 16px;
}

.forecast-inbound-dialog-main,
.forecast-inbound-dialog-arrival,
.forecast-inbound-dialog-metric {
  display: grid;
  gap: 3px;
}

.forecast-inbound-dialog-main span,
.forecast-inbound-dialog-arrival small,
.forecast-inbound-dialog-metric small {
  color: var(--text-secondary);
  font-size: 12px;
}

.forecast-inbound-dialog-metric strong {
  color: var(--os-accent-dark);
  font-size: 20px;
}

@media (max-width: 760px) {
  .forecast-inbound-dialog-row {
    grid-template-columns: 1fr 1fr;
  }
}

.forecast-metric span {
  display: block;
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 12px;
  white-space: nowrap;
}

.forecast-metric .forecast-adjustment-note {
  color: var(--ss-purple-700);
  white-space: normal;
}

.forecast-choice {
  display: inline-grid;
  gap: 2px;
  min-width: 104px;
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 900;
  text-align: center;
}

.forecast-choice small {
  display: block;
  font-size: 11px;
  font-weight: 800;
}

.forecast-choice.is-cp {
  color: var(--ss-emerald-600);
  background: var(--ss-mint-50);
}

.forecast-choice.is-blend {
  color: var(--ss-warning-dark);
  background: var(--ss-warning-bg);
}

.forecast-choice.is-lfl {
  color: var(--ss-blue-700);
  background: var(--ss-blue-50);
}

.leader-cell {
  min-width: 0;
}

.leader-plan-field {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(217, 87, 204, 0.34);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 244, 253, 0.96), rgba(234, 242, 255, 0.78));
}

.leader-plan-field span,
.leader-plan-field strong {
  grid-column: 1 / -1;
}

.leader-plan-field span {
  color: var(--ss-magenta-700);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.leader-plan-field strong {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}

.leader-plan-field input {
  width: 112px;
  min-height: 42px;
  border: 1px solid rgba(217, 87, 204, 0.35);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.leader-plan-field em {
  color: var(--text-secondary);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.leader-details {
  margin-top: 8px;
}

.leader-details summary {
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.leader-details .leader-grid {
  margin-top: 7px;
}

.leader-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(48px, 1fr));
  gap: 6px;
}

.leader-grid label {
  display: grid;
  gap: 3px;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.leader-grid input,
.leader-note {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: 0 8px;
  background: #fff;
  color: var(--text-primary);
  font: inherit;
}

.leader-readout span {
  display: grid;
  gap: 3px;
  min-height: 34px;
  padding: 7px 8px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #fff;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 800;
}

.leader-readout b {
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.leader-note {
  margin-top: 7px;
}

.leader-badge {
  display: inline-flex;
  margin-top: 7px;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  color: var(--ss-magenta-700);
  background: rgba(255, 54, 201, 0.10);
  font-size: 11px;
  font-weight: 800;
}

.forecast-recommendation {
  min-width: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

@media (max-width: 1280px) {
  .team-hero-card {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .team-hero-status,
  .team-controltower-btn {
    grid-column: 2;
  }

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

  .team-content-grid {
    grid-template-columns: 1fr;
  }

  .employee-os-hero,
  .employee-os-grid {
    grid-template-columns: 1fr;
  }

  .employee-os-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.planner-page .metric-grid,
  .planner-coverage-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .planner-layout {
    grid-template-columns: 1fr;
  }

  .planner-day-team-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .planner-task-bank {
    position: static;
  }

  .planner-task-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .forecast-engine-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .forecast-trend-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .team-hero-card,
  .team-filter-form {
    grid-template-columns: 1fr;
  }

  .team-hero-status,
  .team-controltower-btn {
    grid-column: auto;
  }

  .team-hero-status {
    padding-left: 0;
    border-left: 0;
  }

  .team-kpi-grid {
    grid-template-columns: 1fr;
  }

  .team-save-view {
    width: 100%;
    margin-left: 0;
  }

  .employee-os-kpis,
  .employee-skill-row {
    grid-template-columns: 1fr;
  }

  .employee-os-identity,
  .employee-os-actions,
  .employee-os-toggle {
    align-items: flex-start;
    flex-direction: column;
  }

  body.planner-page .empty-banner,
  .planner-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  body.planner-page .metric-grid,
  .planner-task-list,
  .planner-day-team-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .planner-date-form,
  .planner-toolbar-actions {
    width: 100%;
  }

  .planner-time-header {
    display: none;
  }

  .planner-employee-row {
    grid-template-columns: 1fr;
  }

  .planner-timeline {
    min-height: 96px;
  }

  .forecast-heading-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .forecast-filter-form {
    grid-template-columns: 1fr;
  }

  .forecast-heading-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .forecast-engine-kpis {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body.planner-page .metric-grid,
  .planner-task-list,
  .planner-day-team-list,
  .planner-coverage-grid,
  body.planner-page .settings-field-grid {
    grid-template-columns: 1fr;
  }

  .planner-ratio-alert,
  .planner-editor-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .planner-assignment {
    padding: 8px;
  }

  .planner-assignment small {
    display: none;
  }
}

.strong-link {
  color: inherit;
  text-decoration: none;
}

.strong-link:hover strong {
  color: var(--ss-blue);
}

.empty-state.small {
  min-height: 0;
  padding: 12px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.kpi-card.danger {
  border-color: rgba(192, 24, 24, 0.18);
  background: #fff7f7;
}

.ct-todo-modal {
  width: min(760px, calc(100vw - 32px));
  border: 0;
  border-radius: var(--radius-lg);
  padding: 0;
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
}

.ct-todo-modal::backdrop {
  background: rgba(3, 25, 31, 0.62);
}

.ct-todo-modal-close-form {
  margin: 0;
}

.ct-todo-modal-body {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.ct-todo-modal-body h2 {
  margin: 0;
  padding-right: 42px;
  font-size: 26px;
}

.ct-todo-modal-body p {
  margin: 0;
  color: var(--text-secondary);
}

.ct-todo-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ct-todo-preview-grid article {
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--ss-offwhite);
}

.ct-todo-preview-grid span,
.ct-todo-preview-label {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ct-todo-preview-grid strong {
  display: block;
  margin-top: 4px;
}

.ct-todo-preview-label {
  display: grid;
  gap: 8px;
}

.ct-todo-preview-label textarea {
  width: 100%;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: #fff;
  color: var(--text-primary);
  resize: vertical;
  text-transform: none;
  font-weight: 500;
}

.ct-todo-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Suppliers */
.suppliers-page .page-heading {
  margin-bottom: 18px;
}

.supplier-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.supplier-kpi {
  position: relative;
  min-height: 126px;
  padding: 20px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
}

.supplier-kpi::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #d957cc, #18c7b6, #f59e0b);
}

.supplier-kpi span {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.supplier-kpi strong {
  display: block;
  margin: 8px 0 4px;
  color: var(--text-primary);
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0;
}

.supplier-kpi small {
  color: var(--text-secondary);
  font-size: 13px;
}

.supplier-toolbar,
.supplier-directory-hero,
.supplier-table-card,
.supplier-detail-hero,
.supplier-form-card,
.supplier-side-card,
.supplier-files-card,
.supplier-notes-card,
.supplier-contacts-card,
.supplier-followups-card {
  border-radius: 8px;
}

.supplier-directory-hero {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  min-height: 144px;
  padding: 24px 28px;
  margin-bottom: 16px;
}

.supplier-directory-art {
  position: relative;
  width: 190px;
  height: 104px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff3fd, #fbf6ff);
  overflow: hidden;
}

.supplier-directory-art::before,
.supplier-directory-art::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(217, 87, 204, 0.14);
  border-radius: 999px;
}

.supplier-directory-art::before {
  inset: 15px 32px 20px 34px;
}

.supplier-directory-art::after {
  inset: 34px 70px 34px 70px;
  background: rgba(217, 87, 204, 0.12);
}

.supplier-art-node {
  position: absolute;
  z-index: 1;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #b73bc5;
  background: #fff;
  box-shadow: 0 10px 22px rgba(217, 87, 204, 0.14);
}

.supplier-art-node svg {
  width: 15px;
  height: 15px;
}

.supplier-art-node.is-main {
  left: 76px;
  top: 38px;
  width: 46px;
  height: 46px;
  color: #fff;
  background: linear-gradient(135deg, #be2bb8, #d957cc);
}

.supplier-art-node.is-main svg {
  width: 24px;
  height: 24px;
}

.supplier-art-node.is-one { left: 40px; top: 18px; }
.supplier-art-node.is-two { right: 34px; top: 19px; }
.supplier-art-node.is-three { left: 28px; bottom: 21px; }
.supplier-art-node.is-four { right: 20px; bottom: 18px; }

.supplier-directory-copy h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 22px;
  line-height: 1.1;
}

.supplier-directory-copy p {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.supplier-directory-action {
  min-width: 190px;
}

.supplier-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  padding: 16px;
  margin-bottom: 16px;
}

.supplier-filter-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 240px) auto auto;
  gap: 12px;
  align-items: end;
}

.supplier-filter-form label,
.supplier-form label,
.supplier-upload-form label,
.supplier-logo-panel label,
.supplier-contact-form label,
.supplier-followup-form label {
  display: grid;
  gap: 7px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 750;
}

.supplier-filter-form label > span,
.supplier-form label > span,
.supplier-upload-form label > span,
.supplier-logo-panel label > span,
.supplier-contact-form label > span,
.supplier-followup-form label > span {
  text-transform: uppercase;
}

.supplier-filter-form input,
.supplier-filter-form select,
.supplier-form input,
.supplier-form select,
.supplier-form textarea,
.supplier-upload-form input,
.supplier-logo-panel input,
.supplier-contact-form input,
.supplier-followup-form input,
.supplier-followup-form select,
.supplier-followup-form textarea,
.supplier-note-dialog textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--text-primary);
  font: inherit;
}

.supplier-form textarea,
.supplier-note-dialog textarea {
  resize: vertical;
}

.supplier-table-card {
  padding: 18px;
  overflow: hidden;
}

.supplier-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.supplier-card-head h2,
.supplier-detail-hero h2,
.supplier-side-card h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 22px;
  line-height: 1.1;
}

.supplier-card-head p,
.supplier-detail-hero p,
.supplier-side-card p {
  margin: 0;
  color: var(--text-secondary);
}

.supplier-profile-hero {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 18px 22px;
  margin-bottom: 14px;
  border-radius: 8px;
}

.supplier-profile-logo {
  width: 150px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #fff;
}

.supplier-profile-logo img {
  max-width: 122px;
  max-height: 68px;
  object-fit: contain;
}

.supplier-profile-logo span {
  color: var(--ss-magenta-700);
  font-size: 30px;
  font-weight: 900;
}

.supplier-profile-main {
  min-width: 0;
}

.supplier-profile-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.supplier-profile-title h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: 0;
}

.supplier-profile-title > span:not(.supplier-status) {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  color: #7c3aed;
  background: #f3e8ff;
  font-size: 12px;
  font-weight: 800;
}

.supplier-profile-meta {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 16px;
  margin: 0;
}

.supplier-profile-meta div {
  min-width: 0;
}

.supplier-profile-meta dt {
  margin: 0 0 5px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 750;
}

.supplier-profile-meta dd {
  margin: 0;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.supplier-profile-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 10px;
  min-width: 330px;
}

.supplier-profile-actions .btn {
  min-height: 40px;
}

.supplier-profile-accent {
  color: var(--ss-magenta-700);
  border-color: rgba(217, 87, 204, 0.35);
}

.supplier-profile-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 14px;
}

.supplier-profile-kpis article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 96px;
  padding: 16px;
  border-radius: 0;
  border-right: 0;
}

.supplier-profile-kpis article:first-child {
  border-radius: 8px 0 0 8px;
}

.supplier-profile-kpis article:last-child {
  border-right: 1px solid var(--border-light);
  border-radius: 0 8px 8px 0;
}

.supplier-profile-kpis article > span {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--ss-magenta-700);
  background: var(--ss-magenta-100);
}

.supplier-profile-kpis svg {
  width: 21px;
  height: 21px;
}

.supplier-profile-kpis small,
.supplier-profile-kpis em {
  display: block;
  color: var(--text-secondary);
  font-size: 11px;
  font-style: normal;
}

.supplier-profile-kpis strong {
  display: block;
  margin: 2px 0;
  color: var(--text-primary);
  font-size: 24px;
  line-height: 1;
}

.supplier-profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

.supplier-profile-tabs a {
  position: relative;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 800;
}

.supplier-profile-tabs a:first-child {
  color: var(--ss-magenta-700);
}

.supplier-profile-tabs a:first-child::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 99px 99px 0 0;
  background: var(--ss-magenta-500);
}

.supplier-profile-tabs svg {
  width: 17px;
  height: 17px;
}

.supplier-detail-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 24px;
  margin-bottom: 16px;
}

.supplier-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 16px;
  margin-bottom: 16px;
}

.supplier-detail-grid.is-profile-view {
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.55fr);
}

.supplier-form-card,
.supplier-side-card,
.supplier-files-card,
.supplier-notes-card,
.supplier-contacts-card,
.supplier-followups-card {
  padding: 20px;
}

.supplier-overview-card {
  padding: 20px;
  border-radius: 8px;
}

.supplier-overview-text {
  margin: 0 0 16px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.supplier-overview-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 0;
}

.supplier-overview-facts dt {
  margin: 0 0 5px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.supplier-overview-facts dd {
  margin: 0;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 800;
}

.supplier-toggle-panel {
  grid-column: 1 / -1;
  margin-top: 2px;
  border-color: rgba(217, 87, 204, 0.20);
  background: linear-gradient(135deg, #fff, #fff8fe);
}

form.supplier-toggle-panel {
  padding: 14px;
  border: 1px solid rgba(217, 87, 204, 0.20);
  border-radius: 8px;
}

.supplier-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.supplier-form {
  display: grid;
  gap: 14px;
}

.supplier-form-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.supplier-side-card {
  align-self: start;
  display: grid;
  gap: 16px;
}

.supplier-readout {
  display: grid;
  gap: 10px;
}

.supplier-logo-panel {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, #fbfdfd);
}

.supplier-logo-preview {
  width: 112px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.supplier-logo-preview img {
  max-width: 88px;
  max-height: 52px;
  object-fit: contain;
}

.supplier-logo-preview span {
  color: var(--ss-magenta-700);
  font-size: 24px;
  font-weight: 900;
}

.supplier-logo-panel form {
  display: grid;
  gap: 10px;
}

.supplier-readout span {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #fbfdfd;
}

.supplier-readout small {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.supplier-readout b {
  color: var(--text-primary);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.supplier-lower-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.supplier-upload-form,
.supplier-contact-form,
.supplier-followup-form {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.supplier-upload-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.supplier-logo-panel .supplier-upload-form {
  grid-template-columns: 1fr;
  margin-bottom: 0;
}

.supplier-checkbox {
  display: inline-flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px !important;
  color: var(--text-secondary);
  text-transform: none;
}

.supplier-checkbox input {
  width: 16px;
  min-height: 16px;
}

.supplier-file-list,
.supplier-note-list,
.supplier-contact-list,
.supplier-followup-list {
  display: grid;
  gap: 10px;
}

.supplier-contact-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(110px, 0.7fr) minmax(170px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #fbfdfd;
}

.supplier-contact-row strong,
.supplier-contact-row small {
  display: block;
}

.supplier-contact-row small,
.supplier-contact-row span {
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

.supplier-contact-row b {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--ss-emerald-600);
  background: var(--ss-success-bg);
  font-size: 12px;
}

.supplier-file-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #fbfdfd;
}

.supplier-file-row a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--text-primary);
  font-weight: 750;
}

.supplier-file-row a span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.supplier-file-row small {
  color: var(--text-secondary);
  white-space: nowrap;
}

.supplier-file-row form {
  margin: 0;
}

.supplier-file-row button {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #fff;
  color: var(--ss-danger);
  cursor: pointer;
}

.supplier-note {
  padding: 14px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, #fff7fd);
}

.supplier-followup-row {
  padding: 14px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, #f8fffd);
}

.supplier-followup-row p {
  margin: 0 0 10px;
  line-height: 1.5;
}

.supplier-followup-row small {
  color: var(--text-secondary);
}

.supplier-note p {
  margin: 0 0 10px;
  color: var(--text-primary);
  line-height: 1.5;
}

.supplier-note small {
  color: var(--text-secondary);
}

.suppliers-table {
  min-width: 1080px;
}

.suppliers-table th {
  padding: 14px 16px;
  color: #5e7080;
  background: #fbfcfd;
  font-size: 11px;
  font-weight: 750;
}

.suppliers-table td {
  padding: 14px 16px;
  vertical-align: middle;
}

.suppliers-table.os-table td:nth-child(2) {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
}

.supplier-partner-cell {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 220px;
}

.supplier-partner-cell strong {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 800;
}

.supplier-table-logo {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.supplier-table-logo img {
  max-width: 31px;
  max-height: 24px;
  object-fit: contain;
}

.supplier-table-logo b {
  color: var(--ss-magenta-700);
  font-size: 12px;
  font-weight: 900;
}

.supplier-link {
  color: var(--ss-blue-700);
  font-weight: 650;
}

.supplier-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.supplier-status.is-active {
  color: var(--ss-success-dark);
  background: var(--ss-success-bg);
}

.supplier-status.is-paused {
  color: var(--ss-warning-dark);
  background: var(--ss-warning-bg);
}

.supplier-status.is-critical {
  color: #db2777;
  background: #ffe6f8;
}

.supplier-status.is-archived {
  color: var(--text-secondary);
  background: var(--ss-offwhite);
}

.supplier-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ss-magenta-500);
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.supplier-profile-link svg {
  width: 15px;
  height: 15px;
  color: var(--text-secondary);
}

.supplier-note-dialog {
  width: min(660px, calc(100vw - 32px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
}

.supplier-note-dialog::backdrop {
  background: rgba(3, 25, 31, 0.58);
}

.supplier-note-dialog form {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 24px;
}

.supplier-dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.supplier-dialog-head h2 {
  margin: 0;
  font-size: 24px;
}

.supplier-dialog-head button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #fff;
  color: var(--text-primary);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.supplier-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 1180px) {
  .supplier-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .supplier-toolbar,
  .supplier-directory-hero,
  .supplier-profile-hero,
  .supplier-profile-kpis,
  .supplier-detail-grid,
  .supplier-lower-grid {
    grid-template-columns: 1fr;
  }

  .supplier-profile-actions {
    min-width: 0;
  }

  .supplier-profile-kpis article,
  .supplier-profile-kpis article:first-child,
  .supplier-profile-kpis article:last-child {
    border-radius: 8px;
    border-right: 1px solid var(--border-light);
  }

  .supplier-profile-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .supplier-directory-art {
    width: 100%;
  }
}

@media (max-width: 780px) {
  .supplier-filter-form,
  .supplier-form-two,
  .supplier-upload-form,
  .supplier-file-row,
  .supplier-contact-row {
    grid-template-columns: 1fr;
  }

  .supplier-detail-hero,
  .supplier-profile-actions,
  .supplier-card-head,
  .supplier-dialog-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .supplier-kpi-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .workday-intel-hero,
  .btn-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .os-filter-bar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1320px) {
  .wd-todo-kpis,
  .wd-ac-kpis,
  .controltower-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .csp-action-grid,
  .owner-masterdata-grid,
  .owner-detail-kpis,
  .owner-pricing-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wd-todo-layout,
  .wd-ac-layout,
  .controltower-grid {
    grid-template-columns: 1fr;
  }

  .wd-todo-side,
  .wd-ac-side {
    position: static;
  }

  .wd-ac-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .wd-todo-toolbar,
  .wd-ac-hero,
  .controltower-hero {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .wd-todo-toolbar,
  .wd-ac-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .wd-todo-date-actions,
  .wd-ac-hero-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .wd-todo-kpis,
  .wd-ac-kpis,
  .controltower-kpis {
    grid-template-columns: 1fr;
  }

  .wd-ac-filters {
    grid-template-columns: 1fr;
  }

  .csp-action-grid,
  .owner-masterdata-grid,
  .owner-ops-panel,
  .owner-detail-kpis,
  .owner-pricing-kpis,
  .owner-portal-grid {
    grid-template-columns: 1fr;
  }

  .wd-todo-board {
    grid-template-columns: repeat(5, minmax(250px, 82vw));
  }

  .wd-todo-comment-form,
  .wd-todo-form-grid.two,
  .wd-ac-form-grid,
  .wd-ac-checklist-add,
  .wd-ac-comment-form,
  .ct-todo-preview-grid {
    grid-template-columns: 1fr;
  }

  .wd-todo-modal {
    align-items: start;
    padding: 14px;
  }

  .wd-todo-modal-panel {
    max-height: calc(100vh - 28px);
    padding: 18px;
  }

  .wd-todo-modal-actions,
  .wd-action-drawer-actions,
  .wd-action-secondary-actions,
  .ct-todo-modal-actions {
    flex-direction: column;
  }

  .wd-ac-task {
    grid-template-columns: 28px minmax(0, 1fr) 34px;
  }

  .wd-action-drawer-panel {
    width: min(680px, 100vw);
  }

  .wd-action-drawer-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .wd-action-drawer-footer-left,
  .wd-action-drawer-footer-right {
    justify-content: stretch;
  }

  .wd-action-drawer-footer .btn,
  .wd-action-drawer-inline-form,
  .wd-action-drawer-inline-form .btn {
    width: 100%;
  }

  .wd-ac-open {
    grid-column: 2;
    justify-self: start;
  }
}

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

  .wd-ac-task-meta span,
  .wd-ac-task-meta .wd-ac-meta-owner,
  .wd-ac-task-meta .wd-ac-meta-assigned {
    min-width: 0;
  }
}

@media (max-width: 720px) {
  .wd-ac-kpis {
    grid-template-columns: 1fr;
  }

  .wd-ac-filter-actions {
    width: 100%;
  }

  .wd-ac-filter-actions .btn {
    flex: 1 1 0;
  }

  .wd-ac-task {
    grid-template-columns: 24px minmax(0, 1fr) 32px;
    padding: 10px;
  }

  .wd-action-drawer-header,
  .wd-action-drawer-body {
    padding-right: 16px;
    padding-left: 16px;
  }
}

/* Customer Portal */
.cp-body {
  margin: 0;
  background: #f3f8f8;
  color: var(--ink);
  font-family: var(--font-body, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

.cp-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 0 32px;
  background: #022f35;
  color: #fff;
  box-shadow: 0 14px 28px rgba(2, 47, 53, 0.18);
}

.cp-brand {
  display: grid;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  min-width: 190px;
}

.cp-brand small {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.cp-nav {
  display: flex;
  gap: 8px;
  flex: 1;
  overflow-x: auto;
}

.cp-nav a,
.cp-user a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-weight: 800;
  padding: 10px 12px;
  border-radius: 8px;
  white-space: nowrap;
}

.cp-nav a.active,
.cp-nav a:hover,
.cp-user a:hover {
  background: rgba(211, 70, 202, 0.22);
  color: #fff;
}

.cp-user {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.cp-main {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  padding: 36px 0 56px;
}

.cp-page-header {
  margin-bottom: 22px;
}

.cp-page-header h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: 0;
}

.cp-page-header p {
  max-width: 780px;
  color: var(--muted);
}

.cp-auth-card,
.cp-card {
  background: #fff;
  border: 1px solid rgba(18, 74, 83, 0.12);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(17, 56, 62, 0.08);
  padding: 24px;
}

.cp-auth-card {
  max-width: 520px;
}

.cp-auth-card form,
.cp-card form,
.cp-card {
  display: grid;
  gap: 16px;
}

.cp-auth-card label,
.cp-card label,
.cp-filter-bar label,
.cp-wide-label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}

.cp-auth-card input,
.cp-card input,
.cp-card select,
.cp-card textarea,
.cp-filter-bar input,
.cp-filter-bar select {
  width: 100%;
  border: 1px solid rgba(18, 74, 83, 0.22);
  border-radius: 8px;
  padding: 12px 13px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

.cp-card textarea {
  min-height: 120px;
  resize: vertical;
}

.cp-notice {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-weight: 800;
}

.cp-notice.warning {
  background: #fff3cd;
  color: #7a4c00;
}

.cp-notice.danger {
  background: #ffe1e6;
  color: #9b001b;
}

.cp-notice.success {
  background: #dffbea;
  color: #045f35;
}

.cp-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.cp-kpi-grid article {
  background: #fff;
  border: 1px solid rgba(18, 74, 83, 0.12);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 10px 24px rgba(17, 56, 62, 0.07);
}

.cp-kpi-grid span,
.cp-list span,
.cp-card small,
.cp-muted {
  color: var(--muted);
}

.cp-kpi-grid strong {
  display: block;
  font-size: 1.8rem;
  margin: 6px 0;
}

.cp-grid-2,
.cp-grid-3 {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.cp-grid-2 {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
}

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

.cp-card header,
.cp-actions,
.cp-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.cp-filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px) auto auto;
}

.cp-list {
  display: grid;
  gap: 10px;
}

.cp-list a,
.cp-list div {
  display: grid;
  grid-template-columns: minmax(110px, 0.4fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(18, 74, 83, 0.10);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
}

.cp-table-input {
  min-width: 86px;
}

.cp-table-note {
  min-width: 210px;
  min-height: 48px !important;
}

.cp-message-thread {
  display: grid;
  gap: 14px;
}

.cp-message-thread article {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(18, 74, 83, 0.12);
  background: #f8fbfb;
}

.cp-message-thread article.from-shipshark {
  background: #f4e8fb;
}

.cp-message-thread article.is-internal {
  background: #fff8e8;
  border-color: rgba(190, 137, 62, 0.28);
}

.cp-message-thread p {
  margin: 6px 0;
  white-space: pre-wrap;
}

.cp-footer {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-weight: 700;
}

.inline-form {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 1100px) {
  .cp-kpi-grid,
  .cp-grid-2,
  .cp-grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .cp-filter-bar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .cp-topbar,
  .cp-user {
    align-items: flex-start;
    flex-direction: column;
  }

  .cp-main,
  .cp-footer {
    width: min(100% - 24px, 1480px);
  }

  .cp-kpi-grid,
  .cp-grid-2,
  .cp-grid-3,
  .cp-filter-bar {
    grid-template-columns: 1fr;
  }

  .cp-list a,
  .cp-list div {
    grid-template-columns: 1fr;
  }
}
/* Pricing Intelligence / Fragt */
.pricing-body .page-heading {
  display: none;
}

.pricing-body .content {
  margin: 0;
  max-width: none;
  padding: 32px 36px 34px;
  width: 100%;
}

.pricing-shell {
  display: grid;
  gap: 18px;
  width: 100%;
}

.pricing-body p,
.pricing-body small,
.pricing-body dd,
.pricing-body .muted,
.pricing-body .pricing-dashboard-head p,
.pricing-body .pricing-dashboard-card-head p,
.pricing-body .pricing-catalog-titlebar p,
.pricing-body .pricing-offer-titlebar p,
.pricing-body .pricing-offer-status-card small,
.pricing-body .pricing-offer-mini-card p span,
.pricing-body .pricing-action-row small,
.pricing-body .pricing-shortcut small,
.pricing-body .pricing-catalog-kpi em,
.pricing-body .pricing-offer-kpi em,
.pricing-body .pricing-dashboard-kpi small {
  font-weight: 400;
}

.pricing-body p strong,
.pricing-body small strong,
.pricing-body .pricing-action-card span,
.pricing-body .pricing-process-steps small {
  font-weight: 400;
}

.pricing-body .table-responsive {
  max-width: 100%;
  overflow-x: auto;
}

.pricing-body .data-table {
  min-width: 780px;
  table-layout: auto;
  width: 100%;
}

.pricing-body .data-table th,
.pricing-body .data-table td {
  font-size: 13px;
  line-height: 1.35;
  vertical-align: middle;
  white-space: nowrap;
}

.pricing-body .data-table td {
  font-weight: 400;
}

.pricing-body .data-table td strong {
  font-weight: 700;
}

.pricing-body .data-table td small {
  font-weight: 400;
  line-height: 1.25;
  white-space: normal;
}

.pricing-body .data-table th:first-child,
.pricing-body .data-table td:first-child {
  white-space: normal;
}

.pricing-body .os-dialog {
  width: min(1180px, calc(100vw - 48px));
}

.pricing-body .os-dialog-content {
  overflow-x: auto;
}

.pricing-body .os-dialog table {
  min-width: 760px;
}

.pricing-hero {
  align-items: center;
  background: linear-gradient(135deg, #08283d 0%, #12364b 54%, #e23a8b 140%);
  border-radius: 8px;
  color: #fff;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 24px;
}

.pricing-hero-copy h2 {
  font-size: 28px;
  line-height: 1.15;
  margin: 4px 0 8px;
}

.pricing-hero-copy p:last-child {
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  max-width: 680px;
}

.pricing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  min-width: 280px;
}

.pricing-hero-actions .btn[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
}

.pricing-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.pricing-tabs a {
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 8px;
  color: #2f4054;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 14px;
  text-decoration: none;
}

.pricing-tabs a.is-active {
  background: #e23a8b;
  border-color: #e23a8b;
  color: #fff;
}

.pricing-module-tabs {
  align-items: center;
  background: #fff;
  border: 1px solid #d9e4ee;
  border-radius: 9px;
  box-shadow: 0 14px 34px rgba(17, 33, 51, 0.06);
  display: flex;
  gap: 0;
  min-height: 58px;
  margin: 0;
  overflow: hidden;
  padding: 0 20px;
  width: 100%;
}

.pricing-module-tabs a {
  align-items: center;
  align-self: stretch;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #24384d;
  display: inline-flex;
  font-size: 14px;
  font-weight: 750;
  padding: 0 22px;
  position: relative;
}

.pricing-module-tabs a.is-active {
  background: transparent;
  border-color: transparent;
  color: #df2f91;
}

.pricing-module-tabs a.is-active::after {
  background: #df2f91;
  border-radius: 999px 999px 0 0;
  bottom: -1px;
  content: "";
  height: 3px;
  left: 22px;
  position: absolute;
  right: 22px;
}

.pricing-kpis {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.pricing-kpi {
  background: #fff;
  border: 1px solid #e5ebf0;
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(15, 31, 47, 0.06);
  display: grid;
  gap: 5px;
  min-height: 118px;
  padding: 18px;
}

.pricing-kpi span {
  color: #596b7d;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.pricing-kpi strong {
  color: #0b2639;
  font-size: 30px;
  line-height: 1;
}

.pricing-kpi small,
.pricing-table small,
.pricing-mini-list span {
  color: #718193;
}

.pricing-grid,
.pricing-detail-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
}

.pricing-card {
  min-width: 0;
}

.pricing-step-list,
.pricing-info-list,
.pricing-mini-list {
  display: grid;
  gap: 10px;
}

.pricing-step-list div,
.pricing-info-list span,
.pricing-mini-list a,
.pricing-mini-list > span {
  background: #f7f9fb;
  border: 1px solid #e6edf3;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.pricing-mini-list a,
.pricing-mini-list > span {
  align-items: center;
  color: inherit;
  grid-template-columns: minmax(0, 1fr) auto;
  text-decoration: none;
}

.pricing-mini-list a strong,
.pricing-mini-list a span,
.pricing-mini-list > span strong,
.pricing-mini-list > span span {
  min-width: 0;
}

.pricing-mini-list a span,
.pricing-mini-list > span span {
  grid-column: 1 / 2;
}

.pricing-mini-list a b {
  grid-column: 2 / 3;
  grid-row: 1 / span 2;
}

.pricing-table-status,
.pricing-carrier-universe,
.pricing-flow,
.pricing-doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pricing-carrier-universe span,
.pricing-flow span,
.pricing-doc-links span {
  background: #f7f9fb;
  border: 1px solid #e6edf3;
  border-radius: 999px;
  color: #304457;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 12px;
}

.pricing-empty {
  background: #f8fafc;
  border: 1px dashed #cdd7e1;
  border-radius: 8px;
  color: #4f6072;
  padding: 18px;
}

.pricing-empty strong {
  color: #0b2639;
  display: block;
  margin-bottom: 5px;
}

.pricing-empty p {
  margin: 0;
}

.pricing-table td strong,
.pricing-info-list strong {
  color: #0b2639;
  display: block;
}

.pricing-catalog-summary {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.pricing-catalog-summary > .status-pill {
  justify-self: end;
}

.pricing-summary-stats {
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pricing-summary-stats-wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-summary-stats span {
  background: #f7f9fb;
  border: 1px solid #e6edf3;
  border-radius: 8px;
  color: #667788;
  padding: 12px;
}

.pricing-summary-stats b {
  color: #0b2639;
  display: block;
  font-size: 20px;
}

.pricing-filter-bar {
  align-items: end;
  background: #f7f9fb;
  border: 1px solid #e6edf3;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(130px, 1fr)) auto auto;
  margin-bottom: 14px;
  padding: 12px;
}

.pricing-filter-bar label {
  display: grid;
  gap: 5px;
}

.pricing-filter-bar label span {
  color: #506173;
  font-size: 12px;
  font-weight: 800;
}

.pricing-filter-bar select,
.pricing-filter-bar input {
  background: #fff;
  border: 1px solid #d7e0e8;
  border-radius: 8px;
  color: #0f2538;
  min-height: 38px;
  padding: 8px 10px;
  width: 100%;
}

.pricing-dashboard {
  gap: 20px;
}

.pricing-catalog-legacy-summary,
.pricing-catalog-legacy-tabs {
  display: none;
}

.pricing-catalog-head {
  display: grid;
  gap: 18px;
}

.pricing-breadcrumb {
  align-items: center;
  color: #718399;
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 750;
  gap: 10px;
}

.pricing-breadcrumb a,
.pricing-breadcrumb strong {
  color: #22384f;
  text-decoration: none;
}

.pricing-breadcrumb svg {
  height: 13px;
  width: 13px;
}

.pricing-catalog-titlebar {
  align-items: flex-start;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.pricing-catalog-titlebar h1 {
  align-items: center;
  color: #071829;
  display: flex;
  flex-wrap: wrap;
  font-size: 31px;
  gap: 12px;
  line-height: 1.1;
  margin: 0 0 10px;
}

.pricing-catalog-titlebar p {
  color: #5b6f84;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  margin: 0;
}

.pricing-catalog-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.pricing-catalog-actions form {
  margin: 0;
}

.pricing-catalog-actions .btn {
  align-items: center;
  box-shadow: 0 10px 24px rgba(12, 30, 48, 0.07);
  display: inline-flex;
  gap: 8px;
  min-height: 42px;
}

.pricing-catalog-actions .btn-primary {
  background: #df2f91;
  border-color: #df2f91;
}

.pricing-catalog-actions .is-disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.pricing-icon-button {
  min-width: 42px;
  padding-inline: 10px;
}

.pricing-catalog-kpis {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.pricing-catalog-kpi {
  align-items: center;
  background: #fff;
  border: 1px solid #dfe8f0;
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(17, 33, 51, 0.07);
  display: grid;
  gap: 16px;
  grid-template-columns: 54px minmax(0, 1fr);
  min-height: 112px;
  padding: 20px;
}

.pricing-catalog-kpi > span {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  height: 50px;
  justify-content: center;
  width: 50px;
}

.pricing-catalog-kpi div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.pricing-catalog-kpi small {
  color: #1f3247;
  font-size: 13px;
  font-weight: 850;
  order: -1;
}

.pricing-catalog-kpi strong {
  color: #071829;
  font-size: 25px;
  letter-spacing: 0;
  line-height: 1.08;
}

.pricing-catalog-kpi em {
  color: #6d7f93;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
}

.pricing-catalog-kpi.is-pink > span {
  background: #ffe7f3;
  color: #df2f91;
}

.pricing-catalog-kpi.is-purple > span {
  background: #f1e7ff;
  color: #8e43dc;
}

.pricing-catalog-kpi.is-blue > span {
  background: #eaf4ff;
  color: #1f73d0;
}

.pricing-catalog-kpi.is-orange > span {
  background: #fff1dd;
  color: #df8500;
}

.pricing-catalog-kpi.is-green > span {
  background: #e8f8ef;
  color: #16885d;
}

.pricing-catalog-tabs {
  border-bottom: 1px solid #dce6ef;
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin-top: 4px;
}

.pricing-catalog-tabs a {
  color: #4d6379;
  font-size: 14px;
  font-weight: 850;
  padding: 10px 0 14px;
  position: relative;
  text-decoration: none;
}

.pricing-catalog-tabs a.is-active {
  color: #df2f91;
}

.pricing-catalog-tabs a.is-active::after {
  background: #df2f91;
  border-radius: 999px;
  bottom: -1px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  right: 0;
}

#rates {
  border: 1px solid #dfe8f0;
  box-shadow: 0 20px 44px rgba(17, 33, 51, 0.07);
  display: flex;
  flex-direction: column;
  padding: 0;
}

#rates > .card-header {
  display: none;
}

#rates > .pricing-filter-bar {
  background: #fff;
  border: 0;
  border-bottom: 1px solid #e6edf3;
  border-radius: 8px 8px 0 0;
  grid-template-columns: repeat(4, minmax(145px, 1fr)) auto auto;
  margin: 0;
  order: 1;
  padding: 16px 18px;
}

#rates > .pricing-filter-bar label {
  gap: 7px;
}

#rates > .pricing-filter-bar label span {
  color: #314963;
  font-size: 11px;
  font-weight: 850;
}

#rates > .pricing-filter-bar select,
#rates > .pricing-filter-bar input {
  border-color: #d9e4ec;
  border-radius: 7px;
  min-height: 43px;
  padding-left: 13px;
}

#rates > .pricing-filter-bar .btn {
  align-self: end;
  min-height: 43px;
  padding-left: 18px;
  padding-right: 18px;
}

#rates > .table-responsive {
  order: 2;
}

#rates > .table-responsive .pricing-table {
  border: 0;
  box-shadow: none;
}

#rates > .table-responsive .pricing-table th {
  background: #f8fafc;
  color: #52677d;
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

#rates > .table-responsive .pricing-table td {
  color: #18324a;
  font-weight: 400;
  vertical-align: middle;
}

#rates > .table-responsive .pricing-table .pricing-row-actions {
  min-width: 260px;
}

.pricing-catalog-rate-table {
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  table-layout: fixed;
  width: 100%;
}

.pricing-rate-col-land {
  width: 14.5%;
}

.pricing-rate-col-service {
  width: 13.5%;
}

.pricing-rate-col-type {
  width: 10%;
}

.pricing-rate-col-weight {
  width: 12.5%;
}

.pricing-rate-col-cost {
  width: 12%;
}

.pricing-rate-col-margin {
  width: 12%;
}

.pricing-rate-col-sales {
  width: 13.5%;
}

.pricing-rate-col-status {
  width: 8%;
}

.pricing-rate-col-actions {
  width: 15%;
}

.pricing-catalog-rate-table thead th {
  background: #f4f7fa;
  color: #385066;
  font-size: 11px;
  font-weight: 800;
  height: 40px;
  letter-spacing: 0;
  padding-bottom: 12px;
  padding-top: 12px;
  white-space: nowrap;
}

.pricing-catalog-rate-table thead th span {
  color: #7f93a7;
  font-size: 10px;
  margin-left: 4px;
}

.pricing-sort-link {
  align-items: center;
  color: inherit;
  display: inline-flex;
  gap: 4px;
  text-decoration: none;
}

.pricing-sort-link:hover {
  color: #df2f91;
}

.pricing-catalog-rate-table tbody td {
  height: 46px;
}

.pricing-catalog-rate-table tbody tr:not(.pricing-rate-group-row):hover td {
  background: #fbfdff;
}

.pricing-catalog-rate-table tbody tr.is-first-in-group:not(:first-child) td {
  border-top: 2px solid #edf3f7;
}

.pricing-rate-group-row td {
  background: linear-gradient(90deg, #eef8f5 0%, #f6fafc 100%);
  border-bottom: 1px solid #d9e8e8;
  border-top: 1px solid #d9e8e8;
  color: #092136;
  cursor: pointer;
  font-size: 13px;
  font-weight: 400;
  height: 48px;
  padding: 9px 14px;
  white-space: nowrap;
}

.pricing-rate-group-main {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  min-width: 0;
}

.pricing-rate-group-zone {
  align-items: baseline;
  display: grid;
  gap: 6px;
  grid-template-columns: 46px minmax(0, 1fr);
  min-width: 0;
}

.pricing-rate-group-zone strong {
  color: #071829;
  font-size: 13px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pricing-rate-group-zone.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.pricing-rate-group-zone span {
  color: #52677d;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pricing-rate-group-count {
  display: inline-flex;
  background: #e4f0f4;
  border-radius: 999px;
  color: #52677d;
  font-size: 11px;
  font-weight: 800;
  margin-left: 6px;
  padding: 4px 9px;
}

.pricing-rate-group-toggle {
  align-items: center;
  background: #fff;
  border: 1px solid #d7e3ec;
  border-radius: 999px;
  color: #0a6b52;
  cursor: pointer;
  display: inline-flex;
  height: 24px;
  justify-content: center;
  padding: 0;
  width: 24px;
}

.pricing-rate-group-toggle svg {
  height: 13px;
  transition: transform 0.18s ease;
  width: 13px;
}

.pricing-rate-group-toggle.is-collapsed svg {
  transform: rotate(-90deg);
}

.pricing-catalog-rate-table .pricing-row-actions {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.pricing-catalog-rate-table .pricing-row-actions form {
  margin: 0;
}

.pricing-rate-edit-button {
  color: #df2f91;
  font-weight: 850;
  min-width: 74px;
}

.pricing-catalog-rate-table .pricing-icon-button {
  min-height: 34px;
  min-width: 36px;
  padding: 7px;
}

.pricing-row-separator {
  background: #dce6ef;
  display: inline-flex;
  height: 28px;
  width: 1px;
}

.pricing-master-margin-form .pricing-master-margin-summary {
  align-content: center;
  background: #f7fafc;
  border: 1px solid #dfe8f0;
  border-radius: 8px;
  display: grid;
  gap: 2px;
  min-height: 86px;
  padding: 14px 16px;
}

.pricing-master-margin-summary strong {
  color: #071829;
  font-size: 26px;
  line-height: 1;
}

.pricing-master-margin-summary span,
.pricing-master-margin-summary small {
  color: #63778c;
  font-weight: 400;
}

#rates > .pricing-import-panel {
  background: #fff;
  border: 0;
  border-top: 18px solid #f4f7fa;
  display: grid;
  gap: 0 18px;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  box-shadow: none;
  margin: 0;
  order: 3;
  padding: 22px;
}

#rates > .pricing-import-panel > .card-header {
  align-self: start;
  display: grid;
  gap: 14px;
  grid-column: 1;
  margin: 0;
}

#rates > .pricing-import-panel > .pricing-import-upload {
  align-self: stretch;
  grid-column: 1;
  min-height: 150px;
}

#rates > .pricing-import-panel > .pricing-import-history {
  align-self: stretch;
  border-left: 1px solid #e6edf3;
  grid-column: 2;
  grid-row: 1 / span 4;
  padding-left: 18px;
}

#rates > .pricing-import-panel > .pricing-import-summary,
#rates > .pricing-import-panel > .notice,
#rates > .pricing-import-panel > .table-responsive,
#rates > .pricing-import-panel > form:not(.pricing-import-upload) {
  grid-column: 1 / -1;
}

#rates > .pricing-inline-form,
#rates > .pricing-quick-edit {
  margin: 18px;
  order: 4;
}

.pricing-card-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.pricing-catalog-shell > .pricing-catalog-panel {
  display: none !important;
  scroll-margin-top: 88px;
}

.pricing-catalog-shell > .pricing-catalog-panel.is-active-panel {
  display: block !important;
}

.pricing-catalog-shell > #rates.pricing-catalog-panel.is-active-panel {
  display: flex !important;
}

.pricing-catalog-shell:not(.is-catalog-import-active) #rates-import {
  display: none !important;
}

.pricing-catalog-shell.is-catalog-import-active #rates > .card-header,
.pricing-catalog-shell.is-catalog-import-active #rates > .pricing-filter-bar,
.pricing-catalog-shell.is-catalog-import-active #rates > .table-responsive,
.pricing-catalog-shell.is-catalog-import-active #rates > .pricing-empty {
  display: none !important;
}

.pricing-catalog-shell > .pricing-modal {
  display: none;
}

.pricing-catalog-shell > .pricing-modal:target {
  display: flex;
}

.pricing-catalog-modal .pricing-modal-panel {
  max-width: 980px;
  width: min(980px, calc(100vw - 56px));
}

.pricing-catalog-modal .pricing-modal-panel h3 {
  margin-top: 0;
  padding-right: 48px;
}

.pricing-dashboard-head {
  align-items: flex-start;
  display: flex;
  gap: 22px;
  justify-content: space-between;
}

.pricing-dashboard-head h1 {
  color: #071829;
  font-size: 32px;
  line-height: 1.05;
  margin: 0 0 9px;
}

.pricing-dashboard-head p {
  color: #536579;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  margin: 0;
}

.pricing-dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.pricing-dashboard-actions .btn {
  align-items: center;
  box-shadow: 0 10px 24px rgba(12, 30, 48, 0.08);
  display: inline-flex;
  gap: 8px;
  min-height: 48px;
  padding-inline: 18px;
}

.pricing-dashboard-actions .btn-primary {
  background: #df2f91;
  border-color: #df2f91;
}

.pricing-dashboard-kpis {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.pricing-dashboard-kpi {
  align-items: center;
  background: #fff;
  border: 1px solid #dfe8f0;
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(17, 33, 51, 0.07);
  display: grid;
  gap: 16px;
  grid-template-columns: 50px minmax(0, 1fr);
  min-height: 118px;
  padding: 20px 18px;
}

.pricing-dashboard-kpi div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.pricing-dashboard-kpi span:not(.pricing-dashboard-icon) {
  color: #22344a;
  font-size: 13px;
  font-weight: 850;
}

.pricing-dashboard-kpi strong {
  color: #06192a;
  font-size: 36px;
  letter-spacing: 0;
  line-height: 0.95;
}

.pricing-dashboard-kpi small {
  color: #718399;
  font-size: 12px;
  font-weight: 400;
}

.pricing-dashboard-icon,
.pricing-action-row > span,
.pricing-shortcut > span {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
}

.pricing-dashboard-icon {
  height: 48px;
  width: 48px;
}

.pricing-dashboard-kpi.is-pink .pricing-dashboard-icon,
.pricing-shortcut.is-pink > span {
  background: #ffe9f5;
  color: #df2f91;
}

.pricing-dashboard-kpi.is-purple .pricing-dashboard-icon,
.pricing-shortcut.is-purple > span {
  background: #f3e8ff;
  color: #8b3fe0;
}

.pricing-dashboard-kpi.is-blue .pricing-dashboard-icon,
.pricing-shortcut.is-blue > span {
  background: #eaf4ff;
  color: #1f73d0;
}

.pricing-dashboard-kpi.is-orange .pricing-dashboard-icon,
.pricing-shortcut.is-orange > span {
  background: #fff2df;
  color: #df8500;
}

.pricing-dashboard-kpi.is-green .pricing-dashboard-icon,
.pricing-shortcut.is-green > span {
  background: #e7f8ef;
  color: #16885d;
}

.pricing-dashboard-kpi.is-violet .pricing-dashboard-icon {
  background: #f4e9ff;
  color: #a848e8;
}

.pricing-dashboard-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.03fr);
}

.pricing-dashboard-card {
  border: 1px solid #dfe8f0;
  box-shadow: 0 20px 44px rgba(17, 33, 51, 0.07);
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 22px;
}

.pricing-dashboard-card-head {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.pricing-dashboard-card-head h2 {
  color: #0a2034;
  font-size: 22px;
  line-height: 1.15;
  margin: 0 0 5px;
}

.pricing-dashboard-card-head p {
  color: #6b7c8f;
  font-size: 14px;
  font-weight: 400;
  margin: 0;
}

.pricing-action-list {
  display: grid;
  gap: 9px;
}

.pricing-action-list form {
  margin: 0;
}

.pricing-action-row {
  align-items: center;
  border: 1px solid #e5ecf2;
  border-radius: 8px;
  color: inherit;
  display: grid;
  gap: 14px;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  min-height: 64px;
  padding: 10px 12px;
  text-decoration: none;
}

button.pricing-action-row {
  background: #fff;
  cursor: pointer;
  font: inherit;
  text-align: left;
  width: 100%;
}

button.pricing-action-row:hover,
a.pricing-action-row:hover {
  background: #fbfdff;
}

.pricing-action-row > span {
  height: 42px;
  width: 42px;
}

.pricing-action-row div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.pricing-action-row strong {
  color: #112942;
  font-size: 14px;
}

.pricing-action-row small {
  color: #66798d;
  font-size: 12px;
  font-weight: 400;
}

.pricing-action-row em {
  background: #fff;
  border: 1px solid #dfe7ef;
  border-radius: 6px;
  color: #18324a;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  padding: 10px 16px;
}

.pricing-action-row.is-danger {
  background: #fff4f7;
  border-color: #ffd4df;
}

.pricing-action-row.is-danger > span {
  background: #ffe4ea;
  color: #e13b55;
}

.pricing-action-row.is-danger em {
  color: #df2f91;
}

.pricing-action-row.is-warning {
  background: #fff8ec;
  border-color: #ffe1af;
}

.pricing-action-row.is-warning > span {
  background: #fff0d6;
  color: #d78300;
}

.pricing-action-row.is-blue {
  background: #f2f8ff;
  border-color: #d7eaff;
}

.pricing-action-row.is-blue > span {
  background: #e4f1ff;
  color: #2376c9;
}

.pricing-action-row.is-sky {
  background: #f2f9ff;
  border-color: #d7ebff;
}

.pricing-action-row.is-sky > span {
  background: #e2f1ff;
  color: #2077d2;
}

.pricing-dashboard-table {
  border: 1px solid #e6edf3;
  border-collapse: separate;
  border-radius: 8px;
  border-spacing: 0;
  overflow: hidden;
}

.pricing-dashboard-table th {
  background: #f8fafc;
  border-bottom: 1px solid #e6edf3;
  color: #52677d;
  font-size: 11px;
  letter-spacing: 0.02em;
  padding: 11px 14px;
  text-transform: uppercase;
}

.pricing-dashboard-table td {
  border-bottom: 1px solid #edf2f6;
  color: #18324a;
  font-weight: 400;
  padding: 13px 14px;
  vertical-align: middle;
}

.pricing-dashboard-table .is-center {
  text-align: center;
}

.pricing-dashboard-carrier {
  align-items: center;
  display: inline-flex;
  gap: 9px;
  justify-content: center;
}

.pricing-dashboard-carrier-logo {
  align-items: center;
  background: linear-gradient(135deg, #06242d, #0d5260);
  border-radius: 6px;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 30px;
  font-size: 11px;
  font-weight: 850;
  height: 30px;
  justify-content: center;
  line-height: 1;
  width: 30px;
}

.pricing-dashboard-carrier-logo.has-image {
  background: #ffffff;
  border: 1px solid #dfe8f0;
  overflow: hidden;
  padding: 3px;
}

.pricing-dashboard-carrier-logo.has-image img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.pricing-dashboard-table tbody tr:last-child td {
  border-bottom: 0;
}

.pricing-dashboard-table tbody tr.pricing-clickable-row {
  cursor: pointer;
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.pricing-dashboard-table tbody tr.pricing-clickable-row:hover td,
.pricing-dashboard-table tbody tr.pricing-clickable-row:focus td {
  background: #f7fbff;
}

.pricing-dashboard-table tbody tr.pricing-clickable-row:focus {
  outline: 2px solid rgba(219, 38, 137, 0.28);
  outline-offset: -2px;
}

.pricing-dashboard-table td small {
  display: block;
  margin-top: 3px;
}

.pricing-dashboard-table a {
  color: #102a43;
  text-decoration: none;
}

.pricing-row-more {
  align-items: center;
  color: #27445e;
  display: inline-flex;
  justify-content: center;
}

.pricing-card-link {
  align-items: center;
  color: #1f65b7;
  display: inline-flex;
  font-size: 14px;
  font-weight: 850;
  gap: 7px;
  margin-top: 18px;
  text-decoration: none;
}

.pricing-dashboard-card > .pricing-card-link {
  margin-top: auto;
  padding-top: 18px;
}

.pricing-dashboard-card-footer {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 18px;
}

.pricing-dashboard-card-footer .pricing-card-link {
  margin-top: 0;
  white-space: nowrap;
}

.pricing-dashboard-pager {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pricing-dashboard-pager a {
  align-items: center;
  background: #fff;
  border: 1px solid #dfe8f0;
  border-radius: 6px;
  color: #28435c;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  height: 30px;
  justify-content: center;
  min-width: 30px;
  padding: 0 9px;
  text-decoration: none;
}

.pricing-dashboard-pager a.is-active {
  background: #df2f91;
  border-color: #df2f91;
  color: #fff;
}

.pricing-card-link svg {
  height: 16px;
  width: 16px;
}

.pricing-dashboard-shortcuts {
  background: #fff;
  border: 1px solid #dfe8f0;
  border-radius: 8px;
  box-shadow: 0 20px 44px rgba(17, 33, 51, 0.07);
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  padding: 14px;
}

.pricing-shortcut {
  align-items: center;
  border: 1px solid #e8edf3;
  border-radius: 8px;
  color: #182f46;
  display: grid;
  gap: 6px 14px;
  grid-template-columns: 48px minmax(0, 1fr) 18px;
  grid-template-rows: auto auto;
  min-height: 82px;
  padding: 14px 16px;
  text-decoration: none;
}

.pricing-shortcut > span {
  grid-column: 1;
  grid-row: 1 / span 2;
  height: 48px;
  width: 48px;
}

.pricing-shortcut > svg {
  color: #2870bd;
  grid-column: 3;
  grid-row: 1 / span 2;
  height: 18px;
  justify-self: end;
  width: 18px;
}

.pricing-shortcut strong {
  color: #122a42;
  font-size: 14px;
  grid-column: 2;
  grid-row: 1;
  line-height: 1.25;
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.pricing-shortcut small {
  color: #62758a;
  font-size: 12px;
  font-weight: 400;
  grid-column: 2;
  grid-row: 2;
  line-height: 1.35;
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.pricing-shortcut.is-pink {
  background: #fff4fa;
  border-color: #ffd8ea;
}

.pricing-shortcut.is-purple {
  background: #fbf6ff;
  border-color: #ead8ff;
}

.pricing-shortcut.is-green {
  background: #f2fbf6;
  border-color: #d8f0e4;
}

.pricing-shortcut.is-blue {
  background: #f4f9ff;
  border-color: #d8eaff;
}

.pricing-shortcut.is-orange {
  background: #fff8ef;
  border-color: #ffe5bc;
}

.pricing-agreements-page {
  display: grid;
  gap: 18px;
  max-width: none;
  padding: 24px 30px 38px;
  width: 100%;
}

.pricing-agreements-head {
  align-items: flex-start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.pricing-agreements-head h1 {
  color: #071829;
  font-size: 32px;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0 0 10px;
}

.pricing-agreements-head p {
  color: #62758a;
  font-size: 15px;
  font-weight: 400;
  margin: 0;
}

.pricing-agreements-actions {
  align-items: center;
  display: flex;
  gap: 14px;
}

.pricing-agreements-actions .btn {
  border-radius: 8px;
  min-height: 48px;
  padding: 0 22px;
}

.pricing-agreements-kpis {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.pricing-agreements-kpi {
  align-items: center;
  background: #fff;
  border: 1px solid #dfe8f0;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(17, 33, 51, 0.06);
  display: flex;
  gap: 18px;
  min-height: 118px;
  padding: 22px;
}

.pricing-agreements-kpi > span {
  align-items: center;
  border-radius: 12px;
  display: inline-flex;
  flex: 0 0 54px;
  height: 54px;
  justify-content: center;
  width: 54px;
}

.pricing-agreements-kpi small {
  color: #344b63;
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 4px;
}

.pricing-agreements-kpi strong {
  color: #071829;
  display: block;
  font-size: 30px;
  line-height: 1;
}

.pricing-agreements-kpi em {
  color: #718297;
  display: block;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  margin-top: 7px;
}

.pricing-agreements-kpi.is-purple > span {
  background: #f5e9ff;
  color: #9b3ee7;
}

.pricing-agreements-kpi.is-orange > span {
  background: #fff1dc;
  color: #f59e0b;
}

.pricing-agreements-kpi.is-blue > span {
  background: #e8f3ff;
  color: #2870bd;
}

.pricing-agreements-kpi.is-green > span {
  background: #e7f8ef;
  color: #169764;
}

.pricing-agreements-kpi.is-violet > span {
  background: #f0e6ff;
  color: #9b46f0;
}

.pricing-agreements-alert {
  align-items: center;
  background: #fffaf0;
  border: 1px solid #f6c978;
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(17, 33, 51, 0.05);
  color: #183149;
  display: grid;
  gap: 16px;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  padding: 18px 20px;
}

.pricing-agreements-alert > span {
  align-items: center;
  background: #fff3d7;
  border-radius: 12px;
  color: #f59e0b;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.pricing-agreements-alert strong {
  color: #a15b00;
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.pricing-agreements-alert p {
  color: #344b63;
  font-size: 14px;
  font-weight: 400;
  margin: 0;
}

.pricing-agreements-card {
  background: #fff;
  border: 1px solid #dfe8f0;
  border-radius: 8px;
  box-shadow: 0 20px 48px rgba(17, 33, 51, 0.07);
  display: grid;
  gap: 14px;
  padding: 20px;
}

.pricing-new-offer-card {
  margin-top: 0;
}

.pricing-new-offer-card .pricing-agreements-card-head {
  border-bottom: 1px solid #e2ebf3;
  margin: -2px 0 4px;
  padding-bottom: 18px;
}

.pricing-new-offer-form {
  gap: 18px;
}

.pricing-customer-owner-field.is-hidden,
.pricing-customer-lead-field.is-hidden {
  display: none !important;
}

.pricing-agreements-card-head {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.pricing-agreements-card-head h2 {
  color: #102940;
  font-size: 22px;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0 0 5px;
}

.pricing-agreements-card-head p {
  color: #62758a;
  font-size: 14px;
  font-weight: 400;
  margin: 0;
}

.pricing-reset-link {
  align-items: center;
  color: #1f65b7;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 7px;
  text-decoration: none;
  white-space: nowrap;
}

.pricing-reset-link svg {
  height: 16px;
  width: 16px;
}

.pricing-agreements-filters {
  align-items: end;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(240px, 1.25fr) minmax(160px, 0.8fr) minmax(180px, 1fr) minmax(180px, 1fr) minmax(170px, 0.9fr) auto;
}

.pricing-agreements-filters label {
  display: grid;
  gap: 6px;
}

.pricing-agreements-filters label span {
  color: #46617a;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.pricing-agreements-filters input,
.pricing-agreements-filters select {
  background: #fff;
  border: 1px solid #d8e3ed;
  border-radius: 7px;
  color: #16314a;
  font-size: 14px;
  height: 42px;
  outline: none;
  padding: 0 12px;
  width: 100%;
}

.pricing-agreements-search {
  position: relative;
}

.pricing-agreements-search svg {
  bottom: 11px;
  color: #60758b;
  height: 18px;
  pointer-events: none;
  position: absolute;
  right: 12px;
  width: 18px;
}

.pricing-agreements-search input {
  padding-right: 40px;
}

.pricing-agreements-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 980px;
  width: 100%;
}

.pricing-agreements-table th {
  background: #f7f9fb;
  border-bottom: 1px solid #dfe8f0;
  border-top: 1px solid #dfe8f0;
  color: #526a83;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
  padding: 12px 14px;
  text-align: left;
  text-transform: uppercase;
}

.pricing-agreements-table th:first-child {
  border-left: 1px solid #dfe8f0;
  border-radius: 8px 0 0 0;
}

.pricing-agreements-table th:last-child {
  border-radius: 0 8px 0 0;
  border-right: 1px solid #dfe8f0;
}

.pricing-agreements-table td {
  border-bottom: 1px solid #e8eef4;
  color: #263f57;
  font-size: 14px;
  font-weight: 500;
  padding: 13px 14px;
  vertical-align: middle;
}

.pricing-agreements-table tbody tr td:first-child {
  border-left: 1px solid #e8eef4;
}

.pricing-agreements-table tbody tr td:last-child {
  border-right: 1px solid #e8eef4;
}

.pricing-agreements-table tbody tr:last-child td:first-child {
  border-radius: 0 0 0 8px;
}

.pricing-agreements-table tbody tr:last-child td:last-child {
  border-radius: 0 0 8px 0;
}

.pricing-agreements-table td strong {
  color: #102940;
  font-weight: 850;
}

.pricing-agreements-table td small {
  color: #64798e;
  display: block;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  margin-top: 2px;
}

.pricing-agreements-table .is-danger {
  color: #ef4565;
}

.pricing-agreements-table .is-success {
  color: #15935f;
}

.pricing-agreements-row-actions {
  align-items: center;
  display: inline-flex;
  gap: 10px;
}

.pricing-agreements-row-actions .btn-icon {
  border-radius: 7px;
  height: 36px;
  padding: 0;
  width: 44px;
}

.pricing-agreements-row-actions .btn-icon svg,
.pricing-agreements-row-actions > span svg {
  height: 17px;
  width: 17px;
}

.pricing-agreements-row-actions > span {
  color: #0c2a40;
  display: inline-flex;
}

.pricing-agreements-table-footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 6px 4px 0;
}

.pricing-agreements-table-footer > span {
  color: #445e75;
  font-size: 14px;
  font-weight: 500;
}

.pricing-agreements-pager {
  align-items: center;
  display: flex;
  gap: 9px;
}

.pricing-agreements-pager a,
.pricing-agreements-pager select {
  align-items: center;
  background: #fff;
  border: 1px solid #dfe8f0;
  border-radius: 7px;
  color: #183149;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  height: 36px;
  justify-content: center;
  min-width: 38px;
  padding: 0 10px;
  text-decoration: none;
}

.pricing-agreements-pager a.is-active {
  border-color: #df2f91;
  color: #df2f91;
  box-shadow: 0 0 0 3px rgba(223, 47, 145, 0.1);
}

.pricing-agreements-pager a.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.pricing-agreements-pager form {
  align-items: center;
  display: inline-flex;
  gap: 9px;
  margin-left: 12px;
}

.pricing-agreements-pager span {
  color: #445e75;
  font-size: 14px;
  font-weight: 700;
}

.pricing-agreement-page {
  display: grid;
  gap: 18px;
  max-width: none;
  padding: 8px 10px 34px;
  width: 100%;
}

.pricing-agreement-head {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.pricing-agreement-head > div:first-child {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pricing-agreement-head h1 {
  color: #071829;
  font-size: 28px;
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0;
}

.pricing-agreement-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.pricing-agreement-actions form {
  margin: 0;
}

.pricing-agreement-actions .btn {
  border-radius: 7px;
  min-height: 44px;
  padding: 0 20px;
}

.pricing-agreement-kpis {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pricing-agreement-kpi,
.pricing-agreement-card {
  background: #fff;
  border: 1px solid #dfe8f0;
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(17, 33, 51, 0.07);
}

.pricing-agreement-kpi {
  align-items: center;
  display: flex;
  gap: 20px;
  min-height: 112px;
  padding: 22px;
}

.pricing-agreement-kpi > span {
  align-items: center;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 58px;
  height: 58px;
  justify-content: center;
  width: 58px;
}

.pricing-agreement-kpi small {
  color: #5e7186;
  display: block;
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 6px;
}

.pricing-agreement-kpi strong {
  color: #071829;
  display: block;
  font-size: 26px;
  line-height: 1.1;
}

.pricing-agreement-kpi.is-pink > span {
  background: linear-gradient(135deg, #e93697, #d72a88);
}

.pricing-agreement-kpi.is-purple > span {
  background: linear-gradient(135deg, #b948d4, #8d36bd);
}

.pricing-agreement-kpi.is-blue > span {
  background: linear-gradient(135deg, #2d8cff, #1769d3);
}

.pricing-agreement-kpi.is-teal > span {
  background: linear-gradient(135deg, #25c0b7, #11a6a1);
}

.pricing-agreement-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.7fr) minmax(360px, 1fr);
}

.pricing-agreement-main,
.pricing-agreement-side {
  display: grid;
  gap: 18px;
  align-content: start;
}

.pricing-agreement-card {
  padding: 20px;
}

.pricing-agreement-card h2 {
  align-items: center;
  color: #071829;
  display: flex;
  font-size: 20px;
  gap: 12px;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0 0 14px;
}

.pricing-agreement-card h2 > span {
  align-items: center;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 34px;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.pricing-agreement-card h2 > span svg {
  height: 17px;
  width: 17px;
}

.pricing-agreement-card h2 .is-pink,
.pricing-agreement-card h2 > span.is-pink {
  background: #e93a94;
}

.pricing-agreement-card h2 > span.is-green {
  background: #16a56a;
}

.pricing-agreement-card h2 > span.is-magenta {
  background: #df2f91;
}

.pricing-agreement-overview {
  border: 1px solid #dfe8f0;
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  overflow: hidden;
}

.pricing-agreement-overview div {
  border-bottom: 1px solid #dfe8f0;
  border-right: 1px solid #dfe8f0;
  display: grid;
  gap: 4px;
  min-height: 62px;
  padding: 12px 14px;
}

.pricing-agreement-overview div:nth-child(3n) {
  border-right: 0;
}

.pricing-agreement-overview div:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.pricing-agreement-overview dt,
.pricing-agreement-side-list dt {
  color: #526a83;
  font-size: 12px;
  font-weight: 400;
  margin: 0;
}

.pricing-agreement-overview dd,
.pricing-agreement-side-list dd {
  color: #071829;
  font-size: 14px;
  font-weight: 750;
  margin: 0;
}

.pricing-agreement-overview a,
.pricing-agreement-side-list a {
  color: #0f5fa8;
  text-decoration: none;
}

.pricing-accept-comment {
  align-items: center;
  background: #fff4fa;
  border: 1px solid #f7b7dc;
  border-radius: 7px;
  display: flex;
  gap: 14px;
  margin-top: 14px;
  padding: 15px 16px;
}

.pricing-accept-comment > span {
  color: #df2f91;
  display: inline-flex;
}

.pricing-accept-comment strong {
  color: #071829;
  display: block;
  font-size: 14px;
  font-weight: 850;
  margin-bottom: 3px;
}

.pricing-accept-comment p {
  color: #314960;
  font-size: 14px;
  font-weight: 400;
  margin: 0;
}

.pricing-agreement-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.pricing-agreement-table th {
  background: #f7f9fb;
  border-bottom: 1px solid #dfe8f0;
  border-top: 1px solid #dfe8f0;
  color: #526a83;
  font-size: 12px;
  font-weight: 850;
  padding: 12px 14px;
  text-align: left;
}

.pricing-agreement-table th:first-child {
  border-left: 1px solid #dfe8f0;
  border-radius: 8px 0 0 0;
}

.pricing-agreement-table th:last-child {
  border-radius: 0 8px 0 0;
  border-right: 1px solid #dfe8f0;
}

.pricing-agreement-table td {
  border-bottom: 1px solid #e7edf4;
  color: #263f57;
  font-size: 14px;
  font-weight: 400;
  padding: 13px 14px;
}

.pricing-agreement-table td:first-child {
  border-left: 1px solid #e7edf4;
}

.pricing-agreement-table td:last-child {
  border-right: 1px solid #e7edf4;
}

.pricing-agreement-table .is-danger {
  color: #ef4565;
  font-weight: 750;
}

.pricing-agreement-table .is-success {
  color: #15935f;
  font-weight: 750;
}

.pricing-agreement-docs {
  border: 1px solid #dfe8f0;
  border-radius: 8px;
  overflow: hidden;
}

.pricing-agreement-docs > div {
  align-items: center;
  border-bottom: 1px solid #e7edf4;
  display: grid;
  gap: 14px;
  grid-template-columns: 30px minmax(0, 1fr) 90px 90px auto;
  min-height: 52px;
  padding: 10px 14px;
}

.pricing-agreement-docs > div:last-child {
  border-bottom: 0;
}

.pricing-agreement-docs span {
  align-items: center;
  border-radius: 6px;
  display: inline-flex;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.pricing-agreement-docs span svg {
  height: 16px;
  width: 16px;
}

.pricing-agreement-docs span.is-pdf {
  background: #fff1f2;
  color: #ef334b;
}

.pricing-agreement-docs span.is-xlsx {
  background: #edfdf4;
  color: #15935f;
}

.pricing-agreement-docs strong {
  color: #19344c;
  font-size: 14px;
  font-weight: 750;
}

.pricing-agreement-docs em,
.pricing-agreement-docs small {
  color: #445e75;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
}

.pricing-agreement-docs a {
  align-items: center;
  color: #df2f91;
  display: inline-flex;
  font-size: 13px;
  font-weight: 750;
  gap: 7px;
  text-decoration: none;
}

.pricing-agreement-history {
  display: grid;
  gap: 0;
  position: relative;
}

.pricing-agreement-history::before {
  background: #f0b2d4;
  bottom: 18px;
  content: "";
  left: 8px;
  position: absolute;
  top: 16px;
  width: 2px;
}

.pricing-agreement-history > div {
  display: grid;
  gap: 14px;
  grid-template-columns: 130px 160px minmax(0, 1fr);
  min-height: 42px;
  padding: 8px 0 8px 30px;
  position: relative;
}

.pricing-agreement-history > div::before {
  background: #df2f91;
  border-radius: 999px;
  content: "";
  height: 11px;
  left: 4px;
  position: absolute;
  top: 15px;
  width: 11px;
}

.pricing-agreement-history time,
.pricing-agreement-history p {
  color: #445e75;
  font-size: 14px;
  font-weight: 400;
  margin: 0;
}

.pricing-agreement-history strong {
  color: #19344c;
  font-size: 14px;
  font-weight: 750;
}

.pricing-agreement-side-list {
  display: grid;
  gap: 18px;
  margin: 0;
}

.pricing-agreement-side-list div {
  display: grid;
  gap: 4px;
  grid-template-columns: 170px minmax(0, 1fr);
}

.pricing-agreement-action-list {
  display: grid;
  gap: 14px;
}

.pricing-agreement-action-list a,
.pricing-agreement-action-list span,
.pricing-agreement-action-list button {
  align-items: center;
  background: #fff;
  border: 1px solid #dce7f0;
  border-radius: 7px;
  color: #112c44;
  display: flex;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 14px;
  text-decoration: none;
  width: 100%;
}

.pricing-agreement-action-list form {
  cursor: pointer;
  display: block;
  margin: 0;
  width: 100%;
}

.pricing-agreement-action-list a,
.pricing-agreement-action-list button {
  appearance: none;
  cursor: pointer !important;
  text-align: left;
}

.pricing-agreement-action-list form button {
  cursor: pointer !important;
  width: 100%;
}

.pricing-agreement-action-list svg {
  pointer-events: none;
}

.pricing-agreement-action-list a:hover,
.pricing-agreement-action-list button:hover,
.pricing-agreement-action-list form:hover button {
  border-color: rgba(219, 39, 119, 0.28);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.pricing-agreement-action-list span {
  cursor: default;
}

.pricing-agreement-action-list .is-danger {
  border-color: #ff9da9;
  color: #ef334b;
}

@media (max-width: 1180px) {
  .pricing-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pricing-dashboard-kpis,
  .pricing-agreements-kpis,
  .pricing-agreement-kpis,
  .pricing-dashboard-shortcuts,
  .pricing-catalog-kpis,
  .pricing-offer-kpis,
  .pricing-offer-status-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pricing-process-steps,
  .pricing-offer-overview-grid {
    grid-template-columns: 1fr;
  }

  .pricing-process-steps a,
  .pricing-process-steps a:first-child,
  .pricing-process-steps a:last-child {
    border-radius: 8px;
    margin-left: 0;
  }

  .pricing-grid,
  .pricing-detail-grid,
  .pricing-dashboard-grid,
  .pricing-agreement-layout {
    grid-template-columns: 1fr;
  }

  .pricing-filter-bar,
  .pricing-agreements-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .pricing-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .pricing-dashboard-head,
  .pricing-dashboard-card-head,
  .pricing-agreements-head,
  .pricing-agreements-card-head,
  .pricing-agreement-head,
  .pricing-catalog-titlebar,
  .pricing-offer-titlebar,
  .pricing-offer-mini-head {
    align-items: stretch;
    flex-direction: column;
  }

  .pricing-dashboard-actions,
  .pricing-agreements-actions,
  .pricing-agreement-actions,
  .pricing-catalog-actions,
  .pricing-offer-actions {
    justify-content: flex-start;
  }

  .pricing-hero-actions {
    justify-content: flex-start;
    min-width: 0;
  }

  .pricing-kpis,
  .pricing-dashboard-kpis,
  .pricing-agreements-kpis,
  .pricing-agreement-kpis,
  .pricing-dashboard-shortcuts,
  .pricing-catalog-kpis,
  .pricing-offer-kpis,
  .pricing-offer-status-grid,
  .pricing-summary-stats,
  .pricing-filter-bar,
  .pricing-agreements-filters {
    grid-template-columns: 1fr;
  }

  .pricing-agreements-page {
    padding: 18px 14px 28px;
  }

  .pricing-agreements-alert {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .pricing-agreements-table-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .pricing-agreement-overview,
  .pricing-agreement-side-list div,
  .pricing-agreement-history > div,
  .pricing-agreement-docs > div {
    grid-template-columns: 1fr;
  }

  .pricing-agreement-overview div,
  .pricing-agreement-overview div:nth-child(3n),
  .pricing-agreement-overview div:nth-last-child(-n + 3) {
    border-bottom: 1px solid #dfe8f0;
    border-right: 0;
  }

  .pricing-agreement-overview div:last-child {
    border-bottom: 0;
  }

  #rates > .pricing-filter-bar {
    grid-template-columns: 1fr;
  }

  .pricing-action-row,
  .pricing-shortcut {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .pricing-action-row em,
  .pricing-shortcut > svg {
    grid-column: 2;
    justify-self: start;
  }
}

.pricing-card-list {
  display: grid;
  gap: 12px;
}

.pricing-entity-card {
  align-items: center;
  background: #f7f9fb;
  border: 1px solid #e6edf3;
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 14px;
}

.pricing-entity-card h3,
.pricing-inline-form h3 {
  color: #0b2639;
  font-size: 18px;
  margin: 0 0 4px;
}

.pricing-entity-card p {
  color: #607286;
  margin: 0 0 8px;
}

.pricing-logo {
  align-items: center;
  background: #08283d;
  border-radius: 8px;
  color: #fff;
  display: flex;
  font-weight: 900;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.pricing-meta-row,
.pricing-row-actions,
.pricing-form-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pricing-meta-row span:not(.status-pill) {
  color: #667788;
  font-size: 13px;
  font-weight: 700;
}

.pricing-form,
.pricing-inline-form {
  display: grid;
  gap: 14px;
}

.pricing-inline-form {
  background: #f8fafc;
  border: 1px solid #e6edf3;
  border-radius: 8px;
  margin-top: 16px;
  padding: 14px;
}

.pricing-form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-form label,
.pricing-form-grid label {
  display: grid;
  gap: 5px;
}

.pricing-form label span,
.pricing-form-grid label span {
  color: #506173;
  font-size: 12px;
  font-weight: 800;
}

.pricing-form input,
.pricing-form select,
.pricing-form textarea {
  background: #fff;
  border: 1px solid #d7e0e8;
  border-radius: 8px;
  color: #0f2538;
  min-height: 38px;
  padding: 8px 10px;
  width: 100%;
}

.pricing-form textarea {
  min-height: 92px;
  resize: vertical;
}

.pricing-danger-zone {
  align-items: end;
  background: #fff7f7;
  border: 1px solid rgba(220, 53, 69, 0.22);
  border-radius: 10px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  margin-top: 18px;
  padding: 16px;
}

.pricing-danger-zone h3 {
  color: #842029;
  margin: 0 0 6px;
}

.pricing-danger-zone p {
  color: #6f7e8d;
  font-weight: 400;
  margin: 0;
}

.pricing-delete-confirm {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.pricing-delete-confirm label {
  display: grid;
  gap: 5px;
}

.pricing-delete-confirm label span {
  color: #506173;
  font-size: 12px;
  font-weight: 800;
}

.pricing-delete-confirm input {
  background: #fff;
  border: 1px solid #d7e0e8;
  border-radius: 8px;
  color: #0f2538;
  min-height: 38px;
  padding: 8px 10px;
  width: 100%;
}

@media (max-width: 760px) {
  .pricing-danger-zone,
  .pricing-delete-confirm {
    grid-template-columns: 1fr;
  }
}

.pricing-full {
  grid-column: 1 / -1;
}

.pricing-checkbox {
  align-content: center;
  align-items: center;
  display: flex !important;
  flex-direction: row;
  gap: 8px !important;
  min-height: 38px;
}

.pricing-checkbox input {
  min-height: auto;
  width: auto;
}

.pricing-details {
  background: #f8fafc;
  border: 1px solid #e6edf3;
  border-radius: 8px;
  padding: 12px;
}

.pricing-details summary {
  color: #0b2639;
  cursor: pointer;
  font-weight: 900;
}

.pricing-details[open] summary {
  margin-bottom: 12px;
}

.pricing-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pricing-subtabs a {
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 8px;
  color: #2f4054;
  font-size: 13px;
  font-weight: 800;
  padding: 9px 12px;
  text-decoration: none;
}

.pricing-table form {
  margin: 0;
}

.pricing-quick-edit {
  border-color: #e23a8b;
  box-shadow: 0 14px 30px rgba(226, 58, 139, 0.08);
}

.pricing-action-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-action-card {
  background: #f7f9fb;
  border: 1px solid #e6edf3;
  border-radius: 8px;
  color: #304457;
  display: grid;
  gap: 4px;
  padding: 14px;
  text-decoration: none;
}

.pricing-action-card strong {
  color: #0b2639;
}

.pricing-action-card span {
  color: #667788;
  font-size: 13px;
  font-weight: 400;
}

.pricing-action-card.is-live {
  border-color: rgba(34, 148, 120, 0.32);
}

.pricing-action-card.is-soon {
  opacity: 0.72;
}

.pricing-help-box {
  background: #fff7fb;
  border: 1px solid rgba(226, 58, 139, 0.24);
  border-radius: 8px;
  color: #6a3552;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
}

.pricing-help-box strong {
  color: #0b2639;
}

.pricing-shell .status-pill.success {
  background: #effaf6;
  color: #146c4f;
}

.pricing-shell .status-pill.warning {
  background: #fff7e8;
  color: #8a5a05;
}

.pricing-shell .status-pill.danger {
  background: #fff1f2;
  color: #9f1239;
}

.pricing-shell .status-pill.muted {
  background: #eef4f8;
  color: #607286;
}

.pricing-offer-summary {
  border-color: rgba(226, 58, 139, 0.22);
}

.pricing-offer-legacy-summary,
.pricing-offer-legacy-tabs,
.pricing-warning-card {
  display: none;
}

.pricing-body .pricing-shell > .pricing-card#overview,
.pricing-body .pricing-shell > .pricing-card#owner-link,
.pricing-body .pricing-shell > .pricing-card#lines,
.pricing-body .pricing-shell > .pricing-card#add-rates,
.pricing-body .pricing-shell > .pricing-card#documents,
.pricing-body .pricing-shell > .pricing-card#pdf,
.pricing-body .pricing-shell > .pricing-card#mail,
.pricing-body .pricing-shell > .pricing-card#accept,
.pricing-body .pricing-shell > .pricing-card#agreement,
.pricing-body .pricing-shell > .pricing-card#preview {
  display: none;
  scroll-margin-top: 88px;
}

.pricing-shell > .pricing-card#overview,
.pricing-shell > .pricing-card#owner-link,
.pricing-shell > .pricing-card#lines,
.pricing-shell > .pricing-card#add-rates,
.pricing-shell > .pricing-card#documents,
.pricing-shell > .pricing-card#pdf,
.pricing-shell > .pricing-card#mail,
.pricing-shell > .pricing-card#accept,
.pricing-shell > .pricing-card#agreement,
.pricing-shell > .pricing-card#preview {
  display: none;
  scroll-margin-top: 88px;
}

.pricing-body .pricing-shell > .pricing-card.is-active-panel {
  display: block !important;
}

.pricing-shell > .pricing-card.is-active-panel {
  display: block !important;
}

.pricing-body .pricing-shell > .pricing-modal:target {
  display: flex;
}

.pricing-modal:target {
  display: flex;
}

.pricing-modal {
  align-items: center;
  background: rgba(5, 25, 38, 0.42);
  backdrop-filter: blur(8px);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 28px;
  position: fixed;
  z-index: 80;
}

.pricing-modal.is-open {
  display: flex;
}

.pricing-modal-panel {
  background: #fff;
  border: 1px solid #dfe8f0;
  border-radius: 8px;
  box-shadow: 0 26px 70px rgba(7, 24, 41, 0.24);
  max-height: min(860px, calc(100vh - 56px));
  overflow: auto;
  padding: 22px;
  position: relative;
  width: min(1320px, calc(100vw - 56px));
}

.pricing-modal-panel-small {
  width: min(720px, calc(100vw - 56px));
}

.pricing-modal-close {
  align-items: center;
  background: #fff;
  border: 1px solid #dfe8f0;
  border-radius: 999px;
  color: #21394f;
  cursor: pointer;
  display: inline-flex;
  font-size: 22px;
  height: 36px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 18px;
  top: 18px;
  width: 36px;
  z-index: 2;
}

.pricing-modal .card-header {
  padding-right: 48px;
}

.pricing-modal .table-responsive {
  max-height: 52vh;
  overflow: auto;
}

.pricing-modal .pricing-table {
  min-width: 980px;
}

.pricing-modal .pricing-form-actions,
.pricing-modal form > .btn {
  margin-top: 16px;
}

.pricing-owner-link-card.is-owner-link-unavailable .pricing-owner-search,
.pricing-owner-link-card.is-owner-link-unavailable .pricing-owner-link-form,
.pricing-owner-link-card.is-owner-link-unavailable .empty-state {
  display: none;
}

.pricing-body .pricing-shell.is-offer-detail-active > #offer-overview,
.pricing-body .pricing-shell.is-offer-detail-active > .pricing-offer-overview-grid,
.pricing-body .pricing-shell.is-offer-detail-active > .pricing-offer-status-grid,
.pricing-body .pricing-shell.is-offer-detail-active > .pricing-offer-bottom-warning {
  display: none;
}

.pricing-shell.is-offer-detail-active > #offer-overview,
.pricing-shell.is-offer-detail-active > .pricing-offer-overview-grid,
.pricing-shell.is-offer-detail-active > .pricing-offer-status-grid,
.pricing-shell.is-offer-detail-active > .pricing-offer-bottom-warning {
  display: none;
}

.pricing-offer-head {
  display: grid;
  gap: 14px;
}

.pricing-offer-titlebar {
  align-items: flex-start;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.pricing-offer-titlebar h1 {
  color: #071829;
  font-size: 34px;
  letter-spacing: 0;
  line-height: 1.04;
  margin: 0 0 8px;
}

.pricing-offer-titlebar p {
  align-items: center;
  color: #496176;
  display: flex;
  flex-wrap: wrap;
  font-size: 16px;
  font-weight: 400;
  gap: 10px;
  margin: 0;
}

.pricing-offer-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.pricing-offer-actions form {
  margin: 0;
}

.pricing-offer-actions .btn {
  align-items: center;
  box-shadow: 0 10px 24px rgba(12, 30, 48, 0.07);
  display: inline-flex;
  gap: 8px;
  min-height: 50px;
  padding-inline: 18px;
}

.pricing-offer-actions .btn-primary {
  background: #df2f91;
  border-color: #df2f91;
}

.pricing-offer-kpis {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pricing-offer-kpi {
  align-items: center;
  background: #fff;
  border: 1px solid #dfe8f0;
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(17, 33, 51, 0.07);
  display: grid;
  gap: 18px;
  grid-template-columns: 56px minmax(0, 1fr);
  min-height: 116px;
  padding: 22px;
}

.pricing-offer-kpi > span {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  height: 54px;
  justify-content: center;
  width: 54px;
}

.pricing-offer-kpi div {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.pricing-offer-kpi small {
  color: #1f3247;
  font-size: 13px;
  font-weight: 850;
}

.pricing-offer-kpi strong {
  color: #071829;
  font-size: 25px;
  line-height: 1.08;
}

.pricing-offer-kpi em {
  background: #eef4f8;
  border-radius: 999px;
  color: #607286;
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
  justify-self: start;
  padding: 4px 8px;
}

.pricing-offer-kpi em.is-danger,
.pricing-offer-money-list .is-danger,
.pricing-offer-lines-card .is-danger {
  color: #e13b55;
}

.pricing-offer-kpi em.is-success,
.pricing-offer-money-list .is-success,
.pricing-offer-lines-card .is-success {
  color: #16885d;
}

.pricing-offer-kpi.is-blue > span {
  background: #eaf7ff;
  color: #1f8ccf;
}

.pricing-offer-kpi.is-pink > span {
  background: #ffe7f3;
  color: #df2f91;
}

.pricing-offer-kpi.is-orange > span,
.pricing-offer-kpi.is-amber > span {
  background: #fff1dd;
  color: #df8500;
}

.pricing-offer-tabs {
  border-bottom: 1px solid #dce6ef;
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
}

.pricing-offer-tabs a {
  color: #334b63;
  font-size: 14px;
  font-weight: 850;
  padding: 12px 0 15px;
  position: relative;
  text-decoration: none;
}

.pricing-offer-tabs a.is-active {
  color: #df2f91;
}

.pricing-offer-tabs a.is-active::after {
  background: #df2f91;
  border-radius: 999px;
  bottom: -1px;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
}

.pricing-offer-process {
  border: 1px solid #dfe8f0;
  box-shadow: 0 20px 44px rgba(17, 33, 51, 0.07);
  display: grid;
  gap: 18px;
  padding: 22px;
}

.pricing-offer-process h2 {
  color: #0f263d;
  font-size: 15px;
  margin: 0;
}

.pricing-process-steps {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.pricing-process-steps a {
  align-items: center;
  background: #fff;
  border: 1px solid #dfe8f0;
  color: #142c43;
  display: grid;
  gap: 12px;
  grid-template-columns: 34px minmax(0, 1fr) 22px;
  min-height: 78px;
  padding: 14px;
  position: relative;
  text-decoration: none;
}

.pricing-process-steps a + a {
  margin-left: -1px;
}

.pricing-process-steps a:first-child {
  border-radius: 8px 0 0 8px;
}

.pricing-process-steps a:last-child {
  border-radius: 0 8px 8px 0;
}

.pricing-process-steps a > span {
  align-items: center;
  background: #94a3b8;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.pricing-process-steps strong {
  color: #122a42;
  display: block;
  font-size: 14px;
}

.pricing-process-steps small {
  color: #66798d;
  display: block;
  font-weight: 400;
  margin-top: 3px;
}

.pricing-process-steps svg {
  height: 18px;
  width: 18px;
}

.pricing-process-steps .is-complete > span,
.pricing-process-steps .is-current > span {
  background: #df2f91;
}

.pricing-process-steps .is-complete > svg {
  color: #16885d;
}

.pricing-process-steps .is-current {
  background: #fff4fa;
  border-color: #f6c4df;
  z-index: 1;
}

.pricing-process-steps .is-current > svg {
  color: #df2f91;
}

.pricing-process-steps .is-locked {
  background: #fbfdff;
  color: #94a3b8;
}

.pricing-offer-overview-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(230px, 0.85fr) minmax(230px, 0.85fr) minmax(230px, 0.72fr) minmax(360px, 1.48fr);
}

.pricing-offer-mini-card {
  border: 1px solid #dfe8f0;
  box-shadow: 0 20px 44px rgba(17, 33, 51, 0.07);
  display: grid;
  gap: 14px;
  padding: 20px;
}

.pricing-offer-mini-card h2,
.pricing-offer-status-card h3 {
  color: #334b63;
  font-size: 14px;
  letter-spacing: 0.04em;
  margin: 0;
  text-transform: uppercase;
}

.pricing-offer-mini-card dl {
  display: grid;
  gap: 9px;
  margin: 0;
}

.pricing-offer-mini-card dt {
  color: #071829;
  font-size: 13px;
  font-weight: 900;
}

.pricing-offer-mini-card dd {
  color: #1f3349;
  font-weight: 400;
  margin: -6px 0 0;
}

.pricing-offer-money-list {
  grid-template-columns: minmax(0, 1fr) auto;
}

.pricing-offer-money-list dt {
  font-weight: 650;
}

.pricing-offer-money-list dd {
  justify-self: end;
  margin: 0;
}

.pricing-offer-mini-card p {
  display: grid;
  gap: 6px;
  margin: 0;
}

.pricing-offer-mini-card p strong {
  color: #071829;
  font-size: 13px;
}

.pricing-offer-mini-card p span {
  color: #334b63;
  line-height: 1.45;
  font-weight: 400;
}

.pricing-offer-mini-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.pricing-offer-lines-card {
  min-width: 0;
}

#lines.pricing-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

#lines > .card-header {
  margin-bottom: 12px;
}

.pricing-offer-lines-card td small {
  display: block;
}

.pricing-lines-board {
  background: #fff;
  border: 1px solid #dfe8f0;
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(17, 33, 51, 0.05);
  margin-top: 14px;
  overflow: hidden;
}

.pricing-lines-board .table-responsive {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}

.pricing-lines-workbar {
  align-items: end;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #dfe8f0;
  border-radius: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(260px, 1.3fr) repeat(4, minmax(145px, 0.78fr)) minmax(460px, 1.7fr);
  margin-top: 0;
  min-height: 78px;
  padding: 14px 18px;
}

.pricing-lines-workbar label {
  display: grid;
  gap: 6px;
}

.pricing-lines-workbar label span {
  color: #41566c;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.pricing-lines-workbar input,
.pricing-lines-workbar select {
  background: #fff;
  border: 1px solid #d7e2eb;
  border-radius: 6px;
  color: #0e2438;
  font-size: 13px;
  min-height: 34px;
  padding: 7px 10px;
  width: 100%;
}

.pricing-lines-search {
  position: relative;
}

.pricing-lines-search svg {
  color: #648096;
  height: 17px;
  left: 12px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  z-index: 1;
}

.pricing-lines-search input {
  padding-left: 38px;
}

.pricing-lines-workbar-stats {
  align-items: center;
  border-left: 1px solid #dfe8f0;
  display: grid;
  gap: 0;
  grid-template-columns: auto auto minmax(160px, 1fr) auto;
  min-height: 42px;
  padding-left: 14px;
}

.pricing-lines-workbar-stats div {
  align-content: center;
  display: grid;
  gap: 2px;
  min-height: 42px;
  padding: 0 16px;
}

.pricing-lines-workbar-stats div + div {
  border-left: 1px solid #dfe8f0;
}

.pricing-lines-workbar-stats strong {
  color: #071829;
  font-size: 17px;
  line-height: 1;
}

.pricing-lines-workbar-stats span,
.pricing-lines-workbar-stats small {
  color: #6d7f91;
  font-size: 11px;
  font-weight: 400;
}

.pricing-lines-workbar-stats .is-warning strong,
.pricing-lines-workbar-stats .is-warning span {
  color: #d97706;
}

.pricing-lines-workbar-stats .is-saved {
  align-items: center;
  display: flex;
  gap: 8px;
  padding-right: 18px;
}

.pricing-lines-workbar-stats .is-saved svg {
  background: #e7f8ef;
  border-radius: 999px;
  color: #169764;
  height: 26px;
  padding: 6px;
  width: 26px;
}

.pricing-lines-workbar-stats > .btn {
  justify-self: end;
  min-height: 34px;
  white-space: nowrap;
}

.pricing-lines-footer {
  align-items: center;
  background: #fff;
  border-top: 1px solid #dfe8f0;
  color: #5f7286;
  display: flex;
  font-size: 12px;
  font-weight: 400;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 16px;
}

.pricing-offer-status-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pricing-offer-status-card {
  align-items: start;
  background: #fff;
  border: 1px solid #dfe8f0;
  border-radius: 8px;
  box-shadow: 0 20px 44px rgba(17, 33, 51, 0.07);
  display: grid;
  gap: 14px;
  grid-template-columns: 52px minmax(0, 1fr);
  padding: 20px;
}

.pricing-offer-status-card > span {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  height: 50px;
  justify-content: center;
  width: 50px;
}

.pricing-offer-status-card > span.is-green {
  background: #e8f8ef;
  color: #16885d;
}

.pricing-offer-status-card > span.is-purple {
  background: #f1e7ff;
  color: #8e43dc;
}

.pricing-offer-status-card > span.is-blue {
  background: #eaf7ff;
  color: #1f8ccf;
}

.pricing-offer-status-card div {
  display: grid;
  gap: 7px;
}

.pricing-offer-status-card strong {
  color: #071829;
  font-size: 15px;
}

.pricing-offer-status-card small {
  color: #61758a;
  font-weight: 400;
}

.pricing-offer-status-card a {
  align-items: center;
  border: 1px solid #dfe8f0;
  border-radius: 6px;
  color: #142c43;
  display: flex;
  font-size: 13px;
  font-weight: 850;
  justify-content: space-between;
  margin-top: 10px;
  padding: 10px 12px;
  text-decoration: none;
}

.pricing-offer-status-card a svg {
  height: 16px;
  width: 16px;
}

.pricing-offer-bottom-warning {
  align-items: center;
  background: #fff8ed;
  border: 1px solid #ffd998;
  border-radius: 8px;
  color: #7c4d00;
  display: flex;
  gap: 10px;
  padding: 16px;
}

.pricing-offer-bottom-warning strong {
  color: #5c3a00;
}

.pricing-offer-lines tr.is-archived {
  opacity: 0.62;
}

.pricing-offer-lines th,
.pricing-offer-lines td {
  white-space: nowrap;
}

.pricing-offer-lines thead th {
  background: #f5f7fa;
  border-bottom: 1px solid #dfe8f0;
  color: #334b63;
  font-size: 11px;
  font-weight: 750;
  height: 40px;
  letter-spacing: 0;
  padding: 0 10px;
  text-transform: none;
  vertical-align: middle;
}

.pricing-offer-lines thead th:first-child {
  text-align: center;
  width: 52px;
}

.pricing-offer-lines th:first-child,
.pricing-offer-lines td:first-child {
  max-width: 52px;
  min-width: 52px;
  padding-left: 0;
  padding-right: 0;
  text-align: center;
  width: 52px;
}

.pricing-offer-lines th:not(:first-child),
.pricing-offer-lines td:not(:first-child) {
  padding-left: 14px;
  padding-right: 10px;
}

.pricing-offer-lines thead th:first-child button {
  justify-content: center;
  width: 100%;
}

.pricing-offer-lines thead th button {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  gap: 5px;
  height: 100%;
  padding: 0;
  white-space: nowrap;
}

.pricing-offer-lines thead th button span::before {
  color: #8092a5;
  content: "\2195";
  font-size: 10px;
  line-height: 1;
}

.pricing-offer-lines thead th button.is-sorted-asc span::before {
  color: #1f8ccf;
  content: "\2191";
}

.pricing-offer-lines thead th button.is-sorted-desc span::before {
  color: #1f8ccf;
  content: "\2193";
}

.pricing-offer-lines thead th button:hover {
  color: #df2f91;
}

.pricing-offer-lines tbody td {
  height: 44px;
}

.pricing-offer-lines tbody tr[data-edit-url] {
  cursor: pointer;
}

.pricing-offer-lines tbody tr[data-edit-url]:hover td {
  background: #f9fcff;
}

.pricing-offer-lines.is-readonly .pricing-inline-cell {
  color: inherit;
  cursor: default;
  pointer-events: none;
  text-decoration: none;
}

.pricing-offer-lines.is-readonly tbody tr:hover td {
  background: transparent;
}

.pricing-offer-lines tr.is-inline-editing td {
  background: #f7fbff;
  box-shadow: inset 0 1px 0 #b8dcff, inset 0 -1px 0 #b8dcff;
}

.pricing-offer-lines tr.is-inline-editing td:first-child {
  box-shadow: inset 4px 0 0 #238be6, inset 0 1px 0 #b8dcff, inset 0 -1px 0 #b8dcff;
}

.pricing-inline-cell {
  color: inherit;
  display: inline-flex;
  min-height: 28px;
  text-decoration: none;
}

.pricing-inline-cell:hover {
  color: #df2f91;
}

.pricing-readonly-value {
  color: #344b63;
  display: inline-flex;
  min-height: 28px;
  opacity: 0.9;
}

.pricing-inline-input,
.pricing-inline-weight input {
  background: #fff;
  border: 1px solid #bfd3e5;
  border-radius: 5px;
  box-shadow: 0 8px 18px rgba(35, 139, 230, 0.12);
  color: #0f2538;
  font: inherit;
  height: 34px;
  min-width: 92px;
  padding: 6px 9px;
  width: 100%;
}

.pricing-inline-input:focus,
.pricing-inline-weight input:focus {
  border-color: #238be6;
  box-shadow: 0 0 0 3px rgba(35, 139, 230, 0.14);
  outline: 0;
}

.pricing-inline-weight {
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(70px, 1fr) minmax(70px, 1fr);
}

.pricing-inline-weight-three {
  grid-template-columns: minmax(62px, 1fr) minmax(62px, 1fr) minmax(48px, 0.7fr);
}

#rates > .pricing-import-panel.is-review-mode,
.pricing-import-panel.is-review-mode {
  display: block;
  grid-template-columns: none;
  overflow: hidden;
  padding: 18px;
}

#rates > .pricing-import-panel.is-review-mode > .card-header,
#rates > .pricing-import-panel.is-review-mode > .pricing-import-summary,
#rates > .pricing-import-panel.is-review-mode > .pricing-import-review-board {
  grid-column: auto;
}

.pricing-import-review-header {
  align-items: flex-start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-bottom: 14px;
}

.pricing-import-review-header .pricing-card-actions {
  align-items: center;
  align-self: start;
  justify-content: flex-end;
}

.pricing-import-review-header .pricing-card-actions form {
  margin: 0;
}

.pricing-import-panel.is-review-mode .pricing-import-summary {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin-bottom: 14px;
}

.pricing-import-panel.is-review-mode .pricing-import-summary span {
  min-height: 64px;
}

.pricing-import-review-board {
  margin-top: 0;
}

.pricing-import-review-board .table-responsive {
  max-width: 100%;
  overflow-x: auto;
}

.pricing-import-review-board .pricing-lines-workbar {
  align-items: end;
  gap: 12px;
  grid-template-columns: minmax(220px, 1fr) minmax(140px, 190px);
  min-height: auto;
  padding: 12px 14px;
}

.pricing-import-review-board .pricing-lines-workbar-stats {
  border-left: 0;
  border-top: 1px solid #dfe8f0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / -1;
  min-height: auto;
  padding: 10px 0 0;
}

.pricing-import-review-board .pricing-lines-workbar-stats div {
  border: 1px solid #dfe8f0;
  border-radius: 999px;
  min-height: 34px;
  padding: 6px 10px;
}

.pricing-import-review-board .pricing-lines-workbar-stats div + div {
  border-left: 1px solid #dfe8f0;
}

.pricing-import-review-board .pricing-lines-workbar-stats .is-saved {
  padding-right: 12px;
}

.pricing-import-review-board .pricing-lines-workbar-stats > .btn {
  margin-left: auto;
}

.pricing-import-review-lines {
  min-width: 1240px;
  table-layout: fixed;
  width: 100%;
}

.pricing-import-review-lines tr {
  scroll-margin-top: 120px;
}

.pricing-import-review-lines th,
.pricing-import-review-lines td {
  vertical-align: top;
}

.pricing-import-review-lines thead th {
  height: 38px;
  padding-left: 8px;
  padding-right: 8px;
}

.pricing-import-review-lines tbody td {
  height: 54px;
  padding-bottom: 8px;
  padding-top: 8px;
}

.pricing-import-review-lines th:nth-child(1),
.pricing-import-review-lines td:nth-child(1) {
  width: 50px;
}

.pricing-import-review-lines th:nth-child(2),
.pricing-import-review-lines td:nth-child(2) {
  width: 92px;
}

.pricing-import-review-lines th:nth-child(3),
.pricing-import-review-lines td:nth-child(3) {
  width: 210px;
}

.pricing-import-review-lines th:nth-child(4),
.pricing-import-review-lines td:nth-child(4) {
  width: 160px;
}

.pricing-import-review-lines th:nth-child(5),
.pricing-import-review-lines td:nth-child(5) {
  width: 150px;
}

.pricing-import-review-lines th:nth-child(6),
.pricing-import-review-lines td:nth-child(6) {
  width: 150px;
}

.pricing-import-review-lines th:nth-child(7),
.pricing-import-review-lines td:nth-child(7),
.pricing-import-review-lines th:nth-child(8),
.pricing-import-review-lines td:nth-child(8),
.pricing-import-review-lines th:nth-child(9),
.pricing-import-review-lines td:nth-child(9) {
  width: 130px;
}

.pricing-import-review-lines th:nth-child(10),
.pricing-import-review-lines td:nth-child(10) {
  width: 210px;
}

.pricing-import-review-lines th:nth-child(11),
.pricing-import-review-lines td:nth-child(11) {
  width: 58px;
}

.pricing-import-review-lines .pricing-inline-cell {
  display: grid;
  gap: 2px;
  min-height: 24px;
  overflow-wrap: anywhere;
  white-space: normal;
}

.pricing-import-review-lines .pricing-inline-cell small {
  color: #6a7f92;
  display: block;
  font-size: 10px;
  font-weight: 600;
}

.pricing-import-stack {
  display: grid;
  gap: 6px;
  min-width: 150px;
}

.pricing-import-messages {
  max-width: 260px;
}

.pricing-inline-actions {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.pricing-inline-actions form {
  margin: 0;
}

.pricing-inline-actions .btn-icon {
  min-height: 32px;
  width: 32px;
}

.pricing-line-remove {
  align-items: center;
  background: #fff;
  border: 1px solid #f1c5c5;
  border-radius: 7px;
  color: #e11d48;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  opacity: 0.72;
  transition: opacity 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
  width: 32px;
}

.pricing-line-remove svg {
  height: 15px;
  width: 15px;
}

.pricing-line-remove:hover,
.pricing-line-remove:focus-visible {
  background: #fff1f2;
  border-color: #fb7185;
  box-shadow: 0 8px 18px rgba(225, 29, 72, 0.12);
  opacity: 1;
  outline: 3px solid rgba(225, 29, 72, 0.12);
}

.pricing-inline-save,
.pricing-inline-cancel {
  align-items: center;
  border-radius: 7px;
  display: inline-flex;
  flex: 0 0 32px;
  height: 32px;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
  width: 32px;
}

.pricing-inline-save {
  background: #1677d2;
  border: 1px solid #1677d2;
  box-shadow: 0 8px 18px rgba(22, 119, 210, 0.18);
  color: #fff;
}

.pricing-inline-save svg {
  height: 16px;
  stroke-width: 2.6;
  width: 16px;
}

.pricing-inline-save:hover,
.pricing-inline-save:focus-visible {
  background: #0f68bd;
  border-color: #0f68bd;
  color: #fff;
  outline: 3px solid rgba(22, 119, 210, 0.16);
}

.pricing-inline-cancel {
  background: #fff;
  border: 1px solid #dbe6ee;
  box-shadow: 0 8px 18px rgba(15, 35, 56, 0.08);
  color: #365167;
  font-size: 18px;
  font-weight: 800;
}

.pricing-inline-cancel:hover,
.pricing-inline-cancel:focus-visible {
  border-color: #bfd3e5;
  color: #0f2538;
  outline: 3px solid rgba(15, 35, 56, 0.08);
}

.pricing-line-edit td {
  background: #f8fafc;
  border-top: 0;
}

.pricing-line-edit {
  display: none;
}

.pricing-line-edit.is-focused {
  display: table-row;
}

.pricing-line-edit .pricing-form {
  background: #fff;
  border: 1px solid #e6edf3;
  border-radius: 8px;
  padding: 12px;
}

.pricing-line-edit.is-focused .pricing-form {
  border-color: #e23a8b;
  box-shadow: 0 12px 28px rgba(226, 58, 139, 0.12);
}

.pricing-group-row td {
  background: #eef4f8;
  color: #0b2639;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.pricing-badge-stack,
.pricing-alert-list {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pricing-warning-card {
  border-color: rgba(226, 58, 139, 0.22);
}

.pricing-pdf-overview {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr);
  margin: 14px 0;
}

.pricing-pdf-latest {
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid #e6edf3;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.pricing-pdf-latest span {
  color: #667788;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.pricing-pdf-latest strong {
  color: #0b2639;
}

.pricing-pdf-quality {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.pricing-pdf-blockers {
  background: #fff1f2;
  border-color: rgba(196, 28, 28, 0.24);
  color: #7f1d1d;
}

.pricing-pdf-card {
  border-radius: 22px;
  box-shadow: 0 22px 54px rgba(17, 33, 51, 0.08);
  padding: 26px 28px 30px;
}

.pricing-pdf-head {
  align-items: flex-start;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.pricing-pdf-head p {
  color: #64748b;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1;
  margin: 0 0 7px;
  text-transform: uppercase;
}

.pricing-pdf-head h2 {
  color: #071829;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0 0 10px;
}

.pricing-pdf-head span:not(.pricing-pdf-status-pill) {
  color: #5f7286;
  display: block;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}

.pricing-pdf-status-pill {
  background: #eef2f6;
  border-radius: 999px;
  color: #64748b;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 600;
  padding: 8px 14px;
}

.pricing-pdf-status-pill.success {
  background: #eaf8f0;
  color: #11845b;
}

.pricing-pdf-status-pill.warning {
  background: #fff7e8;
  color: #9a6508;
}

.pricing-pdf-metrics {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

.pricing-pdf-metrics article {
  align-items: center;
  background: #fff;
  border: 1px solid #dfe8f0;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 36px minmax(0, 1fr);
  min-height: 62px;
  padding: 12px 14px;
}

.pricing-pdf-metrics article > span,
.pricing-pdf-notice > span,
.pricing-pdf-empty > span,
.pricing-pdf-version-list a > span {
  align-items: center;
  background: #eef3f7;
  border-radius: 999px;
  color: #50647a;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.pricing-pdf-metrics svg,
.pricing-pdf-notice svg,
.pricing-pdf-empty svg,
.pricing-pdf-version-list svg {
  height: 17px;
  width: 17px;
}

.pricing-pdf-metrics small {
  color: #64748b;
  display: block;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 4px;
}

.pricing-pdf-metrics strong {
  color: #071829;
  display: block;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.pricing-pdf-notice {
  align-items: flex-start;
  background: linear-gradient(135deg, #fff3fa, #fff8fc);
  border: 1px solid rgba(226, 58, 139, 0.24);
  border-radius: 10px;
  display: grid;
  gap: 14px;
  grid-template-columns: 42px minmax(0, 1fr);
  margin: 14px 0 12px;
  padding: 18px;
}

.pricing-pdf-notice.has-blocker {
  background: linear-gradient(135deg, #fff1f2, #fff7f8);
  border-color: rgba(225, 29, 72, 0.24);
}

.pricing-pdf-notice > span {
  background: #fde4f1;
  color: #df2f91;
  height: 40px;
  width: 40px;
}

.pricing-pdf-notice strong {
  color: #0b1f33;
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 4px;
}

.pricing-pdf-notice p {
  color: #6b405c;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  margin: 0;
}

.pricing-pdf-notice em {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(226, 58, 139, 0.14);
  border-radius: 6px;
  color: #9f295f;
  display: flex;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  gap: 8px;
  margin-top: 12px;
  min-height: 30px;
  padding: 6px 10px;
}

.pricing-pdf-action {
  margin: 0 0 14px;
}

.pricing-pdf-action .btn {
  justify-content: center;
  min-height: 42px;
  width: 100%;
}

.pricing-pdf-empty {
  align-items: center;
  background: #f8fbfd;
  border: 1px dashed #cfe0ec;
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: 42px minmax(0, 1fr);
  padding: 18px;
}

.pricing-pdf-empty strong,
.pricing-pdf-version-list strong {
  color: #0b1f33;
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 4px;
}

.pricing-pdf-empty p,
.pricing-pdf-version-list small {
  color: #667788;
  display: block;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  margin: 0;
}

.pricing-pdf-version-list {
  border: 1px solid #dfe8f0;
  border-radius: 8px;
  display: grid;
  overflow: hidden;
}

.pricing-pdf-version-list a {
  align-items: center;
  color: inherit;
  display: grid;
  gap: 12px;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  min-height: 58px;
  padding: 12px 14px;
  text-decoration: none;
}

.pricing-pdf-version-list a + a {
  border-top: 1px solid #e6edf3;
}

.pricing-pdf-version-list a:hover,
.pricing-pdf-version-list a:focus-visible {
  background: #f8fbfd;
  outline: 0;
}

.pricing-pdf-version-list b {
  color: #df2f91;
  font-size: 12px;
  font-weight: 800;
}

.pricing-mail-form,
.pricing-mail-history {
  margin-top: 16px;
}

.pricing-mail-card {
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(17, 33, 51, 0.06);
  padding: 22px 24px 24px;
}

.pricing-mail-head {
  align-items: flex-start;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.pricing-mail-head p {
  color: #64748b;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.pricing-mail-head h2 {
  color: #071829;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0 0 14px;
}

.pricing-mail-head span:not(.pricing-mail-status) {
  color: #5f7286;
  display: block;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}

.pricing-mail-status {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 10px;
  min-height: 42px;
  padding: 0 18px;
  white-space: nowrap;
}

.pricing-mail-status i {
  border-radius: 999px;
  display: inline-block;
  height: 11px;
  width: 11px;
}

.pricing-mail-status.is-not-ready {
  background: #fff3d8;
  color: #7c4d00;
  font-size: 15px;
  font-weight: 800;
}

.pricing-mail-status.is-not-ready i {
  background: #f59e0b;
}

.pricing-mail-status.is-ready {
  background: #eaf8f0;
  color: #11845b;
  font-size: 15px;
  font-weight: 800;
}

.pricing-mail-status.is-ready i {
  background: #14a56c;
}

.pricing-mail-metrics {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.pricing-mail-metrics.is-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pricing-mail-metrics article {
  align-items: center;
  border: 1px solid #dfe8f0;
  border-radius: 10px;
  display: grid;
  gap: 14px;
  grid-template-columns: 46px minmax(0, 1fr);
  min-height: 78px;
  padding: 14px 16px;
}

.pricing-mail-metrics article > span,
.pricing-mail-callout > span,
.pricing-mail-lock-callout > span,
.pricing-mail-review-note > span,
.pricing-mail-empty > span {
  align-items: center;
  background: #fde8f3;
  border-radius: 12px;
  color: #df2f91;
  display: inline-flex;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.pricing-mail-metrics svg,
.pricing-mail-callout svg,
.pricing-mail-lock-callout svg,
.pricing-mail-review-note svg,
.pricing-mail-empty svg {
  height: 22px;
  width: 22px;
}

.pricing-mail-metrics small {
  color: #65768a;
  display: block;
  font-size: 13px;
  font-weight: 400;
  margin-bottom: 5px;
}

.pricing-mail-metrics strong {
  color: #071829;
  display: block;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
}

.pricing-mail-metrics strong.is-success {
  color: #047857;
}

.pricing-mail-callout {
  align-items: flex-start;
  background: linear-gradient(135deg, #fff5fa, #fffafd);
  border: 1px solid rgba(226, 58, 139, 0.28);
  border-radius: 10px;
  display: grid;
  gap: 18px 22px;
  grid-template-columns: 72px minmax(0, 1fr);
  margin: 0 0 28px;
  padding: 22px;
}

.pricing-mail-callout.is-warning {
  background: #fff7e8;
  border-color: rgba(245, 158, 11, 0.28);
}

.pricing-mail-callout.is-soft {
  background: #fffbeb;
  border-color: rgba(245, 158, 11, 0.22);
}

.pricing-mail-callout.is-warning > span,
.pricing-mail-callout.is-soft > span {
  background: #fff0cf;
  color: #d97706;
}

.pricing-mail-callout strong {
  color: #0b1f33;
  display: block;
  font-size: 21px;
  font-weight: 800;
  margin: 8px 0 6px;
}

.pricing-mail-callout p {
  color: #4f6072;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
}

.pricing-mail-callout form {
  grid-column: 1 / -1;
  margin: 0;
}

.pricing-mail-callout .btn,
.pricing-mail-send-button {
  justify-content: center;
  min-height: 58px;
  width: 100%;
}

.pricing-mail-lock-callout {
  align-items: center;
  background: #fff8eb;
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 10px;
  display: grid;
  gap: 18px;
  grid-template-columns: 46px minmax(0, 1fr) 190px;
  margin: 0 0 16px;
  padding: 14px 16px;
}

.pricing-mail-lock-callout > span {
  background: #fff0d5;
  color: #d97706;
}

.pricing-mail-lock-callout strong {
  color: #7c3f00;
  display: block;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 5px;
}

.pricing-mail-lock-callout p {
  color: #7c4a12;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  margin: 0;
}

.pricing-mail-lock-callout form {
  margin: 0;
}

.pricing-mail-lock-callout .btn {
  justify-content: center;
  min-height: 42px;
  width: 100%;
}

.pricing-mail-review-note {
  align-items: center;
  background: linear-gradient(135deg, #fff7fc, #fffbfe);
  border: 1px solid rgba(226, 58, 139, 0.22);
  border-radius: 10px;
  display: grid;
  gap: 16px;
  grid-template-columns: 38px minmax(0, 1fr) 230px;
  margin: 0 0 16px;
  padding: 12px 14px;
}

.pricing-mail-review-note > span {
  border-radius: 999px;
  height: 38px;
  width: 38px;
}

.pricing-mail-review-note svg {
  height: 18px;
  width: 18px;
}

.pricing-mail-review-note p {
  color: #66768a;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  margin: 0;
}

.pricing-mail-review-note strong {
  color: #10243a;
  font-weight: 800;
  margin-right: 8px;
}

.pricing-mail-review-note .btn {
  justify-content: center;
  min-height: 38px;
  width: 100%;
}

.pricing-mail-send-button {
  align-items: center;
  background: linear-gradient(135deg, var(--ss-magenta-700), var(--ss-magenta-500));
  border-radius: 8px;
  box-shadow: 0 16px 32px rgba(217, 87, 204, 0.22);
  color: #fff;
  display: inline-flex;
  font-size: 16px;
  font-weight: 800;
  gap: 10px;
  margin-bottom: 22px;
  text-decoration: none;
}

.pricing-mail-send-button:hover,
.pricing-mail-send-button:focus-visible {
  color: #fff;
  filter: brightness(1.03);
  outline: 3px solid rgba(217, 87, 204, 0.16);
}

.pricing-mail-history-card {
  border: 1px solid #dfe8f0;
  border-radius: 10px;
  margin-top: 0;
  padding: 14px 16px 16px;
}

.pricing-mail-history-card h3 {
  color: #071829;
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 12px;
}

.pricing-mail-log-table th,
.pricing-mail-log-table td {
  padding: 12px 14px;
  vertical-align: middle;
}

.pricing-mail-recipient {
  align-items: center;
  display: inline-flex;
  gap: 14px;
}

.pricing-mail-recipient i {
  align-items: center;
  background: #fde8f3;
  border-radius: 10px;
  color: #df2f91;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.pricing-mail-recipient svg {
  height: 16px;
  width: 16px;
}

.pricing-mail-empty {
  align-items: center;
  border: 1px dashed #cfe0ec;
  border-radius: 8px;
  display: grid;
  gap: 20px;
  grid-template-columns: 72px minmax(0, 1fr);
  min-height: 124px;
  padding: 24px;
}

.pricing-mail-empty > span {
  background: #eef2f6;
  color: #6b7c8f;
}

.pricing-mail-empty strong {
  color: #0b1f33;
  display: block;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.pricing-mail-empty p {
  color: #667788;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
}

.pricing-accept-legacy {
  display: none !important;
}

.pricing-accept-card {
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(17, 33, 51, 0.06);
  padding: 22px 24px 24px;
}

.pricing-accept-head {
  align-items: flex-start;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.pricing-accept-head p {
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.pricing-accept-head h2 {
  color: #071829;
  font-size: 30px;
  font-weight: 850;
  letter-spacing: 0;
  margin: 0 0 8px;
}

.pricing-accept-head span:not(.pricing-accept-status) {
  color: #5f7286;
  display: block;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
}

.pricing-accept-status {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  gap: 8px;
  padding: 11px 18px;
  white-space: nowrap;
}

.pricing-accept-status svg {
  height: 18px;
  width: 18px;
}

.pricing-accept-status.is-accepted,
.pricing-accept-status.is-active {
  background: #dff8ec;
  color: #047857;
}

.pricing-accept-status.is-muted {
  background: #eef3f7;
  color: #64748b;
}

.pricing-accept-metrics {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 20px;
}

.pricing-accept-metrics article,
.pricing-accept-detail-grid article {
  align-items: center;
  border: 1px solid #dfe8f0;
  border-radius: 10px;
  display: grid;
  gap: 14px;
  grid-template-columns: 50px minmax(0, 1fr);
  min-height: 82px;
  padding: 15px 18px;
}

.pricing-accept-metrics article > span,
.pricing-accept-detail-grid article > span {
  align-items: center;
  border-radius: 13px;
  display: inline-flex;
  height: 50px;
  justify-content: center;
  width: 50px;
}

.pricing-accept-metrics svg,
.pricing-accept-detail-grid svg {
  height: 23px;
  width: 23px;
}

.pricing-accept-metrics small,
.pricing-accept-detail-grid small {
  color: #65768a;
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}

.pricing-accept-metrics strong,
.pricing-accept-detail-grid strong {
  color: #071829;
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.pricing-accept-metrics strong.is-success {
  color: #047857;
}

.pricing-accept-metrics .is-green,
.pricing-accept-detail-grid .is-green {
  background: #def8ec;
  color: #047857;
}

.pricing-accept-metrics .is-pink,
.pricing-accept-detail-grid .is-pink {
  background: #fde8f3;
  color: #df2f91;
}

.pricing-accept-metrics .is-purple,
.pricing-accept-detail-grid .is-purple {
  background: #efe7ff;
  color: #7c3aed;
}

.pricing-accept-metrics .is-gray {
  background: #eef2f6;
  color: #52677a;
}

.pricing-accept-detail-grid .is-orange {
  background: #fff0d5;
  color: #d97706;
}

.pricing-accept-detail-grid .is-blue {
  background: #e7f3ff;
  color: #1677d2;
}

.pricing-accept-success {
  align-items: center;
  background: linear-gradient(135deg, #effdf6, #f8fffb);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 10px;
  display: grid;
  gap: 18px;
  grid-template-columns: 62px minmax(0, 1fr) 210px;
  margin: 0 0 18px;
  padding: 18px 20px;
}

.pricing-accept-success > span {
  align-items: center;
  border: 3px solid #047857;
  border-radius: 999px;
  color: #047857;
  display: inline-flex;
  height: 52px;
  justify-content: center;
  width: 52px;
}

.pricing-accept-success > span svg {
  height: 30px;
  width: 30px;
}

.pricing-accept-success strong {
  color: #09633e;
  display: block;
  font-size: 18px;
  font-weight: 850;
  margin-bottom: 5px;
}

.pricing-accept-success p {
  color: #496174;
  font-size: 14px;
  font-weight: 400;
  margin: 0;
}

.pricing-accept-success form {
  margin: 0;
}

.pricing-accept-success .btn {
  justify-content: center;
  min-height: 46px;
  width: 100%;
}

.pricing-accept-success.is-pending,
.pricing-accept-success.is-waiting {
  background: #fff8eb;
  border-color: rgba(245, 158, 11, 0.28);
}

.pricing-accept-success.is-pending > span,
.pricing-accept-success.is-waiting > span {
  background: #fff0d5;
  border: 0;
  color: #d97706;
}

.pricing-accept-success.is-pending strong,
.pricing-accept-success.is-waiting strong {
  color: #7c3f00;
}

.pricing-accept-copy,
.pricing-accept-revoke {
  margin-bottom: 18px;
}

.pricing-accept-details,
.pricing-accept-history {
  border: 1px solid #dfe8f0;
  border-radius: 10px;
  margin-top: 18px;
  padding: 18px 20px;
}

.pricing-accept-details h3,
.pricing-accept-history h3 {
  color: #071829;
  font-size: 20px;
  font-weight: 850;
  margin: 0 0 14px;
}

.pricing-accept-detail-grid {
  display: grid;
  gap: 10px 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pricing-accept-detail-grid article:last-child:nth-child(odd) {
  max-width: calc(50% - 7px);
}

.pricing-accept-table th,
.pricing-accept-table td {
  padding: 14px 16px;
  vertical-align: middle;
}

.pricing-accept-table .status-pill {
  gap: 6px;
}

.pricing-accept-table .status-pill svg {
  height: 14px;
  width: 14px;
}

.pricing-mail-step {
  border-top: 1px solid #e6edf3;
  display: grid;
  gap: 12px;
  padding-top: 16px;
}

.pricing-mail-step h3,
.pricing-mail-history h3 {
  color: #0b2639;
  font-size: 15px;
  margin: 0;
}

.pricing-check-list {
  display: grid;
  gap: 8px;
}

.pricing-check-card {
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid #e6edf3;
  border-radius: 8px;
  color: #304457;
  display: grid;
  gap: 10px;
  grid-template-columns: 20px minmax(0, 1fr);
  padding: 10px 12px;
}

.pricing-check-card input {
  height: 18px;
  margin-top: 3px;
  min-height: 18px;
  min-width: 18px;
  width: 18px;
}

.pricing-check-card span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.pricing-check-card strong {
  color: #0b2639;
}

.pricing-check-card.is-disabled {
  opacity: 0.66;
}

.pricing-owner-link-card {
  border-color: rgba(15, 35, 56, 0.08);
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(17, 33, 51, 0.07);
  padding: 18px 24px 22px;
}

.pricing-owner-hero {
  align-items: flex-start;
  display: grid;
  gap: 14px;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  margin-bottom: 16px;
}

.pricing-owner-hero-icon {
  align-items: center;
  background: linear-gradient(180deg, #fde8f3 0%, #f9d9ed 100%);
  border-radius: 13px;
  color: #df2f91;
  display: inline-flex;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.pricing-owner-hero-icon svg {
  height: 23px;
  stroke-width: 2.4;
  width: 23px;
}

.pricing-owner-hero-copy p {
  color: #ec6aa9;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  margin: 1px 0 6px;
  text-transform: uppercase;
}

.pricing-owner-hero-copy h2 {
  color: #0b1f33;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.04;
  margin: 0 0 8px;
}

.pricing-owner-hero-copy span {
  color: #5d6a78;
  display: block;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}

.pricing-owner-status {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  gap: 8px;
  justify-content: center;
  margin-top: 0;
  min-height: 32px;
  padding: 0 13px;
  white-space: nowrap;
}

.pricing-owner-status.is-linked {
  background: linear-gradient(135deg, #e8f9f1, #d8f4e8);
  color: #11935f;
  font-size: 14px;
  font-weight: 800;
}

.pricing-owner-status.is-linked svg {
  background: #cef2e1;
  border-radius: 999px;
  height: 24px;
  padding: 5px;
  width: 24px;
}

.pricing-owner-status.is-warning {
  background: #fff7e8;
  color: #9a6508;
  font-size: 13px;
  font-weight: 700;
}

.pricing-owner-status.is-muted {
  background: #eef4f8;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.pricing-owner-linked-box {
  align-items: center;
  background: linear-gradient(135deg, #fff7fb, #fffafd);
  border: 1px solid rgba(226, 58, 139, 0.24);
  border-radius: 10px;
  display: grid;
  gap: 14px;
  grid-template-columns: 46px minmax(0, 1fr);
  min-height: 82px;
  padding: 14px 18px;
}

.pricing-owner-linked-box.is-unlinked {
  background: #fff9fb;
}

.pricing-owner-linked-icon {
  align-items: center;
  background: #fde5f0;
  border-radius: 999px;
  color: #df2f91;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.pricing-owner-linked-icon svg {
  height: 20px;
  stroke-width: 2.4;
  width: 20px;
}

.pricing-owner-linked-box strong {
  color: #0b1f33;
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 5px;
}

.pricing-owner-linked-box strong b {
  color: #df2f91;
  font-weight: 800;
}

.pricing-owner-linked-box span span,
.pricing-owner-linked-box div > span {
  align-items: center;
  color: #697789;
  display: flex;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
}

.pricing-owner-linked-box div > span svg {
  color: #778396;
  flex: 0 0 auto;
  height: 18px;
  width: 18px;
}

.pricing-owner-open-card {
  align-items: center;
  border: 1px solid rgba(226, 58, 139, 0.26);
  border-radius: 8px;
  color: #df2f91;
  display: inline-flex;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
  margin-top: 14px;
  min-height: 38px;
  padding: 0 15px;
  text-decoration: none;
}

.pricing-owner-open-card svg {
  height: 18px;
  width: 18px;
}

.pricing-owner-open-card:hover,
.pricing-owner-open-card:focus-visible {
  background: #fff7fb;
  border-color: rgba(226, 58, 139, 0.42);
  color: #c51f7a;
  outline: 3px solid rgba(226, 58, 139, 0.12);
}

.pricing-owner-search {
  align-items: end;
  background: #f8fafc;
  border: 1px solid #e6edf3;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1fr) auto;
  margin: 12px 0;
  padding: 12px;
}

.pricing-owner-search label {
  display: grid;
  gap: 6px;
}

.pricing-owner-search span {
  color: #40576b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.pricing-owner-link-form {
  margin-top: 14px;
}

.pricing-owner-link-form .pricing-form-grid {
  gap: 10px;
}

.pricing-owner-link-form .pricing-check-card {
  margin-top: 10px;
  padding: 10px 12px;
}

.pricing-owner-link-form .pricing-form-actions {
  margin-top: 12px;
}

.pricing-import-panel {
  background: #f8fafc;
  border: 1px solid #e6edf3;
  border-radius: 8px;
  display: grid;
  gap: 14px;
  margin: 16px 0;
  padding: 14px;
}

.pricing-import-upload {
  background: #fff;
  border: 1px solid #e6edf3;
  border-radius: 8px;
  padding: 12px;
}

.pricing-import-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pricing-import-summary span {
  background: #fff;
  border: 1px solid #e6edf3;
  border-radius: 8px;
  color: #40576b;
  display: block;
  font-size: 12px;
  font-weight: 800;
  padding: 12px;
  text-transform: uppercase;
}

.pricing-import-summary strong {
  color: #0b2639;
  display: block;
  font-size: 20px;
  line-height: 1.1;
  margin-bottom: 4px;
}

.pricing-import-history {
  display: grid;
  gap: 10px;
}

.pricing-import-history h3 {
  color: #0b2639;
  font-size: 15px;
  margin: 0;
}

.pricing-import-table td {
  vertical-align: top;
}

@media (max-width: 720px) {
  .pricing-owner-search,
  .pricing-import-summary {
    grid-template-columns: 1fr;
  }
}

.pricing-copy-field {
  align-items: end;
  background: #f8fafc;
  border: 1px solid #e6edf3;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 12px 0;
  padding: 12px;
}

.pricing-copy-field span {
  color: #667788;
  font-size: 12px;
  font-weight: 900;
  grid-column: 1 / -1;
  text-transform: uppercase;
}

.pricing-copy-field input {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.pricing-warning-item,
.pricing-ready-item {
  border-radius: 8px !important;
}

.pricing-warning-item {
  background: #fff7e8 !important;
  border-color: #f2c36b !important;
}

.pricing-ready-item {
  background: #effaf6 !important;
  border-color: #bfe5d6 !important;
}

.pricing-table-checkbox {
  justify-content: center;
}

.pricing-preview {
  background: #fff;
}

.pricing-preview-banner {
  align-items: center;
  background: #08283d;
  border-radius: 8px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 18px;
}

.pricing-preview-banner p,
.pricing-preview-banner h2 {
  margin: 0;
}

.pricing-preview-banner p {
  color: #f4b3d4;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.pricing-preview-banner h2 {
  color: #fff;
  font-size: 24px;
}

.pricing-preview-meta {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.pricing-preview-meta span {
  background: #f8fafc;
  border: 1px solid #e6edf3;
  border-radius: 8px;
  color: #607286;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.pricing-preview-meta strong {
  color: #0b2639;
  font-size: 12px;
  text-transform: uppercase;
}

.pricing-preview-head {
  align-items: center;
  border-bottom: 1px solid #e6edf3;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
}

.pricing-preview-head strong {
  color: #08283d;
  font-size: 20px;
  font-weight: 900;
}

.pricing-preview-head span,
.pricing-preview-note,
.pricing-preview-docs span {
  color: #607286;
}

.pricing-preview-note {
  background: #f8fafc;
  border: 1px solid #e6edf3;
  border-radius: 8px;
  margin: 0 0 16px;
  padding: 12px;
}

.pricing-preview-note strong {
  color: #0b2639;
  display: block;
  margin-bottom: 6px;
}

.pricing-preview-note p {
  margin: 0;
}

.pricing-preview-group {
  margin-top: 18px;
}

.pricing-preview-catalog {
  border-left: 3px solid #e23a8b;
  margin-top: 12px;
  padding-left: 12px;
}

.pricing-preview-service {
  margin-top: 10px;
}

.pricing-preview-group h3,
.pricing-preview h3,
.pricing-preview h4,
.pricing-preview h5 {
  color: #0b2639;
  margin: 0 0 10px;
}

.pricing-preview-group h3 {
  font-size: 18px;
}

.pricing-preview h4 {
  font-size: 15px;
}

.pricing-preview h5 {
  color: #44576a;
  font-size: 13px;
  text-transform: uppercase;
}

.pricing-preview-docs {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pricing-preview-docs li {
  background: #f8fafc;
  border: 1px solid #e6edf3;
  border-radius: 8px;
  padding: 10px 12px;
}

@media (max-width: 980px) {
  .pricing-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-summary-stats-wide,
  .pricing-pdf-overview,
  .pricing-preview-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-entity-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .pricing-entity-card .pricing-row-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .pricing-form-grid,
  .pricing-entity-card,
  .pricing-pdf-overview,
  .pricing-copy-field,
  .pricing-action-grid {
    grid-template-columns: 1fr;
  }

  .pricing-logo {
    height: 42px;
    width: 42px;
  }

  .pricing-preview-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .pricing-preview-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .pricing-summary-stats-wide,
  .pricing-preview-meta {
    grid-template-columns: 1fr;
  }
}

/* Compact offer work panels */
.pricing-mail-card,
.pricing-accept-card {
  padding: 16px 18px 18px;
}

.pricing-mail-head,
.pricing-accept-head {
  margin-bottom: 14px;
}

.pricing-mail-head p,
.pricing-accept-head p {
  font-size: 11px;
  margin-bottom: 4px;
}

.pricing-mail-head h2,
.pricing-accept-head h2 {
  font-size: 20px;
  margin-bottom: 6px;
}

.pricing-mail-head span:not(.pricing-mail-status),
.pricing-accept-head span:not(.pricing-accept-status) {
  font-size: 12px;
  line-height: 1.35;
}

.pricing-mail-status,
.pricing-accept-status {
  font-size: 12px;
  gap: 6px;
  padding: 8px 13px;
}

.pricing-mail-status svg,
.pricing-accept-status svg {
  height: 15px;
  width: 15px;
}

.pricing-mail-metrics,
.pricing-accept-metrics {
  gap: 10px;
  margin-bottom: 14px;
}

.pricing-mail-metrics article,
.pricing-accept-metrics article,
.pricing-accept-detail-grid article {
  gap: 10px;
  grid-template-columns: 38px minmax(0, 1fr);
  min-height: 62px;
  padding: 10px 12px;
}

.pricing-mail-metrics article > span,
.pricing-mail-callout > span,
.pricing-mail-lock-callout > span,
.pricing-mail-review-note > span,
.pricing-mail-empty > span,
.pricing-accept-metrics article > span,
.pricing-accept-detail-grid article > span {
  border-radius: 10px;
  height: 38px;
  width: 38px;
}

.pricing-mail-metrics svg,
.pricing-mail-callout svg,
.pricing-mail-lock-callout svg,
.pricing-mail-review-note svg,
.pricing-mail-empty svg,
.pricing-accept-metrics svg,
.pricing-accept-detail-grid svg {
  height: 18px;
  width: 18px;
}

.pricing-mail-metrics small,
.pricing-accept-metrics small,
.pricing-accept-detail-grid small {
  font-size: 11px;
  margin-bottom: 2px;
}

.pricing-mail-metrics strong,
.pricing-accept-metrics strong,
.pricing-accept-detail-grid strong {
  font-size: 14px;
}

.pricing-mail-callout,
.pricing-mail-lock-callout,
.pricing-mail-review-note,
.pricing-accept-success {
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px 14px;
}

.pricing-mail-callout {
  align-items: center;
  grid-template-columns: 38px minmax(0, 1fr) minmax(180px, 220px);
}

.pricing-mail-lock-callout,
.pricing-accept-success {
  grid-template-columns: 42px minmax(0, 1fr) minmax(170px, 210px);
}

.pricing-mail-review-note {
  grid-template-columns: 38px minmax(0, 1fr) minmax(180px, 220px);
}

.pricing-accept-success > span {
  border-width: 2px;
  height: 42px;
  width: 42px;
}

.pricing-accept-success > span svg {
  height: 23px;
  width: 23px;
}

.pricing-mail-callout strong,
.pricing-mail-lock-callout strong,
.pricing-accept-success strong {
  font-size: 15px;
  margin: 0 0 4px;
}

.pricing-mail-callout p,
.pricing-mail-lock-callout p,
.pricing-mail-review-note p,
.pricing-accept-success p {
  font-size: 12px;
  line-height: 1.35;
}

.pricing-mail-callout .btn,
.pricing-mail-lock-callout .btn,
.pricing-mail-review-note .btn,
.pricing-mail-send-button,
.pricing-accept-success .btn {
  font-size: 13px;
  min-height: 38px;
}

.pricing-mail-callout form {
  grid-column: auto;
}

.pricing-mail-history-card,
.pricing-accept-details,
.pricing-accept-history {
  margin-top: 12px;
  padding: 12px 14px;
}

.pricing-mail-history-card h3,
.pricing-accept-details h3,
.pricing-accept-history h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.pricing-mail-empty {
  gap: 12px;
  grid-template-columns: 38px minmax(0, 1fr);
  min-height: 68px;
  padding: 12px 14px;
}

.pricing-mail-empty strong {
  font-size: 15px;
  margin-bottom: 3px;
}

.pricing-mail-empty p {
  font-size: 12px;
}

.pricing-mail-log-table th,
.pricing-mail-log-table td,
.pricing-accept-table th,
.pricing-accept-table td {
  padding: 10px 12px;
}

.pricing-mail-recipient i {
  height: 30px;
  width: 30px;
}

.pricing-mail-recipient svg {
  height: 14px;
  width: 14px;
}

@media (max-width: 1180px) {
  .pricing-mail-metrics.is-four,
  .pricing-accept-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-mail-callout,
  .pricing-mail-lock-callout,
  .pricing-mail-review-note,
  .pricing-accept-success {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .pricing-mail-callout form,
  .pricing-mail-lock-callout form,
  .pricing-accept-success form {
    grid-column: 1 / -1;
  }
}

/* Offer active agreement tab */
.pricing-offer-agreement-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.pricing-offer-agreement-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.9fr);
}

.pricing-offer-agreement-main,
.pricing-offer-agreement-side {
  display: grid;
  gap: 16px;
}

.pricing-offer-agreement-success,
.pricing-offer-agreement-flow,
.pricing-offer-agreement-details,
.pricing-offer-agreement-note {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #dbe6ec;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(9, 39, 54, 0.08);
}

.pricing-offer-agreement-success {
  align-items: flex-start;
  background: linear-gradient(135deg, #f0fff8 0%, #ffffff 100%);
  border-color: #bfeedd;
  display: grid;
  gap: 18px;
  grid-template-columns: 56px minmax(0, 1fr);
  padding: 28px 30px;
}

.pricing-offer-agreement-success.is-pending {
  background: linear-gradient(135deg, #fff7fb 0%, #ffffff 100%);
  border-color: #f8bfdc;
}

.pricing-offer-agreement-success > span {
  align-items: center;
  background: #169b6b;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.pricing-offer-agreement-success.is-pending > span {
  background: #db2b91;
}

.pricing-offer-agreement-success svg {
  height: 24px;
  width: 24px;
}

.pricing-offer-agreement-success h2,
.pricing-offer-agreement-flow h2,
.pricing-offer-agreement-details h2,
.pricing-offer-agreement-note h2 {
  color: #092237;
  font-size: 18px;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0 0 10px;
}

.pricing-offer-agreement-success p,
.pricing-offer-agreement-note p {
  color: #53687a;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  margin: 0 0 12px;
}

.pricing-offer-agreement-success p:last-child,
.pricing-offer-agreement-note p:last-child {
  margin-bottom: 0;
}

.pricing-offer-agreement-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.pricing-offer-agreement-actions form {
  margin: 0;
}

.pricing-offer-agreement-actions .btn {
  min-height: 44px;
  padding: 0 18px;
}

.pricing-offer-agreement-flow {
  padding: 24px 28px 28px;
}

.pricing-offer-agreement-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
  position: relative;
  text-align: center;
}

.pricing-offer-agreement-timeline::before {
  background: #14a36f;
  content: "";
  height: 3px;
  left: 16.666%;
  position: absolute;
  right: 16.666%;
  top: 17px;
}

.pricing-offer-agreement-timeline div {
  display: grid;
  justify-items: center;
  position: relative;
  z-index: 1;
}

.pricing-offer-agreement-timeline span {
  align-items: center;
  background: #14a36f;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  margin-bottom: 16px;
  width: 36px;
}

.pricing-offer-agreement-timeline svg {
  height: 18px;
  width: 18px;
}

.pricing-offer-agreement-timeline strong {
  color: #092237;
  font-size: 14px;
  line-height: 1.25;
  margin-bottom: 6px;
}

.pricing-offer-agreement-timeline small {
  color: #687b8b;
  display: block;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}

.pricing-offer-agreement-details {
  padding: 24px 28px;
}

.pricing-offer-agreement-details dl {
  display: grid;
  margin: 0;
}

.pricing-offer-agreement-details dl div {
  align-items: center;
  border-bottom: 1px solid #e3ebf0;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(150px, 0.9fr) minmax(0, 1fr);
  min-height: 48px;
}

.pricing-offer-agreement-details dl div:last-child {
  border-bottom: 0;
}

.pricing-offer-agreement-details dt,
.pricing-offer-agreement-details dd {
  align-items: center;
  display: flex;
  margin: 0;
}

.pricing-offer-agreement-details dt {
  color: #53687a;
  gap: 10px;
  font-size: 14px;
  font-weight: 400;
}

.pricing-offer-agreement-details dt svg {
  color: #092237;
  height: 20px;
  width: 20px;
}

.pricing-offer-agreement-details dd {
  color: #092237;
  font-size: 14px;
  font-weight: 600;
}

.pricing-offer-agreement-details dd a {
  color: #0974d7;
  text-decoration: none;
}

.pricing-offer-agreement-note {
  align-items: flex-start;
  display: grid;
  gap: 16px;
  grid-template-columns: 42px minmax(0, 1fr);
  padding: 26px 28px;
}

.pricing-offer-agreement-note > span {
  align-items: center;
  background: #e9f5ff;
  border-radius: 999px;
  color: #0974d7;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.pricing-offer-agreement-note.is-warning {
  background: #fff7e6;
  border-color: #fed58b;
  margin: 0;
}

.pricing-offer-agreement-note.is-warning > span {
  background: #fff0cf;
  color: #e28b00;
}

.pricing-offer-agreement-note svg {
  height: 18px;
  width: 18px;
}

@media (max-width: 1180px) {
  .pricing-offer-agreement-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .pricing-offer-agreement-success,
  .pricing-offer-agreement-note {
    grid-template-columns: 1fr;
  }

  .pricing-offer-agreement-details dl div {
    align-items: flex-start;
    gap: 6px;
    grid-template-columns: 1fr;
    padding: 12px 0;
  }

  .pricing-offer-agreement-timeline {
    gap: 20px;
    grid-template-columns: 1fr;
    text-align: left;
  }

  .pricing-offer-agreement-timeline::before {
    bottom: 36px;
    height: auto;
    left: 17px;
    right: auto;
    top: 17px;
    width: 3px;
  }

  .pricing-offer-agreement-timeline div {
    gap: 8px;
    grid-template-columns: 36px minmax(0, 1fr);
    justify-items: start;
  }

  .pricing-offer-agreement-timeline span {
    grid-row: span 3;
    margin: 0;
  }
}

/* Acceptlink tab: separate dialogs, no nested-card feeling */
.pricing-body .pricing-shell > .pricing-card.pricing-accept-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.pricing-body .pricing-shell > .pricing-card.pricing-accept-card.is-active-panel {
  display: grid;
  gap: 18px;
  padding-top: 14px;
}

.pricing-accept-card .pricing-accept-head {
  margin: 0 0 2px;
  padding: 0 2px 2px;
}

.pricing-accept-card .pricing-accept-head h2 {
  font-size: 20px;
  margin-bottom: 0;
}

.pricing-accept-card .pricing-accept-head span:not(.pricing-accept-status) {
  max-width: 760px;
}

.pricing-accept-card .pricing-accept-metrics {
  gap: 12px;
  margin: 0;
}

.pricing-accept-card .pricing-accept-metrics article {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 26px rgba(9, 39, 54, 0.045);
}

.pricing-accept-card .pricing-accept-success,
.pricing-accept-card .pricing-accept-details,
.pricing-accept-card .pricing-accept-history {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #dbe6ec;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(9, 39, 54, 0.065);
  margin: 0;
}

.pricing-accept-card .pricing-accept-success {
  background: linear-gradient(135deg, #eefcf6 0%, #ffffff 100%);
  border-color: #bdeedb;
  min-height: 62px;
}

.pricing-accept-card .pricing-accept-success.is-pending,
.pricing-accept-card .pricing-accept-success.is-waiting {
  background: linear-gradient(135deg, #fff7fb 0%, #ffffff 100%);
  border-color: #f6bed9;
}

.pricing-accept-card .pricing-accept-details,
.pricing-accept-card .pricing-accept-history {
  padding: 18px;
}

.pricing-accept-card .pricing-accept-details h3,
.pricing-accept-card .pricing-accept-history h3 {
  font-size: 16px;
  margin-bottom: 12px;
}

.pricing-accept-card .pricing-accept-detail-grid {
  gap: 8px 12px;
}

.pricing-accept-card .pricing-accept-detail-grid article {
  background: #fff;
  min-height: 54px;
}

.pricing-accept-card .pricing-accept-table {
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
  table-layout: auto;
  width: 100%;
}

.pricing-accept-card .pricing-accept-history .table-responsive {
  background: #fff;
  border: 1px solid #dfe8f0;
  border-radius: 12px;
  overflow: hidden;
}

.pricing-accept-card .pricing-accept-table th {
  background: #f7f9fb;
  border-bottom: 1px solid #dfe8f0;
  color: #53687a;
  font-size: 12px;
  font-weight: 700;
  height: 44px;
  padding: 0 16px;
  text-align: left;
}

.pricing-accept-card .pricing-accept-table td {
  border-bottom: 0;
  color: #1c3347;
  font-size: 13px;
  font-weight: 400;
  height: 64px;
  padding: 14px 16px;
  vertical-align: middle;
}

.pricing-accept-card .pricing-accept-table th:first-child,
.pricing-accept-card .pricing-accept-table td:first-child {
  width: 150px;
}

.pricing-accept-card .pricing-accept-table .status-pill {
  display: inline-flex;
  gap: 6px;
  white-space: nowrap;
}

/* Mail history table polish */
.pricing-mail-card .pricing-mail-history-card {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #dbe6ec;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(9, 39, 54, 0.055);
  margin-top: 12px;
  padding: 16px;
}

.pricing-mail-card .pricing-mail-history-card h3 {
  color: #092237;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 12px;
}

.pricing-mail-card .pricing-mail-history-card .table-responsive {
  background: #fff;
  border: 1px solid #dfe8f0;
  border-radius: 12px;
  overflow: hidden;
}

.pricing-mail-card .pricing-mail-log-table {
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
  table-layout: auto;
  width: 100%;
}

.pricing-mail-card .pricing-mail-log-table thead th {
  background: #f7f9fb;
  border-bottom: 1px solid #dfe8f0;
  color: #53687a;
  font-size: 12px;
  font-weight: 700;
  height: 46px;
  padding: 0 16px;
  text-align: left;
}

.pricing-mail-card .pricing-mail-log-table tbody td {
  border-bottom: 0;
  color: #1c3347;
  font-size: 13px;
  font-weight: 400;
  height: 70px;
  padding: 14px 16px;
  vertical-align: middle;
}

.pricing-mail-card .pricing-mail-log-table th:nth-child(1),
.pricing-mail-card .pricing-mail-log-table td:nth-child(1) {
  width: 150px;
}

.pricing-mail-card .pricing-mail-log-table th:nth-child(2),
.pricing-mail-card .pricing-mail-log-table td:nth-child(2) {
  min-width: 250px;
}

.pricing-mail-card .pricing-mail-log-table th:nth-child(3),
.pricing-mail-card .pricing-mail-log-table td:nth-child(3) {
  min-width: 320px;
}

.pricing-mail-card .pricing-mail-log-table th:nth-child(4),
.pricing-mail-card .pricing-mail-log-table td:nth-child(4),
.pricing-mail-card .pricing-mail-log-table th:nth-child(5),
.pricing-mail-card .pricing-mail-log-table td:nth-child(5),
.pricing-mail-card .pricing-mail-log-table th:nth-child(6),
.pricing-mail-card .pricing-mail-log-table td:nth-child(6),
.pricing-mail-card .pricing-mail-log-table th:nth-child(8),
.pricing-mail-card .pricing-mail-log-table td:nth-child(8),
.pricing-mail-card .pricing-mail-log-table th:nth-child(9),
.pricing-mail-card .pricing-mail-log-table td:nth-child(9) {
  text-align: center;
  white-space: nowrap;
  width: 90px;
}

.pricing-mail-card .pricing-mail-log-table th:nth-child(7),
.pricing-mail-card .pricing-mail-log-table td:nth-child(7) {
  min-width: 210px;
  white-space: nowrap;
}

.pricing-mail-card .pricing-mail-log-table td:nth-child(7) .status-pill {
  margin-right: 10px;
}

.pricing-mail-card .pricing-mail-log-table td:nth-child(7) small {
  color: #73859a;
  display: inline-block;
  font-size: 12px;
  vertical-align: middle;
}

.pricing-mail-card .pricing-mail-recipient {
  display: inline-grid;
  gap: 14px;
  grid-template-columns: 36px minmax(0, 1fr);
  line-height: 1.2;
}

.pricing-mail-card .pricing-mail-recipient i {
  border-radius: 12px;
  height: 36px;
  width: 36px;
}

.pricing-mail-card .pricing-mail-recipient svg {
  height: 16px;
  width: 16px;
}

/* Catalog rate table proportions */
#rates > .pricing-filter-bar {
  align-items: end;
  border-bottom-color: #dde7ef;
  gap: 12px;
  min-height: 84px;
  padding: 14px 16px 16px;
}

#rates > .pricing-filter-bar label {
  gap: 5px;
}

#rates > .pricing-filter-bar label span {
  color: #233b52;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

#rates > .pricing-filter-bar select,
#rates > .pricing-filter-bar input {
  border-color: #d9e4ee;
  border-radius: 6px;
  color: #10263b;
  font-size: 13px;
  min-height: 37px;
  padding: 0 12px;
}

#rates > .pricing-filter-bar .btn {
  border-radius: 6px;
  font-size: 13px;
  min-height: 37px;
  padding: 0 16px;
}

#rates > .table-responsive {
  border-radius: 0 0 8px 8px;
}

.pricing-catalog-rate-table thead th {
  background: #f6f8fb;
  border-bottom: 1px solid #dfe8f0;
  color: #41576d;
  font-size: 10px;
  font-weight: 850;
  height: 34px;
  letter-spacing: 0.015em;
  line-height: 1;
  padding: 0 13px;
}

.pricing-catalog-rate-table thead th span {
  color: #8195aa;
  font-size: 9px;
  margin-left: 3px;
}

.pricing-sort-link {
  height: 34px;
}

.pricing-catalog-rate-table tbody td {
  color: #18324a;
  font-size: 12px;
  height: 38px;
  line-height: 1.25;
  overflow: hidden;
  padding: 7px 13px;
  text-overflow: ellipsis;
}

.pricing-catalog-rate-table tbody td strong {
  color: #071f35;
  font-size: 12px;
  font-weight: 800;
}

.pricing-rate-group-row td {
  background: #edf8f7;
  border-bottom: 1px solid #d8e9e7;
  border-top: 1px solid #d8e9e7;
  color: #173047;
  font-size: 12px;
  height: 36px;
  padding: 5px 13px;
  vertical-align: middle;
}

.pricing-rate-group-row.is-search-focused td {
  background: #fff6fc;
  border-color: rgba(214, 31, 127, 0.22);
}

.pricing-rate-item-row.is-search-focused td {
  background: #fffafd;
  border-bottom-color: rgba(214, 31, 127, 0.24);
  border-top-color: rgba(214, 31, 127, 0.24);
}

.pricing-rate-item-row.is-search-focused td:first-child {
  box-shadow: inset 4px 0 0 #d61f7f;
}

.pricing-rate-group-row td:first-child {
  display: table-cell;
}

.pricing-rate-group-main {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  min-width: 0;
}

.pricing-rate-group-zone {
  align-items: baseline;
  display: grid;
  gap: 6px;
  grid-template-columns: 44px minmax(0, 1fr);
  min-width: 0;
}

.pricing-rate-group-zone strong {
  font-size: 12px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pricing-rate-group-zone.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.pricing-rate-group-zone span {
  color: #52697f;
  font-size: 12px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pricing-rate-group-count {
  background: #e4edf3;
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
  margin-left: 4px;
  padding: 4px 8px;
}

.pricing-rate-group-toggle {
  height: 20px;
  width: 20px;
}

.pricing-rate-group-toggle svg {
  height: 11px;
  width: 11px;
}

.pricing-catalog-rate-table .status-pill {
  font-size: 10px;
  min-height: 22px;
  padding: 4px 9px;
}

.pricing-catalog-rate-table .pricing-row-actions {
  gap: 6px;
  min-width: 232px;
}

.pricing-rate-edit-button {
  font-size: 12px;
  min-height: 30px;
  min-width: 68px;
}

.pricing-catalog-rate-table .pricing-icon-button {
  min-height: 30px;
  min-width: 32px;
  padding: 6px;
}

/* Pricing carriers overview */
.pricing-carriers-page {
  display: grid;
  gap: 18px;
  max-width: none;
  padding: 24px 30px 38px;
  width: 100%;
}

.pricing-carriers-head {
  align-items: flex-start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.pricing-carriers-head h1 {
  color: #071829;
  font-size: 32px;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0 0 10px;
}

.pricing-carriers-head p {
  color: #62758a;
  font-size: 15px;
  font-weight: 400;
  margin: 0;
}

.pricing-carriers-head-actions {
  align-items: center;
  display: flex;
  gap: 14px;
}

.pricing-carriers-head-actions .btn {
  border-radius: 8px;
  min-height: 48px;
  padding: 0 22px;
}

.pricing-catalogs-page {
  display: grid;
  gap: 18px;
  max-width: none;
  padding: 24px 30px 38px;
  width: 100%;
}

.pricing-catalogs-head {
  align-items: flex-start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.pricing-catalogs-head h1 {
  color: #071829;
  font-size: 32px;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0 0 10px;
}

.pricing-catalogs-head p {
  color: #62758a;
  font-size: 15px;
  font-weight: 400;
  margin: 0;
}

.pricing-catalogs-head-actions {
  align-items: center;
  display: flex;
  gap: 14px;
}

.pricing-catalogs-head-actions .btn {
  border-radius: 8px;
  min-height: 48px;
  padding: 0 22px;
}

.pricing-catalog-overview-kpis {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pricing-catalog-overview-kpi {
  align-items: center;
  background: #fff;
  border: 1px solid #dce6ef;
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(9, 33, 54, 0.06);
  display: flex;
  gap: 22px;
  min-height: 104px;
  padding: 20px 22px;
}

.pricing-catalog-overview-kpi > span {
  align-items: center;
  border-radius: 10px;
  display: inline-flex;
  flex: 0 0 54px;
  height: 54px;
  justify-content: center;
  width: 54px;
}

.pricing-catalog-overview-kpi svg {
  height: 28px;
  width: 28px;
}

.pricing-catalog-overview-kpi.is-purple > span {
  background: #f8e7ff;
  color: #bd35d1;
}

.pricing-catalog-overview-kpi.is-green > span {
  background: #def8eb;
  color: #10a66a;
}

.pricing-catalog-overview-kpi.is-blue > span {
  background: #e8f2ff;
  color: #2675d9;
}

.pricing-catalog-overview-kpi.is-orange > span {
  background: #fff0dc;
  color: #f28b16;
}

.pricing-catalog-overview-kpi small,
.pricing-catalog-overview-kpi em {
  color: #64748b;
  display: block;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
}

.pricing-catalog-overview-kpi strong {
  color: #081d33;
  display: block;
  font-size: 28px;
  line-height: 1.05;
  margin: 5px 0;
}

.pricing-catalog-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 280px;
}

.pricing-catalog-table-card,
.pricing-catalog-help-card {
  background: #fff;
  border: 1px solid #dce6ef;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(9, 33, 54, 0.07);
  min-width: 0;
}

.pricing-catalog-table-card {
  overflow: hidden;
}

.pricing-catalog-table-head {
  align-items: start;
  display: flex;
  justify-content: space-between;
  padding: 22px 24px 10px;
}

.pricing-catalog-table-head h2,
.pricing-catalog-help-card h3 {
  color: #081d33;
  font-size: 20px;
  line-height: 1.15;
  margin: 0 0 6px;
}

.pricing-catalog-table-head p,
.pricing-catalog-help-card p {
  color: #60758b;
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
}

.pricing-catalog-toolbar {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1fr) 150px 170px auto auto;
  padding: 12px 24px 20px;
}

.pricing-catalog-search,
.pricing-catalog-filter {
  align-items: center;
  display: flex;
  min-width: 0;
  position: relative;
}

.pricing-catalog-search svg,
.pricing-catalog-filter svg {
  color: #7890a8;
  height: 18px;
  left: 14px;
  position: absolute;
  width: 18px;
}

.pricing-filter-dot {
  background: #10a66a;
  border-radius: 999px;
  height: 6px;
  left: 14px;
  position: absolute;
  width: 6px;
}

.pricing-catalog-search input,
.pricing-catalog-filter select,
.pricing-catalog-table-footer select {
  background: #fff;
  border: 1px solid #d8e4ee;
  border-radius: 6px;
  color: #10263b;
  font-size: 14px;
  height: 42px;
  width: 100%;
}

.pricing-catalog-search input {
  padding: 0 14px 0 42px;
}

.pricing-catalog-filter select {
  padding: 0 12px 0 36px;
}

.pricing-catalog-export {
  justify-self: end;
}

.pricing-catalog-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 1120px;
  width: 100%;
}

.pricing-catalog-table th {
  background: #f8fafc;
  border-bottom: 1px solid #e1e9f1;
  color: #52677d;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.03em;
  padding: 14px 20px;
  text-align: left;
  text-transform: uppercase;
}

.pricing-catalog-table td {
  border-bottom: 1px solid #e6edf4;
  color: #10263b;
  font-size: 13px;
  padding: 14px 20px;
  vertical-align: middle;
}

.pricing-catalog-table tbody tr:hover td {
  background: #fbfdff;
}

.pricing-catalog-table td strong {
  color: #081d33;
  display: block;
  font-weight: 750;
}

.pricing-catalog-table td small {
  color: #60758b;
  display: block;
  font-size: 12px;
  font-weight: 400;
  margin-top: 3px;
}

.pricing-catalog-chip {
  background: #f2f6fa;
  border: 1px solid #e3ebf3;
  border-radius: 999px;
  color: #385066;
  display: inline-flex;
  font-size: 12px;
  font-weight: 650;
  padding: 5px 9px;
}

.pricing-catalog-overview-actions {
  align-items: center;
  display: flex;
  gap: 7px;
  white-space: nowrap;
}

.pricing-catalog-overview-actions form {
  margin: 0;
}

.pricing-icon-btn {
  align-items: center;
  background: #fff;
  border: 1px solid #dce6ef;
  border-radius: 6px;
  color: #60758b;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  text-decoration: none;
  width: 34px;
}

.pricing-icon-btn svg {
  height: 16px;
  width: 16px;
}

.pricing-icon-btn:hover {
  border-color: #c5d4e2;
  color: #10263b;
}

.pricing-catalog-table-footer {
  align-items: center;
  color: #52677d;
  display: grid;
  font-size: 13px;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 18px 24px;
}

.pricing-catalog-table-footer label {
  align-items: center;
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

.pricing-catalog-table-footer select {
  height: 36px;
  padding: 0 10px;
  width: 62px;
}

.pricing-catalog-pager {
  align-items: center;
  display: flex;
  gap: 8px;
}

.pricing-catalog-pager button,
.pricing-catalog-pager strong {
  align-items: center;
  background: #fff;
  border: 1px solid #dce6ef;
  border-radius: 6px;
  color: #60758b;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  min-width: 34px;
  padding: 0 10px;
}

.pricing-catalog-pager strong {
  background: #fde8f7;
  border-color: #f5bfe7;
  color: #df2f91;
}

.pricing-catalog-help-card {
  display: grid;
  gap: 12px;
  padding: 24px 22px;
}

.pricing-catalog-help-card > span {
  align-items: center;
  background: #fbebff;
  border-radius: 999px;
  color: #bd35d1;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.pricing-catalog-help-card > span svg {
  height: 18px;
  width: 18px;
}

.pricing-catalog-help-card a {
  align-items: center;
  color: #df2f91;
  display: inline-flex;
  font-weight: 750;
  gap: 7px;
  margin-top: 4px;
  text-decoration: none;
}

.pricing-catalog-help-card a svg {
  height: 15px;
  width: 15px;
}

.pricing-catalog-empty {
  margin: 0 24px 24px;
  padding: 20px;
  border: 1px dashed #cdd7e1;
  border-radius: 8px;
  background: #f8fafc;
}

.pricing-catalog-empty strong {
  color: #081d33;
  display: block;
  margin-bottom: 6px;
}

.pricing-catalog-empty p {
  color: #60758b;
  margin: 0;
}

.pricing-carrier-kpis {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pricing-carrier-kpi {
  align-items: center;
  background: #fff;
  border: 1px solid #dce6ef;
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(9, 33, 54, 0.06);
  display: flex;
  gap: 22px;
  min-height: 118px;
  padding: 22px 24px;
}

.pricing-carrier-kpi > span {
  align-items: center;
  border-radius: 10px;
  display: inline-flex;
  flex: 0 0 64px;
  height: 64px;
  justify-content: center;
  width: 64px;
}

.pricing-carrier-kpi > span svg {
  height: 30px;
  width: 30px;
}

.pricing-carrier-kpi.is-pink > span {
  background: #fde9f5;
  color: #df2f91;
}

.pricing-carrier-kpi.is-purple > span {
  background: #f1e6ff;
  color: #8b35e8;
}

.pricing-carrier-kpi.is-orange > span {
  background: #fff0dc;
  color: #f28b16;
}

.pricing-carrier-kpi.is-green > span {
  background: #def8eb;
  color: #10a66a;
}

.pricing-carrier-kpi small,
.pricing-carrier-kpi em {
  color: #64748b;
  display: block;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
}

.pricing-carrier-kpi strong {
  color: #081d33;
  display: block;
  font-size: 34px;
  line-height: 1.05;
  margin: 5px 0;
}

.pricing-carriers-card {
  overflow: hidden;
  padding: 0;
}

.pricing-carriers-toolbar {
  align-items: center;
  border-bottom: 1px solid #e2eaf2;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(260px, 1fr) 170px auto;
  padding: 22px 24px;
}

.pricing-carrier-search {
  align-items: center;
  display: flex;
  position: relative;
}

.pricing-carrier-search svg {
  color: #7890a8;
  height: 19px;
  left: 17px;
  position: absolute;
  width: 19px;
}

.pricing-carrier-search input,
.pricing-carrier-status select {
  background: #fff;
  border: 1px solid #d8e4ee;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(9, 33, 54, 0.03);
  color: #10263b;
  font-size: 14px;
  height: 44px;
  width: 100%;
}

.pricing-carrier-search input {
  padding: 0 16px 0 48px;
}

.pricing-carrier-status {
  align-items: center;
  display: flex;
  gap: 8px;
}

.pricing-carrier-status span {
  color: #10263b;
  font-size: 13px;
  font-weight: 800;
}

.pricing-carrier-status select {
  min-width: 112px;
  padding: 0 12px;
}

.pricing-carriers-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 1040px;
  width: 100%;
}

.pricing-carriers-table th {
  background: #f8fafc;
  border-bottom: 1px solid #e1e9f1;
  color: #52677d;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.03em;
  padding: 15px 24px;
  text-align: left;
  text-transform: uppercase;
}

.pricing-carriers-table td {
  border-bottom: 1px solid #e6edf4;
  color: #10263b;
  font-size: 14px;
  padding: 18px 24px;
  vertical-align: middle;
}

.pricing-carriers-table tbody tr:hover td {
  background: #fbfdff;
}

.pricing-carrier-identity,
.pricing-carrier-contact,
.pricing-carrier-actions {
  align-items: center;
  display: flex;
  gap: 14px;
}

.pricing-carrier-contact {
  align-items: flex-start;
  flex-direction: column;
  gap: 3px;
}

.pricing-carrier-logo {
  align-items: center;
  background: linear-gradient(135deg, #061d2b, #0f4255);
  border-radius: 5px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 54px;
  font-size: 19px;
  font-weight: 850;
  height: 54px;
  justify-content: center;
  width: 54px;
}

.pricing-carrier-logo.has-image {
  background: #fff;
  border: 1px solid #dfe8f0;
  overflow: hidden;
  padding: 5px;
}

.pricing-carrier-logo.has-image img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.pricing-carrier-identity strong,
.pricing-carrier-contact strong,
.pricing-carriers-table td > strong {
  color: #081d33;
  display: block;
  font-weight: 850;
}

.pricing-carrier-identity small,
.pricing-carrier-contact small,
.pricing-carriers-table td > small {
  color: #60758b;
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-top: 2px;
}

.pricing-carrier-actions {
  justify-content: flex-end;
  white-space: nowrap;
}

.pricing-carrier-actions .btn {
  min-height: 38px;
}

.pricing-carriers-footer {
  align-items: center;
  color: #52677d;
  display: flex;
  font-size: 14px;
  justify-content: space-between;
  padding: 20px 24px;
}

.pricing-carriers-pager {
  align-items: center;
  display: flex;
  gap: 8px;
}

.pricing-carriers-pager button,
.pricing-carriers-pager strong {
  align-items: center;
  background: #fff;
  border: 1px solid #dce6ef;
  border-radius: 999px;
  color: #70859b;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.pricing-carriers-pager button svg {
  height: 15px;
  width: 15px;
}

.pricing-carriers-pager button:first-child svg {
  transform: rotate(90deg);
}

.pricing-carriers-pager button:last-child svg {
  transform: rotate(-90deg);
}

.pricing-carriers-pager strong {
  background: #df2f91;
  border-color: #df2f91;
  color: #fff;
}

@media (max-width: 1180px) {
  .pricing-carriers-head,
  .pricing-catalogs-head {
    align-items: stretch;
    flex-direction: column;
  }

  .pricing-carriers-head-actions,
  .pricing-catalogs-head-actions {
    flex-wrap: wrap;
  }

  .pricing-catalog-overview-kpis,
  .pricing-carrier-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-catalog-layout {
    grid-template-columns: 1fr;
  }

  .pricing-catalog-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-catalog-export {
    justify-self: stretch;
  }

  .pricing-carriers-toolbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .pricing-catalog-overview-kpis,
  .pricing-catalog-toolbar,
  .pricing-catalog-table-footer {
    grid-template-columns: 1fr;
  }

  .pricing-catalogs-head-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Owner 360 */
.owner360-page .page-heading {
  display: none;
}

.owner360-page .content {
  gap: 0;
  padding-top: 0;
}

.owner360-shell {
  color: #102033;
  display: grid;
  gap: 18px;
  margin: -4px -4px 0;
}

.owner360-header {
  align-items: flex-end;
  background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
  border: 1px solid #e5ebf1;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(15, 35, 55, 0.06);
  display: flex;
  gap: 28px;
  justify-content: space-between;
  min-height: 168px;
  padding: 24px 28px;
}

.owner360-header-main {
  min-width: 0;
}

.owner360-breadcrumb {
  align-items: center;
  color: #708196;
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 8px;
  margin-bottom: 10px;
}

.owner360-breadcrumb a,
.owner360-card-link a,
.owner360-empty a {
  color: var(--ss-magenta-700);
  font-weight: 850;
  text-decoration: none;
}

.owner360-breadcrumb svg {
  height: 14px;
  width: 14px;
}

.owner360-page-title {
  color: #0d2032;
  font-size: 25px;
  font-weight: 950;
  margin: 0 0 8px;
}

.owner360-title-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.owner360-title-row h1 {
  color: #071827;
  font-size: 34px;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0;
}

.owner360-meta {
  align-items: center;
  color: #506176;
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 750;
  gap: 12px;
  margin-top: 14px;
}

.owner360-meta span {
  align-items: center;
  display: inline-flex;
  gap: 7px;
}

.owner360-meta span + span {
  border-left: 1px solid #dbe3ea;
  padding-left: 12px;
}

.owner360-meta svg,
.owner360-last-update svg,
.owner360-actions svg,
.owner360-tabs svg {
  height: 16px;
  width: 16px;
}

.owner360-header-side {
  align-items: flex-end;
  display: grid;
  gap: 16px;
  justify-items: end;
}

.owner360-last-update {
  align-items: center;
  color: #64758a;
  display: inline-flex;
  font-size: 13px;
  font-weight: 750;
  gap: 8px;
  white-space: nowrap;
}

.owner360-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.owner360-snapshot-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.owner360-snapshot-actions-only {
  justify-content: flex-end;
}

.owner360-snapshot-status {
  align-items: center;
  background: #fff;
  border: 1px solid #e5ebf1;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 35, 55, 0.04);
  color: #5f7187;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
}

.owner360-snapshot-status small {
  color: #6b7d91;
  font-size: 12px;
  font-weight: 750;
}

.owner360-snapshot-badge {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 950;
  gap: 6px;
  min-height: 24px;
  padding: 5px 9px;
}

.owner360-snapshot-badge svg {
  height: 14px;
  width: 14px;
}

.owner360-snapshot-fresh .owner360-snapshot-badge {
  background: #e8f8ef;
  color: #168247;
}

.owner360-snapshot-live .owner360-snapshot-badge {
  background: #eef6ff;
  color: #28649d;
}

.owner360-snapshot-stale .owner360-snapshot-badge {
  background: #fff5d8;
  color: #9d6500;
}

.owner360-snapshot-error .owner360-snapshot-badge {
  background: #ffe7eb;
  color: #c7233f;
}

.owner360-rebuild-button {
  margin: 0;
}

.owner360-actions .btn,
.owner360-card-link .btn,
.owner360-action-panel .btn,
.owner360-form .btn,
.owner360-rebuild-button .btn {
  border-radius: 8px;
  gap: 8px;
  min-height: 40px;
  white-space: nowrap;
}

.owner360-disabled-action {
  cursor: not-allowed;
  opacity: 0.62;
  pointer-events: auto;
}

.owner360-disabled-action small {
  font-size: 11px;
  font-weight: 750;
  margin-left: 2px;
}

.owner360-tabs {
  align-items: center;
  background: #fff;
  border: 1px solid #e5ebf1;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 35, 55, 0.04);
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 0 18px;
  scrollbar-width: thin;
}

.owner360-tabs a {
  align-items: center;
  border-bottom: 3px solid transparent;
  color: #31465c;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 900;
  gap: 8px;
  min-width: max-content;
  min-height: 56px;
  padding: 0 16px;
  text-decoration: none;
}

.owner360-tabs a.is-active {
  border-bottom-color: var(--ss-magenta-500);
  color: var(--ss-magenta-700);
}

.owner360-content {
  display: grid;
  gap: 18px;
}

.owner360-kpi-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.owner360-kpi-grid-eight {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.owner360-kpi,
.owner360-card {
  background: #fff;
  border: 1px solid #e3eaf1;
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(15, 35, 55, 0.055);
}

.owner360-kpi {
  align-items: center;
  display: flex;
  gap: 14px;
  min-height: 112px;
  min-width: 0;
  padding: 16px;
}

.owner360-kpi > div {
  min-width: 0;
}

.owner360-kpi-icon,
.owner360-module-chip > span,
.owner360-timeline > li > span {
  align-items: center;
  background: var(--owner360-soft, var(--ss-magenta-100));
  border-radius: 8px;
  color: var(--owner360-accent, var(--ss-magenta-500));
  display: inline-flex;
  flex: 0 0 auto;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.owner360-kpi small,
.owner360-kpi em {
  color: #64758a;
  display: block;
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
  line-height: 1.25;
}

.owner360-kpi strong {
  color: #071827;
  display: block;
  font-size: 24px;
  font-weight: 950;
  line-height: 1.1;
  margin: 4px 0;
  overflow-wrap: anywhere;
}

.owner360-grid {
  display: grid;
  gap: 16px;
}

.owner360-grid-4 {
  grid-template-columns: minmax(280px, 1.1fr) minmax(240px, 0.9fr) minmax(250px, 1fr) minmax(250px, 1fr);
}

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

.owner360-span-2 {
  grid-column: span 2;
}

.owner360-span-1 {
  grid-column: span 1;
}

.owner360-wide-card {
  grid-column: span 1;
}

.owner360-overview-bottom .owner360-wide-card {
  grid-column: span 1;
}

.owner360-card {
  min-width: 0;
  padding: 18px;
}

.owner360-card-head {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.owner360-card-head > div {
  min-width: 0;
}

.owner360-card-head h3 {
  color: #0d2032;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.2;
  margin: 0;
}

.owner360-card-head p {
  color: #64758a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  margin: 6px 0 0;
}

.owner360-health-body {
  align-items: center;
  display: grid;
  gap: 22px;
  grid-template-columns: 150px minmax(0, 1fr);
}

.owner360-score {
  align-items: center;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at center, #fff 0 56%, transparent 57%),
    conic-gradient(#18b765 0 var(--owner360-score, 80%), #e9f0f4 var(--owner360-score, 80%) 100%);
  border-radius: 999px;
  display: grid;
  justify-items: center;
  place-content: center;
}

.owner360-score strong {
  color: #18a957;
  font-size: 42px;
  font-weight: 950;
  line-height: 1;
}

.owner360-score span {
  color: #5f7186;
  font-size: 15px;
  font-weight: 850;
}

.owner360-health-signals {
  display: grid;
  gap: 11px;
}

.owner360-health-signals div,
.owner360-definition-list div,
.owner360-portal-summary div {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.owner360-health-signals span,
.owner360-definition-list dt,
.owner360-portal-summary span,
.owner360-mini-grid span {
  color: #607286;
  font-size: 13px;
  font-weight: 800;
}

.owner360-health-signals strong,
.owner360-definition-list dd,
.owner360-portal-summary strong,
.owner360-mini-grid strong {
  color: #102033;
  font-size: 13px;
  font-weight: 950;
  margin: 0;
  text-align: right;
}

.owner360-signal-success { color: #139557 !important; }
.owner360-signal-warning { color: #b06a00 !important; }
.owner360-signal-danger { color: #d23d57 !important; }
.owner360-signal-muted { color: #7a8796 !important; }

.owner360-definition-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.owner360-settings-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.owner360-settings-grid div {
  background: #f8fbfd;
  border: 1px solid #e7edf3;
  border-radius: 8px;
  display: grid;
  gap: 5px;
  min-height: 70px;
  padding: 12px;
}

.owner360-settings-grid dt {
  color: #607286;
  font-size: 12px;
  font-weight: 900;
}

.owner360-settings-grid dd {
  color: #102033;
  font-size: 14px;
  font-weight: 950;
  margin: 0;
}

.owner360-settings-grid dd small {
  color: #607286;
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-top: 2px;
}

.owner360-settings-grid .owner360-settings-note {
  grid-column: 1 / -1;
  min-height: 58px;
}

.owner360-billing-preview-card {
  align-self: start;
}

.owner360-billing-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.owner360-billing-lines {
  border: 1px solid #e7edf3;
  border-radius: 8px;
  display: grid;
  margin-top: 14px;
  overflow: hidden;
}

.owner360-billing-lines > div {
  align-items: center;
  background: #fff;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 11px 12px;
}

.owner360-billing-lines > div + div {
  border-top: 1px solid #e7edf3;
}

.owner360-billing-lines span {
  color: #607286;
  font-size: 13px;
  font-weight: 850;
}

.owner360-billing-lines strong {
  color: #102033;
  font-size: 14px;
  font-weight: 950;
  text-align: right;
}

.owner360-billing-lines .is-discount strong {
  color: #139557;
}

.owner360-billing-total {
  background: #f8fbfd !important;
}

.owner360-billing-lines-table {
  margin-top: 14px;
}

.owner360-billing-lines-table .owner360-table tfoot th {
  background: #f8fbfd;
  color: #102033;
  font-weight: 950;
}

.owner360-billing-lines-table .is-discount strong {
  color: #139557;
}

.owner360-compact-notice {
  margin: 0 0 14px;
}

.owner360-cp-settings-form {
  display: grid;
  gap: 14px;
}

.owner360-toggle-field {
  align-items: center;
  background: #f8fbfd;
  border: 1px solid #e7edf3;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  padding: 12px;
}

.owner360-toggle-field input {
  accent-color: #d346c8;
  height: 18px;
  width: 18px;
}

.owner360-toggle-field strong,
.owner360-cp-settings-form-grid label > span {
  color: #102033;
  display: block;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .02em;
}

.owner360-toggle-field small {
  color: #607286;
  display: block;
  font-size: 12px;
  font-weight: 750;
  margin-top: 2px;
}

.owner360-cp-settings-form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.owner360-cp-settings-form-grid label {
  display: grid;
  gap: 6px;
}

.owner360-cp-settings-form-grid input,
.owner360-cp-settings-form-grid select,
.owner360-cp-settings-form-grid textarea {
  background: #fff;
  border: 1px solid #d7e2ec;
  border-radius: 8px;
  color: #102033;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  min-height: 42px;
  padding: 10px 12px;
  width: 100%;
}

.owner360-cp-settings-form-grid textarea {
  min-height: 96px;
  resize: vertical;
}

.owner360-cp-settings-form-grid input:focus,
.owner360-cp-settings-form-grid select:focus,
.owner360-cp-settings-form-grid textarea:focus {
  border-color: #d346c8;
  box-shadow: 0 0 0 3px rgba(211, 70, 200, .13);
  outline: 0;
}

.owner360-cp-settings-note-field {
  grid-column: 1 / -1;
}

.owner360-mini-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.owner360-mini-grid div {
  border: 1px solid #e7edf3;
  border-radius: 8px;
  padding: 14px;
}

.owner360-mini-grid strong {
  display: block;
  font-size: 21px;
  margin-top: 7px;
  text-align: left;
}

.owner360-card-link {
  align-items: center;
  display: flex;
  margin-top: 16px;
}

.owner360-pickpack-agreement-card {
  padding: 16px;
}

.owner360-priority-putaway-card {
  padding: 16px;
}

.owner360-priority-putaway-form {
  align-items: end;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(300px, 1.2fr) minmax(240px, 0.8fr) minmax(160px, 0.5fr) auto;
}

.owner360-priority-putaway-form > label:not(.owner360-checkbox-card) {
  color: var(--text-primary);
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
}

.owner360-priority-putaway-form label small {
  color: var(--text-secondary);
  font-weight: 650;
  line-height: 1.35;
}

.owner360-checkbox-card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 74px;
  padding: 14px;
}

.owner360-checkbox-card input {
  accent-color: var(--ss-pink);
  height: 16px;
  width: 16px;
}

.owner360-checkbox-card span {
  display: grid;
  gap: 3px;
}

.owner360-checkbox-card strong {
  color: var(--text-primary);
}

.owner360-checkbox-card small {
  color: var(--text-secondary);
}

.owner360-priority-putaway-summary {
  background: #f8fbfd;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  display: grid;
  gap: 5px;
  min-height: 74px;
  padding: 12px 14px;
}

.owner360-priority-putaway-summary span {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
}

.owner360-priority-putaway-summary strong {
  color: var(--text-primary);
  font-size: 18px;
}

@media (max-width: 1180px) {
  .owner360-priority-putaway-form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .inbound-priority-panel {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .inbound-priority-panel form {
    justify-content: flex-start;
  }

  .owner360-priority-putaway-form {
    grid-template-columns: 1fr;
  }
}

.owner360-pickpack-agreement-form {
  display: grid;
  gap: 10px;
}

.owner360-pickpack-agreement-grid {
  align-items: end;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.4fr) auto;
}

.owner360-pickpack-agreement-grid label {
  color: var(--text-primary);
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
}

.owner360-pickpack-agreement-grid label small {
  color: var(--text-secondary);
  font-weight: 650;
  line-height: 1.35;
}

.owner360-money-input {
  align-items: center;
  display: flex;
  position: relative;
}

.owner360-money-input input {
  background: #fff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font: inherit;
  min-height: 42px;
  padding: 10px 44px 10px 12px;
  width: 100%;
}

.owner360-money-input input:focus {
  border-color: rgba(217, 87, 204, 0.5);
  box-shadow: 0 0 0 3px rgba(217, 87, 204, 0.12);
  outline: 0;
}

.owner360-money-input em {
  color: var(--text-secondary);
  font-style: normal;
  font-weight: 800;
  pointer-events: none;
  position: absolute;
  right: 12px;
}

.owner360-pickpack-agreement-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.owner360-pickpack-agreement-summary div {
  background: #f8fbfd;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  display: grid;
  gap: 5px;
  min-height: 68px;
  padding: 10px 12px;
}

.owner360-pickpack-agreement-summary span {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
}

.owner360-pickpack-agreement-summary strong {
  color: var(--text-primary);
  font-size: 17px;
  line-height: 1.15;
}

.owner360-pickpack-agreement-grid > .owner360-card-link {
  justify-self: end;
  margin-top: 0;
}

.owner360-portal-summary {
  display: grid;
  gap: 12px;
  padding-right: 88px;
}

.owner360-portal-orb {
  align-items: center;
  background: radial-gradient(circle, #ffd9f6 0%, #ffeaf9 70%);
  border-radius: 999px;
  color: var(--ss-magenta-700);
  display: flex;
  height: 86px;
  justify-content: center;
  position: absolute;
  right: 22px;
  top: 72px;
  width: 86px;
}

.owner360-portal-card {
  position: relative;
}

.owner360-table-wrap {
  overflow-x: auto;
}

.owner360-table {
  border-collapse: collapse;
  line-height: 1.35;
  min-width: 100%;
  width: 100%;
}

.owner360-table th,
.owner360-table td {
  border-bottom: 1px solid #e8eef3;
  padding: 12px 10px;
  text-align: left;
  vertical-align: middle;
}

.owner360-table .btn {
  white-space: nowrap;
}

.owner360-table th {
  background: #f8fafc;
  color: #516276;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.owner360-table td {
  color: #203349;
  font-size: 13px;
  font-weight: 700;
}

.owner360-table td strong {
  color: #071827;
  font-weight: 950;
}

.owner360-empty {
  align-items: center;
  border: 1px dashed #dbe4ec;
  border-radius: 8px;
  color: #64758a;
  display: grid;
  gap: 8px;
  justify-items: center;
  min-height: 132px;
  padding: 22px;
  text-align: center;
}

.owner360-empty > span {
  align-items: center;
  background: #f6f8fb;
  border-radius: 8px;
  color: #6d7d8f;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.owner360-empty strong {
  color: #14283d;
  font-size: 15px;
  font-weight: 950;
}

.owner360-empty p {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
  max-width: 420px;
}

.owner360-module-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.owner360-module-grid-wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.owner360-module-chip {
  align-items: center;
  border: 1px solid #e6edf3;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 48px minmax(0, 1fr) 70px;
  min-height: 92px;
  padding: 12px;
}

.owner360-module-chip strong,
.owner360-module-chip p,
.owner360-module-chip small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner360-module-chip strong {
  color: #172b40;
  font-size: 13px;
  font-weight: 950;
}

.owner360-module-chip p {
  color: #293d53;
  font-size: 13px;
  font-weight: 850;
  margin: 3px 0;
}

.owner360-module-chip small {
  color: #728195;
  font-size: 12px;
  font-weight: 700;
}

.owner360-spark {
  align-items: end;
  display: flex;
  gap: 3px;
  height: 34px;
}

.owner360-spark i {
  background: var(--owner360-accent, var(--ss-magenta-500));
  border-radius: 3px 3px 0 0;
  display: block;
  flex: 1;
  opacity: 0.8;
}

.owner360-spark i:nth-child(1) { height: 22%; }
.owner360-spark i:nth-child(2) { height: 38%; }
.owner360-spark i:nth-child(3) { height: 62%; }
.owner360-spark i:nth-child(4) { height: 45%; }
.owner360-spark i:nth-child(5) { height: 76%; }
.owner360-spark i:nth-child(6) { height: 55%; }
.owner360-spark i:nth-child(7) { height: 88%; }
.owner360-spark i:nth-child(8) { height: 70%; }

.owner360-timeline {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.owner360-timeline li {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
}

.owner360-timeline > li > span {
  height: 42px;
  width: 42px;
}

.owner360-timeline strong,
.owner360-timeline p {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner360-timeline strong {
  color: #172b40;
  font-size: 13px;
  font-weight: 950;
}

.owner360-timeline p,
.owner360-timeline time {
  color: #708196;
  font-size: 12px;
  font-weight: 750;
  margin: 2px 0 0;
}

.owner360-location-map {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(160px, 1fr) minmax(130px, 0.7fr);
}

.owner360-map-box {
  align-items: center;
  aspect-ratio: 1.45;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.34) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(180deg, #7bd996 0%, #62c67d 100%);
  border: 1px solid #83c997;
  border-radius: 8px;
  box-shadow: inset 0 0 0 8px rgba(255,255,255,0.24);
  color: #073b25;
  display: flex;
  font-weight: 950;
  justify-content: center;
  min-height: 170px;
}

.owner360-map-legend {
  display: grid;
  gap: 12px;
  align-content: center;
}

.owner360-map-legend div {
  align-items: center;
  display: grid;
  gap: 7px;
  grid-template-columns: 12px minmax(0, 1fr);
}

.owner360-map-legend i {
  background: #5cc97b;
  border-radius: 3px;
  height: 12px;
  width: 12px;
}

.owner360-map-legend strong {
  color: #172b40;
  font-size: 13px;
  font-weight: 950;
}

.owner360-map-legend span {
  color: #708196;
  font-size: 12px;
  font-weight: 750;
  grid-column: 2;
}

.owner360-progress {
  background: #edf2f6;
  border-radius: 999px;
  display: block;
  height: 8px;
  min-width: 110px;
  overflow: hidden;
}

.owner360-progress i {
  background: linear-gradient(90deg, var(--ss-magenta-700), var(--ss-magenta-500));
  display: block;
  height: 100%;
}

.owner360-progress-labeled {
  align-items: center;
  background: linear-gradient(#edf2f6, #edf2f6) top left / 100% 8px no-repeat;
  display: grid;
  gap: 7px;
  height: auto;
  min-width: 124px;
  overflow: visible;
}

.owner360-progress-labeled i {
  border-radius: 999px;
  height: 8px;
}

.owner360-progress-labeled em {
  color: #627489;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.2;
}

.owner360-mini-table th,
.owner360-mini-table td {
  padding: 10px 8px;
}

.owner360-board {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(128px, 1fr));
  overflow-x: auto;
  padding-bottom: 2px;
}

.owner360-board-column {
  background: #f8fafc;
  border: 1px solid #e5ebf1;
  border-radius: 8px;
  display: grid;
  gap: 9px;
  min-width: 128px;
  padding: 10px;
}

.owner360-board-column header {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.owner360-board-column header strong {
  color: #14283d;
  font-size: 12px;
  font-weight: 950;
}

.owner360-board-column header span,
.owner360-board-column > em {
  color: #718196;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.owner360-board-card {
  background: #fff;
  border: 1px solid #e7edf3;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(15, 35, 55, 0.045);
  display: grid;
  gap: 4px;
  padding: 10px;
}

.owner360-board-card strong,
.owner360-board-card span,
.owner360-board-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner360-board-card strong {
  color: #102033;
  font-size: 12px;
  font-weight: 950;
}

.owner360-board-card span,
.owner360-board-card small {
  color: #68798d;
  font-size: 11px;
  font-weight: 750;
}

.owner360-schedule {
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  border: 1px solid #e7edf3;
  border-radius: 8px;
  min-height: 292px;
  overflow: hidden;
  padding: 12px;
  position: relative;
}

.owner360-schedule-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 46px minmax(0, 1fr);
  min-height: 42px;
}

.owner360-schedule-row span {
  color: #718196;
  font-size: 12px;
  font-weight: 800;
}

.owner360-schedule-row i {
  border-top: 1px solid #e9eef4;
  display: block;
  height: 1px;
}

.owner360-schedule-items {
  bottom: 16px;
  left: 68px;
  position: absolute;
  right: 12px;
  top: 16px;
}

.owner360-schedule-items article {
  background: #f3f7ff;
  border: 1px solid #dbe8ff;
  border-left: 4px solid #2787f5;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(39, 135, 245, 0.08);
  left: 0;
  min-height: 50px;
  padding: 9px 10px;
  position: absolute;
  right: 0;
}

.owner360-schedule-items strong,
.owner360-schedule-items span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner360-schedule-items strong {
  color: #102033;
  font-size: 12px;
  font-weight: 950;
}

.owner360-schedule-items span {
  color: #607286;
  font-size: 11px;
  font-weight: 800;
  margin-top: 3px;
}

.owner360-capacity-grid,
.owner360-picker-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.owner360-capacity-grid div,
.owner360-picker-summary div {
  background: #fbfdff;
  border: 1px solid #e7edf3;
  border-radius: 8px;
  padding: 12px;
}

.owner360-capacity-grid span,
.owner360-capacity-grid small,
.owner360-picker-summary span {
  color: #66778b;
  display: block;
  font-size: 12px;
  font-weight: 800;
}

.owner360-capacity-grid strong,
.owner360-picker-summary strong {
  color: #0f2338;
  display: block;
  font-size: 23px;
  font-weight: 950;
  line-height: 1.1;
  margin: 6px 0 3px;
}

.owner360-issue-list {
  display: grid;
  gap: 10px;
}

.owner360-issue {
  align-items: center;
  border: 1px solid #e7edf3;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  padding: 10px;
}

.owner360-issue > span {
  align-items: center;
  background: var(--owner360-issue-soft, #f6f8fb);
  border-radius: 8px;
  color: var(--owner360-issue-color, #6d7d8f);
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.owner360-issue strong,
.owner360-issue small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner360-issue strong {
  color: #172b40;
  font-size: 13px;
  font-weight: 950;
}

.owner360-issue small,
.owner360-issue em {
  color: #708196;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.owner360-issue-warning {
  --owner360-issue-color: #f2a51f;
  --owner360-issue-soft: #fff5dc;
}

.owner360-issue-danger {
  --owner360-issue-color: #ef4b6b;
  --owner360-issue-soft: #ffe9ef;
}

.owner360-issue-info {
  --owner360-issue-color: #2787f5;
  --owner360-issue-soft: #eaf3ff;
}

.owner360-issue-success {
  --owner360-issue-color: #18a957;
  --owner360-issue-soft: #e8f8ef;
}

.owner360-compact-timeline {
  gap: 10px;
}

.owner360-compact-timeline li {
  border-bottom: 1px solid #eef3f7;
  padding-bottom: 10px;
}

.owner360-status-list {
  display: grid;
  gap: 9px;
}

.owner360-status-row {
  align-items: center;
  border-bottom: 1px solid #eef3f7;
  display: grid;
  gap: 10px;
  grid-template-columns: 12px minmax(0, 1fr) 52px 74px;
  padding: 8px 0;
}

.owner360-status-dot {
  background: var(--owner360-accent, var(--ss-magenta-500));
  border-radius: 999px;
  box-shadow: 0 0 0 4px var(--owner360-soft, var(--ss-magenta-100));
  display: block;
  height: 8px;
  width: 8px;
}

.owner360-status-row strong {
  color: #172b40;
  font-size: 13px;
  font-weight: 950;
}

.owner360-status-row em,
.owner360-status-row small {
  color: #64758a;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  text-align: right;
}

.owner360-chart-card {
  min-height: 320px;
}

.owner360-bars {
  align-items: end;
  border-bottom: 1px solid #dfe7ee;
  display: flex;
  gap: 8px;
  height: 174px;
  padding: 8px 4px 22px;
}

.owner360-bars span {
  align-items: center;
  display: grid;
  flex: 1;
  gap: 6px;
  height: 100%;
}

.owner360-bars i {
  align-self: end;
  background: linear-gradient(180deg, #2787f5 0%, #d83bc1 100%);
  border-radius: 5px 5px 0 0;
  display: block;
  min-height: 6px;
  width: 100%;
}

.owner360-bars em {
  color: #718196;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  text-align: center;
}

.owner360-chart-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.owner360-chart-summary div {
  background: #fbfdff;
  border: 1px solid #e7edf3;
  border-radius: 8px;
  padding: 10px;
}

.owner360-chart-summary strong,
.owner360-chart-summary span {
  display: block;
}

.owner360-chart-summary strong {
  color: #102033;
  font-size: 20px;
  font-weight: 950;
}

.owner360-chart-summary span {
  color: #708196;
  font-size: 12px;
  font-weight: 800;
  margin-top: 2px;
}

.owner360-gauge-card {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: 140px minmax(0, 1fr);
}

.owner360-gauge {
  align-items: center;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at center, #fff 0 57%, transparent 58%),
    conic-gradient(#18a957 0 var(--owner360-gauge, 0%), #f2a51f var(--owner360-gauge, 0%) 78%, #ef4b6b 78% 100%);
  border-radius: 999px;
  display: grid;
  justify-items: center;
  place-content: center;
}

.owner360-gauge-empty {
  background:
    radial-gradient(circle at center, #fff 0 57%, transparent 58%),
    conic-gradient(#edf2f6 0 100%);
}

.owner360-gauge strong {
  color: #0f2338;
  font-size: 28px;
  font-weight: 950;
  line-height: 1;
}

.owner360-gauge span {
  color: #64758a;
  font-size: 12px;
  font-weight: 850;
  margin-top: 6px;
  max-width: 104px;
  text-align: center;
}

.owner360-capacity-lines {
  display: grid;
  gap: 10px;
}

.owner360-capacity-lines div {
  align-items: center;
  border-bottom: 1px solid #eef3f7;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding-bottom: 8px;
}

.owner360-capacity-lines span {
  color: #607286;
  font-size: 13px;
  font-weight: 850;
}

.owner360-capacity-lines strong {
  color: #172b40;
  font-size: 13px;
  font-weight: 950;
}

.owner360-route-list,
.owner360-document-list,
.owner360-message-list,
.owner360-category-list,
.owner360-health-bars,
.owner360-recommendation-strip {
  display: grid;
  gap: 10px;
}

.owner360-route-list article,
.owner360-document-list article,
.owner360-message-list article,
.owner360-recommendation-card {
  border: 1px solid #e7edf3;
  border-radius: 8px;
  background: #fff;
}

.owner360-route-list article {
  display: grid;
  gap: 5px;
  padding: 12px;
}

.owner360-route-rank {
  align-self: start;
  background: #ffe8fb;
  border-radius: 999px;
  color: var(--ss-magenta-700);
  display: inline-flex;
  font-size: 11px;
  font-weight: 950;
  padding: 4px 9px;
  width: fit-content;
}

.owner360-route-list strong,
.owner360-route-list p {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner360-route-list strong {
  color: #102033;
  font-size: 14px;
  font-weight: 950;
}

.owner360-route-list p {
  color: #607286;
  font-size: 12px;
  font-weight: 800;
  margin: 0;
}

.owner360-route-list div {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto auto;
  margin-top: 4px;
}

.owner360-route-list div span {
  color: #102033;
  font-size: 16px;
  font-weight: 950;
}

.owner360-route-list small,
.owner360-route-list em {
  color: #718196;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.owner360-margin-layout {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: 132px minmax(0, 1fr);
}

.owner360-gauge-pricing {
  background:
    radial-gradient(circle at center, #fff 0 57%, transparent 58%),
    conic-gradient(#d83bc1 0 var(--owner360-gauge, 0%), #e9eef4 var(--owner360-gauge, 0%) 100%);
}

.owner360-bars-compact {
  height: 104px;
  margin-top: 16px;
  padding-bottom: 18px;
}

.owner360-health-bars div,
.owner360-category-list div {
  background: #fbfdff;
  border: 1px solid #e7edf3;
  border-radius: 8px;
  display: grid;
  gap: 7px;
  padding: 12px;
}

.owner360-health-bars span,
.owner360-health-bars small,
.owner360-category-list span {
  color: #66778b;
  font-size: 12px;
  font-weight: 800;
}

.owner360-health-bars strong,
.owner360-category-list strong {
  color: #102033;
  font-size: 18px;
  font-weight: 950;
}

.owner360-document-list article,
.owner360-message-list article {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 38px minmax(0, 1fr) auto auto;
  padding: 11px;
}

.owner360-message-list article {
  grid-template-columns: 38px minmax(0, 1fr) auto;
}

.owner360-document-list article > span,
.owner360-message-list article > span {
  align-items: center;
  background: #ffe8fb;
  border-radius: 8px;
  color: var(--ss-magenta-700);
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.owner360-document-list strong,
.owner360-document-list small,
.owner360-message-list strong,
.owner360-message-list p {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner360-document-list strong,
.owner360-message-list strong {
  color: #172b40;
  font-size: 13px;
  font-weight: 950;
}

.owner360-document-list small,
.owner360-document-list time,
.owner360-message-list p,
.owner360-message-list time {
  color: #708196;
  font-size: 12px;
  font-weight: 800;
  margin: 2px 0 0;
}

.owner360-recommendation-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.owner360-recommendation-stack {
  grid-template-columns: 1fr;
}

.owner360-recommendation-card {
  display: grid;
  gap: 9px;
  padding: 12px;
}

.owner360-recommendation-card strong {
  color: #102033;
  font-size: 14px;
  font-weight: 950;
}

.owner360-recommendation-card p,
.owner360-recommendation-card small {
  color: #627489;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  margin: 0;
}

.owner360-donut-card {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: 126px minmax(0, 1fr);
}

.owner360-donut {
  align-items: center;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at center, #fff 0 56%, transparent 57%),
    conic-gradient(#2787f5 0 32%, #d83bc1 32% 58%, #f2a51f 58% 78%, #18a957 78% 100%);
  border-radius: 999px;
  display: grid;
  justify-items: center;
  place-content: center;
}

.owner360-donut strong {
  color: #102033;
  font-size: 26px;
  font-weight: 950;
  line-height: 1;
}

.owner360-donut span {
  color: #708196;
  font-size: 12px;
  font-weight: 850;
  margin-top: 6px;
}

.owner360-priority-badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 950;
  padding: 5px 9px;
}

.owner360-priority-urgent,
.owner360-priority-high {
  background: #ffe9ef;
  color: #d23d57;
}

.owner360-priority-normal,
.owner360-priority-medium {
  background: #fff5dc;
  color: #a26200;
}

.owner360-priority-low {
  background: #eaf3ff;
  color: #276fbd;
}

.owner360-ticket-table .btn {
  white-space: nowrap;
}

.owner360-risk-list,
.owner360-movement-list,
.owner360-planned-list {
  display: grid;
  gap: 10px;
}

.owner360-risk {
  align-items: center;
  border: 1px solid #e8eef3;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  padding: 12px;
}

.owner360-risk > span {
  align-items: center;
  background: #fff3f0;
  border-radius: 8px;
  color: #e3572f;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.owner360-risk strong,
.owner360-risk p {
  display: block;
  margin: 0;
}

.owner360-risk strong {
  color: #172b40;
  font-size: 13px;
  font-weight: 950;
}

.owner360-risk p,
.owner360-risk em {
  color: #708196;
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

.owner360-movement-list div {
  align-items: center;
  border-bottom: 1px solid #eef3f7;
  display: grid;
  gap: 10px;
  grid-template-columns: 28px 112px minmax(0, 1fr) auto;
  padding: 9px 0;
}

.owner360-movement-list span {
  color: #16a461;
}

.owner360-movement-list time,
.owner360-movement-list em {
  color: #708196;
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

.owner360-movement-list strong {
  color: #172b40;
  font-size: 13px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner360-action-panel {
  align-items: center;
  background: linear-gradient(135deg, #fff4fd 0%, #f8fbff 100%);
  border: 1px solid rgba(217, 87, 204, 0.25);
  border-radius: 8px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 18px;
}

.owner360-action-panel strong {
  color: #13283d;
  font-size: 16px;
  font-weight: 950;
}

.owner360-action-panel p {
  color: #65768a;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
  margin: 5px 0 0;
}

.owner360-action-center {
  margin: 18px 0;
}

.owner360-action-center-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.28fr);
}

.owner360-action-list {
  display: grid;
  gap: 12px;
}

.owner360-action-item {
  background: #fbfdff;
  border: 1px solid #e5edf4;
  border-left: 4px solid #d957cc;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(16, 34, 50, 0.04);
  display: grid;
  gap: 12px;
  padding: 14px;
}

.owner360-action-item.owner360-action-priority-critical {
  border-left-color: #e04358;
}

.owner360-action-item.owner360-action-priority-high {
  border-left-color: #d957cc;
}

.owner360-action-item.owner360-action-priority-medium {
  border-left-color: #f0a923;
}

.owner360-action-item.owner360-action-priority-low {
  border-left-color: #6c8398;
}

.owner360-action-topline {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.owner360-action-topline em {
  color: #6a7b90;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  margin-left: auto;
}

.owner360-action-priority,
.owner360-action-module {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 950;
  gap: 6px;
  min-height: 24px;
  padding: 5px 9px;
}

.owner360-action-priority-critical {
  background: #ffe7eb;
  color: #c7233f;
}

.owner360-action-priority-high {
  background: #fff0fb;
  color: #bf2baa;
}

.owner360-action-priority-medium {
  background: #fff5d8;
  color: #9d6500;
}

.owner360-action-priority-low {
  background: #edf4f8;
  color: #53677c;
}

.owner360-action-module {
  background: #eef6ff;
  color: #275d93;
}

.owner360-action-module.owner360-tone-warehouse {
  background: #f0efff;
  color: #5947c8;
}

.owner360-action-module.owner360-tone-inbound {
  background: #e8fbf8;
  color: #0f7d78;
}

.owner360-action-module.owner360-tone-pickpack {
  background: #fff4df;
  color: #a46300;
}

.owner360-action-module.owner360-tone-pricing {
  background: #fff0fb;
  color: #ba2aa6;
}

.owner360-action-module.owner360-tone-support {
  background: #fff0ee;
  color: #c84734;
}

.owner360-action-module.owner360-tone-portal {
  background: #eef5ff;
  color: #2863ba;
}

.owner360-action-module.owner360-tone-activity {
  background: #e7fbf4;
  color: #0d7c5a;
}

.owner360-action-module.owner360-tone-setup {
  background: #eef2f6;
  color: #516579;
}

.owner360-action-module.owner360-tone-general {
  background: #eef2f6;
  color: #34465a;
}

.owner360-action-copy {
  display: grid;
  gap: 10px;
}

.owner360-action-copy h4 {
  color: #102235;
  font-size: 16px;
  font-weight: 950;
  letter-spacing: 0;
  margin: 0;
}

.owner360-action-copy dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.owner360-action-copy dl div {
  display: grid;
  gap: 3px;
}

.owner360-action-copy dt {
  color: #748297;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.owner360-action-copy dd {
  color: #2c4056;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.42;
  margin: 0;
}

.owner360-action-item footer {
  align-items: center;
  border-top: 1px solid #e9eff5;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  padding-top: 12px;
}

.owner360-action-item footer small {
  color: #728196;
  font-size: 12px;
  font-weight: 800;
}

.owner360-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.owner360-action-summary {
  align-self: start;
  background: linear-gradient(135deg, #fff7fe 0%, #f8fbff 100%);
  border: 1px solid rgba(217, 87, 204, 0.22);
  border-radius: 8px;
  display: grid;
  gap: 13px;
  padding: 14px;
}

.owner360-action-summary > strong {
  color: #13283d;
  font-size: 14px;
  font-weight: 950;
}

.owner360-action-summary p {
  color: #65768a;
  font-size: 12px;
  font-weight: 780;
  margin: 0;
}

.owner360-action-counts,
.owner360-action-sources {
  display: grid;
  gap: 8px;
}

.owner360-action-counts span,
.owner360-action-sources span,
.owner360-action-more {
  align-items: center;
  background: #fff;
  border: 1px solid #e5edf4;
  border-radius: 8px;
  color: #40566d;
  display: flex;
  font-size: 12px;
  font-weight: 850;
  justify-content: space-between;
  padding: 8px 10px;
}

.owner360-action-counts b {
  color: #13283d;
}

.owner360-action-more {
  justify-content: center;
  min-height: 38px;
}

.owner360-planned-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.owner360-planned-list li {
  align-items: center;
  color: #263b52;
  display: flex;
  font-size: 13px;
  font-weight: 850;
  gap: 10px;
}

.owner360-planned-list svg {
  color: #18a957;
  height: 16px;
  width: 16px;
}

.owner360-portal-admin-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr);
}

.owner360-portal-admin-grid.is-compact {
  grid-template-columns: 1fr;
}

.owner360-portal-access-compact {
  align-self: start;
}

.owner360-form {
  align-content: start;
  background: #fbfdff;
  border: 1px solid #e6edf3;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.owner360-form label {
  display: grid;
  gap: 7px;
}

.owner360-form label span {
  color: #516276;
  font-size: 12px;
  font-weight: 900;
}

.owner360-form input,
.owner360-form select,
.owner360-form textarea {
  background: #fff;
  border: 1px solid #d9e2ea;
  border-radius: 8px;
  color: #172c40;
  font: inherit;
  min-height: 42px;
  padding: 0 12px;
}

.owner360-form textarea {
  line-height: 1.45;
  min-height: 96px;
  padding: 11px 12px;
  resize: vertical;
}

.owner360-form-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.owner360-form small {
  color: #69798b;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.owner360-edit-card {
  max-width: 1040px;
}

.owner360-edit-footer {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.owner-archive-panel {
  align-items: end;
  background: #fff7f7;
  border: 1px solid #ffd3d8;
  border-radius: 12px;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  margin-top: 18px;
  padding: 18px;
}

.owner-archive-panel h3 {
  margin: 0 0 4px;
}

.owner-archive-panel p,
.owner-archive-panel small {
  color: #6b7b8d;
  font-weight: 500;
  margin: 0;
}

.owner-archive-panel form {
  display: grid;
  gap: 10px;
}

.owner-archive-panel .owner-danger-action {
  justify-content: center;
}

@media (max-width: 860px) {
  .owner-archive-panel {
    grid-template-columns: 1fr;
  }
}

.owner360-action-stack,
.owner360-info-list,
.owner360-document-event-list,
.owner360-alert-list,
.owner360-user-action-list {
  display: grid;
  gap: 10px;
}

.owner360-action-stack .btn {
  justify-content: center;
  width: 100%;
}

.owner360-tasks-grid {
  align-items: start;
}

.owner360-task-side {
  display: grid;
  gap: 16px;
}

.owner360-task-list,
.owner360-note-list {
  display: grid;
  gap: 12px;
}

.owner360-task-card,
.owner360-note-list article {
  background: #fbfdff;
  border: 1px solid #e5edf4;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(16, 34, 50, 0.04);
}

.owner360-task-card {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px;
}

.owner360-task-topline,
.owner360-task-meta,
.owner360-task-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.owner360-task-main {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.owner360-task-main h4 {
  color: #102235;
  font-size: 16px;
  font-weight: 950;
  margin: 0;
}

.owner360-task-main p {
  color: #3b5066;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.45;
  margin: 0;
}

.owner360-task-meta span {
  align-items: center;
  color: #6a7b90;
  display: inline-flex;
  font-size: 12px;
  font-weight: 820;
  gap: 5px;
}

.owner360-task-meta svg {
  height: 14px;
  width: 14px;
}

.owner360-task-actions {
  align-content: start;
  justify-content: flex-end;
  max-width: 260px;
}

.owner360-status-badge,
.owner360-priority-badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 950;
  min-height: 24px;
  padding: 5px 9px;
}

.owner360-task-status-open {
  background: #eef5ff;
  color: #2863ba;
}

.owner360-task-status-in_progress {
  background: #fff0fb;
  color: #ba2aa6;
}

.owner360-task-status-waiting {
  background: #fff4df;
  color: #a46300;
}

.owner360-task-status-completed {
  background: #e8f8ee;
  color: #19824a;
}

.owner360-task-status-cancelled {
  background: #eef2f6;
  color: #516579;
}

.owner360-priority-critical {
  background: #ffe7eb;
  color: #c7233f;
}

.owner360-priority-high {
  background: #fff0ee;
  color: #c84734;
}

.owner360-priority-medium {
  background: #eef5ff;
  color: #2863ba;
}

.owner360-priority-low {
  background: #edf8f1;
  color: #24734b;
}

.owner360-task-form-card {
  scroll-margin-top: 92px;
}

.owner360-note-form {
  margin-bottom: 12px;
}

.owner360-note-list article {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.owner360-note-list p {
  color: #2c4056;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.45;
  margin: 0;
  white-space: pre-wrap;
}

.owner360-note-list small {
  color: #748297;
  font-size: 12px;
  font-weight: 800;
}

.owner360-task-history {
  margin-top: 16px;
}

.owner360-setup-panel {
  margin-top: 16px;
}

.owner360-setup-panel-layout,
.owner360-setup-score {
  align-items: center;
  display: grid;
  gap: 18px;
}

.owner360-setup-panel-layout {
  grid-template-columns: minmax(320px, 1.15fr) minmax(280px, .85fr);
}

.owner360-setup-score {
  grid-template-columns: auto minmax(0, 1fr);
}

.owner360-setup-score strong,
.owner360-setup-score p {
  margin: 0;
}

.owner360-setup-score > div:last-child {
  display: grid;
  gap: 10px;
}

.owner360-setup-score > div:last-child > strong {
  color: #102235;
  font-size: 17px;
  font-weight: 950;
}

.owner360-setup-score p {
  color: #6a7b90;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.45;
}

.owner360-setup-score-large {
  align-items: center;
  min-height: 180px;
}

.owner360-setup-gauge {
  align-items: center;
  background:
    radial-gradient(circle at center, #fff 0 58%, transparent 59%),
    conic-gradient(var(--owner360-accent, var(--ss-magenta-500)) 0 var(--owner360-setup-score, 0%), #e9f0f4 var(--owner360-setup-score, 0%) 100%);
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  height: 132px;
  justify-content: center;
  width: 132px;
}

.owner360-setup-gauge strong {
  color: #102235;
  font-size: 34px;
  font-weight: 950;
  line-height: 1;
}

.owner360-setup-gauge span {
  color: #6a7b90;
  font-size: 13px;
  font-weight: 850;
}

.owner360-setup-issues,
.owner360-checklist,
.owner360-relation-grid {
  display: grid;
  gap: 10px;
}

.owner360-setup-issues > strong {
  color: #102235;
  font-size: 13px;
  font-weight: 950;
}

.owner360-setup-issues article,
.owner360-check-row,
.owner360-relation-grid article {
  background: #fbfdff;
  border: 1px solid #e5edf4;
  border-radius: 8px;
}

.owner360-setup-issues article {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 10px;
}

.owner360-setup-issues article > span,
.owner360-check-row > span {
  align-items: center;
  background: #eef2f6;
  border-radius: 999px;
  color: #667789;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.owner360-setup-issues strong,
.owner360-setup-issues small,
.owner360-check-row strong,
.owner360-check-row small,
.owner360-check-row p {
  display: block;
  margin: 0;
}

.owner360-setup-issues strong,
.owner360-check-row strong {
  color: #102235;
  font-size: 13px;
  font-weight: 950;
}

.owner360-setup-issues small,
.owner360-check-row small,
.owner360-check-row p {
  color: #6a7b90;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.4;
}

.owner360-setup-chips {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 16px;
}

.owner360-setup-chip {
  align-items: center;
  background: #fbfdff;
  border: 1px solid #e5edf4;
  border-radius: 8px;
  color: #102235;
  display: grid;
  gap: 4px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 58px;
  padding: 10px;
  text-decoration: none;
}

.owner360-setup-chip span {
  align-items: center;
  background: var(--owner360-soft, #eef2f6);
  border-radius: 999px;
  color: var(--owner360-accent, #667789);
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.owner360-setup-chip strong {
  font-size: 12px;
  font-weight: 950;
}

.owner360-setup-chip small {
  color: #6a7b90;
  font-size: 12px;
  font-weight: 900;
}

.owner360-setup-category-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 16px;
}

.owner360-setup-category-grid .owner360-card {
  min-height: 168px;
}

.owner360-setup-hero {
  align-items: stretch;
  margin-top: 16px;
}

.owner360-setup-table td strong,
.owner360-setup-table td small {
  display: block;
}

.owner360-setup-table td small {
  color: #6a7b90;
  font-size: 12px;
  font-weight: 760;
  margin-top: 4px;
}

.owner360-check-category {
  display: grid;
  gap: 10px;
}

.owner360-check-category + .owner360-check-category {
  border-top: 1px solid #edf2f6;
  padding-top: 14px;
}

.owner360-check-category h4 {
  color: #102235;
  font-size: 15px;
  font-weight: 950;
  margin: 0;
}

.owner360-check-row {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  padding: 12px;
}

.owner360-check-row em {
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  padding: 5px 9px;
  white-space: nowrap;
}

.owner360-check-pass {
  --owner360-check-color: #18a957;
  --owner360-check-soft: #e8f8ef;
}

.owner360-check-warning {
  --owner360-check-color: #d98b0f;
  --owner360-check-soft: #fff4df;
}

.owner360-check-fail {
  --owner360-check-color: #ef4b6b;
  --owner360-check-soft: #ffe9ef;
}

.owner360-check-na {
  --owner360-check-color: #6a7b90;
  --owner360-check-soft: #eef2f6;
}

.owner360-check-pass > span,
.owner360-check-warning > span,
.owner360-check-fail > span,
.owner360-check-na > span,
.owner360-check-pass em,
.owner360-check-warning em,
.owner360-check-fail em,
.owner360-check-na em {
  background: var(--owner360-check-soft);
  color: var(--owner360-check-color);
}

.owner360-relation-grid article {
  display: grid;
  gap: 5px;
  padding: 12px;
}

.owner360-relation-grid strong {
  color: #102235;
  font-size: 13px;
  font-weight: 950;
}

.owner360-relation-grid span {
  color: var(--owner360-check-color, #2c4056);
  font-size: 13px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.owner360-relation-grid small {
  color: #6a7b90;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.4;
}

.owner360-module-summary-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.owner360-permission-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.owner360-permission-tile {
  align-content: start;
  background: #fbfdff;
  border: 1px solid #e6edf3;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  min-height: 126px;
  padding: 14px;
}

.owner360-permission-tile > span {
  align-items: center;
  background: var(--owner360-soft);
  border-radius: 8px;
  color: var(--owner360-accent);
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.owner360-permission-tile strong {
  color: #172b40;
  font-size: 13px;
  font-weight: 950;
}

.owner360-permission-tile small {
  align-self: end;
  background: #eef3f7;
  border-radius: 999px;
  color: #66768a;
  display: inline-flex;
  font-size: 11px;
  font-weight: 950;
  justify-content: center;
  padding: 5px 8px;
}

.owner360-permission-tile small.is-enabled {
  background: #dcf8e9;
  color: #118a52;
}

.owner360-permission-tile em {
  color: #607286;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.owner360-login-chart {
  align-items: end;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(30, minmax(3px, 1fr));
  min-height: 178px;
  padding: 12px 6px 0;
}

.owner360-login-chart span {
  align-items: end;
  background: #f5f7fb;
  border-radius: 999px;
  display: flex;
  height: 160px;
  overflow: hidden;
}

.owner360-login-chart i {
  background: linear-gradient(180deg, #d83bc1, #2787f5);
  border-radius: 999px;
  display: block;
  min-height: 4px;
  width: 100%;
}

.owner360-info-list p,
.owner360-info-list span {
  color: #66768a;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
  margin: 0;
}

.owner360-info-list span {
  align-items: center;
  display: flex;
  gap: 8px;
}

.owner360-info-list svg {
  color: #18a957;
  height: 16px;
  width: 16px;
}

.owner360-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.owner360-filter-chips a {
  background: #f7f9fc;
  border: 1px solid #e5edf4;
  border-radius: 999px;
  color: #42566d;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
  text-decoration: none;
}

.owner360-filter-chips a.is-active,
.owner360-filter-chips a:hover {
  background: #fff0fb;
  border-color: rgba(217, 87, 204, 0.34);
  color: #c026a6;
}

.owner360-activity-feed {
  display: grid;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.owner360-activity-row {
  align-items: center;
  border-bottom: 1px solid #eef3f7;
  display: grid;
  gap: 12px;
  grid-template-columns: 118px 42px minmax(0, 1fr) auto;
  padding: 13px 0;
}

.owner360-activity-row time,
.owner360-activity-row small,
.owner360-document-event-list time,
.owner360-user-action-list time,
.owner360-alert-card time {
  color: #708196;
  font-size: 12px;
  font-weight: 800;
}

.owner360-activity-icon {
  align-items: center;
  background: var(--owner360-soft);
  border-radius: 10px;
  color: var(--owner360-accent);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.owner360-activity-row strong,
.owner360-document-event-list strong,
.owner360-user-action-list strong,
.owner360-alert-card strong {
  color: #172b40;
  font-size: 13px;
  font-weight: 950;
}

.owner360-activity-row p,
.owner360-document-event-list small,
.owner360-user-action-list small,
.owner360-alert-card p,
.owner360-alert-card small {
  color: #66768a;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
  margin: 2px 0 0;
}

.owner360-severity-badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 950;
  justify-content: center;
  padding: 5px 9px;
  white-space: nowrap;
}

.owner360-severity-info,
.owner360-severity-system {
  background: #eaf3ff;
  color: #276fbd;
}

.owner360-severity-warning {
  background: #fff5dc;
  color: #a26200;
}

.owner360-severity-critical {
  background: #ffe9ef;
  color: #d23d57;
}

.owner360-document-event-list article,
.owner360-user-action-list article {
  align-items: center;
  border-bottom: 1px solid #eef3f7;
  display: grid;
  gap: 12px;
  grid-template-columns: 38px minmax(0, 1fr) auto auto;
  padding: 11px 0;
}

.owner360-document-event-list article > span,
.owner360-user-action-list article > span,
.owner360-alert-card > span {
  align-items: center;
  background: #f7f0ff;
  border-radius: 8px;
  color: #8b5cf6;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.owner360-alert-card {
  align-items: center;
  border: 1px solid #e8eef3;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  padding: 12px;
}

.owner360-alert-card.owner360-severity-warning > span {
  background: #fff5dc;
  color: #f2a51f;
}

.owner360-alert-card.owner360-severity-critical > span {
  background: #ffe9ef;
  color: #ef4b6b;
}

.owner360-module-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.owner360-module-summary article {
  background: #fbfdff;
  border: 1px solid #e6edf3;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.owner360-module-summary span {
  align-items: center;
  background: var(--owner360-soft);
  border-radius: 8px;
  color: var(--owner360-accent);
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.owner360-module-summary strong {
  color: #172b40;
  font-size: 13px;
  font-weight: 950;
}

.owner360-module-summary em {
  color: #102033;
  font-size: 24px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
}

.owner360-module-summary small {
  color: #18a957;
  font-size: 12px;
  font-weight: 900;
}

.owner360-module-summary.owner360-module-summary-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.owner360-tone-overview,
.owner360-tone-pricing {
  --owner360-accent: #d83bc1;
  --owner360-soft: #ffe8fb;
}

.owner360-tone-warehouse {
  --owner360-accent: #8b5cf6;
  --owner360-soft: #f1ecff;
}

.owner360-tone-inbound {
  --owner360-accent: #2787f5;
  --owner360-soft: #eaf3ff;
}

.owner360-tone-pickpack {
  --owner360-accent: #f2a51f;
  --owner360-soft: #fff5dc;
}

.owner360-tone-support {
  --owner360-accent: #ef4b6b;
  --owner360-soft: #ffe9ef;
}

.owner360-tone-portal {
  --owner360-accent: #1ca7a8;
  --owner360-soft: #e6fbfa;
}

.owner360-tone-activity {
  --owner360-accent: #6557e8;
  --owner360-soft: #eeecff;
}

.owner360-tone-setup,
.owner360-tone-tasks,
.owner360-tone-documents,
.owner360-tone-general {
  --owner360-accent: #64748b;
  --owner360-soft: #eef2f6;
}

@media (max-width: 1500px) {
  .owner360-kpi-grid-eight {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .owner360-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .owner360-setup-category-grid,
  .owner360-setup-chips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .owner360-header {
    align-items: stretch;
    flex-direction: column;
  }

  .owner360-header-side {
    align-items: start;
    justify-items: start;
  }

  .owner360-actions {
    justify-content: flex-start;
  }

  .owner360-grid-3,
  .owner360-grid-4,
  .owner360-action-center-layout,
  .owner360-portal-admin-grid,
  .owner360-setup-panel-layout {
    grid-template-columns: 1fr;
  }

  .owner360-span-2,
  .owner360-span-1 {
    grid-column: auto;
  }

  .owner360-module-grid-wide,
  .owner360-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .owner360-recommendation-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .owner360-permission-grid,
  .owner360-settings-grid,
  .owner360-cp-settings-form-grid,
  .owner360-module-summary,
  .owner360-setup-category-grid,
  .owner360-setup-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .owner360-board {
    grid-template-columns: repeat(5, minmax(164px, 1fr));
  }

  .owner360-gauge-card {
    grid-template-columns: 128px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .owner360-shell {
    margin: 0;
  }

  .owner360-header,
  .owner360-card {
    padding: 16px;
  }

  .owner360-title-row h1 {
    font-size: 26px;
  }

  .owner360-meta span + span {
    border-left: 0;
    padding-left: 0;
  }

  .owner360-kpi-grid,
  .owner360-kpi-grid-eight,
  .owner360-module-grid,
  .owner360-module-grid-wide,
  .owner360-health-body,
  .owner360-location-map,
  .owner360-capacity-grid,
  .owner360-picker-summary,
  .owner360-gauge-card,
  .owner360-chart-summary,
  .owner360-margin-layout,
  .owner360-donut-card,
  .owner360-recommendation-strip,
  .owner360-permission-grid,
  .owner360-settings-grid,
  .owner360-cp-settings-form-grid,
  .owner360-module-summary,
  .owner360-setup-panel-layout,
  .owner360-setup-category-grid,
  .owner360-setup-chips,
  .owner360-setup-score {
    grid-template-columns: 1fr;
  }

  .owner360-timeline li,
  .owner360-movement-list div,
  .owner360-risk,
  .owner360-issue,
  .owner360-status-row,
  .owner360-activity-row,
  .owner360-alert-card {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .owner360-check-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .owner360-check-row em,
  .owner360-check-row .owner360-action-buttons {
    justify-self: start;
  }

  .owner360-timeline time,
  .owner360-risk em,
  .owner360-movement-list em,
  .owner360-issue em,
  .owner360-status-row em,
  .owner360-status-row small,
  .owner360-activity-row time,
  .owner360-severity-badge,
  .owner360-alert-card time {
    grid-column: 2;
    text-align: left;
  }

  .owner360-action-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .owner360-action-item footer {
    align-items: stretch;
    flex-direction: column;
  }

  .owner360-action-item footer .btn {
    justify-content: center;
    width: 100%;
  }

  .owner360-task-card {
    grid-template-columns: 1fr;
  }

  .owner360-task-actions {
    justify-content: flex-start;
    max-width: none;
  }

  .owner360-schedule-items {
    left: 58px;
  }

  .owner360-document-list article,
  .owner360-message-list article,
  .owner360-document-event-list article,
  .owner360-user-action-list article {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .owner360-document-list time,
  .owner360-document-list .btn,
  .owner360-message-list time,
  .owner360-document-event-list time,
  .owner360-document-event-list .btn,
  .owner360-user-action-list time,
  .owner360-user-action-list em {
    grid-column: 2;
  }
}

/* Returnflow v1 */
.returnflow-command-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  margin-bottom: 18px;
}

.returnflow-source-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.returnflow-source-card strong {
  color: var(--text-primary);
  font-size: 18px;
}

.returnflow-kpis {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.returnflow-kpis .kpi-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 124px;
  padding: 16px;
}

.returnflow-kpis .kpi-card::before {
  display: none;
}

.returnflow-kpis .kpi-icon {
  position: static;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
}

.returnflow-kpi-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.returnflow-kpis .kpi-label,
.returnflow-kpis .kpi-helper {
  margin: 0;
}

.returnflow-kpis .kpi-label {
  line-height: 1.2;
  letter-spacing: 0;
}

.returnflow-kpis .kpi-value {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  font-size: 26px;
  line-height: 1.05;
}

.returnflow-kpis .returnflow-index {
  margin-left: 0;
}

.returnflow-primary-action {
  min-height: 48px;
  min-width: 160px;
  font-size: 15px;
  box-shadow: 0 16px 34px rgba(217, 87, 204, 0.24);
}

.returnflow-package-dialog {
  width: min(1180px, calc(100vw - 34px));
  max-height: min(880px, calc(100vh - 34px));
  overflow: auto;
}

.returnflow-package-dialog::backdrop {
  background: rgba(3, 25, 31, 0.50);
  backdrop-filter: blur(9px);
}

.returnflow-dialog-content {
  padding: 26px;
}

.returnflow-dialog-header {
  padding-right: 52px;
  margin-bottom: 18px;
}

.returnflow-index {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.returnflow-index.is-up {
  color: var(--ss-danger);
}

.returnflow-index.is-down {
  color: var(--ss-success);
}

.returnflow-index.is-neutral,
.returnflow-index.is-muted {
  color: var(--text-secondary);
}

.returnflow-form {
  display: grid;
  gap: 18px;
}

.returnflow-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.returnflow-form label,
.returnflow-form-grid label {
  display: grid;
  gap: 7px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 400;
}

.returnflow-form label > span,
.returnflow-form-grid label > span {
  font-weight: 400;
}

.returnflow-form input,
.returnflow-form select,
.returnflow-form textarea {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-primary);
  font: inherit;
  font-weight: 400;
  padding: 10px 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.returnflow-form input:focus,
.returnflow-form select:focus,
.returnflow-form textarea:focus {
  border-color: var(--ss-magenta-500);
  box-shadow: 0 0 0 3px rgba(217, 87, 204, 0.16);
  outline: none;
}

.returnflow-form textarea {
  min-height: 96px;
  line-height: 1.45;
  resize: vertical;
}

.returnflow-check {
  grid-template-columns: auto minmax(0, max-content) minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  width: fit-content;
  max-width: 100%;
  color: var(--text-primary);
  font-weight: 400;
}

.returnflow-check input {
  width: auto;
  min-height: 0;
  accent-color: var(--ss-magenta-500);
}

.returnflow-check small {
  color: var(--text-secondary);
  font-weight: 500;
}

.returnflow-lines {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  background: #fbfdff;
}

.returnflow-lines-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.returnflow-lines-head h3 {
  margin: 0;
}

.returnflow-lines-head p {
  margin: 4px 0 0;
  color: var(--text-secondary);
}

.returnflow-product-search {
  position: relative;
  margin: 10px 0 14px;
}

.returnflow-product-search label {
  display: grid;
  gap: 7px;
}

.returnflow-product-results {
  position: absolute;
  z-index: 4;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: grid;
  gap: 8px;
  max-height: 310px;
  overflow: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-lg);
  padding: 8px;
}

.returnflow-product-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, auto) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-primary);
  cursor: pointer;
  padding: 10px 12px;
  text-align: left;
}

.returnflow-product-option:hover,
.returnflow-product-option:focus-visible {
  border-color: var(--ss-magenta-500);
  box-shadow: 0 0 0 3px rgba(217, 87, 204, 0.12);
  outline: none;
}

.returnflow-product-option span:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.returnflow-product-option strong,
.returnflow-product-option small,
.returnflow-product-option em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.returnflow-product-option strong {
  font-weight: 400;
}

.returnflow-product-option small,
.returnflow-product-option em {
  color: var(--text-secondary);
  font-style: normal;
}

.returnflow-product-add {
  justify-self: end;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--ss-magenta-700), var(--ss-magenta-500));
  color: #fff;
  font-weight: 500;
  padding: 8px 11px;
}

.returnflow-product-empty {
  margin: 0;
  color: var(--text-secondary);
  padding: 10px 12px;
}

.returnflow-line-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr 90px 1.4fr;
  gap: 10px;
  margin-top: 10px;
}

.returnflow-line-row.is-filled input {
  border-color: rgba(217, 87, 204, 0.46);
  background: var(--ss-magenta-50);
}

.returnflow-row-handled {
  opacity: .62;
}

.returnflow-row-handled:hover {
  opacity: .86;
}

.returnflow-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.returnflow-detail-grid article {
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: #fff;
  padding: 14px;
}

.returnflow-detail-grid article > span:first-child {
  display: block;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.returnflow-detail-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--text-primary);
}

.returnflow-detail-panels {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
  gap: 16px;
  margin-top: 18px;
}

.returnflow-panel {
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: #fff;
  padding: 16px;
}

.returnflow-note-text {
  color: var(--text-primary);
  line-height: 1.55;
}

.returnflow-stat-filter-card {
  margin-bottom: 18px;
}

.returnflow-stat-filter label small {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.35;
}

.returnflow-stat-filter label.is-disabled select {
  background: #f6f8fa;
  color: var(--text-secondary);
}

.returnflow-stat-kpis {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.returnflow-stat-kpis .kpi-value small {
  color: var(--text-secondary);
  display: block;
  flex-basis: 100%;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.returnflow-stat-month-row {
  cursor: pointer;
}

.returnflow-stat-monthly-card {
  overflow-x: auto;
}

.returnflow-stat-table {
  min-width: 1480px;
}

.returnflow-stat-month-row:hover td,
.returnflow-stat-month-row.is-open td {
  background: #fbf7ff;
}

.returnflow-stat-month-row.is-future td {
  color: var(--text-secondary);
}

.returnflow-stat-month-row.is-future .returnflow-month-toggle {
  color: var(--text-secondary);
}

.returnflow-month-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  gap: 8px;
  padding: 0;
  text-align: left;
}

.returnflow-month-toggle svg {
  color: var(--ss-magenta-600);
  transition: transform .16s ease;
}

.returnflow-stat-month-row.is-open .returnflow-month-toggle svg {
  transform: rotate(180deg);
}

.returnflow-stat-change {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 7px 9px;
}

.returnflow-stat-change.is-up {
  background: var(--ss-danger-bg);
  color: var(--ss-danger);
}

.returnflow-stat-change.is-down {
  background: #ddfaea;
  color: var(--ss-success);
}

.returnflow-stat-change.is-neutral,
.returnflow-stat-change.is-muted {
  background: #eef3f6;
  color: var(--text-secondary);
}

.returnflow-rate-badge {
  background: #fff0fb;
  border: 1px solid rgba(217, 87, 204, 0.25);
  border-radius: 999px;
  color: var(--ss-magenta-600);
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  margin-left: 6px;
  padding: 6px 8px;
  vertical-align: middle;
}

.returnflow-source-warning {
  margin: 0 18px 12px;
}

.returnflow-source-details {
  background: #f8fbfd;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  margin: 0 18px 14px;
  padding: 10px 12px;
}

.returnflow-source-details summary {
  color: var(--text-primary);
  cursor: pointer;
  font-weight: 800;
}

.returnflow-source-details p {
  margin: 8px 0 0;
}

.returnflow-day-panel {
  background: #f8fbfd;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px;
}

.returnflow-stat-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.returnflow-forecast-card {
  margin-top: 18px;
}

.returnflow-forecast-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.returnflow-forecast-grid article {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  display: grid;
  gap: 7px;
  padding: 14px;
}

.returnflow-forecast-grid span {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.returnflow-forecast-grid strong {
  color: var(--text-primary);
  font-size: 24px;
  line-height: 1.1;
}

.returnflow-forecast-grid small {
  color: var(--text-secondary);
  line-height: 1.35;
}

.owner360-returnflow-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.owner360-returnflow-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.owner360-returnflow-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.owner360-returnflow-form label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-weight: 700;
}

.owner360-returnflow-form small,
.owner360-card-text {
  color: var(--text-secondary);
  line-height: 1.45;
}

.owner360-returnflow-tab .owner360-card-head {
  align-items: flex-start;
}

.owner360-returnflow-agreement-form {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.owner360-returnflow-agreement-form .owner360-card-link {
  column-gap: 16px;
  row-gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.owner360-returnflow-agreement-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.owner360-returnflow-agreement-option {
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 14px;
}

.owner360-returnflow-agreement-option:has(input:checked) {
  border-color: rgba(217, 87, 204, 0.42);
  background: linear-gradient(135deg, #fff 0%, var(--ss-magenta-50) 100%);
  box-shadow: inset 0 0 0 1px rgba(217, 87, 204, 0.12);
}

.owner360-returnflow-agreement-option input {
  accent-color: var(--ss-magenta-500);
  margin-top: 3px;
}

.owner360-returnflow-agreement-option span {
  display: grid;
  gap: 5px;
}

.owner360-returnflow-agreement-option strong {
  color: var(--text-primary);
  font-size: 15px;
}

.owner360-returnflow-agreement-option small {
  color: var(--text-secondary);
  line-height: 1.4;
}

.returnflow-settings-card,
.repack-pricing-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fff;
}

.repack-pricing-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.repack-pricing-head h4 {
  margin: 0;
  color: var(--text-primary);
  font-size: 16px;
}

.repack-pricing-head p,
.repack-pricing-note {
  margin: 4px 0 0;
  color: var(--text-secondary);
  line-height: 1.45;
}

.repack-pricing-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.repack-pricing-grid label {
  display: grid;
  gap: 7px;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 800;
}

.repack-pricing-grid input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-primary);
  font: inherit;
}

.repack-pricing-grid input:focus,
.owner360-returnflow-repack-instructions textarea:focus,
.owner360-returnflow-file-upload input:focus {
  border-color: rgba(217, 87, 204, 0.5);
  box-shadow: 0 0 0 3px rgba(217, 87, 204, 0.12);
  outline: 0;
}

.repack-calculated-card {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  justify-self: start;
  min-width: min(100%, 270px);
  padding: 12px 14px;
  border: 1px solid rgba(217, 87, 204, 0.18);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--ss-magenta-50), #fff);
}

.repack-calculated-card > span,
.repack-overview-list span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: var(--ss-magenta-50);
  color: var(--os-accent-dark);
}

.repack-money-symbol {
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.repack-calculated-card small {
  display: block;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}

.repack-calculated-card strong {
  display: block;
  margin-top: 2px;
  color: var(--text-primary);
  font-size: 18px;
}

.owner360-returnflow-side {
  display: grid;
  gap: 14px;
  align-content: start;
}

.repack-overview-card .owner360-card-head {
  align-items: center;
}

.repack-overview-list {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fff;
}

.repack-overview-list > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 52px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
}

.repack-overview-list > div:last-child {
  border-bottom: 0;
}

.repack-overview-list strong {
  color: var(--text-primary);
  font-size: 14px;
}

.repack-overview-list .is-active span {
  background: var(--ss-success-bg);
  color: var(--ss-success-dark);
}

.repack-overview-list .is-muted span {
  background: var(--ss-cloud);
  color: var(--text-secondary);
}

.repack-overview-list .is-calculated {
  background: linear-gradient(135deg, var(--ss-magenta-50), #fff);
}

.owner360-returnflow-repack-instructions,
.owner360-returnflow-file-upload {
  display: grid;
  gap: 8px;
}

.owner360-returnflow-repack-instructions > span,
.owner360-returnflow-file-upload > span {
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.owner360-returnflow-repack-instructions textarea,
.owner360-returnflow-file-upload input {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font: inherit;
  padding: 12px;
}

.owner360-returnflow-repack-instructions textarea {
  line-height: 1.45;
  min-height: 150px;
  resize: vertical;
}

.owner360-returnflow-repack-instructions small,
.owner360-returnflow-file-upload small {
  color: var(--text-secondary);
  line-height: 1.4;
}

.owner360-returnflow-documents {
  background: #f8fbfd;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  display: grid;
  gap: 8px;
  padding: 12px;
}

.owner360-returnflow-documents > strong {
  color: var(--text-primary);
}

.owner360-returnflow-documents a {
  align-items: center;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 10px 12px;
  text-decoration: none;
}

.owner360-returnflow-documents span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner360-returnflow-documents small {
  color: var(--text-secondary);
}

.compact-row {
  gap: 6px;
}

.monthly-report-notice {
  margin-bottom: 18px;
}

.notice.info {
  border-color: #bfdbfe;
  color: var(--ss-info-dark);
  background: var(--ss-info-bg);
}

.monthly-report-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}

.monthly-report-filter {
  display: grid;
  grid-template-columns: minmax(150px, 0.2fr) minmax(170px, 0.2fr) minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.monthly-report-filter label {
  display: grid;
  gap: 6px;
}

.monthly-report-filter label span {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 850;
}

.monthly-report-filter select,
.monthly-report-filter input {
  min-height: 42px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  background: #fff;
}

.monthly-report-actions,
.monthly-report-row-actions,
.monthly-report-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.monthly-report-actions form,
.monthly-report-row-actions form,
.monthly-report-detail-actions form {
  margin: 0;
}

.monthly-report-actions .btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

.monthly-report-actions .btn small {
  font-size: 11px;
  font-weight: 800;
}

.monthly-report-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.monthly-report-table td small,
.monthly-report-lines-table td small {
  display: block;
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 12px;
}

.monthly-report-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.monthly-report-detail-head h2 {
  margin: 4px 0 6px;
  font-size: 24px;
}

.monthly-report-not-invoice {
  margin-bottom: 14px;
}

.monthly-report-tabs {
  margin-bottom: 18px;
}

.monthly-report-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  align-items: start;
}

.monthly-report-detail-main {
  display: grid;
  gap: 18px;
}

.monthly-report-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.monthly-report-summary-grid article {
  min-height: 76px;
  padding: 13px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fbfdfd;
}

.monthly-report-summary-grid span,
.monthly-report-status-panel dt {
  display: block;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 850;
}

.monthly-report-summary-grid strong {
  display: block;
  margin-top: 5px;
  color: var(--text-primary);
  font-size: 15px;
}

.monthly-report-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.monthly-report-status-panel {
  position: static;
  top: auto;
  display: grid;
  gap: 14px;
}

.monthly-report-status-panel h2 {
  margin: 0;
  font-size: 18px;
}

.monthly-report-status-panel dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.monthly-report-status-panel dd {
  margin: 3px 0 0;
  color: var(--text-primary);
  font-weight: 850;
}

.monthly-report-status-panel .btn {
  width: 100%;
  justify-content: center;
}

.monthly-report-warning-list {
  display: grid;
  gap: 12px;
}

.monthly-report-warning-item {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fbfdfd;
}

.monthly-report-warning-item div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.monthly-report-warning-item strong {
  color: var(--text-primary);
}

.monthly-report-warning-item small {
  color: var(--text-secondary);
  font-weight: 800;
}

.monthly-report-warning-item p {
  margin: 0;
  color: var(--text-secondary);
}

.monthly-closing-panel {
  margin-bottom: 18px;
}

.monthly-closing-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.monthly-closing-grid article {
  padding: 13px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fbfdfd;
}

.monthly-closing-grid span {
  display: block;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 850;
}

.monthly-closing-grid strong {
  display: block;
  margin-top: 5px;
  color: var(--text-primary);
  font-size: 18px;
}

.monthly-report-bulkbar,
.monthly-report-close-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.monthly-report-bulkbar input,
.monthly-report-close-form input {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}

.monthly-report-ready-reasons {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fff8fb;
}

.monthly-report-ready-reasons strong {
  color: var(--text-primary);
}

.monthly-report-ready-reasons span {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
}

.monthly-report-approval-note {
  display: grid;
  gap: 6px;
}

.monthly-report-approval-note span {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 850;
}

.monthly-report-approval-note textarea {
  width: 100%;
  min-height: 92px;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  resize: vertical;
}

@media (max-width: 980px) {
  .returnflow-command-bar,
  .returnflow-detail-panels {
    grid-template-columns: 1fr;
  }

  .monthly-report-toolbar,
  .monthly-report-filter,
  .monthly-report-detail-layout,
  .monthly-report-summary-grid,
  .monthly-closing-grid,
  .monthly-report-section-grid {
    grid-template-columns: 1fr;
  }

  .monthly-report-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .monthly-report-detail-head {
    flex-direction: column;
  }

  .returnflow-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .owner360-returnflow-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .returnflow-stat-kpis,
  .returnflow-stat-split,
  .returnflow-forecast-grid {
    grid-template-columns: 1fr;
  }

  .owner360-pickpack-agreement-grid {
    grid-template-columns: 1fr;
  }

  .owner360-pickpack-agreement-grid > .owner360-card-link {
    justify-self: start;
  }

  .returnflow-form-grid,
  .returnflow-detail-grid,
  .owner360-returnflow-agreement-grid,
  .repack-pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .returnflow-line-row {
    grid-template-columns: 1fr 1fr;
  }

  .returnflow-product-option {
    grid-template-columns: 1fr;
  }

  .returnflow-product-add {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .topbar {
    gap: 8px;
  }

  .global-search {
    display: none;
  }

  .os-global-search-trigger {
    width: 42px;
    flex: 0 0 42px;
    padding: 0;
    justify-content: center;
  }

  .os-global-search-trigger span,
  .os-global-search-trigger kbd {
    display: none;
  }

  .os-global-search-overlay {
    padding: 10px;
  }

  .os-global-search-modal {
    border-radius: 13px;
  }

  .os-global-search-row {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .os-global-search-badge,
  .os-global-search-row-main,
  .os-global-search-row em {
    grid-column: 1 / -1;
    max-width: none;
  }

  .os-global-search-enter-hint {
    display: none;
  }

  .os-global-search-favorite,
  .os-global-search-favorite-placeholder {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .topbar-actions {
    gap: 8px;
  }

  .returnflow-kpis {
    grid-template-columns: 1fr;
  }

  .owner360-returnflow-kpis {
    grid-template-columns: 1fr;
  }

  .monthly-report-kpis {
    grid-template-columns: 1fr;
  }

  .owner360-pickpack-agreement-summary {
    grid-template-columns: 1fr;
  }

  .returnflow-form-grid,
  .returnflow-detail-grid,
  .returnflow-line-row,
  .owner360-returnflow-agreement-grid,
  .repack-pricing-grid {
    grid-template-columns: 1fr;
  }

  .repack-pricing-head {
    flex-direction: column;
  }
}

/* Webshop monthly report overview polish */
.monthly-report-overview-page {
  gap: 20px;
}

.monthly-report-overview-page .monthly-report-toolbar {
  align-items: start;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 24px;
}

.monthly-report-overview-page .monthly-report-filter {
  align-items: end;
  grid-template-columns: minmax(170px, .85fr) minmax(170px, .85fr) minmax(250px, 1.1fr);
}

.monthly-report-overview-page .monthly-report-filter label span {
  font-weight: 400;
}

.monthly-report-overview-page .monthly-search-field {
  position: relative;
}

.monthly-report-overview-page .monthly-search-field input {
  padding-right: 42px;
}

.monthly-report-overview-page .monthly-search-field i {
  bottom: 12px;
  color: #74869a;
  pointer-events: none;
  position: absolute;
  right: 14px;
}

.monthly-report-overview-page .monthly-search-field i svg {
  height: 18px;
  width: 18px;
}

.monthly-report-overview-page .monthly-hidden-submit {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  width: 1px;
}

.monthly-report-overview-page .monthly-report-actions {
  align-items: flex-end;
  border-top: 0;
  display: grid;
  gap: 8px;
  grid-template-rows: 18px 42px auto;
  justify-content: flex-end;
  padding-top: 0;
}

.monthly-report-overview-page .monthly-report-actions::before {
  content: "";
  display: block;
}

.monthly-report-overview-page .monthly-report-action-buttons {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 0;
}

.monthly-report-overview-page .monthly-report-action-buttons .btn {
  min-height: 42px;
  padding-inline: 22px;
  white-space: nowrap;
}

.monthly-report-overview-page .monthly-btn-soft {
  background: #ffe4fb;
  border: 1px solid #f7c5ee;
  box-shadow: 0 10px 22px rgba(217, 87, 204, .12);
  color: var(--ss-magenta-700, #c234c0);
}

.monthly-report-overview-page .monthly-last-generated {
  color: #718296;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  justify-self: end;
  margin-top: 2px;
}

.monthly-report-overview-page .monthly-actions-menu > div,
.monthly-report-overview-page .monthly-row-menu > div {
  z-index: 60;
}

.monthly-report-overview-page .monthly-closing-panel {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.monthly-report-overview-page .monthly-closing-panel .card-header {
  margin-bottom: 12px;
  padding: 0 2px;
}

.monthly-report-overview-page .monthly-closing-grid {
  gap: 26px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.monthly-report-overview-page .monthly-closing-grid article {
  align-items: center;
  background: #fff;
  border: 1px solid #dfe8f0;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(9, 39, 54, .07);
  display: grid;
  gap: 18px;
  grid-template-columns: 64px minmax(0, 1fr);
  min-height: 116px;
  padding: 22px;
}

.monthly-report-overview-page .monthly-closing-grid i {
  align-items: center;
  background: linear-gradient(135deg, #cf34c8, #a91fb2);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  height: 64px;
  justify-content: center;
  width: 64px;
}

.monthly-report-overview-page .monthly-closing-grid i svg {
  height: 24px;
  width: 24px;
}

.monthly-report-overview-page .monthly-closing-grid span {
  color: #1d3345;
  display: block;
  font-size: 15px;
  font-weight: 400;
  margin: 0;
}

.monthly-report-overview-page .monthly-closing-grid strong {
  color: #071f2f;
  display: block;
  font-size: 34px;
  line-height: 1;
  margin-bottom: 6px;
}

.monthly-report-overview-page .monthly-closing-grid small {
  color: #74869a;
  display: block;
  font-size: 14px;
  font-weight: 400;
  margin-top: 6px;
}

.monthly-report-overview-page .monthly-kpi-card.is-amber i {
  background: linear-gradient(135deg, #ffbd3f, #f19a18);
}

.monthly-report-overview-page .monthly-kpi-card.is-green i {
  background: linear-gradient(135deg, #45c85d, #1d9b3d);
}

.monthly-report-overview-page .monthly-kpi-card.is-red i {
  background: linear-gradient(135deg, #ff5b77, #df284e);
}

.monthly-report-overview-page .monthly-kpi-card.is-blue i {
  background: linear-gradient(135deg, #5f89ff, #365fe2);
}

.monthly-report-overview-page .monthly-report-list-card {
  overflow: visible;
  padding: 0;
}

.monthly-report-overview-page .monthly-report-list-card .card-header {
  align-items: center;
  gap: 16px;
  padding: 22px 24px 14px;
}

.monthly-report-overview-page .monthly-report-list-card .card-header h2 {
  font-size: 22px;
  margin: 0 0 4px;
}

.monthly-report-overview-page .monthly-report-list-card .card-header p {
  color: #74869a;
  font-size: 14px;
  font-weight: 400;
  margin: 0;
}

.monthly-report-overview-page .monthly-report-bulkbar {
  background: #f8fafc;
  border: 1px solid #e6edf3;
  border-radius: 8px;
  margin-bottom: 14px;
  padding: 10px;
}

.monthly-report-overview-page .monthly-report-bulkbar input {
  min-width: 260px;
}

.monthly-report-overview-page .monthly-menu-note {
  border-top: 1px solid #edf2f6;
  display: grid;
  gap: 6px;
  margin-top: 4px;
  padding-top: 8px;
}

.monthly-report-overview-page .monthly-menu-note span {
  color: #66788d;
  font-size: 11px;
  font-weight: 900;
}

.monthly-report-overview-page .monthly-menu-note input {
  min-width: 210px;
}

.monthly-report-overview-page .monthly-report-table {
  min-width: 1420px;
}

.monthly-report-overview-page .monthly-report-table th {
  background: #f8fafc;
  color: #42576c;
  font-size: 12px;
  letter-spacing: 0;
  padding: 14px 18px;
  text-transform: uppercase;
}

.monthly-report-overview-page .monthly-report-table td {
  color: #153042;
  font-size: 14px;
  padding: 18px;
  text-align: center;
  vertical-align: middle;
}

.monthly-report-overview-page .monthly-report-table th:first-child,
.monthly-report-overview-page .monthly-report-table td:first-child {
  padding-right: 8px;
  text-align: center;
  width: 34px;
}

.monthly-report-overview-page .monthly-report-table th:nth-child(2),
.monthly-report-overview-page .monthly-report-table td:nth-child(2) {
  text-align: left;
  width: 210px;
}

.monthly-report-overview-page .monthly-report-table td:nth-child(2) strong {
  color: #071f2f;
  display: block;
  font-size: 15px;
  line-height: 1.15;
}

.monthly-report-overview-page .monthly-report-table td:nth-child(2) small {
  color: #73859a;
  display: block;
  font-size: 13px;
  font-weight: 400;
  margin-top: 3px;
}

.monthly-report-overview-page .monthly-owner-website {
  color: #73859a;
  display: inline-block;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
  margin-top: 3px;
  text-decoration: none;
}

.monthly-report-overview-page .monthly-owner-website:hover {
  color: #c13bb7;
  text-decoration: underline;
}

/* Webshop monthly report detail mockup polish */
.monthly-report-detail-no-default-heading .page-heading {
  display: none;
}

.monthly-report-detail-v2 {
  gap: 18px;
  padding-top: 24px;
}

.monthly-report-detail-v2 .monthly-report-detail-hero {
  align-items: flex-start;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: flex;
  justify-content: space-between;
  padding: 0 2px 4px;
}

.monthly-report-detail-v2 .monthly-report-detail-hero .eyebrow {
  color: #66788c;
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.monthly-report-detail-v2 .monthly-report-detail-hero .eyebrow:not(.monthly-detail-eyebrow-clean),
.monthly-report-detail-v2 .monthly-report-detail-hero h1:not(.monthly-detail-title-clean),
.monthly-report-detail-v2 > .monthly-report-not-invoice {
  display: none;
}

.monthly-report-detail-v2 .monthly-report-detail-hero h1 {
  color: #061f2f;
  font-size: 32px;
  line-height: 1.05;
  margin: 0 0 8px;
}

.monthly-report-detail-v2 .monthly-report-detail-hero > div:first-child > p:not(.monthly-detail-meta):not(.monthly-detail-subtitle) {
  display: none;
}

.monthly-report-detail-v2 .monthly-detail-meta,
.monthly-report-detail-v2 .monthly-detail-subtitle {
  color: #64758a;
  font-size: 14px;
  font-weight: 400;
  margin: 0;
}

.monthly-report-detail-v2 .monthly-detail-meta {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-bottom: 6px;
}

.monthly-report-detail-v2 .monthly-detail-meta strong {
  color: #40556a;
  font-weight: 800;
}

.monthly-report-detail-v2 .monthly-detail-meta svg {
  height: 15px;
  width: 15px;
}

.monthly-report-detail-v2 .monthly-report-detail-actions {
  align-items: flex-start;
  display: flex;
  justify-content: flex-end;
  max-width: none;
}

.monthly-report-detail-v2 .monthly-report-detail-actions > a,
.monthly-report-detail-v2 .monthly-report-detail-actions > form:not(:first-of-type) {
  display: none;
}

.monthly-report-detail-v2 .monthly-report-detail-tabs {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dce6ed;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(9, 31, 45, .08);
  display: flex;
  gap: 0;
  min-height: 58px;
  overflow-x: auto;
  padding: 0 18px;
}

.monthly-report-detail-v2 .monthly-report-detail-tabs a {
  align-items: center;
  border-bottom: 3px solid transparent;
  color: #40566b;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  height: 58px;
  justify-content: center;
  min-width: 112px;
  padding: 0 12px;
  text-decoration: none;
}

.monthly-report-detail-v2 .monthly-report-detail-tabs a.is-active {
  border-bottom-color: #ca2cc2;
  color: #c13bb7;
}

.monthly-report-detail-v2 .monthly-report-kpis-top {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.monthly-report-detail-v2 .monthly-report-detail-main > .monthly-report-kpis,
.monthly-report-detail-v2 .monthly-report-overview-grid {
  display: none;
}

.monthly-detail-kpi {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dde7ee;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(9, 31, 45, .08);
  display: grid;
  gap: 14px;
  grid-template-columns: 58px minmax(0, 1fr);
  min-height: 96px;
  padding: 18px;
}

.monthly-detail-kpi-icon {
  align-items: center;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  height: 52px;
  justify-content: center;
  width: 52px;
}

.monthly-detail-kpi-icon svg {
  height: 24px;
  width: 24px;
}

.monthly-detail-kpi small,
.monthly-detail-kpi em {
  color: #64758a;
  display: block;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
}

.monthly-detail-kpi strong {
  color: #071f2f;
  display: block;
  font-size: 24px;
  line-height: 1.1;
}

.monthly-detail-kpi.is-purple .monthly-detail-kpi-icon { background: linear-gradient(135deg, #b82eb8, #d94fd0); }
.monthly-detail-kpi.is-amber .monthly-detail-kpi-icon { background: linear-gradient(135deg, #f3a21b, #ffc453); }
.monthly-detail-kpi.is-green .monthly-detail-kpi-icon { background: linear-gradient(135deg, #21a851, #47d36c); }
.monthly-detail-kpi.is-blue .monthly-detail-kpi-icon { background: linear-gradient(135deg, #256de8, #5791ff); }
.monthly-detail-kpi.is-violet .monthly-detail-kpi-icon { background: linear-gradient(135deg, #6d35c8, #9560e9); }
.monthly-detail-kpi.is-teal .monthly-detail-kpi-icon { background: linear-gradient(135deg, #0ea5a8, #43d7cd); }
.monthly-detail-kpi.is-orange .monthly-detail-kpi-icon { background: linear-gradient(135deg, #f39a16, #ffbe3d); }

.monthly-report-detail-v2 .monthly-report-detail-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 420px;
}

.monthly-report-detail-v2 .monthly-report-detail-main {
  display: grid;
  gap: 18px;
}

.monthly-report-detail-v2 .monthly-report-detail-layout.is-overview-tab .monthly-report-detail-main {
  display: contents;
}

.monthly-report-detail-v2 .monthly-report-detail-layout.is-overview-tab .monthly-report-summary-card {
  grid-column: 1;
}

.monthly-report-detail-v2 .monthly-report-detail-layout.is-overview-tab .monthly-report-status-panel {
  grid-column: 2;
  grid-row: 1;
}

.monthly-report-detail-v2 .monthly-report-detail-layout.is-overview-tab .monthly-overview-lines-card {
  grid-column: 1 / -1;
}

.monthly-report-detail-v2 .card {
  border-radius: 8px;
}

.monthly-report-detail-v2 .card-header h2,
.monthly-report-detail-v2 .monthly-report-status-panel h2,
.monthly-report-detail-v2 .monthly-overview-lines-card h2 {
  color: #071f2f;
  font-size: 18px;
  margin: 0;
}

.monthly-report-detail-v2 .card-header p {
  color: #64758a;
  font-size: 13px;
  font-weight: 400;
  margin: 4px 0 0;
}

.monthly-report-detail-v2 .monthly-report-summary-card .card-header p {
  display: none;
}

.monthly-report-detail-v2 .monthly-report-summary-grid {
  border-top: 1px solid #e5edf2;
  display: block;
  margin-top: 14px;
}

.monthly-report-detail-v2 .monthly-report-summary-grid article {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #e5edf2;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  grid-template-columns: minmax(170px, 38%) minmax(0, 1fr);
  min-height: 30px;
  padding: 7px 0;
}

.monthly-report-detail-v2 .monthly-report-summary-grid article:last-child {
  border-bottom: 0;
}

.monthly-report-detail-v2 .monthly-report-summary-grid span,
.monthly-report-detail-v2 .monthly-report-status-panel dt {
  color: #526b80;
  font-size: 12px;
  font-weight: 800;
}

.monthly-report-detail-v2 .monthly-report-summary-grid strong,
.monthly-report-detail-v2 .monthly-report-status-panel dd {
  color: #173044;
  display: block;
  font-size: 13px;
  font-weight: 400;
  margin-top: 0;
}

.monthly-report-detail-v2 .monthly-report-status-panel dl dt:nth-of-type(2),
.monthly-report-detail-v2 .monthly-report-status-panel dl dd:nth-of-type(2),
.monthly-report-detail-v2 .monthly-report-status-panel dl dt:nth-of-type(3),
.monthly-report-detail-v2 .monthly-report-status-panel dl dd:nth-of-type(3),
.monthly-report-detail-v2 .monthly-report-status-panel dl dt:nth-of-type(4),
.monthly-report-detail-v2 .monthly-report-status-panel dl dd:nth-of-type(4),
.monthly-report-detail-v2 .monthly-report-status-panel dl dt:nth-of-type(5),
.monthly-report-detail-v2 .monthly-report-status-panel dl dd:nth-of-type(5),
.monthly-report-detail-v2 .monthly-report-status-panel dl dt:nth-of-type(6),
.monthly-report-detail-v2 .monthly-report-status-panel dl dd:nth-of-type(6),
.monthly-report-detail-v2 .monthly-report-status-panel dl dt:nth-of-type(10),
.monthly-report-detail-v2 .monthly-report-status-panel dl dd:nth-of-type(10) {
  display: none;
}

.monthly-report-detail-v2 .monthly-report-status-panel {
  display: grid;
  gap: 16px;
  position: static;
  top: auto;
}

.monthly-report-detail-v2 .monthly-report-status-panel dl {
  display: grid;
  gap: 0;
  grid-template-columns: minmax(120px, 1fr) minmax(0, auto);
}

.monthly-report-detail-v2 .monthly-report-status-panel dt,
.monthly-report-detail-v2 .monthly-report-status-panel dd {
  border-bottom: 1px solid #e5edf2;
  margin: 0;
  min-height: 34px;
  padding: 8px 0;
}

.monthly-report-detail-v2 .monthly-report-status-panel dd {
  align-items: center;
  display: flex;
  justify-content: flex-end;
  text-align: right;
}

.monthly-report-detail-v2 .monthly-report-status-panel .monthly-report-ready-reasons {
  display: none;
}

.monthly-report-detail-v2 .monthly-action-details > summary.btn,
.monthly-report-detail-v2 .monthly-report-status-panel > .btn {
  justify-content: center;
  min-height: 38px;
  width: 100%;
}

.monthly-report-detail-v2 .monthly-report-status-panel > a[href*="monthly-webshop.php"] {
  display: none;
}

.monthly-report-detail-v2 .monthly-report-status-panel .monthly-report-lock-action {
  display: none;
}

.monthly-report-detail-v2 .monthly-report-not-invoice-inline {
  align-items: center;
  background: #fff8e7;
  border: 1px solid #efd99c;
  border-radius: 6px;
  color: #7a560a;
  display: flex;
  font-size: 12px;
  font-weight: 400;
  gap: 8px;
  margin: 8px 0 10px;
  padding: 9px 12px;
}

.monthly-report-detail-v2 .monthly-report-not-invoice-inline svg {
  height: 15px;
  width: 15px;
}

.monthly-report-detail-v2 .monthly-report-lines-table th {
  background: #f5f8fa;
}

.monthly-report-detail-v2 .monthly-report-lines-table td,
.monthly-report-detail-v2 .monthly-report-lines-table th {
  font-size: 12px;
  padding: 9px 10px;
}

.monthly-report-detail-v2 .monthly-report-lines-table td strong {
  font-size: 13px;
}

.monthly-report-detail-v2 .monthly-report-lines-table .status-pill.status-success {
  background: #d9f8df;
  color: #159447;
}

.monthly-report-detail-v2 .monthly-overview-lines-foot {
  color: #64758a;
  font-size: 13px;
  font-weight: 400;
  margin: 14px 0 0;
}

@media (max-width: 1280px) {
  .monthly-report-detail-v2 .monthly-report-kpis-top {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .monthly-report-detail-v2 .monthly-report-detail-layout {
    grid-template-columns: 1fr;
  }

  .monthly-report-detail-v2 .monthly-report-status-panel {
    position: static;
  }

  .monthly-report-detail-v2 .monthly-report-detail-layout.is-overview-tab .monthly-report-summary-card,
  .monthly-report-detail-v2 .monthly-report-detail-layout.is-overview-tab .monthly-report-status-panel,
  .monthly-report-detail-v2 .monthly-report-detail-layout.is-overview-tab .monthly-overview-lines-card {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  .monthly-report-detail-v2 .monthly-report-kpis-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.monthly-report-overview-page .monthly-activity-stack {
  gap: 6px 16px;
  grid-template-columns: repeat(2, minmax(76px, 1fr));
  min-width: 210px;
}

.monthly-report-overview-page .monthly-document-badges {
  min-width: 92px;
}

.monthly-report-overview-page .monthly-ready-line {
  color: #73859a;
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-top: 6px;
  max-width: 180px;
}

.monthly-report-overview-page .monthly-report-row-actions {
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: center;
  min-width: 100px;
}

.monthly-report-overview-page .monthly-report-row-actions .btn-small {
  align-items: center;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  min-height: 38px;
  padding: 0;
  width: 38px;
}

.monthly-report-overview-page .monthly-report-row-actions .btn-small svg {
  height: 18px;
  width: 18px;
}

.monthly-report-overview-page .monthly-row-icon-btn {
  color: #163246;
}

.monthly-report-overview-page .monthly-row-menu > summary {
  min-width: 38px;
  padding-inline: 0;
}

.monthly-report-overview-page .status-pill {
  border-radius: 999px;
  font-size: 13px;
  min-width: 82px;
  padding: 7px 13px;
  text-align: center;
}

@media (max-width: 1180px) {
  .monthly-report-overview-page .monthly-closing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .monthly-report-overview-page .monthly-report-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .monthly-report-overview-page .monthly-closing-grid,
  .monthly-report-overview-page .monthly-report-filter {
    grid-template-columns: 1fr;
  }

  .monthly-report-overview-page .monthly-report-toolbar {
    grid-template-columns: 1fr;
  }

  .monthly-report-overview-page .monthly-report-actions {
    grid-template-rows: auto;
  }

  .monthly-report-overview-page .monthly-report-actions::before {
    display: none;
  }

  .monthly-report-overview-page .monthly-report-action-buttons {
    justify-content: stretch;
    margin-top: 0;
  }

  .monthly-report-overview-page .monthly-report-action-buttons .btn,
  .monthly-report-overview-page .monthly-report-action-buttons form {
    width: 100%;
  }

  .monthly-report-overview-page .monthly-last-generated {
    justify-self: start;
  }
}
/* Webshop månedsrapport v1.4: gruppevis datagrundlag og dokumentationspakke */
.monthly-report-detail-page .monthly-report-group-tab {
  display: grid;
  gap: 18px;
}

.monthly-report-detail-page .monthly-report-group-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.monthly-report-detail-page .monthly-report-group-head h2 {
  margin: 0;
}

.monthly-report-detail-page .monthly-report-group-head p,
.monthly-report-detail-page .monthly-report-group-kpis small,
.monthly-report-detail-page .monthly-report-package small {
  color: var(--muted);
  font-weight: 400;
}

.monthly-report-detail-page .monthly-report-export-menu,
.monthly-report-detail-page .monthly-report-package-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.monthly-report-detail-page .monthly-report-export-menu form,
.monthly-report-detail-page .monthly-report-package-actions form {
  margin: 0;
}

.monthly-report-detail-page .monthly-report-group-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.monthly-report-detail-page .monthly-report-group-kpis article {
  min-height: 86px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.monthly-report-detail-page .monthly-report-group-kpis span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 400;
}

.monthly-report-detail-page .monthly-report-group-kpis strong {
  display: block;
  margin-top: 6px;
  font-size: 1.55rem;
  line-height: 1;
  color: var(--ink);
}

.monthly-report-detail-page .monthly-report-soft-note {
  padding: 10px 12px;
  border: 1px solid #fde7b8;
  border-radius: 8px;
  background: #fff8e7;
  color: #7a4b00;
  font-weight: 400;
}

.monthly-report-detail-page .monthly-report-group-filter {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(110px, 0.14fr) auto;
  gap: 12px;
  align-items: end;
  background: #f8fafc;
  border: 1px solid #dfe8f0;
  border-radius: 8px;
  padding: 12px;
}

.monthly-report-detail-page .monthly-report-group-filter.has-return-type-filter {
  grid-template-columns: minmax(150px, 0.22fr) minmax(260px, 1fr) minmax(110px, 0.14fr) auto;
}

.monthly-report-detail-page .monthly-report-group-filter label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.monthly-report-detail-page .monthly-report-group-filter span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
}

.monthly-report-detail-page .monthly-report-group-filter input,
.monthly-report-detail-page .monthly-report-group-filter select {
  appearance: none;
  background: #fff;
  border: 1px solid #d8e2ea;
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(9, 39, 54, 0.02);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  min-height: 42px;
  min-width: 0;
  outline: none;
  padding: 0 12px;
  width: 100%;
}

.monthly-report-detail-page .monthly-report-group-filter select {
  background-image:
    linear-gradient(45deg, transparent 50%, #60758a 50%),
    linear-gradient(135deg, #60758a 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 18px,
    calc(100% - 13px) 18px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  padding-right: 34px;
}

.monthly-report-detail-page .monthly-report-group-filter input:focus,
.monthly-report-detail-page .monthly-report-group-filter select:focus {
  border-color: rgba(197, 40, 190, 0.55);
  box-shadow: 0 0 0 3px rgba(197, 40, 190, 0.12);
}

.monthly-report-detail-page .monthly-report-group-filter .btn {
  border-radius: 8px;
  min-height: 42px;
  padding-inline: 20px;
  white-space: nowrap;
}


.monthly-report-detail-page .monthly-report-group-table th {
  white-space: nowrap;
}

.monthly-report-detail-page .monthly-report-group-table td {
  vertical-align: middle;
}

.monthly-report-detail-page .monthly-report-group-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-weight: 400;
}

.monthly-report-detail-page .monthly-report-group-pagination > div {
  display: flex;
  gap: 8px;
}

.monthly-report-detail-page .monthly-report-package {
  display: grid;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.monthly-report-detail-page .monthly-report-package-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) 130px 130px minmax(260px, 1.8fr);
  gap: 14px;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.monthly-report-detail-page .monthly-report-package-row:last-child {
  border-bottom: 0;
}

.monthly-report-detail-page .monthly-report-package-head {
  background: #f5f8fa;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.monthly-report-detail-page .monthly-report-package strong {
  display: block;
  color: var(--ink);
}

.monthly-report-detail-page .monthly-report-package .status-pill {
  width: max-content;
}

@media (max-width: 1100px) {
  .monthly-report-detail-page .monthly-report-group-head {
    display: grid;
  }

  .monthly-report-detail-page .monthly-report-group-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .monthly-report-detail-page .monthly-report-package-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .monthly-report-detail-page .monthly-report-group-kpis,
  .monthly-report-detail-page .monthly-report-group-filter,
  .monthly-report-detail-page .monthly-report-group-filter.has-return-type-filter {
    grid-template-columns: 1fr;
  }
}

/* Global Search command palette refresh */
.os-global-search-trigger {
  flex: 1 1 auto;
  width: auto;
  max-width: none;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  cursor: text;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.topbar:has(.os-global-search-trigger) {
  gap: 28px;
}

.os-global-search-trigger:hover,
.os-global-search-trigger:focus-within {
  border-color: rgba(217, 87, 204, 0.62);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 0 0 3px rgba(217, 87, 204, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.os-global-search-trigger svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: var(--ss-magenta-500);
}

.os-global-search-trigger-input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
}

.os-global-search-trigger-input::placeholder {
  color: rgba(222, 235, 238, 0.62);
  font-weight: 500;
}

.os-global-search-kbd,
.os-global-search-trigger kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 23px;
  min-width: 48px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(3, 25, 31, 0.58);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.os-global-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: start center;
  padding: 7vh 18px 24px;
  background: rgba(2, 15, 22, 0.62);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease;
}

.os-global-search-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.is-global-search-open {
  overflow: hidden;
}

.os-global-search-modal {
  width: min(820px, 100%);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: var(--ss-offwhite);
  box-shadow: 0 30px 90px rgba(2, 15, 22, 0.42), 0 0 0 1px rgba(217, 87, 204, 0.08);
  transform: translateY(-8px) scale(0.985);
  transition: transform 150ms ease;
}

.os-global-search-overlay.is-open .os-global-search-modal {
  transform: translateY(0) scale(1);
}

.os-global-search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 16px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 10%, rgba(217, 87, 204, 0.2), transparent 30%),
    linear-gradient(135deg, var(--ss-ocean-950), var(--ss-ocean-850) 58%, #1f1130);
  border-bottom: 1px solid rgba(217, 87, 204, 0.22);
}

.os-global-search-header .eyebrow {
  margin: 0 0 5px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.os-global-search-header h2 {
  margin: 0;
  color: #fff;
  font-size: 20px;
  letter-spacing: 0;
}

.os-global-search-header .icon-button {
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.13);
}

.os-global-search-body {
  min-height: 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  background: #f7fafb;
}

.os-global-search-input-shell,
.os-global-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 16px 0;
  padding: 11px 12px;
  border: 1px solid rgba(15, 35, 45, 0.13);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(7, 29, 36, 0.07);
}

.os-global-search-input-shell:focus-within,
.os-global-search-input-wrap:focus-within {
  border-color: rgba(217, 87, 204, 0.56);
  box-shadow: 0 0 0 3px rgba(217, 87, 204, 0.1), 0 10px 26px rgba(7, 29, 36, 0.08);
}

.os-global-search-input-shell svg,
.os-global-search-input-wrap svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  color: var(--ss-magenta-500);
}

.os-global-search-input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text-primary);
  background: transparent;
  font-size: 15px;
  font-weight: 780;
}

.os-global-search-input::placeholder {
  color: var(--text-muted);
  font-weight: 650;
}

.os-global-search-input-shell kbd,
.os-global-search-footer kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 7px;
  border: 1px solid rgba(15, 35, 45, 0.12);
  border-radius: 7px;
  color: var(--text-secondary);
  background: #f3f7f8;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.os-global-search-clear {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 1px solid rgba(15, 35, 45, 0.1);
  border-radius: 999px;
  color: var(--text-secondary);
  background: #f3f7f8;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.os-global-search-clear:hover {
  color: var(--os-accent-dark);
  border-color: rgba(217, 87, 204, 0.25);
  background: var(--ss-magenta-50);
}

.os-global-search-results {
  min-height: 0;
  max-height: none;
  flex: 1 1 auto;
  overflow: auto;
  padding: 12px 16px 16px;
  background: #f7fafb;
}

.os-global-search-dashboard,
.os-global-search-group {
  display: grid;
  gap: 12px;
}

.os-global-search-section {
  display: grid;
  gap: 8px;
}

.os-global-search-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 950;
}

.os-global-search-section-title small {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 750;
}

.os-global-search-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.os-global-search-compact-list {
  display: grid;
  gap: 7px;
}

.os-global-search-group + .os-global-search-group {
  margin-top: 12px;
}

.os-global-search-group h3 {
  margin: 4px 2px 7px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.os-global-search-context {
  margin: 0 2px 10px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
}

.os-global-search-filters {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: -2px 0 12px;
  padding: 2px 0 9px;
  background: #f7fafb;
}

.os-global-search-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 29px;
  padding: 0 10px;
  border: 1px solid rgba(15, 35, 45, 0.12);
  border-radius: 999px;
  color: var(--text-secondary);
  background: #fff;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.os-global-search-filter-chip span {
  color: var(--text-muted);
  font-size: 11px;
}

.os-global-search-filter-chip:hover,
.os-global-search-filter-chip.is-active {
  color: #fff;
  border-color: rgba(217, 87, 204, 0.45);
  background: linear-gradient(135deg, var(--ss-magenta-700), var(--ss-magenta-500));
  box-shadow: 0 8px 18px rgba(217, 87, 204, 0.18);
}

.os-global-search-filter-chip:hover span,
.os-global-search-filter-chip.is-active span {
  color: rgba(255, 255, 255, 0.78);
}

.os-global-search-filter-chip:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.os-global-search-row,
.os-global-search-result-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) minmax(110px, auto) auto 30px;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid rgba(15, 35, 45, 0.09);
  border-radius: 13px;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 1px 0 rgba(7, 29, 36, 0.03);
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.os-global-search-row + .os-global-search-row,
.os-global-search-result-row + .os-global-search-result-row {
  margin-top: 7px;
}

.os-global-search-row:hover,
.os-global-search-row:focus-visible,
.os-global-search-row.is-active,
.os-global-search-result-row:hover,
.os-global-search-result-row:focus-visible,
.os-global-search-result-row.is-active {
  border-color: rgba(217, 87, 204, 0.36);
  background: linear-gradient(135deg, rgba(217, 87, 204, 0.11), rgba(255, 255, 255, 0.96));
  box-shadow: 0 10px 24px rgba(7, 29, 36, 0.08);
  outline: 0;
  transform: translateY(-1px);
}

.os-global-search-result-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: #fff;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.28), transparent 28%),
    linear-gradient(135deg, var(--ss-ocean-850), var(--ss-magenta-700));
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.os-global-search-row-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.os-global-search-row-main strong,
.os-global-search-row-main small,
.os-global-search-row em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.os-global-search-row-main strong {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 950;
}

.os-global-search-row-main small {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 650;
}

.os-global-search-row-side {
  min-width: 0;
  display: grid;
  justify-items: end;
  gap: 4px;
}

.os-global-search-row em {
  max-width: 150px;
  color: var(--text-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 780;
}

.os-global-search-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 112px;
  padding: 4px 8px;
  border: 1px solid rgba(217, 87, 204, 0.16);
  border-radius: 999px;
  color: var(--os-accent-dark);
  background: var(--ss-magenta-50);
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.os-global-search-enter-hint {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 900;
}

.os-global-search-favorite,
.os-global-search-favorite-placeholder {
  width: 30px;
  height: 30px;
}

.os-global-search-favorite {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 35, 45, 0.12);
  border-radius: 999px;
  color: var(--text-muted);
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.os-global-search-favorite:hover,
.os-global-search-favorite.is-favorite {
  color: var(--os-accent);
  border-color: rgba(217, 87, 204, 0.3);
  background: var(--ss-magenta-50);
}

.os-global-search-quick-card {
  min-height: 64px;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 10px;
}

.os-global-search-quick-card .os-global-search-row-side,
.os-global-search-quick-card .os-global-search-enter-hint {
  display: none;
}

.os-global-search-quick-card .os-global-search-favorite,
.os-global-search-quick-card .os-global-search-favorite-placeholder {
  grid-column: 3;
}

.os-global-search-mini-empty,
.os-global-search-empty,
.os-global-search-loading,
.os-global-search-error {
  padding: 22px 16px;
  border: 1px dashed rgba(15, 35, 45, 0.16);
  border-radius: 13px;
  color: var(--text-secondary);
  background: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 750;
}

.os-global-search-mini-empty {
  padding: 12px;
  text-align: left;
  font-size: 12px;
}

.os-global-search-error {
  color: var(--ss-danger-dark);
  background: var(--ss-danger-bg);
  border-color: rgba(220, 53, 69, 0.28);
}

.os-global-search-tips {
  padding: 10px 12px;
  border: 1px solid rgba(15, 35, 45, 0.09);
  border-radius: 12px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 720;
}

.os-global-search-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  border-top: 1px solid rgba(15, 35, 45, 0.1);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.88);
  font-size: 11px;
  font-weight: 780;
}

.os-global-search-footer span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .os-global-search-trigger {
    width: min(100%, 52vw);
    flex: 1 1 auto;
  }
}

@media (max-width: 720px) {
  .os-global-search-overlay {
    padding: 10px;
  }

  .os-global-search-modal {
    max-height: calc(100vh - 20px);
    border-radius: 17px;
  }

  .os-global-search-header {
    padding: 16px;
  }

  .os-global-search-input-shell,
  .os-global-search-input-wrap {
    margin: 12px 12px 0;
  }

  .os-global-search-results {
    padding: 10px 12px 12px;
  }

  .os-global-search-quick-grid {
    grid-template-columns: 1fr;
  }

  .os-global-search-row,
  .os-global-search-result-row {
    grid-template-columns: 38px minmax(0, 1fr) 30px;
  }

  .os-global-search-row-side,
  .os-global-search-enter-hint {
    display: none;
  }

  .os-global-search-favorite,
  .os-global-search-favorite-placeholder {
    grid-column: 3;
    justify-self: end;
  }

  .os-global-search-footer {
    display: none;
  }
}

@media (max-width: 640px) {
  .os-global-search-trigger {
    width: 42px;
    flex: 0 0 42px;
    justify-content: center;
    padding: 0;
    cursor: pointer;
  }

  .os-global-search-trigger-input,
  .os-global-search-trigger kbd,
  .os-global-search-kbd {
    display: none;
  }
}

/* Workday Planner mockup refresh */
body.planner-page .content {
  margin: 0;
  max-width: none;
  padding: 24px 16px 34px;
  width: 100%;
  background: #f6fafb;
}

body.planner-page .page-heading {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

body.planner-page .page-heading h1 {
  font-size: 28px;
  letter-spacing: 0;
}

.planner-heading-tools {
  display: flex;
  justify-content: flex-end;
  margin: -66px 0 22px;
  pointer-events: none;
}

.planner-history-button {
  pointer-events: auto;
  opacity: 1 !important;
}

.planner-status-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 16px;
  padding: 18px 22px !important;
}

.planner-status-item {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 52px minmax(0, 1fr);
  min-height: 70px;
  padding: 0 22px;
  border-right: 1px solid #dce7ec;
}

.planner-status-item:first-child {
  padding-left: 0;
}

.planner-status-item:last-child {
  border-right: 0;
  padding-right: 0;
}

.planner-status-icon {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.planner-status-icon svg {
  height: 22px;
  width: 22px;
}

.planner-status-item small,
.planner-status-item em {
  color: #607684;
  display: block;
  font-size: 12px;
  font-style: normal;
}

.planner-status-item small {
  font-weight: 800;
}

.planner-status-item strong {
  color: #10242b;
  display: block;
  font-size: 22px;
  line-height: 1.08;
  margin: 2px 0;
}

.planner-status-item.is-ok .planner-status-icon { background: #dff8ee; color: #059669; }
.planner-status-item.is-danger .planner-status-icon { background: #ffe3f0; color: #db2777; }
.planner-status-item.is-purple .planner-status-icon { background: #eadcff; color: #7c3aed; }
.planner-status-item.is-blue .planner-status-icon { background: #ddecff; color: #2f80ed; }
.planner-status-item.is-green .planner-status-icon { background: #dff8f2; color: #0f9f82; }

.planner-coverage-card {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  margin-bottom: 12px;
  padding: 0 !important;
}

.planner-coverage-card > .section-heading,
.planner-coverage-card > .team-muted-text {
  display: none !important;
}

.planner-coverage-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.planner-coverage-item {
  background: #fff !important;
  border: 1px solid #dde8ee !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 26px rgba(15, 35, 45, 0.06);
  align-content: start;
  gap: 12px !important;
  min-height: 176px;
  padding: 18px 20px !important;
}

.planner-coverage-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: flex-start;
}

.planner-coverage-title {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  min-width: 0;
}

.planner-coverage-icon {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.planner-coverage-svg {
  display: block;
  height: 26px;
  width: 26px;
}

.planner-coverage-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding-top: 1px;
}

.planner-coverage-copy > span {
  color: #405869 !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  letter-spacing: 0.02em;
  line-height: 1;
  margin-top: 0;
  text-transform: uppercase;
}

.planner-coverage-item strong {
  font-size: 17px !important;
  line-height: 1.1;
}

.planner-coverage-copy small {
  color: #607684;
  font-size: 13px;
  line-height: 1.25;
}

.planner-coverage-item b {
  align-self: start;
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 850;
  margin: 2px 0 0;
  padding: 3px 10px;
  width: max-content;
}

.planner-coverage-meta {
  color: #607684;
  font-size: 13px;
  line-height: 1.25;
  margin-top: 4px;
}

.planner-coverage-item i {
  background: #edf2f5;
  border-radius: 999px;
  display: block;
  height: 7px;
  margin-top: 4px;
  overflow: hidden;
  position: relative;
}

.planner-coverage-item i::after {
  background: currentColor;
  border-radius: inherit;
  content: "";
  inset: 0 auto 0 0;
  position: absolute;
  width: min(var(--coverage, 0%), 100%);
}

.planner-coverage-item.is-purple { color: #7c3aed; }
.planner-coverage-item.is-pink { color: #db2777; }
.planner-coverage-item.is-orange { color: #f97316; }
.planner-coverage-item.is-green { color: #0f9f82; }
.planner-coverage-item.is-balanced { color: #f97316; }
.planner-coverage-item.is-purple .planner-coverage-icon,
.planner-coverage-item.is-purple b { background: #efe4ff; color: #6d28d9; }
.planner-coverage-item.is-pink .planner-coverage-icon,
.planner-coverage-item.is-pink b { background: #ffe4f1; color: #db2777; }
.planner-coverage-item.is-orange .planner-coverage-icon,
.planner-coverage-item.is-orange b,
.planner-coverage-item.is-balanced .planner-coverage-icon,
.planner-coverage-item.is-balanced b { background: #ffedd5; color: #f97316; }
.planner-coverage-item.is-green .planner-coverage-icon,
.planner-coverage-item.is-green b { background: #ddf7ef; color: #0f9f82; }

.planner-toolbar {
  align-items: center;
  display: flex !important;
  gap: 14px;
  margin-bottom: 14px;
  padding: 10px 16px !important;
}

.planner-toolbar > div:first-child {
  display: none;
}

.planner-date-navigator {
  align-items: center;
  flex: 1 1 auto;
  gap: 14px;
  justify-content: flex-start;
}

.planner-date-picker-group {
  align-items: center;
  display: flex;
  flex: 0 0 304px;
  gap: 8px;
  width: 304px;
}

.planner-date-card {
  align-items: center;
  background: #f9fcfd;
  border: 1px solid #dfe9ee;
  border-radius: 10px;
  cursor: pointer;
  display: grid !important;
  flex: 1 1 auto;
  gap: 8px !important;
  grid-template-columns: 30px minmax(0, 1fr) 16px;
  min-height: 48px;
  min-width: 0;
  padding: 7px 9px;
  text-transform: none !important;
}

.planner-date-form > label:not(.planner-date-card) {
  align-items: center;
  background: #f9fcfd;
  border: 1px solid #dfe9ee;
  border-radius: 10px;
  display: grid !important;
  gap: 2px !important;
  min-height: 54px;
  min-width: 185px;
  padding: 8px 12px;
  text-transform: none !important;
}

.planner-date-form > label:not(.planner-date-card) span {
  color: #607684;
  font-size: 11px;
}

.planner-date-form > label:not(.planner-date-card) input {
  border: 0 !important;
  font-weight: 850;
  min-height: 22px !important;
  padding: 0 !important;
}

.planner-date-card span {
  align-items: center;
  display: inline-flex;
}

.planner-date-icon {
  background: #edf5f8;
  border-radius: 8px;
  color: #405869;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.planner-date-copy {
  align-items: flex-start !important;
  display: grid !important;
  gap: 2px;
  min-width: 0;
}

.planner-date-copy small {
  color: #607684;
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
}

.planner-date-copy strong {
  color: #102b3a;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
}

.planner-date-chevron {
  color: #405869;
  justify-content: center;
}

.planner-date-card input {
  height: 1px;
  min-height: 1px !important;
  opacity: 0;
  padding: 0 !important;
  position: absolute;
  width: 1px !important;
}

.planner-icon-date-button {
  flex: 0 0 40px;
  min-height: 40px !important;
  padding: 0 !important;
  width: 40px;
}

.planner-toolbar-separator {
  background: #dfe9ee;
  display: block;
  flex: 0 0 1px;
  height: 42px;
  margin: 0 8px;
}

.planner-toolbar .planner-small-button,
.planner-toolbar-actions .button-primary,
.planner-toolbar-actions .button-secondary {
  font-weight: 500 !important;
}

.planner-small-button.is-today {
  border-color: rgba(217, 87, 204, 0.55) !important;
  color: var(--ss-magenta-700) !important;
  background: #fff8fe !important;
}

.planner-toolbar-actions {
  flex: 0 0 auto;
}

.planner-toolbar-actions a[data-forecast-link] {
  display: none !important;
}

.planner-toolbar-actions [data-planner-refresh] {
  order: 1;
}

.planner-toolbar-actions [data-planner-generate] {
  order: 2;
}

.planner-toolbar-actions [data-day-team-open] {
  order: 3;
}

.planner-toolbar-actions [data-planner-reset] {
  display: none !important;
}

.planner-layout {
  grid-template-columns: 304px minmax(0, 1fr) !important;
}

.planner-task-bank,
.planner-board-card,
.planner-brain-panel {
  border-radius: 12px !important;
  padding: 18px !important;
}

.planner-board-card {
  padding-left: 18px !important;
  --planner-hour-width: calc(100% / 9);
}

.planner-board-card > .section-heading,
.planner-board-card > .planner-time-header,
.planner-board-card > .planner-board {
  margin-left: 8px;
  width: calc(100% - 8px);
}

.planner-task-bank .team-muted-text {
  display: none;
}

.planner-task-list {
  max-height: 548px;
}

.planner-task-template {
  border: 0 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  min-height: 82px;
}

.planner-task-template b {
  color: #10242b;
  display: block;
  font-size: 11px;
  font-weight: 850;
}

.planner-task-template i {
  color: #78909c;
  font-style: normal;
  letter-spacing: -2px;
}

.planner-drag-hint {
  align-items: center;
  color: #607684;
  display: flex;
  font-size: 12px;
  gap: 8px;
  justify-content: center;
  margin: 14px 0 0;
}

.planner-time-header {
  grid-template-columns: 190px minmax(0, 1fr) !important;
  column-gap: 14px !important;
  margin-top: 18px;
  padding-bottom: 7px;
  border-bottom: 1px solid #dfe9ee;
}

.planner-board-card > .section-heading {
  align-items: flex-start !important;
}

.planner-board-card > .section-heading .eyebrow {
  font-size: 13px;
  letter-spacing: 0.04em;
}

.planner-board-card > .section-heading .planner-save-state {
  display: none !important;
}

.planner-time-header > div {
  display: block;
  min-height: 18px;
  position: relative;
}

.planner-time-header > div span {
  color: #506977;
  font-size: 12px;
  font-weight: 500;
  position: absolute;
  text-align: center;
  transform: translateX(-50%);
  width: max-content;
}

.planner-time-header > div span::after {
  background: #d5e1e8;
  bottom: -8px;
  content: "";
  height: 6px;
  left: calc(50% + 0.5px);
  position: absolute;
  width: 1px;
}

.planner-now-marker {
  display: none !important;
}

.planner-now-marker em {
  display: none !important;
}

.planner-board {
  gap: 0;
}

.planner-employee-row {
  background: #fff;
  border-bottom: 1px solid #e4edf2;
  grid-template-columns: 190px minmax(0, 1fr) !important;
  gap: 14px !important;
  overflow: hidden;
}

.planner-employee-row:first-child {
  border-top: 1px solid #e4edf2;
}

.planner-employee-card {
  align-items: center;
  border: 0 !important;
  border-right: 1px solid #dfe9ee !important;
  border-radius: 0 !important;
  display: grid !important;
  gap: 10px !important;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  min-height: 54px;
  padding: 6px 12px !important;
}

.planner-employee-card .mini-avatar {
  font-size: 12px;
  height: 34px;
  width: 34px;
}

.planner-employee-copy {
  min-width: 0;
}

.planner-employee-copy strong {
  color: #102b3a;
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.planner-employee-copy small {
  color: #607684;
  display: block;
  font-size: 11px;
  line-height: 1.25;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.planner-employee-side {
  align-items: flex-end;
  display: grid;
  gap: 8px;
  justify-items: end;
}

.planner-employee-dot {
  border-radius: 999px;
  display: block;
  height: 8px;
  width: 8px;
}

.planner-employee-dot.is-ok { background: #66d8bf; }
.planner-employee-dot.is-warning { background: #ffc86b; }
.planner-employee-dot.is-danger { background: #ef476f; }

.planner-employee-load {
  color: #405869;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.planner-timeline {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  min-height: 54px !important;
  overflow: visible !important;
}

.planner-slot {
  border-left: 1px solid #e4edf2 !important;
  border-right: 0 !important;
  bottom: 0;
  min-height: 0 !important;
  position: absolute;
  top: 0;
  width: 0 !important;
}

.planner-slot:first-child {
  border-left: 0 !important;
}

.planner-assignment {
  border: 1px solid rgba(15, 35, 45, 0.05);
  border-radius: 8px !important;
  box-shadow: none !important;
  bottom: 8px !important;
  min-height: 34px;
  padding: 7px 10px !important;
  top: 8px !important;
}

.planner-assignment strong {
  font-size: 12px !important;
}

.planner-assignment small {
  font-size: 10px;
  font-weight: 650;
}

.planner-employee-meta {
  gap: 4px !important;
  margin-top: 4px !important;
}

.planner-employee-meta span {
  font-size: 10px !important;
  padding: 2px 6px !important;
}

.planner-assignment button {
  display: none;
}

.planner-timeline-add {
  display: none !important;
}

.planner-brain-panel {
  align-self: stretch;
}

.planner-brain-mark {
  color: var(--ss-magenta-500);
}

.planner-brain-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.planner-brain-list article {
  display: grid;
  gap: 12px;
  grid-template-columns: 42px minmax(0, 1fr);
  padding: 14px;
  border: 1px solid #e3ebef;
  border-radius: 10px;
  background: #fff;
}

.planner-brain-list article > span {
  align-items: center;
  background: #f4e8ff;
  border-radius: 999px;
  color: #8b2be2;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.planner-brain-list p {
  color: #607684;
  font-size: 12px;
  line-height: 1.4;
  margin: 5px 0 10px;
}

.planner-brain-more {
  align-items: center;
  color: #405869;
  display: flex;
  font-size: 12px;
  font-weight: 850;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
}

@media (max-width: 1400px) {
  .planner-status-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .planner-status-item {
    border-right: 0;
    padding: 12px;
  }

  .planner-layout {
    grid-template-columns: 250px minmax(0, 1fr) !important;
  }

  .planner-brain-panel {
    grid-column: 1 / -1;
  }
}

/* Weekly Performance Report */
body.weekly-report-page .content {
  margin: 0;
  max-width: none;
  padding: 24px 28px 34px;
  width: 100%;
  background: #f6fafb;
}

body.weekly-report-page .page-heading {
  padding: 0 0 14px;
}

.weekly-hero {
  align-items: stretch;
  background:
    radial-gradient(circle at 12% 0%, rgba(211, 69, 200, 0.08), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #fbfdff 54%, #f7fbfc 100%);
  border: 1px solid rgba(192, 205, 215, 0.86);
  border-radius: 13px;
  box-shadow: 0 14px 34px rgba(15, 38, 54, 0.08);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 18px;
  padding: 26px 30px;
}

.weekly-hero h2 {
  color: var(--text-primary);
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

.weekly-hero p:not(.eyebrow) {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.45;
  margin: 9px 0 0;
}

.weekly-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.weekly-period-form {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: 110px 110px auto auto;
  justify-content: end;
}

.weekly-period-form label {
  display: grid;
  gap: 8px;
}

.weekly-period-form span {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.weekly-period-form input {
  background: #fff;
  border: 1px solid rgba(184, 199, 210, 0.9);
  border-radius: 8px;
  color: var(--text-primary);
  font: inherit;
  min-height: 48px;
  padding: 0 14px;
}

.weekly-period-form .btn {
  min-height: 48px;
  padding-left: 20px;
  padding-right: 20px;
}

.weekly-summary-grid,
.weekly-section-grid,
.weekly-top-grid,
.weekly-table-grid,
.weekly-detail-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.weekly-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.weekly-top-grid,
.weekly-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.weekly-table-grid {
  grid-template-columns: 1.2fr 1.1fr 0.9fr;
}

.weekly-kpi-card {
  align-items: flex-start;
  background:
    radial-gradient(circle at 10% 10%, rgba(211, 69, 200, 0.055), transparent 34%),
    #fff;
  border: 1px solid rgba(192, 205, 215, 0.86);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 38, 54, 0.07);
  display: grid;
  gap: 18px;
  grid-template-columns: 52px minmax(0, 1fr);
  min-height: 124px;
  padding: 22px 20px;
  position: relative;
}

.weekly-kpi-card > div {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.weekly-kpi-icon {
  align-items: center;
  background: var(--os-accent-soft);
  border-radius: 18px;
  color: var(--os-accent-dark);
  display: inline-flex;
  height: 50px;
  justify-content: center;
  width: 50px;
}

.weekly-kpi-icon svg {
  height: 24px;
  width: 24px;
}

.weekly-kpi-state-dot {
  background: #9aa9b6;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.16);
  height: 10px;
  position: absolute;
  right: 18px;
  top: 25px;
  width: 10px;
}

.weekly-kpi-card.positive .weekly-kpi-state-dot,
.weekly-kpi-card.success .weekly-kpi-state-dot {
  background: #44b85a;
  box-shadow: 0 0 0 3px rgba(68, 184, 90, 0.18);
}

.weekly-kpi-card.warning .weekly-kpi-state-dot,
.weekly-kpi-card.risk .weekly-kpi-state-dot {
  background: #f5a623;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.18);
}

.weekly-kpi-card.danger .weekly-kpi-state-dot {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

.weekly-kpi-card.positive .weekly-kpi-icon,
.weekly-kpi-card.success .weekly-kpi-icon {
  background: var(--ss-success-bg);
  color: var(--ss-success-dark);
}

.weekly-kpi-card.warning .weekly-kpi-icon,
.weekly-kpi-card.risk .weekly-kpi-icon {
  background: var(--ss-warning-bg);
  color: var(--ss-warning-dark);
}

.weekly-kpi-card.unavailable .weekly-kpi-icon {
  background: #eef2f6;
  color: #64748b;
}

.weekly-kpi-card p {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 850;
  margin: 0;
  padding-right: 18px;
}

.weekly-kpi-card strong {
  color: var(--text-primary);
  font-size: 28px;
  letter-spacing: -0.025em;
  line-height: 1;
}

.weekly-kpi-card .status-pill {
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 12px;
  font-weight: 850;
  justify-content: flex-start;
  padding: 0;
}

.weekly-kpi-card .status-pill.status-success {
  color: #15803d;
}

.weekly-kpi-card .status-pill.status-warning,
.weekly-kpi-card .status-pill.status-danger {
  color: #ea580c;
}

.weekly-kpi-card .status-pill.status-info,
.weekly-kpi-card .status-pill.status-muted {
  color: #4d6a83;
}

.weekly-kpi-card small {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.35;
}

.weekly-card-header,
.weekly-section-card > header {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.weekly-card-header h2,
.weekly-section-card h3 {
  color: var(--text-primary);
  font-size: 20px;
  line-height: 1.15;
  margin: 0;
}

.weekly-card-header > svg,
.weekly-section-card > header > span {
  align-items: center;
  background: var(--os-accent-soft);
  border-radius: 12px;
  color: var(--os-accent-dark);
  display: inline-flex;
  flex: 0 0 auto;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.weekly-section-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 16px;
  padding: 18px;
}

.weekly-section-card.is-muted {
  background: #fbfdfe;
}

.weekly-mini-kpis {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.weekly-mini-kpis .weekly-kpi-card {
  box-shadow: none;
  grid-template-columns: 34px minmax(0, 1fr);
  min-height: 112px;
  padding: 14px;
}

.weekly-mini-kpis .weekly-kpi-icon {
  border-radius: 11px;
  height: 34px;
  width: 34px;
}

.weekly-mini-kpis .weekly-kpi-icon svg {
  height: 17px;
  width: 17px;
}

.weekly-mini-kpis .weekly-kpi-card strong {
  font-size: 21px;
}

.weekly-empty-state {
  background: #f8fbfd;
  border: 1px dashed #cbd8df;
  border-radius: 10px;
  color: var(--text-secondary);
  padding: 16px;
}

.weekly-empty-state strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 4px;
}

.weekly-empty-state p {
  margin: 0;
}

.weekly-focus-card,
.weekly-detail-card,
.weekly-table-card {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.weekly-kpi-table-card {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
  padding: 18px;
}

.weekly-kpi-table-card .weekly-card-header p:not(.eyebrow) {
  color: var(--text-secondary);
  font-size: 13px;
  margin: 4px 0 0;
}

.weekly-kpi-table-wrap {
  overflow-x: auto;
}

.weekly-kpi-table {
  margin: 0;
  min-width: 900px;
  width: 100%;
}

.weekly-kpi-table th,
.weekly-kpi-table td {
  padding: 9px 12px;
  vertical-align: middle;
}

.weekly-kpi-table thead th {
  background: #f7fafc;
  color: var(--text-secondary);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.weekly-kpi-table tbody tr:not(.weekly-kpi-group-row):nth-child(even) td {
  background: #fbfdfe;
}

.weekly-kpi-table tbody tr:not(.weekly-kpi-group-row):hover td {
  background: #f6fbff;
}

.weekly-kpi-table td strong {
  color: var(--text-primary);
  font-size: 13px;
}

.weekly-kpi-group-row th {
  background: linear-gradient(90deg, rgba(211, 69, 200, 0.12), rgba(211, 69, 200, 0.04));
  border-top: 1px solid rgba(211, 69, 200, 0.18);
  color: var(--os-accent-dark);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 8px 12px;
  text-align: left;
  text-transform: uppercase;
}

.weekly-kpi-trend {
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.weekly-kpi-trend.status-muted {
  background: #eef2f6;
  color: #64748b;
}

.weekly-kpi-actions-head,
.weekly-kpi-actions-cell {
  text-align: right;
  white-space: nowrap;
}

.weekly-kpi-detail-button {
  min-height: 34px;
  padding: 7px 12px;
  white-space: nowrap;
}

.weekly-kpi-chart-button {
  margin-left: 8px;
  min-height: 34px;
  padding: 7px 12px;
  white-space: nowrap;
}

.weekly-kpi-table-note {
  border-top: 1px solid var(--border-light);
  color: var(--text-secondary);
  display: grid;
  gap: 3px;
  font-size: 12px;
  padding-top: 10px;
}

.weekly-kpi-table-note p {
  margin: 0;
}

.kpi-row-clickable {
  cursor: pointer;
}

.kpi-row-clickable:focus {
  outline: 2px solid rgba(211, 69, 200, 0.35);
  outline-offset: -2px;
}

.kpi-row-clickable:hover td {
  background: #fdf4ff !important;
}

.weekly-kpi-drilldown-hint {
  background: rgba(211, 69, 200, 0.1);
  border-radius: 999px;
  color: var(--os-accent-dark);
  display: inline-flex;
  font-size: 11px;
  font-weight: 850;
  margin-left: 8px;
  padding: 3px 8px;
  white-space: nowrap;
}

body.modal-open {
  overflow: hidden;
}

.os-modal-backdrop {
  background: rgba(8, 19, 31, 0.52);
  backdrop-filter: blur(4px);
  inset: 0;
  opacity: 0;
  position: fixed;
  transition: opacity 160ms ease;
  z-index: 900;
}

.os-modal-backdrop.is-open {
  opacity: 1;
}

.os-modal {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  padding: 28px;
  pointer-events: none;
  position: fixed;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 910;
}

.os-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.os-modal-panel {
  background: #f8fbfd;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(8, 19, 31, 0.28);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: min(86vh, 900px);
  max-width: 1180px;
  overflow: hidden;
  width: min(1180px, 100%);
}

.os-modal-header {
  align-items: flex-start;
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 22px 24px;
}

.os-modal-header h2 {
  margin: 2px 0 6px;
}

.os-modal-header p {
  color: var(--text-secondary);
  margin: 0;
}

.os-modal-close {
  align-items: center;
  background: #fff;
  border: 1px solid #d8e3ec;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  color: var(--os-accent-dark);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 28px;
  font-weight: 700;
  height: 42px;
  justify-content: center;
  line-height: 1;
  width: 42px;
}

.os-modal-close:hover,
.os-modal-close:focus-visible {
  background: #fff;
  border-color: rgba(211, 69, 200, 0.42);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
  outline: none;
}

.os-modal-body {
  min-height: 0;
  overflow: auto;
  padding: 20px;
}

.weekly-drilldown-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.weekly-drilldown-summary span {
  background: #eef6ff;
  border-radius: 999px;
  color: #0f3b57;
  font-size: 12px;
  font-weight: 850;
  padding: 6px 10px;
}

.weekly-drilldown-grid {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.weekly-drilldown-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  padding: 16px;
}

.weekly-drilldown-card header h3 {
  margin: 0;
}

.weekly-drilldown-card header p {
  color: var(--text-secondary);
  font-size: 12px;
  margin: 4px 0 0;
}

.weekly-drilldown-table-wrap {
  min-width: 0;
  overflow-x: auto;
}

.weekly-drilldown-table {
  border-collapse: collapse;
  min-width: 760px;
  table-layout: auto;
  width: 100%;
}

.weekly-drilldown-table th:nth-child(1),
.weekly-drilldown-table td:nth-child(1) {
  width: auto;
  white-space: nowrap;
}

.weekly-drilldown-table th,
.weekly-drilldown-table td {
  border-bottom: 1px solid var(--border-light);
  padding: 10px 9px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
}

.weekly-drilldown-table th {
  background: #f7fafc;
  color: var(--text-secondary);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.weekly-drilldown-table .num {
  text-align: right;
  white-space: nowrap;
}

.weekly-drilldown-table td strong {
  color: var(--text-primary);
  display: block;
}

.weekly-drilldown-table td small {
  color: var(--text-secondary);
  display: block;
  font-size: 11px;
  margin-top: 2px;
}

.weekly-drilldown-empty {
  align-items: center;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  color: var(--text-secondary);
  display: flex;
  font-weight: 800;
  justify-content: center;
  min-height: 140px;
  padding: 18px;
  text-align: center;
}

.weekly-drilldown-stat-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.weekly-drilldown-stat-grid div {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 12px;
}

.weekly-drilldown-stat-grid span {
  color: var(--text-secondary);
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.weekly-drilldown-stat-grid strong {
  color: var(--text-primary);
  display: block;
  font-size: 20px;
  margin-top: 6px;
}

.weekly-drilldown-loading {
  align-items: center;
  background: linear-gradient(135deg, #fff, #f8fafc);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  color: var(--text-secondary);
  display: flex;
  font-weight: 850;
  justify-content: center;
  min-height: 220px;
  position: relative;
}

.weekly-drilldown-loading::before {
  animation: weeklyDrilldownSpin 900ms linear infinite;
  border: 3px solid rgba(211, 69, 200, 0.18);
  border-top-color: var(--os-accent-dark);
  border-radius: 999px;
  content: "";
  height: 24px;
  margin-right: 10px;
  width: 24px;
}

.weekly-chart-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.035);
  display: grid;
  gap: 12px;
  padding: 18px;
}

.weekly-chart-card header h3 {
  margin: 0;
}

.weekly-chart-card header p {
  color: var(--text-secondary);
  font-size: 13px;
  margin: 4px 0 0;
}

.weekly-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.weekly-chart-legend span {
  align-items: center;
  color: var(--text-secondary);
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 7px;
}

.weekly-chart-legend span::before {
  border-radius: 999px;
  content: "";
  height: 8px;
  width: 8px;
}

.weekly-chart-legend .is-current::before {
  background: var(--os-accent-dark);
}

.weekly-chart-legend .is-previous::before {
  background: #3b82f6;
}

.weekly-chart-wrap {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  overflow-x: auto;
  padding: 10px 12px 8px;
}

.weekly-chart-wrap svg {
  display: block;
  min-width: 760px;
  width: 100%;
}

.weekly-chart-grid-line {
  stroke: rgba(91, 112, 131, 0.16);
  stroke-width: 1;
}

.weekly-chart-axis-label {
  fill: var(--text-secondary);
  font-size: 11px;
  font-weight: 650;
}

.weekly-chart-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.weekly-chart-line.is-current {
  stroke: var(--os-accent-dark);
}

.weekly-chart-line.is-previous {
  opacity: 0.82;
  stroke: #4f8ee8;
  stroke-dasharray: 6 7;
}

.weekly-chart-dot {
  stroke: #fff;
  stroke-width: 1.6;
}

.weekly-chart-dot.is-current {
  fill: var(--os-accent-dark);
}

.weekly-chart-dot.is-previous {
  fill: #3b82f6;
}

.weekly-chart-data-table {
  border-collapse: collapse;
  font-size: 12px;
  width: 100%;
}

.weekly-chart-data-table th,
.weekly-chart-data-table td {
  border-bottom: 1px solid var(--border-light);
  padding: 8px 6px;
  text-align: right;
  white-space: nowrap;
}

.weekly-chart-data-table th {
  color: var(--text-primary);
  text-align: left;
}

.weekly-drilldown-footer {
  background: #fff;
  border-top: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 12px;
  padding: 12px 24px;
}

@keyframes weeklyDrilldownSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 900px) {
  .os-modal {
    align-items: stretch;
    padding: 12px;
  }

  .os-modal-panel {
    max-height: 92vh;
  }

  .weekly-drilldown-grid {
    grid-template-columns: 1fr;
  }

  .weekly-drilldown-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .weekly-kpi-chart-button {
    margin-left: 0;
    margin-top: 6px;
  }

  .weekly-chart-data-table {
    display: block;
    overflow-x: auto;
  }
}

.weekly-risk-list,
.weekly-detail-list {
  display: grid;
  gap: 10px;
}

.weekly-risk-list article,
.weekly-detail-list article {
  background: #f8fbfd;
  border: 1px solid #e1ebf0;
  border-radius: 10px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.weekly-risk-list strong,
.weekly-detail-list strong {
  color: var(--text-primary);
}

.weekly-risk-list p,
.weekly-detail-list p,
.weekly-detail-list small {
  color: var(--text-secondary);
  margin: 0;
}

.weekly-detail-list article {
  grid-template-columns: auto minmax(0, 1fr);
}

.weekly-table-card .table {
  min-width: 520px;
}

.weekly-table-card .table .num {
  text-align: right;
}

.weekly-table-card td small {
  color: var(--text-secondary);
  display: block;
  font-size: 12px;
  margin-top: 3px;
}

@media (max-width: 1500px) {
  .weekly-summary-grid,
  .weekly-section-grid,
  .weekly-table-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  body.weekly-report-page .content {
    padding: 18px;
  }

  .weekly-hero,
  .weekly-summary-grid,
  .weekly-section-grid,
  .weekly-top-grid,
  .weekly-table-grid,
  .weekly-detail-grid {
    grid-template-columns: 1fr;
  }

  .weekly-period-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .weekly-period-form .btn {
    width: 100%;
  }
}

.backup-readiness-page .backup-scope-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.backup-readiness-page .backup-scope-grid article {
  background: #f8fbfd;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.backup-readiness-page .backup-scope-grid h3 {
  color: var(--text-primary);
  font-size: 15px;
  margin: 0;
}

.backup-readiness-page .backup-scope-grid ul,
.backup-readiness-page .dbintel-facts {
  margin: 0;
}

.backup-readiness-page .backup-checklist-table td small {
  color: var(--text-secondary);
  display: block;
  font-size: 12px;
  margin-top: 4px;
}

.backup-readiness-page .backup-checklist-table input,
.backup-readiness-page .backup-checklist-table select,
.backup-readiness-page .backup-form-grid input,
.backup-readiness-page .backup-form-grid select,
.backup-readiness-page .backup-form-grid textarea {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-primary);
  min-height: 38px;
  padding: 9px 10px;
  width: 100%;
}

.backup-readiness-page .backup-form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.backup-readiness-page .backup-form-grid label {
  color: var(--text-secondary);
  display: grid;
  font-size: 12px;
  font-weight: 700;
  gap: 6px;
  text-transform: uppercase;
}

.backup-readiness-page .backup-form-grid .wide {
  grid-column: span 2;
}

.backup-readiness-page .backup-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.automated-backups-page .backup-action-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.automated-backups-page .backup-action-card {
  background: #f8fbfd;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  display: grid;
  gap: 10px;
  padding: 16px;
}

.automated-backups-page .backup-action-card h3 {
  color: var(--text-primary);
  font-size: 16px;
  margin: 0;
}

.automated-backups-page .backup-action-card p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
  min-height: 58px;
}

.automated-backups-page .backup-history-table td {
  vertical-align: top;
}

.automated-backups-page .backup-history-table td small {
  color: var(--text-secondary);
  display: block;
  font-size: 12px;
  line-height: 1.45;
  margin-top: 4px;
}

.automated-backups-page .backup-history-table .btn {
  margin: 0 4px 4px 0;
}

.automated-backups-page .backup-note-form {
  display: grid;
  gap: 8px;
  min-width: 210px;
}

.automated-backups-page .backup-note-form textarea {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-primary);
  min-height: 56px;
  padding: 8px 10px;
  resize: vertical;
  width: 100%;
}

.automated-backups-page .backup-inline-check {
  align-items: center;
  color: var(--text-secondary);
  display: inline-flex;
  font-size: 12px;
  gap: 7px;
}

.automated-backups-page .backup-inline-check input {
  height: 16px;
  width: 16px;
}

.restore-assistant-page .restore-detail-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.restore-assistant-page .restore-detail-grid article {
  background: #f8fbfd;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.restore-assistant-page .restore-detail-grid h3 {
  color: var(--text-primary);
  font-size: 15px;
  margin: 0;
}

.restore-assistant-page .dbintel-table tr.is-selected-row {
  background: #fff7fd;
}

.restore-assistant-page .restore-checklist-form select,
.restore-assistant-page .restore-checklist-form input,
.restore-assistant-page .restore-test-form input,
.restore-assistant-page .restore-test-form select,
.restore-assistant-page .restore-test-form textarea {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-primary);
  min-height: 38px;
  padding: 9px 10px;
  width: 100%;
}

.restore-assistant-page .restore-checklist-form td small,
.restore-assistant-page .restore-test-form td small {
  color: var(--text-secondary);
  display: block;
  font-size: 12px;
  margin-top: 4px;
}

.restore-assistant-page .inline-form {
  display: inline-flex;
  margin-top: 6px;
}

.cyber-security-page .security-table td small {
  color: var(--text-secondary);
  display: block;
  font-size: 12px;
  line-height: 1.45;
  margin-top: 5px;
  max-width: 520px;
  word-break: break-word;
}

.cyber-security-page .security-filter-bar {
  align-items: end;
}

.cyber-security-page .dbintel-table code {
  white-space: normal;
  word-break: break-word;
}

.cyber-security-page .dbintel-sql-box {
  min-height: 420px;
}

.incident-response-page .incident-form-grid,
.incident-response-page .incident-inline-form {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.incident-response-page .incident-form-grid label,
.incident-response-page .incident-inline-form label {
  color: var(--text-secondary);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  text-transform: uppercase;
}

.incident-response-page .incident-form-grid input,
.incident-response-page .incident-form-grid select,
.incident-response-page .incident-form-grid textarea,
.incident-response-page .incident-inline-form input,
.incident-response-page .incident-inline-form select,
.incident-response-page .incident-inline-form textarea,
.incident-response-page #checklist input,
.incident-response-page #checklist select {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-primary);
  min-height: 38px;
  padding: 9px 10px;
  width: 100%;
}

.incident-response-page .incident-form-grid .wide,
.incident-response-page .incident-inline-form .wide {
  grid-column: 1 / -1;
}

.incident-response-page .incident-textarea {
  min-height: 420px;
}

.monitoring-alerts-page .monitoring-preferences-form input[type="email"],
.monitoring-alerts-page .monitoring-preferences-form input[type="time"],
.monitoring-alerts-page .monitoring-preferences-form select {
  min-width: 120px;
  width: 100%;
}

.monitoring-alerts-page .inline-form {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.monitoring-alerts-page .dbintel-code-block {
  white-space: pre-wrap;
  word-break: break-word;
}

.deployment-release-foundation-page .deployment-foundation-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.deployment-release-foundation-page .deployment-foundation-nav .deployment-foundation-more {
  display: inline-block;
  position: relative;
}

.deployment-release-foundation-page .deployment-foundation-more-trigger {
  align-items: center;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  min-height: 36px;
  padding: 0 13px;
  text-transform: uppercase;
}

.deployment-release-foundation-page .deployment-foundation-more-trigger::-webkit-details-marker {
  display: none;
}

.deployment-release-foundation-page .deployment-foundation-more.is-active .deployment-foundation-more-trigger,
.deployment-release-foundation-page .deployment-foundation-more-trigger:hover {
  background: #fff0f7;
  border-color: rgba(219, 39, 119, 0.34);
  color: #a41462;
}

.deployment-release-foundation-page .deployment-foundation-nav .deployment-action-menu-panel {
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  left: 0;
  max-width: min(520px, calc(100vw - 48px));
  right: auto;
  width: max-content;
}

.deployment-release-foundation-page .deployment-foundation-nav .deployment-action-menu-panel a {
  box-shadow: none;
  justify-content: flex-start;
  min-height: 34px;
  white-space: nowrap;
}

.deployment-release-foundation-page .deployment-foundation-actions {
  align-items: center;
  justify-content: space-between;
}

.deployment-release-foundation-page .deployment-action-menu {
  display: inline-block;
  position: relative;
}

.deployment-release-foundation-page .deployment-action-menu summary {
  cursor: pointer;
  list-style: none;
}

.deployment-release-foundation-page .deployment-action-menu summary::-webkit-details-marker {
  display: none;
}

.deployment-release-foundation-page .deployment-action-menu-panel {
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 8px;
  min-width: 190px;
  padding: 10px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
}

.deployment-release-foundation-page .form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.deployment-release-foundation-page .form-grid label {
  color: var(--text-muted);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.deployment-release-foundation-page .form-grid input,
.deployment-release-foundation-page .form-grid select {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-primary);
  min-height: 38px;
  padding: 9px 10px;
  text-transform: none;
}

.deployment-release-foundation-page .checkbox-row {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.deployment-release-foundation-page .deployment-upload-panel,
.deployment-release-foundation-page .deployment-upload-confirm-panel,
.deployment-release-foundation-page .deployment-upload-progress,
.deployment-release-foundation-page .deployment-dbsync-panel,
.deployment-release-foundation-page .deployment-dbsync-progress {
  margin-top: 16px;
}

.deployment-release-foundation-page .deployment-upload-confirmations,
.deployment-release-foundation-page .deployment-dbsync-confirmations {
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.deployment-release-foundation-page .deployment-dbsync-hero .deployment-issue-grid,
.deployment-release-foundation-page .deployment-dbsync-panel .dbintel-actions {
  margin-top: 16px;
}

.deployment-release-foundation-page .deployment-dbsync-subpanel {
  background: rgba(248, 251, 253, 0.84);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.deployment-release-foundation-page .deployment-baseline-action-card {
  align-items: center;
  background: linear-gradient(90deg, rgba(255, 247, 237, 0.96), rgba(255, 251, 235, 0.72));
  border: 1px solid rgba(217, 119, 6, 0.24);
  border-radius: 10px;
  color: #7c4a03;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  margin-top: 16px;
  padding: 16px;
}

.deployment-release-foundation-page .deployment-baseline-action-card > div {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.deployment-release-foundation-page .deployment-baseline-action-card > div > span {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(217, 119, 6, 0.22);
  border-radius: 999px;
  color: #d97706;
  display: inline-flex;
  flex: 0 0 auto;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.deployment-release-foundation-page .deployment-baseline-action-card strong {
  color: #7c4a03;
  display: block;
  font-size: 14px;
  font-weight: 950;
}

.deployment-release-foundation-page .deployment-baseline-action-card p {
  color: #8a5a14;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  margin: 2px 0 0;
}

.deployment-release-foundation-page .deployment-baseline-action-card .checkbox-row {
  margin-top: 0;
  white-space: nowrap;
}

.deployment-release-foundation-page .deployment-upload-plan-table td {
  vertical-align: top;
}

.deployment-release-foundation-page .deployment-upload-progress-track {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
  margin: 8px 0 18px;
}

.deployment-release-foundation-page .deployment-upload-progress-track span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #ec4899, #8b5cf6);
  transition: width 180ms ease;
}

.deployment-release-foundation-page .deployment-upload-live-log {
  min-height: 180px;
  max-height: 320px;
  overflow: auto;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #07131f;
  color: #d8efff;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.deployment-release-foundation-page .deployment-upload-hero .deployment-issue-grid,
.deployment-release-foundation-page .deployment-upload-progress + .card .deployment-issue-grid {
  margin-top: 16px;
}

.deployment-release-foundation-page .deployment-page-head {
  align-items: center;
  display: flex;
  justify-content: flex-end;
  margin: -64px 0 34px;
  min-height: 42px;
  position: relative;
  z-index: 2;
}

.deployment-release-foundation-page .deployment-top-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.deployment-release-foundation-page .deployment-settings-trigger {
  min-height: 42px;
}

.deployment-release-foundation-page .deployment-settings-trigger:hover {
  transform: translateY(-1px);
}

.deployment-release-foundation-page .deployment-draft-status-card {
  align-items: center;
  background: #fff;
  border: 1px solid #dbe4ee;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  margin-bottom: 14px;
  padding: 16px 18px;
}

.deployment-release-foundation-page .deployment-draft-status-card > div:first-child {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.deployment-release-foundation-page .deployment-draft-status-card strong {
  color: #102331;
  display: block;
  font-size: 18px;
  font-weight: 900;
}

.deployment-release-foundation-page .deployment-draft-status-card small {
  color: #5b6f7d;
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}

.deployment-release-foundation-page .deployment-draft-icon {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.deployment-release-foundation-page .deployment-draft-status-card.is-ready .deployment-draft-icon {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.deployment-release-foundation-page .deployment-draft-status-card.is-missing .deployment-draft-icon {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

.deployment-release-foundation-page .deployment-draft-profile {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(78px, 1fr));
  margin: 0;
}

.deployment-release-foundation-page .deployment-draft-profile div {
  background: #f8fbfd;
  border: 1px solid #e4edf5;
  border-radius: 10px;
  padding: 8px 10px;
}

.deployment-release-foundation-page .deployment-draft-profile dt {
  color: #617483;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin: 0 0 2px;
  text-transform: uppercase;
}

.deployment-release-foundation-page .deployment-draft-profile dd {
  color: #102331;
  font-size: 13px;
  font-weight: 900;
  margin: 0;
}

.deployment-release-foundation-page .deployment-advanced-menu .deployment-action-menu-panel {
  min-width: 220px;
}

.deployment-release-foundation-page .deployment-safety-banner {
  align-items: flex-start;
  background: linear-gradient(90deg, rgba(255, 247, 237, 0.96), rgba(255, 251, 235, 0.7));
  border-color: rgba(217, 119, 6, 0.22);
  color: #7c4a03;
  gap: 12px;
}

.deployment-release-foundation-page .deployment-safety-banner span {
  display: block;
  margin-top: 3px;
}

.deployment-release-foundation-page .deployment-wizard-stepper {
  align-items: center;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #e6eaf0;
  border-radius: 9px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.045);
  display: grid;
  gap: 0;
  grid-template-columns: minmax(130px, 1fr) 32px minmax(130px, 1fr) 32px minmax(130px, 1fr) 32px minmax(130px, 1fr) 32px minmax(130px, 1fr);
  margin: 0 0 20px;
  min-height: 58px;
  overflow: hidden;
  padding: 0 16px;
}

.deployment-release-foundation-page .deployment-wizard-step {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  color: #475569;
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 58px;
  min-width: 0;
  padding: 0 10px 0 0;
  text-align: left;
  text-decoration: none;
}

.deployment-release-foundation-page .deployment-wizard-step:hover {
  color: #b51aa2;
}

.deployment-release-foundation-page .deployment-wizard-step.is-active {
  color: #b51aa2;
}

.deployment-release-foundation-page .deployment-step-number {
  align-items: center;
  background: #fff;
  border: 1px solid #d9e0ea;
  border-radius: 999px;
  color: #334155;
  display: flex;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 800;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.deployment-release-foundation-page .deployment-wizard-step.is-active .deployment-step-number {
  background: linear-gradient(135deg, #b516a5, #de3cc4);
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(181, 26, 162, 0.22);
  color: #fff;
}

.deployment-release-foundation-page .deployment-step-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.deployment-release-foundation-page .deployment-step-title {
  color: #1f2937;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
}

.deployment-release-foundation-page .deployment-step-subtitle {
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deployment-release-foundation-page .deployment-step-arrow {
  color: #aab4c2;
  display: flex;
  font-size: 24px;
  font-weight: 300;
  justify-content: center;
  line-height: 1;
  transform: translateY(-1px);
}

.deployment-release-foundation-page .deployment-release-status-card {
  background: #fff;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  display: grid;
  gap: 0;
  grid-template-columns: 230px minmax(0, 1fr);
  margin: 0 0 18px;
  padding: 18px 18px 16px;
}

.deployment-release-foundation-page .deployment-release-status-main {
  align-items: flex-start;
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 0 22px 0 4px;
}

.deployment-release-foundation-page .deployment-release-status-icon {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  margin-top: 22px;
  width: 32px;
}

.deployment-release-foundation-page .deployment-release-status-icon svg {
  height: 17px;
  width: 17px;
}

.deployment-release-foundation-page .deployment-release-status-icon.is-blocked {
  background: #fff1f3;
  border: 1px solid #fecdd3;
  color: #e11d48;
}

.deployment-release-foundation-page .deployment-release-status-icon.is-ready {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #059669;
}

.deployment-release-foundation-page .deployment-release-status-label,
.deployment-release-foundation-page .deployment-release-status-metrics span,
.deployment-release-foundation-page .deployment-release-mode-metric > span {
  color: #475569;
  display: block;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.15;
}

.deployment-release-foundation-page .deployment-release-status-main strong {
  display: block;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.05;
  margin: 8px 0 12px;
}

.deployment-release-foundation-page .deployment-release-status-main strong.is-blocked {
  color: #e11d48;
}

.deployment-release-foundation-page .deployment-release-status-main strong.is-ready {
  color: #059669;
}

.deployment-release-foundation-page .deployment-release-status-main small {
  color: #64748b;
  display: block;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 14px;
}

.deployment-release-foundation-page .deployment-release-status-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.deployment-release-foundation-page .deployment-release-status-metrics > div {
  border-left: 1px solid #dbe4ee;
  min-height: 70px;
  min-width: 0;
  padding: 3px 22px 0;
}

.deployment-release-foundation-page .deployment-release-status-metrics strong {
  align-items: center;
  color: #0f172a;
  display: flex;
  gap: 7px;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
  margin-top: 11px;
  min-width: 0;
}

.deployment-release-foundation-page .deployment-release-status-metrics small {
  color: #64748b;
  display: block;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 9px;
}

.deployment-release-foundation-page .deployment-release-mode-metric strong {
  font-size: 13px;
  line-height: 1.2;
}

.deployment-release-foundation-page .deployment-release-mode-icon {
  align-items: center;
  background: #d1fae5;
  border-radius: 999px;
  color: #059669;
  display: inline-flex;
  flex: 0 0 auto;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.deployment-release-foundation-page .deployment-release-mode-icon svg {
  height: 14px;
  width: 14px;
}

.deployment-release-foundation-page .deployment-release-mode-banner {
  align-items: center;
  background: linear-gradient(90deg, #e9fff3, #ecfff5);
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  color: #065f46;
  display: grid;
  gap: 14px;
  grid-column: 2;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin-top: 14px;
  min-height: 50px;
  padding: 10px 14px;
}

.deployment-release-foundation-page .deployment-release-mode-banner-icon {
  align-items: center;
  background: #d1fae5;
  border: 1px solid #86efac;
  border-radius: 999px;
  color: #059669;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.deployment-release-foundation-page .deployment-release-mode-banner-icon svg {
  height: 16px;
  width: 16px;
}

.deployment-release-foundation-page .deployment-release-mode-banner strong {
  color: #047857;
  display: block;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.deployment-release-foundation-page .deployment-release-mode-banner small {
  color: #047857;
  display: block;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 3px;
}

.deployment-release-foundation-page .deployment-release-workspace {
  display: grid;
  gap: 12px;
  grid-template-columns: 190px minmax(0, 1fr) 280px;
  margin: 0 0 18px;
}

.deployment-release-foundation-page .deployment-release-workspace-nav,
.deployment-release-foundation-page .deployment-release-plan-preview,
.deployment-release-foundation-page .deployment-release-sidecards > section {
  background: #fff;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.045);
}

.deployment-release-foundation-page .deployment-release-workspace-nav {
  display: grid;
  gap: 0;
  padding: 12px 0;
}

.deployment-release-foundation-page .deployment-release-workspace-nav a,
.deployment-release-foundation-page .deployment-release-workspace-nav button {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  color: #0f172a;
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 2px 12px;
  grid-template-columns: 24px minmax(0, 1fr);
  min-height: 50px;
  padding: 9px 14px;
  position: relative;
  text-align: left;
  text-decoration: none;
}

.deployment-release-foundation-page .deployment-release-workspace-nav a::before,
.deployment-release-foundation-page .deployment-release-workspace-nav button::before {
  background: transparent;
  border-radius: 999px;
  content: "";
  inset: 8px auto 8px 0;
  position: absolute;
  width: 3px;
}

.deployment-release-foundation-page .deployment-release-workspace-nav a.is-active::before {
  background: #d11bb5;
}

.deployment-release-foundation-page .deployment-release-workspace-nav a.is-active {
  background: linear-gradient(90deg, rgba(209, 27, 181, 0.08), transparent);
  color: #c026a9;
}

.deployment-release-foundation-page .deployment-release-workspace-nav span {
  align-items: center;
  color: #0f172a;
  display: flex;
  grid-row: span 2;
  justify-content: center;
}

.deployment-release-foundation-page .deployment-release-workspace-nav svg {
  height: 17px;
  width: 17px;
}

.deployment-release-foundation-page .deployment-release-workspace-nav strong {
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
}

.deployment-release-foundation-page .deployment-release-workspace-nav small {
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.deployment-release-foundation-page .deployment-release-plan-preview {
  min-width: 0;
  overflow: hidden;
}

.deployment-release-foundation-page .deployment-release-plan-preview > header {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 18px 20px 12px;
}

.deployment-release-foundation-page .deployment-release-plan-preview h2,
.deployment-release-foundation-page .deployment-release-sidecards h3 {
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  margin: 0;
}

.deployment-release-foundation-page .deployment-release-plan-preview p {
  color: #475569;
  font-size: 10px;
  font-weight: 700;
  margin: 6px 0 0;
}

.deployment-release-foundation-page .deployment-release-preview-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.deployment-release-foundation-page .deployment-release-icon-button {
  min-width: 34px;
  padding-inline: 8px;
}

.deployment-release-foundation-page .deployment-release-plan-table-wrap {
  overflow-x: auto;
}

.deployment-release-foundation-page .deployment-release-plan-table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

.deployment-release-foundation-page .deployment-release-plan-table th,
.deployment-release-foundation-page .deployment-release-plan-table td {
  border-top: 1px solid #e6edf5;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  padding: 11px 16px;
  text-align: left;
  vertical-align: middle;
}

.deployment-release-foundation-page .deployment-release-plan-table th {
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.deployment-release-foundation-page .deployment-file-type-badge {
  background: #dcfce7;
  border-radius: 5px;
  color: #059669;
  display: inline-flex;
  font-size: 9px;
  font-weight: 900;
  margin-right: 10px;
  min-width: 28px;
  padding: 4px 5px;
  text-align: center;
  vertical-align: middle;
}

.deployment-release-foundation-page .deployment-release-file-path {
  color: #334155;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 10px;
}

.deployment-release-foundation-page .deployment-plan-status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 10px;
  font-weight: 900;
  padding: 4px 9px;
}

.deployment-release-foundation-page .deployment-plan-status.is-added {
  background: #dcfce7;
  color: #047857;
}

.deployment-release-foundation-page .deployment-plan-status.is-changed {
  background: #ffedd5;
  color: #b45309;
}

.deployment-release-foundation-page .deployment-release-show-all {
  margin: 12px 0 16px 18px;
}

.deployment-release-foundation-page .deployment-release-sidecards {
  display: grid;
  gap: 12px;
}

.deployment-release-foundation-page .deployment-release-sidecards > section {
  padding: 16px;
}

.deployment-release-foundation-page .deployment-release-sidecards header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.deployment-release-foundation-page .deployment-release-sidecards dl {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
}

.deployment-release-foundation-page .deployment-release-sidecards dl div {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.deployment-release-foundation-page .deployment-release-sidecards dt {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.deployment-release-foundation-page .deployment-release-sidecards dd {
  color: #0f172a;
  font-size: 11px;
  font-weight: 900;
  margin: 0;
  text-align: right;
}

.deployment-release-foundation-page .deployment-release-count-list dd {
  font-size: 14px;
}

.deployment-release-foundation-page .deployment-review-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 360px;
  margin-top: 16px;
}

.deployment-release-foundation-page .deployment-review-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.deployment-release-foundation-page .deployment-review-sidebar {
  align-content: start;
  display: grid;
  gap: 16px;
}

.deployment-release-foundation-page .deployment-review-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  min-width: 0;
  padding: 22px 26px;
}

.deployment-release-foundation-page .deployment-review-card h2 {
  color: #102331;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0;
}

.deployment-release-foundation-page .deployment-review-card p {
  color: #536879;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.55;
  margin: 12px 0 18px;
}

.deployment-release-foundation-page .deployment-review-summary header {
  border-bottom: 1px solid #dbe4ee;
  margin-bottom: 14px;
  padding-bottom: 14px;
}

.deployment-release-foundation-page .deployment-review-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.deployment-release-foundation-page .deployment-review-summary-grid > div {
  align-items: center;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  padding: 0 22px;
}

.deployment-release-foundation-page .deployment-review-summary-grid > div + div {
  border-left: 1px solid #dbe4ee;
}

.deployment-release-foundation-page .deployment-review-summary-icon {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 20px;
  font-weight: 900;
  grid-row: span 3;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.deployment-release-foundation-page .deployment-review-summary-icon svg {
  height: 19px;
  width: 19px;
}

.deployment-release-foundation-page .deployment-review-summary-icon.is-added {
  background: #dff7e9;
  color: #159947;
}

.deployment-release-foundation-page .deployment-review-summary-icon.is-changed {
  background: #fff1d6;
  color: #d97706;
}

.deployment-release-foundation-page .deployment-review-summary-icon.is-removed {
  background: #fee2e2;
  color: #ef4444;
}

.deployment-release-foundation-page .deployment-review-summary-icon.is-blocked {
  background: #ffe2ea;
  color: #e11d48;
}

.deployment-release-foundation-page .deployment-review-summary-icon.is-warning {
  background: #fff1d6;
  color: #d97706;
}

.deployment-release-foundation-page .deployment-review-summary-icon.is-manual {
  background: #dbeafe;
  color: #2563eb;
}

.deployment-release-foundation-page .deployment-review-summary-grid span:not(.deployment-review-summary-icon),
.deployment-release-foundation-page .deployment-review-summary-grid small {
  color: #536879;
  font-size: 12px;
  font-weight: 800;
}

.deployment-release-foundation-page .deployment-review-summary-grid strong {
  color: #102331;
  font-size: 24px;
  font-weight: 950;
  line-height: 1.05;
}

.deployment-release-foundation-page .deployment-review-section {
  padding: 0;
  overflow: hidden;
}

.deployment-release-foundation-page .deployment-review-section > header {
  align-items: center;
  border-bottom: 1px solid #dbe4ee;
  display: flex;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 26px;
}

.deployment-release-foundation-page .deployment-review-section > header h2 {
  align-items: center;
  display: inline-flex;
  gap: 10px;
}

.deployment-release-foundation-page .deployment-review-section > header h2 span {
  align-items: center;
  background: linear-gradient(135deg, var(--ss-magenta-700), var(--ss-magenta-500));
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.deployment-release-foundation-page .deployment-review-section > header small {
  color: #334c5f;
  font-size: 13px;
  font-weight: 800;
}

.deployment-release-foundation-page .deployment-review-table {
  border-collapse: collapse;
  width: 100%;
}

.deployment-release-foundation-page .deployment-review-table th,
.deployment-release-foundation-page .deployment-review-table td {
  border-bottom: 1px solid #e5edf4;
  color: #263d50;
  font-size: 13px;
  font-weight: 750;
  padding: 13px 26px;
  text-align: left;
  vertical-align: middle;
}

.deployment-release-foundation-page .deployment-review-table th {
  color: #63778a;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.deployment-release-foundation-page .deployment-review-pager {
  align-items: center;
  border-top: 1px solid #e5edf4;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  padding: 14px 26px;
}

.deployment-release-foundation-page .deployment-review-pager span {
  color: #63778a;
  font-size: 12px;
  font-weight: 900;
  margin-right: 4px;
}

.deployment-release-foundation-page .deployment-review-pager button {
  align-items: center;
  background: #fff;
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  color: #334c5f;
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  height: 32px;
  justify-content: center;
  min-width: 34px;
  padding: 0 10px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.deployment-release-foundation-page .deployment-review-pager button:hover {
  border-color: rgba(209, 32, 171, 0.45);
  color: var(--ss-magenta-700);
  transform: translateY(-1px);
}

.deployment-release-foundation-page .deployment-review-pager button.is-active {
  background: linear-gradient(135deg, var(--ss-magenta-700), var(--ss-magenta-500));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px rgba(209, 32, 171, 0.18);
}

.deployment-release-foundation-page .deployment-review-warning-list {
  display: grid;
}

.deployment-release-foundation-page .deployment-review-warning-list > div {
  align-items: center;
  border-bottom: 1px solid #e5edf4;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 48px;
  padding: 0 26px;
}

.deployment-release-foundation-page .deployment-review-warning-list > div:last-child,
.deployment-release-foundation-page .deployment-review-table tr:last-child td {
  border-bottom: 0;
}

.deployment-release-foundation-page .deployment-review-warning-list p {
  color: #334c5f;
  font-size: 13px;
  font-weight: 750;
  margin: 0;
}

.deployment-release-foundation-page .deployment-review-warning-icon {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.deployment-release-foundation-page .deployment-review-warning-icon svg {
  height: 15px;
  width: 15px;
}

.deployment-release-foundation-page .deployment-review-warning-icon.medium,
.deployment-release-foundation-page .deployment-review-warning-icon.high {
  background: #fff1d6;
  color: #d97706;
}

.deployment-release-foundation-page .deployment-review-warning-icon.low {
  background: #dbeafe;
  color: #2563eb;
}

.deployment-release-foundation-page .deployment-review-warning-list em {
  border-radius: 8px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  padding: 5px 10px;
}

.deployment-release-foundation-page .deployment-review-warning-list em.medium,
.deployment-release-foundation-page .deployment-review-warning-list em.high {
  background: #fff1d6;
  color: #c46600;
}

.deployment-release-foundation-page .deployment-review-warning-list em.low {
  background: #dbeafe;
  color: #2563eb;
}

.deployment-release-foundation-page .deployment-review-collapsed details {
  padding: 14px 26px 20px;
}

.deployment-release-foundation-page .deployment-review-explainer {
  border-bottom: 1px solid #e5edf4;
  padding: 18px 26px 16px;
}

.deployment-release-foundation-page .deployment-review-explainer strong {
  color: #102331;
  display: block;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.3;
  margin: 0 0 6px;
}

.deployment-release-foundation-page .deployment-review-explainer p {
  color: #536879;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
  margin: 0;
}

.deployment-release-foundation-page .deployment-review-collapsed summary {
  align-items: center;
  background: #fff;
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  color: #334c5f;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  list-style: none;
  min-height: 46px;
  padding: 0 12px;
}

.deployment-release-foundation-page .deployment-review-collapsed summary strong {
  color: #334c5f;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.deployment-release-foundation-page .deployment-review-collapsed summary > svg {
  color: #334c5f;
  height: 18px;
  width: 18px;
}

.deployment-release-foundation-page .deployment-review-collapsed summary::-webkit-details-marker {
  display: none;
}

.deployment-release-foundation-page .deployment-review-blocked-list {
  display: grid;
  gap: 8px;
  padding: 12px 4px 2px;
}

.deployment-release-foundation-page .deployment-review-blocked-list p {
  display: grid;
  gap: 3px;
  margin: 0;
}

.deployment-release-foundation-page .deployment-review-blocked-list small {
  color: #6b7f90;
}

.deployment-release-foundation-page .deployment-review-sidebar .deployment-review-card {
  padding: 22px;
}

.deployment-release-foundation-page .deployment-review-sidebar dl {
  display: grid;
  gap: 18px;
  margin: 24px 0;
}

.deployment-release-foundation-page .deployment-review-sidebar dl div {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.deployment-release-foundation-page .deployment-review-sidebar dt {
  color: #5f7485;
  font-size: 13px;
  font-weight: 800;
}

.deployment-release-foundation-page .deployment-review-sidebar dd {
  color: #102331;
  font-size: 13px;
  font-weight: 900;
  margin: 0;
  text-align: right;
}

.deployment-release-foundation-page .deployment-review-status-pill {
  background: #fff1d6;
  border-radius: 8px;
  color: #c46600;
  display: inline-flex;
  padding: 5px 10px;
}

.deployment-release-foundation-page .deployment-uploadplan-kpis {
  background: #fff;
  border: 1px solid #dce6ef;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(15, 35, 49, 0.05);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 16px;
  overflow: hidden;
}

.deployment-release-foundation-page .deployment-uploadplan-kpis > div {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 92px;
  padding: 18px 22px;
}

.deployment-release-foundation-page .deployment-uploadplan-kpis > div + div {
  border-left: 1px solid #e1e9f0;
}

.deployment-release-foundation-page .deployment-uploadplan-kpis p {
  display: grid;
  gap: 3px;
  margin: 0;
}

.deployment-release-foundation-page .deployment-uploadplan-kpis small {
  color: #526a7c;
  font-size: 12px;
  font-weight: 900;
}

.deployment-release-foundation-page .deployment-uploadplan-kpis strong {
  color: #102331;
  font-size: 22px;
  font-weight: 950;
  line-height: 1.05;
}

.deployment-release-foundation-page .deployment-uploadplan-kpis em {
  color: #6d8192;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.deployment-release-foundation-page .deployment-uploadplan-kpi-icon {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.deployment-release-foundation-page .deployment-uploadplan-kpi-icon svg {
  height: 20px;
  width: 20px;
}

.deployment-release-foundation-page .deployment-uploadplan-kpi-icon.is-ready,
.deployment-release-foundation-page .deployment-uploadplan-kpi-icon.is-upload {
  background: #dff8e8;
  color: #138647;
}

.deployment-release-foundation-page .deployment-uploadplan-kpi-icon.is-manual {
  background: #e8f1ff;
  color: #2563eb;
}

.deployment-release-foundation-page .deployment-uploadplan-kpi-icon.is-blocked {
  background: #ffe1e7;
  color: #e11d48;
}

.deployment-release-foundation-page .deployment-uploadplan-kpi-icon.is-warning {
  background: #fff0d7;
  color: #d97706;
}

.deployment-release-foundation-page .deployment-uploadplan-kpi-icon.is-selected {
  background: #f1e4ff;
  color: #a21caf;
}

.deployment-release-foundation-page .deployment-uploadplan-layout {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 330px;
}

.deployment-release-foundation-page .deployment-uploadplan-table-card,
.deployment-release-foundation-page .deployment-uploadplan-sidecard {
  background: #fff;
  border: 1px solid #dce6ef;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(15, 35, 49, 0.05);
}

.deployment-release-foundation-page .deployment-uploadplan-table-card {
  overflow: hidden;
}

.deployment-release-foundation-page .deployment-uploadplan-card-head {
  align-items: center;
  border-bottom: 1px solid #e1e9f0;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  min-height: 76px;
  padding: 20px 24px 16px;
}

.deployment-release-foundation-page .deployment-uploadplan-card-head h2,
.deployment-release-foundation-page .deployment-uploadplan-sidecard h3 {
  color: #102331;
  font-size: 18px;
  font-weight: 950;
  margin: 0;
}

.deployment-release-foundation-page .deployment-uploadplan-card-head p,
.deployment-release-foundation-page .deployment-uploadplan-sidecard p {
  color: #526a7c;
  font-size: 13px;
  font-weight: 750;
  margin: 5px 0 0;
}

.deployment-release-foundation-page .deployment-uploadplan-export-actions,
.deployment-release-foundation-page .deployment-uploadplan-toolbar,
.deployment-release-foundation-page .deployment-uploadplan-toolbar-left,
.deployment-release-foundation-page .deployment-uploadplan-filters {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.deployment-release-foundation-page .deployment-uploadplan-toolbar {
  justify-content: space-between;
  padding: 14px 24px;
}

.deployment-release-foundation-page .deployment-uploadplan-toolbar-left {
  flex: 1 1 420px;
}

.deployment-release-foundation-page .deployment-uploadplan-search {
  align-items: center;
  background: #fff;
  border: 1px solid #dce6ef;
  border-radius: 8px;
  color: #6d8192;
  display: inline-flex;
  gap: 8px;
  min-height: 38px;
  min-width: min(340px, 100%);
  padding: 0 12px;
}

.deployment-release-foundation-page .deployment-uploadplan-search svg {
  height: 17px;
  width: 17px;
}

.deployment-release-foundation-page .deployment-uploadplan-search input {
  border: 0;
  color: #102331;
  font-weight: 500;
  min-width: 0;
  outline: 0;
  width: 100%;
}

.deployment-release-foundation-page .deployment-uploadplan-search input::placeholder {
  color: #6d7f8e;
  font-weight: 500;
}

.deployment-release-foundation-page .deployment-uploadplan-select-all {
  white-space: nowrap;
}

.deployment-release-foundation-page .deployment-uploadplan-filters button {
  align-items: center;
  background: #f8fbfd;
  border: 1px solid #dce6ef;
  border-radius: 8px;
  color: #314b5f;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
}

.deployment-release-foundation-page .deployment-uploadplan-filters button.is-active {
  background: #fff0f8;
  border-color: rgba(203, 39, 174, 0.3);
  color: #be1ca3;
}

.deployment-release-foundation-page .deployment-uploadplan-filters span {
  background: rgba(16, 35, 49, 0.08);
  border-radius: 999px;
  color: inherit;
  min-width: 24px;
  padding: 2px 7px;
  text-align: center;
}

.deployment-release-foundation-page .deployment-uploadplan-table-wrap {
  overflow-x: auto;
}

.deployment-release-foundation-page .deployment-uploadplan-table {
  border-collapse: collapse;
  min-width: 980px;
  width: 100%;
}

.deployment-release-foundation-page .deployment-uploadplan-table th,
.deployment-release-foundation-page .deployment-uploadplan-table td {
  border-bottom: 1px solid #e1e9f0;
  color: #243b4f;
  font-size: 13px;
  font-weight: 800;
  padding: 13px 18px;
  text-align: left;
  vertical-align: middle;
}

.deployment-release-foundation-page .deployment-uploadplan-table th {
  color: #65798b;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.deployment-release-foundation-page .deployment-uploadplan-table input[type="checkbox"] {
  accent-color: #c026b5;
  height: 16px;
  width: 16px;
}

.deployment-release-foundation-page .deployment-uploadplan-path {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.deployment-release-foundation-page .deployment-uploadplan-type,
.deployment-release-foundation-page .deployment-uploadplan-status {
  border-radius: 7px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  padding: 6px 9px;
}

.deployment-release-foundation-page .deployment-uploadplan-type {
  background: #e6f8ee;
  color: #0f8a47;
}

.deployment-release-foundation-page .deployment-uploadplan-type.is-css {
  background: #e4f0ff;
  color: #2563eb;
}

.deployment-release-foundation-page .deployment-uploadplan-type.is-js {
  background: #fff0cc;
  color: #b45309;
}

.deployment-release-foundation-page .deployment-uploadplan-type.is-svg {
  background: #f4e8ff;
  color: #9333ea;
}

.deployment-release-foundation-page .deployment-uploadplan-status.is-ready {
  background: #dff8e8;
  color: #138647;
}

.deployment-release-foundation-page .deployment-uploadplan-status.is-manual {
  background: #dbeafe;
  color: #1d4ed8;
}

.deployment-release-foundation-page .deployment-uploadplan-status.is-blocked {
  background: #ffe1e7;
  color: #d11d3f;
}

.deployment-release-foundation-page .deployment-uploadplan-table-foot {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 16px 24px 20px;
}

.deployment-release-foundation-page .deployment-uploadplan-table-foot span {
  color: #526a7c;
  font-size: 13px;
  font-weight: 800;
}

.deployment-release-foundation-page .deployment-uploadplan-pager {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.deployment-release-foundation-page .deployment-uploadplan-pager button {
  align-items: center;
  background: #fff;
  border: 0;
  border-radius: 8px;
  color: #314b5f;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  height: 36px;
  justify-content: center;
  min-width: 36px;
}

.deployment-release-foundation-page .deployment-uploadplan-pager button.is-active {
  background: #fff0f8;
  color: #be1ca3;
}

.deployment-release-foundation-page .deployment-uploadplan-pager button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.deployment-release-foundation-page .deployment-uploadplan-sidebar {
  display: grid;
  gap: 12px;
}

.deployment-release-foundation-page .deployment-uploadplan-sidecard {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.deployment-release-foundation-page .deployment-uploadplan-sidecard header {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.deployment-release-foundation-page .deployment-uploadplan-sidecard header h3 {
  margin-right: auto;
}

.deployment-release-foundation-page .deployment-uploadplan-sidecard > strong {
  color: #102331;
  font-size: 16px;
  font-weight: 950;
}

.deployment-release-foundation-page .deployment-uploadplan-sidecard dl {
  display: grid;
  gap: 11px;
  margin: 0;
}

.deployment-release-foundation-page .deployment-uploadplan-sidecard dl div {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.deployment-release-foundation-page .deployment-uploadplan-sidecard dt,
.deployment-release-foundation-page .deployment-uploadplan-sidecard dd {
  color: #526a7c;
  font-size: 13px;
  font-weight: 800;
  margin: 0;
}

.deployment-release-foundation-page .deployment-uploadplan-sidecard dd {
  color: #102331;
  font-weight: 950;
  text-align: right;
}

.deployment-release-foundation-page .deployment-uploadplan-sidecard dl div:last-child {
  border-top: 1px solid #e1e9f0;
  margin-top: 6px;
  padding-top: 12px;
}

.deployment-release-foundation-page .deployment-uploadplan-text-link {
  align-items: center;
  color: #102331;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  gap: 6px;
  text-decoration: none;
}

.deployment-release-foundation-page .deployment-approval-grid {
  align-items: stretch;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1.15fr) 330px;
  margin-bottom: 16px;
}

.deployment-release-foundation-page .deployment-approval-card,
.deployment-release-foundation-page .deployment-approval-files {
  background: #fff;
  border: 1px solid #dce6ef;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(15, 35, 49, 0.05);
}

.deployment-release-foundation-page .deployment-approval-card {
  display: grid;
  gap: 14px;
  padding: 22px 24px;
}

.deployment-release-foundation-page .deployment-approval-card header {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.deployment-release-foundation-page .deployment-approval-card header h2 {
  color: #102331;
  font-size: 18px;
  font-weight: 950;
  margin: 0 auto 0 0;
}

.deployment-release-foundation-page .deployment-approval-card > h2,
.deployment-release-foundation-page .deployment-approval-files h2 {
  color: #102331;
  font-size: 18px;
  font-weight: 950;
  margin: 0;
}

.deployment-release-foundation-page .deployment-approval-card > p {
  color: #526a7c;
  font-size: 13px;
  font-weight: 750;
  margin: -4px 0 4px;
}

.deployment-release-foundation-page .deployment-approval-summary dl,
.deployment-release-foundation-page .deployment-approval-side dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.deployment-release-foundation-page .deployment-approval-summary dl {
  border-bottom: 1px solid #e1e9f0;
  padding-bottom: 18px;
}

.deployment-release-foundation-page .deployment-approval-summary dl div,
.deployment-release-foundation-page .deployment-approval-side dl div {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.deployment-release-foundation-page .deployment-approval-summary dt,
.deployment-release-foundation-page .deployment-approval-side dt {
  color: #526a7c;
  font-size: 13px;
  font-weight: 800;
}

.deployment-release-foundation-page .deployment-approval-summary dd,
.deployment-release-foundation-page .deployment-approval-side dd {
  align-items: center;
  color: #102331;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  gap: 8px;
  justify-content: flex-end;
  margin: 0;
  text-align: right;
}

.deployment-release-foundation-page .deployment-approval-summary dd input[type="checkbox"] {
  accent-color: #2563eb;
  height: 16px;
  width: 16px;
}

.deployment-release-foundation-page .deployment-approval-summary dd svg {
  color: #16a34a;
  height: 16px;
  width: 16px;
}

.deployment-release-foundation-page .deployment-approval-note,
.deployment-release-foundation-page .deployment-approval-pass {
  align-items: center;
  color: #526a7c;
  display: flex;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  margin: 0;
}

.deployment-release-foundation-page .deployment-approval-note svg,
.deployment-release-foundation-page .deployment-approval-pass svg {
  color: #2563eb;
  height: 18px;
  width: 18px;
}

.deployment-release-foundation-page .deployment-approval-pass {
  color: #16a34a;
}

.deployment-release-foundation-page .deployment-approval-checks {
  display: grid;
  gap: 14px;
  margin: 4px 0 10px;
}

.deployment-release-foundation-page .deployment-approval-checks label {
  align-items: center;
  color: #243b4f;
  display: flex;
  font-size: 13px;
  font-weight: 850;
  gap: 12px;
}

.deployment-release-foundation-page .deployment-approval-checks input[type="checkbox"] {
  accent-color: #c026b5;
  height: 17px;
  width: 17px;
}

.deployment-release-foundation-page .deployment-approval-textarea {
  color: #526a7c;
  display: grid;
  font-size: 13px;
  font-weight: 900;
  gap: 8px;
}

.deployment-release-foundation-page .deployment-approval-textarea textarea {
  min-height: 76px;
  resize: vertical;
}

.deployment-release-foundation-page .deployment-approval-textarea small {
  color: #6d8192;
  font-weight: 800;
  justify-self: end;
}

.deployment-release-foundation-page .deployment-approval-side {
  display: grid;
  gap: 16px;
}

.deployment-release-foundation-page .deployment-approval-side .deployment-approval-card {
  align-content: start;
  gap: 16px;
}

.deployment-release-foundation-page .deployment-approval-files {
  overflow: hidden;
}

.deployment-release-foundation-page .deployment-approval-files > header {
  align-items: center;
  border-bottom: 1px solid #e1e9f0;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 18px 24px;
}

.deployment-release-foundation-page .deployment-approval-file-table {
  min-width: 960px;
}

.deployment-release-foundation-page .deployment-approval-file-table td:last-child {
  color: #526a7c;
  text-align: right;
  width: 42px;
}

.deployment-release-foundation-page .deployment-uploadjob-hidden-start {
  display: none;
}

.deployment-release-foundation-page .deployment-uploadjob-card {
  background: #fff;
  border: 1px solid #dce6ef;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(15, 35, 49, 0.05);
  margin-top: 16px;
  overflow: hidden;
  padding: 20px 24px;
}

.deployment-release-foundation-page .deployment-uploadjob-head {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.deployment-release-foundation-page .deployment-uploadjob-head h2 {
  color: #102331;
  font-size: 18px;
  font-weight: 950;
  margin: 0 0 14px;
}

.deployment-release-foundation-page .deployment-uploadjob-head p {
  align-items: center;
  color: #526a7c;
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 850;
  gap: 10px;
  margin: 0;
}

.deployment-release-foundation-page .deployment-uploadjob-head > strong {
  color: #071927;
  font-size: 26px;
  font-weight: 950;
  line-height: 1;
}

.deployment-release-foundation-page .deployment-uploadjob-dot {
  background: #16a34a;
  border-radius: 999px;
  display: inline-block;
  height: 9px;
  width: 9px;
}

.deployment-release-foundation-page .deployment-uploadjob-pill {
  background: #dff8e8;
  border-radius: 7px;
  color: #138647;
  display: inline-flex;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  padding: 6px 10px;
}

.deployment-release-foundation-page .deployment-uploadjob-track {
  background: #eef3f7;
  border-radius: 999px;
  height: 14px;
  margin: 18px 0 12px;
  overflow: hidden;
}

.deployment-release-foundation-page .deployment-uploadjob-track span {
  background: #16b857;
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width 180ms ease;
}

.deployment-release-foundation-page .deployment-uploadjob-current-file {
  align-items: flex-start;
  background: #f8fbfd;
  border: 1px solid #dce6ef;
  border-radius: 10px;
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
  padding: 11px 13px;
}

.deployment-release-foundation-page .deployment-uploadjob-current-file span {
  align-items: center;
  color: #607689;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  gap: 6px;
  text-transform: uppercase;
}

.deployment-release-foundation-page .deployment-uploadjob-current-file span svg {
  height: 15px;
  width: 15px;
}

.deployment-release-foundation-page .deployment-uploadjob-current-file strong {
  color: #0f3765;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: normal;
}

.deployment-release-foundation-page .deployment-uploadjob-meta {
  align-items: center;
  color: #536a7d;
  display: flex;
  font-size: 12px;
  font-weight: 850;
  justify-content: space-between;
  margin-bottom: 20px;
}

.deployment-release-foundation-page .deployment-uploadjob-meta strong {
  color: #314b5f;
}

.deployment-release-foundation-page .deployment-uploadjob-blockers {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #7c2d12;
  margin: 0 0 18px;
  padding: 12px 14px;
}

.deployment-release-foundation-page .deployment-uploadjob-blockers strong {
  color: #7c2d12;
  display: block;
  font-size: 13px;
  font-weight: 950;
  margin-bottom: 6px;
}

.deployment-release-foundation-page .deployment-uploadjob-blockers p {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  margin: 4px 0 0;
}

.deployment-release-foundation-page .deployment-uploadjob-summary {
  align-items: center;
  background: linear-gradient(135deg, #ecfdf3 0%, #ffffff 75%);
  border: 1px solid #b9f0ca;
  border-radius: 12px;
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin: 0 0 18px;
  padding: 14px 16px;
}

.deployment-release-foundation-page .deployment-uploadjob-summary-icon {
  align-items: center;
  background: #dff8e8;
  border-radius: 999px;
  color: #16a34a;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.deployment-release-foundation-page .deployment-uploadjob-summary-icon svg {
  height: 19px;
  width: 19px;
}

.deployment-release-foundation-page .deployment-uploadjob-summary strong {
  color: #102331;
  display: block;
  font-size: 15px;
  font-weight: 950;
  margin: 0 0 4px;
}

.deployment-release-foundation-page .deployment-uploadjob-summary p {
  color: #526a7c;
  font-size: 12px;
  font-weight: 800;
  margin: 0;
}

.deployment-release-foundation-page .deployment-uploadjob-stats {
  border: 1px solid #dce6ef;
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  margin-bottom: 18px;
  overflow: hidden;
}

.deployment-release-foundation-page .deployment-uploadjob-stats > div {
  align-items: center;
  display: grid;
  gap: 6px 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 72px;
  min-width: 0;
  padding: 14px 16px;
}

.deployment-release-foundation-page .deployment-uploadjob-stats > div + div {
  border-left: 1px solid #dce6ef;
}

.deployment-release-foundation-page .deployment-uploadjob-stats span {
  color: #526a7c;
  font-size: 12px;
  font-weight: 850;
}

.deployment-release-foundation-page .deployment-uploadjob-stats strong {
  color: #102331;
  font-size: 19px;
  font-weight: 950;
  min-width: 0;
}

.deployment-release-foundation-page .deployment-uploadjob-stats em {
  align-items: center;
  background: #f2f6fa;
  border-radius: 999px;
  color: #7890a1;
  display: inline-flex;
  font-style: normal;
  grid-row: 1 / span 2;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.deployment-release-foundation-page .deployment-uploadjob-stats em svg {
  height: 16px;
  width: 16px;
}

.deployment-release-foundation-page .deployment-uploadjob-stats em.is-green {
  background: #dff8e8;
  color: #16a34a;
}

.deployment-release-foundation-page .deployment-uploadjob-stats em.is-red {
  background: #ffe1e7;
  color: #e11d48;
}

.deployment-release-foundation-page .deployment-uploadjob-stats em.is-blue {
  background: #e4f0ff;
  color: #2563eb;
}

.deployment-release-foundation-page .deployment-uploadjob-stats em.is-orange {
  background: #fff0d7;
  color: #d97706;
}

.deployment-release-foundation-page .deployment-uploadjob-path {
  color: #0f3765;
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
  width: 100%;
}

.deployment-release-foundation-page .deployment-uploadjob-log {
  border-top: 1px solid #e1e9f0;
  padding-top: 16px;
}

.deployment-release-foundation-page .deployment-uploadjob-log header h3 {
  color: #102331;
  font-size: 16px;
  font-weight: 950;
  margin: 0 0 8px;
}

.deployment-release-foundation-page .deployment-uploadjob-log table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
}

.deployment-release-foundation-page .deployment-uploadjob-log th,
.deployment-release-foundation-page .deployment-uploadjob-log td {
  border-bottom: 1px solid #e1e9f0;
  color: #243b4f;
  font-size: 12px;
  font-weight: 850;
  min-height: 40px;
  padding: 8px 12px;
  text-align: left;
  vertical-align: middle;
}

.deployment-release-foundation-page .deployment-uploadjob-log th:first-child,
.deployment-release-foundation-page .deployment-uploadjob-log td:first-child {
  padding-left: 0;
  width: 120px;
}

.deployment-release-foundation-page .deployment-uploadjob-log th:nth-child(2),
.deployment-release-foundation-page .deployment-uploadjob-log td:nth-child(2) {
  width: 240px;
}

.deployment-release-foundation-page .deployment-uploadjob-log th:nth-child(4),
.deployment-release-foundation-page .deployment-uploadjob-log td:nth-child(4) {
  padding-right: 0;
  text-align: right;
  width: 150px;
}

.deployment-release-foundation-page .deployment-uploadjob-log th {
  color: #65798b;
  font-size: 11px;
  font-weight: 950;
}

.deployment-release-foundation-page .deployment-uploadjob-log td.deployment-uploadjob-path {
  display: table-cell;
  max-width: none;
  overflow-wrap: anywhere;
  white-space: normal;
  width: auto;
}

.deployment-release-foundation-page .deployment-uploadjob-status {
  border-radius: 7px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  padding: 6px 9px;
}

.deployment-release-foundation-page .deployment-uploadjob-status.is-ok {
  background: #dff8e8;
  color: #138647;
}

.deployment-release-foundation-page .deployment-uploadjob-status.is-progress {
  background: #e4f0ff;
  color: #2563eb;
}

.deployment-release-foundation-page .deployment-uploadjob-status.is-failed {
  background: #ffe1e7;
  color: #e11d48;
}

.deployment-release-foundation-page .deployment-uploadjob-log footer {
  align-items: center;
  color: #526a7c;
  display: flex;
  font-size: 12px;
  font-weight: 850;
  justify-content: space-between;
  padding-top: 12px;
}

.deployment-release-foundation-page .deployment-uploadjob-log footer i {
  background: #16a34a;
  border-radius: 999px;
  display: inline-block;
  height: 8px;
  margin-left: 6px;
  width: 8px;
}

.deployment-release-foundation-page .deployment-uploadjob-pager {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  margin-top: 12px;
}

.deployment-release-foundation-page .deployment-uploadjob-pager button {
  align-items: center;
  background: #fff;
  border: 1px solid #dce6ef;
  border-radius: 8px;
  color: #284258;
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 850;
  height: 32px;
  justify-content: center;
  min-width: 34px;
  padding: 0 10px;
}

.deployment-release-foundation-page .deployment-uploadjob-pager button.is-active {
  background: #ffe7f8;
  border-color: #f3a6de;
  color: #bc27aa;
}

.deployment-release-foundation-page .deployment-uploadjob-pager button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.deployment-release-foundation-page .deployment-top-actions .btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.deployment-release-foundation-page .deployment-top-actions a[aria-disabled="true"],
.deployment-release-foundation-page .deployment-top-actions details.is-disabled summary {
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: none;
}

.deployment-release-foundation-page .deployment-bottom-actionbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 18px;
  grid-template-columns: auto 1fr auto;
  margin-top: 22px;
  padding: 18px 20px;
}

.deployment-release-foundation-page .deployment-bottom-actionbar-left,
.deployment-release-foundation-page .deployment-bottom-actionbar-right {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.deployment-release-foundation-page .deployment-bottom-actionbar-right {
  justify-content: flex-end;
}

.deployment-release-foundation-page .deployment-bottom-actionbar .btn[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
}

.deployment-release-foundation-page a[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
}

.deployment-release-foundation-page .deployment-bottom-actionbar span {
  color: var(--text-secondary);
  display: grid;
  gap: 3px;
}

.deployment-release-foundation-page .deployment-bottom-actionbar small {
  color: var(--text-muted);
  font-weight: 700;
}

.deployment-wizard-view-uploadplan .deployment-changelog-readiness,
.deployment-wizard-view-uploadplan .deployment-preflight-readiness,
.deployment-wizard-view-uploadplan .deployment-upload-confirm-panel,
.deployment-wizard-view-uploadplan .deployment-upload-progress,
.deployment-wizard-view-approval .deployment-upload-panel,
.deployment-wizard-view-approval .deployment-upload-progress,
.deployment-wizard-view-uploadjob .deployment-changelog-readiness,
.deployment-wizard-view-uploadjob .deployment-preflight-readiness,
.deployment-wizard-view-uploadjob .deployment-upload-panel {
  display: none;
}

.deployment-modal-open {
  overflow: hidden;
}

.deployment-settings-modal[hidden] {
  display: none !important;
}

.deployment-settings-modal {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 28px;
  position: fixed;
  z-index: 1000;
}

.deployment-settings-backdrop {
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(5px);
  inset: 0;
  position: absolute;
}

.deployment-settings-dialog {
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 16px;
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.28);
  display: flex;
  flex-direction: column;
  max-height: min(82vh, 820px);
  max-width: 920px;
  overflow: hidden;
  position: relative;
  width: min(920px, calc(100vw - 56px));
}

.deployment-settings-header,
.deployment-settings-footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 18px 22px;
}

.deployment-settings-header {
  border-bottom: 1px solid var(--border-light);
}

.deployment-settings-header h2 {
  margin: 0;
}

.deployment-settings-close {
  align-items: center;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  color: #b51aa2;
  cursor: pointer;
  display: inline-flex;
  font-size: 24px;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.deployment-settings-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 0;
  overflow: hidden;
}

.deployment-settings-tabs {
  background: rgba(248, 250, 252, 0.9);
  border-right: 1px solid var(--border-light);
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 18px;
}

.deployment-settings-tabs a {
  border-radius: 9px;
  color: var(--text-secondary);
  font-weight: 900;
  padding: 11px 12px;
  text-decoration: none;
}

.deployment-settings-tabs a:first-child,
.deployment-settings-tabs a:hover {
  background: #fde7f7;
  color: #a41462;
}

.deployment-settings-content {
  max-height: calc(min(82vh, 820px) - 142px);
  overflow: auto;
  padding: 18px;
}

.deployment-settings-content > .card {
  margin-bottom: 16px;
}

.deployment-settings-footer {
  border-top: 1px solid var(--border-light);
  gap: 12px;
  justify-content: flex-end;
}

@media (max-width: 1300px) {
  .profile-notification-grid {
    grid-template-columns: 1fr;
  }

  .profile-notification-card {
    grid-template-columns: 1fr;
  }

  .backup-readiness-page .backup-scope-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .automated-backups-page .backup-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .restore-assistant-page .restore-detail-grid {
    grid-template-columns: 1fr;
  }

  .incident-response-page .incident-form-grid,
  .incident-response-page .incident-inline-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .deployment-release-foundation-page .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .deployment-release-foundation-page .deployment-wizard-stepper {
    grid-template-columns: 1fr;
    padding: 8px 12px;
  }

  .deployment-release-foundation-page .deployment-wizard-step {
    border-bottom: 1px solid var(--border-light);
    min-height: 50px;
    padding: 8px 0;
  }

  .deployment-release-foundation-page .deployment-wizard-step:last-child {
    border-bottom: 0;
  }

  .deployment-release-foundation-page .deployment-step-arrow {
    display: none;
  }

  .deployment-release-foundation-page .deployment-release-status-card {
    grid-template-columns: 1fr;
  }

  .deployment-release-foundation-page .deployment-release-status-main {
    border-bottom: 1px solid #dbe4ee;
    padding: 0 0 16px;
  }

  .deployment-release-foundation-page .deployment-release-status-icon {
    margin-top: 18px;
  }

  .deployment-release-foundation-page .deployment-release-status-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-top: 16px;
  }

  .deployment-release-foundation-page .deployment-release-status-metrics > div {
    border-left: 0;
    border-top: 1px solid #dbe4ee;
    min-height: 82px;
    padding: 14px 12px 0;
  }

  .deployment-release-foundation-page .deployment-release-status-metrics > div:nth-child(-n + 3) {
    border-top: 0;
  }

  .deployment-release-foundation-page .deployment-release-mode-banner {
    grid-column: 1;
  }

  .deployment-release-foundation-page .deployment-release-workspace {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .deployment-release-foundation-page .deployment-draft-status-card {
    grid-template-columns: 1fr;
  }

  .deployment-release-foundation-page .deployment-draft-status-card .btn {
    justify-content: center;
  }

  .deployment-release-foundation-page .deployment-baseline-action-card {
    grid-template-columns: 1fr;
  }

  .deployment-release-foundation-page .deployment-baseline-action-card .checkbox-row {
    white-space: normal;
  }

  .deployment-release-foundation-page .deployment-uploadplan-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .deployment-release-foundation-page .deployment-uploadplan-kpis > div {
    border-top: 1px solid #e1e9f0;
  }

  .deployment-release-foundation-page .deployment-uploadplan-kpis > div:nth-child(-n + 3) {
    border-top: 0;
  }

  .deployment-release-foundation-page .deployment-uploadplan-kpis > div:nth-child(4) {
    border-left: 0;
  }

  .deployment-release-foundation-page .deployment-uploadplan-layout {
    grid-template-columns: 1fr;
  }

  .deployment-release-foundation-page .deployment-uploadplan-sidebar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .deployment-release-foundation-page .deployment-approval-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .deployment-release-foundation-page .deployment-approval-side {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .deployment-release-foundation-page .deployment-uploadjob-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .deployment-release-foundation-page .deployment-uploadjob-stats > div {
    border-top: 1px solid #dce6ef;
  }

  .deployment-release-foundation-page .deployment-uploadjob-stats > div:nth-child(-n + 3) {
    border-top: 0;
  }

  .deployment-release-foundation-page .deployment-uploadjob-stats > div:nth-child(4) {
    border-left: 0;
  }

  .deployment-release-foundation-page .deployment-release-sidecards {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .deployment-release-foundation-page .deployment-review-layout {
    grid-template-columns: 1fr;
  }

  .deployment-release-foundation-page .deployment-review-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 18px;
  }

  .deployment-release-foundation-page .deployment-review-summary-grid > div:nth-child(4) {
    border-left: 0;
  }

  .deployment-release-foundation-page .deployment-bottom-actionbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .backup-readiness-page .backup-scope-grid,
  .backup-readiness-page .backup-form-grid,
  .automated-backups-page .backup-action-grid,
  .incident-response-page .incident-form-grid,
  .incident-response-page .incident-inline-form {
    grid-template-columns: 1fr;
  }

  .backup-readiness-page .backup-form-grid .wide {
    grid-column: auto;
  }

  .deployment-release-foundation-page .form-grid {
    grid-template-columns: 1fr;
  }

  .deployment-release-foundation-page .deployment-release-status-card {
    padding: 16px;
  }

  .deployment-release-foundation-page .deployment-draft-profile {
    grid-template-columns: 1fr;
  }

  .deployment-release-foundation-page .deployment-release-status-metrics {
    grid-template-columns: 1fr;
  }

  .deployment-release-foundation-page .deployment-release-status-metrics > div,
  .deployment-release-foundation-page .deployment-release-status-metrics > div:nth-child(-n + 3) {
    border-top: 1px solid #dbe4ee;
  }

  .deployment-release-foundation-page .deployment-release-status-metrics > div:first-child {
    border-top: 0;
  }

  .deployment-release-foundation-page .deployment-release-mode-banner {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .deployment-release-foundation-page .deployment-release-mode-banner .btn {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .deployment-release-foundation-page .deployment-release-workspace {
    grid-template-columns: 1fr;
  }

  .deployment-release-foundation-page .deployment-release-workspace-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .deployment-release-foundation-page .deployment-release-workspace-nav a,
  .deployment-release-foundation-page .deployment-release-workspace-nav button {
    min-height: 56px;
  }

  .deployment-release-foundation-page .deployment-uploadplan-kpis {
    grid-template-columns: 1fr;
  }

  .deployment-release-foundation-page .deployment-uploadplan-kpis > div,
  .deployment-release-foundation-page .deployment-uploadplan-kpis > div:nth-child(-n + 3),
  .deployment-release-foundation-page .deployment-uploadplan-kpis > div:nth-child(4) {
    border-left: 0;
    border-top: 1px solid #e1e9f0;
  }

  .deployment-release-foundation-page .deployment-uploadplan-kpis > div:first-child {
    border-top: 0;
  }

  .deployment-release-foundation-page .deployment-uploadplan-card-head,
  .deployment-release-foundation-page .deployment-uploadplan-table-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .deployment-release-foundation-page .deployment-uploadplan-toolbar {
    align-items: stretch;
    display: grid;
  }

  .deployment-release-foundation-page .deployment-uploadplan-toolbar-left {
    align-items: stretch;
    display: grid;
  }

  .deployment-release-foundation-page .deployment-uploadplan-search {
    min-width: 0;
    width: 100%;
  }

  .deployment-release-foundation-page .deployment-uploadplan-sidebar {
    grid-template-columns: 1fr;
  }

  .deployment-release-foundation-page .deployment-approval-grid,
  .deployment-release-foundation-page .deployment-approval-side {
    grid-template-columns: 1fr;
  }

  .deployment-release-foundation-page .deployment-approval-files > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .deployment-release-foundation-page .deployment-uploadjob-head,
  .deployment-release-foundation-page .deployment-uploadjob-meta,
  .deployment-release-foundation-page .deployment-uploadjob-log footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .deployment-release-foundation-page .deployment-uploadjob-stats {
    grid-template-columns: 1fr;
  }

  .deployment-release-foundation-page .deployment-uploadjob-stats > div,
  .deployment-release-foundation-page .deployment-uploadjob-stats > div:nth-child(-n + 3),
  .deployment-release-foundation-page .deployment-uploadjob-stats > div:nth-child(4) {
    border-left: 0;
    border-top: 1px solid #dce6ef;
  }

  .deployment-release-foundation-page .deployment-uploadjob-stats > div:first-child {
    border-top: 0;
  }

  .deployment-release-foundation-page .deployment-uploadjob-log {
    overflow-x: auto;
  }

  .deployment-release-foundation-page .deployment-uploadjob-log table {
    min-width: 680px;
  }

  .deployment-release-foundation-page .deployment-release-plan-preview > header {
    display: grid;
  }

  .deployment-release-foundation-page .deployment-release-preview-actions {
    justify-content: flex-start;
  }

  .deployment-release-foundation-page .deployment-release-sidecards {
    grid-template-columns: 1fr;
  }

  .deployment-release-foundation-page .deployment-review-card {
    padding: 18px;
  }

  .deployment-release-foundation-page .deployment-review-summary-grid {
    grid-template-columns: 1fr;
  }

  .deployment-release-foundation-page .deployment-review-summary-grid > div,
  .deployment-release-foundation-page .deployment-review-summary-grid > div + div,
  .deployment-release-foundation-page .deployment-review-summary-grid > div:nth-child(4) {
    border-left: 0;
    border-top: 1px solid #dbe4ee;
    padding: 14px 0 0;
  }

  .deployment-release-foundation-page .deployment-review-summary-grid > div:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .deployment-release-foundation-page .deployment-review-section > header {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
    padding: 14px 18px;
  }

  .deployment-release-foundation-page .deployment-review-table {
    min-width: 720px;
  }

  .deployment-release-foundation-page .deployment-review-section {
    overflow-x: auto;
  }

  .deployment-release-foundation-page .deployment-review-warning-list > div {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 12px 18px;
  }

  .deployment-release-foundation-page .deployment-review-warning-list em {
    grid-column: 2;
    justify-self: start;
  }

  .deployment-release-foundation-page .deployment-action-menu-panel {
    left: 0;
    right: auto;
  }

  .deployment-release-foundation-page .deployment-page-head,
  .deployment-release-foundation-page .deployment-top-actions {
    justify-content: stretch;
  }

  .deployment-release-foundation-page .deployment-page-head {
    margin: 0 0 18px;
  }

  .deployment-release-foundation-page .deployment-top-actions > * {
    flex: 1 1 auto;
  }

  .deployment-settings-modal {
    align-items: stretch;
    padding: 12px;
  }

  .deployment-settings-dialog {
    max-height: calc(100vh - 24px);
    width: calc(100vw - 24px);
  }

  .deployment-settings-body {
    grid-template-columns: 1fr;
  }

  .deployment-settings-tabs {
    border-right: 0;
    border-bottom: 1px solid var(--border-light);
    grid-auto-flow: column;
    overflow-x: auto;
  }

  .deployment-settings-tabs a {
    white-space: nowrap;
  }

  .deployment-settings-content {
    max-height: calc(100vh - 260px);
  }
}

/* Database Control redesign */
.dbcontrol-page {
  --dbcontrol-pink: #c226a9;
  --dbcontrol-pink-dark: #9f157f;
  --dbcontrol-ink: #102434;
  --dbcontrol-muted: #657789;
  --dbcontrol-line: #dfe8ee;
  --dbcontrol-panel: #ffffff;
  --dbcontrol-soft: #f7fafc;
  --dbcontrol-shadow: 0 14px 34px rgba(15, 39, 54, 0.08);
}

.dbcontrol-page .page-heading {
  margin-bottom: 14px;
}

.dbcontrol-toolbar,
.dbcontrol-toolbar-actions,
.dbcontrol-tabs,
.dbcontrol-filter-chips,
.dbcontrol-row-actions,
.dbcontrol-row-badges,
.dbcontrol-sticky-actions,
.dbcleanup-table-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.dbcontrol-toolbar {
  justify-content: space-between;
  margin: -4px 0 16px;
}

.dbcontrol-toolbar-actions {
  justify-content: flex-end;
}

.dbcontrol-scan-state {
  color: var(--dbcontrol-muted);
  font-size: 13px;
}

.dbcontrol-tabs {
  margin: 0 0 18px;
  padding: 7px;
  border: 1px solid var(--dbcontrol-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.dbcontrol-tabs a,
.dbcontrol-filter-chips a,
.dbcontrol-inspector-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 6px;
  color: #41566a;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.dbcontrol-tabs a.is-active,
.dbcontrol-tabs a:hover,
.dbcontrol-filter-chips a.is-active,
.dbcontrol-filter-chips a:hover,
.dbcontrol-inspector-tabs a.is-active {
  color: var(--dbcontrol-pink-dark);
  background: #fff0f9;
}

.dbcontrol-tabs a.is-active,
.dbcontrol-inspector-tabs a.is-active {
  box-shadow: inset 0 -2px 0 var(--dbcontrol-pink);
}

.dbcontrol-card,
.dbcontrol-tool-card,
.dbcontrol-summary-strip article,
.dbcleanup-kpis article {
  border: 1px solid var(--dbcontrol-line);
  border-radius: 8px;
  background: var(--dbcontrol-panel);
  box-shadow: var(--dbcontrol-shadow);
}

.dbcontrol-card {
  margin-bottom: 18px;
  padding: 18px;
}

.dbcontrol-kicker,
.dbcontrol-label {
  display: block;
  margin: 0 0 8px;
  color: #365367;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dbcontrol-section-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.dbcontrol-section-head h2,
.dbcontrol-inspector h2,
.dbcleanup-help h3 {
  margin: 0;
  color: var(--dbcontrol-ink);
  font-size: 19px;
  line-height: 1.2;
}

.dbcontrol-section-head span,
.dbcontrol-card p,
.dbcontrol-tool-card p,
.dbcontrol-next-action p,
.dbcleanup-help p {
  color: var(--dbcontrol-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.dbcontrol-readiness-card {
  display: grid;
  grid-template-columns: minmax(380px, 1.15fr) minmax(600px, 2fr);
  gap: 18px;
  padding: 24px 26px;
}

.dbcontrol-readiness-body {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.dbcontrol-readiness-icon,
.dbcontrol-tool-card header > span,
.dbcontrol-issue-icon,
.dbcleanup-kpis article > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex: 0 0 auto;
}

.dbcontrol-readiness-icon {
  width: 82px;
  height: 82px;
  color: var(--dbcontrol-pink);
  background: #ffe7f5;
}

.dbcontrol-readiness-icon.is-success {
  color: #0f8b57;
  background: #ddf8ea;
}

.dbcontrol-readiness-icon.is-warning {
  color: #b16a00;
  background: #fff2d2;
}

.dbcontrol-readiness-body h2 {
  margin: 0;
  color: var(--dbcontrol-pink-dark);
  font-size: 26px;
  line-height: 1.1;
}

.dbcontrol-scorebar {
  height: 6px;
  margin-top: 22px;
  overflow: visible;
  border-radius: 999px;
  background: #edf1f5;
}

.dbcontrol-scorebar span {
  display: block;
  position: relative;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--dbcontrol-pink), #de4cc1);
}

.dbcontrol-scorebar span::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--dbcontrol-pink);
  transform: translateY(-50%);
  box-shadow: 0 0 0 4px #fff;
}

.dbcontrol-score-meta {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  margin-top: 8px;
  color: var(--dbcontrol-muted);
  font-size: 12px;
}

.dbcontrol-score-meta strong {
  color: var(--dbcontrol-pink-dark);
  font-size: 13px;
}

.dbcontrol-score-meta span:last-child {
  text-align: right;
}

.dbcontrol-readiness-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-left: 1px solid var(--dbcontrol-line);
}

.dbcontrol-readiness-metrics article {
  min-width: 0;
  padding: 10px 18px;
  border-right: 1px solid var(--dbcontrol-line);
}

.dbcontrol-readiness-metrics span,
.dbcontrol-readiness-metrics small,
.dbcontrol-summary-strip small,
.dbcleanup-kpis p,
.dbcleanup-table small {
  display: block;
  color: var(--dbcontrol-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.dbcontrol-readiness-metrics strong,
.dbcontrol-summary-strip strong,
.dbcleanup-kpis strong,
.dbcontrol-cleanup-grid strong {
  display: block;
  margin: 6px 0 8px;
  color: var(--dbcontrol-ink);
  font-size: 28px;
  line-height: 1;
}

.dbcontrol-workflow {
  display: grid;
  grid-template-columns: auto repeat(5, minmax(170px, 1fr));
  gap: 12px;
  align-items: center;
}

.dbcontrol-workflow .dbcontrol-kicker {
  margin: 0 12px 0 0;
}

.dbcontrol-workflow-step {
  display: grid;
  grid-template-columns: 30px 34px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 54px;
  padding: 8px 12px;
  border: 1px solid var(--dbcontrol-line);
  border-radius: 8px;
  color: var(--dbcontrol-ink);
  text-decoration: none;
}

.dbcontrol-workflow-step b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: #fff;
  background: var(--dbcontrol-pink);
  font-size: 12px;
}

.dbcontrol-workflow-step > span {
  color: var(--dbcontrol-pink);
}

.dbcontrol-workflow-step strong {
  display: block;
  font-size: 13px;
}

.dbcontrol-workflow-step small {
  grid-column: 3;
  color: var(--dbcontrol-muted);
  font-size: 12px;
}

.dbcontrol-tool-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.dbcontrol-tool-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 178px;
  padding: 18px;
}

.dbcontrol-tool-card header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.dbcontrol-tool-card header > span {
  width: 48px;
  height: 48px;
  color: var(--dbcontrol-pink);
  background: #fff0f9;
}

.dbcontrol-tool-card h3 {
  margin: 0;
  color: var(--dbcontrol-ink);
  font-size: 16px;
}

.dbcontrol-tool-card .btn {
  margin-top: auto;
  justify-content: center;
}

.dbcontrol-overview-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
}

.dbcontrol-section-head a,
.dbcontrol-issues-first .dbcontrol-section-head a {
  color: #075be8;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.dbcontrol-issue-list,
.dbcontrol-queue-list,
.dbcontrol-context-stack,
.dbcleanup-help {
  display: grid;
  gap: 10px;
}

.dbcontrol-issue-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 100px 24px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--dbcontrol-line);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}

.dbcontrol-issue-icon {
  width: 34px;
  height: 34px;
}

.dbcontrol-issue-icon.is-danger {
  color: #d82049;
  background: #ffe9ee;
}

.dbcontrol-issue-icon.is-warning {
  color: #bd7300;
  background: #fff2d7;
}

.dbcontrol-issue-icon.is-info,
.dbcontrol-issue-icon.is-muted {
  color: #1d73d6;
  background: #eaf3ff;
}

.dbcontrol-issue-row strong,
.dbcontrol-queue-row strong {
  display: block;
  color: var(--dbcontrol-ink);
  font-size: 13px;
}

.dbcontrol-issue-row small,
.dbcontrol-found,
.dbcontrol-id {
  color: var(--dbcontrol-muted);
  font-size: 12px;
}

.dbcontrol-next-action {
  border-color: #f3bfdc;
  background: linear-gradient(180deg, #fff, #fff6fb);
}

.dbcontrol-next-action h3 {
  margin: 0 0 8px;
  color: var(--dbcontrol-ink);
  font-size: 18px;
}

.dbcontrol-tip,
.dbcleanup-best-practice {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #f4d08a;
  border-radius: 8px;
  background: #fff8e8;
}

.dbcontrol-tip strong,
.dbcleanup-best-practice strong {
  display: block;
  color: #6f4a00;
  font-size: 13px;
}

.dbcontrol-tip span,
.dbcleanup-best-practice span {
  display: block;
  margin-top: 4px;
  color: #735a24;
  font-size: 12px;
}

.dbcontrol-summary-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.dbcontrol-summary-strip article,
.dbcleanup-kpis article {
  padding: 16px;
}

.dbcontrol-summary-strip article > span {
  color: var(--dbcontrol-pink);
}

.dbcontrol-summary-strip b,
.dbcleanup-kpis small {
  display: block;
  color: var(--dbcontrol-ink);
  font-size: 13px;
  font-weight: 700;
}

.dbcontrol-review-board {
  display: grid;
  grid-template-columns: minmax(420px, 0.8fr) minmax(560px, 1.2fr);
  gap: 18px;
  align-items: start;
}

.dbcontrol-search-row,
.dbcleanup-filterbar,
.dbcontrol-filter-form {
  display: grid;
  grid-template-columns: minmax(170px, 0.7fr) minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}

.dbcleanup-filterbar {
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(150px, 0.55fr)) auto;
}

.dbcontrol-filter-form {
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(150px, 0.55fr)) auto auto auto;
}

.dbcontrol-search-row input,
.dbcontrol-search-row select,
.dbcleanup-filterbar input,
.dbcleanup-filterbar select,
.dbcontrol-filter-form input,
.dbcontrol-filter-form select {
  min-height: 38px;
  width: 100%;
  border: 1px solid var(--dbcontrol-line);
  border-radius: 7px;
  padding: 0 11px;
  background: #fff;
  color: var(--dbcontrol-ink);
  font: inherit;
}

.dbcleanup-filterbar label,
.dbcontrol-filter-form label {
  display: grid;
  gap: 5px;
}

.dbcleanup-filterbar label span,
.dbcontrol-filter-form label span {
  color: #41566a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dbcontrol-queue-row {
  padding: 10px;
  border: 1px solid var(--dbcontrol-line);
  border-radius: 8px;
  background: #fff;
}

.dbcontrol-queue-row.is-selected {
  border-color: rgba(194, 38, 169, 0.48);
  background: #fff8fd;
}

.dbcontrol-queue-row > a {
  display: grid;
  grid-template-columns: 28px 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.dbcontrol-queue-row > a > b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #fff;
  background: var(--dbcontrol-pink);
  font-size: 12px;
}

.dbcontrol-row-badges,
.dbcontrol-row-actions {
  margin-top: 9px;
  padding-left: 72px;
}

.dbcontrol-inline-form {
  display: inline-flex;
  margin: 0;
}

.dbcontrol-inspector {
  position: sticky;
  top: 78px;
}

.dbcontrol-inspector-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--dbcontrol-line);
}

.dbcontrol-inspector-head h2 {
  margin-top: 10px;
}

.dbcontrol-inspector-tabs {
  display: flex;
  gap: 14px;
  margin: 14px 0;
  border-bottom: 1px solid var(--dbcontrol-line);
}

.dbcontrol-inspector-tabs a {
  border-radius: 0;
}

.dbcontrol-inspector-grid,
.dbcontrol-export-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 14px;
}

.dbcontrol-evidence,
.dbcontrol-context-stack > div {
  padding: 14px;
  border: 1px solid var(--dbcontrol-line);
  border-radius: 8px;
  background: #fff;
}

.dbcontrol-evidence h3,
.dbcontrol-context-stack h3,
.dbcontrol-split-tables h3,
.dbcontrol-sql-result h3 {
  margin: 0 0 10px;
  color: var(--dbcontrol-ink);
  font-size: 14px;
}

.dbcontrol-evidence pre {
  min-height: 110px;
  margin: 0 0 12px;
  padding: 12px;
  overflow: auto;
  border-radius: 8px;
  background: #f4f8fb;
  color: #27475c;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.dbcontrol-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.dbcontrol-mini-table th,
.dbcontrol-mini-table td {
  padding: 8px 10px;
  border: 1px solid var(--dbcontrol-line);
  text-align: left;
}

.dbcontrol-mini-table th {
  width: 110px;
  color: #41566a;
  background: #f7fafc;
}

.dbcontrol-context-stack dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px;
  margin: 0;
  color: var(--dbcontrol-muted);
  font-size: 12px;
}

.dbcontrol-context-stack dd {
  margin: 0;
  color: var(--dbcontrol-ink);
}

.dbcontrol-sticky-actions {
  position: sticky;
  bottom: 0;
  margin: 16px -18px -18px;
  padding: 12px 18px;
  border-top: 1px solid var(--dbcontrol-line);
  border-radius: 0 0 8px 8px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}

.dbcontrol-split-tables,
.dbcleanup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.dbcontrol-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.dbcontrol-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.dbcontrol-table thead th {
  padding: 13px 14px;
  border-bottom: 1px solid var(--dbcontrol-line);
  color: #41566a;
  background: #f8fbfd;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
}

.dbcontrol-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--dbcontrol-line);
  color: #264255;
  font-weight: 500;
  vertical-align: top;
}

.dbcontrol-table td strong {
  color: var(--dbcontrol-ink);
  font-weight: 700;
}

.dbcontrol-table td small {
  display: block;
  margin-top: 4px;
  color: var(--dbcontrol-muted);
}

.dbcontrol-cleanup-grid,
.dbcleanup-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.dbcontrol-cleanup-grid article {
  padding: 14px;
  border: 1px solid var(--dbcontrol-line);
  border-radius: 8px;
  background: #f9fcfe;
}

.dbcontrol-cleanup-grid span {
  color: var(--dbcontrol-muted);
  font-size: 12px;
}

.dbcontrol-export-grid {
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.75fr);
}

.dbcontrol-sql-result {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--dbcontrol-line);
  border-radius: 8px;
  background: #f8fbfd;
}

.dbcontrol-empty {
  padding: 18px;
  border: 1px dashed var(--dbcontrol-line);
  border-radius: 8px;
  color: var(--dbcontrol-muted);
  background: #fbfdff;
  font-weight: 500;
}

.dbcleanup-safety-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid #eec46b;
  border-radius: 8px;
  color: #7a5200;
  background: #fff8e8;
  box-shadow: var(--shadow-sm);
}

.dbcleanup-safety-banner strong,
.dbcleanup-safety-banner span {
  display: block;
}

.dbcleanup-safety-banner span {
  margin-top: 4px;
  color: #735a24;
}

.dbcleanup-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
}

.dbcleanup-help {
  position: sticky;
  top: 78px;
}

.dbcleanup-kpis article {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px 14px;
  align-items: center;
}

.dbcleanup-kpis article > span {
  grid-row: span 3;
  width: 48px;
  height: 48px;
  color: var(--dbcontrol-pink);
  background: #fff0f9;
}

.dbcleanup-kpis strong {
  margin: 2px 0;
}

.dbcleanup-table-footer {
  justify-content: space-between;
  padding: 12px 2px 0;
  color: var(--dbcontrol-muted);
  font-size: 13px;
}

.dbcleanup-table-footer .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 999px;
}

.dbcleanup-table-footer .is-low {
  background: #20c579;
}

.dbcleanup-table-footer .is-medium {
  background: #f2a600;
}

.dbcleanup-table-footer .is-high {
  background: #ef3f62;
}

.dbcleanup-checklist {
  display: grid;
  gap: 14px;
  margin: 14px 0;
  padding: 0;
  list-style: none;
}

.dbcleanup-checklist li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
}

.dbcleanup-checklist b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: #fff;
  background: var(--dbcontrol-pink);
  font-size: 12px;
}

.dbcleanup-checklist strong {
  display: block;
  color: var(--dbcontrol-ink);
  font-size: 13px;
}

.dbcleanup-checklist small {
  display: block;
  margin-top: 2px;
  color: var(--dbcontrol-muted);
  font-size: 12px;
}

@media (max-width: 1500px) {
  .dbcontrol-tool-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dbcontrol-readiness-card,
  .dbcontrol-review-board,
  .dbcontrol-overview-bottom,
  .dbcontrol-inspector-grid,
  .dbcontrol-export-grid,
  .dbcleanup-layout {
    grid-template-columns: 1fr;
  }

  .dbcontrol-inspector,
  .dbcleanup-help {
    position: static;
  }
}

@media (max-width: 1100px) {
  .dbcontrol-readiness-metrics,
  .dbcontrol-summary-strip,
  .dbcontrol-cleanup-grid,
  .dbcleanup-kpis,
  .dbcontrol-split-tables {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dbcontrol-workflow {
    grid-template-columns: 1fr;
  }

  .dbcleanup-filterbar,
  .dbcontrol-filter-form,
  .dbcontrol-search-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .dbcontrol-readiness-body,
  .dbcontrol-issue-row,
  .dbcleanup-kpis article {
    grid-template-columns: 1fr;
  }

  .dbcontrol-tool-grid,
  .dbcontrol-readiness-metrics,
  .dbcontrol-summary-strip,
  .dbcontrol-cleanup-grid,
  .dbcleanup-kpis,
  .dbcontrol-split-tables {
    grid-template-columns: 1fr;
  }

  .dbcontrol-row-badges,
  .dbcontrol-row-actions {
    padding-left: 0;
  }
}

/* Development Control Center IA */
body.dev-ui-page .content,
body.development-center-page .content {
    max-width: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.dev-control-shell {
    max-width: none !important;
    width: 100%;
    margin: 0;
}

.dev-ui-page-head,
.dev-ui-hero,
.dev-ui-workflow,
.dev-ui-panel,
.dev-ui-guide,
.dev-ui-next-action,
.dev-ui-advanced-panel,
.dev-ui-empty-state {
    background: #fff;
    border: 1px solid rgba(12, 35, 44, 0.1);
    border-radius: 14px;
    box-shadow: 0 14px 36px rgba(4, 21, 27, 0.08);
}

.dev-ui-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 28px 14px;
    margin-bottom: 14px;
    box-shadow: none;
    border-color: transparent;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.82));
}

.dev-ui-breadcrumb,
.dev-ui-section-label {
    color: #586b78;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dev-ui-page-head h1,
.dev-ui-panel h2,
.dev-ui-advanced-panel h2 {
    margin: 8px 0 4px;
    color: #0b2230;
    font-weight: 850;
    letter-spacing: -0.03em;
}

.dev-ui-page-head p,
.dev-ui-panel p,
.dev-ui-tool-card p,
.dev-ui-guide p,
.dev-ui-next-action p,
.dev-ui-advanced-panel p {
    color: #526879;
    font-weight: 400;
}

.dev-ui-page-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #526879;
    font-size: 13px;
    white-space: nowrap;
}

.dev-command-nav,
.dev-subnav { margin-bottom: 14px; }

.dev-ui-hero {
    display: grid;
    grid-template-columns: minmax(280px, 1.2fr) 220px minmax(420px, 1.6fr) auto;
    align-items: center;
    gap: 24px;
    padding: 24px 28px;
    margin-bottom: 14px;
}

.dev-ui-hero__main,
.dev-ui-tool-card__top,
.dev-ui-kpi,
.dev-ui-action-row,
.dev-ui-workflow-step,
.dev-ui-advanced-link {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dev-ui-hero__icon,
.dev-ui-tool-card__icon,
.dev-ui-kpi__icon,
.dev-ui-empty-state__icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #c026a8;
    background: linear-gradient(135deg, #ffe4f7, #f3ecff);
}

.dev-ui-hero h2 {
    margin: 2px 0 6px;
    color: #b3198f;
    font-size: 28px;
    font-weight: 850;
    letter-spacing: -0.03em;
}

.dev-ui-hero__label,
.dev-ui-mini-metric__label,
.dev-ui-score-card__label,
.dev-ui-tool-card__note {
    color: #5d7080;
    font-size: 12px;
    font-weight: 600;
}

.dev-ui-score-card__value {
    color: #0b2230;
    font-size: 42px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.dev-ui-score-card__value span {
    color: #5d7080;
    font-size: 18px;
    font-weight: 700;
}

.dev-ui-score-card__track {
    height: 7px;
    margin: 14px 0 8px;
    border-radius: 999px;
    overflow: hidden;
    background: #e9eef2;
}

.dev-ui-score-card__track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f0a51c, #c026a8);
}

.dev-ui-hero__metrics,
.dev-ui-kpis,
.dev-ui-card-grid { display: grid; gap: 14px; }
.dev-ui-hero__metrics { grid-template-columns: repeat(4, minmax(112px, 1fr)); }

.dev-ui-mini-metric,
.dev-ui-kpi {
    min-height: 82px;
    padding: 14px;
    border-left: 1px solid rgba(12, 35, 44, 0.1);
}

.dev-ui-mini-metric__value,
.dev-ui-kpi strong {
    display: block;
    color: #0b2230;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.dev-ui-workflow { padding: 18px 22px; margin-bottom: 14px; }
.dev-ui-workflow__track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }

.dev-ui-workflow-step,
.dev-ui-advanced-link {
    color: inherit;
    text-decoration: none;
    min-height: 70px;
    padding: 12px 14px;
    border: 1px solid rgba(12, 35, 44, 0.1);
    border-radius: 12px;
    background: linear-gradient(180deg, #fff, #fbfdff);
}

.dev-ui-workflow-step__number {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #d839bd, #9c2cc7);
    font-weight: 850;
}

.dev-ui-workflow-step strong,
.dev-ui-tool-card h3,
.dev-ui-guide h3,
.dev-ui-next-action h3,
.dev-ui-review-shell h2 { color: #0b2230; font-weight: 850; }
.dev-ui-workflow-step small,
.dev-ui-action-row small,
.dev-ui-advanced-link small { display: block; color: #607585; font-weight: 400; }

.dev-ui-card-grid { grid-template-columns: repeat(4, minmax(220px, 1fr)); margin-bottom: 14px; }

.dev-ui-tool-card {
    min-height: 210px;
    padding: 18px;
    background: #fff;
    border: 1px solid rgba(12, 35, 44, 0.1);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(4, 21, 27, 0.07);
}

.dev-ui-tool-card__meta { display: flex; align-items: center; justify-content: space-between; margin: 18px 0; }
.dev-ui-tool-card__meta span:last-child { color: #3d5261; font-weight: 750; }
.dev-ui-tool-card__button { width: 100%; justify-content: center; margin-top: auto; }

.dev-ui-dashboard-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 14px; }
.dev-ui-main-stack,
.dev-ui-side-stack { display: grid; gap: 14px; align-content: start; }
.dev-ui-panel,
.dev-ui-guide,
.dev-ui-next-action,
.dev-ui-advanced-panel,
.dev-ui-empty-state { padding: 22px; }

.dev-ui-panel__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.dev-ui-text-link { color: #005bd3; font-weight: 800; text-decoration: none; }
.dev-ui-action-list { display: grid; gap: 8px; }

.dev-ui-action-row {
    min-height: 72px;
    padding: 14px;
    border: 1px solid rgba(12, 35, 44, 0.1);
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    background: #fff;
}

.dev-ui-action-row__rank {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #fff;
    background: #c026a8;
    font-weight: 850;
}

.dev-ui-action-row__icon { color: #df3150; }
.dev-ui-action-row__body { flex: 1; }
.dev-ui-action-row__body strong { display: block; color: #0b2230; font-weight: 800; }

.dev-ui-next-action { background: linear-gradient(135deg, #fff5fb, #fff); border-color: rgba(192, 38, 168, 0.22); }
.dev-ui-next-action .btn-primary { width: 100%; justify-content: center; margin: 12px 0 8px; }

.dev-ui-guide ol { display: grid; gap: 14px; padding-left: 20px; margin: 18px 0 0; color: #3e5364; }
.dev-ui-guide li::marker { color: #c026a8; font-weight: 900; }

.dev-ui-advanced-panel { display: grid; grid-template-columns: 260px 1fr; gap: 18px; background: linear-gradient(135deg, #fbfdff, #fff); }
.dev-ui-advanced-panel__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dev-ui-advanced-link span { color: #c026a8; }

.dev-ui-empty-state { text-align: center; }
.dev-ui-empty-state__icon { margin: 0 auto 12px; }
.dev-ui-review-shell__header,
.dev-ui-review-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dev-ui-review-row { padding: 12px; color: inherit; text-decoration: none; border-top: 1px solid rgba(12, 35, 44, 0.08); }
.dev-ui-review-row__rank { width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; color: #fff; background: #c026a8; font-weight: 850; }

.dev-hub-shell {
    padding-bottom: 28px;
}

.dev-hub-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 14px;
}

.dev-hub-toolbar__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #526879;
    font-size: 13px;
}

.dev-hub-toolbar__actions strong {
    color: #0b2230;
    font-weight: 800;
}

.dev-ui-readonly-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    padding: 16px 18px;
    border: 1px solid rgba(217, 151, 28, 0.28);
    border-radius: 12px;
    background: linear-gradient(135deg, #fff8e7, #fffdf8);
    color: #704b12;
    box-shadow: 0 10px 24px rgba(92, 61, 6, 0.06);
}

.dev-ui-readonly-banner > span {
    color: #d99011;
}

.dev-ui-readonly-banner strong {
    color: #6b4305;
    font-weight: 850;
}

.dev-ui-readonly-banner p {
    margin: 2px 0 0;
    color: #76551e;
    font-weight: 400;
}

.dev-hub-layout {
    grid-template-columns: minmax(0, 1fr) 330px;
}

.dev-hub-card-grid,
.dev-hub-action-grid {
    display: grid;
    gap: 14px;
}

.dev-hub-card-grid {
    grid-template-columns: repeat(4, minmax(220px, 1fr));
}

.dev-hub-card-grid .dev-ui-tool-card {
    min-height: 190px;
}

.dev-hub-check-rows,
.dev-ui-issue-list {
    display: grid;
    gap: 8px;
}

.dev-hub-check-row,
.dev-ui-issue-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    min-height: 62px;
    padding: 12px 14px;
    color: inherit;
    text-decoration: none;
    border: 1px solid rgba(12, 35, 44, 0.1);
    border-radius: 12px;
    background: #fff;
}

.dev-ui-issue-row {
    grid-template-columns: 30px minmax(0, 1fr) auto minmax(90px, auto) auto;
}

.dev-hub-check-row:hover,
.dev-ui-issue-row:hover,
.dev-hub-action-card:hover {
    border-color: rgba(192, 38, 168, 0.24);
    box-shadow: 0 10px 24px rgba(4, 21, 27, 0.08);
}

.dev-hub-check-row__icon,
.dev-ui-issue-row__rank,
.dev-hub-action-card span {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #c026a8;
    background: #ffe6f8;
}

.dev-ui-issue-row__rank {
    width: 28px;
    height: 28px;
    color: #fff;
    background: linear-gradient(135deg, #f05a7a, #c026a8);
    font-weight: 850;
}

.dev-hub-check-row strong,
.dev-ui-issue-row strong,
.dev-hub-action-card strong {
    display: block;
    color: #0b2230;
    font-weight: 850;
}

.dev-hub-check-row small,
.dev-ui-issue-row small,
.dev-hub-action-card small {
    display: block;
    color: #607585;
    font-weight: 400;
}

.dev-ui-issue-row__meta {
    color: #627789;
    font-size: 12px;
    font-weight: 600;
}

.dev-hub-action-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.dev-hub-action-card {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 92px;
    padding: 14px;
    border: 1px solid rgba(12, 35, 44, 0.1);
    border-radius: 12px;
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.dev-hub-action-card small {
    grid-column: 2;
}

.dev-ui-table-wrap {
    overflow-x: auto;
}

.dev-ui-summary-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.dev-ui-summary-table th,
.dev-ui-summary-table td {
    padding: 12px 14px;
    border-top: 1px solid rgba(12, 35, 44, 0.08);
    text-align: left;
    color: #344b5c;
    font-size: 13px;
    font-weight: 400;
}

.dev-ui-summary-table th {
    color: #637789;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.btn-small {
    min-height: 30px;
    padding: 6px 12px;
    font-size: 12px;
}

.dev-hub-page .page-header,
.development-center-page .page-header {
    margin-bottom: 18px;
}

@media (max-width: 1280px) {
    .dev-ui-hero,
    .dev-ui-dashboard-layout,
    .dev-ui-advanced-panel { grid-template-columns: 1fr; }
    .dev-ui-hero__metrics,
    .dev-ui-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dev-ui-workflow__track,
    .dev-ui-advanced-panel__grid,
    .dev-hub-card-grid,
    .dev-hub-action-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    .dev-ui-page-head,
    .dev-ui-panel__header,
    .dev-ui-page-actions,
    .dev-hub-toolbar,
    .dev-hub-toolbar__actions { display: block; }
    .dev-ui-hero,
    .dev-ui-card-grid,
    .dev-ui-hero__metrics,
    .dev-ui-workflow__track,
    .dev-ui-advanced-panel__grid,
    .dev-hub-card-grid,
    .dev-hub-action-grid,
    .dev-hub-check-row,
    .dev-ui-issue-row { grid-template-columns: 1fr; }
}

/* Development Link Audit V2 polish */
.dev-hub-page .page-header,
.development-center-page .page-header {
    padding-bottom: 12px;
}

.dev-hub-shell .dev-command-nav,
.dev-control-shell .dev-command-nav {
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(244, 248, 249, 0.82);
    backdrop-filter: blur(14px);
    padding: 6px 0;
}

.dev-hub-shell .dev-ui-hero,
.dev-control-shell .dev-ui-hero {
    border-color: rgba(12, 35, 44, 0.08);
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 55%, #f8fbfc 100%);
    box-shadow: 0 18px 44px rgba(4, 21, 27, 0.09);
}

.dev-hub-shell .dev-ui-hero__icon,
.dev-control-shell .dev-ui-hero__icon {
    box-shadow: inset 0 0 0 1px rgba(192, 38, 168, 0.08), 0 14px 30px rgba(192, 38, 168, 0.12);
}

.dev-hub-shell .dev-ui-mini-metric {
    border-left: 1px solid rgba(12, 35, 44, 0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(250,253,255,0.76));
    border-radius: 0;
}

.dev-hub-shell .dev-hub-card-grid .dev-ui-tool-card,
.dev-control-shell .dev-ui-card-grid .dev-ui-tool-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 202px;
}

.dev-hub-shell .dev-ui-tool-card__top {
    align-items: flex-start;
}

.dev-hub-shell .dev-ui-tool-card h3,
.dev-control-shell .dev-ui-tool-card h3 {
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.dev-hub-shell .dev-ui-tool-card p,
.dev-control-shell .dev-ui-tool-card p {
    line-height: 1.45;
}

.dev-hub-shell .dev-ui-guide {
    position: sticky;
    top: 78px;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.dev-hub-shell .dev-ui-guide ol,
.dev-control-shell .dev-ui-guide ol {
    list-style: none;
    counter-reset: dev-guide;
    padding-left: 0;
}

.dev-hub-shell .dev-ui-guide li,
.dev-control-shell .dev-ui-guide li {
    counter-increment: dev-guide;
    position: relative;
    padding-left: 42px;
    min-height: 30px;
}

.dev-hub-shell .dev-ui-guide li::before,
.dev-control-shell .dev-ui-guide li::before {
    content: counter(dev-guide);
    position: absolute;
    left: 0;
    top: -2px;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #c026a8;
    background: #ffe4f7;
    font-weight: 850;
    box-shadow: inset 0 0 0 1px rgba(192, 38, 168, 0.12);
}

.dev-hub-shell .dev-ui-issue-row,
.dev-hub-shell .dev-hub-check-row {
    box-shadow: 0 4px 14px rgba(4, 21, 27, 0.035);
}

.dev-hub-shell .dev-ui-issue-row .btn-small,
.dev-hub-shell .dev-hub-check-row .btn-small {
    color: #b3198f;
    background: #fff6fd;
    border-color: rgba(192, 38, 168, 0.16);
    font-weight: 850;
}

.dev-hub-shell .dev-ui-next-action {
    box-shadow: 0 16px 34px rgba(192, 38, 168, 0.09);
}

.dev-hub-shell .dev-ui-readonly-banner {
    padding: 12px 16px;
}

@media (min-width: 1500px) {
    .dev-hub-layout {
        grid-template-columns: minmax(0, 1fr) 360px;
    }
}
.dev-prompt-builder-panel:not(.is-open) { display: none; }
.dev-prompt-builder-panel textarea { width: 100%; resize: vertical; }

/* Customer Portal Control Center */
.cp-control-body .content {
    max-width: none;
}

.cp-control-hero {
    align-items: center;
    gap: 18px;
}

.cp-control-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cp-control-tabs span,
.cp-control-tabs a {
    min-height: 42px;
}

.cp-control-tabs .is-disabled {
    color: #7f94a0;
    cursor: default;
    opacity: 0.76;
}

.cp-control-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
    margin: 16px 0;
}

.cp-control-kpis-compact {
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}

.cp-control-kpi {
    min-height: 94px;
    padding: 16px 18px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 14px;
    align-items: center;
    border: 1px solid rgba(12, 35, 44, 0.08);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(4, 21, 27, 0.055);
}

.cp-control-kpi p {
    margin: 0;
    color: #617783;
    font-size: 0.82rem;
    font-weight: 800;
}

.cp-control-kpi strong {
    display: block;
    color: #10252d;
    font-size: clamp(1.28rem, 1.35vw, 1.72rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-top: 2px;
}

.cp-control-kpi small {
    display: block;
    margin-top: 3px;
    font-size: 0.78rem;
    color: #617783;
    line-height: 1.25;
}

.cp-control-kpi-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-grid;
    place-items: center;
    grid-row: 1 / span 3;
    color: #c026a8;
    background: #ffe4f7;
}

.cp-control-kpi-icon.success {
    color: #059669;
    background: #dcfce7;
}

.cp-control-kpi-icon.warning,
.cp-control-kpi-icon.amber {
    color: #b45309;
    background: #fef3c7;
}

.cp-control-kpi-icon.danger {
    color: #e11d48;
    background: #ffe4e6;
}

.cp-control-kpi-icon.violet {
    color: #7c3aed;
    background: #efe7ff;
}

.cp-control-grid {
    display: grid;
    gap: 16px;
    margin: 16px 0;
}

.cp-control-grid-main {
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
}

.cp-control-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cp-control-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cp-control-panel {
    border: 1px solid rgba(12, 35, 44, 0.08);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(4, 21, 27, 0.055);
}

.cp-control-panel .card-header {
    align-items: flex-start;
    gap: 14px;
}

.cp-control-panel .card-header h2 {
    margin: 0 0 4px;
    color: #10252d;
    font-size: 1.08rem;
}

.cp-control-panel .card-header p {
    margin: 0;
    color: #617783;
    font-size: 0.9rem;
}

.cp-control-billing-panel {
    margin: 16px 0;
}

.cp-control-billing-metrics {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.cp-control-billing-lists {
    margin-bottom: 0;
}

.cp-control-billing-page {
    margin-top: 16px;
}

.cp-control-filter-bar {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(180px, 240px)) auto;
    margin: 14px 0;
}

.cp-control-filter-bar label {
    display: grid;
    gap: 6px;
}

.cp-control-filter-bar label span {
    color: #617783;
    font-size: 0.78rem;
    font-weight: 850;
}

.cp-control-filter-bar input,
.cp-control-filter-bar select {
    background: #fff;
    border: 1px solid rgba(12, 35, 44, 0.14);
    border-radius: 10px;
    color: #10252d;
    min-height: 40px;
    padding: 9px 11px;
}

.cp-control-billing-table-wrap {
    overflow-x: auto;
}

.cp-control-billing-table td,
.cp-control-billing-table th {
    white-space: nowrap;
}

.cp-control-billing-table td:first-child,
.cp-control-billing-table th:first-child {
    min-width: 190px;
}

.cp-control-info-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cp-control-info-grid div {
    background: #fbfdff;
    border: 1px solid rgba(12, 35, 44, 0.08);
    border-radius: 12px;
    padding: 14px;
}

.cp-control-info-grid strong,
.cp-control-info-grid span {
    display: block;
}

.cp-control-info-grid strong {
    color: #10252d;
    font-weight: 950;
    margin-bottom: 5px;
}

.cp-control-info-grid span {
    color: #617783;
    font-size: 0.88rem;
}

.cp-control-subpanel {
    min-width: 0;
}

.cp-control-subpanel h3 {
    color: #10252d;
    font-size: 0.98rem;
    font-weight: 900;
    margin: 0 0 10px;
}

.cp-control-body .btn.primary {
    background: linear-gradient(135deg, #c026a8, #d946c6);
    color: #fff;
    box-shadow: 0 10px 24px rgba(192, 38, 168, 0.22);
}

.cp-control-body .btn.secondary {
    background: #fff;
    border: 1px solid rgba(12, 35, 44, 0.12);
    color: #10252d;
    box-shadow: 0 8px 20px rgba(4, 21, 27, 0.055);
}

.cp-control-score {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #10252d;
    font-size: 1.6rem;
    font-weight: 900;
}

.cp-control-score small {
    color: #617783;
    font-size: 0.75rem;
}

.cp-control-health-list {
    display: grid;
    gap: 10px;
}

.cp-control-health-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(12, 35, 44, 0.08);
    border-radius: 12px;
    background: #fbfdff;
    font-weight: 850;
}

.cp-control-mini-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.cp-control-mini-metrics div {
    padding: 12px;
    border: 1px solid rgba(12, 35, 44, 0.08);
    border-radius: 12px;
    background: #fbfdff;
}

.cp-control-mini-metrics span {
    display: block;
    color: #617783;
    font-size: 0.78rem;
    font-weight: 800;
}

.cp-control-mini-metrics strong {
    display: block;
    margin-top: 5px;
    color: #10252d;
    font-size: 1.2rem;
}

.cp-control-route-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 20px;
}

.cp-control-route-list li {
    color: #617783;
}

.cp-control-route-list li span {
    display: inline-block;
    max-width: 70%;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
    white-space: nowrap;
}

.cp-control-route-list strong {
    float: right;
    color: #10252d;
}

.cp-control-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 25px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(12, 35, 44, 0.08);
    background: #eef5f8;
    color: #47616e;
    font-size: 0.78rem;
    font-weight: 900;
    white-space: nowrap;
}

.cp-control-badge-success {
    color: #047857;
    background: #dcfce7;
    border-color: #bbf7d0;
}

.cp-control-badge-warning {
    color: #92400e;
    background: #fef3c7;
    border-color: #fde68a;
}

.cp-control-badge-danger {
    color: #b91c1c;
    background: #fee2e2;
    border-color: #fecaca;
}

.cp-control-badge-critical {
    color: #be185d;
    background: #fce7f3;
    border-color: #fbcfe8;
}

.cp-control-filterbar {
    display: grid;
    grid-template-columns: repeat(5, minmax(145px, 1fr));
    gap: 12px;
    align-items: end;
}

.cp-control-filterbar label {
    display: grid;
    gap: 6px;
    color: #5b7280;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cp-control-filterbar input,
.cp-control-filterbar select {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(12, 35, 44, 0.14);
    border-radius: 12px;
    background: #fff;
    color: #10252d;
    font-weight: 750;
}

.cp-control-filter-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cp-control-count {
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff6fd;
    color: #b3198f;
    font-weight: 900;
}

.cp-control-table-card {
    overflow-x: auto;
}

.cp-control-table {
    min-width: 1120px;
}

.cp-control-plan-table {
    min-width: 980px;
}

.cpcontrol-plan-grid {
    display: grid;
    grid-template-columns: minmax(560px, 1.08fr) minmax(420px, 0.92fr);
    gap: 16px;
    align-items: stretch;
    margin: 16px 0;
}

.cpcontrol-plan-list-card,
.cpcontrol-plan-form-card {
    overflow: hidden;
}

.cpcontrol-plan-list-card .card-header,
.cpcontrol-plan-form-card .card-header {
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(12, 35, 44, 0.08);
}

.cpcontrol-create-plan-btn {
    min-width: 132px;
}

.cpcontrol-plan-table-wrap {
    overflow-x: auto;
}

.cpcontrol-plan-table {
    min-width: 860px;
    border-collapse: separate;
    border-spacing: 0;
}

.cpcontrol-module-table {
    min-width: 1020px;
    border-collapse: separate;
    border-spacing: 0;
}

.cpcontrol-plan-table th,
.cpcontrol-module-table th {
    padding: 12px 14px;
    background: #fbfdff;
    border-bottom: 1px solid rgba(12, 35, 44, 0.09);
    color: #536977;
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.cpcontrol-plan-table td,
.cpcontrol-module-table td {
    padding: 13px 14px;
    border-bottom: 1px solid rgba(12, 35, 44, 0.08);
}

.cpcontrol-plan-row {
    position: relative;
    transition: background 160ms ease, box-shadow 160ms ease;
}

.cpcontrol-plan-row:hover {
    background: #fffafd;
}

.cpcontrol-plan-row.is-active {
    background: linear-gradient(90deg, rgba(217, 70, 198, 0.14), rgba(255, 255, 255, 0.88));
    box-shadow: inset 3px 0 0 #d946c6;
}

.cpcontrol-plan-name {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.cpcontrol-plan-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: #fff1fb;
    color: #c026a8;
}

.cpcontrol-plan-name strong,
.cpcontrol-plan-name code,
.cpcontrol-plan-name small {
    display: block;
}

.cpcontrol-plan-name strong {
    color: #10252d;
    font-weight: 950;
}

.cpcontrol-plan-name code {
    margin-top: 2px;
    color: #607286;
    font-size: 0.76rem;
}

.cpcontrol-plan-name small {
    margin-top: 4px;
    color: #617783;
    line-height: 1.35;
}

.cpcontrol-badge-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cpcontrol-edit-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #c026a8;
    font-weight: 950;
    text-decoration: none;
}

.cpcontrol-edit-link svg {
    width: 15px;
    height: 15px;
}

.cpcontrol-plan-form-card {
    display: flex;
    flex-direction: column;
}

.cpcontrol-inline-warning {
    margin: 14px 16px 0;
}

.cpcontrol-plan-edit-form {
    padding-top: 14px;
}

.cpcontrol-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
}

.cpcontrol-form-wide {
    grid-column: 1 / -1;
}

.cpcontrol-check-card {
    align-items: start;
    min-height: 74px;
}

.cpcontrol-plan-empty {
    display: grid;
    place-items: center;
    gap: 10px;
    min-height: 420px;
    padding: 34px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 20%, rgba(217, 70, 198, 0.12), transparent 32%),
        linear-gradient(180deg, #fff, #fbfdff);
}

.cpcontrol-plan-empty > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: #fff1fb;
    color: #c026a8;
}

.cpcontrol-plan-empty h2 {
    margin: 0;
    color: #10252d;
    font-size: 1.2rem;
}

.cpcontrol-plan-empty p {
    max-width: 360px;
    margin: 0 0 6px;
    color: #617783;
    font-weight: 750;
}

.cpcontrol-plan-empty small {
    color: #92400e;
    font-weight: 850;
}

.cp-control-table td,
.cp-control-table th {
    vertical-align: top;
}

.cp-control-route {
    display: inline-block;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cp-control-request-id {
    color: #b3198f;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.82rem;
    font-weight: 850;
}

.cp-control-plan-form {
    display: grid;
    gap: 16px;
}

.cp-control-plan-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.cp-control-plan-form-grid label {
    display: grid;
    gap: 6px;
}

.cp-control-plan-form-grid label > span {
    color: #10252d;
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.cp-control-plan-form-grid input,
.cp-control-plan-form-grid select,
.cp-control-plan-form-grid textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(12, 35, 44, 0.14);
    border-radius: 12px;
    background: #fff;
    color: #10252d;
    font: inherit;
    font-weight: 780;
    padding: 10px 12px;
}

.cp-control-plan-form-grid textarea {
    min-height: 118px;
    resize: vertical;
}

.cp-control-plan-form-grid input:focus,
.cp-control-plan-form-grid select:focus,
.cp-control-plan-form-grid textarea:focus {
    border-color: #d346c8;
    box-shadow: 0 0 0 3px rgba(211, 70, 200, 0.13);
    outline: none;
}

.cp-control-plan-form-grid input[readonly] {
    background: #f5f8fb;
    color: #607286;
}

.cp-control-plan-form-grid small {
    color: #617783;
    font-size: 0.78rem;
    font-weight: 750;
    line-height: 1.35;
}

.cp-control-plan-wide {
    grid-column: 1 / -1;
}

.cp-control-plan-toggle {
    align-content: start;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 10px;
    padding: 12px;
    border: 1px solid rgba(12, 35, 44, 0.08);
    border-radius: 12px;
    background: #fbfdff;
}

.cp-control-plan-toggle input {
    width: 18px;
    min-height: 18px;
    margin-top: 1px;
    padding: 0;
    accent-color: #d346c8;
}

.cp-control-plan-toggle span,
.cp-control-plan-toggle small {
    grid-column: 2;
}

.cp-control-plan-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.cpcontrol-module-editor-card {
    margin-top: 16px;
}

.cpcontrol-plan-picker {
    display: flex;
    align-items: end;
    gap: 10px;
}

.cpcontrol-plan-picker label {
    display: grid;
    gap: 5px;
    min-width: 240px;
    margin: 0;
}

.cpcontrol-plan-picker span {
    color: #536977;
    font-size: 0.74rem;
    font-weight: 950;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.cpcontrol-module-editor-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(150px, 0.34fr) minmax(150px, 0.34fr);
    gap: 12px;
    margin: 14px 0;
}

.cpcontrol-module-editor-summary > div {
    padding: 13px 14px;
    border: 1px solid rgba(12, 35, 44, 0.08);
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff, #fbfdff);
}

.cpcontrol-module-editor-summary span,
.cpcontrol-module-editor-summary small {
    display: block;
    color: #617783;
    font-size: 0.78rem;
    font-weight: 800;
}

.cpcontrol-module-editor-summary strong {
    display: block;
    margin: 4px 0 2px;
    color: #10252d;
    font-size: 1.05rem;
    font-weight: 950;
}

.cpcontrol-module-editor-form {
    display: grid;
    gap: 14px;
}

.cpcontrol-module-editor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.cpcontrol-module-group {
    padding: 14px;
    border: 1px solid rgba(12, 35, 44, 0.08);
    border-radius: 16px;
    background: #fff;
}

.cpcontrol-module-group h3 {
    margin: 0 0 11px;
    color: #10252d;
    font-size: 0.92rem;
    font-weight: 950;
}

.cpcontrol-module-checks {
    display: grid;
    gap: 8px;
}

.cpcontrol-module-check {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 10px;
    border: 1px solid rgba(12, 35, 44, 0.08);
    border-radius: 13px;
    background: #fbfdff;
    cursor: pointer;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.cpcontrol-module-check:hover {
    border-color: rgba(211, 70, 200, 0.26);
    box-shadow: 0 10px 22px rgba(4, 21, 27, 0.045);
}

.cpcontrol-module-check.is-checked {
    border-color: rgba(211, 70, 200, 0.28);
    background: linear-gradient(135deg, #fff7fd, #ffffff);
}

.cpcontrol-module-check.is-disabled {
    opacity: 0.62;
    cursor: not-allowed;
}

.cpcontrol-module-check input {
    width: 18px;
    height: 18px;
    accent-color: #d346c8;
}

.cpcontrol-module-check-main {
    display: grid;
    gap: 2px;
}

.cpcontrol-module-check-main strong {
    color: #10252d;
    font-size: 0.86rem;
    font-weight: 950;
}

.cpcontrol-module-check-main code {
    color: #617783;
    font-size: 0.74rem;
    font-weight: 800;
}

.cpcontrol-module-check-badges {
    display: inline-flex;
    justify-content: flex-end;
    gap: 5px;
    flex-wrap: wrap;
}

.cpcontrol-matrix-card {
    margin-top: 16px;
}

.cpcontrol-matrix-wrapper {
    max-width: 100%;
    overflow-x: auto;
}

.cpcontrol-module-matrix {
    min-width: 980px;
    border-collapse: separate;
    border-spacing: 0;
}

.cpcontrol-module-matrix th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 12px 14px;
    background: #fbfdff;
    border-bottom: 1px solid rgba(12, 35, 44, 0.1);
    color: #536977;
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.cpcontrol-module-matrix td {
    padding: 9px 14px;
    border-bottom: 1px solid rgba(12, 35, 44, 0.07);
}

.cpcontrol-module-matrix td:first-child strong {
    color: #10252d;
}

.cpcontrol-matrix-category-row td {
    padding: 12px 14px 8px;
    background: #f8fbfd;
    border-bottom: 1px solid rgba(12, 35, 44, 0.08);
}

.cpcontrol-matrix-category-row span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #10252d;
    font-size: 0.82rem;
    font-weight: 950;
}

.cpcontrol-matrix-category-row svg {
    width: 14px;
    height: 14px;
    color: #c026a8;
}

.cpcontrol-module-matrix .cp-control-badge {
    min-height: 22px;
    padding: 3px 8px;
    font-size: 0.72rem;
}

.cpcontrol-empty-cell {
    color: #8aa0ac;
    font-weight: 900;
}

.cpcontrol-integration-note {
    display: inline-flex;
    margin-top: 3px;
    color: #92400e;
    font-size: 0.74rem;
    font-weight: 850;
}

.cp-control-meta summary {
    color: #b3198f;
    cursor: pointer;
    font-weight: 850;
}

.cp-control-meta pre {
    max-width: 440px;
    max-height: 280px;
    overflow: auto;
    padding: 12px;
    border: 1px solid rgba(12, 35, 44, 0.08);
    border-radius: 12px;
    background: #071920;
    color: #e7f2f6;
    font-size: 0.78rem;
}

.cp-control-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 14px;
    color: #617783;
    font-weight: 850;
}

.cp-control-pagination .is-disabled {
    pointer-events: none;
    opacity: 0.45;
}

.cp-control-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.cp-control-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(12, 35, 44, 0.08);
    border-radius: 14px;
    background: #fff;
    color: #10252d;
    text-decoration: none;
}

.cp-control-action svg {
    color: #c026a8;
}

.cp-control-action strong,
.cp-control-action small {
    display: block;
}

.cp-control-action small {
    margin-top: 2px;
    color: #617783;
}

.cp-control-action.is-disabled {
    opacity: 0.62;
}

.cp-control-placeholder-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.cp-control-placeholder {
    padding: 14px;
    border: 1px dashed rgba(192, 38, 168, 0.28);
    border-radius: 14px;
    background: #fff8fd;
    color: #8a4f7f;
    font-weight: 850;
}

.cp-control-notice {
    margin: 14px 0;
}

@media (max-width: 1400px) {
    .cp-control-kpis,
    .cp-control-kpis-compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cp-control-grid-main,
    .cp-control-grid-three,
    .cp-control-grid-two,
    .cpcontrol-plan-grid,
    .cpcontrol-module-editor-grid,
    .cp-control-info-grid {
        grid-template-columns: 1fr;
    }

    .cp-control-filterbar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .cp-control-plan-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .cp-control-hero {
        align-items: flex-start;
    }

    .cp-control-hero-actions,
    .cp-control-filter-actions {
        width: 100%;
    }

    .cp-control-kpis,
    .cp-control-kpis-compact,
    .cp-control-mini-metrics,
    .cp-control-filterbar,
    .cp-control-filter-bar,
    .cp-control-plan-form-grid,
    .cp-control-info-grid,
    .cpcontrol-module-editor-summary,
    .cpcontrol-module-editor-grid,
    .cp-control-actions,
    .cp-control-placeholder-row {
        grid-template-columns: 1fr;
    }

    .cpcontrol-plan-picker {
        align-items: stretch;
        flex-direction: column;
    }

    .cpcontrol-plan-picker label {
        min-width: 0;
    }

    .cpcontrol-module-check {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .cpcontrol-module-check-badges {
        grid-column: 2;
        justify-content: flex-start;
    }

    .cp-control-pagination {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

/* Action Center premium workspace */
.action-center-page {
  --wd-ac-ink: #102a31;
  --wd-ac-muted: #60777d;
  --wd-ac-line: #dce7e9;
  --wd-ac-surface: #ffffff;
  --wd-ac-canvas: #f5f8f8;
}

.action-center-page .page-heading {
  display: none;
}

.action-center-page .content {
  padding-top: 24px;
  padding-bottom: 52px;
}

.action-center-page .notice {
  margin: 18px 0 0;
}

.wd-ac-premium-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  min-height: 176px;
  margin: 0 0 28px;
  padding: 28px 30px;
  overflow: hidden;
  border-top: 1px solid var(--wd-ac-line);
  border-bottom: 1px solid var(--wd-ac-line);
  background: #f8fbfb;
}

.wd-ac-premium-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 740px;
}

.wd-ac-premium-hero .eyebrow {
  margin-bottom: 8px;
  color: #a32b93;
  letter-spacing: 0;
}

.wd-ac-premium-hero h1 {
  margin: 0;
  color: var(--wd-ac-ink);
  font-size: 36px;
  line-height: 1.12;
  letter-spacing: 0;
}

.wd-ac-premium-hero-copy > p:not(.eyebrow) {
  margin: 9px 0 0;
  color: var(--wd-ac-muted);
  font-size: 16px;
}

.wd-ac-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 18px;
}

.wd-ac-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #496268;
  font-size: 13px;
  font-weight: 700;
}

.wd-ac-hero-meta svg {
  width: 16px;
  height: 16px;
  color: #b532a4;
}

.wd-ac-premium-hero .wd-ac-hero-actions {
  position: relative;
  z-index: 2;
  justify-content: flex-end;
}

.wd-ac-premium-hero .btn {
  min-height: 44px;
  box-shadow: 0 8px 20px rgba(20, 62, 69, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.wd-ac-premium-hero .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(20, 62, 69, 0.13);
}

.wd-ac-hero-shark {
  position: absolute;
  right: 28%;
  bottom: -26px;
  width: 122px;
  height: auto;
  opacity: 0.07;
  pointer-events: none;
  transform: rotate(-7deg);
}

.wd-action-center {
  gap: 24px;
  max-width: none;
}

.wd-ac-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
}

.wd-ac-section-heading .eyebrow {
  margin-bottom: 5px;
  color: #a32b93;
  letter-spacing: 0;
}

.wd-ac-section-heading h2 {
  margin: 0;
  color: var(--wd-ac-ink);
  font-size: 22px;
  letter-spacing: 0;
}

.wd-ac-section-heading > p {
  margin: 0 0 2px;
  color: var(--wd-ac-muted);
  font-size: 13px;
}

.wd-ac-focus-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.wd-ac-focus-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 13px;
  min-height: 138px;
  padding: 17px;
  border: 1px solid var(--wd-ac-line);
  border-radius: 8px;
  background: var(--wd-ac-surface);
  color: var(--wd-ac-ink);
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(21, 62, 69, 0.055);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.wd-ac-focus-card:hover {
  transform: translateY(-2px);
  border-color: #c8dadd;
  box-shadow: 0 14px 28px rgba(21, 62, 69, 0.1);
}

.wd-ac-focus-card.is-danger { background: #fff8f8; }
.wd-ac-focus-card.is-warning { background: #fffaf1; }
.wd-ac-focus-card.is-blue { background: #f6f9ff; }
.wd-ac-focus-card.is-purple { background: #fcf8ff; }
.wd-ac-focus-card.is-teal,
.wd-ac-focus-card.is-success { background: #f5fbf8; }

.wd-ac-focus-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #edf4f5;
  color: #365d65;
}

.wd-ac-focus-card.is-danger .wd-ac-focus-icon { background: #ffe5e8; color: #c72e43; }
.wd-ac-focus-card.is-warning .wd-ac-focus-icon { background: #fff0c9; color: #a96d00; }
.wd-ac-focus-card.is-blue .wd-ac-focus-icon { background: #e6efff; color: #2f6bc5; }
.wd-ac-focus-card.is-purple .wd-ac-focus-icon { background: #f1e6fa; color: #7942a8; }
.wd-ac-focus-card.is-teal .wd-ac-focus-icon,
.wd-ac-focus-card.is-success .wd-ac-focus-icon { background: #dff4e8; color: #237c53; }

.wd-ac-focus-icon svg {
  width: 21px;
  height: 21px;
}

.wd-ac-focus-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.wd-ac-focus-copy strong {
  color: var(--wd-ac-ink);
  font-size: 14px;
  line-height: 1.35;
}

.wd-ac-focus-copy small {
  margin-top: 5px;
  color: var(--wd-ac-muted);
  font-size: 12px;
  line-height: 1.45;
}

.wd-ac-focus-copy > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding-top: 12px;
  color: #8e2b83;
  font-size: 12px;
  font-weight: 800;
}

.wd-ac-focus-copy > span svg {
  width: 14px;
  height: 14px;
  transition: transform 160ms ease;
}

.wd-ac-focus-card:hover .wd-ac-focus-copy > span svg {
  transform: translateX(2px);
}

.action-center-page .wd-ac-kpis {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.action-center-page .wd-ac-kpi {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 9px 13px;
  min-height: 132px;
  padding: 17px;
  border: 1px solid var(--wd-ac-line);
  border-radius: 8px;
  background: var(--wd-ac-surface);
  box-shadow: 0 7px 20px rgba(21, 62, 69, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.action-center-page .wd-ac-kpi:hover {
  transform: translateY(-2px);
  border-color: #c7d9dc;
  box-shadow: 0 13px 26px rgba(21, 62, 69, 0.09);
}

.action-center-page .wd-ac-kpi::before,
.action-center-page .wd-ac-kpi::after {
  content: none;
}

.wd-ac-kpi-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #eef4f5;
  color: #48676d;
}

.wd-ac-kpi.danger .wd-ac-kpi-icon { background: #ffe7ea; color: #c72e43; }
.wd-ac-kpi.blue .wd-ac-kpi-icon { background: #e7f0ff; color: #2c6dc7; }
.wd-ac-kpi.teal .wd-ac-kpi-icon { background: #def4ec; color: #1f7b60; }
.wd-ac-kpi.purple .wd-ac-kpi-icon { background: #f1e6fa; color: #7a42aa; }
.wd-ac-kpi.warning .wd-ac-kpi-icon { background: #fff0cb; color: #a66c00; }

.wd-ac-kpi-icon svg {
  width: 20px;
  height: 20px;
}

.wd-ac-kpi-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.action-center-page .wd-ac-kpi-copy > span {
  color: var(--wd-ac-muted);
  font-size: 12px;
  font-weight: 700;
}

.action-center-page .wd-ac-kpi-copy strong {
  color: var(--wd-ac-ink);
  font-size: 30px;
  line-height: 1;
}

.action-center-page .wd-ac-kpi-copy small {
  color: #71868b;
  font-size: 11px;
}

.wd-ac-kpi-trend {
  display: inline-flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 5px;
  align-self: end;
  color: #6f8489;
  font-size: 11px;
  font-weight: 750;
}

.wd-ac-kpi-trend svg {
  width: 14px;
  height: 14px;
}

.wd-ac-kpi-trend.positive { color: #20885f; }
.wd-ac-kpi-trend.negative { color: #c72e43; }

.wd-ac-control-center {
  overflow: hidden;
  border: 1px solid var(--wd-ac-line);
  border-radius: 8px;
  background: var(--wd-ac-surface);
  box-shadow: 0 8px 24px rgba(21, 62, 69, 0.05);
}

.action-center-page .wd-ac-tabs {
  gap: 10px;
  padding: 0 18px;
  border-bottom-color: var(--wd-ac-line);
}

.action-center-page .wd-ac-tabs a {
  min-height: 50px;
  padding: 16px 9px 13px;
  font-size: 12px;
}

.action-center-page .wd-ac-tabs a.is-active::after {
  right: 8px;
  left: 8px;
  height: 2px;
}

.action-center-page .wd-ac-filters {
  gap: 12px;
  padding: 18px;
  background: #fbfdfd;
}

.action-center-page .wd-ac-filters label,
.action-center-page .wd-ac-more-filters label {
  color: #5c7378;
  font-size: 11px;
  letter-spacing: 0;
}

.action-center-page .wd-ac-filters input,
.action-center-page .wd-ac-filters select,
.action-center-page .wd-ac-more-filters input,
.action-center-page .wd-ac-more-filters select {
  min-height: 43px;
  border-color: #d5e1e3;
  background: #fff;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.action-center-page .wd-ac-filters input:focus,
.action-center-page .wd-ac-filters select:focus,
.action-center-page .wd-ac-more-filters input:focus,
.action-center-page .wd-ac-more-filters select:focus {
  border-color: #c24bb3;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(194, 75, 179, 0.11);
}

.action-center-page .wd-ac-more-filters summary {
  min-height: 43px;
  border-color: #d5e1e3;
}

.action-center-page .wd-ac-filter-actions .btn {
  min-height: 43px;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.action-center-page .wd-ac-filter-actions .btn:hover {
  transform: translateY(-1px);
}

.action-center-page .wd-ac-layout {
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
}

.action-center-page .wd-ac-layout.is-full-width {
  grid-template-columns: minmax(0, 1fr);
}

.action-center-page .wd-ac-main {
  gap: 24px;
}

.action-center-page .wd-ac-section {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.action-center-page .wd-ac-section > .card-header {
  margin-bottom: 11px;
  padding: 0 2px;
}

.action-center-page .wd-ac-section > .card-header .eyebrow {
  margin-bottom: 4px;
  color: #758a8f;
  letter-spacing: 0;
}

.action-center-page .wd-ac-section > .card-header h2 {
  color: var(--wd-ac-ink);
  font-size: 20px;
  letter-spacing: 0;
}

.action-center-page .wd-ac-section .status-pill {
  min-width: 28px;
  border: 1px solid #d7e3e5;
  background: #fff;
  color: #50676c;
}

.action-center-page .wd-ac-task-list,
.action-center-page .wd-ac-table-wrap {
  border-color: var(--wd-ac-line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(21, 62, 69, 0.05);
}

.action-center-page .wd-ac-task {
  min-height: 82px;
  gap: 14px;
  padding: 15px 16px;
  border-bottom-color: #e4ecee;
  transition: background-color 150ms ease, box-shadow 150ms ease;
}

.action-center-page .wd-ac-task:hover {
  background: #fbfefe;
  box-shadow: inset 3px 0 0 #d04dc0;
}

.action-center-page .wd-ac-task.is-overdue {
  background: #fffafa;
}

.action-center-page .wd-ac-task.is-overdue:hover {
  background: #fff6f7;
  box-shadow: inset 3px 0 0 #d43b50;
}

.action-center-page .wd-ac-task h3 {
  font-size: 14px;
  line-height: 1.45;
}

.action-center-page .wd-ac-task-meta {
  gap: 7px 15px;
  margin-top: 8px;
  font-size: 11px;
}

.action-center-page .wd-ac-badges {
  gap: 5px;
  margin-top: 7px;
}

.action-center-page .wd-ac-badge,
.action-center-page .wd-ac-pin {
  min-height: 22px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 650;
}

.action-center-page .wd-ac-task-check button,
.action-center-page .wd-ac-table-check button {
  width: 25px;
  height: 25px;
  transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.action-center-page .wd-ac-task-check button:hover,
.action-center-page .wd-ac-table-check button:hover {
  transform: scale(1.05);
  border-color: #bd4eaf;
  background: #fff8fd;
}

.action-center-page .wd-ac-row-action {
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.action-center-page .wd-ac-row-action:hover {
  transform: translateY(-1px);
}

.action-center-page .wd-ac-table thead th {
  height: 46px;
  background: #f8fbfb;
  color: #61787d;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.action-center-page .wd-ac-table tbody tr {
  height: 68px;
  transition: background-color 150ms ease, box-shadow 150ms ease;
}

.action-center-page .wd-ac-table tbody tr:hover {
  background: #fbfefe;
  box-shadow: inset 3px 0 0 #d04dc0;
}

.action-center-page .wd-ac-table td {
  padding-top: 13px;
  padding-bottom: 13px;
}

.action-center-page .wd-ac-side {
  top: 88px;
}

.action-center-page .wd-ac-suggestions {
  gap: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--wd-ac-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(21, 62, 69, 0.07);
}

.wd-ac-assistant-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 19px 19px 15px;
  border-bottom: 1px solid #e2eaec;
  background: #f8fbfb;
}

.wd-ac-assistant-header .eyebrow {
  margin-bottom: 5px;
  color: #a32b93;
  letter-spacing: 0;
}

.wd-ac-assistant-header h2 {
  margin: 0;
  color: var(--wd-ac-ink);
  font-size: 18px;
  letter-spacing: 0;
}

.wd-ac-assistant-header p:not(.eyebrow) {
  margin: 7px 0 0;
  color: var(--wd-ac-muted);
  font-size: 12px;
  line-height: 1.45;
}

.wd-ac-assistant-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 8px;
  background: #f7e8f5;
  color: #922a84;
  font-size: 10px;
  font-weight: 800;
}

.wd-ac-assistant-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid #e2eaec;
}

.wd-ac-assistant-status span {
  display: grid;
  gap: 2px;
  padding: 13px 16px;
  color: var(--wd-ac-muted);
  font-size: 10px;
}

.wd-ac-assistant-status span + span {
  border-left: 1px solid #e2eaec;
}

.wd-ac-assistant-status strong {
  color: var(--wd-ac-ink);
  font-size: 18px;
}

.wd-ac-assistant-list {
  display: grid;
}

.action-center-page .wd-ac-suggestion {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 20px;
  gap: 11px;
  align-items: center;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid #e7edef;
  border-radius: 0;
  background: #fff;
  transition: background-color 150ms ease;
}

.action-center-page .wd-ac-suggestion:hover {
  background: #fafdfd;
}

.wd-ac-suggestion-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #edf3f4;
  color: #49686e;
}

.wd-ac-suggestion.is-danger .wd-ac-suggestion-icon { background: #ffe8ea; color: #c42f43; }
.wd-ac-suggestion.is-warning .wd-ac-suggestion-icon { background: #fff0cc; color: #a56b00; }
.wd-ac-suggestion.is-blue .wd-ac-suggestion-icon { background: #e7f0ff; color: #2e6ec7; }
.wd-ac-suggestion.is-teal .wd-ac-suggestion-icon { background: #def4ec; color: #1f7b60; }

.wd-ac-suggestion-icon svg {
  width: 17px;
  height: 17px;
}

.wd-ac-suggestion-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.action-center-page .wd-ac-suggestion-copy strong {
  color: var(--wd-ac-ink);
  font-size: 12px;
  line-height: 1.35;
}

.action-center-page .wd-ac-suggestion-copy small {
  color: var(--wd-ac-muted);
  font-size: 11px;
  line-height: 1.4;
}

.wd-ac-suggestion-arrow {
  display: inline-grid;
  place-items: center;
  color: #819398;
}

.wd-ac-suggestion-arrow svg {
  width: 15px;
  height: 15px;
  transition: transform 150ms ease;
}

.wd-ac-suggestion:hover .wd-ac-suggestion-arrow svg {
  transform: translateX(2px);
}

.wd-ac-assistant-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 28px 18px;
  text-align: center;
}

.wd-ac-assistant-empty > span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #e0f4e9;
  color: #218159;
}

.wd-ac-assistant-empty strong {
  color: var(--wd-ac-ink);
  font-size: 13px;
}

.wd-ac-assistant-empty small {
  color: var(--wd-ac-muted);
  font-size: 11px;
  line-height: 1.45;
}

.wd-ac-assistant-footnote {
  margin: 0;
  padding: 11px 16px;
  border-top: 1px solid #e2eaec;
  color: #829499;
  font-size: 10px;
  text-align: center;
}

.wd-ac-premium-hero,
.wd-ac-focus,
.action-center-page .wd-ac-kpis,
.wd-ac-control-center,
.action-center-page .wd-ac-layout {
  animation: wdAcRise 360ms ease both;
}

.wd-ac-focus { animation-delay: 45ms; }
.action-center-page .wd-ac-kpis { animation-delay: 80ms; }
.wd-ac-control-center { animation-delay: 115ms; }
.action-center-page .wd-ac-layout { animation-delay: 150ms; }

@keyframes wdAcRise {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1420px) {
  .wd-ac-focus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .action-center-page .wd-ac-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1240px) {
  .action-center-page .wd-ac-layout {
    grid-template-columns: 1fr;
  }

  .action-center-page .wd-ac-side {
    position: static;
  }
}

@media (max-width: 980px) {
  .wd-ac-premium-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .wd-ac-premium-hero .wd-ac-hero-actions {
    justify-content: flex-start;
  }

  .wd-ac-hero-shark {
    right: 28px;
  }

  .action-center-page .wd-ac-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wd-ac-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

@media (max-width: 720px) {
  .action-center-page .content {
    padding-top: 16px;
  }

  .wd-ac-premium-hero {
    min-height: 0;
    padding: 23px 20px;
  }

  .wd-ac-premium-hero h1 {
    font-size: 29px;
  }

  .wd-ac-premium-hero .wd-ac-hero-actions,
  .wd-ac-premium-hero .btn {
    width: 100%;
  }

  .wd-ac-premium-hero .wd-ac-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .wd-ac-premium-hero .btn {
    justify-content: center;
  }

  .wd-ac-focus-grid,
  .action-center-page .wd-ac-kpis {
    grid-template-columns: 1fr;
  }

  .action-center-page .wd-ac-tabs {
    padding: 0 10px;
  }

  .action-center-page .wd-ac-filters {
    padding: 14px;
  }

  .action-center-page .wd-ac-filters > label,
  .action-center-page .wd-ac-filters > .wd-ac-filter-search,
  .action-center-page .wd-ac-filters > .wd-ac-filter-date {
    min-width: 100%;
    flex-basis: 100%;
  }

  .wd-ac-hero-shark {
    width: 92px;
    opacity: 0.05;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wd-ac-premium-hero,
  .wd-ac-focus,
  .action-center-page .wd-ac-kpis,
  .wd-ac-control-center,
  .action-center-page .wd-ac-layout,
  .wd-ac-focus-card,
  .action-center-page .wd-ac-kpi,
  .action-center-page .wd-ac-task,
  .action-center-page .wd-ac-table tbody tr,
  .action-center-page .btn {
    animation: none;
    transition: none;
  }
}

/* Action Center compact all-tasks table */
.action-center-page .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.action-center-page .wd-ac-table {
  min-width: 1240px;
  table-layout: fixed;
}

.wd-ac-col-check { width: 52px; }
.wd-ac-col-task { width: 36%; }
.wd-ac-col-owner { width: 145px; }
.wd-ac-col-assigned { width: 155px; }
.wd-ac-col-period { width: 210px; }
.wd-ac-col-priority { width: 102px; }
.wd-ac-col-status { width: 104px; }
.wd-ac-col-action { width: 76px; }

.action-center-page .wd-ac-table thead th {
  height: 44px;
  padding: 0 12px;
  border-bottom: 1px solid #dfe8ea;
  text-align: left;
}

.action-center-page .wd-ac-table thead th:first-child,
.action-center-page .wd-ac-table thead th:last-child {
  text-align: center;
}

.wd-ac-sort-header {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  width: 100%;
  color: #61787d;
  text-decoration: none;
  transition: color 150ms ease;
}

.wd-ac-sort-header svg {
  width: 13px;
  height: 13px;
  color: #a0b0b4;
  opacity: 0.62;
}

.wd-ac-sort-header:hover,
.wd-ac-sort-header.is-active {
  color: #98288b;
}

.wd-ac-sort-header:hover svg,
.wd-ac-sort-header.is-active svg {
  color: #b633a5;
  opacity: 1;
}

.action-center-page .wd-ac-table tbody tr {
  height: 82px;
}

.action-center-page .wd-ac-table tbody tr.is-done {
  background: #fbfdfc;
}

.action-center-page .wd-ac-table tbody tr.is-done .wd-ac-table-task > strong a {
  color: #536b70;
}

.action-center-page .wd-ac-table td {
  padding: 13px 12px;
  border-bottom: 1px solid #e6edef;
  color: #334f55;
  font-size: 12px;
  line-height: 1.35;
}

.action-center-page .wd-ac-table tbody tr:last-child td {
  border-bottom: 0;
}

.wd-ac-table-check-cell,
.wd-ac-table-action-cell {
  text-align: center;
}

.wd-ac-table-task {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.action-center-page .wd-ac-table-task > strong {
  min-width: 0;
  color: var(--wd-ac-ink);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
}

.action-center-page .wd-ac-table-task > strong a {
  display: block;
  overflow-wrap: anywhere;
}

.action-center-page .wd-ac-table-task .wd-ac-badges {
  gap: 5px;
  margin-top: 0;
}

.action-center-page .wd-ac-table-task .wd-ac-badge {
  min-height: 20px;
  padding: 2px 7px;
  font-size: 9.5px;
}

.wd-ac-table-checklist {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  margin: 0;
  color: #6b8186;
  font-size: 10px;
  font-weight: 650;
}

.wd-ac-table-checklist svg {
  width: 12px;
  height: 12px;
  color: #24815b;
}

.wd-ac-table-person {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-width: 0;
}

.wd-ac-table-person svg {
  width: 15px;
  height: 15px;
  color: #8ba0a5;
}

.wd-ac-table-person > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.wd-ac-table-person.is-muted {
  color: #7c9196;
}

.wd-ac-table-period {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.wd-ac-table-period > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.wd-ac-table-period small {
  color: #87999d;
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0;
}

.wd-ac-table-period strong {
  color: #38545a;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.wd-ac-table-period .is-danger strong {
  color: #c33146;
}

.action-center-page .wd-ac-table td > .wd-ac-badge {
  justify-content: center;
  min-width: 66px;
  min-height: 24px;
  margin: 0;
  font-size: 10px;
  font-weight: 700;
}

.action-center-page .wd-ac-table-action-cell .wd-ac-row-action {
  margin: 0 auto;
}

@media (max-width: 1280px) {
  .action-center-page .wd-ac-table {
    min-width: 1160px;
  }

  .wd-ac-col-owner { width: 130px; }
  .wd-ac-col-assigned { width: 140px; }
  .wd-ac-col-period { width: 198px; }
}

/* Produktudvikling */
.pd-page {
  display: grid;
  gap: 14px;
  color: var(--text-primary);
}

.pd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  font-size: 12px;
}

.pd-breadcrumb strong {
  color: var(--os-accent, var(--ss-magenta-700));
}

.pd-page-head,
.pd-card-head,
.pd-head-actions,
.pd-chart-controls,
.pd-detail-actions,
.pd-filter-actions,
.pd-date-range,
.pd-picker-actions {
  display: flex;
  align-items: center;
}

.pd-page-head {
  justify-content: space-between;
  gap: 24px;
}

.pd-page-head h1,
.pd-card-head h2,
.pd-empty h2 {
  margin: 0;
  color: var(--text-primary);
}

.pd-page-head h1 {
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.15;
}

.pd-page-head p {
  margin: 6px 0 0;
  color: var(--text-muted);
}

.pd-head-actions,
.pd-detail-actions,
.pd-filter-actions {
  gap: 8px;
}

.pd-icon-button {
  width: 42px;
  min-width: 42px;
  padding-inline: 0;
}

.pd-filter-card {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(150px, 1.05fr) minmax(310px, 2.4fr) minmax(280px, 2.1fr) minmax(130px, .9fr) minmax(190px, 1.35fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
}

.pd-filter-field {
  position: relative;
  display: grid;
  gap: 6px;
  min-width: 0;
}

.pd-filter-field > label {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pd-filter-field select,
.pd-filter-field input,
.pd-product-trigger {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-primary);
  font: inherit;
}

.pd-filter-field select,
.pd-filter-field input {
  padding: 8px 10px;
}

.pd-product-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  cursor: pointer;
  text-align: left;
}

.pd-product-trigger > [data-pd-chip-list] {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
}

.pd-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 160px;
  padding: 4px 7px;
  border: 1px solid #e7c8f2;
  border-radius: 6px;
  background: #fbf4ff;
  color: #61326d;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pd-chip button {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.pd-chip-more {
  flex: 0 0 auto;
}

.pd-product-count {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 11px;
  white-space: nowrap;
}

.pd-product-picker {
  position: absolute;
  z-index: 80;
  top: calc(100% + 6px);
  left: 0;
  width: min(520px, 95vw);
  padding: 10px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 18px 45px rgba(5, 37, 45, .18);
}

.pd-product-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pd-product-search input {
  min-height: 38px;
}

.pd-picker-status,
.pd-picker-empty {
  padding: 9px 2px;
  color: var(--text-muted);
  font-size: 11px;
}

.pd-product-results {
  max-height: 300px;
  overflow-y: auto;
}

.pd-product-option {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 6px;
  border-radius: 6px;
  cursor: pointer;
}

.pd-product-option:hover {
  background: var(--ss-magenta-50);
}

.pd-product-option input {
  width: 16px;
  min-height: 16px;
  margin-top: 2px;
  accent-color: var(--ss-magenta-600);
}

.pd-product-option span,
.pd-product-option strong,
.pd-product-option small {
  display: block;
  min-width: 0;
}

.pd-product-option small {
  margin-top: 2px;
  color: var(--text-muted);
}

.pd-load-more {
  width: 100%;
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--ss-magenta-700);
  font-weight: 700;
  cursor: pointer;
}

.pd-picker-actions {
  justify-content: space-between;
  padding-top: 9px;
  border-top: 1px solid var(--border-light);
}

.pd-picker-actions button {
  padding: 5px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  cursor: pointer;
}

.pd-period-inputs {
  display: grid;
  gap: 6px;
}

.pd-date-range {
  gap: 6px;
}

.pd-date-range input {
  min-width: 0;
}

.pd-filter-actions {
  justify-content: flex-end;
}

.pd-alert {
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 12px;
}

.pd-alert-error {
  border-color: #fecaca;
  background: var(--ss-danger-bg);
  color: var(--ss-danger-dark);
}

.pd-alert-warning {
  border-color: #f2dca4;
  background: var(--ss-warning-bg);
  color: var(--ss-warning-dark);
}

.pd-alert-warning span + span::before {
  content: "  ";
}

.pd-empty,
.pd-access-empty {
  padding: 42px 24px;
  text-align: center;
}

.pd-empty-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 14px;
  background: var(--ss-magenta-100);
  color: var(--ss-magenta-700);
  font-size: 24px;
}

.pd-empty p,
.pd-access-empty p {
  margin: 7px 0 0;
  color: var(--text-muted);
}

.pd-kpi-grid {
  display: grid;
  gap: 10px;
}

.pd-kpi {
  min-height: 118px;
  padding: 15px;
}

.pd-kpi-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.pd-kpi-label i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--ss-magenta-100);
  color: var(--ss-magenta-600);
  font-style: normal;
}

.pd-kpi > strong,
.pd-kpi > small,
.pd-kpi > em {
  display: block;
}

.pd-kpi > strong {
  margin-top: 7px;
  font-size: 24px;
  line-height: 1.1;
}

.pd-kpi > small {
  min-height: 17px;
  margin-top: 5px;
  font-weight: 700;
}

.pd-kpi > em {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 10px;
  font-style: normal;
}

.tone-positive { color: var(--ss-success-dark); }
.pd-change-context[title] {
  cursor: help;
  text-decoration: underline dotted rgba(71, 97, 108, .55);
  text-underline-offset: 3px;
}
.tone-negative { color: var(--ss-danger); }
.tone-neutral { color: var(--text-muted); }

.pd-updated {
  margin: -7px 0 0;
  color: var(--text-muted);
  font-size: 10px;
  text-align: right;
}

.pd-main-grid {
  display: grid;
  gap: 10px;
}

.pd-card-head {
  min-height: 50px;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-light);
}

.pd-card-head h2 {
  font-size: 16px;
}

.pd-chart-controls {
  gap: 10px;
}

.pd-chart-controls label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  font-size: 11px;
}

.pd-chart-controls select {
  min-width: 150px;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background: #fff;
}

.pd-segmented {
  display: flex;
  border: 1px solid var(--border-light);
  border-radius: 7px;
  overflow: hidden;
}

.pd-segmented button {
  min-height: 32px;
  padding: 6px 10px;
  border: 0;
  border-left: 1px solid var(--border-light);
  background: #fff;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 11px;
}

.pd-segmented button:first-child { border-left: 0; }
.pd-segmented button.is-active {
  background: var(--ss-magenta-100);
  color: var(--ss-magenta-700);
  font-weight: 800;
}

.pd-chart-wrap {
  position: relative;
  min-height: 330px;
  padding: 12px 14px 0;
}

.pd-chart-wrap svg {
  display: block;
  width: 100%;
  height: 330px;
  overflow: visible;
}

.pd-grid line {
  stroke: #e6ebf2;
  stroke-dasharray: 3 3;
}

.pd-grid text,
.pd-x-label {
  fill: var(--text-muted);
  font-size: 10px;
}

.pd-series-line {
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pd-chart-point {
  stroke: #fff;
  stroke-width: 1.5;
}

.pd-chart-empty {
  display: grid;
  place-items: center;
  min-height: 300px;
  color: var(--text-muted);
}

.pd-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  min-height: 48px;
  padding: 9px 14px 13px;
}

.pd-legend button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 10px;
}

.pd-legend button.is-hidden { opacity: .38; }
.pd-legend i,
.pd-product-name > i {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--series-color);
}

.pd-legend small {
  color: var(--text-muted);
  font-size: 8px;
}

.pd-comparison-scroll table,
.pd-detail-table {
  border-collapse: collapse;
}

.pd-comparison-scroll table {
  width: 100%;
}

.pd-comparison-scroll th,
.pd-comparison-scroll td {
  padding: 10px 9px;
  border-bottom: 1px solid var(--border-light);
  font-size: 10px;
  text-align: right;
  white-space: nowrap;
}

.pd-comparison-scroll th {
  color: var(--text-muted);
  font-size: 8px;
  text-transform: uppercase;
}

.pd-comparison-scroll th:first-child,
.pd-comparison-scroll td:first-child {
  text-align: left;
}

.pd-product-name {
  display: flex;
  align-items: center;
  gap: 7px;
}

.pd-product-name strong,
.pd-product-name small {
  display: block;
}

.pd-product-name small {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 8px;
}

.pd-insights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 72px;
}

.pd-insights > div {
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 10px 12px;
  border-left: 1px solid var(--border-light);
}

.pd-insights > div:first-child { border-left: 0; }
.pd-insights span,
.pd-insights em {
  color: var(--text-muted);
  font-size: 8px;
  font-style: normal;
}
.pd-insights strong { font-size: 10px; }
.pd-insights small { font-size: 9px; font-weight: 700; }

.pd-detail-actions form { margin: 0; }

.pd-column-picker {
  position: relative;
}

.pd-column-picker > div {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  right: 0;
  min-width: 190px;
  padding: 8px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(5, 37, 45, .16);
}

.pd-column-picker label {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px;
  font-size: 11px;
}

.pd-export-button {
  border-color: var(--ss-magenta-600) !important;
  color: var(--ss-magenta-700) !important;
}

.pd-detail-table th,
.pd-detail-table td {
  padding: 9px 8px;
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  font-size: 9px;
  text-align: right;
  white-space: nowrap;
}

.pd-detail-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f8fafc;
  color: var(--text-muted);
  font-size: 8px;
  text-transform: uppercase;
}

.pd-detail-table thead tr:first-child th {
  text-align: center;
}

.pd-detail-table th small {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 7px;
  font-weight: 500;
  text-transform: none;
}

.pd-detail-table .pd-sticky-col {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
  text-align: left;
}

.pd-detail-table thead .pd-sticky-col { z-index: 5; background: #f8fafc; }
.pd-detail-table .pd-total-row th,
.pd-detail-table .pd-total-row td {
  background: #f8fafc;
  font-weight: 800;
}

.pd-skeleton {
  overflow: hidden;
}

.pd-skeleton span,
.pd-skeleton strong,
.pd-skeleton small {
  display: block;
  height: 11px;
  margin: 7px 0;
  border-radius: 5px;
  background: linear-gradient(90deg, #eef2f5 25%, #f8fafb 50%, #eef2f5 75%);
  background-size: 200% 100%;
  animation: pd-skeleton 1.2s linear infinite;
}

@keyframes pd-skeleton {
  to { background-position: -200% 0; }
}

@media(max-width:1500px){.pd-filter-card{grid-template-columns:repeat(6,minmax(130px,1fr))}.pd-owner-field{grid-column:span 1}.pd-product-field{grid-column:span 2}.pd-period-field{grid-column:span 2}.pd-filter-actions{grid-column:span 1}.pd-main-grid{grid-template-columns:1fr}.pd-comparison-card{min-width:0}}
@media(max-width:1050px){.pd-filter-card{grid-template-columns:repeat(2,minmax(0,1fr))}.pd-product-field,.pd-period-field{grid-column:span 1}.pd-filter-actions{grid-column:span 2;justify-content:flex-end}.pd-kpi-grid{grid-template-columns:repeat(3,1fr)}.pd-page-head{flex-direction:column}.pd-head-actions{align-self:stretch}.pd-chart-controls{align-items:flex-end;flex-direction:column}.pd-card-head{align-items:flex-start}.pd-insights{grid-template-columns:1fr}.pd-insights>div{border-left:0;border-top:1px solid #e6ebf2}.pd-insights>div:first-child{border-top:0}}
@media(max-width:680px){.pd-filter-card{grid-template-columns:1fr}.pd-filter-actions,.pd-product-field,.pd-period-field{grid-column:auto}.pd-filter-actions .button{flex:1}.pd-kpi-grid{grid-template-columns:repeat(2,1fr)}.pd-head-actions{flex-wrap:wrap}.pd-head-actions .button:not(.pd-icon-button){flex:1}.pd-card-head{flex-direction:column}.pd-chart-controls{align-items:stretch;width:100%}.pd-chart-controls label{justify-content:space-between}.pd-segmented button{flex:1}.pd-detail-actions{width:100%;justify-content:flex-end}.pd-date-range{flex-wrap:wrap}.pd-date-range input{flex:1}.pd-kpi>strong{font-size:21px}}

/* Produktudvikling layout containment - keep wide analysis data inside its cards. */
body.product-development-page {
  overflow-x: hidden;
}

body.product-development-page .content {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 18px clamp(16px, 1.8vw, 30px) 30px;
  overflow-x: hidden;
}

body.product-development-page .content > .page-heading {
  display: none;
}

/* Shipshark FBS */
body.fbs-page {
  background: #f6f9fb;
}

body.fbs-page .content {
  max-width: none;
  width: 100%;
  padding: 24px 28px 40px;
}

body.fbs-page .content > .page-heading {
  display: none;
}

.fbs-page-shell {
  display: grid;
  gap: 16px;
  width: 100%;
}

.fbs-head form,
.pd-head-actions form {
  margin: 0;
}

.fbs-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 4px;
}

.fbs-tabs a,
.fbs-tabs button {
  border: 1px solid #dbe5ec;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-weight: 700;
  padding: 9px 12px;
  white-space: nowrap;
  text-decoration: none;
}

.fbs-tabs a.is-active {
  border-color: #d22db4;
  color: #b31798;
  background: #fff5fd;
}

.fbs-tabs button:disabled {
  color: #94a3b8;
  background: #f8fafc;
  cursor: not-allowed;
}

.fbs-filter-card {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) repeat(4, minmax(150px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
}

.fbs-filter-card label {
  display: grid;
  gap: 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.fbs-filter-card input,
.fbs-filter-card select {
  min-height: 40px;
  border: 1px solid #d7e2ea;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  padding: 8px 10px;
  font-size: 14px;
  text-transform: none;
}

.fbs-filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.fbs-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.fbs-kpi-grid .card {
  display: grid;
  gap: 6px;
  min-height: 118px;
  padding: 18px;
}

.fbs-kpi-grid span {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.fbs-kpi-grid strong {
  color: #0f172a;
  font-size: 26px;
  line-height: 1.05;
}

.fbs-kpi-grid small,
.fbs-kpi-grid em {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
}

.fbs-score-card {
  border-color: rgba(210, 45, 180, .28);
  background: linear-gradient(135deg, #fff, #fff4fc);
}

.fbs-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, .75fr);
  gap: 12px;
}

.fbs-chart-card,
.fbs-profile-card,
.fbs-score-explain,
.fbs-table-card,
.fbs-data-quality,
.fbs-empty {
  padding: 16px;
}

.fbs-line-chart {
  width: 100%;
  min-height: 240px;
}

.fbs-line-chart line {
  stroke: #dbe5ec;
  stroke-width: 1;
}

.fbs-line-chart polyline {
  fill: none;
  stroke: #d22db4;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fbs-empty-mini {
  display: grid;
  min-height: 240px;
  place-items: center;
  color: #64748b;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
}

.fbs-profile-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 80px;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #edf2f7;
}

.fbs-profile-row span {
  font-weight: 700;
  color: #334155;
}

.fbs-profile-row div {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f7;
}

.fbs-profile-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d22db4, #7c3aed);
}

.fbs-profile-row strong {
  text-align: right;
}

.fbs-subscore-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.fbs-subscore-grid article {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  padding: 14px;
}

.fbs-subscore-grid span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.fbs-subscore-grid strong {
  display: block;
  margin-top: 7px;
  color: #0f172a;
  font-size: 22px;
}

.fbs-subscore-grid p {
  margin: 6px 0 0;
  color: #475569;
  font-size: 13px;
}

.fbs-table-scroll {
  overflow: auto;
  max-width: 100%;
}

.fbs-table-scroll table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
}

.fbs-table-scroll th,
.fbs-table-scroll td {
  border-bottom: 1px solid #e7eef5;
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
}

.fbs-table-scroll th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fbs-sort-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: inherit;
  text-decoration: none;
}

.fbs-sort-link:hover,
.fbs-sort-link.is-active {
  color: #b31798;
}

.fbs-table-scroll td small {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 11px;
}

.fbs-status,
.fbs-class {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
  background: #eef2ff;
  color: #4338ca;
}

.fbs-status-sund,
.fbs-class-healthy {
  background: #e8f8ef;
  color: #147a3f;
}

.fbs-status-watch,
.fbs-class-overstock,
.fbs-class-slow_moving {
  background: #fff7df;
  color: #9a5b00;
}

.fbs-status-kritisk,
.fbs-class-dead_stock {
  background: #fff0f0;
  color: #b42318;
}

.fbs-class-unknown,
.fbs-class-no_stock {
  background: #f1f5f9;
  color: #475569;
}

.fbs-data-quality ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: #475569;
}

.fbs-pagination {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 12px;
}

.fbs-pagination .is-disabled {
  opacity: .45;
  pointer-events: none;
}

.fbs-muted {
  color: #64748b;
  font-size: 13px;
}

@media (max-width: 1280px) {
  .fbs-filter-card,
  .fbs-kpi-grid,
  .fbs-subscore-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fbs-main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body.fbs-page .content {
    padding: 16px;
  }

  .fbs-filter-card,
  .fbs-kpi-grid,
  .fbs-subscore-grid {
    grid-template-columns: 1fr;
  }
}

.pd-page {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
}

.pd-page > *,
.pd-page [data-pd-results],
.pd-main-grid,
.pd-kpi-grid,
.pd-chart-card,
.pd-comparison-card,
.pd-detail-card {
  min-width: 0;
  max-width: 100%;
}

.pd-page [data-pd-results] {
  width: 100%;
}

.pd-chart-card,
.pd-comparison-card,
.pd-detail-card {
  padding: 0;
}

.pd-kpi-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: 100%;
}

.pd-kpi {
  min-width: 0;
  overflow: hidden;
}

.pd-kpi > strong,
.pd-kpi > small,
.pd-kpi > em {
  overflow-wrap: anywhere;
}

.pd-main-grid {
  grid-template-columns: minmax(0, 1.62fr) minmax(420px, .98fr);
  width: 100%;
  align-items: stretch;
}

.pd-chart-wrap {
  width: 100%;
  overflow: hidden;
}

.pd-chart-wrap svg {
  max-width: 100%;
}

.pd-legend {
  align-items: center;
  overflow: hidden;
}

.pd-legend button {
  min-width: 0;
  max-width: 230px;
}

.pd-legend button span,
.pd-legend button small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pd-product-name {
  max-width: 260px;
}

.pd-product-name span,
.pd-product-name strong,
.pd-product-name small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pd-table-scroll,
.pd-comparison-scroll {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.pd-detail-table {
  width: max-content;
  min-width: 100%;
  max-width: none;
}

.pd-detail-table th,
.pd-detail-table td {
  min-width: 78px;
}

.pd-detail-table .pd-sticky-col {
  min-width: 150px;
  max-width: 190px;
}

@media (max-width: 1500px) {
  .pd-main-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pd-comparison-card {
    width: 100%;
  }
}

@media (max-width: 1180px) {
  .pd-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.product-development-page .content {
    padding: 14px 12px 24px;
  }

  .pd-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pd-page-head,
  .pd-card-head {
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .pd-kpi-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Product development uses the shared Shipshark button component. */
.pd-head-actions .btn {
  white-space: nowrap;
}

body.pd-share-open {
  overflow: hidden;
}

.pd-share-card {
  width: min(860px, calc(100vw - 32px));
  max-height: min(860px, 94vh);
  padding: 0;
  gap: 0;
  border-radius: 8px;
}

.os-export-mail-card .pd-share-head {
  align-items: flex-start;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(120deg, #fff 0%, #fff8fd 100%);
}

.pd-share-head h2,
.pd-share-head p,
.pd-share-section-head h3,
.pd-share-section-head p {
  margin: 0;
}

.pd-share-head h2 {
  margin-top: 4px;
  font-size: 24px;
}

.pd-share-head p,
.pd-share-section-head p {
  margin-top: 4px;
  color: var(--text-secondary);
}

.pd-share-eyebrow {
  color: var(--os-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pd-share-close {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  background: #fff;
  color: var(--text-primary);
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.pd-share-downloads {
  display: grid;
  gap: 8px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border-light);
}

.pd-share-downloads form {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: 7px;
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.pd-share-downloads form:hover {
  border-color: rgba(207, 47, 183, .32);
  box-shadow: 0 8px 22px rgba(17, 45, 55, .06);
}

.pd-share-downloads form > span:nth-child(4) {
  display: grid;
  gap: 3px;
}

.pd-share-downloads small {
  color: var(--text-secondary);
}

.pd-share-format {
  display: grid;
  width: 44px;
  height: 36px;
  place-items: center;
  border-radius: 6px;
  background: #fff0fb;
  color: #b6239e;
  font-size: 11px;
  font-weight: 850;
}

.pd-share-format--excel {
  background: #e9f8f1;
  color: #11795c;
}

.pd-share-format--csv {
  background: #edf4ff;
  color: #225ac8;
}

.pd-share-mail-form {
  display: grid;
  gap: 16px;
  padding: 22px 28px 28px;
}

.pd-share-mail-form .os-export-mail-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pd-share-mail-form .os-export-mail-field-wide {
  grid-column: 1 / -1;
}

.pd-share-mail-form .os-export-mail-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pd-share-mail-form .os-export-mail-options legend {
  padding: 0 5px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 750;
}

.pd-share-mail-fallback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid #f1d99d;
  border-radius: 6px;
  background: #fff8e6;
  color: #7a5510;
}

.pd-share-mail-fallback[hidden] {
  display: none;
}

.pd-share-mail-form .os-export-mail-status.is-loading {
  background: #eef5ff;
  color: #2459a8;
}

.pd-share-mail-form .os-export-mail-status.is-error {
  background: var(--ss-rose);
  color: #9a0f22;
}

.pd-share-card > .os-export-mail-success {
  margin: 28px;
}

@media (max-width: 680px) {
  .pd-share-downloads form {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .pd-share-downloads form .btn {
    grid-column: 1 / -1;
  }

  .pd-share-mail-form .os-export-mail-fields,
  .pd-share-mail-form .os-export-mail-options {
    grid-template-columns: 1fr;
  }

  .pd-share-mail-fallback {
    align-items: stretch;
    flex-direction: column;
  }
}

.pd-filter-actions .btn {
  min-height: 40px;
}

@media (max-width: 680px) {
  .pd-filter-actions .btn {
    flex: 1;
  }

  .pd-head-actions .btn:not(.pd-icon-button) {
    flex: 1;
  }
}
/* Owner performance report */
.owner-report-is-open {
  overflow: hidden;
}

.owner-report-open {
  cursor: pointer;
}

.owner-report-modal[hidden] {
  display: none;
}

.owner-report-modal {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: grid;
  place-items: center;
  padding: 28px;
  opacity: 0;
  transition: opacity 160ms ease;
}

.owner-report-modal.is-open {
  opacity: 1;
}

.owner-report-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 24, 31, 0.62);
  backdrop-filter: blur(5px);
}

.owner-report-dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: min(840px, calc(100vh - 56px));
  overflow: auto;
  border: 1px solid #d9e4e7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(3, 24, 31, 0.24);
  transform: translateY(10px) scale(0.99);
  transition: transform 180ms ease;
}

.owner-report-modal.is-open .owner-report-dialog {
  transform: translateY(0) scale(1);
}

.owner-report-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 30px 24px;
  border-bottom: 1px solid #e4ecee;
}

.owner-report-dialog-header .eyebrow {
  margin: 0 0 6px;
  color: #b22aa8;
}

.owner-report-dialog-header h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.2;
}

.owner-report-dialog-header p:last-child {
  max-width: 590px;
  margin: 8px 0 0;
  color: #5d737b;
  line-height: 1.5;
}

.owner-report-dialog-header .icon-button {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 1px solid #d8e3e6;
  border-radius: 6px;
  background: #fff;
  color: #17313a;
  cursor: pointer;
}

.owner-report-form {
  display: grid;
  gap: 24px;
  padding: 26px 30px 30px;
}

.owner-report-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}

.owner-report-mode legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: #4d6670;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.owner-report-mode-option {
  position: relative;
  min-height: 106px;
  cursor: pointer;
}

.owner-report-mode-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.owner-report-mode-option span {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 17px 18px;
  border: 1px solid #dbe5e8;
  border-radius: 7px;
  background: #f9fbfc;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.owner-report-mode-option strong {
  color: #102a33;
  font-size: 15px;
}

.owner-report-mode-option small {
  color: #617780;
  font-size: 12px;
  line-height: 1.45;
}

.owner-report-mode-option input:checked + span {
  border-color: #cf36c2;
  background: #fff8fe;
  box-shadow: 0 0 0 3px rgba(207, 54, 194, 0.1);
}

.owner-report-mode-option input:focus-visible + span {
  outline: 3px solid rgba(22, 112, 229, 0.22);
  outline-offset: 2px;
}

.owner-report-period {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 12px;
}

.owner-report-period label {
  display: grid;
  gap: 7px;
}

.owner-report-period label > span {
  color: #4d6670;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.owner-report-period input,
.owner-report-period select {
  min-width: 0;
  width: 100%;
  height: 46px;
  border: 1px solid #cfdde1;
  border-radius: 6px;
  background: #fff;
  color: #142d36;
  padding: 0 12px;
  font: inherit;
}

.owner-report-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid #cfe3dc;
  border-radius: 7px;
  background: #f2faf7;
  color: #196a50;
}

.owner-report-notice svg {
  flex: 0 0 20px;
  margin-top: 1px;
}

.owner-report-notice p {
  display: grid;
  gap: 3px;
  margin: 0;
}

.owner-report-notice span {
  color: #53726a;
  font-size: 12px;
  line-height: 1.45;
}

.owner-report-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 2px;
}

@media (max-width: 760px) {
  .owner-report-modal {
    align-items: end;
    padding: 12px;
  }

  .owner-report-dialog {
    max-height: calc(100vh - 24px);
  }

  .owner-report-dialog-header,
  .owner-report-form {
    padding-left: 20px;
    padding-right: 20px;
  }

  .owner-report-mode,
  .owner-report-period {
    grid-template-columns: 1fr;
  }
}
