:root {
  --ink: #17201c;
  --muted: #647067;
  --line: #d8ddd8;
  --panel: #ffffff;
  --wash: #f4f7f3;
  --primary: #17694f;
  --primary-dark: #0d4f3a;
  --accent: #d89a2b;
  --danger: #a13b2c;
}

* { box-sizing: border-box; }

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--wash);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}

a { color: inherit; }

.topbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a, .link-button {
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-decoration: none;
  padding: 8px;
}

nav a.active {
  color: var(--primary-dark);
  text-shadow: 0 0 0 currentColor;
}

.nav-menu {
  position: relative;
}

.nav-menu summary {
  list-style: none;
  cursor: pointer;
  padding: 8px;
}

.nav-menu summary::-webkit-details-marker { display: none; }

.nav-menu summary::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-2px) rotate(45deg);
}

.nav-menu div {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  display: grid;
  gap: 4px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(23, 32, 28, 0.14);
}

.nav-menu:not([open]) div { display: none; }

.link-button {
  color: var(--muted);
}

.page {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.hero {
  min-height: min(620px, calc(100svh - 180px));
  display: flex;
  align-items: center;
  padding: clamp(40px, 7vw, 72px) 0 clamp(56px, 8vw, 88px);
}

.hero-logo {
  display: block;
  width: min(286px, 76vw);
  height: auto;
  margin-bottom: 24px;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 0.95;
  margin: 0 0 20px;
}

.lead {
  max-width: 700px;
  font-size: 1.25rem;
  color: var(--muted);
}

.lead.compact { font-size: 1.05rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.eyebrow {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.band {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.steps article {
  min-height: 150px;
}

.steps h2 {
  font-size: 1.45rem;
}

.workflow {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  padding: clamp(44px, 7vw, 80px) 0 0;
  scroll-margin-top: 88px;
}

.workflow h2 {
  max-width: 520px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: 22px;
}

.workflow-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: workflow;
}

.workflow-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  counter-increment: workflow;
}

.workflow-list li::before {
  content: counter(workflow);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}

.workflow-list strong,
.workflow-list span {
  grid-column: 2;
}

.workflow-list strong {
  font-size: 1.08rem;
}

.workflow-list span {
  color: var(--muted);
}

.screenshot-stage {
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: clamp(18px, 3vw, 32px);
  border: 1px dashed color-mix(in srgb, var(--primary) 42%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(23, 105, 79, 0.08), rgba(216, 154, 43, 0.08)),
    #fff;
}

.screenshot-frame {
  width: min(100%, 620px);
  min-height: 280px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(23, 32, 28, 0.12);
}

.screenshot-toolbar {
  height: 36px;
  margin-bottom: 14px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, var(--primary) 0 20%, transparent 20% 100%),
    #eef3ef;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.screenshot-grid span {
  min-height: 88px;
  border: 1px solid #e4e9e4;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(23, 105, 79, 0.16), transparent 46%),
    #f8faf8;
}

.steps, .grid {
  display: grid;
  gap: 16px;
}

.steps { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }

.panel, .row-card, .metric, .empty, .steps article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.panel.narrow {
  max-width: 480px;
  margin: 40px auto;
}

.auth-logo {
  display: block;
  width: 180px;
  height: auto;
  margin-bottom: 24px;
}

.upload-panel {
  max-width: 720px;
  margin: 24px auto;
}

.form-panel {
  margin-bottom: 0;
}

.panel-heading {
  margin-bottom: 16px;
}

.panel-heading h2,
.panel-heading p {
  margin-bottom: 6px;
}

.toolbar, .page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.page-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

h1, h2 { line-height: 1.1; }
h1 { margin: 0 0 10px; font-size: 2rem; }
h2 { margin: 0 0 12px; }
.muted { color: var(--muted); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

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

.button.primary:hover { background: var(--primary-dark); }
.button.small { min-height: 36px; padding: 7px 12px; }
.button.full { width: 100%; }
.button.quiet {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.cta-button {
  min-height: 50px;
  padding-inline: 22px;
  font-size: 1rem;
}

.form {
  display: grid;
  gap: 12px;
}

.form.inline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
}

.filter-form {
  grid-template-columns: 2fr 1fr 1fr 1fr auto auto;
  align-items: end;
}

.refined-filter-form {
  grid-template-columns: minmax(260px, 2fr) minmax(160px, 0.9fr) minmax(140px, 0.7fr) minmax(140px, 0.7fr) auto auto;
  padding: 4px 0 18px;
  border-bottom: 1px solid var(--line);
}

.search-field input {
  min-height: 52px;
  font-size: 1.02rem;
}

.add-supplier-form {
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 240px);
  align-items: end;
  max-width: 720px;
}

.catalogue-form {
  grid-template-columns: minmax(220px, 1.5fr) minmax(160px, 1fr) minmax(160px, 1fr) minmax(130px, 0.8fr) minmax(120px, 0.7fr) auto;
  align-items: end;
}

label { font-weight: 700; }

input, select, textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

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

.upload-drop {
  min-height: 220px;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 2px dashed var(--primary);
  border-radius: 8px;
  background: #eef6f2;
  text-align: center;
  cursor: pointer;
}

.upload-drop input { max-width: 320px; }

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

.invoices-toolbar h1 {
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  letter-spacing: 0;
}

.upload-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 20px;
  align-items: center;
  margin-bottom: 16px;
  padding: clamp(20px, 3vw, 28px);
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--line));
  border-radius: 8px;
}

.upload-hero h2 {
  margin-bottom: 8px;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.upload-hero p {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
}

.upload-target {
  min-height: 156px;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 20px;
  border: 2px dashed color-mix(in srgb, var(--primary) 68%, var(--line));
  border-radius: 8px;
  background: #eef6f2;
  color: var(--primary-dark);
  text-align: center;
  text-decoration: none;
}

.upload-target strong {
  font-size: 1.25rem;
}

.upload-target span {
  color: var(--muted);
}

.invoice-metrics {
  margin-bottom: 18px;
}

.invoice-list {
  display: grid;
  gap: 12px;
}

.invoice-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, auto);
  gap: 20px;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.invoice-card:hover {
  border-color: color-mix(in srgb, var(--primary) 34%, var(--line));
  box-shadow: 0 10px 28px rgba(23, 32, 28, 0.1);
  transform: translateY(-1px);
}

.invoice-card.approved { border-left-color: var(--primary); }
.invoice-card.needs_review { border-left-color: var(--accent); }
.invoice-card.could_not_read { border-left-color: var(--danger); }
.invoice-card.processing,
.invoice-card.uploaded { border-left-color: #4f6f9f; }

.invoice-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.invoice-title-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.invoice-title-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 1.1rem;
}

.invoice-reference,
.invoice-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
}

.invoice-reference {
  color: var(--ink);
  font-weight: 700;
}

.invoice-signals {
  font-size: 0.92rem;
}

.invoice-money {
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
}

.invoice-money strong {
  font-size: 1.45rem;
}

.invoice-money span {
  color: var(--muted);
  font-weight: 700;
}

.row-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  text-decoration: none;
}

.row-card div {
  display: grid;
  gap: 4px;
}

.pill {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 10px;
  background: #ecefeb;
  font-size: 0.85rem;
  font-weight: 700;
}

.pill.needs_review, .notice-box { background: #fff8e8; border-color: #edd5a6; }
.pill.approved { background: #e6f4ee; color: var(--primary-dark); }
.pill.needs_review { color: #7a520c; }
.pill.uploaded,
.pill.processing {
  background: #edf3ff;
  color: #274978;
}
.pill.could_not_read, .alert-box {
  background: #fff0ed;
  border-color: #e7b7ae;
  color: #8f2518;
}

.pill.could_not_read {
  box-shadow: inset 0 0 0 1px #e0a092;
}

.flash, .notice-box, .alert-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.flash.notice { background: #e6f4ee; }
.flash.alert { background: #fff0ed; }

.details {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
}

.details dt { color: var(--muted); }
.details dd { margin: 0; font-weight: 700; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.form-actions {
  align-items: center;
  justify-content: space-between;
}

.form-actions .button {
  width: auto;
}

.form-actions .button.primary {
  min-width: 160px;
}

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

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.metric {
  display: grid;
  gap: 10px;
}

.metric span { color: var(--muted); }
.metric strong { font-size: 2rem; }
.metric small {
  color: var(--muted);
  font-weight: 700;
}

.metric.highlight {
  border-color: color-mix(in srgb, var(--primary) 34%, var(--line));
}

.metric.attention {
  background: #fff8e8;
  border-color: #edd5a6;
}

.metric-link {
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
}

.trend-up { color: var(--danger) !important; }
.trend-down { color: var(--primary-dark) !important; }

.dashboard-toolbar {
  align-items: flex-start;
}

.compact-actions {
  margin-top: 0;
}

.dashboard-filters {
  margin-bottom: 16px;
}

.dashboard-filter-form {
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 200px) minmax(160px, 200px) auto;
  align-items: end;
}

.dashboard-metrics {
  margin-bottom: 16px;
}

.dashboard-main {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.8fr);
  gap: 16px;
  margin-bottom: 16px;
}

.bar-list,
.compact-list {
  display: grid;
  gap: 12px;
}

.bar-row {
  display: grid;
  grid-template-columns: 90px minmax(120px, 1fr) minmax(90px, auto);
  gap: 12px;
  align-items: center;
}

.bar-row span {
  color: var(--muted);
  font-weight: 700;
}

.bar-row strong {
  text-align: right;
}

.bar-track,
.mini-track {
  overflow: hidden;
  width: 100%;
  background: #edf1ed;
  border-radius: 999px;
}

.bar-track {
  height: 14px;
}

.bar-fill,
.mini-fill {
  height: 100%;
  min-width: 4px;
  background: var(--primary);
  border-radius: inherit;
}

.compact-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.compact-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.compact-row div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.compact-row span:not(.pill) {
  color: var(--muted);
  font-size: 0.9rem;
}

.totals-table th,
.totals-table td {
  padding-right: 16px;
  white-space: nowrap;
}

.totals-table th:first-child,
.totals-table td:first-child {
  white-space: normal;
}

.breakdown-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 180px);
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.breakdown-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.breakdown-row div:first-child {
  display: grid;
  gap: 4px;
}

.breakdown-row span {
  color: var(--muted);
  font-size: 0.9rem;
}

.breakdown-total {
  display: grid;
  gap: 6px;
  text-align: right;
}

.mini-track {
  height: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

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

.table-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.inline-edit {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.management-list {
  display: grid;
}

.management-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.management-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.management-row:last-child {
  padding-bottom: 0;
}

.catalogue-list {
  display: grid;
}

.catalogue-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(150px, 1fr) minmax(150px, 1fr) minmax(120px, 0.8fr) minmax(110px, 0.7fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.catalogue-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.catalogue-row:last-child {
  padding-bottom: 0;
}

.catalogue-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.row-meta {
  display: grid;
  justify-items: end;
  min-width: 76px;
}

.row-meta span {
  color: var(--muted);
  font-size: 0.9rem;
}

.line-items {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: visible;
}

.line-items [data-line-items-target="items"] {
  display: grid;
  gap: 0;
}

.line-items-header,
.line-item {
  display: grid;
  grid-template-columns: minmax(240px, 2.2fr) minmax(86px, 0.7fr) minmax(110px, 0.8fr) minmax(170px, 1.1fr) minmax(120px, 0.9fr) minmax(92px, auto);
  gap: 10px;
  align-items: center;
}

.line-items-header {
  padding: 12px 14px 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.line-item {
  padding: 10px 14px;
  border-top: 1px solid #edf1ed;
}

.line-item:hover {
  background: #fbfcfb;
}

.line-item-description {
  min-width: 0;
}

.line-item-actions {
  display: flex;
  justify-content: flex-end;
  padding: 12px 14px 14px;
  border-top: 1px solid #edf1ed;
}

.ts-wrapper {
  width: 100%;
}

.ts-wrapper.single .ts-control,
.ts-wrapper.multi .ts-control {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 40px 7px 12px;
  font: inherit;
  background: #fff;
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.line-item input,
.line-item .ts-wrapper.single .ts-control,
.line-item .ts-wrapper.multi .ts-control {
  min-height: 42px;
  border-color: #cfd7d1;
  background: #fff;
}

.line-item input {
  padding: 8px 10px;
}

.line-item .ts-wrapper.single .ts-control,
.line-item .ts-wrapper.multi .ts-control {
  padding-top: 5px;
  padding-bottom: 5px;
}

.line-item .ts-wrapper.single .ts-control > input,
.line-item .ts-wrapper.multi .ts-control > input {
  min-height: 0;
  padding: 0;
}

.line-item .ts-wrapper.has-items .ts-control {
  font-weight: 700;
}

.line-item .ts-wrapper.focus .ts-control,
.line-item input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px #cde7dc;
  outline: 0;
}

.ts-wrapper.single .ts-control {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% + 1px),
    calc(100% - 13px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.ts-wrapper .ts-control:hover {
  border-color: color-mix(in srgb, var(--primary) 38%, var(--line));
}

.ts-wrapper.focus .ts-control {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px #cde7dc;
}

.ts-dropdown {
  z-index: 30;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(23, 32, 28, 0.12);
  overflow: hidden;
  margin-top: 6px;
  font: inherit;
}

.ts-dropdown .dropdown-input {
  min-height: 42px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 12px;
  outline: 0;
  box-shadow: none;
}

.ts-dropdown .dropdown-input:focus {
  box-shadow: inset 0 -2px 0 var(--primary);
}

.ts-dropdown .active {
  background: #eef6f2;
  color: var(--ink);
}

.ts-dropdown .option {
  padding: 10px 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ts-dropdown .option:not(:last-child) {
  border-bottom: 1px solid #edf1ed;
}

.ts-wrapper.plugin-clear_button .clear-button {
  color: var(--muted);
  font-size: 1.3rem;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
}

.ts-wrapper.plugin-clear_button .clear-button:hover {
  color: var(--danger);
}

.checkbox {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.checkbox input { width: auto; min-height: auto; }

.remove-line-item {
  justify-content: flex-end;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.remove-line-item input {
  accent-color: var(--danger);
}

.remove-line-item:has(input:checked) {
  color: var(--danger);
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  nav { justify-content: flex-start; }

  .nav-menu div {
    left: 0;
    right: auto;
  }

  .steps, .grid.two, .grid.three, .form.inline {
    grid-template-columns: 1fr;
  }

  .filter-form,
  .refined-filter-form {
    grid-template-columns: 1fr;
  }

  .upload-hero,
  .invoice-card {
    grid-template-columns: 1fr;
  }

  .invoice-money {
    justify-items: start;
    text-align: left;
  }

  .dashboard-filter-form,
  .dashboard-main,
  .workflow {
    grid-template-columns: 1fr;
  }

  .screenshot-stage {
    min-height: 280px;
  }

  .workflow {
    scroll-margin-top: 132px;
  }

  .toolbar, .page-header {
    align-items: stretch;
    flex-direction: column;
  }

  .full-mobile { width: 100%; }

  .row-card {
    align-items: stretch;
    flex-direction: column;
  }

  .line-items {
    border: 0;
    background: transparent;
    gap: 10px;
  }

  .line-items .line-item-actions {
    padding: 0;
    border-top: 0;
  }

  .line-items-header {
    display: none;
  }

  .line-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }

  .line-item .sr-only {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .add-supplier-form,
  .catalogue-form,
  .catalogue-row,
  .management-row,
  .inline-edit {
    grid-template-columns: 1fr;
  }

  .catalogue-actions {
    justify-content: flex-start;
  }

  .row-meta {
    justify-items: start;
  }

  .bar-row,
  .breakdown-row {
    grid-template-columns: 1fr;
  }

  .bar-row strong,
  .breakdown-total {
    text-align: left;
  }

  .totals-table {
    display: block;
    overflow-x: auto;
  }
}
