:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --panel: #ffffff;
  --text: #1f2933;
  --muted: #667085;
  --line: #d9dee7;
  --accent: #0f766e;
  --accent-2: #155e75;
  --danger: #b42318;
  --ok: #067647;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(380px, 100%);
  display: grid;
  gap: 14px;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgb(15 23 42 / 12%);
}

.mobile-blocked-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}

.mobile-blocked-card {
  width: min(460px, 100%);
  display: grid;
  gap: 10px;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgb(15 23 42 / 12%);
}

.mobile-blocked-card h1,
.mobile-blocked-card h2,
.mobile-blocked-card p {
  margin: 0;
}

.mobile-blocked-card h2 {
  font-size: 20px;
}

.mobile-blocked-card p {
  color: var(--muted);
  line-height: 1.45;
}

.login-card label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.login-error {
  padding: 10px 12px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: var(--danger);
  border-radius: 6px;
}

[hidden],
.hidden {
  display: none !important;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 22px 28px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.topActions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.userContextBadge {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.user-badge {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.user-badge.owner {
  background: #e8f4e8;
  color: #2d6a2d;
}

.user-badge.client {
  background: #e8f0f4;
  color: #2d4a6a;
}

.user-badge.viewing-client {
  background: #fff3e0;
  color: #e65100;
}

.tenant-badge {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.tenantContextBanner {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 28px;
  border-bottom: 1px solid #f59e0b;
  background: #fffbeb;
  color: #92400e;
}

.tenantContextBanner strong {
  color: #78350f;
}

.owner-console-page {
  min-height: 100vh;
  background: var(--bg);
}

.ownerConsoleTopbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 24px 28px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  max-width: 100%;
}

.ownerConsoleActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.ownerConsoleTitleLink {
  color: inherit;
  text-decoration: none;
}

.ownerConsoleTitleLink:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ownerNavBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: var(--a2-info);
  text-decoration: none;
}

.ownerNavBtn:hover,
.ownerNavBtn.active {
  border-color: var(--a2-info);
  background: #eff8ff;
}

.ownerConsoleLayout {
  display: grid;
  gap: 16px;
  padding: 18px;
  max-width: 100%;
  min-width: 0;
}

.ownerConsoleGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 12px;
}

.ownerConsoleCard {
  display: grid;
  gap: 8px;
  min-height: 130px;
  padding: 14px;
  color: inherit;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.ownerConsoleCard strong {
  font-size: 16px;
}

.ownerConsoleLink:hover {
  border-color: var(--accent);
}

.tabs {
  display: flex;
  gap: 6px;
}

.moduleTabs {
  display: flex;
  gap: 6px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.tab {
  background: #eef2f6;
  color: var(--text);
}

.tab.active {
  background: var(--accent);
  color: #fff;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 18px;
  margin-bottom: 14px;
}

h3 {
  font-size: 15px;
  margin-top: 18px;
  margin-bottom: 10px;
}

p {
  margin: 6px 0 0;
  color: var(--muted);
}

.layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 16px;
  padding: 18px;
}

.view {
  display: none;
}

.view.active {
  display: grid;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.wide {
  grid-column: 1 / -1;
  min-width: 0;
}

.module-stub {
  display: grid;
  gap: 10px;
  max-width: 720px;
}

.module-stub-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent);
  font-weight: 700;
  background: #f8fbfc;
}

.module-stub h2 {
  margin: 0;
}

.module-stub-description,
.module-stub-hint {
  margin: 0;
  color: var(--muted);
}

.module-stub-status {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.badge-planned {
  width: max-content;
  padding: 4px 8px;
  border-radius: 999px;
  color: #6b4b00;
  background: #fff4ce;
  font-size: 12px;
}

.row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.row.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sectionHead {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
  min-width: 0;
}

.sectionHead h2 {
  margin-bottom: 0;
}

.sectionHead label {
  min-width: 180px;
}

.sectionHeadActions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.pnlControls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: end;
  gap: 12px;
}

.pnlPeriod {
  display: grid;
  grid-template-columns: auto minmax(150px, 1fr) minmax(150px, 1fr);
  gap: 8px;
  align-items: end;
}

.controlLabel {
  color: var(--muted);
  font-size: 13px;
  padding-bottom: 11px;
  white-space: nowrap;
}

.inlineControl {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.inlineControl span {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.inlineControl select {
  min-width: 180px;
}

.pnlControls > button {
  min-height: 41px;
}

.formGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
}

.fullLabel {
  margin-top: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 11px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

textarea {
  resize: vertical;
  min-height: 110px;
}

button {
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  cursor: pointer;
  font: inherit;
}

button.secondary {
  background: var(--accent-2);
}

a.buttonLink {
  display: inline-flex;
  align-items: center;
  min-height: 41px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  text-decoration: none;
}

button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.funnelPeriodSelector {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin-top: 12px;
}

.funnelPeriodSelector label {
  min-width: 180px;
}

.warningText {
  color: var(--danger);
}

.hint {
  font-size: 13px;
}

.rules {
  display: grid;
  gap: 8px;
}

.rules p {
  margin: 0;
  color: var(--text);
}

.status {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.status.ok {
  color: var(--ok);
  border-color: #a6f4c5;
  background: #ecfdf3;
}

.status.bad {
  color: var(--danger);
  border-color: #fecdca;
  background: #fef3f2;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
}

.miniCards {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.miniSummary {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.miniSummary div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 12px;
}

.miniSummary span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.miniSummary strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
}

.dataSourceHeader {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.dataSourceSummary {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfe;
}

.card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.card strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
}

.card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.card.clickable {
  cursor: pointer;
}

.card.clickable:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}


.tableWrap {
  overflow: auto;
  max-height: 430px;
}

.tableWrap.tall {
  max-height: 620px;
}

.tableWrap.compact {
  max-height: 260px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 8px;
  text-align: left;
  white-space: nowrap;
}

th {
  position: sticky;
  top: 0;
  background: #eef2f6;
  z-index: 1;
}

.negative {
  color: var(--danger);
}

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  background: #eef2f6;
}

.badge.high {
  color: var(--danger);
  background: #fef3f2;
}

.badge.medium {
  color: #b54708;
  background: #fffaeb;
}

.badge.low {
  color: var(--ok);
  background: #ecfdf3;
}

.statusBadge {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  background: #eef2f6;
}

.statusBadge.ok {
  color: var(--ok);
  background: #ecfdf3;
}

.statusBadge.warning {
  color: #b54708;
  background: #fffaeb;
}

.statusBadge.watch {
  color: #175cd3;
  background: #eff8ff;
}

.statusBadge.problem {
  color: var(--danger);
  background: #fef3f2;
}

.statusBadge.danger {
  color: var(--danger);
  background: #fef3f2;
}

.statusBadge.blocked {
  color: var(--danger);
  background: #fef3f2;
}

.statusBadge.review {
  color: var(--accent-2);
  background: #eef7fb;
}

.statusBadge.no_sales {
  color: var(--muted);
  background: #f8fafc;
}

.statusBadge.no_action {
  color: var(--ok);
  background: #ecfdf3;
}

.statusBadge.info {
  color: var(--accent-2);
  background: #eef7fb;
}

.statusBadge.scale {
  color: var(--ok);
  background: #ecfdf3;
}

.statusBadge.oos_risk,
.statusBadge.no_ads {
  color: #b54708;
  background: #fffaeb;
}

.statusBadge.frozen {
  color: #175cd3;
  background: #eff8ff;
}

.statusBadge.loss {
  color: var(--danger);
  background: #fef3f2;
}

.statusBadge.bad_cart,
.statusBadge.bad_order,
.statusBadge.bad_economy {
  color: var(--danger);
  background: #fef3f2;
}

.statusBadge.stock_risk {
  color: #b54708;
  background: #fffaeb;
}

.statusBadge.no_data {
  color: var(--muted);
  background: #f8fafc;
}

.statusBadge.confidence_high {
  color: var(--ok);
  background: #ecfdf3;
}

.statusBadge.confidence_medium {
  color: #b54708;
  background: #fffaeb;
}

.statusBadge.confidence_low {
  color: var(--danger);
  background: #fef3f2;
}

.statusBadge.action_urgent {
  color: var(--danger);
  background: #fef3f2;
}

.statusBadge.action_critical {
  color: var(--danger);
  background: #fef3f2;
}

.statusBadge.action_important {
  color: #b54708;
  background: #fffaeb;
}

.statusBadge.action_warning {
  color: #b54708;
  background: #fffaeb;
}

.statusBadge.action_opportunity {
  color: var(--ok);
  background: #ecfdf3;
}

.statusBadge.action_control {
  color: var(--accent-2);
  background: #eef7fb;
}

.statusBadge.action_info {
  color: var(--accent-2);
  background: #eef7fb;
}

.statusBadge.action_ok {
  color: var(--ok);
  background: #ecfdf3;
}

.linkBtn {
  background: transparent;
  color: var(--accent-2);
  padding: 0;
  border-radius: 0;
}

.linkBtn.dangerText {
  color: var(--danger);
}

.inlineActions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 150px;
}

.statusSelect {
  min-width: 170px;
}

.roadmapTitle {
  min-width: 420px;
  white-space: normal;
}

.roadmapTitle strong,
.roadmapTitle span {
  display: block;
}

.roadmapTitle span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.markdownPreview {
  max-height: 520px;
  overflow: auto;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 14px;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.45;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: 420px;
  background: #1f2933;
  color: #fff;
  padding: 12px 14px;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.modalOverlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.42);
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.72);
}

.modal {
  width: min(620px, 100%);
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
  padding: 18px;
}

.modalHeader {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.modalHeader h2 {
  margin-bottom: 4px;
}

#rqTemplatesModal {
  z-index: 80;
  padding: 24px;
}

#financeMetricDetailsModal {
  z-index: 80;
  padding: 24px;
}

.rqTemplatesModal {
  z-index: 81;
  display: flex;
  flex-direction: column;
  width: min(860px, 100%);
  max-height: calc(100vh - 48px);
}

.rqTemplatesContent {
  min-height: 0;
  margin-top: 14px;
  overflow-y: auto;
}

.financeMetricDetailsModal {
  z-index: 81;
  display: flex;
  flex-direction: column;
  width: min(920px, 100%);
  max-height: calc(100vh - 48px);
}

.financeMetricDetailsContent {
  min-height: 0;
  margin-top: 14px;
  overflow-y: auto;
}

.rqTemplatesTableWrap {
  max-height: none;
  overflow-x: visible;
  overflow-y: visible;
}

.rqTemplatesTable {
  width: 100%;
}

.rqTemplatesTable th,
.rqTemplatesTable td {
  vertical-align: top;
}

.rqTemplateText {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.4;
}

.sellerPreview {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.sellerPreviewSummary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
}

.sellerPreviewMetric {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.sellerPreviewMetric span {
  color: var(--muted);
  font-size: 12px;
}

.sellerPreviewNotice {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font-size: 13px;
}

.sellerPreviewTabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sellerPreviewRows {
  max-height: 420px;
  overflow: auto;
}

.sellerPreviewTable {
  min-width: 820px;
}

.sellerPreviewRemoveRowBtn {
  min-width: 34px;
  padding: 4px 8px;
  font-size: 18px;
  line-height: 1;
}

.timer {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  font-variant-numeric: tabular-nums;
  color: var(--accent-2);
  background: #f8fafc;
}

.progressBar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
  margin: 16px 0;
}

.progressFill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.25s ease;
}

.processSteps {
  display: grid;
  gap: 8px;
}

.processStep {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.stepMark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #eef2f6;
  color: var(--muted);
  font-size: 13px;
}

.processStep.active .stepMark {
  background: var(--accent);
  color: #fff;
}

.processStep.done .stepMark {
  background: #ecfdf3;
  color: var(--ok);
}

.processStep.error .stepMark {
  background: #fef3f2;
  color: var(--danger);
}

.processStep strong {
  display: block;
  font-size: 14px;
}

.processStep span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.import-status {
  min-height: 2.6em;
  line-height: 1.3;
  margin: 12px 0;
}

.modalActions {
  justify-content: flex-end;
}

body:not(.showTechnical) .technicalData {
  display: none;
}

.compactBtn {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}

.rqRefreshControls {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.rqRefreshToggle,
.rqRefreshInterval {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.rqRefreshToggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.rqRefreshInterval select {
  min-height: 34px;
  min-width: 132px;
  padding-top: 6px;
  padding-bottom: 6px;
}



.freshnessMeta {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--muted);
  background: #f8fafc;
  font-size: 12px;
  white-space: nowrap;
}

.freshnessMeta[data-status="trusted"],
.freshnessMeta[data-status="fresh"],
.freshnessMeta[data-status="ok"] {
  color: var(--ok);
  background: #ecfdf3;
}

.freshnessMeta[data-status="partial"],
.freshnessMeta[data-status="stale"] {
  color: #b54708;
  background: #fffaeb;
}

.freshnessMeta[data-status="blocked"],
.freshnessMeta[data-status="missing"],
.freshnessMeta[data-status="initial_setup"] {
  color: var(--danger);
  background: #fef3f2;
}

.blockWarning {
  grid-column: 1 / -1;
  border: 1px solid #fedf89;
  border-radius: 8px;
  padding: 8px 10px;
  color: #93370d;
  background: #fffaeb;
  font-size: 13px;
}

.warning-banner {
  border: 1px solid #fedf89;
  border-radius: 8px;
  padding: 10px 12px;
  color: #93370d;
  background: #fffaeb;
  font-size: 13px;
}

.info-banner {
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 10px 12px;
  color: #1e3a8a;
  background: #eff6ff;
  font-size: 13px;
}

.clientCreateForm {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr)) auto;
  gap: 10px;
  align-items: end;
}

.clientCreateForm label {
  min-width: 0;
}

.clientCreateForm input {
  width: 100%;
}

.actionFeed {
  display: grid;
  gap: 10px;
}

.compactFeed {
  grid-template-columns: repeat(2, minmax(260px, 1fr));
}

.actionItem {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent-2);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.actionItem.critical {
  border-left-color: var(--danger);
}

.actionItem.warning {
  border-left-color: #b54708;
}

.actionItem.info {
  border-left-color: var(--accent-2);
}

.actionItem.ok {
  border-left-color: var(--ok);
}

.actionItem h3 {
  margin: 8px 0 0;
  font-size: 15px;
}

.actionItem p {
  margin-top: 5px;
}

.caseMetaLine {
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.caseDecisionDetails {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.caseDecisionDetails span {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
  color: var(--text);
  font-size: 12px;
  padding: 4px 6px;
}

.caseDetail {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.35;
}

.caseDetail strong,
.caseStatusLine {
  color: var(--text);
}

.caseImpact {
  color: #7a2e0e;
}

.caseFix {
  color: #075e59;
}

.caseSchedulerDetails {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 6px 14px;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #f8fbff;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.caseSchedulerDetails strong {
  color: var(--text);
}

.caseStatusLine {
  margin-top: 8px;
  font-size: 12px;
}

.autoFixNote {
  color: var(--muted);
  font-size: 12px;
}

.actionMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.impact {
  display: block;
  margin-top: 6px;
  color: var(--text);
}

.emptyState {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 16px;
  color: var(--muted);
  background: #fbfcfe;
}

@media (max-width: 860px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topActions,
  .tabs {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .layout,
  .row,
    .cards,
    .miniCards,
    .miniSummary,
    .formGrid,
    .compactFeed,
    .sectionHead {
    grid-template-columns: 1fr;
  }

  .actionItem {
    grid-template-columns: 1fr;
  }

  .sectionHead {
    align-items: stretch;
    flex-direction: column;
  }

  .pnlControls {
    justify-content: stretch;
    align-items: stretch;
    flex-direction: column;
  }

  .pnlPeriod {
    grid-template-columns: 1fr;
  }

  .controlLabel {
    padding-bottom: 0;
  }

  .inlineControl {
    align-items: stretch;
    flex-direction: column;
  }
}

/* === A2UI Components === */
:root {
  --a2-bg: #f4f6f8;
  --a2-surface: #ffffff;
  --a2-surface-soft: #f8fafc;
  --a2-text: #17212b;
  --a2-muted: #64748b;
  --a2-line: #d8dee8;
  --a2-line-soft: #edf1f5;
  --a2-primary: #0f766e;
  --a2-primary-strong: #115e59;
  --a2-info: #155e75;
  --a2-danger: #b42318;
  --a2-ok: #067647;
  --a2-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
  --bg: var(--a2-bg);
  --panel: var(--a2-surface);
  --text: var(--a2-text);
  --muted: var(--a2-muted);
  --line: var(--a2-line);
  --accent: var(--a2-primary);
  --accent-2: var(--a2-info);
  --danger: var(--a2-danger);
  --ok: var(--a2-ok);
}

body {
  min-width: 320px;
  overflow-x: hidden;
  background: linear-gradient(180deg, #ffffff 0, var(--a2-bg) 220px), var(--a2-bg);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  align-items: flex-start;
  padding: 16px 22px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--a2-line-soft);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(12px);
}

.topbar h1 {
  font-size: 22px;
  line-height: 1.15;
}

.topbar p {
  max-width: 560px;
  margin-top: 5px;
  font-size: 13px;
}

.topActions {
  flex: 1;
  justify-content: flex-end;
  align-items: flex-start;
  min-width: 0;
}

.tabs {
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 980px;
  padding: 4px;
  border: 1px solid var(--a2-line-soft);
  border-radius: 8px;
  background: var(--a2-surface-soft);
}

.tab {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--a2-muted);
  padding: 7px 10px;
  font-size: 13px;
}

.tab:hover {
  background: #ffffff;
  color: var(--a2-text);
}

.tab.active {
  background: var(--a2-primary);
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(15, 118, 110, 0.2);
}

.layout {
  max-width: 1480px;
  margin: 0 auto;
  padding: 18px 22px 28px;
}

.panel,
.card,
.miniSummary div,
.tableWrap {
  border-color: var(--a2-line-soft);
  border-radius: 8px;
}

.panel {
  box-shadow: var(--a2-shadow);
}

input,
textarea,
select {
  min-height: 40px;
  border-color: #cfd7e3;
  border-radius: 6px;
}

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(15, 118, 110, 0.14);
  border-color: var(--a2-primary);
}

button,
a.buttonLink {
  min-height: 40px;
  border: 1px solid var(--a2-primary);
  border-radius: 6px;
  background: var(--a2-primary);
  box-shadow: 0 6px 14px rgba(15, 118, 110, 0.14);
}

button:hover,
a.buttonLink:hover {
  background: var(--a2-primary-strong);
}

button.secondary {
  border-color: #cbd5e1;
  background: #ffffff;
  color: var(--a2-info);
  box-shadow: none;
}

button.secondary:hover {
  border-color: var(--a2-info);
  background: #eff8ff;
}

.card,
.miniSummary div {
  min-width: 0;
  background: linear-gradient(180deg, #ffffff 0, #fbfcfe 100%);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}

.card strong,
.miniSummary strong {
  overflow-wrap: anywhere;
  color: var(--a2-text);
  font-variant-numeric: tabular-nums;
}

.tableWrap {
  border: 1px solid var(--a2-line-soft);
  background: #ffffff;
}

.ownerCommissionTableWrap {
  overflow-x: auto;
  overflow-y: visible;
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: none;
}

.tabBar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tabBtn.disabled,
.tabBtn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}

.ownerTariffsFilters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-top: 4px;
  margin-bottom: 12px;
}

.ownerTariffsFilters label,
.ownerTariffsPageSizeControl {
  display: grid;
  gap: 4px;
  color: var(--a2-muted);
  font-size: 13px;
}

.ownerTariffsSearchField {
  flex: 2 1 260px;
  min-width: 260px;
}

.ownerTariffsCategoryField {
  flex: 1.5 1 220px;
  min-width: 220px;
}

.ownerTariffsDateField {
  flex: 0 0 180px;
}

.ownerTariffsPageSizeControl {
  grid-auto-flow: column;
  align-items: center;
  gap: 8px;
}

.ownerTariffsPageSizeControl select {
  min-width: 82px;
}

.ownerCommissionTable {
  min-width: 1520px;
  table-layout: fixed;
}

.ownerCommissionTable th {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.25;
}

.ownerCommissionTable td {
  white-space: normal;
  overflow-wrap: anywhere;
}

.ownerCommissionTable .numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ownerCommissionColCategory {
  width: 300px;
}

.ownerCommissionColSubject {
  width: 340px;
}

.ownerCommissionColSmall {
  width: 110px;
}

.ownerCommissionColMedium {
  width: 150px;
}

.ownerCommissionColLarge {
  width: 180px;
}

.ownerCommissionColDate {
  width: 125px;
}

.ownerSortableHeader {
  min-height: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font: inherit;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}

.ownerSortableHeader:hover {
  background: transparent;
  color: var(--a2-primary);
}

.ownerTablePagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ownerModulesAccessTable {
  width: 100%;
}

.ownerModulesAccessTable td,
.ownerModulesAccessTable th {
  vertical-align: top;
}

.ownerLegacyModuleAccess {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.ownerModuleAccessActions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

table {
  border-collapse: separate;
  border-spacing: 0;
}

th,
td {
  border-bottom-color: var(--a2-line-soft);
  padding: 9px 10px;
  vertical-align: middle;
}

th {
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

tbody tr:hover td {
  background: #f8fafc;
}

.priorityBadge,
.taskGroupBadge,
.taskStatus,
.cardScore {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.priorityBadge.p1 {
  background: #fee2e2;
  color: #991b1b;
}

.priorityBadge.p2 {
  background: #fef3c7;
  color: #92400e;
}

.priorityBadge.p3 {
  background: #e0f2fe;
  color: #075985;
}

.taskGroupBadge.visual {
  background: #f3e8ff;
  color: #6b21a8;
}

.taskGroupBadge.seo {
  background: #dcfce7;
  color: #166534;
}

.taskGroupBadge.offer {
  background: #ffedd5;
  color: #9a3412;
}

.taskGroupBadge.stock {
  background: #dbeafe;
  color: #1d4ed8;
}

.taskGroupBadge.data {
  background: #f1f5f9;
  color: #334155;
}

.taskStatus.new,
.taskStatus.planned {
  background: #f1f5f9;
  color: #475569;
}

.taskStatus.in_progress {
  background: #dbeafe;
  color: #1d4ed8;
}

.taskStatus.done {
  background: #dcfce7;
  color: #166534;
}

.taskStatus.skipped,
.taskStatus.failed {
  background: #fee2e2;
  color: #991b1b;
}

.cardScore {
  background: #eef2ff;
  color: #3730a3;
}

.adsBadge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  background: #f1f5f9;
  color: #334155;
}

.adsBadge.increase,
.adsBadge.opportunity {
  background: #dcfce7;
  color: #166534;
}

.adsBadge.keep {
  background: #e0f2fe;
  color: #075985;
}

.adsBadge.decrease,
.adsBadge.pause,
.adsBadge.do_not_launch {
  background: #fef3c7;
  color: #92400e;
}

.adsBadge.stop,
.adsBadge.check_card {
  background: #fee2e2;
  color: #991b1b;
}

.adsBadge.check_seo,
.adsBadge.control {
  background: #f3e8ff;
  color: #6b21a8;
}

.priceBadge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  background: #f1f5f9;
  color: #334155;
}

.priceBadge.raise,
.priceBadge.move_to_target {
  background: #dcfce7;
  color: #166534;
}

.priceBadge.lower {
  background: #e0f2fe;
  color: #075985;
}

.priceBadge.hold {
  background: #eef2ff;
  color: #3730a3;
}

.priceBadge.do_not_lower,
.priceBadge.load_prices {
  background: #fef3c7;
  color: #92400e;
}

.priceBadge.raise_or_fix_economy {
  background: #fee2e2;
  color: #991b1b;
}

.rqMetrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.rqMetrics div {
  min-width: 0;
  border: 1px solid var(--a2-line-soft);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 12px;
}

.rqMetrics span {
  display: block;
  color: var(--a2-muted);
  font-size: 12px;
}

.rqMetrics strong {
  display: block;
  margin-top: 6px;
  color: var(--a2-text);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.rqFilters {
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
}

.rqSectionTabs {
  margin-top: 14px;
}

.rqIntegrationForm {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) minmax(160px, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
}

.rqIntegrationForm label {
  display: grid;
  gap: 6px;
  color: var(--a2-muted);
  font-size: 12px;
}

.rqIntegrationActions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.rqTokenOverview {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 8px;
  grid-column: 1 / -1;
}

.rqTokenCards {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 10px;
  grid-column: 1 / -1;
}

.rqTokenCards.single {
  grid-template-columns: minmax(260px, 420px);
}

.miniSummary .rqTokenOverview,
.miniSummary .rqTokenCards,
.miniSummary .rqTokenCardHead,
.miniSummary .rqTokenUsage {
  border: 0;
  background: transparent;
  padding: 0;
}

.rqTokenCard {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 12px;
}

.rqTokenCard.active {
  border-color: #0f766e;
  box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.16);
}

.rqShadowMode {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  margin-top: 16px;
  padding: 14px;
}

.rqShadowProgress {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 10px;
}

.rqShadowProgressItem {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.rqShadowProgressItem span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.rqShadowProgressItem strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
}

.rqShadowProgressTrack {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f7;
  margin-top: 8px;
}

.rqShadowProgressFill {
  height: 100%;
  border-radius: inherit;
  background: #0f766e;
}

.rqTokenCardHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.rqTokenCardHead strong,
.rqTokenCardHead span {
  display: block;
}

.rqTokenCardHead span:not(.statusBadge) {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.rqTokenCard dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.rqTokenCard dl div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}

.rqTokenCard dt {
  color: var(--muted);
  font-size: 12px;
}

.rqTokenCard dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 600;
}

.rqTokenUsage {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.rqInlineImportResult:empty {
  display: none;
}

.rqHistoryImportBlock {
  margin: 14px 0 18px;
  padding: 14px;
  border: 1px solid var(--a2-line-soft);
  border-radius: 8px;
  background: #fbfcfe;
}

.rqHistoryImportBlock .rqInlineImportResult {
  margin-top: 10px;
}

.rqImportResultActions {
  align-items: center;
  justify-content: flex-end;
}

.rqImportProgressCard {
  grid-column: 1 / -1;
}

.rqImportProgressCard p {
  margin: 8px 0 0;
  color: var(--muted);
}

.rqImportProgressBar {
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.rqImportProgressBar i {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.25s ease;
}

.rqImportProgressBar.isIndeterminate i {
  animation: rqImportPulse 1.1s ease-in-out infinite alternate;
}

.rqImportWarning {
  color: #b45309 !important;
  font-weight: 600;
}

@keyframes rqImportPulse {
  from {
    transform: translateX(-18%);
  }
  to {
    transform: translateX(210%);
  }
}

.rqSyncSettings {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 14px 0;
  padding-top: 12px;
  border-top: 1px solid var(--a2-line-soft);
}

.rqSyncSettings label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--a2-muted);
  font-size: 12px;
}

.rqSyncSettings select {
  min-height: 32px;
  padding: 4px 8px;
  font-size: 12px;
}

.rqSyncSettings input[type="checkbox"] {
  min-height: 0;
  width: 16px;
  height: 16px;
}

.rqTextCell,
.rqProductCell {
  display: grid;
  gap: 4px;
  min-width: 220px;
  max-width: 460px;
  white-space: normal;
}

.rqTextCell span,
.rqTextCell small,
.rqProductCell span {
  color: var(--a2-muted);
  font-size: 12px;
  line-height: 1.35;
}

.rqActions {
  display: grid;
  grid-template-columns: 34px;
  gap: 6px;
  min-width: 34px;
  width: max-content;
}

.rqActions .compactBtn {
  min-height: 30px;
  padding: 5px 8px;
  font-size: 12px;
}

.rqActions .rqIconBtn {
  width: 34px;
  min-width: 34px;
  min-height: 32px;
  padding: 0;
  line-height: 1;
  font-size: 16px;
  font-weight: 700;
}

.rqActions .rqIconBtn:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  box-shadow: none;
  filter: grayscale(1);
}

.rqReplyEditor {
  width: 100%;
  min-height: 76px;
  resize: vertical;
  font-size: 12px;
  line-height: 1.35;
}

.rqTemplateEditor {
  display: grid;
  gap: 6px;
}

.rqTemplateNotice {
  color: var(--a2-muted);
  font-size: 12px;
  line-height: 1.35;
}

.rqAiPromptBox {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--a2-line-soft);
  border-radius: 8px;
  background: #f8fafc;
}

.rqPromptEditor {
  min-height: 54px;
}

.rqEditActions {
  display: grid;
  gap: 6px;
  grid-template-columns: 34px;
  min-width: 0;
  width: max-content;
}

.rqEditActions .compactBtn {
  width: 34px;
  min-width: 34px;
  min-height: 30px;
  padding: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.rqReviewBlocks {
  display: grid;
  gap: 12px;
}

.rqReviewBlock {
  border: 1px solid var(--a2-line-soft);
  border-radius: 8px;
  background: #ffffff;
}

.rqReviewBlock summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  color: var(--a2-text);
  font-weight: 700;
}

.rqLifecycleGroups {
  display: grid;
  gap: 14px;
}

.rqLifecycleSection {
  display: grid;
  gap: 10px;
}

.rqLifecycleCards {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}

.rqLifecycleCard {
  display: grid;
  gap: 8px;
  border: 1px solid var(--a2-line-soft);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfe;
}

.rqLifecycleCardHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.rqLifecycleCardText {
  display: grid;
  gap: 4px;
  color: var(--a2-muted);
  font-size: 12px;
  line-height: 1.35;
}

.rqLifecycleReadonly {
  color: var(--a2-muted);
  font-size: 12px;
  font-weight: 700;
}

.rqPageControls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.rqPageControls .hint {
  margin-right: auto;
}

.rqAutomationSettings {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 10px 12px;
  border-top: 1px solid var(--a2-line-soft);
  background: #fbfcfe;
}

.rqAutomationSettings label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--a2-muted);
  font-size: 12px;
}

.rqAutomationSettings select {
  min-height: 32px;
  padding: 4px 8px;
  font-size: 12px;
}

.rqAutomationSettings input[type="checkbox"] {
  min-height: 0;
  width: 16px;
  height: 16px;
}

.rqAutomationSettings .hint {
  margin-left: auto;
  font-size: 12px;
}

.rqProcessingModes {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 10px;
}

.rqProcessingModeRow {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 190px);
  gap: 6px 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--a2-line-soft);
  border-radius: 8px;
  background: #fbfcfe;
}

.rqProcessingModeRow span,
.rqProcessingModeRow em {
  min-width: 0;
}

.rqProcessingModeRow strong,
.rqProcessingModeRow small,
.rqProcessingModeRow em {
  display: block;
}

.rqProcessingModeRow small,
.rqProcessingModeRow em {
  color: var(--a2-muted);
  font-size: 12px;
  font-style: normal;
  overflow-wrap: anywhere;
}

.rqProcessingModeRow select {
  min-width: 0;
}

.rqProcessingModeRow .hint {
  grid-column: 1 / -1;
}

.rqScenarioHint {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid #f2d58a;
  border-radius: 6px;
  background: #fff8dc;
  color: #6b5200;
  font-size: 12px;
}

.rqScenarioHint .linkBtn {
  justify-self: start;
}

.rqReviewBlock .tableWrap {
  max-width: 100%;
  max-height: none;
  overflow-x: hidden;
  overflow-y: visible;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0 0 8px 8px;
}

.rqReviewCardList {
  padding: 10px 12px;
  background: #ffffff;
}

.rqReviewCards {
  display: grid;
  gap: 10px;
}

.rqReviewCard {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr) minmax(118px, 150px);
  gap: 12px;
  align-items: start;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--a2-line-soft);
  border-radius: 8px;
  background: #fbfcfe;
}

.rqReviewCard.selected {
  border-color: #99f6e4;
  background: #f0fdfa;
}

.rqReviewCardBulk {
  align-self: start;
  padding-top: 2px;
}

.rqReviewCard.hasBulk {
  grid-template-columns: 24px minmax(170px, 210px) minmax(0, 1fr) minmax(118px, 150px);
}

.rqReviewCardMeta,
.rqReviewCardBody,
.rqReviewCardSide,
.rqReviewCardSection {
  min-width: 0;
}

.rqReviewCardMeta {
  display: grid;
  gap: 5px;
  color: var(--a2-muted);
  font-size: 12px;
  line-height: 1.35;
}

.rqReviewCardMeta strong {
  color: var(--a2-text);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.rqReviewCardMeta span {
  overflow-wrap: anywhere;
}

.rqReviewCardBody {
  display: grid;
  gap: 10px;
}

.rqReviewCardSection {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--a2-line-soft);
  border-radius: 8px;
  background: #ffffff;
}

.rqReviewCardSection h4 {
  margin: 0;
  color: var(--a2-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
}

.rqReviewCardDraft {
  background: #fcfdff;
}

.rqReviewCardSide {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.rqReviewCardStatus .rqStatusStack {
  justify-content: flex-end;
}

.rqBlockPagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid var(--a2-line-soft);
  background: #fbfcfe;
}

.rqPaginationText {
  color: var(--a2-muted);
  font-size: 12px;
}

.rqPaginationButtons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.rqBlockPagination .compactBtn.active,
.rqBlockPagination .compactBtn[aria-current="page"] {
  border-color: var(--a2-primary);
  background: var(--a2-primary);
  color: #ffffff;
  min-width: 34px;
  text-align: center;
  cursor: default;
  opacity: 1;
}

.rqDraftMissing {
  color: var(--a2-muted);
  font-weight: 600;
}

.rqBlockPagination:empty {
  display: none;
}

.rqStatsSection {
  display: grid;
  gap: 14px;
}

.rqStatsSection.hidden {
  display: none;
}

.rqStatsHeader {
  display: grid;
  gap: 3px;
  padding: 0 12px 10px;
}

.rqStatsHeader h3 {
  margin: 0;
  font-size: 15px;
}

.rqStatsCards {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
  padding: 0 12px 12px;
}

.rqStatsCard {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--a2-line-soft);
  border-radius: 8px;
  background: #fbfcfe;
}

.rqStatsCard span,
.rqStatsCard small {
  color: var(--a2-muted);
}

.rqStatsCard strong {
  color: var(--a2-text);
  font-size: 18px;
  line-height: 1.15;
}

.rqStatsTable th,
.rqStatsTable td {
  font-size: 12px;
}

#reviewsQuestionsView,
#reviewsQuestionsView .panel,
#reviewsQuestionsView .rqReviewBlock,
#reviewsQuestionsView .tableWrap {
  min-width: 0;
}

#reviewsQuestionsView .tableWrap {
  max-width: 100%;
  overflow-x: hidden;
}

#reviewsQuestionsView table {
  table-layout: fixed;
  width: 100%;
}

#reviewsQuestionsView th,
#reviewsQuestionsView td {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

#reviewsQuestionsView .rqDateColumn {
  width: 88px;
}

#reviewsQuestionsView .rqProductColumn {
  width: 210px;
}

#reviewsQuestionsView .rqRatingColumn {
  width: 54px;
  text-align: center;
}

#reviewsQuestionsView .rqTextColumn {
  width: 14%;
}

#reviewsQuestionsView .rqAnswerColumn {
  width: 34%;
}

#reviewsQuestionsView .rqStatusColumn {
  width: 150px;
}

#reviewsQuestionsView .rqActionsColumn {
  width: 42px;
}

#reviewsQuestionsView .rqProductCell,
#reviewsQuestionsView .rqTextCell {
  min-width: 0;
  max-width: 100%;
}

#reviewsQuestionsView .rqActions {
  grid-template-columns: 34px;
  min-width: 0;
}

#reviewsQuestionsView .rqActions .compactBtn,
#reviewsQuestionsView .rqEditActions .compactBtn {
  width: 34px;
}

#reviewsQuestionsView .rqWriteBlockedButton:disabled {
  background: #eef2f6;
  border-color: var(--line);
  color: var(--muted);
  cursor: not-allowed;
  opacity: 1;
}

#reviewsQuestionsView .rqActions .rqIconBtn {
  width: 34px;
}

.rqLoadingState {
  padding: 14px 16px;
  color: var(--a2-muted);
  background: #f8fafc;
  border: 1px dashed var(--a2-line-soft);
  border-radius: 8px;
  font-weight: 600;
}

.rqLoadingState.error {
  color: #9f1239;
  background: #fff5f5;
  border-color: #fecdd3;
}

.rqLoadingState.empty {
  color: var(--a2-muted);
  background: #ffffff;
}

.rqMediaPreview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.rqMediaThumb {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
  overflow: hidden;
  cursor: pointer;
}

.rqMediaThumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rqVideoThumb {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
}

.rqMediaDialog {
  position: relative;
  width: min(94vw, 1120px);
  height: min(88vh, 780px);
  display: grid;
  place-items: center;
  padding: 44px 64px;
  border-radius: 8px;
  background: #0f172a;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.rqMediaContent,
.rqMediaContent img,
.rqMediaContent video {
  max-width: 100%;
  max-height: 100%;
}

.rqMediaContent {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  padding-bottom: 24px;
  overflow: hidden;
}

.rqMediaContent img,
.rqMediaContent video {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(94vw - 160px);
  max-height: calc(88vh - 120px);
  border-radius: 6px;
  object-fit: contain;
}

.rqMediaClose,
.rqMediaNav,
.rqMediaCounter {
  position: absolute;
  z-index: 2;
}

.rqMediaClose {
  top: 12px;
  right: 12px;
}

.rqMediaPrev {
  left: 14px;
}

.rqMediaNext {
  right: 14px;
}

.rqMediaNav {
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  font-size: 24px;
}

.rqMediaCounter {
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  color: white;
  font-size: 13px;
}

.rqHistoryRows {
  display: grid;
  gap: 8px;
}

.rqHistoryEvent {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}

.rqHistoryEvent div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.rqHistoryEvent p {
  margin: 6px 0;
}

button.dangerText {
  color: var(--a2-danger);
}

.rqStatusStack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.statusBadge.rqDecision_error,
.statusBadge.rqSend_error {
  color: #991b1b;
  background: #fee2e2;
}

.statusBadge.rqDecision_pending,
.statusBadge.rqSend_not_sent {
  color: #92400e;
  background: #fef3c7;
}

.statusBadge.rqDecision_approved,
.statusBadge.rqSend_sent {
  color: #166534;
  background: #dcfce7;
}

.statusBadge.rqSend_ready_to_send {
  color: #175cd3;
  background: #eff8ff;
}

.rqBulkActionBar {
  position: sticky;
  bottom: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.rqBulkActionBar.isRunning {
  border-color: #93c5fd;
  background: #eff6ff;
}

.rqBulkActionBar.isSuccess {
  border-color: #86efac;
  background: #f0fdf4;
}

.rqBulkActionBar.isWarning {
  border-color: #facc15;
  background: #fefce8;
}

.rqBulkActionBar.isError {
  border-color: #fca5a5;
  background: #fef2f2;
}

.rqBulkActionBar.isRunning span::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border: 2px solid #bfdbfe;
  border-top-color: var(--a2-accent);
  border-radius: 50%;
  animation: rqSpin 0.8s linear infinite;
}

@keyframes rqSpin {
  to {
    transform: rotate(360deg);
  }
}

.rqBulkActionBar span {
  margin-right: auto;
  font-weight: 700;
}

.rqBulkSelectColumn {
  width: 36px;
  min-width: 36px;
  text-align: center;
}

.rqBulkCheckbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.rqBulkCheckbox:disabled {
  cursor: not-allowed;
}

.rqRowSelected {
  background: #f0fdfa;
}

.rqToneRules {
  margin: 10px 0 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.rqToneRulesHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.rqToneRulesHeader strong,
.rqToneRulesHeader small {
  display: block;
}

.rqToneRulesHeader small {
  margin-top: 2px;
  color: var(--muted);
}

.rqToneRulesPrompt {
  width: 100%;
  min-height: 68px;
  resize: vertical;
}

.subPanel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.subPanel h2 {
  margin: 0;
}

@media (max-width: 1040px) {
  .topbar {
    flex-direction: column;
  }

  .topActions,
  .tabs {
    width: 100%;
    justify-content: flex-start;
  }

  .rqMetrics,
  .rqFilters,
  .rqIntegrationForm,
  .rqTokenOverview,
  .rqTokenCards {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }
}

@media (max-width: 980px) {
  .rqReviewCard,
  .rqReviewCard.hasBulk {
    grid-template-columns: 1fr;
  }

  .rqReviewCardBulk,
  .rqReviewCardSide {
    justify-self: start;
    justify-items: start;
  }

  .rqReviewCardStatus .rqStatusStack {
    justify-content: flex-start;
  }
}

@media (max-width: 860px) {
  .layout {
    padding: 12px;
  }

  .tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tab {
    width: 100%;
  }

  .rqMetrics,
  .rqFilters,
  .rqIntegrationForm,
  .rqTokenOverview,
  .rqTokenCards,
  .rqActions {
    grid-template-columns: 1fr;
  }

  .rqIntegrationActions {
    justify-content: flex-start;
  }
}

/* Minimal shell: one compact header, no drawers, no horizontal viewport scroll. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px 16px;
  align-items: center;
  padding: 12px 18px;
  background: #fff;
  border-bottom: 2px solid #f59e0b;
  box-shadow: none;
  backdrop-filter: none;
}

.brandBlock {
  min-width: 0;
}

.topbar h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.topbar p {
  margin: 4px 0 0;
  max-width: none;
  font-size: 12px;
}

.topActions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.tabs {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  white-space: normal;
}

.tab {
  min-height: 32px;
  width: auto;
  padding: 6px 10px;
  border: 1px solid var(--a2-line-soft);
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
  color: var(--a2-muted);
  font-size: 13px;
}

.tab:hover {
  background: #f8fafc;
  color: var(--a2-text);
}

.tab.active {
  background: var(--a2-primary);
  color: #fff;
  box-shadow: none;
}

.userContextBadge,
.status,
.topActions > button {
  flex: 0 0 auto;
}

.panel,
.tableWrap,
.rqTableWrap,
.wide {
  max-width: 100%;
}

.sellerDataSummary,
.sellerDataContractGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.sellerDataContractGrid span,
.sellerDataFlow li {
  color: var(--a2-muted);
}

.sellerDataContractGrid span {
  padding: 8px 10px;
  border: 1px solid var(--a2-line-soft);
  border-radius: 6px;
  background: #f8fafc;
}

.sellerTaxProfileForm {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  align-items: end;
  margin-top: 12px;
}

.sellerTaxProfileForm .wideField {
  grid-column: span 2;
}

.sellerTaxActiveProfile,
.sellerTaxHistory {
  margin-top: 12px;
}

.sellerTaxActiveProfile dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  margin: 0;
}

.sellerTaxActiveProfile div {
  border: 1px solid var(--a2-line-soft);
  border-radius: 8px;
  background: #f8fafc;
  padding: 8px 10px;
}

.sellerTaxActiveProfile dt {
  color: var(--a2-muted);
  font-size: 12px;
}

.sellerTaxActiveProfile dd {
  margin: 4px 0 0;
  font-weight: 700;
}

.financeWbSummary {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.financeMarketplaceExpensesCard {
  display: grid;
  gap: 12px;
}

.financeMarketplaceExpensesTotal {
  grid-template-columns: minmax(220px, 360px);
  margin-top: 0;
}

.financeMarketplaceExpensesMain {
  border-color: #99f6e4 !important;
  background: linear-gradient(180deg, #f0fdfa 0, #ffffff 100%) !important;
}

.financeMarketplaceExpensesMain strong {
  font-size: 24px;
}

.financeMarketplaceExpensesGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.financeMarketplaceExpenseCard {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--a2-line-soft);
  border-radius: 8px;
  background: #fbfcfe;
}

.financeMarketplaceExpenseCard span {
  color: var(--a2-muted);
  font-size: 13px;
}

.financeMarketplaceExpenseCard strong {
  color: var(--a2-text);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.financeMarketplaceExpenseCard small,
.financeMarketplaceExpenseCard em {
  color: var(--a2-muted);
  font-size: 12px;
  font-style: normal;
}

.financeMarketplaceExpensesEmpty {
  padding: 10px 12px;
  border: 1px dashed var(--a2-line-soft);
  border-radius: 8px;
  background: #f8fafc;
}

.financePayoutReconciliationCard {
  display: grid;
  gap: 12px;
}

.financePayoutReconciliationGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.financePayoutReconciliationItem {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--a2-line-soft);
  border-radius: 8px;
  background: #fbfcfe;
}

.financePayoutReconciliationItem.result {
  border-color: #99f6e4;
  background: linear-gradient(180deg, #f0fdfa 0, #ffffff 100%);
}

.financePayoutReconciliationItem span,
.financePayoutReconciliationItem small {
  color: var(--a2-muted);
  font-size: 13px;
}

.financePayoutReconciliationItem strong {
  color: var(--a2-text);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.financePayoutReconciliationEmpty {
  padding: 10px 12px;
  border: 1px dashed var(--a2-line-soft);
  border-radius: 8px;
  background: #f8fafc;
}

.financeSummaryMetric strong {
  font-variant-numeric: tabular-nums;
}

.financeWbSummary .financeSummaryMetricButton {
  appearance: none;
  display: block;
  width: 100%;
  min-height: auto;
  border: 1px solid var(--a2-line-soft);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0, #fbfcfe 100%);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
  padding: 12px;
  text-align: left;
  color: var(--a2-text);
  font: inherit;
  cursor: pointer;
}

.financeWbSummary .financeSummaryMetricButton:hover {
  border-color: #0f766e;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.financeWbSummary .financeSummaryMetricButton:focus-visible {
  border-color: #0f766e;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.16);
  outline: none;
}

.financeMetricDetailsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.financeMetricDetailsSection {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
  padding: 12px;
}

.financeMetricDetailsSection h3 {
  margin: 0 0 8px;
  font-size: 13px;
}

.financeMetricDetailsSection p,
.financeMetricDetailsSection ul {
  margin: 0;
}

.financeMetricDetailsSection ul {
  padding-left: 18px;
}

.financeMetricDetailsSection strong {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.financeMetricDetailsStats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.financeMetricDetailsStats div {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  padding: 8px 10px;
}

.financeMetricDetailsStats span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.financeMetricDetailsStats strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
}

.financeMetricDetailsWide {
  grid-column: 1 / -1;
}

.financeMetricDetailsTable {
  margin-top: 8px;
  max-height: none;
  overflow-x: auto;
  overflow-y: visible;
}

.financeMissingDataExplanation {
  border: 1px solid #f5d78e;
  background: #fff8e6;
  color: #5f4700;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 10px 0 12px;
}

.financeMissingDataExplanation p {
  margin: 6px 0;
}

.financeMissingDataExplanation ul {
  margin: 8px 0;
  padding-left: 18px;
}

.financeMissingDataTitle {
  font-weight: 700;
  margin-bottom: 4px;
}

.financeInfoMarker {
  color: #b7791f;
  cursor: help;
  font-size: 13px;
  font-weight: 700;
  vertical-align: middle;
}

.sellerDataFlow {
  margin: 8px 0 0;
  padding-left: 20px;
}

.rqTemplateApproval {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.rqTemplateToggle {
  position: relative;
  width: 38px;
  min-width: 38px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #cbd5e1;
  cursor: pointer;
}

.rqTemplateToggle span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 120ms ease;
}

.rqTemplateToggle.isOn {
  background: #0f9f6e;
}

.rqTemplateToggle.isOn span {
  transform: translateX(16px);
}

.rqTemplateToggle:disabled {
  cursor: wait;
  opacity: 0.55;
}

.sellerDirectoryToolbar {
  align-items: center;
}

.sellerDirectoryLimitControl {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--a2-muted);
  font-size: 13px;
}

.sellerDirectoryLimitControl select {
  min-width: 82px;
}

.sellerDirectoryTable {
  max-height: none;
  overflow-x: auto;
  overflow-y: visible;
}

.sellerProductBulkActionBar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid var(--a2-line-soft);
  border-radius: 8px;
  background: #ffffff;
}

.sellerProductBulkActionBar.hidden {
  display: none;
}

.sellerProductBulkActionBar span {
  font-weight: 700;
}

.sellerProductBulkActionBar input {
  min-width: 220px;
}

.sellerProductBulkWarning {
  flex-basis: 100%;
  margin: 0;
}

.sellerProductBulkSelectColumn {
  width: 42px;
  min-width: 42px;
  text-align: center;
}

.sellerProductBulkCheckbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.sellerProductRowSelected {
  background: #f0fdfa;
}

.sellerProductCostEditor {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  max-width: 300px;
}

.sellerProductCostEditor small {
  flex-basis: 100%;
}

.sellerProductCostEditor input[data-seller-product-cost-input] {
  width: 120px;
  min-width: 110px;
}

.sellerProductCostEditor input[data-seller-product-cost-comment] {
  width: 150px;
  min-width: 130px;
}

.sellerProductCostEditor .errorText {
  color: #b42318;
  font-weight: 600;
}

.sellerProductCostInfo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-size: 12px;
  font-weight: 700;
  cursor: help;
}

.sellerProductCostInfo.warning {
  margin-left: 6px;
  background: #fef3c7;
  color: #92400e;
}

.financeSkuTable {
  max-height: none;
  overflow-x: auto;
  overflow-y: visible;
}

.sellerDirectoryPagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  color: var(--a2-muted);
  font-size: 13px;
}

.sellerDirectoryPagination.hidden {
  display: none;
}

.sellerDirectoryPageControls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sellerDirectoryPageText {
  color: var(--a2-text);
  font-weight: 600;
}

@media (max-width: 1040px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .topActions {
    justify-content: flex-start;
  }
}

@media (max-width: 860px) {
  .topbar {
    padding: 10px 12px;
  }

  .topbar p {
    display: none;
  }

  .tabs {
    display: flex;
    grid-template-columns: none;
  }

  .tab {
    width: auto;
  }
}
