@font-face {
  font-family: "Gotham HTF";
  src: url("https://www.channelservices.je/fonts/gotham/GothamHTF-Book.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gotham HTF";
  src: url("https://www.channelservices.je/fonts/gotham/GothamHTF-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gotham HTF";
  src: url("https://www.channelservices.je/fonts/gotham/GothamHTF-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #e8f3ec;
  --bg-deep: #d3e6db;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-border: rgba(38, 38, 38, 0.14);
  --ink: #1a1a1a;
  --muted: #4d5559;
  --accent: #29b077;
  --accent-soft: #d8efe5;
  --warn: #b25f2c;
  --gold: #d6a249;
  --shadow: 0 18px 44px rgba(27, 40, 38, 0.12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at -6% -5%, rgba(41, 176, 119, 0.22), transparent 30%),
    radial-gradient(circle at 105% -8%, rgba(41, 176, 119, 0.16), transparent 28%),
    linear-gradient(180deg, #f0f8f3 0%, var(--bg) 100%);
  font-family: "Gotham HTF", "Avenir Next", "Helvetica Neue", sans-serif;
  line-height: 1.45;
}

a { color: inherit; }

.app-layout {
  --sidebar-width: 264px;
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  transition: grid-template-columns 180ms ease;
}

.app-layout.sidebar-collapsed {
  grid-template-columns: 72px minmax(0, 1fr);
}

.app-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 14px 18px;
  border-right: 1px solid rgba(26, 26, 26, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.62) 100%);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  transition: opacity 160ms ease, padding 160ms ease, border-color 160ms ease;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sidebar-header .sidebar-brand {
  flex: 1;
  min-width: 0;
}

.sidebar-resizer {
  position: absolute;
  top: 0;
  right: -6px;
  width: 12px;
  height: 100%;
  cursor: col-resize;
  z-index: 24;
  touch-action: none;
}

.sidebar-resizer::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 5px;
  width: 2px;
  border-radius: 2px;
  background: rgba(26, 26, 26, 0.14);
}

.sidebar-resizer:hover::before,
.sidebar-resizer:focus-visible::before {
  background: rgba(31, 142, 103, 0.52);
}

.app-layout.sidebar-collapsed .app-sidebar {
  opacity: 1;
  padding-left: 10px;
  padding-right: 10px;
  pointer-events: auto;
}

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

.site-shell {
  width: calc(100% - 32px);
  max-width: none;
  margin: 0 auto;
  padding: 22px 0 38px;
}

.screen-title-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding: 4px 4px 12px;
  border-bottom: 1px solid rgba(26, 26, 26, 0.1);
}

.screen-title-stack {
  min-width: 0;
}

.screen-title-bar .eyebrow {
  margin-bottom: 4px;
}

.screen-title {
  margin: 0;
  font-size: clamp(1.25rem, 1.7vw, 1.6rem);
  letter-spacing: -0.012em;
  color: #153127;
}

.hero-panel, .panel, .metric-card, .exception-card {
  backdrop-filter: blur(12px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-brand {
  padding: 8px 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(26, 26, 26, 0.08);
}

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

.sidebar-brand-copy {
  min-width: 0;
}

.sidebar-brand h1, .hero-copy h2, .detail-hero h2 {
  margin: 0;
  font-family: "Gotham HTF", "Avenir Next", "Helvetica Neue", sans-serif;
  letter-spacing: -0.015em;
}

.sidebar-brand h1 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-copy h2, .detail-hero h2 {
  font-size: clamp(1.45rem, 2vw, 2.2rem);
  font-weight: 700;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 0.67rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.site-nav {
  display: grid;
  gap: 6px;
}

.side-nav {
  margin-top: 2px;
}

.nav-link {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 160ms ease;
}

.nav-icon {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1px solid rgba(26, 26, 26, 0.18);
  background: rgba(255, 255, 255, 0.98);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  line-height: 1;
  flex-shrink: 0;
}

.nav-link-label {
  white-space: nowrap;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(26, 26, 26, 0.14);
  color: #17382d;
}

.nav-link.nav-link-active {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(41, 176, 119, 0.42);
  color: #143228;
  box-shadow: inset 3px 0 0 #1f8e67;
}

.nav-link.nav-link-active .nav-icon {
  border-color: rgba(41, 176, 119, 0.58);
  background: rgba(41, 176, 119, 0.18);
}

.sidebar-footer {
  margin-top: auto;
  padding: 6px 8px 0;
}

.nav-control {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(26, 26, 26, 0.16);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: normal;
  line-height: 1.25;
}

.sidebar-toggle {
  width: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(26, 26, 26, 0.16);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-toggle-sidebar {
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  border-radius: 11px;
}

.app-layout.sidebar-collapsed .sidebar-brand {
  justify-content: center;
  padding: 8px 6px;
}

.app-layout.sidebar-collapsed .sidebar-header {
  flex-direction: column;
  justify-content: flex-start;
}

.app-layout.sidebar-collapsed .sidebar-brand-copy {
  display: none;
}

.app-layout.sidebar-collapsed .side-nav {
  justify-items: center;
}

.app-layout.sidebar-collapsed .nav-link {
  width: 46px;
  min-height: 44px;
  padding: 0;
  justify-content: center;
}

.app-layout.sidebar-collapsed .nav-link-label {
  display: none;
}

.app-layout.sidebar-collapsed .sidebar-footer {
  display: none;
}

.app-layout.sidebar-collapsed .sidebar-resizer {
  display: none;
}

.settings-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.settings-card {
  border: 1px solid rgba(26, 26, 26, 0.12);
  border-radius: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.76);
}

.metric-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  margin-bottom: 14px;
}

.metric-card {
  border: 1px solid rgba(41, 176, 119, 0.22);
  border-radius: 14px;
  padding: 12px;
  background: rgba(248, 255, 252, 0.82);
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
}

.error-text {
  color: var(--warn);
  font-weight: 600;
}

.hero-panel, .detail-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px;
  margin-bottom: 22px;
  border: 1px solid rgba(38, 38, 38, 0.09);
  border-radius: 18px;
  background: linear-gradient(138deg, rgba(255, 255, 255, 0.94), rgba(247, 251, 248, 0.88));
  box-shadow: 0 14px 36px rgba(27, 40, 38, 0.1);
}

.hero-panel.compact {
  align-items: flex-start;
}

.hero-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  max-width: 720px;
  line-height: 1.6;
}

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

.table-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: -8px 0 14px;
}

.bulk-selector-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 4px 0 8px;
}

.bulk-selector-control {
  display: inline-flex;
  align-items: center;
  grid-template-columns: none;
  gap: 8px;
  width: auto;
  min-height: 28px;
  color: var(--ink);
  font-weight: 600;
}

.bulk-selector-note {
  color: var(--muted);
  font-size: 0.86rem;
}

.button-link.subtle {
  min-height: 38px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
}

.detail-hero-doc {
  display: grid;
  gap: 16px;
  align-items: flex-start;
}

.detail-hero-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 0.72fr);
  gap: 22px;
  align-items: start;
}

.detail-hero-main {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 10px;
}

.detail-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-title-row .eyebrow {
  margin: 0;
}

.detail-meta {
  margin: 0;
  color: var(--muted);
}

.detail-summary-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 16px;
  align-items: stretch;
  grid-column: 1 / -1;
  width: 100%;
}

.detail-hero-actions {
  justify-content: flex-end;
  align-self: flex-start;
}

.detail-actions-menu {
  position: relative;
}

.detail-actions-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(41, 176, 119, 0.35);
  border-radius: 999px;
  background: linear-gradient(180deg, #35ba82, var(--accent));
  color: #f8fffd;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

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

.detail-actions-menu summary:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(27, 40, 38, 0.12);
}

.detail-actions-menu[open] summary {
  filter: brightness(0.98);
}

.detail-actions-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  display: grid;
  min-width: 260px;
  padding: 8px;
  border: 1px solid rgba(26, 26, 26, 0.12);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.detail-actions-dropdown form {
  margin: 0;
}

.detail-actions-dropdown button {
  justify-content: flex-start;
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  box-shadow: none;
}

.detail-actions-dropdown button:hover {
  background: rgba(41, 176, 119, 0.1);
  box-shadow: none;
  transform: none;
}

.detail-hero-side {
  display: grid;
  gap: 14px;
  justify-items: end;
}

.detail-exception-summary {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(178, 95, 44, 0.34);
  border-left: 5px solid var(--warn);
  border-radius: 16px;
  background: rgba(255, 250, 245, 0.9);
  box-shadow: 0 14px 30px rgba(116, 57, 27, 0.08);
}

.detail-exception-summary > span,
.detail-exception-summary > strong,
.detail-exception-summary > p {
  display: block;
}

.detail-exception-summary > span {
  color: var(--warn);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.detail-exception-summary > strong {
  margin-top: 5px;
  font-size: 1rem;
}

.detail-exception-summary > p {
  margin: 8px 0 0;
  color: var(--ink);
  line-height: 1.45;
}

.detail-exception-summary-clear {
  border-color: rgba(41, 176, 119, 0.28);
  border-left-color: var(--accent);
  background: rgba(248, 255, 252, 0.82);
  box-shadow: none;
}

.detail-exception-summary-clear span {
  color: var(--accent);
}

.detail-total-summary {
  border-color: rgba(178, 95, 44, 0.34);
  border-left-color: var(--warn);
  background: rgba(255, 250, 245, 0.9);
  box-shadow: 0 14px 30px rgba(116, 57, 27, 0.08);
}

.detail-total-summary span {
  color: var(--warn);
}

.detail-po-summary {
  border-color: rgba(178, 95, 44, 0.34);
  border-left-color: var(--warn);
  background: rgba(255, 250, 245, 0.9);
  box-shadow: 0 14px 30px rgba(116, 57, 27, 0.08);
}

.detail-po-summary span {
  color: var(--warn);
}

.detail-summary-success {
  border-color: rgba(41, 176, 119, 0.28);
  border-left-color: var(--accent);
  background: rgba(248, 255, 252, 0.82);
  box-shadow: none;
}

.detail-summary-success span {
  color: var(--accent);
}

.detail-review-controls {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(26, 26, 26, 0.14);
  background: rgba(255, 255, 255, 0.8);
}

.detail-review-controls p {
  margin: 0;
  color: var(--muted);
}

.detail-review-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(360px, 1.35fr) auto;
  gap: 12px;
  align-items: end;
}

.detail-review-form {
  display: contents;
}

.detail-review-grid-row {
  display: contents;
}

.detail-review-form label {
  display: grid;
  grid-template-rows: 24px 42px;
  gap: 6px;
  margin: 0;
}

.detail-review-form input[type="text"],
.detail-review-form select {
  width: 100%;
  min-height: 42px;
}

.detail-review-form button {
  width: 100%;
  min-width: 190px;
  min-height: 42px;
  align-self: end;
}

.detail-review-extra {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(26, 26, 26, 0.2);
}

.detail-review-extra p {
  margin: 0 0 8px;
  color: var(--muted);
}

.detail-template-action {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(26, 26, 26, 0.18);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.detail-template-action strong {
  display: block;
  color: var(--ink);
  font-size: 0.92rem;
}

.detail-template-action p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

form { margin: 0; }

.inline-form {
  display: inline-flex;
}

.inline-form button {
  min-height: 34px;
  padding: 0 14px;
  font-size: 0.85rem;
  white-space: nowrap;
}

.action-cell {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  min-width: 172px;
}

.action-cell .inline-form {
  display: flex;
  align-items: center;
  width: auto;
}

.action-cell .inline-form button {
  width: 78px;
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.84rem;
}

.filter-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: end;
}

button, .button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(41, 176, 119, 0.35);
  border-radius: 999px;
  background: linear-gradient(180deg, #35ba82, var(--accent));
  color: #f8fffd;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.2;
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.button-link {
  background: rgba(255,255,255,0.84);
  color: var(--ink);
  border-color: rgba(26, 26, 26, 0.14);
}

button:hover, .button-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(27, 40, 38, 0.12);
}

.metrics-grid, .panel-grid, .config-grid {
  display: grid;
  gap: 18px;
}

.metrics-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-bottom: 22px;
}

.metric-card, .panel {
  border: 1px solid rgba(26, 26, 26, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(27, 40, 38, 0.08);
}

.metric-card {
  padding: 18px 20px;
}

.metric-label {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.metric-value {
  display: block;
  margin-top: 10px;
  font-size: 1.85rem;
  line-height: 1.15;
}

.panel-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  margin-bottom: 22px;
}

.config-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.panel {
  position: relative;
  z-index: 1;
  padding: 20px 22px;
  margin-bottom: 22px;
  overflow: visible;
}

.panel:hover,
.panel:focus-within {
  z-index: 12;
}

.hero-panel,
.panel,
.metric-card {
  animation: fade-up 240ms ease both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.panel-header h3 {
  margin: 0;
  font-size: 1.08rem;
}

.panel-header span, .config-meta {
  color: var(--muted);
  font-size: 0.88rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

thead th {
  text-align: left;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 16px 12px 0;
  border-bottom: 1px solid rgba(26, 26, 26, 0.15);
  line-height: 1.4;
  white-space: nowrap;
}

tbody td {
  padding: 12px 16px 13px 0;
  border-bottom: 1px solid rgba(26, 26, 26, 0.08);
  vertical-align: top;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

thead th.sortable {
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-right: 28px;
}

thead th.draggable-col {
  cursor: grab;
}

thead th.draggable-col:active,
thead th.draggable-col.is-dragging {
  cursor: grabbing;
}

thead th.is-dragging {
  opacity: 0.58;
}

thead th.is-drag-over {
  color: var(--ink);
  box-shadow: inset 3px 0 0 rgba(41, 176, 119, 0.72);
}

thead th.sortable:hover,
thead th.sortable:focus-visible {
  color: var(--ink);
  outline: none;
}

.sort-indicator {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.72rem;
  color: var(--muted);
}

thead th.is-sorted-asc .sort-indicator,
thead th.is-sorted-desc .sort-indicator {
  color: var(--ink);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
}

.resizable-col {
  position: relative;
}

.col-resizer {
  position: absolute;
  right: -6px;
  top: 0;
  width: 12px;
  height: 100%;
  cursor: col-resize;
  touch-action: none;
  z-index: 2;
}

.table-collapse-toggle {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(26, 26, 26, 0.16);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font-size: 0.82rem;
  white-space: nowrap;
}

.panel.table-collapsed .table-wrap {
  display: none;
}

.column-picker {
  position: relative;
  display: inline-block;
  z-index: 8;
}

.column-picker summary {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(26, 26, 26, 0.16);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.column-picker summary::-webkit-details-marker {
  display: none;
}

.column-picker summary::after {
  content: " ▾";
  color: var(--muted);
}

.column-picker[open] summary {
  border-color: rgba(41, 176, 119, 0.42);
  box-shadow: 0 8px 22px rgba(27, 40, 38, 0.1);
}

.column-picker-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(280px, 78vw);
  padding: 10px;
  border: 1px solid rgba(26, 26, 26, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  display: grid;
  gap: 4px;
}

.column-picker-option {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.84rem;
}

.column-picker-option:hover {
  background: var(--accent-soft);
}

.column-picker-option input {
  accent-color: var(--accent);
}

.column-picker-reset {
  margin-top: 6px;
  min-height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(26, 26, 26, 0.14);
  background: rgba(232, 243, 236, 0.78);
  color: var(--ink);
  font-size: 0.82rem;
}

.table-headers-tiles thead th {
  background: rgba(41, 176, 119, 0.14);
  border-bottom: 1px solid rgba(41, 176, 119, 0.24);
  padding: 10px 14px;
}

.table-headers-tiles tbody td {
  padding-left: 14px;
}

.supplier-matrix-table {
  min-width: 1480px;
}

.supplier-matrix-table td {
  min-width: 170px;
}

.supplier-matrix-table .matrix-meta {
  min-width: 240px;
}

.supplier-matrix-table .matrix-meta strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.supplier-matrix-table .matrix-meta span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.matrix-supplier-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.supplier-matrix-table .matrix-meta .matrix-supplier-header strong {
  margin-bottom: 0;
}

.template-validation-icon,
.supplier-matrix-table .matrix-meta .template-validation-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.supplier-directory-header,
.supplier-wizard-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
}

.supplier-directory-header h2,
.supplier-wizard-header h2 {
  margin: 2px 0 6px;
}

.supplier-directory-panel {
  padding: 18px;
}

.supplier-directory-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.supplier-directory-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.supplier-directory-tools input {
  min-width: 220px;
  min-height: 38px;
}

.layout-toggle {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(26, 26, 26, 0.14);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.84);
  font-weight: 800;
}

.layout-toggle.active {
  border-color: rgba(31, 142, 103, 0.42);
  color: var(--brand-green);
  background: rgba(229, 246, 238, 0.72);
}

.supplier-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.supplier-directory-card {
  position: relative;
  min-height: 190px;
  padding: 20px;
  border: 1px solid rgba(26, 26, 26, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.supplier-card-menu {
  position: absolute;
  right: 12px;
  top: 10px;
  color: var(--muted);
  font-weight: 800;
}

.supplier-card-title {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding-right: 18px;
}

.supplier-card-title h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
}

.supplier-card-routes {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.supplier-manage-link {
  margin-top: auto;
  color: #1f8e67;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  width: fit-content;
}

.supplier-manage-link:hover {
  color: var(--accent);
}

.supplier-directory-table .invoice-route-pill,
.supplier-directory-card .invoice-route-pill {
  min-width: 0;
}

.supplier-wizard-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.supplier-wizard-sidebar {
  padding-top: 4px;
}

.supplier-wizard-sidebar ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.wizard-step {
  position: relative;
  min-height: 54px;
  padding-left: 0;
}

.wizard-step::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 28px;
  bottom: 0;
  width: 1px;
  background: rgba(26, 26, 26, 0.16);
}

.wizard-step:last-child::after {
  display: none;
}

.wizard-step a,
.wizard-step .disabled-step {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 10px;
  color: var(--muted);
  text-decoration: none;
}

.wizard-step span span,
.wizard-step a span {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(26, 26, 26, 0.18);
  background: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  z-index: 1;
}

.wizard-step strong {
  font-size: 0.88rem;
  line-height: 1.25;
}

.wizard-step-passed a span,
.wizard-step-passed .disabled-step span {
  color: #0f6c4c;
  border-color: rgba(41, 176, 119, 0.58);
  background: rgba(41, 176, 119, 0.14);
}

.wizard-step-active a span,
.wizard-step-active .disabled-step span,
.wizard-step.active a span,
.wizard-step.active .disabled-step span {
  color: #8b5b00;
  border-color: rgba(232, 180, 65, 0.72);
  background: #fff8df;
}

.wizard-step-failed a span,
.wizard-step-failed .disabled-step span {
  color: #9b3329;
  border-color: #e0a59f;
  background: #fff0ee;
}

.wizard-step .disabled-step {
  opacity: 0.58;
}

.supplier-wizard-main {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.supplier-wizard-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid rgba(26, 26, 26, 0.1);
  padding-top: 14px;
}

.danger-zone {
  border-color: rgba(162, 59, 51, 0.28);
}

.template-validation-pass {
  color: #0f6c4c;
  background: rgba(41, 176, 119, 0.16);
  border: 1px solid rgba(41, 176, 119, 0.48);
}

.template-validation-fail {
  color: #9b3329;
  background: #fff0ee;
  border: 1px solid #e0a59f;
}

.matrix-route-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.supplier-matrix-table .matrix-meta .invoice-route-chip {
  min-width: 30px;
  min-height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

.inline-link {
  display: inline-block;
  margin-top: 8px;
  color: #1f8e67;
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.matrix-input {
  width: 100%;
  min-width: 180px;
  min-height: 38px;
  box-sizing: border-box;
}

.xero-category-select {
  min-width: 280px;
}

.xero-category-picker {
  width: 100%;
  min-width: 280px;
}

.xero-category-field-wrap {
  position: relative;
}

.xero-category-input {
  width: 100%;
  min-height: 38px;
  box-sizing: border-box;
  padding: 8px 34px 8px 12px;
  border: 1px solid rgba(26, 26, 26, 0.16);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
}

.xero-category-input:not(.has-value) {
  color: var(--muted);
  font-weight: 600;
}

.xero-category-input-chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--muted);
  font-size: 0.94rem;
}

.xero-category-panel {
  width: 100%;
  max-height: 360px;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid rgba(26, 26, 26, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 44px rgba(27, 40, 38, 0.16);
}

.xero-category-list {
  max-height: 338px;
  overflow-y: auto;
  padding-right: 2px;
}

.xero-category-section-title {
  padding: 8px 8px 5px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.xero-category-option {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.86rem;
  cursor: pointer;
}

.xero-category-option:hover,
.xero-category-option:focus {
  background: var(--accent-soft);
  outline: none;
}

.xero-category-option[aria-selected="true"] {
  background: rgba(41, 176, 119, 0.12);
}

.xero-category-option-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xero-category-star {
  flex: 0 0 auto;
  min-width: 22px;
  min-height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9aa2a6;
  font-size: 0.92rem;
  line-height: 1;
}

.xero-category-star.is-favourite {
  color: var(--gold);
  font-weight: 900;
}

.xero-category-empty {
  padding: 12px 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.template-route-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.template-route-tab {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(26, 26, 26, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-weight: 800;
  font-size: 0.84rem;
  text-decoration: none;
}

.template-route-tab.active {
  background: var(--accent-soft);
  border-color: rgba(41, 176, 119, 0.45);
  color: #0f6c4c;
}

.template-onboarding-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.template-step {
  border: 1px solid rgba(26, 26, 26, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  padding: 11px 12px;
  min-height: 66px;
}

.template-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 900;
  background: rgba(26, 26, 26, 0.08);
}

.template-step strong {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.template-step-passed {
  background: rgba(41, 176, 119, 0.12);
  border-color: rgba(41, 176, 119, 0.34);
}

.template-step-passed span {
  background: var(--accent);
  color: #fff;
}

.template-step-active {
  background: rgba(214, 162, 73, 0.16);
  border-color: rgba(214, 162, 73, 0.5);
}

.template-step-active span {
  background: var(--gold);
  color: #1a1a1a;
}

.template-step-failed {
  background: #fff0ee;
  border-color: #e0a59f;
}

.template-step-failed span {
  background: #b95043;
  color: #fff;
}

.route-checkbox-group {
  border: 1px solid rgba(26, 26, 26, 0.12);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.route-checkbox-group legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.route-checkbox-group label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.route-checkbox-group input {
  width: auto;
  margin: 0;
}

.box-editor-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, max-content));
  gap: 12px;
  align-items: end;
}

.box-editor-layout {
  display: grid;
  grid-template-columns: minmax(340px, 2fr) minmax(300px, 1fr);
  gap: 16px;
  align-items: start;
}

.box-preview-wrap {
  border: 1px solid rgba(26, 26, 26, 0.16);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.85);
}

.box-preview-stage {
  position: relative;
  width: 100%;
  overflow: auto;
  max-height: 68vh;
}

#template-preview-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(26, 26, 26, 0.14);
  background: #fff;
}

#box-canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.box-preview-empty {
  min-height: 220px;
  border: 1px dashed rgba(26, 26, 26, 0.22);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--muted);
  padding: 16px;
  text-align: center;
}

.box-guidance-card {
  margin-top: 18px;
  border: 1px solid rgba(26, 26, 26, 0.12);
  border-radius: var(--radius-md);
  padding: 16px;
  background: rgba(255, 255, 255, 0.74);
}

.box-guidance-card textarea {
  min-height: 160px;
}

.box-summary table td .button-link.box-remove-btn {
  min-height: 30px;
  padding: 0 10px;
  font-size: 0.75rem;
}

.supplier-advanced-item {
  border: 1px solid rgba(26, 26, 26, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.75);
}

.supplier-advanced-item > summary {
  cursor: pointer;
  font-weight: 600;
}

.data-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.data-list div {
  display: grid;
  gap: 4px;
}

.data-list dt {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.data-list dd {
  margin: 0;
  font-size: 1rem;
}

.data-list-note {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.detail-routing-strip {
  margin-bottom: 18px;
}

.detail-routing-list {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px 14px;
}

.detail-routing-list > div {
  border: 1px solid rgba(26, 26, 26, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  padding: 10px 12px;
}

.detail-routing-list dd {
  font-size: 0.95rem;
  line-height: 1.35;
}

.detail-routing-list .data-list-note {
  font-size: 0.82rem;
  line-height: 1.35;
}

.detail-override-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px 14px;
}

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

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(26, 26, 26, 0.18);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  background: rgba(255,255,255,0.92);
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(41, 176, 119, 0.16);
}

input[type="checkbox"] {
  width: 14px;
  height: 14px;
  min-height: 14px;
  margin: 0;
  padding: 0;
  accent-color: #1f8e67;
  vertical-align: middle;
}

textarea {
  min-height: 120px;
  line-height: 1.45;
}

.notes-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.6;
}

.exception-card {
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(214, 162, 73, 0.11), rgba(255,255,255,0.86));
  border: 1px solid rgba(214, 162, 73, 0.28);
  margin-bottom: 12px;
}

pre {
  overflow-x: auto;
  margin: 0;
  padding: 14px;
  border-radius: 16px;
  background: rgba(26, 31, 33, 0.96);
  color: #f2f7f4;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.84rem;
  line-height: 1.45;
}

.event-details {
  display: inline-block;
  max-width: 520px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.75rem;
  color: var(--muted);
}

.extracted-text {
  max-height: 420px;
}

/* Control centre visual refresh.
   This layer intentionally changes presentation only; existing routes, forms,
   table hooks, collapse controls, sorting, and processing actions are unchanged. */
:root {
  --page-bg: #edf6f1;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-muted: #f7fbf8;
  --border: rgba(26, 26, 26, 0.12);
  --border-strong: rgba(26, 26, 26, 0.18);
  --text-primary: #17211d;
  --text-secondary: #5b6468;
  --brand-primary: #29b077;
  --brand-primary-soft: #dff3e9;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;
}

body {
  color: var(--text-primary);
  background:
    linear-gradient(180deg, #f5faf7 0%, var(--page-bg) 48%, #dceee5 100%);
}

.app-layout {
  --sidebar-width: 252px;
}

.app-sidebar {
  padding: 24px 18px;
  border-right-color: rgba(26, 26, 26, 0.09);
  background: rgba(248, 251, 249, 0.96);
  backdrop-filter: none;
  gap: 22px;
}

.sidebar-header {
  align-items: flex-start;
}

.sidebar-brand {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  box-shadow: 0 1px 0 rgba(26, 26, 26, 0.08);
}

.sidebar-brand h1 {
  font-size: 1.03rem;
  line-height: 1.15;
}

.sidebar-brand .eyebrow {
  margin-bottom: 3px;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
}

.sidebar-toggle {
  min-height: 38px;
  border-radius: var(--radius-md);
  border-color: rgba(26, 26, 26, 0.14);
  background: #fff;
}

.site-nav {
  gap: 7px;
}

.nav-link {
  min-height: 42px;
  border-radius: var(--radius-md);
  padding: 0 12px;
  color: #697276;
  font-size: 0.9rem;
  gap: 12px;
}

.nav-icon {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: #a1aaa6;
  font-size: 1rem;
}

.nav-link:hover {
  transform: none;
  background: rgba(232, 243, 236, 0.78);
  border-color: rgba(26, 26, 26, 0.08);
}

.nav-link.nav-link-active {
  background: var(--brand-primary-soft);
  border-color: rgba(41, 176, 119, 0.28);
  color: #17382d;
  box-shadow: inset 4px 0 0 #1f8e67;
}

.nav-link.nav-link-active .nav-icon {
  color: #1f8e67;
  background: transparent;
  border: 0;
}

.nav-subgroup {
  display: grid;
  gap: 6px;
  margin: 0 0 8px 16px;
  padding: 4px 0 0 0;
}

.nav-sub-link {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 4px;
  padding: 0 12px;
  color: #424b47;
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-sub-chevron {
  width: 14px;
  color: #59645f;
  font-size: 1rem;
  line-height: 1;
  text-align: center;
}

.nav-sub-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-sub-link:hover {
  background: rgba(26, 26, 26, 0.05);
  color: #242c28;
}

.nav-sub-link.nav-sub-link-active {
  background: rgba(26, 26, 26, 0.055);
  color: #242c28;
  box-shadow: none;
}

.sidebar-footer {
  padding: 0;
}

.nav-control {
  min-height: 38px;
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--text-secondary);
}

.sidebar-signout-form {
  margin-top: 8px;
}

.sidebar-signout-button {
  width: 100%;
  min-height: 32px;
  padding: 0 10px;
  border-color: rgba(26, 26, 26, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-secondary);
  font-size: 0.76rem;
}

.sidebar-resizer::before {
  background: rgba(26, 26, 26, 0.1);
}

.app-layout.sidebar-collapsed .nav-link {
  width: 44px;
  min-height: 42px;
  border-radius: var(--radius-md);
}

.app-layout.sidebar-collapsed .nav-subgroup {
  display: none;
}

.app-layout.sidebar-collapsed .sidebar-toggle-sidebar {
  margin-inline: auto;
}

.site-shell {
  width: calc(100% - 48px);
  max-width: none;
  padding: 32px 0 44px;
}

.screen-title-bar {
  margin-bottom: 22px;
  padding: 0 0 18px;
  border-bottom-color: rgba(26, 26, 26, 0.08);
}

.screen-title {
  font-size: clamp(1.65rem, 2vw, 2.15rem);
  color: var(--text-primary);
}

.eyebrow,
.metric-label,
.data-list dt {
  color: #687174;
  letter-spacing: 0.13em;
}

.hero-panel,
.detail-hero {
  padding: 24px 28px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: none;
  backdrop-filter: none;
}

.hero-copy h2,
.detail-hero h2 {
  font-size: clamp(1.55rem, 2vw, 2.25rem);
}

.dashboard-control {
  margin-bottom: 26px;
  padding: 0;
}

.dashboard-control-header {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto;
  gap: 24px;
  align-items: start;
  margin-bottom: 28px;
}

.dashboard-control-header h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(1.9rem, 2.8vw, 2.7rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.dashboard-control-header p {
  margin: 10px 0 0;
  color: var(--text-secondary);
  font-size: 1rem;
}

.dashboard-control-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  max-width: 660px;
}

.dashboard-control-actions button {
  min-width: 154px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  min-height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.status-pill-blue {
  color: #2d61d6;
  border: 1px solid #b9cafb;
  background: #eef3ff;
}

.status-pill-amber {
  color: #9a6811;
  border: 1px solid #e6bd60;
  background: #fff6df;
}

.status-pill-green {
  color: #168a5d;
  border: 1px solid #95d9bd;
  background: #e5f6ee;
}

.status-pill-red {
  color: #a23b33;
  border: 1px solid #e0a59f;
  background: #fff0ee;
}

.invoice-route-pill {
  width: fit-content;
  min-width: 104px;
  min-height: 26px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
}

.invoice-route-stack {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  min-height: 26px;
  width: 104px;
}

.invoice-route-stack .invoice-route-chip {
  min-width: 48px;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.invoice-route-stack .invoice-route-chip-active {
  box-shadow: inset 0 0 0 1px currentColor;
}

.invoice-route-client_costed {
  color: #275c9f;
  border: 1px solid #9fc3eb;
  background: #eef6ff;
}

.invoice-route-company_cost {
  color: #6c4aa1;
  border: 1px solid #bfaee5;
  background: #f5f0ff;
}

.invoice-route-subcontractor_review {
  color: #8a3d78;
  border: 1px solid #d8a9cf;
  background: #fff1fb;
}

.invoice-route-credit_note {
  color: #7b4f19;
  border: 1px solid #d6b783;
  background: #fff7e7;
}

.invoice-route-unknown_review {
  color: #53616f;
  border: 1px solid #c3ccd5;
  background: #f3f6f8;
}

.hero-copy p:last-child,
.detail-meta,
.panel-header span,
.config-meta,
label {
  color: var(--text-secondary);
}

.metrics-grid,
.panel-grid,
.config-grid,
.settings-grid {
  gap: 20px;
}

.metrics-grid {
  margin-bottom: 24px;
}

.metric-card,
.panel,
.settings-card,
.supplier-advanced-item,
.detail-review-controls,
.detail-routing-list > div,
.box-preview-wrap,
.exception-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: none;
  backdrop-filter: none;
}

.metric-card {
  padding: 18px 20px;
}

.metric-value {
  margin-top: 8px;
  font-size: 1.8rem;
  letter-spacing: -0.02em;
}

.panel {
  padding: 22px 24px;
  margin-bottom: 24px;
}

.panel-header {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(26, 26, 26, 0.07);
  align-items: flex-start;
}

.panel-header h3 {
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}

button,
.button-link,
.table-collapse-toggle,
.column-picker summary,
.column-picker-reset {
  border-radius: var(--radius-md);
}

button,
.button-link {
  min-height: 40px;
  padding: 0 15px;
  border-color: rgba(41, 176, 119, 0.34);
  background: var(--brand-primary);
  font-weight: 600;
  box-shadow: none;
}

.button-link,
button.secondary,
.button-link.subtle,
.table-collapse-toggle,
.column-picker summary,
.column-picker-reset {
  background: #fff;
  color: var(--text-primary);
  border-color: rgba(26, 26, 26, 0.15);
}

.button-link.disabled-link {
  color: var(--text-muted);
  border-color: rgba(26, 26, 26, 0.1);
  background: rgba(255, 255, 255, 0.58);
  cursor: default;
}

button:hover,
.button-link:hover,
.table-collapse-toggle:hover,
.column-picker summary:hover {
  transform: none;
  box-shadow: none;
  filter: brightness(0.985);
}

.button-link.disabled-link:hover {
  filter: none;
}

.hero-actions,
.table-actions {
  gap: 10px;
}

.filter-form {
  gap: 14px 16px;
  padding: 2px 0;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  min-height: 42px;
  border-radius: var(--radius-md);
  border-color: rgba(26, 26, 26, 0.17);
  background: #fff;
}

textarea {
  min-height: 132px;
}

.table-wrap {
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: var(--radius-md);
  background: #fff;
}

table {
  background: #fff;
}

thead th {
  padding: 12px 18px 12px 14px;
  border-bottom: 1px solid rgba(26, 26, 26, 0.12);
  background: #fbfdfc;
  color: #535d61;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

tbody td {
  padding: 14px 18px 14px 14px;
  border-bottom: 1px solid rgba(26, 26, 26, 0.07);
  vertical-align: middle;
  font-size: 0.95rem;
}

tbody tr:hover td {
  background: #f8fbf9;
}

.table-headers-tiles thead th {
  background: #f4faf6;
  border-bottom-color: rgba(41, 176, 119, 0.22);
}

td.action-cell {
  display: grid;
  grid-template-columns: repeat(2, 96px);
  gap: 7px;
  align-items: center;
  justify-content: start;
  min-width: 207px;
  padding-top: 6px;
  padding-bottom: 6px;
  line-height: 1;
}

td.action-cell .inline-form {
  display: block;
  margin: 0;
  line-height: 1;
}

td.action-cell .inline-form button {
  box-sizing: border-box;
  width: 100%;
  min-width: 96px;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  padding: 0 8px;
  border-radius: var(--radius-md);
  font-size: 0.72rem;
  line-height: 1;
}

.error-log-table tbody td {
  vertical-align: middle;
}

td.error-log-action-cell {
  display: table-cell;
  min-width: 122px;
  padding-top: 10px;
  padding-bottom: 10px;
  vertical-align: middle;
}

td.error-log-action-cell .inline-form {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

td.error-log-action-cell .inline-form button {
  width: auto;
  min-width: 92px;
}

td.action-cell .queue-action-button {
  display: inline-flex !important;
  box-sizing: border-box !important;
  width: 96px !important;
  min-width: 96px !important;
  max-width: 96px !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  padding: 0 8px !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap;
  font-size: 0.72rem !important;
  line-height: 1 !important;
}

.confirmation-dialog[hidden] {
  display: none;
}

.confirmation-dialog {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.confirmation-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 28, 26, 0.32);
}

.confirmation-dialog-panel {
  position: relative;
  width: min(420px, 100%);
  padding: 22px;
  border: 1px solid rgba(38, 38, 38, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.confirmation-dialog-panel h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.confirmation-dialog-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.confirmation-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.confirmation-dialog-actions button {
  min-width: 92px;
}

.confirmation-dialog-actions button.secondary {
  border-color: rgba(38, 38, 38, 0.16);
  background: #fff;
  color: var(--ink);
}

.filter-form > button {
  align-self: end;
  min-height: 42px;
}

.column-picker-menu {
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 36px rgba(27, 40, 38, 0.1);
}

.detail-summary-row {
  gap: 16px;
}

.detail-exception-summary,
.detail-total-summary,
.detail-po-summary {
  border-radius: var(--radius-lg);
  box-shadow: none;
}

.detail-review-grid {
  gap: 12px 14px;
}

.detail-routing-list {
  gap: 14px;
}

.detail-routing-list > div {
  padding: 14px;
}

.data-list {
  gap: 16px;
}

.data-list dd {
  font-size: 0.96rem;
}

.settings-collapse-panel {
  padding-top: 0;
}

.settings-collapse-summary {
  cursor: pointer;
  list-style-position: outside;
  padding-top: 22px;
}

.settings-collapse-summary .panel-header {
  display: inline-flex;
  width: calc(100% - 22px);
  margin-left: 6px;
  vertical-align: middle;
}

.settings-collapse-summary::-webkit-details-marker {
  color: var(--text-secondary);
}

.settings-collapse-panel:not([open]) {
  padding-bottom: 22px;
}

.settings-card-secondary {
  border-color: rgba(26, 26, 26, 0.24);
  background: #eef0ee;
}

.settings-section-card {
  color: inherit;
  display: block;
  text-decoration: none;
}

.settings-section-card:hover {
  border-color: rgba(41, 176, 119, 0.34);
  background: #fff;
}

.settings-section-card p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

.integration-directory-panel .config-meta {
  margin: -6px 0 18px;
}

.integration-directory-wrap {
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow-x: visible;
}

.integration-directory-table {
  min-width: 0;
}

.integration-directory-table th,
.integration-directory-table td {
  height: 46px;
  padding: 0 14px;
  vertical-align: middle;
}

.integration-directory-table th:first-child,
.integration-directory-table td:first-child {
  width: 72%;
}

.integration-directory-row a {
  color: var(--ink);
  display: block;
  font-weight: 600;
  text-decoration: none;
}

.integration-directory-row:hover {
  background: rgba(41, 176, 119, 0.06);
}

.integration-directory-row.is-selected {
  background: rgba(41, 176, 119, 0.1);
}

.integration-status-pill {
  justify-content: flex-start;
  min-height: 24px;
  min-width: 96px;
  padding: 0 10px;
}

.integration-status-pill::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  margin-right: 7px;
  background: currentColor;
}

.integration-directory-actions {
  border-top: 1px solid rgba(26, 26, 26, 0.1);
  margin-top: 14px;
  padding-top: 16px;
}

.integration-add-button {
  border-color: rgba(41, 176, 119, 0.36);
  background: #35e49b;
  color: #10362a;
  font-weight: 700;
}

.integration-detail-window {
  margin-top: 18px;
}

.integration-credential-form {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.integration-credential-form button,
.integration-credential-form .config-meta {
  grid-column: 1 / -1;
}

.integration-detail-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 14px;
}

.integration-detail-grid div {
  border: 1px solid rgba(26, 26, 26, 0.12);
  border-radius: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.integration-detail-grid span,
.integration-detail-grid strong {
  display: block;
}

.integration-detail-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.client-invoice-hero {
  border-color: rgba(26, 26, 26, 0.2);
  background: #e6e8e7;
}

.settings-grid-secondary {
  margin-top: 18px;
}

.settings-user-access-top {
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  align-items: stretch;
}

.settings-user-access-top > .panel {
  display: flex;
  flex-direction: column;
}

.settings-user-access-top .stack-form {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.settings-user-access-top label {
  min-width: 0;
}

.settings-user-access-top input:not([type="checkbox"]):not([type="radio"]),
.settings-user-access-top select {
  min-height: 40px;
  box-sizing: border-box;
}

.settings-user-access-top .stack-form button {
  width: 100%;
  margin-top: auto;
  min-height: 40px;
}

.settings-account-form,
.settings-user-create-form {
  min-height: 246px;
}

.settings-user-profiles-panel .settings-user-profile-cell {
  min-width: 150px;
}

.settings-user-profiles-panel .settings-user-profile-cell input,
.settings-user-profiles-panel .settings-user-profile-cell select,
.settings-user-profiles-panel .user-profile-password-row input {
  min-height: 36px;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 0.84rem;
}

.settings-user-profile-save {
  min-width: 120px;
}

.settings-user-profile-actions {
  min-width: 320px;
}

.user-profile-password-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.settings-user-profile-save button,
.settings-user-profile-actions button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.template-preview-fields {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  margin: 12px 0;
}

.template-preview-actions {
  display: flex;
  justify-content: flex-end;
  margin: -2px 0 14px;
}

.template-flow-card {
  border: 1px solid rgba(26, 26, 26, 0.1);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 14px;
  background: #f8faf8;
}

.template-flow-success {
  border-color: rgba(22, 138, 93, 0.34);
  background: #f1faf5;
}

.template-flow-warning {
  border-color: rgba(154, 104, 17, 0.3);
  background: #fffaf0;
}

.template-flow-error {
  border-color: rgba(162, 59, 51, 0.28);
  background: #fff7f6;
}

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

.template-flow-header h4 {
  margin: 10px 0 0;
  font-size: 1rem;
}

.template-flow-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.template-flow-card p {
  margin: 0 0 12px;
  color: var(--text-secondary);
}

.template-flow-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin: 0;
}

.template-flow-meta div,
.template-certification-panel {
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.72);
}

.template-flow-meta dt {
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.template-flow-meta dd {
  margin: 4px 0 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.template-certification-panel {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  color: var(--text-secondary);
}

.template-certification-panel strong {
  color: var(--text-primary);
}

.template-certification-panel.muted {
  background: rgba(255, 255, 255, 0.46);
}

.template-certification-form {
  margin: 0;
}

.template-certification-form button {
  min-width: 210px;
}

button:disabled {
  cursor: not-allowed;
  border-color: rgba(26, 26, 26, 0.12);
  background: #d8ddd9;
  color: #68716d;
}

.template-onboarding-stack {
  display: grid;
  gap: 18px;
}

.template-guidance-card textarea {
  min-height: 180px;
}

.template-parser-card .filter-form {
  margin-top: 12px;
}

.template-guidance-summary {
  cursor: pointer;
  list-style-position: outside;
  margin-bottom: 12px;
}

.template-guidance-summary .panel-header {
  display: inline-flex;
  width: calc(100% - 22px);
  margin-left: 6px;
  vertical-align: middle;
}

.template-guidance-summary::-webkit-details-marker {
  color: var(--text-secondary);
}

.template-guidance-card:not([open]) {
  padding-bottom: 16px;
}

.template-preview-diagnostics {
  margin-top: 12px;
}

.template-preview-diagnostics ul {
  margin: 12px 0;
  padding-left: 20px;
  color: var(--text-secondary);
}

.template-preview-diagnostics pre {
  max-height: 280px;
  overflow: auto;
  white-space: pre-wrap;
}

.template-preview-split {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(520px, 1.15fr);
  gap: 22px;
  align-items: start;
}

.template-source-panel,
.template-parsed-panel {
  min-width: 0;
}

.template-source-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.template-source-frame {
  width: 100%;
  min-height: 720px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
}

.template-source-empty {
  min-height: 260px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.62);
  text-align: center;
}

.box-preview-wrap,
.box-preview-empty,
#template-preview-image,
.supplier-advanced-item,
.settings-card {
  border-radius: var(--radius-lg);
}

pre {
  border-radius: var(--radius-md);
}

@media (max-width: 1120px) {
  .dashboard-control-header {
    grid-template-columns: 1fr;
  }

  .dashboard-control-actions {
    justify-content: flex-start;
  }

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

  .app-layout.sidebar-collapsed .app-sidebar {
    display: none;
  }

  .sidebar-resizer {
    display: none;
  }

  .app-sidebar {
    position: sticky;
    top: 0;
    z-index: 50;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(26, 26, 26, 0.1);
    padding: 12px 14px;
    background: rgba(240, 248, 243, 0.95);
  }

  .sidebar-brand {
    padding: 8px 10px;
  }

  .sidebar-brand h1 {
    font-size: 0.95rem;
  }

  .side-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-link {
    white-space: nowrap;
  }

  .nav-subgroup {
    display: flex;
    gap: 6px;
    margin: 0;
    padding-left: 0;
    border-left: 0;
  }

  .nav-sub-link {
    min-height: 38px;
    white-space: nowrap;
  }

  .sidebar-footer {
    margin-top: 0;
    padding: 0;
  }

  .nav-control {
    width: auto;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    white-space: nowrap;
  }

  .site-shell {
    width: calc(100% - 20px);
    max-width: none;
  }

  .screen-title-bar {
    align-items: center;
    padding: 0 2px 10px;
  }
}

@media (max-width: 860px) {
  .dashboard-control-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dashboard-control-actions button {
    width: 100%;
  }

  .screen-title-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-panel,
  .detail-hero {
    flex-direction: column;
    align-items: stretch;
  }

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

  .detail-hero-side {
    justify-items: stretch;
  }

  .detail-hero-actions {
    justify-content: flex-start;
  }

  .detail-actions-menu,
  .detail-actions-menu summary {
    width: 100%;
  }

  .detail-actions-dropdown {
    left: 0;
    right: auto;
    min-width: min(100%, 280px);
  }

  .detail-exception-summary {
    width: 100%;
  }

  .detail-summary-row {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .template-preview-split {
    grid-template-columns: 1fr;
  }

  .template-flow-header {
    display: grid;
  }

  .template-certification-form button {
    width: 100%;
  }

  .template-source-frame {
    min-height: 520px;
  }

  .template-onboarding-steps {
    grid-template-columns: 1fr;
  }

  .template-route-tabs {
    flex-direction: column;
  }

  .supplier-directory-header,
  .supplier-wizard-header,
  .supplier-directory-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .supplier-directory-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .supplier-directory-tools input {
    min-width: 0;
    width: 100%;
  }

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

  .supplier-wizard-sidebar ol {
    grid-template-columns: 1fr;
  }

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

  .box-editor-controls {
    grid-template-columns: 1fr;
  }

  .detail-review-grid {
    grid-template-columns: 1fr;
  }

  .detail-template-action {
    grid-template-columns: 1fr;
  }
}

body.login-page-body {
  min-height: 100vh;
  overflow: hidden;
  background: #d9f1ef;
}

.login-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 118px clamp(32px, 8vw, 148px) 84px;
}

.login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.34)),
    url("/static/login-homepage-hero.png");
  background-position: center bottom;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.82;
}

.login-brand-logo {
  position: absolute;
  top: clamp(34px, 6vw, 78px);
  left: clamp(30px, 8vw, 150px);
  z-index: 2;
  width: clamp(162px, 13vw, 224px);
  height: auto;
}

.login-hero-copy {
  position: absolute;
  top: clamp(48px, 7vw, 92px);
  right: clamp(34px, 7vw, 132px);
  transform: none;
  z-index: 1;
  max-width: min(410px, 28vw);
  text-align: right;
  color: #020202;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0.88;
}

.login-hero-copy span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px #50b77d;
  font-size: clamp(1.35rem, 2.15vw, 2.65rem);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: 0;
}

.login-hero-copy strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(1.75rem, 2.65vw, 3.3rem);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: 0;
}

.login-hero-copy small {
  display: block;
  margin-top: 8px;
  font-size: clamp(0.72rem, 0.88vw, 0.98rem);
  line-height: 1.2;
  text-transform: none;
  text-align: right;
  color: rgba(0, 0, 0, 0.58);
  letter-spacing: 0;
}

.login-card {
  position: relative;
  z-index: 2;
  justify-self: center;
  width: min(100%, 420px);
  padding: 48px 54px 42px;
  border: 1px solid rgba(26, 26, 26, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 58px rgba(29, 44, 38, 0.18);
}

.login-card-heading {
  text-align: center;
  margin-bottom: 32px;
}

.login-card-heading p {
  margin: 0 0 18px;
  color: #4c5457;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0;
}

.login-card-heading h1 {
  margin: 0;
  font-size: 2.55rem;
  line-height: 1;
  font-weight: 800;
  color: #30383a;
  letter-spacing: 0;
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-form label {
  display: grid;
  gap: 6px;
  color: #3f494c;
  font-size: 0.82rem;
  font-weight: 700;
}

.login-form input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid rgba(26, 26, 26, 0.34);
  border-radius: 4px;
  background: #fff;
  color: #1a1a1a;
  font-size: 0.96rem;
  outline: none;
}

.login-form input:focus {
  border-color: #29b077;
  box-shadow: 0 0 0 3px rgba(41, 176, 119, 0.15);
}

.login-form button {
  width: 100%;
  min-height: 48px;
  margin-top: 2px;
  border-radius: 4px;
  background: #29b077;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

.login-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin: 26px 0 20px;
  color: #5f686b;
  font-size: 0.88rem;
  font-weight: 700;
}

.login-divider::before,
.login-divider::after {
  content: "";
  height: 1px;
  background: rgba(26, 26, 26, 0.14);
}

.login-entra-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(26, 26, 26, 0.22);
  border-radius: 4px;
  background: #fff;
  color: #1f292c;
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
}

.login-entra-button::before {
  content: "";
  width: 20px;
  height: 20px;
  background:
    linear-gradient(#f25022 0 0) left top / 9px 9px no-repeat,
    linear-gradient(#7fba00 0 0) right top / 9px 9px no-repeat,
    linear-gradient(#00a4ef 0 0) left bottom / 9px 9px no-repeat,
    linear-gradient(#ffb900 0 0) right bottom / 9px 9px no-repeat;
}

.login-entra-button-disabled {
  color: rgba(31, 41, 44, 0.55);
  background: rgba(255, 255, 255, 0.68);
  cursor: default;
}

.login-muted {
  margin: 10px 0 0;
  color: #657073;
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: center;
}

.login-card .panel {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 6px;
  box-shadow: none;
}

.login-card .panel-header {
  margin-bottom: 4px;
}

.login-card .panel-header h3 {
  font-size: 0.9rem;
}

.login-card .panel p {
  font-size: 0.82rem;
  line-height: 1.35;
}

@media (max-width: 1120px) {
  .login-page {
    padding: 118px 28px 54px;
  }

  .login-hero-copy {
    display: none;
  }

  .login-card {
    justify-self: center;
  }
}

@media (max-width: 620px) {
  body.login-page-body {
    overflow: auto;
  }

  .login-page {
    min-height: 100svh;
    padding: 108px 18px 36px;
    align-items: start;
  }

  .login-page::before {
    background-position: 36% bottom;
  }

  .login-brand-logo {
    left: 22px;
    width: 154px;
  }

  .login-card {
    padding: 36px 24px 30px;
  }

  .login-card-heading h1 {
    font-size: 2.25rem;
  }
}
