:root {
  --primary: #005246;
  --primary-dark: #003d34;
  --bg: #f7f4ec;
  --card: #ffffff;
  --gold: #c99a32;
  --text: #1f2a2a;
  --muted: #66706d;
  --border: #e3ddd0;
  --danger: #d66a2c;
  --warning: #f0a202;
  --success: #2e7d5b;
  --info: #2f6f9f;
  --shadow: 0 18px 48px rgba(26, 43, 39, 0.11);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.brand-subtitle {
  color: var(--gold);
  font-size: 15px;
  font-weight: 850;
}

.dashboard-grid {
  grid-template-columns: minmax(520px, 1.08fr) minmax(430px, 0.92fr);
  align-items: stretch;
}

.dashboard-grid > .band {
  display: flex;
  flex-direction: column;
}

.dashboard-grid > .band .executive-table,
.dashboard-grid > .band .compact-table {
  flex: 1;
}

.executive-table,
.compact-table {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  padding: 0 18px 18px;
  width: 100%;
}

.executive-table th {
  color: var(--primary);
  background: linear-gradient(180deg, #fbfaf6, #f3efe4);
}

.executive-table table {
  min-width: 980px;
}

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

.executive-table td:nth-child(3) {
  white-space: normal;
  min-width: 320px;
}

.executive-table td:first-child {
  border-left: 3px solid rgba(0, 82, 70, 0.28);
}

.metric-strong {
  color: var(--primary);
  font-size: 15px;
  font-weight: 850;
  white-space: nowrap;
}

.compact-table table {
  font-size: 12px;
}

.compact-table th,
.compact-table td {
  padding: 9px 8px;
}

.compact-table .status {
  min-height: 22px;
  padding: 2px 7px;
}

.mono {
  color: var(--primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 750;
}

.analysis-wrap {
  display: grid;
  gap: 14px;
  padding: 0 18px 18px;
}

.analysis-rich {
  grid-template-columns: minmax(290px, 1.2fr) minmax(210px, 0.85fr) minmax(220px, 0.85fr) minmax(180px, 0.65fr);
}

.analysis-card {
  background: #fbfaf6;
  border: 1px solid var(--border);
  border-radius: 8px;
  min-height: 206px;
  padding: 14px;
}

.analysis-wide {
  min-height: 238px;
}

.chart-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.chart-head strong {
  color: var(--primary);
  font-size: 14px;
}

.chart-head span {
  color: var(--muted);
  font-size: 12px;
}

.bar-chart {
  display: grid;
  gap: 9px;
}

.bar-row {
  align-items: center;
  color: var(--muted);
  display: grid;
  font-size: 12px;
  gap: 10px;
  grid-template-columns: 54px 1fr 38px 70px;
}

.bar-row strong {
  color: var(--text);
  text-align: right;
}

.bar-row small {
  color: var(--primary);
  font-weight: 750;
  text-align: right;
}

.bar-track {
  background: #eee8da;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.bar-fill {
  border-radius: inherit;
  height: 100%;
}

.trend-line {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px 8px;
}

.trend-line svg {
  display: block;
  height: 180px;
  width: 100%;
}

.grid-line {
  fill: none;
  stroke: #e6dfd1;
  stroke-width: 1;
}

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

.area {
  opacity: 0.13;
}

.income {
  stroke: var(--success);
}

.income-area {
  fill: var(--success);
}

.spend {
  stroke: var(--gold);
}

.dot {
  stroke: #fff;
  stroke-width: 2;
}

.income-dot {
  fill: var(--success);
}

.spend-dot {
  fill: var(--gold);
}

.legend {
  color: var(--muted);
  display: flex;
  font-size: 12px;
  gap: 14px;
  justify-content: flex-end;
}

.legend span {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.legend i {
  border-radius: 999px;
  display: inline-block;
  height: 3px;
  width: 18px;
}

.income-key {
  background: var(--success);
}

.spend-key {
  background: var(--gold);
}

.compare-strip {
  border-top: 1px solid var(--border);
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
  padding-top: 10px;
}

.compare-strip span {
  color: var(--muted);
  font-size: 12px;
}

.compare-strip strong {
  color: var(--primary);
}

.donut-layout {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 112px 1fr;
}

.donut-chart {
  aspect-ratio: 1;
  background: conic-gradient(var(--primary) 0 46%, var(--info) 46% 78%, var(--gold) 78% 92%, var(--danger) 92% 100%);
  border-radius: 50%;
  position: relative;
}

.donut-chart::after {
  background: #fbfaf6;
  border-radius: 50%;
  content: "";
  inset: 24px;
  position: absolute;
}

.donut-list {
  display: grid;
  gap: 9px;
}

.donut-list div {
  align-items: center;
  color: var(--muted);
  display: grid;
  font-size: 12px;
  gap: 7px;
  grid-template-columns: 9px 1fr auto;
}

.donut-list i {
  border-radius: 999px;
  height: 9px;
  width: 9px;
}

.donut-list span {
  white-space: nowrap;
}

.donut-list strong {
  color: var(--text);
}

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

.heat-cell {
  background: rgba(46, 125, 91, 0.08);
  border: 1px solid rgba(46, 125, 91, 0.16);
  border-radius: 8px;
  min-height: 64px;
  padding: 11px;
}

.heat-cell.warm {
  background: rgba(201, 154, 50, 0.12);
  border-color: rgba(201, 154, 50, 0.22);
}

.heat-cell.hot {
  background: rgba(214, 106, 44, 0.12);
  border-color: rgba(214, 106, 44, 0.24);
}

.heat-cell span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-bottom: 7px;
}

.heat-cell strong {
  color: var(--primary);
  font-size: 18px;
}

.heat-list {
  display: grid;
  gap: 8px;
}

.heat-list .heat-cell {
  align-items: center;
  display: grid;
  grid-template-columns: 1fr auto auto;
  min-height: 44px;
}

.heat-list .heat-cell span {
  margin: 0;
}

.heat-list .heat-cell em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  margin-left: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-width: 1100px;
}

button,
select,
input {
  font: inherit;
}

body.auth-pending .app-shell,
body.auth-pending .drawer {
  display: none;
}

body.authenticated .auth-gate {
  display: none;
}

.auth-gate {
  align-items: center;
  background:
    radial-gradient(circle at 84% 18%, rgba(201, 154, 50, 0.18), transparent 30%),
    linear-gradient(135deg, #003d34, #005246 54%, #223742);
  display: flex;
  min-height: 100vh;
  padding: 28px;
  justify-content: center;
}

.auth-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 10px;
  box-shadow: 0 28px 70px rgba(0, 34, 29, 0.28);
  display: grid;
  gap: 16px;
  max-width: 420px;
  padding: 28px;
  width: 100%;
}

.auth-brand {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 4px;
}

.auth-brand strong {
  color: var(--primary-dark);
  display: block;
  font-size: 18px;
}

.auth-brand span {
  color: var(--gold);
  display: block;
  font-size: 13px;
  font-weight: 750;
  margin-top: 3px;
}

.auth-card h1 {
  color: var(--primary-dark);
  font-size: 28px;
}

.auth-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.auth-field {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  gap: 8px;
}

.auth-field input {
  height: 44px;
  width: 100%;
}

.auth-submit {
  height: 42px;
}

.auth-error {
  color: var(--danger);
  font-size: 13px;
  min-height: 18px;
}

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

.sidebar {
  background: var(--primary-dark);
  color: #eef5ef;
  padding: 18px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 6px 6px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 14px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: #241a05;
  font-weight: 800;
  font-size: 20px;
}

.brand-title {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.68);
  margin-top: 4px;
}

.nav {
  display: grid;
  gap: 4px;
}

.nav-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 7px;
  padding: 10px 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  text-align: left;
  font-size: 14px;
}

.nav-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-button:hover,
.nav-button.active {
  background: rgba(255, 255, 255, 0.11);
  color: #ffffff;
}

.nav-button[data-nav="settings"] {
  margin-top: 12px;
  position: relative;
}

.nav-button[data-nav="settings"]::before {
  background: rgba(255, 255, 255, 0.12);
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  right: 0;
  top: -8px;
}

.workspace {
  min-width: 0;
}

.topbar {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  background: rgba(247, 244, 236, 0.94);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 4;
  backdrop-filter: blur(10px);
}

.crumb {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 24px;
  line-height: 1.18;
}

h2 {
  font-size: 20px;
  line-height: 1.2;
}

h3 {
  font-size: 16px;
  line-height: 1.25;
}

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

.role-switch {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}

select,
input {
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0 12px;
  background: var(--card);
  color: var(--text);
}

.icon-button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--card);
  color: var(--primary);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.icon-button svg,
.small-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.content {
  padding: 24px 28px 36px;
  display: grid;
  gap: 18px;
}

.content > *,
.kpi,
.band,
.analysis-card {
  min-width: 0;
}

.band {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 10px 32px rgba(26, 43, 39, 0.06);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 12px;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.button {
  min-height: 36px;
  border: 0;
  border-radius: 7px;
  padding: 0 14px;
  background: var(--primary);
  color: white;
  cursor: pointer;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  line-height: 1.2;
  white-space: nowrap;
  word-break: keep-all;
}

.button.secondary {
  background: #eef2ef;
  color: var(--primary);
}

.button.warn {
  background: var(--danger);
}

.button svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.kpi {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 15px;
  min-height: 92px;
}

.kpi-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.kpi-value {
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.kpi-note {
  font-size: 12px;
  color: var(--success);
  margin-top: 10px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.table-wrap {
  padding: 0 18px 18px;
  overflow-x: auto;
}

.table-wrap td:last-child,
.table-wrap th:last-child {
  white-space: nowrap;
}

.table-shell {
  display: grid;
  gap: 10px;
}

.table-shell .scroll-table {
  max-height: var(--table-max-height);
  overflow: auto;
  padding-bottom: 0;
}

.table-shell .scroll-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.table-footer {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  padding: 0 18px 16px;
}

.pager {
  align-items: center;
  display: inline-flex;
  gap: 7px;
}

.pager button {
  background: #eef2ef;
  border: 0;
  border-radius: 6px;
  color: var(--primary);
  cursor: pointer;
  height: 28px;
  padding: 0 9px;
}

.pager strong {
  color: var(--primary);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

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

th {
  color: var(--muted);
  font-weight: 700;
  background: #faf9f5;
}

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

.row-action {
  border: 0;
  color: var(--primary);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  padding: 0;
  white-space: nowrap;
  word-break: keep-all;
}

.row-action + .row-action {
  margin-left: 10px;
}

.danger-action {
  color: var(--danger);
}

.check-cell {
  width: 56px;
  text-align: center;
}

.check-cell input,
.table-bulkbar input {
  height: 16px;
  width: 16px;
  accent-color: var(--primary);
}

.table-bulkbar {
  align-items: center;
  background: #fbfaf6;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  font-size: 12px;
  gap: 14px;
  margin: 0 18px;
  min-height: 38px;
  padding: 8px 10px;
}

.table-bulkbar label {
  align-items: center;
  color: var(--text);
  display: inline-flex;
  gap: 7px;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 24px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1.15;
  max-width: 100%;
  min-width: 0;
  text-align: center;
  white-space: normal;
  word-break: keep-all;
}

.status.ok {
  background: rgba(46, 125, 91, 0.12);
  color: var(--success);
}

.status.warn {
  background: rgba(240, 162, 2, 0.16);
  color: #8a5a00;
}

.status.danger {
  background: rgba(214, 106, 44, 0.14);
  color: var(--danger);
}

.status.info {
  background: rgba(47, 111, 159, 0.12);
  color: var(--info);
}

.mini-list {
  display: grid;
  gap: 0;
  padding: 0 18px 18px;
}

.mini-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}

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

.mini-main {
  font-size: 13px;
  line-height: 1.45;
}

.mini-sub {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.upload-zone {
  margin: 0 18px 18px;
  min-height: 150px;
  border: 1.5px dashed #bfc8c3;
  border-radius: 8px;
  background: #fbfaf6;
  display: grid;
  place-items: center;
  text-align: center;
  cursor: pointer;
}

.upload-zone strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

.upload-zone span {
  color: var(--muted);
  font-size: 13px;
}

.upload-zone input[type="file"] {
  display: none;
}

.upload-zone.compact {
  gap: 12px;
  grid-template-columns: 1fr auto;
  justify-items: start;
  padding: 16px 18px;
  text-align: left;
}

.upload-zone.compact .button {
  justify-self: end;
}

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

.field {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.timeline {
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.node {
  min-height: 106px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  cursor: pointer;
}

.node.warn {
  border-left-color: var(--warning);
}

.node.danger {
  border-left-color: var(--danger);
}

.node-title {
  font-weight: 800;
  margin-bottom: 7px;
}

.node-id {
  color: var(--primary);
  font-size: 13px;
  font-weight: 750;
}

.node-meta {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.drawer {
  position: fixed;
  inset: 0;
  background: rgba(21, 34, 31, 0.28);
  display: none;
  justify-content: flex-end;
  z-index: 20;
}

.drawer.open {
  display: flex;
}

.drawer-panel {
  width: min(740px, 100vw);
  height: 100%;
  background: var(--bg);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto 1fr;
}

.drawer-head {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.drawer-body {
  padding: 20px;
  overflow: auto;
  display: grid;
  gap: 16px;
}

.confirm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.preview-box {
  min-height: 310px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 82, 70, 0.08), transparent 42%),
    repeating-linear-gradient(0deg, #fff, #fff 22px, #f1eee6 23px);
  padding: 18px;
}

.doc-paper {
  width: 78%;
  margin: 20px auto 0;
  background: #fff;
  border: 1px solid #d7d1c5;
  border-radius: 6px;
  padding: 14px;
  box-shadow: 0 14px 30px rgba(31, 42, 42, 0.12);
  min-height: 220px;
}

.paper-line {
  height: 10px;
  border-radius: 999px;
  background: #e7e1d5;
  margin-bottom: 12px;
}

.paper-line.short {
  width: 58%;
}

.paper-line.strong {
  background: rgba(0, 82, 70, 0.22);
}

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

.recognition-row {
  display: grid;
  grid-template-columns: 96px 1fr 68px;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}

.recognition-row input {
  width: 100%;
}

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary-dark);
  color: #fff;
  padding: 12px 14px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: none;
  z-index: 40;
  font-size: 13px;
}

.toast.show {
  display: block;
}

@media (max-width: 900px) {
  body {
    min-width: 0;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    height: auto;
    position: static;
  }

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

  .topbar {
    position: static;
    height: auto;
    align-items: flex-start;
    gap: 16px;
    flex-direction: column;
  }

  .content,
  .settings-row,
  .grid-2,
  .confirm-grid,
  .timeline,
  .kpi-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1320px) {
  .bar-row {
    gap: 6px;
    grid-template-columns: 42px 1fr 32px 46px;
  }

  .donut-layout {
    gap: 10px;
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .donut-chart {
    justify-self: center;
    width: 78px;
  }

  .donut-chart::after {
    inset: 18px;
  }

  .donut-list {
    gap: 7px;
  }

  .donut-list div {
    gap: 5px;
    grid-template-columns: 9px minmax(52px, 1fr) auto;
  }
}

.clerk-cockpit {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 0 18px 12px;
}

.cockpit-card {
  background: linear-gradient(180deg, #fff, #fbfaf6);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-height: 86px;
  padding: 13px;
}

.policy-strip {
  align-items: center;
  background: rgba(201, 154, 50, 0.1);
  border: 1px solid rgba(201, 154, 50, 0.26);
  border-radius: 8px;
  color: var(--text);
  display: flex;
  gap: 12px;
  margin: 0 18px 18px;
  padding: 11px 12px;
}

.policy-strip strong {
  color: var(--primary);
  white-space: nowrap;
}

.subtle-policy {
  background: #fbfaf6;
  border-color: var(--border);
  color: var(--muted);
  font-size: 12px;
  gap: 9px;
  padding: 8px 10px;
}

.subtle-policy strong {
  color: var(--text);
  font-weight: 500;
}

.precheck-strip {
  align-items: center;
  background: #fbfaf6;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 18px 12px;
  min-height: 42px;
  padding: 8px 10px;
}

.precheck-item {
  align-items: center;
  border-right: 1px solid var(--border);
  display: flex;
  gap: 8px;
  justify-content: space-between;
  min-width: 0;
  padding-right: 10px;
}

.precheck-item:last-child {
  border-right: 0;
}

.precheck-item span:first-child {
  color: var(--muted);
  font-size: 12px;
}

.upload-studio {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) 360px;
  padding: 0 18px 18px;
}

.upload-left {
  display: grid;
  gap: 12px;
}

.upload-zone.compact {
  margin: 0;
  min-height: 86px;
}

.upload-zone.compact strong {
  margin-bottom: 0;
}

.upload-extra {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
}

.upload-extra h3 {
  font-size: 14px;
  margin-bottom: 10px;
}

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

.upload-help {
  background: linear-gradient(180deg, #fbfaf6, #fff);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
}

.upload-help h3 {
  margin-bottom: 9px;
}

.upload-help ul {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
  margin: 0;
  padding-left: 18px;
}

tr[data-task] {
  cursor: pointer;
}

tr[data-task]:hover {
  background: #fbfaf6;
}

tr[data-purchase] {
  cursor: pointer;
}

tr[data-purchase]:hover {
  background: #fbfaf6;
}

.field-edit {
  display: grid;
  gap: 12px;
}

.field-edit .policy-strip {
  margin: 0;
}

.confirm-delete,
.edit-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 16px;
}

.confirm-delete p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}

.delete-targets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.delete-targets span {
  background: rgba(214, 106, 44, 0.1);
  border: 1px solid rgba(214, 106, 44, 0.22);
  border-radius: 999px;
  color: var(--danger);
  font-size: 12px;
  padding: 5px 9px;
}

.confirm-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: flex-start;
}

.edit-form .field {
  color: var(--text);
  font-size: 13px;
}

.edit-form input {
  width: 100%;
}

.detail-kpis {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0 0 18px;
}

.detail-kpi {
  background: #fbfaf6;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  min-height: 78px;
  padding: 13px;
}

.detail-kpi span {
  color: var(--muted);
  font-size: 12px;
}

.detail-kpi strong {
  color: var(--primary);
  font-size: 15px;
}

.ops-hero {
  background:
    linear-gradient(135deg, rgba(0, 82, 70, 0.95), rgba(33, 51, 66, 0.94)),
    radial-gradient(circle at top right, rgba(47, 111, 159, 0.34), transparent 34%);
  border-radius: 8px;
  color: #f8fbf8;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  min-height: 0;
  padding: 24px;
  box-shadow: 0 22px 54px rgba(0, 61, 52, 0.2);
}

.ops-hero h2 {
  font-size: 28px;
  line-height: 1.15;
  margin: 10px 0 10px;
}

.ops-hero p {
  color: rgba(248, 251, 248, 0.78);
  font-size: 14px;
  line-height: 1.75;
  margin: 0;
  max-width: 620px;
}

.eyebrow {
  color: #f0c66b;
  font-size: 12px;
  font-weight: 800;
}

.simulation-cards {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.simulation-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 8px;
  display: grid;
  gap: 7px;
  min-height: 78px;
  padding: 13px;
}

.simulation-card span,
.simulation-card small {
  color: rgba(248, 251, 248, 0.72);
  font-size: 12px;
}

.simulation-card strong {
  color: #fff;
  font-size: 23px;
}

.process-rail {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 14px;
}

.process-step {
  background: #fbfaf6;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  min-height: 74px;
  padding: 11px;
}

.process-step span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.process-step strong {
  font-size: 13px;
}

.process-step.done {
  border-color: rgba(46, 125, 91, 0.34);
}

.process-step.active {
  background: rgba(47, 111, 159, 0.1);
  border-color: rgba(47, 111, 159, 0.34);
}

.trace-card-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trace-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-height: 142px;
  padding: 16px;
}

.trace-card h3 {
  color: var(--primary);
  margin: 12px 0 8px;
}

.trace-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  margin: 0;
}

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

.terminal-type {
  background: linear-gradient(180deg, #fff, #fbfaf6);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-height: 136px;
  padding: 18px;
}

.terminal-type span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.terminal-type strong {
  color: var(--primary);
  display: block;
  font-size: 24px;
  margin: 8px 0;
}

.terminal-type p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  margin: 0;
}

.channel-ranking {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 0 18px 18px;
}

.rank-card {
  background: linear-gradient(180deg, #fff, #fbfaf6);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  min-height: 132px;
  padding: 14px;
}

.rank-card span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
}

.rank-card strong {
  color: var(--primary);
  font-size: 17px;
}

.rank-card b {
  font-size: 22px;
}

.rank-card small,
.rank-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.channel-tabs {
  display: grid;
  gap: 12px;
}

.tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px;
}

.tab-button {
  background: #eef2ef;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--primary);
  cursor: pointer;
  font-weight: 700;
  height: 34px;
  padding: 0 14px;
}

.tab-button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

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

.delivery-layout > .band:last-child {
  grid-column: 1 / -1;
}

.delivery-command {
  background:
    linear-gradient(135deg, #f9fbf4 0%, #eef6e9 46%, #f8f2df 100%);
  border: 1px solid rgba(83, 121, 67, 0.2);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(64, 92, 69, 0.1);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(360px, 1fr) minmax(520px, 1.2fr);
  overflow: hidden;
  padding: 20px;
  position: relative;
}

.delivery-command-copy {
  align-content: center;
  display: grid;
  gap: 8px;
  max-width: 620px;
  position: relative;
  z-index: 1;
}

.delivery-command-copy span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.delivery-command-copy h2 {
  color: var(--primary-dark);
  font-size: 24px;
}

.delivery-command-copy p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}

.delivery-command-metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  position: relative;
  z-index: 1;
}

.delivery-metric {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(0, 82, 70, 0.11);
  border-radius: 8px;
  display: grid;
  gap: 7px;
  min-height: 106px;
  padding: 13px;
}

.delivery-metric span,
.delivery-metric small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.delivery-metric strong {
  color: var(--primary);
  font-size: 23px;
}

.delivery-stage-row {
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  position: relative;
  z-index: 1;
}

.delivery-stage-row span {
  background: rgba(0, 82, 70, 0.08);
  border: 1px solid rgba(0, 82, 70, 0.13);
  border-radius: 8px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
  min-height: 34px;
  padding: 9px 10px;
  text-align: center;
  white-space: nowrap;
}

.delivery-animal {
  bottom: 16px;
  height: 58px;
  opacity: 0.14;
  position: absolute;
  right: 20px;
  width: 112px;
}

.delivery-animal::before {
  background: var(--primary);
  border-radius: 48px 48px 34px 34px;
  bottom: 4px;
  content: "";
  height: 42px;
  left: 18px;
  position: absolute;
  width: 72px;
}

.delivery-animal::after {
  background: var(--primary);
  border-radius: 50%;
  content: "";
  height: 34px;
  position: absolute;
  right: 8px;
  top: 15px;
  width: 34px;
}

.delivery-animal i,
.delivery-animal i::before,
.delivery-animal i::after {
  background: var(--primary);
  border-radius: 999px;
  content: "";
  display: block;
  position: absolute;
}

.delivery-animal i {
  height: 7px;
  right: 2px;
  top: 28px;
  width: 10px;
}

.delivery-animal i::before {
  height: 13px;
  left: -58px;
  top: 26px;
  width: 7px;
}

.delivery-animal i::after {
  height: 13px;
  left: -22px;
  top: 26px;
  width: 7px;
}

.delivery-layout .band {
  background: linear-gradient(180deg, #ffffff, #fbfdf8);
  border-color: rgba(83, 121, 67, 0.18);
  box-shadow: 0 14px 34px rgba(64, 92, 69, 0.08);
}

.delivery-layout .section-head {
  align-items: flex-start;
  border-bottom: 1px solid rgba(83, 121, 67, 0.12);
  padding-bottom: 14px;
}

.delivery-layout .section-head h3 {
  color: var(--primary-dark);
}

.delivery-layout .toolbar {
  flex: 0 0 auto;
}

.delivery-layout .query-bar {
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding-top: 14px;
}

.delivery-layout table {
  table-layout: fixed;
}

.delivery-layout th,
.delivery-layout td {
  padding: 11px 8px;
}

.delivery-layout th:nth-child(1),
.delivery-layout td:nth-child(1) {
  width: 116px;
}

.delivery-layout th:nth-child(5),
.delivery-layout td:nth-child(5),
.delivery-layout th:nth-child(6),
.delivery-layout td:nth-child(6) {
  width: 72px;
}

.delivery-layout th:nth-child(7),
.delivery-layout td:nth-child(7) {
  width: 82px;
}

.delivery-layout th:last-child,
.delivery-layout td:last-child {
  width: 116px;
}

.query-bar {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto auto;
  padding: 0 18px 12px;
}

.query-bar input {
  width: 100%;
}

.table-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  padding: 0 18px 16px;
}

.finance-workbench {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.finance-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-height: 118px;
  padding: 14px;
}

.finance-card span {
  color: var(--muted);
  font-size: 12px;
}

.finance-card strong {
  color: var(--primary);
  display: block;
  font-size: 24px;
  margin: 8px 0;
}

.finance-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}

.source-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0 18px 18px;
}

.source-card {
  background: #fbfaf6;
  border: 1px solid var(--border);
  border-radius: 8px;
  min-height: 120px;
  padding: 14px;
}

.source-card strong {
  color: var(--primary);
}

.source-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  margin: 8px 0 10px;
}

.source-card span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.exception-bubbles {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bubble {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 5px solid var(--info);
  border-radius: 8px;
  min-height: 112px;
  padding: 14px;
}

.bubble.warn {
  border-left-color: var(--warning);
}

.bubble.danger {
  border-left-color: var(--danger);
}

.bubble span {
  color: var(--muted);
  font-size: 12px;
}

.bubble strong {
  color: var(--primary);
  display: block;
  font-size: 25px;
  margin: 8px 0;
}

.bubble p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}

.finance-chain {
  grid-template-columns: repeat(7, minmax(126px, 1fr));
}

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

.settings-card {
  background: linear-gradient(180deg, #fff, #fbfaf6);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-height: 132px;
  padding: 18px;
}

.settings-card h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

.settings-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 900px) {
  .clerk-cockpit,
  .precheck-grid,
  .upload-studio,
  .upload-meta-grid,
  .detail-kpis,
  .ops-hero,
  .simulation-cards,
  .process-rail,
  .analysis-rich,
  .terminal-summary,
  .trace-card-grid,
  .channel-ranking,
  .delivery-command,
  .delivery-command-metrics,
  .delivery-stage-row,
  .delivery-layout,
  .query-bar,
  .finance-workbench,
  .source-grid,
  .exception-bubbles,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .donut-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
    padding: 12px;
  }

  .brand {
    margin-bottom: 10px;
    padding: 4px 4px 12px;
  }

  .brand-mark {
    height: 36px;
    width: 36px;
  }

  .nav {
    gap: 6px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .nav-button {
    align-items: center;
    flex-direction: column;
    font-size: 12px;
    gap: 4px;
    justify-content: center;
    min-height: 56px;
    padding: 8px 4px;
    text-align: center;
  }

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

  .nav-button[data-nav="settings"] {
    margin-top: 0;
  }

  .nav-button[data-nav="settings"]::before {
    display: none;
  }

  .topbar {
    gap: 10px;
    padding: 14px;
  }

  .topbar h1 {
    font-size: 22px;
  }

  .top-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) 36px;
    width: 100%;
  }

  .role-switch {
    display: grid;
    gap: 4px;
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .role-switch select {
    min-width: 0;
    width: 100%;
  }

  .content {
    gap: 12px;
    padding: 14px;
  }

  .section-head {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 14px 14px 10px;
  }

  .section-head p {
    font-size: 12px;
  }

  .toolbar,
  .confirm-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .toolbar .button,
  .confirm-actions .button {
    min-width: 0;
    padding-inline: 9px;
    width: 100%;
  }

  .button {
    font-size: 13px;
    gap: 6px;
    min-height: 34px;
    white-space: normal;
  }

  .button svg {
    flex: 0 0 auto;
  }

  .kpi-grid,
  .clerk-cockpit,
  .upload-meta-grid,
  .detail-kpis,
  .simulation-cards,
  .process-rail,
  .trace-card-grid,
  .channel-ranking,
  .delivery-command-metrics,
  .delivery-stage-row,
  .finance-workbench,
  .source-grid,
  .exception-bubbles,
  .settings-grid,
  .settings-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kpi-grid .kpi:nth-child(5) {
    display: none;
  }

  .clerk-cockpit .cockpit-card:nth-child(5) {
    grid-column: 1 / -1;
  }

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

  .heat-list .heat-cell {
    align-content: center;
    gap: 4px 8px;
    grid-template-columns: 1fr auto;
    min-height: 50px;
    padding: 9px 10px;
  }

  .heat-list .heat-cell span {
    grid-column: 1 / -1;
    line-height: 1.2;
  }

  .heat-list .heat-cell strong {
    font-size: 17px;
    line-height: 1;
  }

  .heat-list .heat-cell em {
    font-size: 11px;
    line-height: 1;
  }

  .heat-list .heat-cell:nth-child(5) {
    grid-column: 1 / -1;
  }

  .grid-2,
  .confirm-grid,
  .terminal-summary,
  .delivery-layout,
  .upload-studio,
  .analysis-rich {
    grid-template-columns: 1fr;
  }

  .kpi,
  .cockpit-card,
  .finance-card,
  .source-card,
  .bubble,
  .settings-card,
  .rank-card,
  .trace-card {
    min-height: 0;
    padding: 12px;
  }

  .kpi-value,
  .finance-card strong,
  .bubble strong {
    font-size: 21px;
  }

  .table-wrap {
    padding: 0 14px 14px;
  }

  .table-wrap table {
    min-width: 760px;
  }

  .table-wrap td:last-child,
  .table-wrap th:last-child {
    white-space: normal;
  }

  th,
  td {
    padding: 10px 8px;
  }

  .table-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 0 14px 14px;
  }

  .pager {
    width: 100%;
  }

  .pager button {
    flex: 1;
  }

  .table-bulkbar {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr auto;
    margin: 0 14px;
  }

  .policy-strip {
    align-items: flex-start;
    flex-direction: column;
    margin: 0 14px 14px;
  }

  .precheck-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 14px 12px;
  }

  .precheck-item {
    border-right: 0;
    justify-content: flex-start;
    padding-right: 0;
  }

  .upload-zone {
    margin: 0 14px 14px;
    min-height: 120px;
  }

  .upload-zone.compact {
    grid-template-columns: 1fr;
    justify-items: stretch;
    min-height: 0;
    padding: 14px;
    text-align: left;
  }

  .upload-zone.compact .button {
    justify-self: stretch;
  }

  .upload-extra,
  .upload-help {
    padding: 12px;
  }

  .tab-row {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0 14px;
  }

  .tab-button {
    height: 32px;
    overflow: hidden;
    padding: 0 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .query-bar,
  .delivery-layout .query-bar {
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding: 0 14px 12px;
  }

  .delivery-command {
    gap: 12px;
    padding: 16px;
  }

  .delivery-command-copy h2,
  .ops-hero h2 {
    font-size: 22px;
  }

  .delivery-command-metrics,
  .delivery-stage-row {
    grid-column: auto;
  }

  .delivery-stage-row span {
    min-height: 32px;
    padding: 8px 6px;
    white-space: normal;
  }

  .delivery-layout .toolbar {
    flex: initial;
  }

  .delivery-layout table {
    table-layout: auto;
  }

  .delivery-layout th:nth-child(1),
  .delivery-layout td:nth-child(1),
  .delivery-layout th:nth-child(5),
  .delivery-layout td:nth-child(5),
  .delivery-layout th:nth-child(6),
  .delivery-layout td:nth-child(6),
  .delivery-layout th:nth-child(7),
  .delivery-layout td:nth-child(7),
  .delivery-layout th:last-child,
  .delivery-layout td:last-child {
    width: auto;
  }

  .drawer-head {
    height: auto;
    padding: 14px;
  }

  .drawer-body {
    gap: 12px;
    padding: 14px;
  }

  .recognition-row {
    grid-template-columns: 76px minmax(0, 1fr) 60px;
  }
}

@media (max-width: 520px) {
  .auth-gate {
    padding: 18px;
  }

  .auth-card {
    padding: 22px;
  }

  .brand-title {
    font-size: 16px;
  }

  .brand-subtitle {
    font-size: 11px;
  }

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

  .content {
    padding: 12px;
  }

  .section-head {
    padding: 12px 12px 9px;
  }

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

  .button {
    font-size: 12px;
    padding-inline: 8px;
  }

  .kpi-grid,
  .clerk-cockpit,
  .upload-meta-grid,
  .detail-kpis,
  .simulation-cards,
  .process-rail,
  .trace-card-grid,
  .channel-ranking,
  .delivery-command-metrics,
  .delivery-stage-row,
  .finance-workbench,
  .source-grid,
  .exception-bubbles,
  .settings-grid,
  .settings-row {
    gap: 8px;
  }

  .precheck-strip,
  .tab-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .query-bar,
  .delivery-layout .query-bar {
    grid-template-columns: 1fr 58px 58px;
  }

  .query-bar input::placeholder {
    font-size: 12px;
  }

  .row-action + .row-action {
    margin-left: 6px;
  }
}

@media (max-width: 900px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .workspace,
  .content,
  .band,
  .analysis-wrap,
  .analysis-card,
  .executive-table,
  .compact-table,
  .table-wrap,
  .table-shell {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }

  .band,
  .analysis-card {
    overflow: hidden;
  }

  .executive-table,
  .compact-table,
  .table-wrap {
    display: block;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .executive-table table,
  .compact-table table,
  .table-wrap table {
    max-width: none;
    width: max-content;
  }

  .executive-table table {
    min-width: 760px;
  }

  .compact-table table {
    min-width: 620px;
  }

  .analysis-card,
  .donut-layout,
  .heat-list,
  .bar-row {
    min-width: 0;
  }
}
