:root {
  --green-950: #102d25;
  --green-900: #16392f;
  --green-800: #225044;
  --green-700: #34695a;
  --green-100: #dfece6;
  --green-050: #edf4f0;
  --ivory: #f7f5ef;
  --paper: #fffefa;
  --surface: #ffffff;
  --ink: #1c2823;
  --muted: #69756f;
  --soft-muted: #8b958f;
  --line: #dfe4e1;
  --strong-line: #cbd3ce;
  --gold: #aa7d31;
  --gold-soft: #f0e6cf;
  --amber: #a8642b;
  --amber-soft: #f4e6d9;
  --blue: #356b88;
  --blue-soft: #e3edf2;
  --red: #9a4741;
  --red-soft: #f3e4e2;
  --purple: #675887;
  --purple-soft: #ece8f3;
  --shadow: 0 16px 42px rgba(23, 43, 35, 0.12);
  --focus: 0 0 0 3px rgba(52, 105, 90, 0.2);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  scroll-behavior: smooth;
  background: #eef1ee;
}

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  background: #eef1ee;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

.app-shell :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="color"], [type="hidden"], [type="file"], [type="submit"], [type="button"]), select, textarea) {
  min-width: 0;
  min-height: 38px;
  max-width: 100%;
  padding: 8px 11px;
  color: #26332e;
  background-color: #fff;
  border: 1px solid #d5ded9;
  border-radius: 6px;
  box-shadow: none;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.app-shell select {
  text-overflow: ellipsis;
}

.app-shell :is(input, textarea)::placeholder {
  color: #89958e;
  opacity: 1;
}

.app-shell :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="color"]), select, textarea):hover:not(:disabled) {
  border-color: #aebfb5;
}

.app-shell :is(input, select, textarea):focus-visible {
  border-color: #477a66;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(52, 105, 90, 0.12);
}

.app-shell :is(input, select, textarea):disabled {
  color: #7c8982;
  background-color: #f4f6f5;
  cursor: not-allowed;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 0;
  box-shadow: var(--focus);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: -52px;
  padding: 9px 14px;
  background: var(--paper);
  color: var(--green-900);
  border: 1px solid var(--green-700);
  border-radius: 5px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

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

.operator-login-view {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 68px minmax(0, 1fr);
  color: var(--ink);
  background: #edf1ef;
}

.operator-login-view[hidden] {
  display: none;
}

.operator-login-brand {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 max(20px, calc((100vw - 1080px) / 2));
  color: white;
  background: var(--green-950);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.operator-login-brand > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.operator-login-brand strong {
  font-family: "Songti SC", "STSong", serif;
  font-size: 20px;
}

.operator-login-brand small {
  color: #afc3bb;
  font-size: 12px;
}

.operator-login-main {
  display: grid;
  align-items: start;
  justify-items: center;
  padding: clamp(42px, 8vh, 84px) 20px 72px;
}

.operator-login-form {
  width: min(100%, 520px);
  padding: 32px 34px;
  background: var(--surface);
  border: 1px solid var(--strong-line);
  border-top: 3px solid var(--gold);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(20, 47, 39, 0.08);
}

.operator-login-heading {
  margin-bottom: 26px;
}

.operator-login-heading h1 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 28px;
  line-height: 1.25;
}

.operator-login-heading p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.operator-login-form > label {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.operator-login-form input {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--strong-line);
  border-radius: 5px;
  font-size: 14px;
}

.operator-login-form .form-error {
  margin: 14px 0 0;
}

.operator-login-actions {
  margin-top: 24px;
}

.operator-login-actions .primary-button {
  width: 100%;
  min-height: 46px;
  justify-content: center;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 100vh;
  display: flex;
  flex-direction: column;
  color: white;
  background: var(--green-950);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-lockup {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-lockup > span:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-lockup strong {
  font-family: "Songti SC", "STSong", serif;
  font-size: 19px;
  font-weight: 700;
}

.brand-lockup small {
  color: #9db3aa;
  font-size: 11px;
}

.brand-logo,
.placeholder-logo {
  flex: 0 0 auto;
  display: block;
  padding: 3px;
  object-fit: contain;
  background: white;
  border: 1px solid rgba(218, 187, 110, 0.62);
  border-radius: 4px;
}

.brand-logo { width: 60px; height: 50px; }

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 12px;
}

.side-nav a {
  position: relative;
  min-height: 44px;
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: #afc2ba;
  border-radius: 6px;
  font-size: 13px;
  text-decoration: none;
}

.side-nav a:hover,
.side-nav a.active {
  color: white;
  background: rgba(255, 255, 255, 0.09);
}

.side-nav a.active::before {
  content: "";
  position: absolute;
  left: 0;
  width: 3px;
  height: 22px;
  background: #d5b763;
  border-radius: 0 2px 2px 0;
}

.nav-symbol {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #c3d3cc;
  font-size: 17px;
}

.sidebar-foot {
  margin-top: auto;
  padding: 14px 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.connection-button {
  width: 100%;
  min-height: 55px;
  display: grid;
  grid-template-columns: 10px 1fr 12px;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  color: white;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  text-align: left;
}

.connection-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.connection-button > span:nth-child(2) {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.connection-button strong,
.connection-button small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connection-button strong {
  font-size: 12px;
}

.connection-button small {
  color: #91a99f;
  font-size: 10px;
}

.connection-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c57a48;
  box-shadow: 0 0 0 3px rgba(197, 122, 72, 0.12);
}

.connection-dot.connected {
  background: #84b69e;
  box-shadow: 0 0 0 3px rgba(132, 182, 158, 0.13);
}

.sidebar-foot p {
  margin: 9px 3px 0;
  color: #789087;
  font-size: 10px;
  line-height: 1.5;
}

.admin-workspace {
  margin: 18px 22px 28px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.executive-overview-workspace {
  min-width: 0;
}

.executive-overview-title,
.executive-overview-actions,
.executive-overview-band-heading {
  display: flex;
  align-items: center;
}

.executive-overview-title,
.executive-overview-band-heading {
  justify-content: space-between;
}

.executive-overview-actions {
  flex: 0 0 auto;
  gap: 12px;
}

.executive-overview-content {
  min-width: 0;
}

.executive-overview-band + .executive-overview-band {
  border-top: 1px solid var(--line);
}

.executive-overview-band-heading {
  min-height: 58px;
  gap: 18px;
  padding: 10px 16px;
  background: #fafcfb;
  border-bottom: 1px solid #e8ece9;
}

.executive-overview-band-heading > div {
  min-width: 0;
}

.executive-overview-band-heading h3,
.executive-overview-band-heading p {
  margin: 0;
}

.executive-overview-band-heading h3 {
  font-size: 13px;
  line-height: 1.35;
}

.executive-overview-band-heading p,
.executive-overview-band-heading > span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.executive-overview-band-heading p {
  margin-top: 3px;
}

.executive-overview-band-heading > span {
  flex: 0 0 auto;
}

.executive-metric-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.executive-consumer-metric-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.executive-metric {
  position: relative;
  min-width: 0;
  min-height: 108px;
  display: grid;
  grid-template-rows: auto auto minmax(28px, auto);
  align-content: center;
  gap: 4px;
  padding: 14px 28px 14px 16px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-right: 1px solid #e8ece9;
  text-align: left;
}

.executive-metric:last-child {
  border-right: 0;
}

.executive-metric:hover,
.executive-metric:focus-visible {
  background: var(--green-050);
}

.executive-metric.is-attention {
  background: #fcf8ef;
}

.executive-metric.is-critical {
  background: #fcf5f4;
}

.executive-metric.is-attention:hover,
.executive-metric.is-attention:focus-visible {
  background: #f8f0de;
}

.executive-metric.is-critical:hover,
.executive-metric.is-critical:focus-visible {
  background: var(--red-soft);
}

.executive-metric > span,
.executive-metric > small,
.executive-metric > strong {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.executive-metric > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.executive-metric > strong {
  color: var(--ink);
  font-size: 23px;
  line-height: 1.15;
}

.executive-metric.is-attention > strong {
  color: var(--amber);
}

.executive-metric.is-critical > strong {
  color: var(--red);
}

.executive-metric > small {
  align-self: start;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.executive-metric > i {
  position: absolute;
  top: 50%;
  right: 12px;
  color: var(--soft-muted);
  font-size: 18px;
  font-style: normal;
  transform: translateY(-50%);
}

.executive-overview-empty {
  min-height: 230px;
  border: 0;
}

.executive-bi {
  min-width: 0;
  padding: 18px 16px 20px;
  background: #f7faf8;
  border-top: 1px solid var(--line);
}

.executive-bi-heading,
.executive-bi-actions,
.executive-bi-panel-heading,
.executive-bi-legend {
  display: flex;
  align-items: center;
}

.executive-bi-heading {
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}

.executive-bi-heading > div:first-child {
  flex: 1 1 220px;
}

.executive-bi-heading > div:first-child,
.executive-bi-panel-heading > div:first-child {
  min-width: 0;
}

.executive-bi-heading h3,
.executive-bi-heading p,
.executive-bi-panel-heading h4,
.executive-bi-panel-heading p {
  margin: 0;
}

.executive-bi-heading h3 {
  margin-top: 2px;
  font-size: 18px;
  line-height: 1.35;
}

.executive-bi-heading p,
.executive-bi-panel-heading p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.executive-bi-actions {
  position: relative;
  flex: 0 1 620px;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 100%;
}

.executive-bi-actions > small {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  text-align: right;
}

.executive-bi-actions > small.error {
  color: var(--red);
}

.executive-bi-window-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(76px, 1fr));
  overflow: hidden;
  border: 1px solid var(--strong-line);
  border-radius: 5px;
}

.executive-bi-window-switch button {
  min-height: 34px;
  padding: 6px 12px;
  color: var(--muted);
  background: var(--surface);
  border: 0;
  border-right: 1px solid var(--strong-line);
  font-size: 11px;
  font-weight: 700;
}

.executive-bi-window-switch button:last-child {
  border-right: 0;
}

.executive-bi-window-switch button.active {
  color: white;
  background: var(--green-800);
}

.executive-bi-export-menu {
  position: relative;
}

.executive-bi-export-menu summary {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  list-style: none;
  user-select: none;
}

.executive-bi-export-menu summary::-webkit-details-marker {
  display: none;
}

.executive-bi-export-menu summary::after {
  content: "▾";
  margin-left: 8px;
  color: var(--soft-muted);
  font-size: 10px;
}

.executive-bi-export-menu summary.is-disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.executive-bi-export-options {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  right: 0;
  width: 190px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--strong-line);
  border-radius: 5px;
  box-shadow: var(--shadow);
}

.executive-bi-export-options button {
  width: 100%;
  min-height: 40px;
  display: block;
  padding: 9px 12px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.executive-bi-export-options button:last-child {
  border-bottom: 0;
}

.executive-bi-export-options button:hover,
.executive-bi-export-options button:focus-visible {
  background: var(--green-050);
}

.executive-bi-state {
  margin: 16px 0 0;
}

.executive-bi-empty {
  min-height: 220px;
  margin-top: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.executive-bi-content {
  min-width: 0;
  margin-top: 16px;
}

.executive-bi-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.executive-bi-summary article {
  min-width: 0;
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 14px 16px;
  border-right: 1px solid var(--line);
}

.executive-bi-summary article:last-child {
  border-right: 0;
}

.executive-bi-summary span,
.executive-bi-summary small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.executive-bi-summary strong {
  min-width: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.executive-bi-trend-grid,
.executive-bi-ranking-grid {
  min-width: 0;
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

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

.executive-bi-ranking-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.executive-bi-panel {
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.executive-bi-panel-heading {
  min-height: 58px;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  background: #fbfcfb;
  border-bottom: 1px solid var(--line);
}

.executive-bi-panel-heading h4 {
  font-size: 13px;
  line-height: 1.35;
}

.executive-bi-legend {
  flex: 0 0 auto;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
}

.executive-bi-legend span::before {
  content: "";
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 4px;
  border-radius: 2px;
}

.executive-bi-legend .redemptions::before { background: var(--green-700); }
.executive-bi-legend .verifications::before { background: var(--gold); }
.executive-bi-legend .orders::before { background: var(--blue); }
.executive-bi-legend .amount::before { background: var(--purple); }

.executive-bi-chart-scroll {
  min-width: 0;
  overflow-x: auto;
  padding: 14px 12px 10px;
  scrollbar-width: thin;
}

.executive-bi-chart-scroll:focus-visible {
  outline: 0;
  box-shadow: inset var(--focus);
}

.executive-bi-chart {
  height: 190px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(26px, 1fr);
  align-items: stretch;
  gap: 6px;
}

.executive-bi-chart-point {
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 22px;
  align-items: end;
  gap: 5px;
}

.executive-bi-chart-bars {
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  border-bottom: 1px solid var(--line);
}

.executive-bi-bar {
  width: min(8px, 38%);
  min-height: 0;
  display: block;
  border-radius: 2px 2px 0 0;
}

.executive-bi-bar.redemptions { background: var(--green-700); }
.executive-bi-bar.verifications { background: var(--gold); }
.executive-bi-bar.orders { background: var(--blue); }
.executive-bi-bar.amount { background: var(--purple); }

.executive-bi-chart-point time {
  color: var(--soft-muted);
  font-size: 9px;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.executive-bi-ranking {
  margin: 0;
  padding: 0;
  list-style: none;
}

.executive-bi-ranking-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-bottom: 1px solid #edf0ee;
}

.executive-bi-ranking-item:last-child {
  border-bottom: 0;
}

.executive-bi-ranking-rank {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--green-050);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
}

.executive-bi-ranking-item:nth-child(-n + 3) .executive-bi-ranking-rank {
  color: #6c4b16;
  background: var(--gold-soft);
}

.executive-bi-ranking-copy,
.executive-bi-ranking-metric {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.executive-bi-ranking-copy strong,
.executive-bi-ranking-copy small,
.executive-bi-ranking-metric strong,
.executive-bi-ranking-metric small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.executive-bi-ranking-copy strong,
.executive-bi-ranking-metric strong {
  color: var(--ink);
  font-size: 11px;
  line-height: 1.35;
}

.executive-bi-ranking-copy small,
.executive-bi-ranking-metric small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
}

.executive-bi-ranking-metric {
  text-align: right;
}

.executive-bi-ranking-empty {
  min-height: 112px;
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.executive-bi-scope-note {
  margin: 12px 2px 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.executive-retail-sell-out {
  min-width: 0;
  padding: 20px 16px 22px;
  background: #f4f8f6;
  border-top: 1px solid var(--line);
}

.executive-retail-sell-out * {
  min-width: 0;
}

.executive-retail-sell-out-heading,
.executive-retail-sell-out-actions,
.executive-retail-sell-out-action-row,
.executive-retail-sell-out-panel-heading,
.executive-retail-sell-out-legend {
  min-width: 0;
  display: flex;
  align-items: center;
}

.executive-retail-sell-out-heading {
  justify-content: space-between;
  gap: 24px;
}

.executive-retail-sell-out-heading > div:first-child,
.executive-retail-sell-out-panel-heading > div:first-child {
  min-width: 0;
}

.executive-retail-sell-out-heading h3,
.executive-retail-sell-out-heading p,
.executive-retail-sell-out-panel-heading h4,
.executive-retail-sell-out-panel-heading p {
  margin: 0;
}

.executive-retail-sell-out-heading h3 {
  margin-top: 2px;
  font-size: 18px;
  line-height: 1.35;
}

.executive-retail-sell-out-heading p,
.executive-retail-sell-out-panel-heading p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.executive-retail-sell-out-actions {
  position: relative;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 640px;
}

.executive-retail-sell-out-action-row {
  gap: 8px;
}

.executive-retail-sell-out-actions > small {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  text-align: right;
}

.executive-retail-sell-out-actions > small.error { color: var(--red); }
.executive-retail-sell-out-state { margin-top: 16px; }

.executive-retail-sell-out-empty {
  min-height: 220px;
  margin-top: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.executive-retail-sell-out-content {
  min-width: 0;
  margin-top: 16px;
}

.executive-retail-sell-out-summary {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  background: linear-gradient(135deg, #173f35 0%, #245848 100%);
  border: 1px solid #173f35;
  border-radius: 7px;
  box-shadow: 0 8px 24px rgba(23, 63, 53, 0.1);
}

.executive-retail-sell-out-summary article {
  min-width: 0;
  min-height: 106px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 15px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.13);
}

.executive-retail-sell-out-summary article:last-child { border-right: 0; }
.executive-retail-sell-out-summary span,
.executive-retail-sell-out-summary small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  line-height: 1.4;
}

.executive-retail-sell-out-summary strong {
  min-width: 0;
  color: white;
  font-size: 23px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.executive-retail-sell-out-financial-summary {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.executive-retail-sell-out-financial-summary article {
  min-width: 0;
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 13px 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.executive-retail-sell-out-financial-summary article.is-primary {
  background: #edf6f1;
  border-color: #cfe2d8;
}

.executive-retail-sell-out-financial-summary article.is-warning {
  background: #fff8e9;
  border-color: #ead8aa;
}

.executive-retail-sell-out-financial-summary span,
.executive-retail-sell-out-financial-summary small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.executive-retail-sell-out-financial-summary strong {
  color: var(--ink);
  font-size: 19px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.executive-retail-sell-out-unit-strip {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 11px 13px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.executive-retail-sell-out-unit-strip > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

#executive-retail-sell-out-unit-totals {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.executive-retail-sell-out-unit-chip {
  min-width: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 5px 8px;
  color: #245848;
  background: #edf6f1;
  border: 1px solid #d4e5dc;
  border-radius: 999px;
  overflow-wrap: anywhere;
}

.executive-retail-sell-out-unit-chip strong { font-size: 12px; }
.executive-retail-sell-out-unit-chip small { color: #60736a; font-size: 9px; }
#executive-retail-sell-out-unit-totals .is-empty { color: var(--muted); font-size: 10px; }

.executive-retail-sell-out-panel {
  min-width: 0;
  margin-top: 12px;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.executive-retail-sell-out-panel-heading {
  min-height: 60px;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  background: #fbfcfb;
  border-bottom: 1px solid var(--line);
}

.executive-retail-sell-out-panel-heading h4 { font-size: 13px; line-height: 1.35; }

.executive-retail-sell-out-payment-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.executive-retail-sell-out-payment-grid > div {
  min-width: 0;
  padding: 12px 14px 14px;
  background: white;
}

.executive-retail-sell-out-payment-grid h5 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 11px;
}

.executive-retail-sell-out-payment-list { display: grid; gap: 6px; }
.executive-retail-sell-out-payment-row {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 9px;
  background: #f7faf8;
  border-radius: 5px;
}
.executive-retail-sell-out-payment-row > span { min-width: 0; display: grid; gap: 2px; }
.executive-retail-sell-out-payment-row strong,
.executive-retail-sell-out-payment-row small,
.executive-retail-sell-out-payment-row b { overflow-wrap: anywhere; }
.executive-retail-sell-out-payment-row strong { font-size: 10px; }
.executive-retail-sell-out-payment-row small { color: var(--muted); font-size: 9px; }
.executive-retail-sell-out-payment-row b { flex: 0 0 auto; font-size: 11px; }

.executive-retail-sell-out-legend {
  flex: 0 0 auto;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
}

.executive-retail-sell-out-legend span::before {
  content: "";
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 4px;
  border-radius: 2px;
}

.executive-retail-sell-out-legend .sell-outs::before { background: var(--green-700); }
.executive-retail-sell-out-legend .dealers::before { background: var(--gold); }
.executive-retail-sell-out-legend .net-sales::before { background: var(--gold); }

.executive-retail-sell-out-chart-scroll {
  min-width: 0;
  overflow-x: auto;
  padding: 15px 12px 10px;
  scrollbar-width: thin;
  overscroll-behavior-inline: contain;
}

.executive-retail-sell-out-chart-scroll:focus-visible {
  outline: 0;
  box-shadow: inset var(--focus);
}

.executive-retail-sell-out-chart {
  height: 190px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(28px, 1fr);
  align-items: stretch;
  gap: 6px;
}

.executive-retail-sell-out-chart-point {
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 22px;
  align-items: end;
  gap: 5px;
}

.executive-retail-sell-out-chart-bars {
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  border-bottom: 1px solid var(--line);
}

.executive-retail-sell-out-chart-bars span {
  width: min(8px, 38%);
  min-height: 0;
  display: block;
  border-radius: 2px 2px 0 0;
}

.executive-retail-sell-out-chart-bars .sell-outs { background: var(--green-700); }
.executive-retail-sell-out-chart-bars .dealers { background: var(--gold); }
.executive-retail-sell-out-chart-bars .net-sales { background: var(--gold); }
.executive-retail-sell-out-chart-point time {
  color: var(--soft-muted);
  font-size: 9px;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.executive-retail-sell-out-ranking-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.executive-retail-sell-out-ranking {
  margin: 0;
  padding: 0;
  list-style: none;
}

.executive-retail-sell-out-ranking-item { min-width: 0; border-bottom: 1px solid #edf0ee; }
.executive-retail-sell-out-ranking-item:last-child { border-bottom: 0; }
.executive-retail-sell-out-ranking-item > button {
  width: 100%;
  min-width: 0;
  min-height: 68px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto 12px;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  color: inherit;
  background: transparent;
  border: 0;
  text-align: left;
}

.executive-retail-sell-out-ranking-item > button:hover,
.executive-retail-sell-out-ranking-item > button:focus-visible { background: var(--green-050); }
.executive-retail-sell-out-rank {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #edf6f1;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
}

.executive-retail-sell-out-ranking-item:nth-child(-n + 3) .executive-retail-sell-out-rank {
  color: #6c4b16;
  background: var(--gold-soft);
}

.executive-retail-sell-out-ranking-copy,
.executive-retail-sell-out-ranking-metric { min-width: 0; display: grid; gap: 3px; }
.executive-retail-sell-out-ranking-copy strong,
.executive-retail-sell-out-ranking-copy small,
.executive-retail-sell-out-ranking-metric strong,
.executive-retail-sell-out-ranking-metric small { min-width: 0; overflow-wrap: anywhere; }
.executive-retail-sell-out-ranking-copy strong,
.executive-retail-sell-out-ranking-metric strong { color: var(--ink); font-size: 11px; line-height: 1.35; }
.executive-retail-sell-out-ranking-copy small,
.executive-retail-sell-out-ranking-metric small { color: var(--muted); font-size: 9px; line-height: 1.35; }
.executive-retail-sell-out-ranking-metric { text-align: right; }
.executive-retail-sell-out-ranking-arrow { color: var(--soft-muted); font-size: 17px; }
.executive-retail-sell-out-scope-note {
  margin: 12px 2px 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.executive-cash-exception-dialog {
  width: min(560px, calc(100vw - 32px));
}

.executive-cash-exception-options {
  margin: 18px 24px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.executive-cash-exception-option {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 82px;
  display: grid;
  gap: 4px;
  padding: 14px 40px 14px 16px;
  color: var(--muted);
  background: var(--surface);
  border: 0;
  text-align: left;
}

.executive-cash-exception-option + .executive-cash-exception-option {
  border-top: 1px solid var(--line);
}

.executive-cash-exception-option:hover,
.executive-cash-exception-option:focus-visible {
  background: #fafcfb;
}

.executive-cash-exception-option > span,
.executive-cash-exception-option > strong,
.executive-cash-exception-option > small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.executive-cash-exception-option > span,
.executive-cash-exception-option > small {
  font-size: 10px;
  line-height: 1.4;
}

.executive-cash-exception-option > strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.executive-cash-exception-option:first-child > strong {
  color: var(--red);
}

.executive-cash-exception-option:last-child > strong {
  color: var(--amber);
}

.executive-cash-exception-option > i {
  position: absolute;
  top: 50%;
  right: 16px;
  color: var(--soft-muted);
  font-size: 18px;
  font-style: normal;
  transform: translateY(-50%);
}

.executive-cash-exception-actions {
  margin-top: 18px;
}

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

.payout-filters {
  display: flex;
  gap: 5px;
  padding: 10px 14px;
  overflow-x: auto;
  border-bottom: 1px solid #edf0ee;
}

.payout-operations-summary {
  background: #fafcfb;
  border-bottom: 1px solid var(--line);
}

.payout-summary-heading {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 16px;
}

.payout-summary-heading h3 {
  margin: 2px 0 0;
  font-size: 14px;
}

.payout-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid #e8ece9;
}

.payout-summary-metric {
  min-width: 0;
  min-height: 84px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  padding: 12px 16px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-right: 1px solid #e8ece9;
  text-align: left;
}

.payout-summary-metric:last-child {
  border-right: 0;
}

.payout-summary-metric:hover,
.payout-summary-metric.active {
  background: var(--green-050);
}

.payout-summary-metric.active {
  box-shadow: inset 0 -3px var(--green-700);
}

.payout-summary-metric span,
.payout-summary-metric small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payout-summary-metric span {
  font-size: 10px;
  font-weight: 700;
}

.payout-summary-metric strong {
  color: var(--ink);
  font-size: 18px;
}

.payout-summary-metric small {
  color: var(--muted);
  font-size: 10px;
}

.payout-summary-error {
  padding: 9px 16px;
  color: var(--red);
  background: #fcf6f5;
  border-top: 1px solid #ecd8d5;
  font-size: 11px;
}

.payout-exception-panel {
  padding: 12px 16px;
  color: #6f3f3a;
  background: #fbf5f4;
  border-bottom: 1px solid #ead6d3;
}

.payout-exception-panel.payout-exception-clear {
  color: var(--green-800);
  background: var(--green-050);
  border-bottom-color: #d5e2dc;
}

.payout-exception-heading {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.payout-exception-symbol {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--red);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

.payout-exception-clear .payout-exception-symbol {
  background: var(--green-700);
}

.payout-exception-heading > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.payout-exception-heading strong {
  font-size: 12px;
}

.payout-exception-heading span:not(.payout-exception-symbol) {
  color: var(--muted);
  font-size: 10px;
}

.payout-exception-list {
  margin-top: 10px;
  border-top: 1px solid rgba(154, 71, 65, 0.15);
}

.payout-exception-item {
  min-height: 62px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(154, 71, 65, 0.12);
}

.payout-exception-item:last-child {
  border-bottom: 0;
}

.payout-exception-priority {
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  color: var(--red);
  background: white;
  border: 1px solid #dfc4c1;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
}

.payout-exception-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.payout-exception-content strong,
.payout-exception-content span,
.payout-exception-content small {
  overflow-wrap: anywhere;
}

.payout-exception-content strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.payout-exception-content span {
  color: #704943;
  font-size: 11px;
}

.payout-exception-content small {
  color: var(--muted);
  font-size: 9px;
}

.payout-health-panel {
  border-bottom: 1px solid var(--line);
  background: white;
}

.payout-health-heading {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.payout-health-heading h3 {
  margin: 3px 0;
  color: var(--ink);
  font-size: 14px;
}

.payout-health-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.payout-health-status-attention {
  color: var(--red);
  background: var(--red-soft);
  border-color: #e1c9c6;
}

.payout-health-content {
  padding: 0 16px 16px;
}

.payout-health-runtime {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.payout-health-runtime > div {
  min-width: 0;
  padding: 12px 10px 11px;
  border-right: 1px solid var(--line);
}

.payout-health-runtime > div:first-child {
  padding-left: 0;
}

.payout-health-runtime > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.payout-health-runtime span,
.payout-health-runtime strong {
  display: block;
  overflow-wrap: anywhere;
}

.payout-health-runtime span,
.payout-health-metric span,
.payout-health-metric small {
  color: var(--muted);
  font-size: 9px;
}

.payout-health-runtime strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 11px;
}

.payout-health-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-top: 0;
}

.payout-health-metric {
  min-width: 0;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 12px;
  border-right: 1px solid var(--line);
}

.payout-health-metric:last-child {
  border-right: 0;
}

.payout-health-metric strong,
.payout-health-metric small {
  overflow-wrap: anywhere;
}

.payout-health-metric strong {
  color: var(--ink);
  font-size: 16px;
}

.payout-health-metric.has-alert {
  box-shadow: inset 0 3px var(--red);
  background: #fffafa;
}

.payout-health-metric.has-alert strong,
.payout-health-metric.has-alert small {
  color: var(--red);
}

.payout-bill-panel {
  border-bottom: 1px solid var(--line);
  background: #fcfdfc;
}

.payout-bill-heading {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
}

.payout-bill-heading h3,
.payout-difference-heading h4 {
  margin: 3px 0;
  color: var(--ink);
  font-size: 14px;
}

.payout-bill-heading p,
.payout-difference-heading span {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.payout-bill-controls {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.payout-bill-download-state.is-disabled {
  color: var(--red);
  background: var(--red-soft);
  border-color: #e1c9c6;
}

.payout-bill-reconcile-form {
  display: grid;
  grid-template-columns: auto 142px auto;
  align-items: center;
  gap: 7px;
}

.payout-bill-reconcile-form label,
.readonly-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.payout-bill-reconcile-form input {
  width: 142px;
  height: 36px;
  padding: 0 8px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--strong-line);
  border-radius: 5px;
  font-size: 11px;
}

.payout-bill-reconcile-form .primary-button {
  height: 36px;
}

.payout-bill-table-wrap table,
.payout-difference-table-wrap table {
  min-width: 860px;
}

.payout-bill-table-wrap tr.selected-row td {
  background: var(--green-050);
}

.payout-bill-table-wrap tr.selected-row td:first-child {
  box-shadow: inset 3px 0 var(--green-700);
}

.payout-bill-failure,
.payout-bill-retry,
.payout-difference-resolution,
.payout-difference-note {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 9px;
}

.payout-bill-failure {
  color: var(--red);
}

.payout-bill-status-processing {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: #cbdde7;
}

.payout-bill-status-completed,
.payout-difference-status-resolved {
  color: #2c6552;
  background: #e4efe9;
  border-color: #cfe1d8;
}

.payout-bill-status-failed,
.payout-difference-status-open {
  color: var(--red);
  background: var(--red-soft);
  border-color: #e3cecb;
}

.payout-difference-panel {
  border-top: 1px solid var(--line);
  background: white;
}

.payout-difference-heading {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
}

.payout-difference-filters {
  display: flex;
  gap: 5px;
}

.payout-difference-kind,
.payout-difference-code {
  display: block;
  overflow-wrap: anywhere;
}

.payout-difference-kind {
  font-size: 11px;
}

.payout-difference-code {
  margin-top: 3px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
}

.payout-difference-reference {
  min-width: 190px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.payout-difference-reference small {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 9px;
}

.payout-difference-reference code {
  color: var(--green-800);
  font-size: 9px;
}

.payout-difference-dialog > form > label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 18px 24px 0;
}

.app-dialog textarea {
  width: 100%;
  min-height: 104px;
  resize: vertical;
  padding: 10px 11px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--strong-line);
  border-radius: 5px;
  font-size: 13px;
  line-height: 1.5;
}

.admin-section-title {
  border-bottom: 1px solid var(--line);
}

.store-account-panel {
  border-top: 1px solid var(--line);
  background: #fcfdfc;
}

.store-account-heading {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

.store-account-heading h3 {
  margin: 3px 0;
  color: var(--ink);
  font-size: 15px;
}

.store-account-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.store-account-status-cell {
  min-width: 94px;
}

.store-account-status-cell .status-badge {
  margin: 2px 4px 2px 0;
}

.status-locked {
  color: #8a4b32;
  background: #fff0e7;
  border-color: #e8c9b9;
}

.store-account-login-security {
  min-width: 150px;
}

.store-account-login-security strong {
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.store-account-login-security small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.store-account-lock-deadline {
  color: #8a4b32 !important;
}

.store-account-lock-summary {
  margin: 0;
  padding: 10px 12px;
  color: #7c4b36;
  background: #fff5ed;
  border: 1px solid #ebd1bf;
  border-radius: 5px;
  font-size: 11px;
  line-height: 1.5;
}

.channel-commerce-workspace {
  min-height: 640px;
}

.channel-commerce-title,
.channel-panel-heading {
  flex-wrap: wrap;
}

.channel-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.channel-summary > div {
  min-height: 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 12px 18px;
  border-right: 1px solid var(--line);
}

.channel-summary > div:last-child {
  border-right: 0;
}

.channel-summary span {
  color: var(--muted);
  font-size: 10px;
}

.channel-summary strong {
  color: var(--ink);
  font-size: 20px;
}

.channel-summary > div.has-alert {
  background: #fff8ec;
}

.channel-summary > div.has-alert span,
.channel-summary > div.has-alert strong {
  color: #8a4f20;
}

.channel-tabs {
  display: flex;
  gap: 3px;
  padding: 9px 14px 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.channel-tabs::-webkit-scrollbar {
  display: none;
}

.channel-overview-tasks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: #f7faf8;
}

.channel-overview-tasks button {
  min-width: 0;
  min-height: 82px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  align-items: baseline;
  gap: 3px 10px;
  padding: 13px 18px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
}

.channel-overview-tasks button:last-child {
  border-right: 0;
}

.channel-overview-tasks button:hover,
.channel-overview-tasks button:focus-visible {
  background: #eef5f1;
}

.channel-overview-tasks span,
.channel-overview-tasks small {
  color: var(--muted);
  font-size: 10px;
}

.channel-overview-tasks strong {
  grid-row: span 2;
  color: var(--green-800);
  font-size: 23px;
}

.channel-overview-table {
  min-width: 1180px;
}

.channel-overview-organization {
  padding-left: calc(18px + var(--organization-depth, 0) * 13px);
}

.channel-overview-organization strong,
.channel-overview-number strong,
.channel-overview-todo strong {
  display: block;
  color: var(--ink);
  font-size: 11px;
}

.channel-overview-organization small,
.channel-overview-number small,
.channel-overview-todo small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.channel-overview-type {
  min-width: 118px;
}

.channel-overview-type .organization-type-label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
}

.channel-overview-number.warning strong,
.channel-overview-number.warning small,
.channel-overview-todo.warning strong,
.channel-overview-todo.warning small {
  color: #8a4f20;
}

.channel-overview-attention-row {
  background: #fffdf8;
}

.channel-tab {
  min-width: 82px;
  min-height: 38px;
  padding: 0 13px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  font-size: 11px;
  font-weight: 700;
}

.channel-tab:hover,
.channel-tab.active {
  color: var(--green-800);
  border-bottom-color: var(--green-700);
}

.channel-panel {
  min-width: 0;
}

.channel-panel-heading {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}

.channel-panel-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
}

.channel-panel-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.channel-panel-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.channel-panel-tools select {
  width: min(240px, 34vw);
  height: 36px;
  padding: 0 30px 0 10px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--strong-line);
  border-radius: 5px;
  font-size: 11px;
}

.channel-price-form {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(170px, 1fr) minmax(150px, 0.7fr) auto;
  align-items: end;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.channel-price-form label {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.channel-price-form label > span {
  color: #425049;
  font-size: 11px;
  font-weight: 700;
}

.channel-price-form select,
.channel-price-form input {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--strong-line);
  border-radius: 5px;
  font-size: 12px;
}

.channel-price-form .primary-button {
  min-width: 100px;
  height: 38px;
}

.channel-price-form .form-error {
  grid-column: 1 / -1;
  margin: 0;
}

.pricing-workspace + .pricing-workspace {
  border-top: 6px solid #f3f5f4;
}
.pricing-schedule-workspace { margin-top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfb; }
.pricing-schedule-form { display: grid; gap: 12px; margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.pricing-schedule-time-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pricing-schedule-status { color: var(--muted); font-size: 10px; white-space: nowrap; }
.pricing-schedule-status.ready { color: var(--green-700); }
.pricing-schedule-status.loading { color: var(--blue); }
.pricing-schedule-status.error { color: var(--red); }
.pricing-schedule-status.muted { color: var(--muted); }
.pricing-schedule-workspace .table-wrap { margin-top: 14px; }
.pricing-schedule-workspace td strong, .pricing-schedule-workspace td small { display: block; }
.pricing-schedule-workspace td small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.pricing-schedule-workspace .table-action + .table-action { margin-left: 6px; }
.pricing-schedule-workspace .is-hidden { display: none !important; }
.pricing-tier-editor.is-hidden { display: none; }
@media (max-width: 760px) {
  .pricing-schedule-time-fields { grid-template-columns: 1fr; }
}

.pricing-workspace-heading {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}

.pricing-workspace-heading h4 {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
}

.pricing-workspace-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.pricing-inline-form,
.pricing-assignment-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr)) auto auto auto;
  align-items: end;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.pricing-assignment-form {
  grid-template-columns: repeat(3, minmax(170px, 1fr)) auto;
}

.pricing-inline-form label:not(.pricing-checkbox),
.pricing-assignment-form label,
.pricing-policy-fields label,
.pricing-tier-row label {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.pricing-inline-form label > span,
.pricing-assignment-form label > span,
.pricing-policy-fields label > span,
.pricing-tier-row label > span {
  color: #425049;
  font-size: 11px;
  font-weight: 700;
}

.pricing-inline-form input[type="text"],
.pricing-inline-form select,
.pricing-assignment-form select,
.pricing-policy-fields select,
.pricing-tier-row input {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--strong-line);
  border-radius: 5px;
  font-size: 12px;
}

.pricing-checkbox {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  color: #425049;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.pricing-checkbox input,
.channel-order-quote-confirm input {
  width: 16px;
  height: 16px;
  accent-color: var(--green-700);
}

.pricing-inline-form .primary-button,
.pricing-inline-form .secondary-button,
.pricing-assignment-form .primary-button {
  height: 38px;
}

.pricing-inline-form .form-error,
.pricing-assignment-form .form-error {
  grid-column: 1 / -1;
  margin: 0;
}

.pricing-policy-form {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.pricing-policy-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  gap: 12px;
}

.pricing-tier-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  color: #425049;
  font-size: 11px;
  font-weight: 700;
}

.pricing-tier-rows {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.pricing-tier-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(180px, 1fr) 36px;
  align-items: end;
  gap: 8px;
}

.pricing-tier-remove {
  width: 36px;
  color: var(--red);
}

.pricing-policy-actions {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.pricing-policy-form .form-error {
  margin: 10px 0 0;
}

.pricing-tier-summary {
  min-width: 220px;
  color: #384840;
  white-space: normal;
}

.compact-empty {
  min-height: 180px;
}

.channel-organization-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(440px, 1.4fr);
  min-height: 360px;
}

.channel-organization-layout > div:first-child {
  min-width: 0;
  border-right: 1px solid var(--line);
}

.organization-tree {
  padding: 8px 0;
}

.organization-node {
  min-height: 58px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  margin-left: calc(var(--organization-depth) * 20px);
  padding: 8px 12px;
  border-bottom: 1px solid #edf0ee;
}

.organization-node.selected {
  background: var(--green-050);
  box-shadow: inset 3px 0 var(--green-700);
}

.organization-marker {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--green-800);
  background: var(--green-050);
  border: 1px solid #d7e3dd;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
}

.organization-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 3px 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  text-align: left;
}

.organization-copy strong,
.organization-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.organization-copy strong {
  font-size: 12px;
}

.organization-copy small {
  color: var(--muted);
  font-size: 10px;
}

.organization-edit {
  padding-right: 7px;
  padding-left: 7px;
}

.channel-account-panel {
  min-width: 0;
  background: #fcfdfc;
}

.compact-channel-heading {
  min-height: 70px;
}

.channel-order-filters {
  display: flex;
  gap: 5px;
  padding: 9px 14px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.channel-order-search {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 0 14px 12px;
  border-bottom: 1px solid var(--line);
}

.channel-order-search label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.channel-order-search input { min-width: 0; }
.channel-order-search .text-button { min-width: 48px; }

@media (max-width: 680px) {
  .channel-order-search { grid-template-columns: minmax(0, 1fr) auto; }
  .channel-order-search .text-button { grid-column: 1 / -1; justify-self: end; }
}

.inventory-number {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.inventory-number.reserved {
  color: var(--amber);
}

.inventory-number.available {
  color: var(--green-700);
}

.inventory-number.inbound {
  color: #1b6d7a;
}

.inventory-number.outbound {
  color: #8a5b19;
}

.inventory-number.internal-transfer {
  color: #48645a;
}

.channel-inventory-table {
  min-width: 1280px;
}

.channel-inventory-table th:first-child,
.channel-inventory-table td:first-child {
  min-width: 190px;
}

.channel-inventory-table th:nth-child(2),
.channel-inventory-table td:nth-child(2) {
  min-width: 150px;
}

.inventory-stock-stack,
.inventory-policy-stack {
  gap: 4px;
}

.inventory-stock-stack small,
.inventory-policy-stack small,
.inventory-recommendation small {
  color: var(--muted);
  font-size: 10px;
}

.inventory-transit-stack,
.inventory-recommendation {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.inventory-transit-stack span {
  font-size: 11px;
}

.inventory-number.projected {
  color: var(--green-800);
}

.inventory-number.projected.low {
  color: #8a4f20;
}

.inventory-policy-unset {
  color: var(--soft-muted);
  font-size: 11px;
}

.inventory-alert-badge,
.inventory-neutral-badge,
.inventory-healthy-badge {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border: 1px solid;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}

.inventory-alert-badge {
  color: #87491e;
  background: #fff1de;
  border-color: #e9c89f;
}

.inventory-neutral-badge {
  color: #65716b;
  background: #f1f3f2;
  border-color: #dce2df;
}

.inventory-healthy-badge {
  color: #2c6552;
  background: #e8f2ed;
  border-color: #cfe1d8;
}

.channel-inventory-table tbody .inventory-low-stock-row td {
  background: #fffcf6;
}

.channel-inventory-table tbody .inventory-low-stock-row:hover td {
  background: #fff8ec;
}

.inventory-policy-dialog {
  width: min(660px, calc(100vw - 32px));
}

.channel-stocktake-section {
  border-top: 1px solid var(--line);
}

.stocktake-review-heading {
  background: #f7faf8;
}

.stocktake-review-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stocktake-review-tools select {
  width: 150px;
  min-height: 38px;
  padding-top: 0;
  padding-bottom: 0;
}

.stocktake-scope-copy {
  display: inline-flex;
  width: fit-content;
  margin-top: 5px;
  padding: 2px 5px;
  color: var(--green-700);
  background: var(--green-050);
  border: 1px solid #d5e3da;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
}

.stocktake-scope-copy.legacy {
  color: #6c645a;
  background: #f5f3ef;
  border-color: #dfdbd3;
}

.channel-stocktake-table {
  min-width: 980px;
}

.stocktake-difference {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.stocktake-difference span {
  padding: 3px 6px;
  color: var(--muted);
  background: #f0f2f1;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}

.stocktake-difference .gain { color: var(--green-700); background: var(--green-050); }
.stocktake-difference .loss { color: var(--red); background: var(--red-soft); }

.channel-stocktake-dialog {
  width: min(900px, calc(100vw - 32px));
}

.channel-stocktake-dialog .dialog-heading > div {
  min-width: 0;
}

.channel-stocktake-dialog .dialog-heading h2 {
  overflow-wrap: anywhere;
}

.stocktake-review-meta {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.stocktake-review-meta > div {
  min-width: 0;
  padding: 13px 16px;
  border-right: 1px solid var(--line);
}

.stocktake-review-meta > div:last-child { border-right: 0; }
.stocktake-review-meta span { display: block; color: var(--muted); font-size: 10px; }
.stocktake-review-meta strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 12px;
  white-space: pre-line;
}

.stocktake-review-table-wrap {
  max-height: min(42vh, 420px);
  overflow: auto;
}

.stocktake-review-table-wrap table { min-width: 650px; }
.stocktake-review-note { display: block; padding: 14px 16px 0; }
.stocktake-review-note > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 11px; font-weight: 700; }
.stocktake-review-note textarea { min-height: 72px; }
.channel-stocktake-dialog .form-error { margin-right: 16px; margin-left: 16px; }
.danger-button { color: var(--red); border-color: #d9aaa4; }

.channel-ledger-section {
  border-top: 1px solid var(--line);
}

.channel-ledger-heading {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: #fafbf9;
  border-bottom: 1px solid var(--line);
}

.channel-ledger-heading h4 {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
}

.channel-ledger-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.channel-ledger-table {
  min-width: 1020px;
}

.channel-warehouse-panel {
  background: #fff;
}

.channel-warehouse-heading select {
  min-width: 230px;
}

.channel-warehouse-block {
  border-top: 6px solid #f3f5f4;
}

.channel-warehouse-block:first-of-type {
  border-top-width: 1px;
}

.channel-warehouse-block .compact-state {
  min-height: 120px;
}

.channel-warehouse-block-heading {
  min-height: 74px;
}

.channel-warehouse-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.channel-warehouse-filter {
  width: min(230px, 30vw);
  min-height: 36px;
  padding: 0 30px 0 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--strong-line);
  border-radius: 5px;
  font-size: 11px;
}

.channel-warehouse-table {
  min-width: 920px;
}

.channel-warehouse-inventory-table,
.channel-warehouse-ledger-table {
  min-width: 1160px;
}

.channel-inventory-transfer-table {
  min-width: 1160px;
}

.channel-inventory-transfer-filters {
  scrollbar-width: thin;
}

.channel-inventory-transfer-progress,
.channel-inventory-transfer-progress-grid {
  min-width: 310px;
  display: grid;
  grid-template-columns: repeat(5, minmax(50px, 1fr));
  overflow: hidden;
  background: #f7f9f7;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.channel-inventory-transfer-progress > div,
.channel-inventory-transfer-progress-grid > div {
  min-width: 0;
  padding: 7px 8px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.channel-inventory-transfer-progress > div:last-child,
.channel-inventory-transfer-progress-grid > div:last-child {
  border-right: 0;
}

.channel-inventory-transfer-progress span,
.channel-inventory-transfer-progress small,
.channel-inventory-transfer-progress-grid span,
.channel-inventory-transfer-progress-grid small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.25;
}

.channel-inventory-transfer-progress strong,
.channel-inventory-transfer-progress-grid strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.channel-warehouse-dialog {
  width: min(680px, calc(100vw - 32px));
}

.channel-inventory-transfer-dialog,
.channel-inventory-transfer-detail-dialog,
.channel-inventory-transfer-shipment-dialog {
  width: min(940px, calc(100vw - 32px));
}

.channel-inventory-transfer-detail-dialog {
  overflow-x: hidden;
}

.channel-inventory-transfer-detail-dialog .dialog-heading > div {
  min-width: 0;
}

.channel-inventory-transfer-detail-dialog .dialog-heading h2 {
  overflow-wrap: anywhere;
}

.channel-inventory-transfer-dialog form {
  min-width: 0;
}

.channel-inventory-transfer-items-field {
  min-width: 0;
}

.channel-inventory-transfer-items {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.channel-inventory-transfer-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px 36px;
  align-items: end;
  gap: 8px;
}

.channel-inventory-transfer-item-row label {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.channel-inventory-transfer-item-row label > span {
  color: #425049;
  font-size: 10px;
  font-weight: 700;
}

.channel-inventory-transfer-item-row select,
.channel-inventory-transfer-item-row input {
  width: 100%;
  height: 38px;
}

.channel-inventory-transfer-item-remove {
  width: 36px;
  height: 38px;
  padding: 0;
  color: var(--red);
}

#channel-inventory-transfer-items-help {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

#channel-inventory-transfer-selected-count {
  margin-left: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.channel-inventory-transfer-detail-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  color: #f8fbf8;
  background: var(--green-950);
  border-bottom: 1px solid var(--line);
}

.channel-inventory-transfer-detail-summary > div {
  min-width: 0;
  min-height: 84px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 13px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.channel-inventory-transfer-detail-summary > div:last-child {
  border-right: 0;
}

.channel-inventory-transfer-detail-summary span,
.channel-inventory-transfer-detail-summary small {
  color: #bdd0c7;
  font-size: 10px;
}

.channel-inventory-transfer-detail-summary strong {
  overflow-wrap: anywhere;
  color: white;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.channel-inventory-transfer-detail-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fafbf9;
  border-bottom: 1px solid var(--line);
}

.channel-inventory-transfer-detail-meta > div {
  min-width: 0;
  min-height: 74px;
  padding: 13px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.channel-inventory-transfer-detail-meta > div:nth-child(4),
.channel-inventory-transfer-detail-review {
  border-right: 0;
}

.channel-inventory-transfer-detail-meta > div:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.channel-inventory-transfer-detail-meta span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.channel-inventory-transfer-detail-meta strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-line;
}

.channel-inventory-transfer-detail-review {
  grid-column: span 2;
}

.channel-inventory-transfer-detail-section + .channel-inventory-transfer-detail-section {
  border-top: 6px solid #f3f5f4;
}

.channel-inventory-transfer-detail-table-wrap {
  max-height: min(34vh, 320px);
  overflow: auto;
}

.channel-inventory-transfer-detail-table-wrap table {
  min-width: 650px;
}

.channel-inventory-transfer-detail-table-wrap .channel-inventory-transfer-detail-items-table {
  min-width: 820px;
}

.channel-inventory-transfer-detail-shipments {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  background: #f7f9f7;
}

.channel-inventory-transfer-detail-shipments:empty {
  display: none;
}

.channel-inventory-transfer-shipment-card,
.channel-inventory-transfer-detail-shipment {
  min-width: 0;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.channel-inventory-transfer-shipment-heading,
.channel-inventory-transfer-detail-shipment-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #fafbf9;
  border-bottom: 1px solid var(--line);
}

.channel-inventory-transfer-shipment-heading > div,
.channel-inventory-transfer-detail-shipment-heading > div {
  min-width: 0;
}

.channel-inventory-transfer-shipment-heading strong,
.channel-inventory-transfer-shipment-heading small,
.channel-inventory-transfer-detail-shipment-heading strong,
.channel-inventory-transfer-detail-shipment-heading small {
  display: block;
}

.channel-inventory-transfer-shipment-heading strong,
.channel-inventory-transfer-detail-shipment-heading strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 12px;
}

.channel-inventory-transfer-shipment-heading small,
.channel-inventory-transfer-detail-shipment-heading small {
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.channel-inventory-transfer-shipment-progress,
.channel-inventory-transfer-detail-shipment-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.channel-inventory-transfer-shipment-progress > div,
.channel-inventory-transfer-detail-shipment-progress > div {
  min-width: 0;
  padding: 10px 14px;
  border-right: 1px solid var(--line);
}

.channel-inventory-transfer-shipment-progress > div:last-child,
.channel-inventory-transfer-detail-shipment-progress > div:last-child {
  border-right: 0;
}

.channel-inventory-transfer-shipment-progress span,
.channel-inventory-transfer-detail-shipment-progress span {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.channel-inventory-transfer-shipment-progress strong,
.channel-inventory-transfer-detail-shipment-progress strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.channel-inventory-transfer-shipment-table-wrap,
.channel-inventory-transfer-detail-shipment-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.channel-inventory-transfer-shipment-table-wrap table,
.channel-inventory-transfer-detail-shipment-table-wrap table {
  min-width: 620px;
}

.channel-inventory-transfer-receipts,
.channel-inventory-transfer-shipment-receipts {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  background: #fafbf9;
  border-top: 1px solid var(--line);
}

.channel-inventory-transfer-receipts > h5,
.channel-inventory-transfer-shipment-receipts > h5 {
  margin: 0;
  color: #425049;
  font-size: 11px;
}

.channel-inventory-transfer-receipt-card,
.channel-inventory-transfer-shipment-receipt {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.channel-inventory-transfer-receipt-card strong,
.channel-inventory-transfer-receipt-card small,
.channel-inventory-transfer-shipment-receipt strong,
.channel-inventory-transfer-shipment-receipt small {
  display: block;
}

.channel-inventory-transfer-receipt-card small,
.channel-inventory-transfer-shipment-receipt small {
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 10px;
}

.channel-inventory-transfer-detail-shipments-empty {
  padding: 26px 16px;
  color: var(--muted);
  text-align: center;
  background: #fafbf9;
}

.channel-inventory-transfer-detail-shipments-empty strong,
.channel-inventory-transfer-detail-shipments-empty p {
  display: block;
  margin: 0;
}

.channel-inventory-transfer-detail-shipments-empty strong {
  color: #425049;
  font-size: 12px;
}

.channel-inventory-transfer-detail-shipments-empty p {
  margin-top: 5px;
  font-size: 10px;
}

.channel-inventory-transfer-action-note {
  display: block;
  padding: 14px 16px 0;
  border-top: 1px solid var(--line);
}

.channel-inventory-transfer-action-note > span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.channel-inventory-transfer-action-note textarea {
  min-height: 76px;
}

.channel-inventory-transfer-detail-dialog > .form-error {
  margin-right: 16px;
  margin-left: 16px;
}

.channel-inventory-transfer-detail-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.channel-inventory-transfer-detail-actions button {
  min-width: 104px;
}

.channel-inventory-transfer-shipment-dialog {
  width: min(620px, calc(100vw - 32px));
  overflow-x: hidden;
}

.channel-inventory-transfer-shipment-dialog .dialog-heading > div,
.channel-inventory-transfer-shipment-dialog .dialog-heading p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.channel-inventory-transfer-shipment-pending-intent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 16px 20px 0;
  padding: 11px 12px;
  color: #704f1e;
  background: #faf2df;
  border: 1px solid #e6d3a6;
  border-radius: 6px;
}

.channel-inventory-transfer-shipment-pending-intent > div {
  min-width: 0;
}

.channel-inventory-transfer-shipment-pending-intent strong,
.channel-inventory-transfer-shipment-pending-intent small {
  display: block;
}

.channel-inventory-transfer-shipment-pending-intent small {
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: #876a3a;
  font-size: 10px;
  line-height: 1.5;
}

.channel-inventory-transfer-shipment-pending-intent .danger-text {
  flex: 0 0 auto;
  color: var(--red);
}

.channel-inventory-transfer-shipment-form-grid {
  padding-top: 16px;
}

.channel-inventory-transfer-shipment-items {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.channel-inventory-transfer-shipment-items legend {
  color: #425049;
  font-size: 12px;
  font-weight: 700;
}

.channel-inventory-transfer-shipment-items > p {
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.channel-inventory-transfer-shipment-item-fields {
  display: grid;
  gap: 8px;
}

.channel-inventory-transfer-shipment-item-field {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  align-items: center;
  gap: 12px;
  padding: 10px 11px;
  background: var(--green-050);
  border: 1px solid var(--line);
  border-radius: 5px;
}

.channel-inventory-transfer-shipment-item-copy {
  min-width: 0;
}

.channel-inventory-transfer-shipment-item-field strong,
.channel-inventory-transfer-shipment-item-field small {
  display: block;
}

.channel-inventory-transfer-shipment-item-field strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 12px;
}

.channel-inventory-transfer-shipment-item-field small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.channel-inventory-transfer-shipment-item-field input {
  width: 100%;
  min-width: 0;
  text-align: right;
}

.channel-inventory-transfer-shipment-item-field input[aria-invalid="true"] {
  border-color: var(--red);
}

.channel-finance-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  color: #f8fbf8;
  background: var(--green-950);
  border-bottom: 1px solid var(--line);
}

.channel-finance-summary > div {
  min-width: 0;
  min-height: 86px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 13px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.channel-finance-summary > div:last-child { border-right: 0; }
.channel-finance-summary span,
.channel-finance-summary small { color: #bdd0c7; font-size: 10px; }
.channel-finance-summary strong {
  min-width: 0;
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.channel-finance-summary > div.has-warning strong,
.channel-finance-summary > div.has-warning small { color: #f4ce82; }
.channel-finance-block { border-top: 1px solid var(--line); }
.channel-finance-block:first-of-type { border-top: 0; }
.channel-finance-block table { min-width: 1040px; }
.channel-finance-block .status-badge { width: max-content; margin-top: 4px; }
.finance-outstanding-cell { color: #805b17; font-weight: 800; }
.finance-overdue-row { background: #fff9f8; }
.finance-overdue-text { color: var(--red) !important; font-weight: 700; }

.channel-return-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  color: #f8fbf8;
  background: #24372f;
  border-bottom: 1px solid var(--line);
}

.channel-return-summary > div {
  min-width: 0;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 13px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.channel-return-summary > div:last-child { border-right: 0; }
.channel-return-summary span,
.channel-return-summary small { color: #bdcbc4; font-size: 10px; }
.channel-return-summary strong {
  min-width: 0;
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.channel-return-summary > div.has-warning { background: #4c3b23; }
.channel-return-summary > div.has-warning strong,
.channel-return-summary > div.has-warning small { color: #f3d596; }

.channel-return-filters {
  display: grid;
  grid-template-columns: 150px minmax(190px, 1.25fr) minmax(170px, 1fr) minmax(170px, 1fr) auto auto auto;
  align-items: end;
  gap: 10px;
  padding: 13px 16px;
  background: #f7f9f8;
  border-bottom: 1px solid var(--line);
}

.channel-return-filters > label:not(.return-attention-filter) {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.channel-return-filters label > span {
  color: #47564e;
  font-size: 10px;
  font-weight: 700;
}

.channel-return-filters select,
.channel-return-filters input[type='search'] {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--strong-line);
  border-radius: 5px;
  font-size: 11px;
}

.return-attention-filter {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
  white-space: nowrap;
}

.channel-return-table { min-width: 1320px; }
.channel-return-table td:first-child { min-width: 180px; }
.secondary-table-action { color: var(--muted); }

.status-requested,
.status-declared { color: #805b17; background: #fff4df; border-color: #ead09c; }
.status-goods_received { color: #5b4c77; background: #f0eafa; border-color: #d4c7e8; }
.status-completed,
.status-confirmed { color: var(--green-700); background: var(--green-050); border-color: #cfe1d8; }

.channel-return-detail-dialog {
  width: min(1120px, calc(100vw - 32px));
}

.return-detail-meta,
.return-finance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.return-detail-meta > div,
.return-finance-grid > div {
  min-width: 0;
  padding: 12px 15px;
  border-right: 1px solid var(--line);
}

.return-detail-meta > div:last-child { border-right: 0; }
.return-detail-meta span,
.return-finance-grid span,
.return-logistics-grid span { display: block; color: var(--muted); font-size: 10px; }
.return-detail-meta strong,
.return-finance-grid strong,
.return-logistics-grid strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.return-detail-section { border-bottom: 1px solid var(--line); }
.return-detail-section-heading {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  background: #fafbf9;
  border-bottom: 1px solid var(--line);
}
.return-detail-section-heading h3 { margin: 0; font-size: 13px; }
.return-detail-section-heading p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.return-detail-table-wrap table { min-width: 680px; }

.return-logistics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.return-logistics-grid > div { min-width: 0; padding: 13px 16px; }
.return-logistics-grid > div:first-child { border-right: 1px solid var(--line); }
.return-logistics-grid small { display: block; margin-top: 5px; color: var(--muted); overflow-wrap: anywhere; }

.return-finance-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); border-bottom: 0; }
.return-finance-grid > div:last-child { border-right: 0; }
.return-finance-grid strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.return-detail-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.return-detail-split > div { min-width: 0; }
.return-detail-split > div:first-child { border-right: 1px solid var(--line); }
.return-detail-scroll { max-height: 260px; overflow: auto; }
.return-detail-scroll table { min-width: 520px; }
.empty-table-cell { color: var(--muted); text-align: center; }
.return-detail-actions { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; background: var(--surface); border-top: 1px solid var(--line); }
.return-detail-actions > span:first-child { margin-right: auto; }

#channel-return-detail-action-error { margin: 12px 16px 0; }
#channel-return-request-dialog {
  width: min(720px, calc(100vw - 32px));
}
.channel-return-request-order-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.channel-return-request-order-row .secondary-button {
  min-width: 124px;
  min-height: 40px;
}
.channel-return-request-selection {
  min-width: 0;
  overflow: hidden;
  background: #fafbf9;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.channel-return-request-selection-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: white;
  border-bottom: 1px solid var(--line);
}
.channel-return-request-selection-heading h3 {
  margin: 0;
  font-size: 13px;
}
.channel-return-request-selection-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
}
.channel-return-request-selection-heading > div:last-child {
  display: flex;
  align-items: center;
  gap: 4px;
}
.channel-return-request-selection .section-link {
  min-height: 30px;
  padding: 0 8px;
  color: var(--green-700);
  background: transparent;
  border: 0;
  font-size: 11px;
  font-weight: 700;
}
.channel-return-request-selection .section-link:hover {
  background: var(--green-050);
}
.channel-return-request-items {
  max-height: 264px;
  overflow: auto;
}
.channel-return-request-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 92px;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}
.channel-return-request-item:last-child { border-bottom: 0; }
.app-dialog .channel-return-request-item > input[type='checkbox'] {
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--green-800);
}
.channel-return-request-item-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.channel-return-request-item-copy strong {
  overflow-wrap: anywhere;
  font-size: 12px;
}
.channel-return-request-item-copy span {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 10px;
}
.channel-return-request-quantity {
  min-width: 0;
  gap: 4px !important;
}
.channel-return-request-quantity > span:first-child {
  font-size: 10px !important;
}
.channel-return-request-quantity input {
  height: 34px;
  text-align: right;
}
.channel-return-request-quantity input[aria-invalid='true'] {
  background: var(--red-soft);
  border-color: #c46d65;
}
.channel-return-request-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  background: white;
  border-top: 1px solid var(--line);
}
.channel-return-request-total span {
  color: var(--muted);
  font-size: 11px;
}
.channel-return-request-total strong {
  color: var(--green-800);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
}
.channel-return-request-selection > .form-note {
  margin: 0;
  padding: 8px 14px;
  border-top: 1px solid var(--line);
}
#channel-return-approve-dialog .form-grid,
#channel-return-shipment-dialog .form-grid { padding-top: 14px; }
.channel-data-error {
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
}

#channel-payment-reject-dialog > form > label {
  display: block;
  margin: 18px 24px 0;
}

#channel-payment-reject-dialog > form > label > span {
  display: block;
  margin-bottom: 7px;
}

.ledger-quantity {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.ledger-quantity.positive {
  color: var(--green-700);
}

.ledger-quantity.negative {
  color: var(--red);
}

.ledger-reference {
  max-width: 260px;
}

.ledger-reference small {
  overflow-wrap: anywhere;
  white-space: normal;
}

.order-items-summary {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-link {
  max-width: 100%;
  padding: 0;
  overflow-wrap: anywhere;
  color: var(--green-700);
  background: transparent;
  border: 0;
  font-weight: 700;
  text-align: left;
}

.table-link:hover { text-decoration: underline; }

.channel-order-table { min-width: 1380px; }

.channel-order-warehouse-stack {
  min-width: 190px;
}

.channel-order-warehouse-stack small {
  overflow-wrap: anywhere;
  white-space: normal;
}

.channel-order-warehouse-stack .pending {
  color: var(--muted);
}

.channel-order-recipient,
.channel-order-address {
  max-width: 280px;
  overflow-wrap: anywhere;
  white-space: normal;
}

.channel-order-address.missing,
.error-text {
  color: var(--red) !important;
}

.status-submitted {
  color: var(--amber);
  background: var(--amber-soft);
  border-color: #ead4c0;
}

.status-approved,
.status-partially-shipped,
.status-shipped {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: #d1e1e9;
}

.status-partially-received {
  color: #3c6264;
  background: #e5f1ef;
  border-color: #c9dfdc;
}

.status-received {
  color: #2c6552;
  background: var(--green-050);
  border-color: #d2e2da;
}

.status-rejected {
  color: var(--red);
  background: var(--red-soft);
  border-color: #e4cbc7;
}

.status-stale {
  color: var(--purple);
  background: var(--purple-soft);
  border-color: #dcd4e8;
}

.status-cancelled {
  color: #68736e;
  background: #eef1ef;
  border-color: #dfe4e1;
}

.channel-order-dialog {
  width: min(680px, calc(100vw - 32px));
}

.channel-order-pending-intent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 16px 24px 0;
  padding: 10px 12px;
  color: #704f1e;
  background: #faf2df;
  border: 1px solid #e6d3a6;
  border-radius: 6px;
}

.channel-order-pending-intent > div {
  min-width: 0;
}

.channel-order-pending-intent strong,
.channel-order-pending-intent small {
  display: block;
}

.channel-order-pending-intent small {
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: #876a3a;
  line-height: 1.45;
}

@media (max-width: 560px) {
  .channel-order-pending-intent {
    align-items: flex-start;
    flex-direction: column;
  }
  .channel-order-detail-shipments { grid-template-columns: minmax(0, 1fr); }
  .channel-order-detail-shipment { grid-template-columns: minmax(0, 1fr); }
  .channel-order-detail-shipment .table-action { width: 100%; }
  .channel-shipment-item-field { grid-template-columns: minmax(0, 1fr) 88px; gap: 8px; }
  .channel-shipment-receipt-progress > div { padding-inline: 7px; }
  .channel-shipment-receipt-progress strong { font-size: 12px; }
  .channel-shipment-receipt-history-item { grid-template-columns: minmax(0, 1fr); }
  .channel-shipment-receipt-history-quantity { justify-self: start; }
  .channel-order-detail-actions { align-items: stretch; flex-direction: column; }
  .channel-order-detail-actions .table-action { width: 100%; }
}

.channel-order-approval-dialog {
  width: min(520px, calc(100vw - 32px));
}

.app-dialog.channel-order-detail-dialog {
  width: min(920px, calc(100vw - 32px));
  overflow-x: hidden;
}

.channel-order-detail-dialog .dialog-heading > div {
  min-width: 0;
}

.channel-order-detail-dialog .dialog-heading h2,
.channel-order-detail-dialog .dialog-heading p {
  overflow-wrap: anywhere;
}

.channel-order-detail-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.channel-order-detail-meta > div {
  min-width: 0;
  padding: 12px 15px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.channel-order-detail-meta > div:nth-child(4n),
.channel-order-detail-meta > div:last-child { border-right: 0; }
.channel-order-detail-meta > div.wide { grid-column: span 2; }
.channel-order-detail-meta span { display: block; color: var(--muted); font-size: 10px; }
.channel-order-detail-meta strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 12px;
  white-space: pre-line;
}

.channel-order-detail-section .channel-ledger-heading {
  padding: 12px 16px;
  background: #fafbf9;
  border-bottom: 1px solid var(--line);
}

.channel-order-detail-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.channel-order-detail-table-wrap table { min-width: 680px; }
.channel-order-item-progress { min-width: 190px; white-space: nowrap; }

.channel-order-detail-shipments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 14px 16px;
}

.channel-order-detail-shipment {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.channel-order-detail-shipment strong,
.channel-order-detail-shipment small { display: block; }
.channel-order-detail-shipment-copy { min-width: 0; }
.channel-order-detail-shipment small { margin-top: 4px; overflow-wrap: anywhere; color: var(--muted); }
.channel-order-detail-shipment .channel-shipment-receipt-progress-copy {
  color: var(--green-800);
  font-weight: 700;
}
.channel-order-detail-shipment .channel-shipment-receipt-history-copy { color: #876a3a; }
.channel-order-detail-shipment-empty { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 11px; }
.channel-order-detail-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 0;
  border-top: 1px solid var(--line);
}

.channel-shipment-dialog {
  width: min(540px, calc(100vw - 32px));
}

.channel-shipping-method {
  margin: 0;
  padding: 0;
  border: 0;
}

.channel-shipping-method legend {
  margin-bottom: 8px;
  color: #425049;
  font-size: 12px;
  font-weight: 700;
}

.channel-shipping-method > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.channel-shipping-method label {
  position: relative;
  min-width: 0;
}

.channel-shipping-method input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.channel-shipping-method label span {
  min-height: 42px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #f5f7f5;
  border: 1px solid var(--strong-line);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
}

.channel-shipping-method input:checked + span {
  color: var(--green-800);
  background: var(--green-050);
  border-color: var(--green-700);
}

.channel-shipping-method input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(57, 112, 99, 0.2);
}

.shipment-logistics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.channel-shipment-items {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.channel-shipment-items legend {
  margin-bottom: 8px;
  color: #425049;
  font-size: 12px;
  font-weight: 700;
}

.channel-shipment-item-fields { display: grid; gap: 8px; }
.channel-shipment-item-field {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--green-050);
  border: 1px solid var(--line);
  border-radius: 5px;
}
.channel-shipment-item-field strong,
.channel-shipment-item-field small { display: block; }
.channel-shipment-item-copy { min-width: 0; }
.channel-shipment-item-field strong { overflow-wrap: anywhere; }
.channel-shipment-item-field small { margin-top: 3px; color: var(--muted); }
.channel-shipment-item-field input { width: 100%; min-width: 0; text-align: right; }
.channel-shipment-item-field input[aria-invalid="true"] { border-color: var(--red); }

.channel-shipment-receipt-dialog { overflow-x: hidden; }
.channel-shipment-receipt-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 20px;
  padding-block: 11px;
  border-block: 1px solid var(--line);
}
.channel-shipment-receipt-progress > div { min-width: 0; padding-inline: 10px; }
.channel-shipment-receipt-progress > div + div { border-left: 1px solid var(--line); }
.channel-shipment-receipt-progress span,
.channel-shipment-receipt-progress strong { display: block; }
.channel-shipment-receipt-progress span { color: var(--muted); font-size: 10px; }
.channel-shipment-receipt-progress strong {
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: 14px;
}
.channel-shipment-receipt-intent-warning {
  margin: 12px 20px 0;
  padding: 9px 11px;
  overflow-wrap: anywhere;
  color: #876a3a;
  background: #faf2df;
  border-left: 3px solid #c28b2c;
  font-size: 11px;
  line-height: 1.55;
}
.channel-shipment-receipt-form-grid { padding-top: 16px; }
.channel-shipment-receipt-history-section { min-width: 0; margin-top: 5px; }
.channel-shipment-receipt-history-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.channel-shipment-receipt-history-heading h3 { margin: 0; font-size: 13px; }
.channel-shipment-receipt-history-heading span { color: var(--muted); font-size: 11px; }
.channel-shipment-receipt-history { display: grid; min-width: 0; }
.channel-shipment-receipt-history-item {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.channel-shipment-receipt-history-item-copy { min-width: 0; }
.channel-shipment-receipt-history-item strong,
.channel-shipment-receipt-history-item small { display: block; }
.channel-shipment-receipt-history-item strong,
.channel-shipment-receipt-history-item small { overflow-wrap: anywhere; }
.channel-shipment-receipt-history-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}
.channel-shipment-receipt-history-quantity {
  align-self: center;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.channel-shipment-receipt-history-empty {
  margin: 0;
  padding: 10px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 11px;
}

.order-items-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-items-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #425049;
  font-size: 12px;
  font-weight: 700;
}

.order-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 36px;
  gap: 8px;
  margin-top: 8px;
}

.order-item-remove {
  width: 36px;
  color: var(--red);
}

.channel-order-total {
  padding: 11px 12px;
  color: var(--green-800);
  background: var(--green-050);
  border-left: 3px solid var(--green-700);
  font-size: 12px;
  font-weight: 700;
}

.channel-order-total.invalid {
  color: #785f2d;
  background: var(--gold-soft);
  border-left-color: var(--gold);
}

.channel-order-quote-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.channel-order-quote-heading span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.channel-order-quote-heading strong {
  flex: 0 0 auto;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.channel-order-quote-items {
  display: grid;
  gap: 5px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid rgba(57, 112, 99, 0.2);
  font-weight: 500;
}

.channel-order-quote-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.channel-order-quote-item span:last-child {
  flex: 0 0 auto;
  color: #4f665d;
}

.channel-order-quote-warning {
  display: block;
  margin-top: 7px;
  color: #785f2d;
}

.channel-order-quote-confirm {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  color: #33453d;
  background: #f8faf8;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
}

#channel-order-address-help,
#channel-order-warehouse-help,
#channel-order-approval-help {
  overflow-wrap: anywhere;
}

.channel-order-address-feedback {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.channel-order-address-feedback small {
  min-width: 0;
}

.channel-order-address-feedback .text-button {
  flex: 0 0 auto;
  padding: 0;
}

.store-verification-tools {
  display: grid;
  grid-template-columns: auto minmax(150px, 220px) minmax(210px, 1fr) auto auto auto auto;
  align-items: center;
  gap: 8px;
}

.store-verification-tools label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.store-verification-tools select,
.store-verification-tools input {
  width: 100%;
  height: 36px;
  padding: 0 30px 0 10px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--strong-line);
  border-radius: 5px;
  font-size: 11px;
}

.store-verification-tools input {
  padding-right: 10px;
}

.store-verification-tools .secondary-button,
.store-verification-tools .text-button {
  white-space: nowrap;
}

.store-verification-overview {
  background: #fafcfb;
  border-bottom: 1px solid var(--line);
}

.store-verification-overview-heading {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 16px;
  border-bottom: 1px solid #e8ece9;
}

.store-verification-overview-heading h3 {
  margin: 0 0 3px;
  color: var(--ink);
  font-size: 14px;
}

.store-verification-overview-heading p,
.store-verification-overview-heading > span {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.store-verification-overview-heading > span {
  min-width: 0;
  max-width: 44%;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
  white-space: nowrap;
}

.store-verification-overview-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid #e8ece9;
}

.store-verification-overview-metrics > div {
  min-width: 0;
  min-height: 78px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 11px 16px;
  border-right: 1px solid #e8ece9;
}

.store-verification-overview-metrics > div:last-child {
  border-right: 0;
}

.store-verification-overview-metrics span,
.store-verification-overview-metrics small {
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-verification-overview-metrics span {
  font-weight: 700;
}

.store-verification-overview-metrics strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-verification-overview-latest strong {
  font-size: 13px;
}

.store-verification-overview-table {
  min-width: 660px;
}

.store-verification-overview-count {
  color: var(--green-800);
  font-size: 14px;
  font-weight: 800;
}

.store-verification-overview-time {
  color: #51645c;
  font-size: 11px;
}

.store-address-cell {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-contact-cell {
  min-width: 120px;
  white-space: nowrap;
}

.store-business-hours-cell {
  min-width: 150px;
  max-width: 240px;
  overflow-wrap: anywhere;
}

.compact-empty {
  min-height: 135px;
}

.role-badge,
.audit-outcome {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  color: var(--green-800);
  background: var(--green-050);
  border: 1px solid #cfe0d8;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}

.audit-outcome.failure {
  color: var(--red);
  background: var(--red-soft);
  border-color: #e7cecb;
}

.audit-title-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.audit-filter-form {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  align-items: end;
  gap: 10px;
  margin: 0 24px 18px;
  padding: 18px;
  background: #fafcfb;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.audit-filter-form label {
  min-width: 0;
}

.audit-filter-form label > span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.audit-filter-form input,
.audit-filter-form select {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--strong-line);
  border-radius: 5px;
  font-size: 12px;
}

.audit-filter-form select {
  padding-right: 30px;
}

.audit-time-field {
  grid-column: span 2;
}

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

.audit-filter-help,
.audit-filter-form .form-error {
  grid-column: 1 / -1;
  margin: 0;
}

.audit-filter-help {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.audit-active-filter-summary {
  margin: 0 24px 14px;
  padding: 10px 12px;
  color: #40564d;
  background: var(--green-050);
  border-left: 3px solid var(--green-700);
  font-size: 11px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.audit-governance-card {
  margin: 0 24px 18px;
  padding: 18px;
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.audit-governance-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.audit-governance-heading h3 {
  margin: 5px 0 4px;
  color: var(--ink);
  font-size: 18px;
}

.audit-governance-heading p,
.audit-governance-timestamp {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.audit-governance-actions {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.audit-governance-actions label > span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.audit-governance-actions select {
  height: 38px;
  min-width: 130px;
  padding: 0 10px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--strong-line);
  border-radius: 5px;
}

.audit-governance-timestamp {
  margin-top: 16px;
}

.audit-governance-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.audit-governance-metrics > div {
  min-width: 0;
  padding: 11px 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.audit-governance-metrics span,
.audit-governance-metrics strong {
  display: block;
}

.audit-governance-metrics span {
  color: var(--muted);
  font-size: 10px;
}

.audit-governance-metrics strong {
  margin-top: 5px;
  color: var(--ink);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.audit-governance-bucket-wrap h4 {
  margin: 16px 0 8px;
  color: var(--ink);
  font-size: 12px;
}

.audit-governance-buckets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.audit-governance-bucket {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 11px;
}

.audit-governance-bucket span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.audit-governance-bucket strong {
  color: var(--ink);
}

.audit-table {
  min-width: 960px;
}

.audit-table .mono-cell {
  max-width: 220px;
  overflow-wrap: anywhere;
}

.audit-detail-dialog {
  width: min(720px, calc(100vw - 32px));
}

.audit-detail-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 18px 0;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.audit-detail-fields > div {
  min-width: 0;
  padding: 11px 12px;
  background: white;
}

.audit-detail-fields dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.audit-detail-fields dd {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.audit-detail-warning {
  margin-bottom: 18px;
}

@media (max-width: 1180px) {
  .audit-filter-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .audit-time-field {
    grid-column: span 1;
  }
}

@media screen and (max-width: 680px) {
  .audit-governance-card {
    margin-inline: 17px;
    padding: 14px;
  }

  .audit-governance-heading,
  .audit-governance-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .audit-governance-actions select,
  .audit-governance-actions button {
    width: 100%;
  }

  .audit-governance-metrics,
  .audit-governance-buckets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audit-title-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .audit-title-actions .secondary-button,
  .audit-filter-actions button {
    width: 100%;
  }

  .audit-filter-form {
    grid-template-columns: minmax(0, 1fr);
    margin-inline: 17px;
    padding: 14px;
  }

  .audit-time-field,
  .audit-filter-help,
  .audit-filter-form .form-error {
    grid-column: 1;
  }

  .audit-filter-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .audit-active-filter-summary {
    margin-inline: 17px;
  }

  #audit-section .table-wrap {
    overflow: visible;
  }

  .audit-table {
    min-width: 0;
  }

  .audit-table thead {
    display: none;
  }

  .audit-table,
  .audit-table tbody,
  .audit-table tr,
  .audit-table td {
    width: 100%;
    display: block;
  }

  .audit-table tr {
    margin-bottom: 9px;
    padding: 10px 12px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 6px;
  }

  .audit-table td,
  .audit-table td.align-right {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 9px;
    max-width: none;
    padding: 5px 0;
    text-align: left;
    border: 0;
    overflow-wrap: anywhere;
  }

  .audit-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
  }

  .audit-table td.align-right .table-action {
    justify-self: start;
  }

  .audit-detail-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}

.compact-check {
  min-height: 40px;
  align-self: end;
  margin: 0;
}

.main-area {
  min-width: 0;
}

.topbar {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  margin: 0 0 4px;
  color: var(--soft-muted);
  font-size: 11px;
}

.topbar h1 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.2;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.last-updated {
  max-width: 260px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.primary-button,
.secondary-button,
.text-button,
.icon-button {
  min-height: 36px;
  border-radius: 6px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 13px;
  font-size: 12px;
  font-weight: 700;
}

.primary-button {
  color: white;
  background: var(--green-900);
  border: 1px solid var(--green-900);
}

.primary-button:hover {
  background: var(--green-800);
  border-color: var(--green-800);
}

.secondary-button {
  color: var(--green-800);
  background: var(--surface);
  border: 1px solid var(--strong-line);
}

.secondary-button:hover {
  background: var(--green-050);
  border-color: #aebbb4;
}

.text-button {
  padding: 0 5px;
  color: var(--green-700);
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 650;
}

.icon-button {
  width: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #5d6963;
  background: white;
  border: 1px solid var(--line);
  font-size: 18px;
}

.icon-button:hover {
  color: var(--green-800);
  background: var(--green-050);
}

.global-notice {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 24px 0;
  padding: 10px 14px 10px 17px;
  color: #5f4c28;
  background: #f7f0df;
  border: 1px solid #e4d3aa;
  border-left: 3px solid var(--gold);
  border-radius: 6px;
}

.global-notice.connected {
  color: #2c5749;
  background: var(--green-050);
  border-color: #c9dcd3;
  border-left-color: var(--green-700);
}

.global-notice.error {
  color: #743d38;
  background: var(--red-soft);
  border-color: #e5c8c5;
  border-left-color: var(--red);
}

.global-notice > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.global-notice strong {
  font-size: 12px;
}

.global-notice span {
  font-size: 11px;
  line-height: 1.5;
}

.workspace {
  min-width: 0;
  display: grid;
  grid-template-columns: 315px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  padding: 18px 24px 34px;
}

.campaign-rail,
.campaign-detail {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.campaign-rail {
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  overflow: hidden;
}

.campaign-detail {
  min-height: 720px;
}

.section-title {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 18px;
  border-bottom: 1px solid #e9ecea;
}

.section-title > div:first-child {
  min-width: 0;
}

.section-title h2,
.section-title h3 {
  margin: 2px 0 0;
  font-size: 15px;
  line-height: 1.3;
}

.section-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.section-kicker {
  display: block;
  color: var(--green-700);
  font-size: 10px;
  font-weight: 800;
}

.compact-title {
  min-height: 70px;
  padding: 12px 14px;
}

.count-label {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
}

.campaign-filters {
  display: flex;
  gap: 5px;
  padding: 10px 12px;
  border-bottom: 1px solid #edf0ee;
  overflow-x: auto;
}

.filter-button {
  min-height: 28px;
  flex: 0 0 auto;
  padding: 0 9px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 11px;
}

.filter-button:hover,
.filter-button.active {
  color: var(--green-800);
  background: var(--green-050);
  border-color: #d7e3dd;
  font-weight: 700;
}

.campaign-list {
  max-height: calc(100vh - 198px);
  overflow-y: auto;
}

.campaign-item {
  position: relative;
  width: 100%;
  min-height: 96px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 14px;
  color: var(--ink);
  background: white;
  border: 0;
  border-bottom: 1px solid #edf0ee;
  text-align: left;
}

.campaign-item:hover {
  background: #fafbf9;
}

.campaign-item.active {
  background: var(--green-050);
}

.campaign-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  bottom: 17px;
  width: 3px;
  background: var(--green-700);
  border-radius: 0 2px 2px 0;
}

.campaign-item-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.campaign-item strong,
.campaign-item small,
.campaign-item time {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.campaign-item strong {
  font-size: 12px;
}

.campaign-item small,
.campaign-item time {
  color: var(--muted);
  font-size: 11px;
}

.campaign-item .status-badge {
  align-self: start;
}

.status-badge {
  min-width: 44px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  color: #5d6762;
  background: #eef1ef;
  border: 1px solid #e0e5e2;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}

.status-active,
.status-published {
  color: #2c6552;
  background: #e4efe9;
  border-color: #cfe1d8;
}

.status-draft {
  color: #5c6f7c;
  background: #edf1f3;
  border-color: #dce4e8;
}

.status-paused {
  color: #8b5b29;
  background: var(--amber-soft);
  border-color: #ead4c0;
}

.status-ended,
.status-disabled,
.status-superseded {
  color: #7b605e;
  background: #f1e9e8;
  border-color: #e3d5d3;
}

.payout-status-pending {
  color: #7a5b20;
  background: var(--gold-soft);
  border-color: #e3d1aa;
}

.payout-status-processing {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: #cbdde7;
}

.payout-status-awaiting_user_confirm {
  color: #7a5b20;
  background: var(--gold-soft);
  border-color: #e3d1aa;
}

.payout-status-succeeded {
  color: #2c6552;
  background: #e4efe9;
  border-color: #cfe1d8;
}

.payout-status-failed {
  color: var(--red);
  background: var(--red-soft);
  border-color: #e3cecb;
}

.state-block,
.detail-placeholder,
.detail-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.state-block {
  min-height: 250px;
  padding: 28px;
}

.compact-state {
  min-height: 250px;
}

.state-block strong,
.inline-empty strong {
  margin-top: 12px;
  color: var(--ink);
  font-size: 13px;
}

.state-block p,
.inline-empty p,
.detail-placeholder p {
  max-width: 440px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.state-block button,
.detail-placeholder button {
  margin-top: 16px;
}

.state-spinner {
  width: 22px;
  height: 22px;
  display: inline-block;
  border: 2px solid #dce4df;
  border-top-color: var(--green-700);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.state-symbol {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--red);
  background: var(--red-soft);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 800;
}

.detail-placeholder {
  min-height: 716px;
  padding: 36px;
}

.detail-placeholder h2 {
  margin: 17px 0 0;
  font-size: 17px;
}

.placeholder-logo { width: 112px; height: 92px; }

.detail-loading {
  min-height: 716px;
  align-items: stretch;
  justify-content: flex-start;
  padding: 28px;
}

.skeleton {
  border-radius: 5px;
  background: linear-gradient(90deg, #eef1ef 25%, #f7f8f7 50%, #eef1ef 75%);
  background-size: 200% 100%;
  animation: shimmer 1.25s infinite;
}

.skeleton-title {
  width: 46%;
  height: 58px;
}

.skeleton-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 28px;
  background: var(--line);
  border: 1px solid var(--line);
}

.skeleton-metrics span {
  height: 112px;
  background: linear-gradient(90deg, #eef1ef 25%, #f7f8f7 50%, #eef1ef 75%);
  background-size: 200% 100%;
  animation: shimmer 1.25s infinite;
}

.skeleton-panel {
  height: 260px;
  margin-top: 22px;
}

.error-state {
  min-height: 716px;
}

.campaign-heading {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.campaign-heading > div:first-child {
  min-width: 0;
}

.heading-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
}

.campaign-heading h2 {
  margin: 8px 0 3px;
  overflow-wrap: anywhere;
  font-size: 22px;
}

.campaign-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.campaign-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.campaign-maintenance-strip {
  display: grid;
  grid-template-columns: minmax(150px, .7fr) minmax(190px, 1fr) minmax(260px, 1.6fr);
  gap: 12px;
  align-items: stretch;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: #f7f9f4;
}

.campaign-maintenance-strip > div,
.campaign-maintenance-status,
.campaign-maintenance-lock {
  min-width: 0;
  margin: 0;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.campaign-maintenance-strip > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.campaign-maintenance-strip span {
  color: var(--muted);
  font-size: 11px;
}

.campaign-maintenance-strip strong {
  overflow-wrap: anywhere;
  color: var(--green-800);
  font-size: 14px;
}

.campaign-maintenance-status,
.campaign-maintenance-lock {
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.campaign-maintenance-status.attention,
.campaign-maintenance-lock {
  border-color: #e9c98d;
  background: #fff9ed;
  color: #7a4b08;
}

.campaign-maintenance-status.ready {
  border-color: #b9d7c3;
  background: #f1f8f2;
  color: var(--green-800);
}

.campaign-maintenance-lock {
  grid-column: 1 / -1;
}

.maintenance-dialog-note,
.maintenance-dialog-warning {
  margin: 0 24px 18px;
  padding: 11px 13px;
  border-radius: 10px;
  background: #f3f6f1;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.maintenance-dialog-warning {
  border: 1px solid #e9c98d;
  background: #fff9ed;
  color: #7a4b08;
}

.replenishment-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 24px 20px;
}

.replenishment-summary > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8faf7;
}

.replenishment-summary span,
.replenishment-summary strong {
  display: block;
  overflow-wrap: anywhere;
}

.replenishment-summary span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
}

.replenishment-summary strong {
  color: var(--green-800);
  font-size: 17px;
}

#prize-section .table-wrap table {
  min-width: 900px;
}

.cash-budget-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.cash-budget-strip article {
  min-width: 0;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 20px;
  background: #fbfcfa;
}

.cash-budget-strip span,
.cash-budget-strip small {
  color: var(--muted);
  font-size: 11px;
}

.cash-budget-strip strong {
  margin: 6px 0 3px;
  overflow-wrap: anywhere;
  color: var(--green-800);
  font-size: 20px;
  line-height: 1.1;
}

.cash-budget-progress-row {
  grid-column: 1 / -1;
  min-height: 42px;
  display: grid;
  grid-template-columns: auto minmax(80px, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 20px;
  color: var(--muted);
  background: white;
  font-size: 11px;
}

.cash-budget-progress-row progress {
  width: 100%;
  height: 7px;
  overflow: hidden;
  appearance: none;
  background: #e7ece9;
  border: 0;
  border-radius: 4px;
}

.cash-budget-progress-row progress::-webkit-progress-bar {
  background: #e7ece9;
  border-radius: 4px;
}

.cash-budget-progress-row progress::-webkit-progress-value {
  background: var(--gold);
  border-radius: 4px;
}

.cash-budget-progress-row progress::-moz-progress-bar {
  background: var(--gold);
  border-radius: 4px;
}

.cash-budget-progress-row strong {
  margin: 0;
  color: var(--ink);
  font-size: 11px;
  white-space: nowrap;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--line);
  border-bottom: 1px solid var(--line);
  gap: 1px;
}

.metric-strip article {
  min-height: 106px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 17px 20px;
  background: white;
}

.metric-strip span,
.metric-strip small {
  color: var(--muted);
  font-size: 11px;
}

.metric-strip strong {
  margin: 6px 0 3px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.campaign-operations-overview {
  background: #f7faf8;
}

.campaign-operations-heading {
  background: white;
}

.campaign-operations-period-switch {
  flex: 0 0 auto;
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(58px, 1fr));
  padding: 3px;
  background: #edf1ef;
  border: 1px solid #dfe6e2;
  border-radius: 6px;
}

.campaign-operations-period-switch button {
  min-height: 30px;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.campaign-operations-period-switch button:hover,
.campaign-operations-period-switch button:focus-visible {
  color: var(--green-800);
}

.campaign-operations-period-switch button.active {
  color: var(--green-800);
  background: white;
  box-shadow: 0 1px 3px rgba(24, 52, 39, 0.12);
}

.campaign-operations-warning {
  margin: 12px 16px 0;
  padding: 10px 12px;
  color: #8a3d32;
  background: #fff4f1;
  border: 1px solid #efd1ca;
  border-radius: 5px;
  font-size: 11px;
  line-height: 1.55;
}

.campaign-operations-content {
  min-width: 0;
}

.campaign-operations-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.campaign-operations-metric-button {
  min-width: 0;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 15px 18px;
  background: white;
  border: 0;
  border-radius: 0;
  text-align: left;
  transition: background 120ms ease, box-shadow 120ms ease;
}

.campaign-operations-metric-button:hover:not(:disabled),
.campaign-operations-metric-button:focus-visible {
  position: relative;
  z-index: 1;
  background: #f4f9f6;
  box-shadow: inset 0 -2px 0 var(--green-600);
}

.campaign-operations-metrics span,
.campaign-operations-metrics small {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.campaign-operations-metrics strong {
  margin: 6px 0 4px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.campaign-operations-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 0.8fr);
  background: white;
}

.campaign-operations-block {
  min-width: 0;
}

.campaign-operations-block + .campaign-operations-block {
  border-left: 1px solid var(--line);
}

.campaign-operations-block-heading {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.campaign-operations-block-heading > div {
  min-width: 0;
}

.campaign-operations-block-heading h4 {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
}

.campaign-operations-block-heading p,
.campaign-operations-block-heading > span {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.campaign-operations-block-heading > span {
  max-width: 136px;
  flex: 0 1 auto;
  margin: 0;
  text-align: right;
}

.campaign-operations-cash-statuses,
.campaign-operations-physical-statuses {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.campaign-operations-cash-statuses {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.campaign-operations-cash-statuses > button {
  min-width: 0;
  min-height: 84px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 10px;
  background: #fbfcfb;
  border: 0;
  border-radius: 0;
  text-align: left;
  transition: background 120ms ease, box-shadow 120ms ease;
}

.campaign-operations-cash-statuses > button:hover:not(:disabled),
.campaign-operations-cash-statuses > button:focus-visible,
.campaign-operations-physical-statuses > button:hover:not(:disabled),
.campaign-operations-physical-statuses > button:focus-visible {
  position: relative;
  z-index: 1;
  background: #f0f7f3;
  box-shadow: inset 0 -2px 0 var(--green-600);
}

.campaign-operations-cash-statuses span,
.campaign-operations-cash-statuses small,
.campaign-operations-physical-statuses span,
.campaign-operations-physical-statuses small {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.campaign-operations-cash-statuses strong {
  margin: 5px 0 2px;
  color: var(--ink);
  font-size: 12px;
}

.campaign-operations-cash-statuses > button.attention strong,
.campaign-operations-cash-statuses > button.attention small {
  color: #a24438;
}

.campaign-operations-physical-statuses {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.campaign-operations-physical-statuses > button {
  min-width: 0;
  min-height: 84px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  align-items: end;
  gap: 4px 6px;
  padding: 10px 12px;
  background: #fbfcfb;
  border: 0;
  border-radius: 0;
  text-align: left;
  transition: background 120ms ease, box-shadow 120ms ease;
}

.campaign-operations-physical-statuses span {
  grid-column: 1 / -1;
}

.campaign-operations-physical-statuses strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}

.campaign-rule-section {
  background: white;
}

.campaign-rule-write-lock {
  min-height: 62px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 11px 18px;
  color: #74501d;
  background: #fff8e9;
  border-bottom: 1px solid #ead8b2;
}

.campaign-rule-write-lock strong {
  font-size: 12px;
}

.campaign-rule-write-lock span {
  font-size: 11px;
  line-height: 1.5;
}

.campaign-rule-current {
  min-width: 0;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  background: #f4f8f5;
  border-bottom: 1px solid var(--line);
}

.campaign-rule-current > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.campaign-rule-current > div > span,
.campaign-rule-current small {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.campaign-rule-current strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
}

.campaign-rule-table-wrap table {
  min-width: 780px;
}

.campaign-rule-version-cell {
  color: var(--green-800);
  font-weight: 800;
}

.campaign-rule-prize-copy {
  max-width: 280px;
}

.campaign-rule-prize-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.campaign-rule-dialog {
  width: min(720px, calc(100vw - 32px));
}

.campaign-rule-form-grid textarea {
  min-height: 108px;
  resize: vertical;
}

.campaign-rule-form-grid input[readonly],
.campaign-rule-form-grid textarea[readonly] {
  color: #59645f;
  background: #f5f7f6;
}

.drilldown-scope {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 16px;
  padding: 11px 12px;
  color: var(--ink);
  background: #f1f7f3;
  border: 1px solid #cfddd5;
  border-radius: 6px;
}

.drilldown-scope > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.drilldown-scope span,
.drilldown-scope small {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.drilldown-scope strong {
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.45;
}

.drilldown-scope .secondary-button {
  flex: 0 0 auto;
}

.operation-section {
  scroll-margin-top: 14px;
  border-bottom: 1px solid var(--line);
}

.operation-section:last-child {
  border-bottom: 0;
}

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

.redemption-pagination {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  color: var(--muted);
  background: #fafbf9;
  border-top: 1px solid var(--line);
  font-size: 11px;
}

.redemption-pagination[hidden] {
  display: none;
}

.redemption-pagination .secondary-button {
  min-width: 96px;
}

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

th,
td {
  min-width: 92px;
  height: 54px;
  padding: 8px 16px;
  border-bottom: 1px solid #edf0ee;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

th {
  height: 38px;
  color: var(--muted);
  background: #fafbf9;
  font-size: 10px;
  font-weight: 700;
}

td {
  color: #3d4943;
  font-size: 12px;
}

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

tbody tr:hover td {
  background: #fcfdfc;
}

td strong {
  color: var(--ink);
  font-size: 12px;
}

.cell-stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cell-stack small {
  color: var(--muted);
  font-size: 10px;
}

.mono-cell {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.money-cell {
  color: var(--ink);
  font-weight: 700;
}

.payout-error-copy {
  max-width: 180px;
  overflow: hidden;
  color: var(--red) !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kind-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 23px;
  padding: 0 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}

.kind-cash {
  color: #8a6121;
  background: var(--gold-soft);
}

.kind-physical {
  color: var(--blue);
  background: var(--blue-soft);
}

.kind-none {
  color: #606d67;
  background: #ecefed;
}

.table-action {
  min-height: 28px;
  padding: 0 9px;
  color: var(--green-700);
  background: white;
  border: 1px solid var(--strong-line);
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
}

.table-action:hover {
  background: var(--green-050);
}

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

.payout-row-attention td {
  background: #fffafa;
}

.payout-row-actions {
  flex-wrap: wrap;
}

.danger-action {
  color: var(--red);
  border-color: #dfc4c1;
}

.danger-action:hover {
  background: var(--red-soft);
}

.align-right {
  text-align: right;
}

.inline-empty {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  text-align: center;
}

.inline-empty > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--green-700);
  background: var(--green-050);
  border-radius: 50%;
  font-size: 16px;
}

.inline-loading,
.inline-error {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
  border-bottom: 1px solid var(--line);
}

.inline-loading .state-spinner {
  width: 16px;
  height: 16px;
}

.inline-error {
  color: var(--red);
  background: #fcf6f5;
}

.inline-error button {
  padding: 3px 5px;
  color: var(--red);
  background: transparent;
  border: 0;
  text-decoration: underline;
}

.app-dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: min(780px, calc(100vh - 32px));
  padding: 0;
  overflow: auto;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--strong-line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.app-dialog::backdrop {
  background: rgba(12, 29, 24, 0.5);
  backdrop-filter: blur(2px);
}

.payout-attempt-dialog {
  width: min(680px, calc(100vw - 32px));
}

.payout-attempt-context {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.payout-attempt-context > div {
  min-width: 0;
  min-height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 11px 16px;
  border-right: 1px solid var(--line);
}

.payout-attempt-context > div:last-child {
  border-right: 0;
}

.payout-attempt-context span {
  color: var(--muted);
  font-size: 10px;
}

.payout-attempt-context strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payout-attempt-list {
  margin: 0;
  padding: 8px 24px 0;
  list-style: none;
}

.payout-attempt-item {
  min-height: 78px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.payout-attempt-item:last-child {
  border-bottom: 0;
}

.payout-attempt-marker {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--green-700);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
}

.payout-attempt-failed .payout-attempt-marker {
  background: var(--red);
}

.payout-attempt-processing .payout-attempt-marker {
  background: var(--blue);
}

.payout-attempt-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.payout-attempt-item-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.payout-attempt-item-heading strong {
  overflow-wrap: anywhere;
  font-size: 11px;
}

.payout-attempt-content > small {
  color: var(--muted);
  font-size: 10px;
}

.payout-attempt-provider {
  display: block;
  overflow: hidden;
  color: var(--green-800);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payout-attempt-error-copy {
  padding: 7px 9px;
  color: var(--red);
  background: var(--red-soft);
  border-left: 3px solid #c46d65;
  font-size: 10px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.payout-attempt-status-processing {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: #cbdde7;
}

.payout-attempt-status-succeeded {
  color: #2c6552;
  background: #e4efe9;
  border-color: #cfe1d8;
}

.payout-attempt-status-failed {
  color: var(--red);
  background: var(--red-soft);
  border-color: #e3cecb;
}

.payout-attempt-actions {
  margin-top: 8px;
}

.app-dialog form {
  margin: 0;
}

.dialog-heading {
  min-height: 102px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
}

.dialog-heading h2 {
  margin: 4px 0 0;
  font-size: 19px;
}

.dialog-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.dialog-heading code,
.app-dialog label small code {
  color: var(--green-800);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.dialog-close {
  flex: 0 0 auto;
  border-color: transparent;
  background: transparent;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.app-dialog label > span:first-child,
.form-grid label > span:first-child {
  color: #425049;
  font-size: 12px;
  font-weight: 700;
}

.app-dialog input,
.app-dialog select {
  width: 100%;
  height: 40px;
  padding: 0 11px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--strong-line);
  border-radius: 5px;
  font-size: 13px;
}

.app-dialog input::placeholder {
  color: #a2aaa6;
}

.app-dialog label small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.password-field {
  display: grid;
  grid-template-columns: 1fr 54px;
}

.password-field input {
  border-radius: 5px 0 0 5px;
}

.password-field button {
  color: var(--green-700);
  background: var(--green-050);
  border: 1px solid var(--strong-line);
  border-left: 0;
  border-radius: 0 5px 5px 0;
  font-size: 11px;
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px 14px;
  padding: 20px 24px 4px;
}

.cash-budget-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 18px 24px 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.cash-budget-summary > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 14px;
  background: white;
}

.cash-budget-summary span {
  color: var(--muted);
  font-size: 11px;
}

.cash-budget-summary strong {
  overflow-wrap: anywhere;
  font-size: 16px;
}

.full-field {
  grid-column: 1 / -1;
}

.field-note {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 8px 10px;
  color: #6f5429;
  background: #faf4e8;
  border-left: 3px solid #d2ad58;
  font-size: 11px;
  line-height: 1.5;
}

.field-note strong {
  font-size: 12px;
}

.batch-mode-switch {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.batch-mode-switch legend {
  margin-bottom: 7px;
  color: #425049;
  font-size: 12px;
  font-weight: 700;
}

.batch-mode-switch > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  background: #eef2ef;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.batch-mode-switch label {
  min-width: 0;
  display: block;
}

.batch-mode-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.batch-mode-switch label span {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.batch-mode-switch input:focus-visible + span {
  outline: 2px solid var(--green-500);
  outline-offset: 1px;
}

.batch-mode-switch input:checked + span {
  color: var(--green-800);
  background: white;
  border-color: var(--strong-line);
}

.batch-mode-fields {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px 14px;
}

.batch-mode-fields[hidden] {
  display: none;
}

.batch-field-note,
.batch-mode-fields .full-field {
  grid-column: 1 / -1;
}

.batch-trace-total {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 8px 11px;
  color: var(--green-800);
  background: var(--green-050);
  border: 1px solid #cfe0d5;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.batch-trace-total.invalid {
  color: #7c3f39;
  background: var(--red-soft);
  border-color: #e7cecb;
}

.code-trace-workspace + .code-trace-workspace {
  border-top: 1px solid var(--line);
}

.code-trace-workspace-heading {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  background: #f7faf8;
  border-bottom: 1px solid var(--line);
}

.code-trace-workspace-heading h4,
.code-trace-timeline-heading h4 {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
}

.code-trace-workspace-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.code-trace-policy-table {
  min-width: 900px;
}

.code-trace-policy-editor {
  width: 108px;
  height: 34px;
  padding: 0 9px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--strong-line);
  border-radius: 5px;
  font-size: 11px;
}

.code-trace-policy-editor:disabled {
  color: var(--muted);
  background: #f3f5f4;
}

.code-trace-query-form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: end;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.code-trace-query-form label {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.code-trace-query-form label > span {
  color: #425049;
  font-size: 11px;
  font-weight: 700;
}

.code-trace-query-form input {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--strong-line);
  border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.code-trace-query-result {
  min-width: 0;
}

.code-trace-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.code-trace-summary > div {
  min-width: 0;
  min-height: 78px;
  padding: 13px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.code-trace-summary > div:nth-child(4n) {
  border-right: 0;
}

.code-trace-summary dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.code-trace-summary dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.55;
}

.code-trace-summary dd strong,
.code-trace-summary dd small {
  display: block;
}

.code-trace-summary dd small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.code-trace-timeline-heading {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
}

.code-trace-timeline {
  margin: 0;
  padding: 0 18px 18px;
  list-style: none;
}

.code-trace-timeline li {
  position: relative;
  min-height: 72px;
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0 14px 22px;
  border-bottom: 1px solid var(--line);
}

.code-trace-timeline li::before {
  content: '';
  position: absolute;
  left: 2px;
  width: 8px;
  height: 8px;
  background: var(--green-600);
  border: 3px solid #dcebe1;
  border-radius: 50%;
}

.code-trace-timeline li strong,
.code-trace-timeline li span,
.code-trace-timeline li small {
  min-width: 0;
}

.code-trace-timeline li strong {
  color: var(--ink);
  font-size: 11px;
}

.code-trace-timeline li span {
  overflow-wrap: anywhere;
  color: #425049;
  font-size: 10px;
  line-height: 1.55;
}

.code-trace-timeline li small {
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.form-error {
  margin: 14px 24px 0;
  padding: 9px 11px;
  color: #7c3f39;
  background: var(--red-soft);
  border: 1px solid #e7cecb;
  border-radius: 5px;
  font-size: 12px;
  line-height: 1.5;
}

.dialog-actions {
  min-height: 74px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
}

.security-warning {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: start;
  gap: 11px;
  margin: 20px 24px 0;
  padding: 13px;
  color: #704f1e;
  background: #faf2df;
  border: 1px solid #e6d3a6;
  border-radius: 6px;
}

.export-dialog {
  width: min(720px, calc(100vw - 32px));
}

.security-warning > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--gold);
  border-radius: 50%;
  font-weight: 800;
}

.security-warning strong {
  font-size: 11px;
}

.security-warning p {
  margin: 5px 0 0;
  font-size: 11px;
  line-height: 1.55;
}

.export-summary {
  margin: 18px 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.export-summary > div {
  min-height: 42px;
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: center;
  border-bottom: 1px solid #edf0ee;
}

.export-summary > div:last-child {
  border-bottom: 0;
}

.export-summary dt,
.export-summary dd {
  margin: 0;
  font-size: 12px;
}

.export-summary dt {
  color: var(--muted);
}

.export-summary dd {
  overflow: hidden;
  color: var(--ink);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.confirm-check {
  display: grid;
  grid-template-columns: 17px 1fr;
  align-items: start;
  gap: 8px;
  margin: 18px 24px 0;
  color: #4b5751;
  font-size: 12px;
  line-height: 1.55;
}

.confirm-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--green-800);
}

.export-file-verification {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 18px 24px 0;
  padding: 13px;
  background: #f7f9f8;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.export-file-verification strong {
  font-size: 12px;
}

.export-file-verification p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.file-verify-button {
  position: relative;
  min-width: 188px;
  cursor: pointer;
}

.file-verify-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.file-verify-button:focus-within {
  outline: 0;
  box-shadow: var(--focus);
}

.file-verify-button.is-disabled {
  color: #98a19d;
  background: #f1f3f2;
  cursor: not-allowed;
}

.export-actions {
  grid-template-columns: auto 1fr auto minmax(220px, auto);
}

.export-action-status {
  margin: 14px 24px 0;
  padding: 9px 11px;
  color: var(--green-800);
  background: var(--green-050);
  border: 1px solid #c9d9d1;
  border-radius: 5px;
  font-size: 12px;
  line-height: 1.5;
}

.export-action-status.error {
  color: #7c3f39;
  background: var(--red-soft);
  border-color: #e7cecb;
}

.danger-text {
  color: var(--red);
}

.toast-region {
  position: fixed;
  z-index: 90;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}

.toast {
  min-width: 230px;
  max-width: 360px;
  display: grid;
  grid-template-columns: 8px 1fr;
  align-items: start;
  gap: 10px;
  padding: 12px 14px;
  color: white;
  background: #22352e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(13, 30, 24, 0.2);
  font-size: 12px;
  line-height: 1.5;
  animation: toast-in 0.2s ease-out;
}

.toast::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 4px;
  background: #86b59f;
  border-radius: 50%;
}

.toast.error::before {
  background: #d98a82;
}

.system-runtime-title {
  min-height: 88px;
}

.system-runtime-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.system-runtime-status-attention {
  color: var(--red);
  background: var(--red-soft);
  border-color: #e1c9c6;
}

.system-runtime-content {
  min-width: 0;
}

.system-monitoring-summary > div {
  border-top: 3px solid transparent;
}

.system-monitoring-summary > div.monitoring-status-healthy {
  border-top-color: var(--green-600);
  background: #f7fbf9;
}

.system-monitoring-summary > div.monitoring-status-attention {
  border-top-color: #c28b32;
  background: #fffaf0;
}

.system-monitoring-summary > div.monitoring-status-degraded {
  border-top-color: var(--red);
  background: #fff8f7;
}

.system-monitoring-summary > div.monitoring-status-unavailable {
  border-top-color: #929b97;
  background: #f6f7f6;
}

.system-monitoring-summary > div.monitoring-status-critical {
  border-top-color: var(--red);
  background: #fff8f7;
}

.system-monitoring-summary > div.monitoring-status-unknown {
  border-top-color: #929b97;
  background: #f6f7f6;
}

.monitoring-status-attention {
  color: #8a5a0e;
  background: #fff4d8;
  border-color: #ead19b;
}

.monitoring-status-critical {
  color: var(--red);
  background: var(--red-soft);
  border-color: #e1c9c6;
}

.monitoring-status-degraded {
  color: var(--red);
  background: var(--red-soft);
  border-color: #e1c9c6;
}

.monitoring-status-unavailable {
  color: #616966;
  background: #eef1ef;
  border-color: #d5dbd7;
}

.monitoring-status-unknown {
  color: #616966;
  background: #eef1ef;
  border-color: #d5dbd7;
}

.monitoring-alerts-block {
  border-bottom: 1px solid var(--line);
}

.monitoring-alerts-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.monitoring-alert-filters,
.monitoring-alert-filter-buttons {
  display: flex;
  align-items: center;
  gap: 7px;
}

.monitoring-severity-filter {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
}

.monitoring-severity-filter select {
  min-height: 34px;
  padding: 0 28px 0 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.monitoring-alert-table-wrap {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.monitoring-alert-table {
  min-width: 960px;
}

.monitoring-alert-table td {
  vertical-align: top;
}

.monitoring-alert-content,
.monitoring-alert-impact,
.monitoring-alert-time,
.monitoring-alert-acknowledgement {
  min-width: 0;
}

.monitoring-alert-content strong,
.monitoring-alert-content small,
.monitoring-alert-impact strong,
.monitoring-alert-impact small,
.monitoring-alert-time strong,
.monitoring-alert-time small,
.monitoring-alert-acknowledgement small {
  display: block;
  overflow-wrap: anywhere;
}

.monitoring-alert-content strong,
.monitoring-alert-impact strong,
.monitoring-alert-time strong {
  color: var(--ink);
  font-size: 11px;
  line-height: 1.55;
}

.monitoring-alert-content small,
.monitoring-alert-impact small,
.monitoring-alert-time small,
.monitoring-alert-acknowledgement small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.monitoring-severity-badge.severity-critical,
.monitoring-unacknowledged {
  color: var(--red);
  background: var(--red-soft);
  border-color: #e1c9c6;
}

.monitoring-severity-badge.severity-warning {
  color: #8a5a0e;
  background: #fff4d8;
  border-color: #ead19b;
}

.monitoring-severity-badge.severity-info {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: #cbdde7;
}

.monitoring-acknowledged {
  color: var(--green-800);
  background: var(--green-050);
  border-color: #cfe0d8;
}

.monitoring-alert-action {
  width: 150px;
}

.monitoring-alert-acknowledge-button {
  width: 100%;
  min-height: 40px;
  white-space: normal;
}

.monitoring-alert-empty {
  min-height: 96px;
  margin: 0;
  border: 1px dashed var(--line);
}

.monitoring-alert-acknowledge-dialog {
  width: min(560px, calc(100vw - 28px));
}

.monitoring-alert-acknowledge-warning {
  padding: 11px 12px;
  color: #7d5415;
  background: #fff8e7;
  border: 1px solid #ead6a9;
  border-radius: 4px;
  font-size: 11px;
  line-height: 1.6;
}

.monitoring-alert-acknowledge-summary {
  margin-bottom: 14px;
}

.monitoring-alert-acknowledge-summary dd {
  max-width: 340px;
  font-weight: 500;
  line-height: 1.55;
}

.monitoring-alert-acknowledge-dialog textarea {
  width: 100%;
  resize: vertical;
}

.system-runtime-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fafcfb;
  border-bottom: 1px solid var(--line);
}

.system-runtime-metrics > div {
  min-width: 0;
  min-height: 104px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 15px 18px;
  border-right: 1px solid var(--line);
}

.system-runtime-metrics > div:last-child {
  border-right: 0;
}

.system-runtime-metrics span,
.system-runtime-metrics small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.system-runtime-metrics span {
  font-weight: 700;
}

.system-runtime-metrics strong {
  color: var(--ink);
  font-size: 19px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.system-runtime-metrics > div.has-alert {
  box-shadow: inset 0 3px var(--red);
  background: #fffafa;
}

.system-runtime-metrics > div.has-alert strong,
.system-runtime-metrics > div.has-alert small {
  color: var(--red);
}

.system-runtime-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.system-runtime-block {
  min-width: 0;
  padding: 18px;
}

.system-runtime-block + .system-runtime-block {
  border-left: 1px solid var(--line);
}

.system-runtime-block-heading h3 {
  margin: 0;
  font-size: 14px;
}

.system-runtime-block-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.system-runtime-list {
  margin: 14px 0 0;
  border-top: 1px solid var(--line);
}

.system-runtime-list > div {
  min-width: 0;
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(96px, auto);
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #edf0ee;
}

.system-runtime-list dt,
.system-runtime-list dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 11px;
}

.system-runtime-list dt {
  color: var(--muted);
}

.system-runtime-list dd {
  color: var(--ink);
  font-weight: 700;
  text-align: right;
}

.system-runtime-list > div.has-alert dt,
.system-runtime-list > div.has-alert dd {
  color: var(--red);
}

.system-runtime-feature-state {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  justify-content: center;
  justify-self: end;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.system-runtime-feature-state.state-enabled {
  color: var(--green-800);
  background: var(--green-050);
  border-color: #cfe0d8;
}

.system-runtime-feature-state.state-simulated {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: #cbdde7;
}

.system-runtime-feature-state.state-disabled {
  color: #6a716e;
  background: #f1f3f2;
}

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

@keyframes shimmer {
  to { background-position: -200% 0; }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 196px minmax(0, 1fr);
  }

  .workspace {
    grid-template-columns: 275px minmax(0, 1fr);
    gap: 14px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .metric-strip strong {
    font-size: 20px;
  }

  .metric-strip article {
    padding-right: 14px;
    padding-left: 14px;
  }

  .payout-summary-metric {
    padding-right: 12px;
    padding-left: 12px;
  }

  .channel-return-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .channel-return-summary > div:nth-child(3n) { border-right: 0; }
  .channel-return-summary > div:nth-child(-n + 3) { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
  .channel-return-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 940px) {
  .operator-login-view {
    grid-template-rows: 62px minmax(0, 1fr);
  }

  .operator-login-brand {
    min-height: 62px;
    padding: 0 16px;
  }

  .operator-login-main {
    align-items: start;
    padding: 28px 16px 48px;
  }

  .operator-login-form {
    padding: 26px 20px;
  }

  .app-shell {
    display: block;
  }

  .channel-finance-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .channel-finance-summary > div:nth-child(3n) { border-right: 0; }
  .channel-finance-summary > div:nth-child(-n + 3) { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 64px;
    display: grid;
    grid-template-columns: 185px minmax(0, 1fr) 180px;
    align-items: center;
  }

  .brand-lockup {
    min-height: 64px;
    padding-left: 14px;
    border-bottom: 0;
  }

  .brand-logo { width: 48px; height: 40px; padding: 2px; }

  .brand-lockup strong {
    font-size: 16px;
  }

  .side-nav {
    min-width: 0;
    flex-direction: row;
    justify-content: center;
    gap: 3px;
    padding: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .side-nav::-webkit-scrollbar {
    display: none;
  }

  .side-nav a {
    min-height: 38px;
    flex: 0 0 auto;
    grid-template-columns: 20px auto;
    padding: 0 8px;
    font-size: 10px;
  }

  .side-nav a.active::before {
    display: none;
  }

  .nav-symbol {
    width: 18px;
    font-size: 14px;
  }

  .sidebar-foot {
    padding: 8px 12px 8px 0;
    border-top: 0;
  }

  .sidebar-foot p {
    display: none;
  }

  .connection-button {
    min-height: 44px;
  }

  .topbar {
    min-height: 76px;
    padding-right: 18px;
    padding-left: 18px;
  }

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

  .campaign-rail {
    position: static;
    max-height: none;
  }

  .campaign-list {
    max-height: 310px;
  }

  .campaign-item {
    min-height: 82px;
  }

  .channel-organization-layout {
    grid-template-columns: 1fr;
  }

  .channel-organization-layout > div:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .system-runtime-metrics > div:nth-child(2n) {
    border-right: 0;
  }

  .system-runtime-metrics > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .monitoring-alerts-heading,
  .monitoring-alert-filters {
    align-items: stretch;
    flex-direction: column;
  }

  .monitoring-alert-filter-buttons .filter-button {
    flex: 1;
  }

  .monitoring-severity-filter select {
    flex: 1;
  }
}

@media (max-width: 680px) {
  .executive-overview-title,
  .executive-overview-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .executive-overview-actions {
    width: 100%;
  }

  .executive-overview-actions .secondary-button {
    width: 100%;
  }

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

  .executive-metric:nth-child(2n) {
    border-right: 0;
  }

  .executive-metric:nth-child(n + 3) {
    border-top: 1px solid #e8ece9;
  }

  .sidebar {
    grid-template-columns: 1fr auto;
  }

  .side-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }

  .sidebar-foot {
    padding-right: 10px;
  }

  .connection-button {
    width: 47px;
    grid-template-columns: 1fr;
    padding: 8px;
  }

  .connection-button > span:not(:first-child) {
    display: none;
  }

  .connection-dot {
    margin: auto;
  }

  .system-runtime-title,
  .system-runtime-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .system-runtime-actions {
    width: 100%;
  }

  .system-runtime-actions .secondary-button {
    width: 100%;
  }

  .system-runtime-detail-grid {
    grid-template-columns: 1fr;
  }

  .system-runtime-block + .system-runtime-block {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .system-runtime-metrics strong {
    font-size: 16px;
  }

  .monitoring-alert-table-wrap {
    overflow: visible;
    border: 0;
  }

  .monitoring-alert-table {
    min-width: 0;
  }

  .monitoring-alert-table thead {
    display: none;
  }

  .monitoring-alert-table tbody,
  .monitoring-alert-table tr,
  .monitoring-alert-table td {
    display: block;
    width: 100%;
  }

  .monitoring-alert-table tr {
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-left: 3px solid #c28b32;
    border-radius: 5px;
    background: var(--white);
  }

  .monitoring-alert-table tr.severity-critical {
    border-left-color: var(--red);
  }

  .monitoring-alert-table tr.severity-info {
    border-left-color: var(--blue);
  }

  .monitoring-alert-table td {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 10px;
    padding: 8px 0;
    border: 0;
    border-bottom: 1px solid #edf0ee;
  }

  .monitoring-alert-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
  }

  .monitoring-alert-table td:last-child {
    border-bottom: 0;
  }

  .monitoring-alert-action,
  .monitoring-alert-acknowledge-button {
    width: 100%;
  }

  .monitoring-alert-acknowledge-button {
    min-height: 44px;
  }

  .topbar {
    align-items: flex-start;
    padding: 14px;
  }

  .topbar h1 {
    max-width: 178px;
    font-size: 17px;
  }

  .last-updated {
    display: none;
  }

  .topbar-actions {
    gap: 6px;
  }

  .topbar-actions .primary-button {
    width: 36px;
    padding: 0;
    overflow: hidden;
    color: transparent;
    font-size: 0;
    white-space: nowrap;
  }

  .topbar-actions .primary-button span {
    color: white;
    font-size: 18px;
  }

  .global-notice {
    align-items: flex-start;
    margin: 12px 12px 0;
    padding: 11px;
  }

  .global-notice .secondary-button {
    min-width: 78px;
    padding: 0 8px;
  }

  .workspace {
    gap: 12px;
    padding: 12px 12px 28px;
  }

  .admin-workspace {
    margin: 12px 12px 28px;
  }

  .payout-section-title {
    flex-direction: column;
  }

  .store-verification-title,
  .store-account-heading,
  .channel-commerce-title,
  .channel-panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .channel-overview-tasks button {
    min-height: 72px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 6px;
    padding: 10px;
  }

  .channel-overview-tasks strong {
    font-size: 18px;
  }

  #channel-overview-inventory-button {
    width: 100%;
  }

  .channel-overview-table-wrap {
    overflow-x: visible;
    padding: 10px;
    background: #f7faf8;
  }

  .channel-overview-table {
    min-width: 0;
    display: block;
  }

  .channel-overview-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .channel-overview-table tbody {
    display: grid;
    gap: 10px;
  }

  .channel-overview-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    background: white;
    border: 1px solid var(--line);
    border-radius: 6px;
  }

  .channel-overview-table td {
    min-width: 0;
    display: block;
    padding: 10px 12px;
    white-space: normal;
    border-bottom: 1px solid var(--line);
  }

  .channel-overview-table td:nth-child(3),
  .channel-overview-table td:nth-child(5),
  .channel-overview-table td:nth-child(7) {
    border-left: 1px solid var(--line);
  }

  .channel-overview-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
  }

  .channel-overview-table .channel-overview-organization,
  .channel-overview-table .channel-overview-todo,
  .channel-overview-table td.align-right {
    grid-column: 1 / -1;
  }

  .channel-overview-table .channel-overview-organization {
    padding-left: calc(12px + var(--organization-depth, 0) * 8px);
  }

  .channel-overview-table .channel-overview-type {
    min-width: 0;
  }

  .channel-overview-table td.align-right {
    border-bottom: 0;
  }

  .channel-overview-table td.align-right .table-action {
    width: 100%;
  }

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

  .channel-return-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channel-return-summary > div { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
  .channel-return-summary > div:nth-child(2n) { border-right: 0; }
  .channel-return-summary > div:nth-child(3n) { border-right: 1px solid rgba(255, 255, 255, 0.14); }
  .channel-return-summary > div:last-child { border-right: 0; border-bottom: 0; }
  .channel-return-filters { grid-template-columns: 1fr; }
  .return-attention-filter { padding: 0; }
  .return-detail-meta,
  .return-finance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .return-detail-meta > div:nth-child(2n),
  .return-finance-grid > div:nth-child(2n) { border-right: 0; }
  .return-detail-meta > div:nth-child(-n + 2),
  .return-finance-grid > div:not(:nth-last-child(-n + 2)) { border-bottom: 1px solid var(--line); }
  .return-logistics-grid,
  .return-detail-split { grid-template-columns: 1fr; }
  .return-logistics-grid > div:first-child,
  .return-detail-split > div:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .return-detail-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .return-detail-actions > span:first-child { display: none; }
  .return-detail-actions button { width: 100%; }

  .channel-order-detail-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channel-order-detail-meta > div,
  .channel-order-detail-meta > div:nth-child(4n) { border-right: 1px solid var(--line); }
  .channel-order-detail-meta > div:nth-child(2n),
  .channel-order-detail-meta > div:last-child { border-right: 0; }
  .channel-order-detail-meta > div.wide { grid-column: 1 / -1; border-right: 0; }

  .channel-finance-summary > div { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
  .channel-finance-summary > div:nth-child(2n) { border-right: 0; }
  .channel-finance-summary > div:last-child { border-bottom: 0; }

  .channel-summary > div:nth-child(2n) {
    border-right: 0;
  }

  .channel-summary > div:nth-child(-n + 4) {
    border-bottom: 1px solid var(--line);
  }

  .channel-summary > div:last-child {
    border-right: 0;
  }

  .channel-panel-heading .primary-button,
  .channel-commerce-title .secondary-button,
  .channel-panel-tools {
    width: 100%;
  }

  .channel-panel-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .channel-panel-tools select,
  .channel-panel-tools button {
    width: 100%;
  }

  #refresh-code-trace-button {
    width: 100%;
  }

  #code-trace-policy-table-wrap {
    overflow-x: visible;
    padding: 10px;
    background: #f7faf8;
  }

  .code-trace-policy-table {
    min-width: 0;
    display: block;
  }

  .code-trace-policy-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .code-trace-policy-table tbody {
    display: grid;
    gap: 10px;
  }

  .code-trace-policy-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    background: white;
    border: 1px solid var(--line);
    border-radius: 6px;
  }

  .code-trace-policy-table td {
    min-width: 0;
    min-height: 58px;
    display: block;
    padding: 10px 12px;
    overflow-wrap: anywhere;
    white-space: normal;
    border-bottom: 1px solid var(--line);
  }

  .code-trace-policy-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
  }

  .code-trace-policy-table td:first-child,
  .code-trace-policy-table td:nth-child(2),
  .code-trace-policy-table td:last-child {
    grid-column: 1 / -1;
  }

  .code-trace-policy-table td:nth-child(4),
  .code-trace-policy-table td:nth-child(6) {
    border-left: 1px solid var(--line);
  }

  .code-trace-policy-table td:last-child {
    border-bottom: 0;
  }

  .code-trace-policy-editor,
  .code-trace-policy-table td:last-child .table-action {
    width: 100%;
  }

  .code-trace-workspace-heading {
    align-items: flex-start;
    padding: 12px;
  }

  .code-trace-query-form {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .code-trace-query-form button {
    width: 100%;
  }

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

  .code-trace-summary > div,
  .code-trace-summary > div:nth-child(4n) {
    padding: 11px 12px;
    border-right: 1px solid var(--line);
  }

  .code-trace-summary > div:nth-child(2n) {
    border-right: 0;
  }

  .code-trace-timeline {
    padding-right: 12px;
    padding-left: 12px;
  }

  .code-trace-timeline li {
    grid-template-columns: 1fr;
    gap: 5px;
    padding-left: 22px;
  }

  .code-trace-timeline li small {
    white-space: normal;
  }

  .batch-mode-fields {
    grid-template-columns: 1fr;
  }

  .batch-field-note,
  .batch-mode-fields .full-field {
    grid-column: auto;
  }

  .channel-warehouse-block-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .channel-warehouse-heading-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .channel-warehouse-heading-actions .channel-warehouse-filter {
    min-width: 0;
    flex: 1 1 150px;
  }

  .channel-warehouse-heading-actions .primary-button {
    flex: 0 0 auto;
  }

  .channel-warehouse-block-heading > .channel-warehouse-filter {
    width: 100%;
  }

  .channel-inventory-transfer-detail-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .channel-inventory-transfer-detail-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .channel-inventory-transfer-detail-summary > div {
    min-height: 72px;
    padding: 11px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .channel-inventory-transfer-detail-summary > div:nth-child(2n) {
    border-right: 0;
  }

  .channel-inventory-transfer-detail-summary > div:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  .channel-inventory-transfer-detail-meta > div,
  .channel-inventory-transfer-detail-meta > div:nth-last-child(-n + 3) {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .channel-inventory-transfer-detail-meta > div:nth-child(2n),
  .channel-inventory-transfer-detail-meta > div:last-child {
    border-right: 0;
  }

  .channel-inventory-transfer-detail-meta > div:last-child {
    border-bottom: 0;
  }

  .channel-inventory-transfer-detail-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .channel-inventory-transfer-detail-actions button {
    width: 100%;
    min-width: 0;
  }

  .channel-inventory-transfer-shipment-heading,
  .channel-inventory-transfer-detail-shipment-heading {
    flex-direction: column;
  }

  .channel-inventory-transfer-receipt-card,
  .channel-inventory-transfer-shipment-receipt {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-inventory-transfer-shipment-pending-intent {
    align-items: flex-start;
    flex-direction: column;
  }

  .channel-inventory-transfer-shipment-item-field {
    grid-template-columns: minmax(0, 1fr) 94px;
    gap: 8px;
  }

  .channel-inventory-transfer-shipment-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .channel-inventory-transfer-shipment-actions > span {
    display: none;
  }

  .channel-inventory-transfer-shipment-actions button {
    width: 100%;
  }

  .stocktake-review-heading { align-items: flex-start; flex-direction: column; }
  .stocktake-review-tools {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stocktake-review-tools select { width: 100%; min-width: 0; }
  .stocktake-review-tools #channel-stocktake-count {
    grid-column: 1 / -1;
    justify-self: end;
  }
  .stocktake-review-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stocktake-review-meta > div:nth-child(2n) { border-right: 0; }
  .stocktake-review-meta > div:nth-child(-n + 4) { border-bottom: 1px solid var(--line); }
  .stocktake-review-meta > div:last-child {
    grid-column: 1 / -1;
    border-right: 0;
  }

  .inventory-policy-actions {
    grid-template-columns: 1fr 1fr;
  }

  .inventory-policy-actions > span {
    display: none;
  }

  .inventory-policy-actions .danger-text {
    width: 100%;
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .channel-price-form {
    grid-template-columns: 1fr;
  }

  .pricing-inline-form,
  .pricing-assignment-form,
  .pricing-policy-fields {
    grid-template-columns: 1fr;
  }

  .pricing-inline-form .primary-button,
  .pricing-inline-form .secondary-button,
  .pricing-assignment-form .primary-button,
  .pricing-policy-actions .primary-button {
    width: 100%;
  }

  .pricing-policy-actions {
    grid-template-columns: 1fr;
  }

  .pricing-policy-actions > span {
    display: none;
  }

  .channel-price-form .primary-button {
    width: 100%;
  }

  .organization-node {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    margin-left: calc(var(--organization-depth) * 10px);
  }

  .organization-node .status-badge {
    display: none;
  }

  .store-verification-tools {
    width: 100%;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
  }

  .store-verification-tools input {
    grid-column: 1 / -1;
  }

  .store-verification-tools #clear-store-verification-search-button,
  .store-verification-tools #export-store-verifications-button,
  .store-verification-tools .count-label {
    grid-column: auto;
  }

  .store-verification-overview-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .store-verification-overview-heading > span {
    max-width: 100%;
  }

  .store-verification-overview-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .store-verification-overview-metrics > div {
    min-height: 72px;
    padding: 10px 12px;
  }

  .store-verification-overview-metrics > div:nth-child(2) {
    border-right: 0;
  }

  .store-verification-overview-metrics > div:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid #e8ece9;
  }

  .store-verification-overview-table-wrap {
    overflow-x: visible;
    padding: 10px;
    background: #f7faf8;
  }

  .store-verification-overview-table {
    min-width: 0;
    display: block;
  }

  .store-verification-overview-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .store-verification-overview-table tbody {
    display: grid;
    gap: 8px;
  }

  .store-verification-overview-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    background: white;
    border: 1px solid var(--line);
    border-radius: 6px;
  }

  .store-verification-overview-table td {
    min-width: 0;
    height: auto;
    min-height: 54px;
    display: block;
    padding: 9px 11px;
    overflow-wrap: anywhere;
    white-space: normal;
    border-bottom: 1px solid var(--line);
  }

  .store-verification-overview-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
  }

  .store-verification-overview-table td:first-child,
  .store-verification-overview-table td:last-child {
    grid-column: 1 / -1;
  }

  .store-verification-overview-table td:nth-child(3) {
    border-left: 1px solid var(--line);
  }

  .store-verification-overview-table td:last-child {
    border-bottom: 0;
  }

  .store-account-heading .secondary-button {
    width: 100%;
  }

  .payout-heading-actions {
    width: 100%;
    justify-content: space-between;
  }

  .payout-summary-heading {
    align-items: flex-start;
  }

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

  .payout-summary-metric {
    min-height: 76px;
    border-bottom: 1px solid #e8ece9;
  }

  .payout-summary-metric:nth-child(2n) {
    border-right: 0;
  }

  .payout-summary-metric:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  .payout-exception-heading {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .payout-exception-heading .text-button {
    grid-column: 2;
    justify-self: start;
    padding: 0;
  }

  .payout-exception-item {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .payout-exception-item .table-action {
    grid-column: 2;
    justify-self: start;
  }

  .payout-attempt-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }

  .payout-attempt-context {
    grid-template-columns: 1fr;
  }

  .payout-attempt-context > div {
    min-height: 52px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .payout-attempt-context > div:last-child {
    border-bottom: 0;
  }

  .payout-attempt-list {
    padding-right: 17px;
    padding-left: 17px;
  }

  .payout-health-heading,
  .payout-bill-heading,
  .payout-difference-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .payout-health-runtime > div:nth-child(2) {
    border-right: 0;
  }

  .payout-health-runtime > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .payout-health-runtime > div:nth-child(3) {
    padding-left: 0;
  }

  .payout-health-grid .payout-health-metric:nth-child(even) {
    border-right: 0;
  }

  .payout-health-grid .payout-health-metric:nth-child(-n + 4) {
    border-bottom: 1px solid var(--line);
  }

  .payout-health-grid .payout-health-metric:last-child {
    grid-column: 1 / -1;
  }

  .payout-bill-controls,
  .payout-bill-reconcile-form,
  .payout-difference-filters {
    width: 100%;
  }

  .payout-bill-controls {
    align-items: stretch;
    justify-content: flex-start;
  }

  .payout-bill-reconcile-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .payout-bill-reconcile-form label {
    grid-column: 1 / -1;
  }

  .payout-bill-reconcile-form input,
  .payout-bill-reconcile-form .primary-button {
    width: 100%;
  }

  .payout-difference-filters .filter-button {
    flex: 1;
  }

  .payout-difference-dialog > form > label {
    margin-right: 17px;
    margin-left: 17px;
  }

  .campaign-detail {
    min-height: 560px;
  }

  .detail-placeholder,
  .detail-loading,
  .error-state {
    min-height: 560px;
  }

  .campaign-heading {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 16px;
  }

  .campaign-heading h2 {
    font-size: 19px;
  }

  .campaign-actions {
    width: 100%;
  }

  .campaign-actions button {
    flex: 1;
  }

  .campaign-maintenance-strip {
    grid-template-columns: 1fr;
    padding: 12px 16px;
  }

  .campaign-maintenance-lock {
    grid-column: auto;
  }

  .campaign-maintenance-form-grid,
  .replenishment-summary {
    grid-template-columns: 1fr;
  }

  .replenishment-summary {
    margin-right: 16px;
    margin-left: 16px;
  }

  .maintenance-dialog-note,
  .maintenance-dialog-warning {
    margin-right: 16px;
    margin-left: 16px;
  }

  .cash-budget-strip {
    grid-template-columns: 1fr;
  }

  .cash-budget-strip article {
    min-height: 76px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .cash-budget-progress-row {
    grid-template-columns: 1fr auto;
    padding-right: 16px;
    padding-left: 16px;
  }

  .cash-budget-progress-row progress {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .campaign-operations-heading {
    flex-direction: column;
  }

  .campaign-operations-period-switch {
    width: 100%;
  }

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

  .campaign-operations-metric-button {
    min-height: 86px;
    padding: 12px 14px;
  }

  .campaign-operations-metrics strong {
    font-size: 19px;
  }

  .campaign-operations-detail-grid {
    grid-template-columns: 1fr;
  }

  .campaign-operations-block + .campaign-operations-block {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .campaign-operations-block-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .campaign-operations-block-heading > span {
    max-width: none;
    text-align: left;
  }

  .campaign-operations-cash-statuses {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .campaign-operations-cash-statuses > button:last-child {
    grid-column: 1 / -1;
  }

  .campaign-rule-section .section-title,
  .campaign-rule-current {
    align-items: stretch;
    flex-direction: column;
  }

  .campaign-rule-section .section-title .secondary-button {
    width: 100%;
  }

  .campaign-rule-current {
    min-height: 104px;
    gap: 10px;
    padding: 14px;
  }

  .campaign-rule-current .status-badge {
    align-self: flex-start;
  }

  .campaign-rule-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }

  .drilldown-scope {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    margin: 10px 12px;
  }

  .drilldown-scope .secondary-button {
    width: 100%;
  }

  .metric-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-strip article {
    min-height: 92px;
  }

  .metric-strip strong {
    font-size: 19px;
  }

  .section-title {
    min-height: 92px;
    align-items: flex-start;
    padding: 14px;
  }

  .section-title .secondary-button {
    min-width: 36px;
    padding: 0 9px;
  }

  th,
  td {
    padding-right: 12px;
    padding-left: 12px;
  }

  .dialog-heading {
    padding-right: 17px;
    padding-left: 17px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    padding-right: 17px;
    padding-left: 17px;
  }

  .channel-return-request-order-row {
    grid-template-columns: 1fr;
  }

  .channel-return-request-order-row .secondary-button {
    width: 100%;
  }

  .channel-return-request-selection-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .channel-return-request-item {
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
  }

  .channel-return-request-quantity {
    grid-column: 2;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 88px;
    align-items: center;
  }

  .cash-budget-summary {
    margin-right: 17px;
    margin-left: 17px;
  }

  .order-item-row {
    grid-template-columns: minmax(0, 1fr) 86px 36px;
  }

  .pricing-tier-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 36px;
  }

  .channel-order-quote-heading,
  .channel-order-quote-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .channel-order-quote-item span:last-child {
    flex: 1 1 auto;
  }

  .shipment-logistics-grid {
    grid-template-columns: 1fr;
  }

  .full-field {
    grid-column: auto;
  }

  .form-error,
    .security-warning,
    .export-summary,
    .confirm-check,
    .export-file-verification,
    .export-action-status {
    margin-right: 17px;
    margin-left: 17px;
  }

  .export-summary dd {
    overflow: visible;
    overflow-wrap: anywhere;
    padding: 8px 0;
    text-overflow: clip;
    white-space: normal;
  }

  .dialog-actions {
    padding-right: 17px;
    padding-left: 17px;
  }

  .export-actions {
    grid-template-columns: 1fr;
  }

  .export-file-verification {
    grid-template-columns: 1fr;
  }

  .file-verify-button {
    width: 100%;
  }

  .export-actions span {
    display: none;
  }

  .export-actions button {
    width: 100%;
  }

  .toast-region {
    right: 12px;
    bottom: 12px;
    left: 12px;
    align-items: stretch;
  }

  .toast {
    min-width: 0;
    max-width: none;
  }
}

@media (max-width: 420px) {
  .system-runtime-metrics {
    grid-template-columns: 1fr;
  }

  .system-runtime-metrics > div,
  .system-runtime-metrics > div:nth-child(2n) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .system-runtime-metrics > div:last-child {
    border-bottom: 0;
  }

  .monitoring-alert-filter-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .monitoring-alert-table td {
    grid-template-columns: 1fr;
  }
}

.operator-code-stocktake-heading { align-items: flex-start; }
.operator-code-stocktake-heading > div { min-width: 0; }
.operator-code-stocktake-readonly {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 24px 14px;
  padding: 11px 13px;
  color: #554b31;
  background: #f8f1df;
  border: 1px solid #ddcca0;
  border-radius: 5px;
  font-size: 12px;
}
.operator-code-stocktake-readonly span { color: #73684c; }
.operator-code-stocktake-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 24px 16px;
  overflow: hidden;
  background: #dfe6e2;
  border: 1px solid #dfe6e2;
  border-radius: 6px;
}
.operator-code-stocktake-summary > div { min-width: 0; padding: 13px 14px; background: #f7faf8; }
.operator-code-stocktake-summary span,
.operator-code-stocktake-summary strong { display: block; }
.operator-code-stocktake-summary span { color: var(--muted); font-size: 11px; }
.operator-code-stocktake-summary strong { margin-top: 5px; font-size: 19px; }
.operator-code-stocktake-filter-form,
.operator-code-stocktake-report-filter-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr)) auto auto;
  align-items: end;
  gap: 10px;
  margin: 0 24px 16px;
}
.operator-code-stocktake-report-filter-form {
  grid-template-columns: repeat(2, minmax(160px, 1fr)) auto;
  margin: 14px 0;
}
.operator-code-stocktake-filter-form label,
.operator-code-stocktake-report-filter-form label { min-width: 0; }
.operator-code-stocktake-filter-form label > span,
.operator-code-stocktake-report-filter-form label > span,
.operator-code-stocktake-review-form label > span,
.operator-code-stocktake-calibration-form label > span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}
.operator-code-stocktake-table-wrap { margin: 0 24px; }
.operator-code-stocktake-table { min-width: 940px; }
.operator-code-stocktake-table td:first-child { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.operator-code-stocktake-panel > .redemption-pagination { margin: 12px 24px 0; }
.operator-code-stocktake-detail {
  margin: 22px 24px 0;
  padding-top: 20px;
  border-top: 1px solid #dfe6e2;
  scroll-margin-top: 88px;
}
.operator-code-stocktake-detail-heading,
.operator-code-stocktake-block-heading,
.operator-code-stocktake-report-item-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.operator-code-stocktake-detail-heading > div { min-width: 0; }
.operator-code-stocktake-block-heading > div { min-width: 0; }
.operator-code-stocktake-export-button { flex: 0 0 auto; white-space: nowrap; }
.operator-code-stocktake-export-button span { margin-right: 4px; font-size: 14px; line-height: 1; }
.operator-code-stocktake-detail-heading h3 { margin: 7px 0 3px; overflow-wrap: anywhere; font-size: 19px; }
.operator-code-stocktake-detail-heading p,
.operator-code-stocktake-block-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.operator-code-stocktake-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 16px 0 0;
  overflow: hidden;
  background: #dfe6e2;
  border: 1px solid #dfe6e2;
  border-radius: 5px;
}
.operator-code-stocktake-meta > div { min-width: 0; padding: 12px; background: #f7faf8; }
.operator-code-stocktake-meta dt { color: var(--muted); font-size: 10px; }
.operator-code-stocktake-meta dd { margin: 5px 0 0; overflow-wrap: anywhere; font-size: 12px; font-weight: 700; }
.operator-code-stocktake-detail-scope { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.operator-code-stocktake-detail-scope span {
  max-width: 100%;
  padding: 5px 8px;
  overflow: hidden;
  color: #285647;
  background: #edf5f1;
  border: 1px solid #d5e5de;
  border-radius: 4px;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.operator-code-stocktake-report,
.operator-code-stocktake-events,
.operator-code-stocktake-review-form,
.operator-code-stocktake-reviewed-result,
.operator-code-stocktake-calibration { margin-top: 20px; padding-top: 18px; border-top: 1px solid #e2e8e4; }
.operator-code-stocktake-block-heading h4,
.operator-code-stocktake-review-form h4,
.operator-code-stocktake-calibration h4 { margin: 0; font-size: 15px; }
.operator-code-stocktake-calibration h5,
.operator-code-stocktake-calibration-form h5 { margin: 0; font-size: 13px; }
.operator-code-stocktake-review-form > div > p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.operator-code-stocktake-report-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 13px;
  overflow: hidden;
  background: #dfe6e2;
  border: 1px solid #dfe6e2;
  border-radius: 5px;
}
.operator-code-stocktake-report-metric {
  min-width: 0;
  min-height: 67px;
  padding: 10px 11px;
  color: var(--ink);
  background: white;
  border: 0;
  text-align: left;
}
.operator-code-stocktake-report-metric span,
.operator-code-stocktake-report-metric strong { display: block; }
.operator-code-stocktake-report-metric span { color: var(--muted); font-size: 10px; }
.operator-code-stocktake-report-metric strong { margin-top: 4px; font-size: 17px; }
.operator-code-stocktake-report-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.operator-code-stocktake-report-item { min-width: 0; padding: 12px 13px; background: white; border: 1px solid #dfe6e2; border-left: 4px solid #4e7b6d; border-radius: 4px; }
.operator-code-stocktake-report-item.classification-unknown,
.operator-code-stocktake-report-item.classification-wrong_warehouse,
.operator-code-stocktake-report-item.classification-wrong_product { border-left-color: #a6524b; }
.operator-code-stocktake-report-item.classification-missing_expected { border-left-color: #a27d38; }
.operator-code-stocktake-report-item-heading strong { font-size: 12px; }
.operator-code-stocktake-report-item-heading span { min-width: 0; overflow-wrap: anywhere; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; text-align: right; }
.operator-code-stocktake-report-item p { margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.operator-code-stocktake-events ol { display: grid; gap: 0; margin: 12px 0; padding: 0; list-style: none; }
.operator-code-stocktake-events li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; padding: 10px 0; border-bottom: 1px solid #edf0ee; }
.operator-code-stocktake-events li strong,
.operator-code-stocktake-events li span { display: block; }
.operator-code-stocktake-events li strong { font-size: 12px; }
.operator-code-stocktake-events li span,
.operator-code-stocktake-events li time { margin-top: 3px; color: var(--muted); font-size: 10px; }
.operator-code-stocktake-review-form { display: grid; grid-template-columns: minmax(180px, 0.45fr) minmax(180px, 0.55fr) minmax(260px, 1fr) auto; align-items: end; gap: 12px; }
.operator-code-stocktake-review-note { min-width: 0; }
.operator-code-stocktake-review-note textarea { min-height: 70px; resize: vertical; }
.operator-code-stocktake-review-form .form-error { grid-column: 1 / -1; margin: 0; }
.operator-code-stocktake-reviewed-result { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 16px; }
.operator-code-stocktake-reviewed-result strong { color: #285647; font-size: 13px; }
.operator-code-stocktake-reviewed-result span { grid-row: 2; color: var(--muted); font-size: 11px; }
.operator-code-stocktake-reviewed-result time { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--muted); font-size: 10px; }
.operator-code-stocktake-calibration > .inline-loading,
.operator-code-stocktake-calibration > .inline-error { margin-top: 13px; }
.operator-code-stocktake-calibration-readonly {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 13px;
  padding: 10px 12px;
  color: #554b31;
  background: #f8f1df;
  border: 1px solid #ddcca0;
  border-radius: 5px;
  font-size: 11px;
}
.operator-code-stocktake-calibration-readonly span { color: #73684c; }
.calibration-status-ready { color: #285647; background: #e4f1eb; }
.calibration-status-blocked,
.calibration-status-stale { color: #8d3f39; background: #f8e8e6; }
.calibration-status-applied { color: #245c48; background: #dceee5; }
.calibration-status-not_ready { color: #6f6650; background: #f1ede2; }
.operator-code-stocktake-calibration-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 13px;
  overflow: hidden;
  background: #dfe6e2;
  border: 1px solid #dfe6e2;
  border-radius: 5px;
}
.operator-code-stocktake-calibration-summary > div { min-width: 0; padding: 11px 12px; background: #f7faf8; }
.operator-code-stocktake-calibration-summary span,
.operator-code-stocktake-calibration-summary strong { display: block; }
.operator-code-stocktake-calibration-summary span { color: var(--muted); font-size: 10px; }
.operator-code-stocktake-calibration-summary strong { margin-top: 4px; font-size: 17px; }
.operator-code-stocktake-calibration-lines-wrap,
.operator-code-stocktake-calibration-blockers-wrap { margin-top: 16px; }
.operator-code-stocktake-calibration-lines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.operator-code-stocktake-calibration-line { min-width: 0; padding: 12px 13px; background: white; border: 1px solid #dfe6e2; border-left: 4px solid #3f7461; border-radius: 4px; }
.operator-code-stocktake-calibration-line-heading { display: flex; justify-content: space-between; gap: 12px; }
.operator-code-stocktake-calibration-line-heading strong { min-width: 0; overflow-wrap: anywhere; font-size: 12px; }
.operator-code-stocktake-calibration-line-heading span { flex: 0 0 auto; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.operator-code-stocktake-calibration-line p { margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.operator-code-stocktake-calibration-line .operator-code-stocktake-calibration-quantity { color: #285647; font-weight: 700; }
.operator-code-stocktake-calibration-blockers { display: grid; gap: 7px; margin: 10px 0 0; padding: 0; list-style: none; }
.operator-code-stocktake-calibration-blockers li { padding: 10px 12px; background: #fff8f7; border: 1px solid #ead1ce; border-radius: 4px; }
.operator-code-stocktake-calibration-blockers strong,
.operator-code-stocktake-calibration-blockers span { display: block; }
.operator-code-stocktake-calibration-blockers strong { color: #8d3f39; font-size: 11px; }
.operator-code-stocktake-calibration-blockers span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.operator-code-stocktake-calibration-applied { margin-top: 15px; padding: 12px 13px; background: #edf6f1; border: 1px solid #cfe3d9; border-radius: 5px; }
.operator-code-stocktake-calibration-applied strong,
.operator-code-stocktake-calibration-applied span { display: block; }
.operator-code-stocktake-calibration-applied strong { color: #285647; font-size: 12px; }
.operator-code-stocktake-calibration-applied span,
.operator-code-stocktake-calibration-applied p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.operator-code-stocktake-calibration-form { display: grid; grid-template-columns: minmax(220px, 0.65fr) minmax(260px, 1fr) auto; align-items: end; gap: 12px; margin-top: 16px; padding: 14px; background: #f7faf8; border: 1px solid #dfe6e2; border-radius: 5px; }
.operator-code-stocktake-calibration-form > div > p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.operator-code-stocktake-calibration-form textarea { min-height: 70px; resize: vertical; }
.operator-code-stocktake-calibration-form .form-error { grid-column: 1 / -1; margin: 0; }

@media (max-width: 900px) {
  .executive-bi-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .executive-bi-summary article:nth-child(2n) {
    border-right: 0;
  }

  .executive-bi-summary article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .executive-bi-ranking-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .executive-retail-sell-out-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .executive-retail-sell-out-financial-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .executive-retail-sell-out-summary article:nth-child(2n) { border-right: 0; }
  .executive-retail-sell-out-summary article:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  }

  .executive-retail-sell-out-ranking-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .executive-bi {
    padding: 16px;
  }

  .executive-bi-heading,
  .executive-bi-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .executive-bi-actions {
    width: 100%;
    max-width: none;
  }

  .executive-bi-actions > small {
    text-align: left;
  }

  .executive-bi-window-switch {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .executive-bi-window-switch button,
  .executive-bi-export-menu summary,
  .executive-bi-export-options button {
    min-height: 44px;
  }

  .executive-bi-export-menu,
  .executive-bi-export-menu summary {
    width: 100%;
  }

  .executive-bi-export-menu summary {
    justify-content: center;
  }

  .executive-bi-export-options {
    position: static;
    width: 100%;
    margin-top: 6px;
    box-shadow: none;
  }

  .executive-bi-trend-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .executive-bi-panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .executive-bi-ranking-item {
    grid-template-columns: 28px minmax(0, 1fr) auto;
  }

  .executive-retail-sell-out { padding: 16px; }
  .executive-retail-sell-out-heading,
  .executive-retail-sell-out-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .executive-retail-sell-out-actions { width: 100%; max-width: none; }
  .executive-retail-sell-out-actions > small { text-align: left; }
  .executive-retail-sell-out-action-row { align-items: stretch; }
  .executive-retail-sell-out-action-row > .secondary-button,
  .executive-retail-sell-out-action-row > .executive-bi-export-menu { flex: 1 1 0; }
  .executive-retail-sell-out-action-row .secondary-button,
  .executive-retail-sell-out-action-row .executive-bi-export-menu summary { width: 100%; justify-content: center; }
  .executive-retail-sell-out-panel-heading { align-items: flex-start; flex-direction: column; }
  .executive-retail-sell-out-payment-grid { grid-template-columns: minmax(0, 1fr); }
  .executive-retail-sell-out-unit-strip { grid-template-columns: minmax(0, 1fr); }
  #executive-retail-sell-out-unit-totals { justify-content: flex-start; }
}

@media (max-width: 420px) {
  .executive-bi-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .executive-bi-summary article,
  .executive-bi-summary article:nth-child(2n) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .executive-bi-summary article:last-child {
    border-bottom: 0;
  }

  .executive-bi-ranking-item {
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: start;
  }

  .executive-bi-ranking-metric {
    grid-column: 2;
    text-align: left;
  }

  .executive-retail-sell-out { padding: 14px 12px 18px; }
  .executive-retail-sell-out-summary { grid-template-columns: minmax(0, 1fr); }
  .executive-retail-sell-out-financial-summary { grid-template-columns: minmax(0, 1fr); }
  .executive-retail-sell-out-summary article,
  .executive-retail-sell-out-summary article:nth-child(2n) {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  }
  .executive-retail-sell-out-summary article:last-child { border-bottom: 0; }
  .executive-retail-sell-out-action-row { flex-direction: column; }
  .executive-retail-sell-out-ranking-item > button {
    grid-template-columns: 28px minmax(0, 1fr) 12px;
    align-items: start;
  }
  .executive-retail-sell-out-ranking-metric {
    grid-column: 2;
    text-align: left;
  }
  .executive-retail-sell-out-ranking-arrow { grid-column: 3; grid-row: 1 / span 2; }
}

@media (max-width: 680px) {
  .operator-code-stocktake-heading { align-items: stretch; flex-direction: column; }
  .operator-code-stocktake-heading .secondary-button { width: 100%; }
  .operator-code-stocktake-readonly { align-items: flex-start; flex-direction: column; margin-inline: 17px; }
  .operator-code-stocktake-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-inline: 17px; }
  .operator-code-stocktake-filter-form,
  .operator-code-stocktake-report-filter-form { grid-template-columns: minmax(0, 1fr); margin-inline: 17px; }
  .operator-code-stocktake-report-filter-form { margin-inline: 0; }
  .operator-code-stocktake-filter-form button,
  .operator-code-stocktake-report-filter-form button { width: 100%; }
  .operator-code-stocktake-table-wrap { margin-inline: 17px; overflow: visible; }
  .operator-code-stocktake-table { min-width: 0; }
  .operator-code-stocktake-table thead { display: none; }
  .operator-code-stocktake-table,
  .operator-code-stocktake-table tbody,
  .operator-code-stocktake-table tr,
  .operator-code-stocktake-table td { width: 100%; display: block; }
  .operator-code-stocktake-table tr { margin-bottom: 9px; padding: 9px 12px; background: white; border: 1px solid #dfe6e2; border-radius: 5px; }
  .operator-code-stocktake-table td { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 9px; padding: 5px 0; border: 0; overflow-wrap: anywhere; }
  .operator-code-stocktake-table td::before { content: attr(data-label); color: var(--muted); font-size: 10px; }
  .operator-code-stocktake-panel > .redemption-pagination { margin-inline: 17px; }
  .operator-code-stocktake-detail { margin-inline: 17px; }
  .operator-code-stocktake-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .operator-code-stocktake-report-summary,
  .operator-code-stocktake-calibration-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .operator-code-stocktake-block-heading { align-items: stretch; flex-direction: column; }
  .operator-code-stocktake-export-button { width: 100%; }
  .operator-code-stocktake-report-items { grid-template-columns: minmax(0, 1fr); }
  .operator-code-stocktake-report-item-heading { flex-direction: column; gap: 4px; }
  .operator-code-stocktake-report-item-heading span { text-align: left; }
  .operator-code-stocktake-events li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .operator-code-stocktake-review-form { grid-template-columns: minmax(0, 1fr); }
  .operator-code-stocktake-calibration-readonly { align-items: flex-start; flex-direction: column; }
  .operator-code-stocktake-calibration-lines { grid-template-columns: minmax(0, 1fr); }
  .operator-code-stocktake-calibration-line-heading { flex-direction: column; gap: 4px; }
  .operator-code-stocktake-calibration-form { grid-template-columns: minmax(0, 1fr); }
  .operator-code-stocktake-reviewed-result { grid-template-columns: minmax(0, 1fr); }
  .operator-code-stocktake-reviewed-result span,
  .operator-code-stocktake-reviewed-result time { grid-column: 1; grid-row: auto; }
}

@media (max-width: 420px) {
  .executive-overview-band-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .executive-metric-grid {
    grid-template-columns: 1fr;
  }

  .executive-metric {
    min-height: 94px;
    border-right: 0;
  }

  .executive-metric:nth-child(n + 2) {
    border-top: 1px solid #e8ece9;
  }
}

.store-prize-inventory-title {
  align-items: flex-end;
}

.physical-prize-fulfillment-panel {
  margin: 0 24px 24px;
  padding: 24px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.physical-prize-fulfillment-heading {
  align-items: end;
  margin: 0 0 16px;
}

.physical-prize-fulfillment-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.physical-prize-fulfillment-filter-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr)) minmax(210px, 1.4fr) auto;
  align-items: end;
  gap: 12px;
  margin-top: 0;
}

.physical-prize-fulfillment-filter-form label,
.physical-prize-fulfillment-dialog label {
  display: grid;
  gap: 6px;
}

.physical-prize-fulfillment-filter-form label > span,
.physical-prize-fulfillment-dialog label > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.physical-prize-fulfillment-filter-form select,
.physical-prize-fulfillment-filter-form input,
.physical-prize-fulfillment-dialog select,
.physical-prize-fulfillment-dialog input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
}

.physical-prize-fulfillment-filter-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
}

.physical-prize-fulfillment-filter-actions .secondary-button,
.store-prize-inventory-filter-form .secondary-button,
.store-prize-inventory-adjustment-form .primary-button {
  min-height: 38px;
  height: 38px;
  padding: 8px 16px;
  border-radius: 6px;
  white-space: nowrap;
}

.physical-prize-fulfillment-tasks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 20px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.physical-prize-fulfillment-tasks > button,
.physical-prize-fulfillment-task-total {
  min-width: 0;
  padding: 16px 20px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.physical-prize-fulfillment-tasks > button {
  cursor: pointer;
  border-right: 1px solid var(--line);
}

.physical-prize-fulfillment-tasks > button:hover,
.physical-prize-fulfillment-tasks > button.active {
  border-bottom-color: var(--green-700);
  background: #f3f7f5;
}

.physical-prize-fulfillment-tasks span,
.physical-prize-fulfillment-tasks small {
  display: block;
}

.physical-prize-fulfillment-tasks span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.physical-prize-fulfillment-tasks strong {
  display: block;
  margin: 6px 0 0;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}

.physical-prize-fulfillment-tasks small {
  display: none;
}

.physical-prize-fulfillment-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
  margin: 12px 0 16px;
}

.physical-prize-fulfillment-summary > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.physical-prize-fulfillment-summary span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.physical-prize-fulfillment-summary strong {
  display: block;
  margin: 0;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.physical-prize-fulfillment-panel .store-prize-inventory-table-wrap {
  margin-inline: 0;
}

.physical-prize-fulfillment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.physical-prize-fulfillment-actions button {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 11px;
}

.physical-prize-fulfillment-dialog {
  width: min(520px, calc(100vw - 28px));
}

.store-finance-dialog {
  width: min(1080px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  border-radius: 8px;
}

.store-finance-dialog h3 {
  margin: 22px 0 12px;
  font-size: 15px;
}

.store-finance-dialog > :not(.dialog-heading) {
  margin-inline: 24px;
}

#store-finance-content {
  margin-bottom: 24px;
}

.store-finance-dialog p,
.store-finance-table td {
  overflow-wrap: anywhere;
}

.store-finance-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}

.store-finance-notice {
  padding: 10px 12px;
  border-left: 3px solid var(--blue);
  background: #f0f5f8;
  color: #325569;
  font-size: 12px;
  line-height: 1.6;
}

.store-finance-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
  padding: 16px 0;
  border-block: 1px solid var(--line);
}

.store-finance-summary dt {
  color: var(--muted);
  font-size: 12px;
}

.store-finance-summary dd {
  margin: 8px 0 0;
  font-size: 19px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.store-finance-form {
  padding: 4px 0 16px;
  border-block: 1px solid var(--line);
}

.store-finance-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin-top: 12px;
  font-size: 12px;
}

.store-finance-form :is(input, select) {
  min-width: 0;
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--strong-line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
}

.store-finance-form-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1.3fr;
  gap: 12px;
}

.store-finance-table {
  min-width: 820px;
}

.store-finance-table td {
  max-width: 250px;
  vertical-align: top;
}

.store-finance-table small {
  color: var(--muted);
}

@media (max-width: 680px) {
  .store-finance-dialog > :not(.dialog-heading) {
    margin-inline: 16px;
  }

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

  .store-finance-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.physical-prize-fulfillment-dialog form {
  display: grid;
  gap: 14px;
}

@media (max-width: 1100px) {
  .physical-prize-fulfillment-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .physical-prize-fulfillment-filter-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .physical-prize-fulfillment-heading,
  .physical-prize-fulfillment-filter-form {
    align-items: stretch;
  }

  .physical-prize-fulfillment-filter-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .physical-prize-fulfillment-filter-actions {
    grid-column: auto;
    flex-wrap: wrap;
  }

  .physical-prize-fulfillment-tasks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .physical-prize-fulfillment-tasks > button,
  .physical-prize-fulfillment-task-total {
    padding: 14px 8px;
  }

  .physical-prize-fulfillment-tasks span {
    font-size: 11px;
  }
}

.store-prize-inventory-filter-form {
  width: min(100%, 760px);
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(170px, 1.1fr) minmax(150px, 1fr) minmax(128px, 0.8fr) auto;
  align-items: end;
  gap: 10px;
}

.store-prize-inventory-filter-form label,
.store-prize-inventory-adjustment-form label {
  min-width: 0;
}

.store-prize-inventory-filter-form label > span,
.store-prize-inventory-adjustment-form label > span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.store-prize-inventory-filter-form select,
.store-prize-inventory-adjustment-form select,
.store-prize-inventory-adjustment-form input {
  width: 100%;
  min-height: 38px;
}

.store-prize-inventory-adjustment-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin: 0 24px;
  padding: 20px 0;
  border-top: 0;
  border-bottom: 1px solid var(--line);
}

.store-prize-inventory-adjustment-panel h3,
.store-prize-inventory-block-heading h3 {
  margin: 0;
  font-size: 16px;
}

.store-prize-inventory-adjustment-panel > div > p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.store-prize-inventory-adjustment-form {
  display: grid;
  grid-template-columns: minmax(210px, 1.1fr) minmax(200px, 1fr) minmax(110px, 0.55fr) minmax(230px, 1.2fr) auto;
  align-items: end;
  gap: 10px;
}

.store-prize-inventory-adjustment-form .form-error {
  grid-column: 1 / -1;
  margin: 0;
}

.store-prize-inventory-block-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 24px 12px;
}

.store-prize-inventory-ledger-heading {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #dfe6e2;
}

.store-prize-inventory-table-wrap {
  margin-inline: 24px;
}

.store-prize-inventory-table {
  min-width: 760px;
}

.store-prize-inventory-ledger-table {
  min-width: 1020px;
}

.store-prize-inventory-quantity {
  color: #285f50;
  font-size: 17px;
  font-weight: 750;
}

.store-prize-inventory-quantity.reserved { color: #9b6b2d; }
.store-prize-inventory-quantity.available { color: #2f725f; }

.store-prize-inventory-delta {
  font-weight: 750;
}

.store-prize-inventory-delta.positive { color: #2f725f; }
.store-prize-inventory-delta.negative { color: #a24f47; }

.store-prize-inventory-workspace > .inline-loading,
.store-prize-inventory-workspace > .inline-error,
.store-prize-inventory-workspace > .inline-empty,
.store-prize-inventory-workspace > .redemption-pagination {
  margin-inline: 24px;
}

@media (max-width: 1280px) {
  .store-prize-inventory-title {
    align-items: stretch;
    flex-direction: column;
  }

  .store-prize-inventory-filter-form {
    width: 100%;
  }
}

@media (max-width: 1180px) {
  .store-prize-inventory-adjustment-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .store-prize-inventory-adjustment-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .store-prize-inventory-adjustment-form button {
    grid-column: 1 / -1;
    justify-self: end;
  }
}

@media screen and (max-width: 680px) {
  .store-prize-inventory-filter-form,
  .store-prize-inventory-adjustment-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .store-prize-inventory-filter-form button,
  .store-prize-inventory-adjustment-form button {
    width: 100%;
  }

  .store-prize-inventory-adjustment-panel,
  .physical-prize-fulfillment-panel,
  .store-prize-inventory-block-heading,
  .store-prize-inventory-table-wrap,
  .store-prize-inventory-workspace > .inline-loading,
  .store-prize-inventory-workspace > .inline-error,
  .store-prize-inventory-workspace > .inline-empty,
  .store-prize-inventory-workspace > .redemption-pagination {
    margin-inline: 17px;
  }

  .store-prize-inventory-adjustment-reason,
  .store-prize-inventory-adjustment-form .form-error {
    grid-column: 1;
  }

  .store-prize-inventory-table-wrap {
    overflow: visible;
  }

  .store-prize-inventory-table {
    min-width: 0;
  }

  .store-prize-inventory-table thead { display: none; }
  .store-prize-inventory-table,
  .store-prize-inventory-table tbody,
  .store-prize-inventory-table tr,
  .store-prize-inventory-table td {
    width: 100%;
    display: block;
  }

  .store-prize-inventory-table tr {
    margin-bottom: 9px;
    padding: 9px 12px;
    background: white;
    border: 1px solid #dfe6e2;
    border-radius: 5px;
  }

  .store-prize-inventory-table td {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 9px;
    padding: 5px 0;
    border: 0;
    overflow-wrap: anywhere;
  }

  .store-prize-inventory-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 10px;
    font-weight: 500;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Shipment receipt exception close-loop */
.shipment-exception-panel {
  grid-column: 1 / -1;
  min-width: 0;
  width: 100%;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #dfe6e2;
  overflow: hidden;
}
.shipment-exception-panel-heading,
.shipment-exception-card-head,
.shipment-exception-card-foot,
.shipment-exception-refund-head,
.shipment-exception-inline-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.shipment-exception-panel-heading > div { font-size: 12px; font-weight: 700; }
.shipment-exception-panel-heading > span { color: #6a756f; font-size: 10px; }
.shipment-exception-progress {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  min-width: 0;
  margin: 12px 0;
}
.shipment-exception-progress > div,
.shipment-exception-finance > div {
  min-width: 0;
  padding: 9px;
  border-radius: 6px;
  background: #f4f7f5;
}
.shipment-exception-progress span,
.shipment-exception-progress strong,
.shipment-exception-finance span,
.shipment-exception-finance strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}
.shipment-exception-progress span,
.shipment-exception-finance span { color: #6a756f; font-size: 9px; }
.shipment-exception-progress strong,
.shipment-exception-finance strong { margin-top: 4px; font-size: 11px; }
.shipment-exception-list,
.shipment-exception-detail-items,
.shipment-exception-refunds { display: grid; gap: 9px; min-width: 0; }
.shipment-exception-card,
.shipment-exception-refund,
.shipment-exception-detail-item {
  min-width: 0;
  padding: 11px;
  border: 1px solid #dfe6e2;
  border-radius: 7px;
  background: #fff;
}
.shipment-exception-card p,
.shipment-exception-refund p {
  margin: 7px 0 0;
  color: #65716b;
  font-size: 10px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.shipment-exception-card-foot { margin-top: 9px; justify-content: flex-end; }
.shipment-exception-status,
.shipment-exception-refund-status {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 999px;
  color: #795b20;
  background: #f8edca;
  font-size: 9px;
  line-height: 1;
}
.shipment-exception-status.completed,
.shipment-exception-refund-status.confirmed { color: #16633f; background: #e6f4ec; }
.shipment-exception-status.cancelled,
.shipment-exception-refund-status.rejected { color: #68716d; background: #edf0ee; }
.shipment-exception-status.reported { color: #9a3d23; background: #fbe8df; }
.shipment-exception-button {
  min-height: 34px;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid #cbd4cf;
  border-radius: 6px;
  color: #27332d;
  background: #fff;
  font: inherit;
  font-size: 10px;
  overflow-wrap: anywhere;
}
.shipment-exception-button.primary { color: #fff; border-color: #205b3f; background: #205b3f; }
.shipment-exception-button.danger { color: #9a3d23; border-color: #e7b8a7; background: #fff7f3; }
.shipment-exception-report-button { width: 100%; margin-top: 10px; }
.shipment-exception-empty,
.shipment-exception-data-error {
  margin: 9px 0 0;
  color: #77817c;
  font-size: 10px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.shipment-exception-data-error { color: #a03b24; }
.shipment-exception-dialog {
  width: min(760px, calc(100% - 24px));
  max-width: calc(100vw - 24px);
  max-height: min(88vh, 900px);
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  color: #27332d;
  background: #fff;
}
.shipment-exception-dialog::backdrop { background: rgba(14, 25, 19, 0.55); }
.shipment-exception-dialog > form,
.shipment-exception-detail-dialog {
  min-width: 0;
}
.shipment-exception-dialog > form {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: min(88vh, 900px);
}
.shipment-exception-dialog-header,
.shipment-exception-dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 15px 18px;
  border-bottom: 1px solid #e4e9e6;
}
.shipment-exception-dialog-header h2 { margin: 3px 0 0; font-size: 18px; }
.shipment-exception-dialog-header p { margin: 5px 0 0; color: #6a756f; font-size: 10px; line-height: 1.5; }
.shipment-exception-kicker { color: #99782b; font-size: 8px; letter-spacing: .14em; }
.shipment-exception-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 0;
  color: #58635e;
  background: transparent;
  font-size: 22px;
}
.shipment-exception-dialog-body {
  min-width: 0;
  max-width: 100%;
  padding: 16px 18px;
  overflow-x: hidden;
  overflow-y: auto;
}
.shipment-exception-dialog-actions {
  justify-content: flex-end;
  border-top: 1px solid #e4e9e6;
  border-bottom: 0;
}
.shipment-exception-context { margin: 0 0 10px; font-weight: 700; overflow-wrap: anywhere; }
.shipment-exception-report-items,
.shipment-exception-action-form { display: grid; gap: 10px; min-width: 0; }
.shipment-exception-report-item,
.shipment-exception-resolution-item {
  min-width: 0;
  margin: 0;
  padding: 10px;
  border: 1px solid #dfe6e2;
  border-radius: 7px;
}
.shipment-exception-report-item legend,
.shipment-exception-resolution-item legend {
  max-width: 100%;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.shipment-exception-quantity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-top: 7px;
}
.shipment-exception-field { display: grid; gap: 6px; min-width: 0; margin-top: 11px; }
.shipment-exception-field > span { font-size: 10px; font-weight: 700; }
.shipment-exception-field input,
.shipment-exception-field select,
.shipment-exception-field textarea,
.shipment-exception-quantity-row input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 8px 9px;
  border: 1px solid #cfd8d3;
  border-radius: 6px;
  color: inherit;
  background: #fff;
  font: inherit;
}
.shipment-exception-field textarea { resize: vertical; }
.shipment-exception-intent-warning,
.shipment-exception-error,
.shipment-exception-rejection {
  margin: 10px 0 0;
  padding: 9px 10px;
  border-radius: 6px;
  color: #785d22;
  background: #fbf1d2;
  font-size: 10px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.shipment-exception-error,
.shipment-exception-rejection { color: #9a3d23; background: #fff0e9; }
.shipment-exception-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
  margin: 0;
}
.shipment-exception-meta > div { min-width: 0; padding: 9px; background: #f6f8f7; border-radius: 6px; }
.shipment-exception-meta dt { color: #6a756f; font-size: 9px; }
.shipment-exception-meta dd { margin: 4px 0 0; font-size: 11px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.shipment-exception-finance {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
  margin-top: 12px;
}
.shipment-exception-detail-section { min-width: 0; margin-top: 17px; }
.shipment-exception-detail-section h3 { margin: 0 0 9px; font-size: 12px; }
.shipment-exception-detail-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}
.shipment-exception-detail-item strong,
.shipment-exception-detail-item span { display: block; min-width: 0; overflow-wrap: anywhere; }
.shipment-exception-detail-item span { margin-top: 4px; color: #6a756f; font-size: 9px; }
.shipment-exception-detail-item-outcome { text-align: right; }
.shipment-exception-refund-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 10px;
  min-width: 0;
}
.shipment-exception-timeline { display: grid; gap: 9px; margin: 0; padding-left: 18px; }
.shipment-exception-timeline li { min-width: 0; padding-left: 4px; }
.shipment-exception-timeline strong,
.shipment-exception-timeline span { display: block; overflow-wrap: anywhere; }
.shipment-exception-timeline span { margin-top: 3px; color: #6a756f; font-size: 9px; }
.shipment-exception-timeline p { margin: 4px 0 0; font-size: 10px; overflow-wrap: anywhere; }
.shipment-exception-workbench { display: grid; gap: 14px; min-width: 0; }
.shipment-exception-workbench-heading,
.shipment-exception-workbench-pagination,
.shipment-exception-recovery {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.shipment-exception-workbench-heading strong,
.shipment-exception-workbench-heading span { display: block; overflow-wrap: anywhere; }
.shipment-exception-workbench-heading strong { font-size: 15px; }
.shipment-exception-workbench-heading span { margin-top: 4px; color: #6a756f; font-size: 10px; }
.shipment-exception-workbench-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}
.shipment-exception-workbench-summary > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e0e7e3;
  border-radius: 8px;
  background: #fff;
}
.shipment-exception-workbench-summary span,
.shipment-exception-workbench-summary strong { display: block; overflow-wrap: anywhere; }
.shipment-exception-workbench-summary span { color: #6a756f; font-size: 9px; }
.shipment-exception-workbench-summary strong { margin-top: 5px; font-size: 13px; }
.shipment-exception-task-filters { display: flex; flex-wrap: wrap; gap: 7px; min-width: 0; }
.shipment-exception-task-button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #d3dcd7;
  border-radius: 999px;
  color: #3f4b45;
  background: #fff;
  font: inherit;
  font-size: 10px;
}
.shipment-exception-task-button.active { color: #fff; border-color: #205b3f; background: #205b3f; }
.shipment-exception-workbench-filters {
  display: grid;
  grid-template-columns: minmax(110px, .55fr) repeat(2, minmax(150px, .85fr)) minmax(210px, 1.4fr) auto auto;
  align-items: end;
  gap: 9px;
  min-width: 0;
}
.shipment-exception-workbench-filters label { display: grid; gap: 5px; min-width: 0; }
.shipment-exception-workbench-filters label > span { font-size: 9px; font-weight: 700; }
.shipment-exception-workbench-filters input,
.shipment-exception-workbench-filters select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 8px 9px;
  border: 1px solid #cfd8d3;
  border-radius: 6px;
  color: inherit;
  background: #fff;
  font: inherit;
}
.shipment-exception-recovery {
  padding: 12px;
  border: 1px solid #e7cf8d;
  border-radius: 8px;
  background: #fff8df;
}
.shipment-exception-recovery strong,
.shipment-exception-recovery span { display: block; overflow-wrap: anywhere; }
.shipment-exception-recovery span { margin-top: 4px; color: #705d2b; font-size: 10px; }
.shipment-exception-workbench-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}
.shipment-exception-workbench-state { margin: 0; padding: 18px; color: #6a756f; text-align: center; }
.shipment-exception-workbench-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px;
  border-radius: 7px;
  color: #8b321d;
  background: #fff0e9;
}
.shipment-exception-workbench-error[hidden],
.shipment-exception-recovery[hidden],
.shipment-exception-workbench-pagination[hidden] { display: none; }
.shipment-exception-workbench-pagination { color: #6a756f; font-size: 10px; }
.shipment-exception-resolution-impact {
  display: grid;
  gap: 5px;
  padding: 11px;
  border: 1px solid #cddfd5;
  border-radius: 7px;
  background: #f2f8f4;
}
.shipment-exception-resolution-impact strong,
.shipment-exception-resolution-impact span,
.shipment-exception-resolution-impact small { display: block; overflow-wrap: anywhere; }
.shipment-exception-resolution-impact span { font-size: 10px; }
.shipment-exception-resolution-impact small,
.shipment-exception-refund-review { color: #6a756f; font-size: 9px; }

@media (max-width: 560px) {
  .shipment-exception-progress,
  .shipment-exception-finance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shipment-exception-progress > div:last-child { grid-column: 1 / -1; }
  .shipment-exception-meta,
  .shipment-exception-refund-fields { grid-template-columns: minmax(0, 1fr); }
  .shipment-exception-detail-item { grid-template-columns: minmax(0, 1fr); }
  .shipment-exception-detail-item-outcome { text-align: left; }
  .shipment-exception-dialog-header,
  .shipment-exception-dialog-body,
  .shipment-exception-dialog-actions { padding-inline: 13px; }
  .shipment-exception-dialog-actions { align-items: stretch; flex-direction: column-reverse; }
  .shipment-exception-dialog-actions .shipment-exception-button { width: 100%; }
  .shipment-exception-inline-actions { align-items: stretch; flex-direction: column; }
  .shipment-exception-inline-actions .shipment-exception-button { width: 100%; }
  .shipment-exception-quantity-row { grid-template-columns: minmax(0, 1fr) 88px; }
  .shipment-exception-workbench-heading,
  .shipment-exception-workbench-pagination,
  .shipment-exception-recovery { align-items: stretch; flex-direction: column; }
  .shipment-exception-workbench-summary,
  .shipment-exception-workbench-list,
  .shipment-exception-workbench-filters { grid-template-columns: minmax(0, 1fr); }
  .shipment-exception-workbench-heading .shipment-exception-button,
  .shipment-exception-workbench-filters .shipment-exception-button,
  .shipment-exception-workbench-pagination .shipment-exception-button { width: 100%; }
}

.channel-retail-sell-out-panel,
.channel-retail-sell-out-panel *,
.channel-retail-sell-out-detail-dialog * { min-width: 0; }
.channel-retail-sell-out-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}
.channel-retail-sell-out-summary > div {
  padding: 13px 14px;
  border: 1px solid #dfe6e2;
  border-radius: 8px;
  background: #fff;
}
.channel-retail-sell-out-summary span,
.channel-retail-sell-out-summary strong { display: block; overflow-wrap: anywhere; }
.channel-retail-sell-out-summary span { color: #6a756f; font-size: 10px; }
.channel-retail-sell-out-summary strong { margin-top: 5px; color: #173f35; font-size: 19px; }
.channel-retail-sell-out-filter-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr)) repeat(2, minmax(132px, .8fr)) auto;
  align-items: end;
  gap: 9px;
  margin-bottom: 16px;
}
.channel-retail-sell-out-filter-form label { display: grid; gap: 5px; }
.channel-retail-sell-out-filter-form label > span { color: #5f6b65; font-size: 10px; font-weight: 700; }
.channel-retail-sell-out-filter-form select,
.channel-retail-sell-out-filter-form input {
  box-sizing: border-box;
  width: 100%;
  min-height: 38px;
  padding: 8px 9px;
  border: 1px solid #cfd8d3;
  border-radius: 6px;
  color: inherit;
  background: #fff;
  font: inherit;
}
.channel-retail-sell-out-drilldown-scope {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -5px 0 16px;
  padding: 11px 12px;
  color: #315f50;
  background: #edf6f1;
  border: 1px solid #cfe2d8;
  border-left: 4px solid var(--green-700);
  border-radius: 6px;
}
.channel-retail-sell-out-drilldown-scope > div { min-width: 0; display: grid; gap: 4px; }
.channel-retail-sell-out-drilldown-scope strong,
.channel-retail-sell-out-drilldown-scope span { min-width: 0; overflow-wrap: anywhere; }
.channel-retail-sell-out-drilldown-scope strong { font-size: 11px; }
.channel-retail-sell-out-drilldown-scope span { color: #60736a; font-size: 9px; line-height: 1.45; }
.channel-retail-sell-out-drilldown-scope .secondary-button { flex: 0 0 auto; }
.channel-retail-sell-out-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.channel-retail-sell-out-card {
  width: 100%;
  padding: 14px;
  border: 1px solid #dfe6e2;
  border-radius: 8px;
  color: inherit;
  background: #fff;
  text-align: left;
}
.channel-retail-sell-out-card:hover { border-color: #6e9f87; box-shadow: 0 5px 18px rgba(25, 60, 47, .07); }
.channel-retail-sell-out-card-heading,
.channel-retail-sell-out-card-parties,
.channel-retail-sell-out-card-metrics,
.channel-retail-sell-out-detail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.channel-retail-sell-out-card-heading { flex-wrap: wrap; }
.channel-retail-sell-out-card-heading > strong { flex: 1 1 220px; }
.channel-retail-sell-out-card-heading strong,
.channel-retail-sell-out-card-heading time,
.channel-retail-sell-out-card-parties span { overflow-wrap: anywhere; }
.channel-retail-sell-out-card-heading strong { color: #173f35; font-size: 13px; }
.channel-retail-sell-out-pricing-status {
  flex: 0 0 auto;
  padding: 3px 6px;
  color: #245c48;
  background: #e4f2ea;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
}
.channel-retail-sell-out-pricing-status.unpriced { color: #7a5a23; background: #f7edcf; }
.channel-retail-sell-out-card-heading time { flex: 0 0 auto; color: #748079; font-size: 9px; }
.channel-retail-sell-out-card-parties { align-items: flex-start; flex-direction: column; gap: 4px; margin-top: 9px; color: #66726c; font-size: 10px; }
.channel-retail-sell-out-card-metrics { flex-wrap: wrap; margin-top: 12px; padding-top: 11px; border-top: 1px solid #edf1ef; }
.channel-retail-sell-out-card-metrics > span { flex: 1 1 28%; }
.channel-retail-sell-out-card-metrics small,
.channel-retail-sell-out-card-metrics strong { display: block; overflow-wrap: anywhere; }
.channel-retail-sell-out-card-metrics small { color: #748079; font-size: 9px; }
.channel-retail-sell-out-card-metrics strong { margin-top: 4px; font-size: 12px; }
.channel-retail-sell-out-detail-dialog { width: min(900px, calc(100% - 28px)); }
.channel-retail-sell-out-detail-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.channel-retail-sell-out-detail-meta > div { padding: 10px; border-radius: 6px; background: #f5f8f6; }
.channel-retail-sell-out-detail-meta dt { color: #6a756f; font-size: 9px; }
.channel-retail-sell-out-detail-meta dd { margin: 5px 0 0; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.channel-retail-sell-out-detail-dialog .channel-retail-sell-out-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; }
.channel-retail-sell-out-detail-dialog .channel-retail-sell-out-summary strong { font-size: 14px; }
.channel-retail-sell-out-detail-items { display: grid; gap: 8px; margin-top: 14px; }
.channel-retail-sell-out-detail-item { align-items: flex-start; padding: 11px 12px; border: 1px solid #dfe6e2; border-radius: 7px; }
.channel-retail-sell-out-detail-item > div > strong,
.channel-retail-sell-out-detail-item > div > span { display: block; overflow-wrap: anywhere; }
.channel-retail-sell-out-detail-item > div > strong { font-size: 11px; }
.channel-retail-sell-out-detail-item > div > span { margin-top: 4px; color: #6a756f; font-size: 9px; }
.channel-retail-sell-out-detail-item > div:last-child { flex: 0 0 auto; text-align: right; }
.channel-retail-sell-out-detail-section { min-width: 0; margin-top: 18px; }
.channel-retail-sell-out-detail-section-heading {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.channel-retail-sell-out-detail-section-heading h3 { margin: 0; font-size: 12px; }
.channel-retail-sell-out-detail-section-heading span { color: #6a756f; font-size: 9px; }
.channel-retail-sell-out-detail-timeline { min-width: 0; display: grid; gap: 8px; margin-top: 9px; }
.channel-retail-sell-out-detail-timeline-empty {
  padding: 12px;
  color: #6a756f;
  background: #f7faf8;
  border: 1px dashed #cfdad4;
  border-radius: 6px;
  font-size: 10px;
  text-align: center;
}
.channel-retail-sell-out-detail-timeline-item,
.channel-retail-sell-out-detail-reversal {
  min-width: 0;
  padding: 11px 12px;
  background: white;
  border: 1px solid #dfe6e2;
  border-radius: 7px;
}
.channel-retail-sell-out-detail-timeline-item > div,
.channel-retail-sell-out-detail-reversal-heading {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.channel-retail-sell-out-detail-timeline-item strong,
.channel-retail-sell-out-detail-timeline-item time,
.channel-retail-sell-out-detail-timeline-item p,
.channel-retail-sell-out-detail-reversal strong,
.channel-retail-sell-out-detail-reversal span,
.channel-retail-sell-out-detail-reversal time,
.channel-retail-sell-out-detail-reversal p { overflow-wrap: anywhere; }
.channel-retail-sell-out-detail-timeline-item strong,
.channel-retail-sell-out-detail-reversal strong { font-size: 11px; }
.channel-retail-sell-out-detail-timeline-item time,
.channel-retail-sell-out-detail-reversal time { color: #6a756f; font-size: 9px; }
.channel-retail-sell-out-detail-timeline-item > b { display: block; margin-top: 7px; color: #173f35; font-size: 15px; }
.channel-retail-sell-out-detail-timeline-item p { margin: 5px 0 0; color: #6a756f; font-size: 9px; line-height: 1.5; }
.channel-retail-sell-out-detail-reversal-heading > div { min-width: 0; display: grid; gap: 4px; }
.channel-retail-sell-out-detail-reversal-heading > div:last-child { flex: 0 0 auto; text-align: right; }
.channel-retail-sell-out-detail-reversal-heading b { color: #8d3f39; font-size: 14px; }
.channel-retail-sell-out-detail-reversal-items { display: grid; gap: 4px; margin-top: 10px; padding: 9px 10px; background: #f7faf8; border-radius: 5px; }
.channel-retail-sell-out-detail-reversal-items p { margin: 0; color: #55645d; font-size: 9px; line-height: 1.5; }
.channel-retail-sell-out-detail-refunds { display: grid; gap: 5px; margin-top: 9px; }
.channel-retail-sell-out-detail-refunds > div {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  background: #fff8f7;
  border-radius: 5px;
}
.channel-retail-sell-out-detail-refunds p.is-pending { margin: 0; padding: 8px 9px; color: #7a5a23; background: #fff8e9; border-radius: 5px; font-size: 9px; }
.channel-retail-sell-out-detail-note { margin: 13px 0 0; color: #6a756f; font-size: 9px; line-height: 1.55; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .channel-retail-sell-out-filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channel-retail-sell-out-filter-form .secondary-button { width: 100%; }
}

@media (max-width: 680px) {
  .operator-code-stocktake-table { min-width: 0; }
  .operator-code-stocktake-table td { grid-template-columns: 84px minmax(0, 1fr); }
  .operator-code-stocktake-report-items { grid-template-columns: minmax(0, 1fr); }
  .operator-code-stocktake-review-form { grid-template-columns: minmax(0, 1fr); }
  .operator-code-stocktake-calibration-lines { grid-template-columns: minmax(0, 1fr); }
  .operator-code-stocktake-calibration-form { grid-template-columns: minmax(0, 1fr); }
  .channel-retail-sell-out-heading { align-items: stretch; flex-direction: column; }
  .channel-retail-sell-out-heading .secondary-button { width: 100%; }
  .channel-retail-sell-out-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channel-retail-sell-out-filter-form,
  .channel-retail-sell-out-list,
  .channel-retail-sell-out-detail-meta { grid-template-columns: minmax(0, 1fr); }
  .channel-retail-sell-out-drilldown-scope { align-items: stretch; flex-direction: column; }
  .channel-retail-sell-out-drilldown-scope .secondary-button { width: 100%; }
  .channel-retail-sell-out-card-heading,
  .channel-retail-sell-out-detail-item { align-items: flex-start; flex-direction: column; }
  .channel-retail-sell-out-detail-item > div:last-child { text-align: left; }
  .channel-retail-sell-out-detail-section-heading,
  .channel-retail-sell-out-detail-timeline-item > div,
  .channel-retail-sell-out-detail-reversal-heading { align-items: flex-start; flex-direction: column; }
  .channel-retail-sell-out-detail-reversal-heading > div:last-child { text-align: left; }
  .channel-retail-sell-out-detail-refunds > div { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 420px) {
  .channel-retail-sell-out-card-metrics,
  .channel-retail-sell-out-detail-dialog .channel-retail-sell-out-summary { grid-template-columns: minmax(0, 1fr); }
  .channel-retail-sell-out-card-metrics { display: grid; }
}

.channel-payment-review-heading {
  align-items: flex-start;
}

.channel-payment-review-readonly {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 18px 14px;
  padding: 10px 12px;
  color: #4d5e56;
  background: #f3f6f4;
  border: 1px solid #d8e0dc;
  border-radius: 6px;
  font-size: 11px;
}

.channel-payment-review-readonly strong {
  flex: 0 0 auto;
  color: #244b3e;
}

.channel-payment-review-summary {
  display: grid;
  grid-template-columns: minmax(150px, .7fr) minmax(190px, .9fr) minmax(280px, 1.4fr);
  margin-bottom: 14px;
  color: white;
  background: #244a3d;
  border: 1px solid #1d3d33;
  border-radius: 7px;
}

.channel-payment-review-summary > div {
  min-width: 0;
  padding: 12px 14px;
  border-right: 1px solid rgba(255, 255, 255, .15);
}

.channel-payment-review-summary > div:last-child {
  border-right: 0;
}

.channel-payment-review-summary span,
.channel-payment-review-summary small,
.channel-payment-review-summary strong {
  display: block;
  overflow-wrap: anywhere;
}

.channel-payment-review-summary span,
.channel-payment-review-summary small {
  color: #c7d7d0;
  font-size: 10px;
}

.channel-payment-review-summary strong {
  margin: 4px 0 2px;
  font-size: 16px;
}

.channel-payment-review-table {
  min-width: 1280px;
}

.channel-payment-review-table td {
  vertical-align: top;
}

.channel-payment-review-table td > strong,
.channel-payment-review-table td > small,
.channel-payment-review-table td > code {
  display: block;
  overflow-wrap: anywhere;
  white-space: normal;
}

.channel-payment-review-table td > small,
.channel-payment-review-table td > code {
  margin-top: 4px;
}

.channel-payment-review-amount {
  color: #173f35;
  font-size: 14px;
}

.channel-payment-review-pair {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr);
  gap: 5px;
  margin-bottom: 5px;
}

.channel-payment-review-pair span {
  color: var(--muted);
  font-size: 10px;
}

.channel-payment-review-pair strong {
  overflow-wrap: anywhere;
  font-size: 11px;
}

.status-warning {
  width: max-content;
  color: #7a5115;
  background: #fff5de;
  border-color: #ead5a6;
}

.channel-payment-review-evidence {
  width: min(360px, 30vw);
  min-width: 220px;
}

.channel-payment-review-evidence summary {
  width: max-content;
  max-width: 100%;
  cursor: pointer;
  color: var(--green-700);
  font-weight: 700;
}

.channel-payment-review-evidence-content {
  display: grid;
  gap: 10px;
  margin-top: 9px;
  padding: 10px;
  background: #f7faf8;
  border: 1px solid #dfe7e2;
  border-radius: 6px;
}

.channel-payment-review-evidence-section h5 {
  margin: 0 0 5px;
  color: #35594d;
  font-size: 10px;
}

.channel-payment-review-evidence-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.channel-payment-review-evidence-item {
  padding-top: 7px;
  border-top: 1px solid #e2e9e5;
}

.channel-payment-review-evidence-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.channel-payment-review-evidence-item strong,
.channel-payment-review-evidence-item span,
.channel-payment-review-evidence-item small {
  display: block;
  overflow-wrap: anywhere;
}

.channel-payment-review-evidence-item strong {
  color: #233e35;
  font-size: 10px;
}

.channel-payment-review-evidence-item span,
.channel-payment-review-evidence-item small,
.channel-payment-review-evidence-empty {
  margin-top: 3px;
  color: #68756f;
  font-size: 9px;
  line-height: 1.45;
}

.channel-payment-review-evidence-empty {
  margin-bottom: 0;
}

.channel-payment-review-actions {
  display: flex;
  min-width: 150px;
  align-items: flex-end;
  flex-direction: column;
  gap: 5px;
}

.channel-payment-review-actions button {
  min-height: 30px;
  white-space: normal;
}

.channel-payment-review-sensitive-action {
  color: #8b4039;
}

.channel-payment-review-readonly-copy {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

@media screen and (max-width: 680px) {
  .channel-payment-review-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .channel-payment-review-heading .secondary-button {
    width: 100%;
  }

  .channel-payment-review-readonly {
    align-items: flex-start;
    flex-direction: column;
    margin-right: 12px;
    margin-left: 12px;
  }

  .channel-payment-review-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .channel-payment-review-summary > div:nth-child(2) {
    border-right: 0;
  }

  .channel-payment-review-summary-wide {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, .15);
  }

  .channel-payment-review-table-wrap {
    overflow-x: visible;
  }

  .channel-payment-review-table {
    min-width: 0;
  }

  .channel-payment-review-table thead {
    display: none;
  }

  .channel-payment-review-table,
  .channel-payment-review-table tbody,
  .channel-payment-review-table tr,
  .channel-payment-review-table td {
    display: block;
    width: 100%;
  }

  .channel-payment-review-table tr {
    margin-bottom: 10px;
    overflow: hidden;
    background: white;
    border: 1px solid var(--line);
    border-radius: 7px;
  }

  .channel-payment-review-table td {
    display: block;
    min-width: 0;
    height: auto;
    min-height: 0;
    overflow-wrap: anywhere;
    white-space: normal;
    border-bottom: 1px solid var(--line);
  }

  .channel-payment-review-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
  }

  .channel-payment-review-table td:last-child {
    border-bottom: 0;
  }

  .channel-payment-review-evidence {
    width: 100%;
    min-width: 0;
  }

  .channel-payment-review-actions {
    min-width: 0;
    align-items: stretch;
  }

  .channel-payment-review-actions button {
    width: 100%;
  }

  .channel-payment-review-action-cell {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .channel-payment-review-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-payment-review-summary > div,
  .channel-payment-review-summary > div:nth-child(2) {
    grid-column: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
  }

  .channel-payment-review-summary > div:last-child {
    border-bottom: 0;
  }

}
