@import url("./src/themes/tokens.css");
@import url("./src/themes/skin-akulab-light.css");
@import url("./src/themes/customerInvoiceTax.css?v=20260724-v2-ui-remediation-11-106");
@import url("./src/themes/customerInvoiceDelivery.css");

:root {
  --page: #f2f5f8;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --ink: #0f1b3d;
  --muted: #61708a;
  --line: #e2e9f3;
  --line-soft: #edf2f7;
  --navy: #071a33;
  --navy-2: #0b2344;
  --blue: #2563eb;
  --blue-soft: #eaf2ff;
  --green: #16a34a;
  --yellow: #f59e0b;
  --red: #dc2626;
  --footer: #081426;
  --shadow: 0 10px 28px rgba(15, 27, 61, 0.035);
}

.supplier-payment-proposals-view {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.payment-proposal-toolbar {
  align-items: end;
  border-bottom: 1px solid #d7dde0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 0 12px;
}

.payment-proposal-toolbar label,
.payment-file-form label,
.payment-proposal-cancel label {
  display: grid;
  font-size: 12px;
  font-weight: 700;
  gap: 4px;
}

.payment-proposal-toolbar input,
.payment-file-form input,
.payment-file-form select,
.payment-proposal-cancel input {
  box-sizing: border-box;
  min-height: 34px;
  min-width: 0;
}

.payment-proposal-invoices th:first-child,
.payment-proposal-invoices td:first-child {
  text-align: center;
  width: 42px;
}

.payment-proposal-work-row td {
  background: #f4f7f6;
  border-bottom: 1px solid #cbd4d1;
  padding: 10px 12px;
}

.payment-file-form {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
}

.payment-file-profile-fields {
  display: contents;
}

.payment-proposal-cancel {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1fr) auto;
  margin-top: 10px;
  max-width: 620px;
}

.payment-proposal-cancel[hidden] {
  display: none;
}

.payment-file-metadata {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  overflow-wrap: anywhere;
}

.payment-file-metadata strong {
  color: #8a4b08;
}

@media (max-width: 900px) {
  .payment-file-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .payment-proposal-toolbar,
  .payment-file-form,
  .payment-proposal-cancel {
    align-items: stretch;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .payment-file-form,
  .payment-proposal-cancel {
    width: calc(100vw - 28px);
  }

  .payment-proposal-toolbar button,
  .payment-file-form button,
  .payment-proposal-cancel button {
    width: 100%;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--page);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.35;
}

button,
input {
  font: inherit;
}

.eui-shell {
  position: relative;
  height: 100vh;
  min-width: 0;
  width: 100vw;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 58px 44px 40px 1fr 28px;
  overflow: hidden;
}

.eui-header {
  display: grid;
  grid-template-columns: 330px minmax(360px, 620px) 1fr;
  align-items: center;
  gap: 18px;
  padding: 0 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(15, 27, 61, 0.02);
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-right {
  justify-content: flex-end;
}

.menu-button {
  width: 40px;
  height: 36px;
  display: grid;
  place-content: center;
  gap: 5px;
  border: 0;
  border-radius: 8px;
  background: var(--navy);
  cursor: pointer;
}

.menu-button.active {
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  line-height: 1;
}

.brand-mark {
  width: 42px;
  height: 34px;
  border-radius: 7px;
  background:
    linear-gradient(135deg, #13c8da 0 48%, transparent 49%),
    linear-gradient(135deg, transparent 0 53%, #f59e0b 54% 100%),
    #0b2344;
}

.brand strong {
  display: block;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.header-search input {
  width: 100%;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.header-search input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.icon-button,
.plain-button {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.icon-button {
  width: 38px;
}

.plain-button {
  padding: 0 14px;
}

.row-action-cell {
  text-align: right;
  white-space: nowrap;
}

.table-action-button {
  height: 28px;
  padding: 0 10px;
  border: 1px solid #dce5f2;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
}

.table-action-button:hover,
.table-action-button:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.main-nav {
  display: flex;
  align-items: stretch;
  gap: 2px;
  padding: 0 18px;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.main-nav button {
  position: relative;
  flex: 0 0 auto;
  min-width: 132px;
  padding: 0 17px;
  border: 0;
  border-right: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 850;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.main-nav::-webkit-scrollbar,
.sub-nav::-webkit-scrollbar,
.filter-strip::-webkit-scrollbar {
  display: none;
}

.main-nav button:hover,
.main-nav button.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
}

.main-nav button.active::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--blue);
}

.sub-nav {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0 18px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.sub-nav button {
  position: relative;
  flex: 0 0 auto;
  min-width: max-content;
  padding: 0 16px;
  border: 0;
  border-right: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
}

.sub-nav button:hover {
  color: var(--blue);
  background: #fafcff;
}

.sub-nav button.active {
  color: var(--blue);
}

.sub-nav button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--blue);
}

.workspace {
  min-height: 0;
  padding: 0;
  background: var(--page);
}

.system-window {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--surface);
  border: 0;
  box-shadow: none;
  overflow: hidden;
}

.system-heading {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 32px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

h1 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.system-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.system-actions button {
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 850;
}

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

.system-content {
  min-height: 0;
  overflow: auto;
  background: #fff;
}

.workbar {
  min-height: 50px;
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(300px, 420px) 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
}

.workbar strong {
  font-size: 15px;
  font-weight: 850;
}

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

.workbar input {
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.filter-strip {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 32px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-chip {
  appearance: none;
  height: 25px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--surface-soft);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.filter-chip.active {
  border-color: #c7dcff;
  background: var(--blue-soft);
  color: var(--blue);
}

.filter-chip:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.data-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
  table-layout: fixed;
}

.data-table thead th {
  height: 32px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #f7f9fc;
  color: #4d5d73;
  font-size: 11px;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.data-table tbody td {
  height: 36px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.data-table tbody tr {
  background: #fff;
}

.data-table tbody tr:hover {
  background: #f8fbff;
}

.row-green {
  background: #f7fbf4;
}

.row-yellow {
  background: #fffaf0;
}

.row-red {
  background: #fff5f5;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-weight: 850;
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status.green {
  background: #eaf8ef;
  color: var(--green);
}

.status.yellow {
  background: #fff7db;
  color: #a16207;
}

.status.red {
  background: #feecec;
  color: var(--red);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
}

.ledger-list {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.ledger-row {
  min-height: 48px;
  display: grid;
  grid-template-columns: 180px 1fr 140px 120px;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.ledger-row strong {
  font-size: 15px;
}

.statusbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 16px;
  background: var(--footer);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 750;
}

.statusbar span:not(:first-child) {
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.status-ok {
  margin-left: auto;
  color: #8ef2b1;
}

/* Visual polish pass for the standalone EUI shell only. */
:root {
  --page: #eef3f8;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --ink: #0d1733;
  --muted: #66758c;
  --line: #d9e2ee;
  --line-soft: #edf2f7;
  --navy: #06172d;
  --navy-2: #08203d;
  --blue: #176fd3;
  --blue-soft: #e8f1ff;
  --shadow: 0 12px 32px rgba(13, 23, 51, 0.045);
}

body {
  background: var(--page);
  color: var(--ink);
}

.eui-shell {
  min-width: 0;
  width: 100vw;
  grid-template-rows: 56px 42px 38px 1fr 28px;
  background: var(--page);
}

.eui-header {
  grid-template-columns: minmax(230px, 320px) minmax(260px, 620px) minmax(220px, 1fr);
  padding: 0 16px;
  border-bottom: 1px solid #dce5f0;
  box-shadow: 0 1px 0 rgba(13, 23, 51, 0.03);
}

.menu-button {
  width: 38px;
  height: 34px;
  border-radius: 7px;
  background: linear-gradient(180deg, #08203d, #06172d);
}

.menu-button.active {
  background: #176fd3;
  box-shadow: 0 8px 18px rgba(23, 111, 211, 0.22);
}

.brand {
  gap: 10px;
}

.brand-mark {
  width: 40px;
  height: 32px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 6px 14px rgba(6, 23, 45, 0.12);
}

.brand strong {
  font-size: 21px;
  letter-spacing: -0.04em;
}

.brand small {
  font-size: 10px;
  letter-spacing: 0.05em;
}

.header-search input,
.icon-button,
.plain-button,
.system-actions button,
.workbar input {
  border-color: #d7e1ee;
}

.header-search input {
  height: 34px;
  border-radius: 6px;
  background: #fbfdff;
}

.icon-button,
.plain-button {
  height: 32px;
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
}

.main-nav {
  padding: 0 16px;
  background: linear-gradient(90deg, #06172d, #08203d);
  border-bottom: 0;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar,
.sub-nav::-webkit-scrollbar,
.filter-strip::-webkit-scrollbar {
  display: none;
}

.main-nav button {
  min-width: 132px;
  padding: 0 18px;
  font-size: 13px;
  letter-spacing: 0.01em;
}

.main-nav button:hover {
  background: rgba(255, 255, 255, 0.035);
}

.main-nav button.active {
  background: rgba(255, 255, 255, 0.06);
}

.main-nav button.active::after {
  left: 18px;
  right: 18px;
  height: 2px;
  background: #4d8dff;
}

.sub-nav {
  padding: 0 16px;
  border-bottom: 1px solid #dce5f0;
  box-shadow: 0 4px 18px rgba(13, 23, 51, 0.035);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.sub-nav button {
  height: 38px;
  padding: 0 15px;
  font-size: 13px;
}

.sub-nav button.active::after {
  height: 2px;
}

.workspace {
  min-width: 0;
  background: #fff;
  padding: 0;
}

.system-window {
  min-width: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
}

.system-heading {
  min-height: 88px;
  padding: 12px 22px;
  border-bottom: 1px solid rgba(231, 237, 245, 0.9);
  background: #fff;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  justify-content: space-between;
}

.eyebrow {
  margin-bottom: 4px;
  font-size: 10px;
}

h1 {
  font-size: 24px;
}

.system-actions {
  align-content: flex-start;
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: min(760px, 62vw);
  min-width: 0;
  overflow: visible;
  row-gap: 8px;
  column-gap: 14px;
}

.system-actions button {
  flex: 0 1 auto;
  height: 34px;
  padding: 0 2px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #334155;
  box-shadow: none;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.system-actions button:hover,
.system-actions button:focus-visible {
  color: #176fd3;
  outline: none;
}

.system-actions button.primary {
  border-bottom-color: #176fd3;
  background: transparent;
  color: #176fd3;
  box-shadow: none;
}

.system-content {
  background: #fff;
  min-width: 0;
}

.workbar {
  min-height: 46px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 7px 22px;
  border-bottom: 1px solid rgba(231, 237, 245, 0.9);
  background: #fff;
}

.workbar strong {
  flex: 0 1 260px;
  font-size: 14px;
}

.workbar input {
  flex: 1 1 260px;
  min-width: 180px;
  height: 32px;
  border-radius: 4px;
  background: #fbfdff;
}

.workbar span {
  flex: 0 0 auto;
}

.workbar .plain-button {
  height: 28px;
  padding: 0 2px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #334155;
  box-shadow: none;
}

.workbar .plain-button:hover,
.workbar .plain-button:focus-visible {
  border-bottom-color: #176fd3;
  color: #176fd3;
  outline: none;
}

.filter-strip {
  min-height: 38px;
  gap: 0;
  padding: 0 22px;
  border-bottom: 1px solid rgba(231, 237, 245, 0.9);
  background: #fff;
}
.column-chooser-popover {
  position: absolute;
  z-index: 90;
  width: 270px;
  border: 1px solid #dce5f2;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 27, 61, 0.16);
  color: #0f1b3d;
  overflow: hidden;
}

.column-chooser-head,
.column-chooser-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #f8fbff;
  border-bottom: 1px solid #e6ecf5;
}

.column-chooser-foot {
  justify-content: flex-end;
  border-top: 1px solid #e6ecf5;
  border-bottom: 0;
}

.column-chooser-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.column-chooser-list {
  display: grid;
  max-height: 330px;
  overflow: auto;
}

.column-chooser-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-bottom: 1px solid #eef2f7;
  font-size: 13px;
  font-weight: 800;
}

.column-chooser-row:hover {
  background: #f8fbff;
}

.invoice-ledger-view {
  display: grid;
  gap: 0;
  min-width: 0;
}

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

.table-scroll.compact {
  max-height: 260px;
}

.invoice-draft-view {
  min-height: 100%;
  display: grid;
  gap: 0;
  align-content: start;
  background: #fff;
  color: #0f1b3d;
}

.invoice-draft-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
}

.invoice-draft-view input::placeholder,
.invoice-draft-view textarea::placeholder {
  color: #64748b;
}

.invoice-draft-lines-table {
  min-width: 1320px;
}

.invoice-draft-lines-table tbody th,
.invoice-draft-lines-table tfoot th {
  width: 130px;
  padding: 0 12px;
  border-right: 1px solid #eef2f7;
  border-bottom: 1px solid #edf2f7;
  background: #f6f9fc;
  color: #52627a;
  font-size: 10px;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
}

.invoice-draft-lines-table tbody td,
.invoice-draft-lines-table tfoot td {
  height: 36px;
  padding: 0;
  border-right: 1px solid #eef2f7;
  border-bottom: 1px solid #edf2f7;
  background: #fff;
}

.invoice-draft-lines-table td:last-child {
  border-right: 0;
}

.invoice-draft-lines-scroll {
  border-top: 1px solid #dce5f0;
}

.invoice-draft-lines-table {
  position: relative;
  z-index: 1;
}

.invoice-draft-view .invoice-draft-lines-table thead th {
  text-align: left;
}

.invoice-draft-view .invoice-draft-lines-table thead th:nth-child(n + 3),
.invoice-draft-view .invoice-draft-lines-table tbody td:nth-child(n + 3) {
  text-align: center;
}

.invoice-draft-lines-table th:nth-child(1),
.invoice-draft-lines-table td:nth-child(1) {
  width: 140px;
}

.invoice-draft-lines-table th:nth-child(2),
.invoice-draft-lines-table td:nth-child(2) {
  width: 380px;
}

.invoice-draft-lines-table th:nth-child(3),
.invoice-draft-lines-table td:nth-child(3),
.invoice-draft-lines-table th:nth-child(5),
.invoice-draft-lines-table td:nth-child(5),
.invoice-draft-lines-table th:nth-child(6),
.invoice-draft-lines-table td:nth-child(6),
.invoice-draft-lines-table th:nth-child(8),
.invoice-draft-lines-table td:nth-child(8) {
  width: 88px;
}

.invoice-draft-lines-table th:nth-child(4),
.invoice-draft-lines-table td:nth-child(4),
.invoice-draft-lines-table th:nth-child(7),
.invoice-draft-lines-table td:nth-child(7) {
  width: 140px;
}

.invoice-draft-lines-table tbody th {
  height: 56px;
}

.invoice-draft-lines-table tfoot th,
.invoice-draft-lines-table tfoot td {
  height: 34px;
}

.invoice-draft-lines-table tfoot th {
  text-align: right;
}

.invoice-draft-lines-table tfoot strong {
  display: block;
  padding: 0 12px;
  color: #0f1b3d;
  font-size: 14px;
  text-align: right;
  white-space: nowrap;
}

.invoice-draft-lines-table tfoot td:last-child {
  width: 130px;
  min-width: 130px;
}

.invoice-draft-line-total strong {
  display: block;
  padding: 0 12px;
  color: #0f1b3d;
  font-size: 13px;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.invoice-draft-line-action {
  padding: 0;
  text-align: center;
}

.invoice-draft-line-remove {
  width: 100%;
  min-height: 36px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #52627a;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.invoice-draft-line-remove:hover,
.invoice-draft-line-remove:focus-visible {
  background: #fff5f5;
  color: #b91c1c;
  outline: none;
}

.invoice-draft-view input,
.invoice-draft-view select,
.invoice-draft-view textarea {
  width: 100%;
  height: 100%;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #0f1b3d;
  font: inherit;
}

.invoice-draft-view input,
.invoice-draft-view select {
  min-height: 36px;
  padding: 0 12px;
}

.invoice-draft-view textarea {
  min-height: 54px;
  padding: 9px 12px;
  resize: vertical;
}

.invoice-draft-article-picker {
  position: relative;
  z-index: 40;
  min-height: 36px;
}

.invoice-draft-article-picker.open {
  z-index: 120;
}

.invoice-draft-article-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  min-height: 36px;
}

.invoice-draft-article-picker input {
  height: 34px;
  min-height: 34px;
}

.invoice-draft-article-toggle {
  width: 34px;
  min-height: 36px;
  border: 0;
  border-left: 1px solid #eef2f7;
  border-radius: 0;
  background: #fff;
  color: #0f1b3d;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.invoice-draft-article-toggle:hover,
.invoice-draft-article-toggle:focus-visible {
  background: #f4f8ff;
  color: #2563eb;
  outline: none;
}

.invoice-draft-article-list {
  display: none;
  max-height: 142px;
  overflow-y: auto;
  border: 1px solid #dce5f0;
  border-top: 1px solid #eef2f7;
  background: #fff;
  box-shadow: none;
}

.invoice-draft-article-picker.open .invoice-draft-article-list {
  display: block;
}

.invoice-draft-article-option {
  width: 100%;
  min-height: 34px;
  display: grid;
  grid-template-columns: 116px minmax(220px, 1fr) 92px;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 0;
  border-bottom: 1px solid #eef2f7;
  border-radius: 0;
  background: #fff;
  color: #0f1b3d;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.invoice-draft-article-option[hidden] {
  display: none;
}

.invoice-draft-article-option:last-child {
  border-bottom: 0;
}

.invoice-draft-article-option:hover,
.invoice-draft-article-option:focus-visible,
.invoice-draft-article-option.active {
  background: #f4f8ff;
  color: #2563eb;
  outline: none;
}

.invoice-draft-article-option span {
  color: #52627a;
  font-size: 12px;
  font-weight: 800;
}

.invoice-draft-article-option strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invoice-draft-view input:focus,
.invoice-draft-view select:focus,
.invoice-draft-view textarea:focus {
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.38);
  outline: none;
}

.invoice-draft-foot {
  justify-content: flex-end;
  margin-top: 0;
  border-top: 1px solid #e6ecf5;
  border-bottom: 0;
}

.invoice-draft-load-error {
  padding: 12px 22px;
  border-bottom: 1px solid #fecaca;
  background: #fff5f5;
  color: #991b1b;
  font-weight: 750;
}

.invoice-draft-archive {
  color: #991b1b;
}

.invoice-draft-archive-confirm {
  min-width: min(420px, 100%);
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  border: 1px solid #fecaca;
}

.invoice-draft-archive-confirm[hidden] {
  display: none;
}

.invoice-draft-archive-confirm input {
  min-height: 34px;
  padding: 0 10px;
}

.invoice-draft-archive-confirm-button {
  min-height: 34px;
  border: 0;
  border-left: 1px solid #fecaca;
  border-radius: 0;
  background: #991b1b;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.invoice-draft-finalize-confirm {
  min-width: min(560px, 100%);
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  align-items: center;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
}

.invoice-draft-finalize-confirm[hidden] {
  display: none;
}

.invoice-draft-finalize-confirm span {
  padding: 8px 12px;
  color: #1e3a5f;
  font-size: 12px;
  font-weight: 750;
}

.invoice-draft-finalize-confirm-button {
  min-height: 38px;
  border: 0;
  border-left: 1px solid #bfdbfe;
  border-radius: 0;
  background: #1d4ed8;
  color: #fff;
  font-weight: 850;
  cursor: pointer;
}

.customer-invoice-view {
  min-height: 100%;
  display: grid;
  align-content: start;
  min-width: 0;
  background: #eef2f6;
  color: #0f1b3d;
}

.customer-invoice-loading {
  padding: 24px 22px;
  color: #52627a;
  font-weight: 800;
}

.customer-invoice-admin-bar {
  min-height: 42px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 0 28px;
  border-bottom: 1px solid #dce5f0;
  background: #fff;
  color: #52627a;
  font-size: 12px;
  font-weight: 700;
}

.customer-invoice-status {
  padding-left: 10px;
  border-left: 3px solid #2563eb;
  color: #1d4ed8;
}

.customer-invoice-status[data-status="cancelled"],
.customer-invoice-status[data-status="credited"] {
  border-left-color: #b91c1c;
  color: #991b1b;
}

.customer-invoice-profile-warning {
  width: min(1180px, calc(100% - 48px));
  display: flex;
  gap: 8px 18px;
  align-items: center;
  margin: 20px auto 0;
  padding: 11px 15px;
  border-left: 3px solid #dc2626;
  background: #fff7f7;
  color: #7f1d1d;
  font-size: 12px;
}

.customer-invoice-document {
  width: min(1180px, calc(100% - 48px));
  min-height: 760px;
  margin: 24px auto;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 27, 61, 0.12);
}

.customer-invoice-document-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding: 32px 38px 24px;
  border-bottom: 4px solid #071a33;
}

.customer-invoice-brand {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  min-width: 0;
}

.customer-invoice-brand img {
  width: 126px;
  height: 86px;
  object-fit: contain;
  flex: 0 0 auto;
}

.customer-invoice-issuer-address {
  display: grid;
  gap: 3px;
  padding-top: 6px;
  color: #52627a;
  font-size: 12px;
  line-height: 1.35;
}

.customer-invoice-issuer-address strong {
  margin-bottom: 3px;
  color: #0f1b3d;
  font-size: 15px;
}

.customer-invoice-identity {
  display: grid;
  justify-items: end;
  gap: 5px;
  text-align: right;
}

.customer-invoice-document-type {
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.customer-invoice-identity > strong {
  color: #071a33;
  font-size: 27px;
  line-height: 1.1;
}

.customer-invoice-document-status {
  padding: 4px 9px;
  background: #eaf2ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
}

.customer-invoice-document-status[data-status="paid"] {
  background: #eaf8ef;
  color: #15803d;
}

.customer-invoice-document-status[data-status="overdue"],
.customer-invoice-document-status[data-status="cancelled"] {
  background: #feecec;
  color: #dc2626;
}

.customer-invoice-key-facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 0 38px;
  background: #f7f9fc;
}

.customer-invoice-key-facts dl {
  min-width: 0;
  margin: 0;
  padding: 15px 18px;
  border-right: 1px solid #e5eaf2;
}

.customer-invoice-key-facts dl:first-child {
  padding-left: 0;
}

.customer-invoice-key-facts dl:last-child {
  border-right: 0;
}

.customer-invoice-key-facts dt,
.customer-invoice-section-label,
.customer-invoice-parties dt {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.customer-invoice-key-facts dd {
  margin: 4px 0 0;
  color: #0f1b3d;
  font-size: 13px;
  font-weight: 800;
}

.customer-invoice-parties {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 54px;
  padding: 28px 38px;
}

.customer-invoice-parties > div {
  min-width: 0;
}

.customer-invoice-parties strong {
  display: block;
  margin: 9px 0 5px;
  font-size: 16px;
}

.customer-invoice-parties p {
  min-height: 40px;
  margin: 0 0 13px;
  color: #334155;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-line;
}

.customer-invoice-parties dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px 16px;
  margin: 0;
}

.customer-invoice-parties dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #0f1b3d;
  font-size: 12px;
  font-weight: 700;
}

.customer-invoice-field-table,
.customer-invoice-voucher-table {
  min-width: 1080px;
}

.customer-invoice-field-table th {
  width: 120px;
  padding: 9px 12px;
  border-right: 1px solid #eef2f7;
  background: #f6f9fc;
  color: #52627a;
  font-size: 10px;
  text-align: left;
  text-transform: uppercase;
}

.customer-invoice-field-table td {
  min-width: 190px;
  padding: 9px 12px;
  border-right: 1px solid #eef2f7;
  white-space: pre-line;
}

.customer-invoice-lines-scroll,
.customer-invoice-voucher-scroll {
  border-top: 1px solid #dce5f0;
}

.table-scroll.customer-invoice-lines-scroll {
  width: auto;
  margin: 0 38px;
  border-top: 0;
}

.customer-invoice-lines-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  font-size: 12px;
}

.customer-invoice-lines-table thead {
  background: #071a33;
  color: #fff;
}

.customer-invoice-lines-table th {
  padding: 10px 9px;
  font-size: 10px;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
}

.customer-invoice-lines-table td {
  padding: 12px 9px;
  border-bottom: 1px solid #e5eaf2;
  color: #26344f;
  vertical-align: top;
}

.customer-invoice-lines-table th,
.customer-invoice-lines-table td,
.customer-invoice-voucher-table th,
.customer-invoice-voucher-table td {
  white-space: nowrap;
}

.customer-invoice-lines-table th:nth-child(2),
.customer-invoice-lines-table td:nth-child(2) {
  min-width: 300px;
  white-space: normal;
}

.customer-invoice-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 350px);
  gap: 54px;
  padding: 28px 38px;
}

.customer-invoice-summary-notes {
  display: grid;
  align-content: start;
  gap: 22px;
}

.customer-invoice-summary-notes p {
  margin: 7px 0 0;
  color: #334155;
  line-height: 1.45;
  white-space: pre-line;
}

.customer-invoice-summary-notes table {
  width: 100%;
  margin-top: 7px;
  border-collapse: collapse;
  font-size: 11px;
}

.customer-invoice-summary-notes th,
.customer-invoice-summary-notes td {
  padding: 6px 8px 6px 0;
  border-bottom: 1px solid #e5eaf2;
  text-align: left;
}

.customer-invoice-totals {
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: start;
  gap: 0;
  margin: 0;
}

.customer-invoice-totals dt,
.customer-invoice-totals dd {
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid #e5eaf2;
}

.customer-invoice-totals dd {
  padding-left: 24px;
  text-align: right;
  font-weight: 800;
}

.customer-invoice-totals .customer-invoice-to-pay {
  margin-top: 7px;
  padding-top: 13px;
  border-bottom: 0;
  color: #071a33;
  font-size: 17px;
  font-weight: 900;
}

.customer-invoice-payment {
  display: grid;
  grid-template-columns: 0.8fr 0.9fr 1fr 1.8fr;
  margin: 0 38px;
  border-top: 3px solid #2563eb;
  background: #eef5ff;
}

.customer-invoice-payment > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 14px 16px;
  border-right: 1px solid #d7e5fa;
}

.customer-invoice-payment > div:last-child {
  border-right: 0;
}

.customer-invoice-payment span {
  color: #52627a;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.customer-invoice-payment strong {
  overflow-wrap: anywhere;
  color: #0f1b3d;
  font-size: 13px;
}

.customer-invoice-legal-text,
.customer-invoice-exchange {
  margin: 16px 38px 0;
  color: #52627a;
  font-size: 10px;
  line-height: 1.45;
}

.customer-invoice-document-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-top: 24px;
  padding: 17px 38px 20px;
  border-top: 1px solid #dce5f0;
  color: #52627a;
  font-size: 10px;
}

.customer-invoice-tax-admin {
  background: #fff;
}

.customer-invoice-voucher-line td {
  background: #fbfdff;
  color: #52627a;
  font-size: 12px;
}

.number-cell {
  text-align: right;
}

.customer-invoice-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-top: 1px solid #e6ecf5;
}

.customer-invoice-foot .destructive {
  color: #991b1b;
}

.customer-invoice-confirm {
  min-width: min(620px, 100%);
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(120px, 170px) auto;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
}

.customer-invoice-confirm[hidden] {
  display: none;
}

.customer-invoice-confirm input,
.customer-invoice-confirm select,
.customer-invoice-confirm button {
  min-height: 36px;
  border: 0;
  border-right: 1px solid #bfdbfe;
  border-radius: 0;
  background: #fff;
  color: #0f1b3d;
  font: inherit;
}

.customer-invoice-confirm input,
.customer-invoice-confirm select {
  padding: 0 10px;
}

.customer-invoice-confirm button {
  border-right: 0;
  background: #1d4ed8;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.customer-invoice-confirm.destructive {
  border-color: #fecaca;
  background: #fff5f5;
}

.customer-invoice-confirm.destructive input,
.customer-invoice-confirm.destructive button {
  border-color: #fecaca;
}

.customer-invoice-confirm.destructive button {
  background: #991b1b;
}

.accounting-overview-view {
  min-height: 100%;
  display: grid;
  align-content: start;
  min-width: 0;
  background: #fff;
  color: #0f1b3d;
}

.accounting-overview-band {
  min-height: 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 8px 22px;
  border-bottom: 1px solid #dce5f0;
  background: #f6f9fc;
  color: #52627a;
  font-size: 12px;
  font-weight: 800;
}

.accounting-overview-band strong {
  color: #0f1b3d;
  font-size: 14px;
}

.accounting-overview-band .plain-button {
  min-height: 30px;
  margin-left: auto;
}

.accounting-period-table {
  min-width: 860px;
}

.accounting-period-confirm-row td {
  padding: 0;
  background: #eff6ff;
}

.accounting-period-confirm-row[hidden] {
  display: none;
}

.accounting-period-confirm {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(240px, 2fr) auto;
  align-items: center;
}

.accounting-period-confirm span {
  padding: 0 12px;
  color: #1e3a5f;
  font-size: 12px;
  font-weight: 750;
}

.accounting-period-confirm input,
.accounting-period-confirm button {
  min-height: 38px;
  border: 0;
  border-left: 1px solid #bfdbfe;
  border-radius: 0;
  font: inherit;
}

.accounting-period-confirm input {
  padding: 0 10px;
  background: #fff;
}

.accounting-period-confirm button {
  background: #1d4ed8;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.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;
}

.manual-voucher-view {
  min-height: 100%;
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: #fff;
  color: #0f1b3d;
}

.manual-voucher-form {
  min-height: 100%;
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.manual-voucher-header-fields {
  display: grid;
  grid-template-columns: 150px 74px minmax(220px, .8fr) minmax(320px, 1.4fr);
  gap: 10px;
  padding: 10px 18px;
  border-bottom: 1px solid #dce5f0;
  background: #f7f9fc;
}

.manual-voucher-header-fields label {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: #41536b;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.manual-voucher-header-fields input {
  width: 100%;
  min-width: 0;
  height: 32px;
  box-sizing: border-box;
  border: 1px solid #bac8d8;
  border-radius: 0;
  background: #fff;
  color: #102033;
  font: inherit;
  font-size: 13px;
  text-transform: none;
}

.manual-voucher-header-fields input:disabled {
  background: #e9eef5;
  color: #52627a;
  font-weight: 850;
  text-align: center;
}

.manual-voucher-balance {
  min-height: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding: 6px 18px;
  border-bottom: 1px solid #dce5f0;
  background: #eef3f8;
  color: #52627a;
  font-size: 12px;
  font-weight: 800;
}

.manual-voucher-balance strong {
  margin-left: 5px;
  color: #102033;
  font-variant-numeric: tabular-nums;
}

.manual-voucher-balance-status {
  margin-left: auto;
  color: #9f1239;
}

.manual-voucher-balance-status.balanced {
  color: #166534;
}

.manual-voucher-scroll {
  min-width: 0;
  flex: 1;
}

.manual-voucher-table {
  min-width: 1240px;
  table-layout: auto;
}

.manual-voucher-table th:nth-child(1),
.manual-voucher-table td:nth-child(1) {
  width: 54px;
  text-align: center;
}

.manual-voucher-table th:nth-child(2),
.manual-voucher-table td:nth-child(2) {
  width: 235px;
}

.manual-voucher-table .manual-voucher-debit,
.manual-voucher-table .manual-voucher-credit {
  width: 135px;
  min-width: 135px;
}

.manual-voucher-table .manual-voucher-line-action {
  width: 48px;
  min-width: 48px;
  text-align: center;
}

.manual-voucher-table th:nth-child(3),
.manual-voucher-table td:nth-child(3) {
  min-width: 260px;
}

.manual-voucher-dimension {
  width: 190px;
  min-width: 190px;
}

.manual-voucher-table td {
  padding: 0;
}

.manual-voucher-table td:first-child {
  color: #52627a;
  font-weight: 850;
}

.manual-voucher-table input,
.manual-voucher-table select {
  width: 100%;
  height: 38px;
  box-sizing: border-box;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #102033;
  font: inherit;
  font-size: 13px;
}

.manual-voucher-debit input,
.manual-voucher-credit input {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.manual-voucher-dimension-label,
.accounting-voucher-dimension,
.accounting-journal-dimension {
  display: block;
  padding-left: 7px;
  border-left: 2px solid #64748b;
  color: #334155;
  font-size: 11px;
  line-height: 1.45;
}

.manual-voucher-dimension-label + .manual-voucher-dimension-label,
.accounting-voucher-dimension + .accounting-voucher-dimension,
.accounting-journal-dimension + .accounting-journal-dimension {
  margin-top: 4px;
}

.manual-voucher-dimension-label strong,
.accounting-voucher-dimension strong {
  margin-right: 5px;
}

.manual-voucher-table input:focus,
.manual-voucher-table select:focus {
  outline: 2px solid #2563eb;
  outline-offset: -2px;
  background: #f8fbff;
}

.manual-voucher-table .icon-button.compact {
  width: 30px;
  height: 30px;
  min-height: 30px;
  border: 0;
  background: transparent;
  color: #991b1b;
  font-size: 20px;
}

.manual-voucher-table .icon-button.compact:disabled {
  color: #b8c2ce;
  cursor: not-allowed;
}

.manual-voucher-row-tools,
.manual-voucher-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-top: 1px solid #dce5f0;
  background: #f7f9fc;
}

.manual-voucher-row-tools button,
.manual-voucher-footer button {
  min-height: 34px;
  border-radius: 0;
  font-weight: 800;
}

.manual-voucher-footer {
  justify-content: flex-end;
}

.manual-voucher-footer .plain-button {
  margin-right: auto;
}

.manual-voucher-footer button:disabled {
  background: #dbe3ec;
  color: #718096;
  cursor: not-allowed;
}

.manual-voucher-posted {
  min-height: 100%;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.manual-voucher-posted-heading {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid #dce5f0;
  background: #edf8ee;
}

.manual-voucher-posted-heading > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px 18px;
  border-right: 1px solid #c7dfca;
}

.manual-voucher-posted-heading span {
  color: #52627a;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.manual-voucher-posted-heading strong {
  overflow-wrap: anywhere;
  color: #166534;
  font-size: 14px;
}

.customer-registry-view {
  min-height: 100%;
  display: grid;
  align-content: start;
  background: #fff;
  color: #0f1b3d;
}

.supplier-invoice-field-table {
  min-width: 1120px;
}

.supplier-invoice-field-table th {
  width: 130px;
  padding: 0 12px;
  border-right: 1px solid #eef2f7;
  border-bottom: 1px solid #edf2f7;
  background: #f6f9fc;
  color: #52627a;
  font-size: 10px;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
}

.supplier-invoice-field-table td {
  width: 240px;
  height: 42px;
  padding: 0;
  border-right: 1px solid #eef2f7;
  border-bottom: 1px solid #edf2f7;
  background: #fff;
}

.supplier-invoice-field-table td:last-child {
  border-right: 0;
}

.customer-registry-view input,
.customer-registry-view select,
.customer-registry-view textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  color: #0f1b3d;
  font: inherit;
}

.customer-registry-view input,
.customer-registry-view select {
  min-height: 42px;
  padding: 8px 12px;
}

.customer-registry-view input[readonly] {
  background: #f8fafc;
  color: #52627a;
}

.customer-registry-view textarea {
  min-height: 88px;
  padding: 10px 12px;
  resize: vertical;
}

.customer-registry-view input:focus,
.customer-registry-view select:focus,
.customer-registry-view textarea:focus {
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.38);
  outline: none;
}

.customer-registry-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-top: 1px solid #e6ecf5;
}

.customer-registry-load-error {
  padding: 12px 22px;
  border-bottom: 1px solid #fecaca;
  background: #fff5f5;
  color: #991b1b;
  font-weight: 750;
}

.customer-registry-archive {
  color: #991b1b;
}

.customer-registry-archive-confirm {
  min-width: min(420px, 100%);
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  border: 1px solid #fecaca;
}

.customer-registry-archive-confirm[hidden] {
  display: none;
}

.customer-registry-archive-confirm input {
  min-height: 34px;
  padding: 0 10px;
}

.customer-registry-archive-confirm-button {
  min-height: 34px;
  border: 0;
  border-left: 1px solid #fecaca;
  border-radius: 0;
  background: #991b1b;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.sales-order-view {
  min-height: 100%;
  display: grid;
  align-content: start;
  background: #fff;
  color: #0f1b3d;
}

.sales-order-field-table,
.sales-order-lines-table {
  min-width: 1380px;
}

.sales-order-field-table th,
.sales-order-lines-table tfoot th {
  width: 130px;
  padding: 0 12px;
  border-right: 1px solid #eef2f7;
  border-bottom: 1px solid #edf2f7;
  background: #f6f9fc;
  color: #52627a;
  font-size: 10px;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
}

.sales-order-field-table td,
.sales-order-lines-table tbody td,
.sales-order-lines-table tfoot td {
  height: 40px;
  padding: 0;
  border-right: 1px solid #eef2f7;
  border-bottom: 1px solid #edf2f7;
  background: #fff;
}

.sales-order-view input,
.sales-order-view select,
.sales-order-view textarea {
  width: 100%;
  height: 100%;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #0f1b3d;
  font: inherit;
}

.sales-order-view input,
.sales-order-view select {
  min-height: 40px;
  padding: 0 12px;
}

.sales-order-view textarea {
  min-height: 58px;
  padding: 9px 12px;
  resize: vertical;
}

.sales-order-view input[readonly] {
  background: #f8fafc;
  color: #52627a;
}

.sales-order-view input:focus,
.sales-order-view select:focus,
.sales-order-view textarea:focus {
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.38);
  outline: none;
}

.sales-order-product-bar {
  display: grid;
  grid-template-columns: 100px minmax(260px, 1fr) auto;
  align-items: stretch;
  border-top: 1px solid #dce5f0;
  border-bottom: 1px solid #dce5f0;
}

.sales-order-product-bar label {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: #f6f9fc;
  color: #52627a;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.sales-order-product-bar select {
  border-right: 1px solid #e6ecf5;
  border-left: 1px solid #e6ecf5;
}

.sales-order-lines-table th:nth-child(1),
.sales-order-lines-table td:nth-child(1) { width: 130px; }
.sales-order-lines-table th:nth-child(2),
.sales-order-lines-table td:nth-child(2) { width: 340px; }
.sales-order-lines-table th:nth-child(n + 3),
.sales-order-lines-table td:nth-child(n + 3) { width: 105px; text-align: center; }

.sales-order-lines-table tbody strong,
.sales-order-lines-table tbody span,
.sales-order-lines-table tfoot strong {
  display: block;
  padding: 0 12px;
  white-space: nowrap;
}

.sales-order-lines-table tfoot th {
  text-align: right;
}

.sales-order-line-remove {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #52627a;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.sales-order-line-remove:hover,
.sales-order-line-remove:focus-visible {
  background: #fff5f5;
  color: #991b1b;
  outline: none;
}

.sales-order-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-top: 1px solid #e6ecf5;
}

.sales-order-load-error {
  padding: 12px 22px;
  border-bottom: 1px solid #fecaca;
  background: #fff5f5;
  color: #991b1b;
  font-weight: 750;
}

.sales-order-archive {
  color: #991b1b;
}

.sales-order-cancel {
  color: #991b1b;
}

.sales-order-archive-confirm,
.sales-order-status-confirm {
  min-width: min(420px, 100%);
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  border: 1px solid #fecaca;
}

.sales-order-status-confirm {
  border-color: #bfdbfe;
}

.sales-order-archive-confirm[hidden],
.sales-order-status-confirm[hidden] {
  display: none;
}

.sales-order-archive-confirm input,
.sales-order-status-confirm input {
  min-height: 34px;
  padding: 0 10px;
}

.sales-order-archive-confirm-button,
.sales-order-cancel-confirm-button {
  min-height: 34px;
  border: 0;
  border-left: 1px solid #fecaca;
  border-radius: 0;
  background: #991b1b;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.sales-order-delivery-confirm-button {
  border-left-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

@media (max-width: 760px) {
  .sales-order-view,
  .invoice-draft-view,
  .customer-invoice-view,
  .accounting-overview-view {
    width: 100%;
    max-width: 100%;
  }

  .customer-invoice-status-band {
    gap: 8px 14px;
    padding: 8px 14px;
  }

  .customer-invoice-foot {
    justify-content: stretch;
    padding: 14px;
  }

  .customer-invoice-foot > button {
    flex: 1 1 auto;
  }

  .customer-invoice-confirm,
  .invoice-draft-finalize-confirm,
  .accounting-period-confirm {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .customer-invoice-confirm input,
  .customer-invoice-confirm select,
  .customer-invoice-confirm button,
  .invoice-draft-finalize-confirm-button {
    min-height: 42px;
    border-right: 0;
    border-bottom: 1px solid #bfdbfe;
    border-left: 0;
  }

  .accounting-period-confirm span {
    padding: 10px;
  }

  .accounting-period-confirm input,
  .accounting-period-confirm button {
    min-height: 42px;
    border-left: 0;
    border-top: 1px solid #bfdbfe;
  }

  .sales-order-product-bar {
    grid-template-columns: 1fr;
  }

  .sales-order-product-bar label,
  .sales-order-product-bar select,
  .sales-order-product-bar button {
    min-height: 42px;
  }
}

.chart-accounts-view,
.accounting-dimensions-view,
.accounting-posting-rules-view,
.accounting-journal-view,
.accounting-voucher-view {
  width: min(1180px, 100%);
  min-height: 100%;
  min-width: 0;
  margin: 0 auto;
  background: #fff;
  color: #102033;
}

.chart-accounts-view {
  display: flex;
  flex-direction: column;
}

.accounting-dimensions-view {
  display: flex;
  flex-direction: column;
}

.accounting-posting-rules-view {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.posting-rule-summary {
  min-height: 42px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
  padding: 8px 18px;
  border-bottom: 1px solid #cfd9e6;
  background: #eef3f8;
  color: #52627a;
  font-size: 12px;
  font-weight: 800;
}

.posting-rule-summary strong {
  margin-left: 5px;
  color: #102033;
  font-variant-numeric: tabular-nums;
}

.posting-rule-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(220px, .6fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px 18px;
  border-bottom: 1px solid #dce5f0;
  background: #f7f9fc;
}

.posting-rule-toolbar label,
.posting-rule-editor-fields label,
.posting-rule-reason {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: #41536b;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.posting-rule-toolbar input,
.posting-rule-toolbar select,
.posting-rule-editor select,
.posting-rule-editor input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid #bac8d8;
  border-radius: 4px;
  background: #fff;
  color: #102033;
  font: inherit;
  text-transform: none;
}

.posting-rule-toolbar > span {
  padding-bottom: 8px;
  color: #52627a;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.posting-rule-editor-host[hidden] {
  display: none;
}

.posting-rule-editor {
  display: grid;
  border-bottom: 1px solid #b9c8d8;
  background: #fff;
}

.posting-rule-editor-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 18px 0;
}

.posting-rule-editor-heading span,
.posting-rule-editor-heading small {
  color: #66758c;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.posting-rule-editor-heading strong {
  color: #102033;
  font-size: 15px;
}

.posting-rule-editor-fields {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(210px, .8fr) minmax(210px, .8fr);
  gap: 10px;
  padding: 12px 18px;
}

.posting-rule-editor-guard {
  padding: 9px 18px;
  border-top: 1px solid #dce5f0;
  border-bottom: 1px solid #dce5f0;
  background: #f7f9fc;
  color: #52627a;
  font-size: 12px;
  line-height: 1.45;
}

.posting-rule-reason {
  padding: 12px 18px 0;
}

.posting-rule-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 18px 14px;
}

.posting-rule-editor-actions button {
  min-width: 130px;
  min-height: 36px;
}

.posting-rule-scroll {
  min-height: 260px;
}

.posting-rule-table {
  min-width: 1120px;
}

.posting-rule-account-name {
  display: block;
  margin-top: 2px;
  color: #66758c;
  font-size: 11px;
}

.accounting-dimension-summary {
  min-height: 42px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
  padding: 8px 18px;
  border-bottom: 1px solid #cfd9e6;
  background: #eef3f8;
  color: #52627a;
  font-size: 12px;
  font-weight: 800;
}

.accounting-dimension-summary strong {
  margin-left: 5px;
  color: #102033;
  font-variant-numeric: tabular-nums;
}

.accounting-dimension-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 160px auto auto;
  gap: 10px;
  align-items: end;
  padding: 12px 18px;
  border-bottom: 1px solid #dce5f0;
  background: #f7f9fc;
}

.accounting-dimension-toolbar label,
.accounting-dimension-editor-fields label {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: #41536b;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.accounting-dimension-toolbar input,
.accounting-dimension-toolbar select,
.accounting-dimension-editor input,
.accounting-dimension-value-editor input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid #bac8d8;
  border-radius: 4px;
  background: #fff;
  color: #102033;
  font: inherit;
  text-transform: none;
}

.accounting-dimension-toolbar > span {
  padding-bottom: 8px;
  color: #52627a;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.accounting-dimension-toolbar > button,
.accounting-dimension-values-heading > button {
  min-height: 34px;
  border-radius: 4px;
  font-weight: 800;
}

.accounting-dimension-editor-host[hidden],
.accounting-dimension-value-editor-host[hidden] {
  display: none;
}

.accounting-dimension-editor,
.accounting-dimension-value-editor {
  display: grid;
  border-bottom: 1px solid #b9c8d8;
  background: #fff;
}

.accounting-dimension-editor-fields {
  display: grid;
  grid-template-columns: minmax(180px, .7fr) minmax(280px, 1.4fr) 180px;
  gap: 10px;
  align-items: end;
  padding: 14px 18px;
}

.accounting-dimension-scroll {
  max-height: 310px;
  border-bottom: 1px solid #cfd9e6;
}

.accounting-dimension-table {
  min-width: 1050px;
}

.accounting-dimension-table tr.is-selected td:first-child {
  border-left: 4px solid #2563eb;
}

.accounting-dimension-actions {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

.accounting-dimension-values {
  display: grid;
  min-width: 0;
  background: #fff;
}

.accounting-dimension-values-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid #dce5f0;
  background: #f7f9fc;
}

.accounting-dimension-values-heading > div {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 9px;
}

.accounting-dimension-values-heading span,
.accounting-dimension-values-heading small {
  color: #66758c;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.accounting-dimension-values-heading strong {
  color: #102033;
  font-size: 15px;
}

.accounting-dimension-values-scroll {
  min-height: 120px;
}

.accounting-dimension-value-table {
  min-width: 900px;
}

.accounting-dimension-values-empty {
  min-height: 130px;
  display: grid;
  place-items: center;
  color: #66758c;
}

.chart-account-summary {
  min-height: 42px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
  padding: 8px 18px;
  border-bottom: 1px solid #cfd9e6;
  background: #eef3f8;
  color: #52627a;
  font-size: 12px;
  font-weight: 800;
}

.chart-account-summary strong {
  margin-left: 5px;
  color: #102033;
  font-variant-numeric: tabular-nums;
}

.chart-account-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 150px 190px auto auto;
  gap: 10px;
  align-items: end;
  padding: 12px 18px;
  border-bottom: 1px solid #dce5f0;
  background: #f7f9fc;
}

.chart-account-toolbar label,
.chart-account-editor-fields label,
.chart-account-reason {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: #41536b;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.chart-account-toolbar input,
.chart-account-toolbar select,
.chart-account-editor input,
.chart-account-editor select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid #bac8d8;
  border-radius: 4px;
  background: #fff;
  color: #102033;
  font: inherit;
  text-transform: none;
}

.chart-account-toolbar > span {
  padding-bottom: 8px;
  color: #52627a;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.chart-account-toolbar > button,
.chart-account-editor-actions button {
  min-height: 34px;
  border-radius: 4px;
  font-weight: 800;
}

.chart-account-editor-host[hidden] {
  display: none;
}

.chart-account-editor {
  display: grid;
  border-bottom: 1px solid #b9c8d8;
  background: #fff;
}

.chart-account-editor-fields {
  display: grid;
  grid-template-columns: 145px minmax(240px, 1fr) 180px minmax(230px, .8fr) 150px;
  gap: 10px;
  align-items: end;
  padding: 14px 18px;
}

.chart-account-active-toggle {
  min-height: 34px;
  display: flex !important;
  align-items: center;
  gap: 8px !important;
  padding: 0 10px;
  border: 1px solid #bac8d8;
  border-radius: 4px;
  background: #f8fafc;
  text-transform: none !important;
}

.chart-account-active-toggle input {
  width: 16px;
  min-height: 16px;
  margin: 0;
}

.chart-account-active-toggle input:disabled + span {
  color: #718096;
}

.chart-account-editor-guard {
  padding: 9px 18px;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 750;
}

.chart-account-reason {
  padding: 12px 18px 0;
}

.chart-account-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 18px 14px;
}

.chart-account-scroll {
  flex: 1;
}

.chart-account-table {
  min-width: 1040px;
}

.chart-account-table td {
  vertical-align: middle;
}

.chart-account-table th:first-child,
.chart-account-table td:first-child {
  width: 100px;
}

.chart-account-table th:nth-child(3),
.chart-account-table td:nth-child(3) {
  width: 130px;
}

.chart-account-table th:nth-child(4),
.chart-account-table td:nth-child(4),
.chart-account-table th:nth-child(5),
.chart-account-table td:nth-child(5) {
  width: 105px;
}

.chart-account-table th:last-child,
.chart-account-table td:last-child {
  width: 105px;
}

.chart-account-status {
  display: inline-block;
  padding-left: 8px;
  border-left: 3px solid #991b1b;
  color: #8f1723;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.chart-account-status.is-active {
  border-left-color: #15803d;
  color: #166534;
}

.chart-account-empty {
  height: 96px;
  color: #66758c;
  text-align: center;
}

.accounting-journal-view {
  display: flex;
  flex-direction: column;
}

.accounting-journal-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 125px 145px minmax(220px, .8fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px 18px;
  border-bottom: 1px solid #dce5f0;
  background: #f7f9fc;
}

.accounting-journal-toolbar label,
.accounting-voucher-correction-form label {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: #41536b;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.accounting-journal-toolbar input,
.accounting-journal-toolbar select,
.accounting-voucher-correction-form input,
.accounting-voucher-correction-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid #bac8d8;
  border-radius: 4px;
  background: #fff;
  color: #102033;
  font: inherit;
  text-transform: none;
}

.accounting-journal-toolbar > span {
  padding-bottom: 8px;
  color: #52627a;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.accounting-journal-scroll {
  flex: 1;
}

.accounting-journal-table {
  min-width: 1280px;
}

.accounting-journal-table td,
.accounting-voucher-lines td {
  vertical-align: middle;
}

.accounting-journal-table .numeric,
.accounting-voucher-lines .numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.accounting-balance-status {
  display: inline-block;
  padding-left: 8px;
  border-left: 3px solid #a61b29;
  color: #8f1723;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.accounting-balance-status.is-balanced {
  border-left-color: #15803d;
  color: #166534;
}

.accounting-journal-empty {
  height: 96px;
  color: #66758c;
  text-align: center;
}

.accounting-voucher-view {
  display: grid;
  align-content: start;
}

.accounting-voucher-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  border-bottom: 1px solid #dce5f0;
  background: #eef3f8;
}

.accounting-voucher-summary span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border-right: 1px solid #dce5f0;
  color: #52627a;
  font-size: 11px;
  font-weight: 800;
}

.accounting-voucher-summary span:last-child {
  border-right: 0;
}

.accounting-voucher-summary strong {
  overflow-wrap: anywhere;
  color: #102033;
  font-size: 13px;
}

.accounting-voucher-description {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid #dce5f0;
}

.accounting-voucher-description > span:first-child {
  color: #52627a;
  font-size: 12px;
  font-weight: 800;
}

.accounting-immutable-label {
  padding-left: 9px;
  border-left: 3px solid #475569;
  color: #475569;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.accounting-voucher-source {
  display: grid;
  grid-template-columns: minmax(180px, .8fr) minmax(260px, 1.4fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 10px 18px;
  border-bottom: 1px solid #dce5f0;
  background: #f8fafc;
}

.accounting-voucher-source div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.accounting-voucher-source div span {
  color: #66758c;
  font-size: 11px;
  font-weight: 800;
}

.accounting-voucher-source strong {
  overflow-wrap: anywhere;
}

.accounting-voucher-source > span {
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.accounting-voucher-source a,
.accounting-source-link {
  color: #174ea6;
  font-weight: 800;
}

.accounting-source-link {
  justify-self: end;
}

.accounting-voucher-lines {
  min-width: 1080px;
  table-layout: fixed;
}

.accounting-voucher-lines th:first-child,
.accounting-voucher-lines td:first-child {
  width: 54px;
  text-align: center;
}

.accounting-voucher-lines th:nth-child(2),
.accounting-voucher-lines td:nth-child(2) {
  width: 110px;
}

.accounting-voucher-lines th:nth-child(4),
.accounting-voucher-lines td:nth-child(4) {
  width: 260px;
}

.accounting-voucher-lines th:nth-child(5),
.accounting-voucher-lines td:nth-child(5),
.accounting-voucher-lines th:nth-child(6),
.accounting-voucher-lines td:nth-child(6) {
  width: 150px;
}

.accounting-voucher-correction {
  display: grid;
  border-top: 1px solid #dce5f0;
  border-bottom: 1px solid #dce5f0;
  background: #eef8f1;
}

.accounting-voucher-correction.is-locked {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 12px 18px;
  background: #f7f9fc;
  color: #52627a;
  font-size: 12px;
}

.accounting-voucher-correction.is-locked strong {
  color: #102033;
}

.accounting-voucher-correction-heading {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
}

.accounting-voucher-correction-heading > div {
  display: grid;
  gap: 3px;
}

.accounting-voucher-correction-heading span {
  color: #486255;
  font-size: 12px;
}

.accounting-voucher-correction-form {
  display: grid;
  grid-template-columns: 180px minmax(280px, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px 18px;
  border-top: 1px solid #b9d7c2;
}

.accounting-voucher-correction-form[hidden] {
  display: none;
}

.accounting-voucher-correction-form textarea {
  resize: vertical;
}

.accounting-voucher-correction-form button,
.accounting-voucher-correction-heading button,
.accounting-voucher-footer button {
  min-height: 36px;
}

.accounting-voucher-audit {
  display: grid;
  gap: 8px;
  padding-top: 12px;
}

.accounting-voucher-section-heading {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 18px;
}

.accounting-voucher-section-heading span {
  color: #66758c;
  font-size: 12px;
}

.accounting-voucher-audit table {
  min-width: 720px;
}

.accounting-voucher-footer {
  display: flex;
  justify-content: flex-start;
  padding: 14px 18px;
  border-top: 1px solid #dce5f0;
}

@media (max-width: 980px) {
  .chart-account-toolbar {
    grid-template-columns: minmax(220px, 1fr) 140px 170px;
  }

  .chart-account-toolbar > span,
  .chart-account-toolbar > button {
    align-self: center;
  }

  .chart-account-editor-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .accounting-dimension-toolbar {
    grid-template-columns: minmax(220px, 1fr) 150px auto;
  }

  .accounting-dimension-toolbar > span,
  .accounting-dimension-toolbar > button {
    align-self: center;
  }

  .accounting-dimension-editor-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .accounting-journal-toolbar {
    grid-template-columns: minmax(220px, 1fr) 130px 150px;
  }

  .accounting-journal-toolbar > span {
    grid-column: 1 / -1;
    padding: 0;
  }

  .accounting-voucher-summary {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
  }

  .accounting-voucher-summary span:nth-child(3) {
    border-right: 0;
  }

  .accounting-voucher-source {
    grid-template-columns: minmax(180px, .8fr) minmax(240px, 1.2fr) auto;
  }

  .accounting-source-link {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 700px) {
  .chart-accounts-view,
  .accounting-dimensions-view,
  .accounting-posting-rules-view,
  .accounting-journal-view,
  .accounting-voucher-view {
    width: 100%;
    max-width: 100%;
  }

  .accounting-journal-toolbar,
  .accounting-voucher-correction-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .chart-account-toolbar,
  .chart-account-editor-fields,
  .accounting-dimension-toolbar,
  .accounting-dimension-editor-fields,
  .posting-rule-toolbar,
  .posting-rule-editor-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .posting-rule-toolbar > span {
    padding-bottom: 0;
  }

  .posting-rule-editor-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .posting-rule-editor-actions {
    flex-direction: column-reverse;
  }

  .posting-rule-editor-actions button {
    width: 100%;
    min-height: 42px;
  }

  .chart-account-toolbar > span {
    padding-bottom: 0;
  }

  .accounting-dimension-toolbar > span {
    padding-bottom: 0;
  }

  .chart-account-toolbar > button,
  .accounting-dimension-toolbar > button,
  .accounting-dimension-values-heading > button,
  .chart-account-editor-actions button {
    min-height: 42px;
  }

  .chart-account-editor-actions {
    flex-direction: column-reverse;
  }

  .accounting-dimension-values-heading,
  .accounting-dimension-values-heading > div {
    align-items: stretch;
    flex-direction: column;
  }

  .accounting-dimension-values-heading > button {
    width: 100%;
  }

  .accounting-journal-toolbar > span,
  .accounting-voucher-correction-form > * {
    grid-column: 1;
  }

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

  .accounting-voucher-summary span:nth-child(3) {
    border-right: 1px solid #dce5f0;
  }

  .accounting-voucher-summary span:nth-child(even) {
    border-right: 0;
  }

  .accounting-voucher-description,
  .accounting-voucher-source {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .accounting-immutable-label {
    padding-top: 7px;
    padding-left: 0;
    border-top: 1px solid #dce5f0;
    border-left: 0;
    white-space: normal;
  }

  .accounting-voucher-source > span,
  .accounting-source-link {
    grid-column: 1;
    justify-self: start;
    white-space: normal;
  }

  .accounting-voucher-correction-heading,
  .accounting-voucher-section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .accounting-voucher-correction-heading button,
  .accounting-voucher-correction-form button {
    width: 100%;
  }

  .accounting-voucher-correction.is-locked {
    grid-template-columns: minmax(0, 1fr);
  }
}

.product-draft-view {
  align-content: start;
  background: #ffffff;
  color: #0f1b3d;
  display: grid;
  gap: 0;
  min-height: 100%;
}

.product-draft-foot {
  align-items: center;
  border-top: 1px solid #e6ecf5;
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  padding: 18px 22px;
}

.product-draft-view input,
.product-draft-view select {
  background: #ffffff;
  border: 1px solid #cfd7e3;
  border-radius: 6px;
  color: #172033;
  font: inherit;
  min-height: 34px;
  padding: 7px 9px;
  width: 100%;
}

.product-draft-view input:focus,
.product-draft-view select:focus {
  border-color: #2d6cdf;
  box-shadow: 0 0 0 3px rgba(45, 108, 223, 0.14);
  outline: none;
}

.filter-chip {
  appearance: none;
  position: relative;
  height: 38px;
  padding: 0 13px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #52627a;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
}

.filter-chip.active {
  color: #176fd3;
  background: transparent;
}

.filter-chip:hover {
  color: #176fd3;
  background: transparent;
}

.filter-chip.active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 2px;
  background: #176fd3;
}

.filter-chip:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.28);
  outline-offset: -2px;
}

.table-scroll {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: auto;
  background: #fff;
}

.data-table {
  min-width: 1150px;
  font-size: 13px;
}

.data-table thead th {
  height: 30px;
  background: #f6f9fc;
  border-bottom: 1px solid #dde6f1;
  font-size: 10px;
  color: #52627a;
}

.data-table tbody td {
  height: 34px;
  border-bottom: 1px solid #edf2f7;
}

.data-table thead th,
.data-table tbody td {
  text-align: center;
  vertical-align: middle;
}

.data-table tbody tr:hover {
  background: #f8fbff;
}

.data-table tbody tr.table-group-row,
.data-table tbody tr.table-group-row:hover {
  background: #f4f7fb;
}

.data-table tbody tr.table-group-row-level-0,
.data-table tbody tr.table-group-row-level-0:hover {
  background: #eef3f8;
}

.data-table tbody tr.table-group-row td {
  height: 30px;
  padding: 0 14px;
  border-top: 1px solid #cfdced;
  border-bottom: 1px solid #dfe7f2;
  color: #25364d;
  font-size: 11px;
  font-weight: 850;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table tbody tr.table-group-row-level-0 td {
  height: 34px;
  border-top-color: #b9c8da;
  border-bottom-color: #cfdae8;
  color: #15263d;
  font-size: 12px;
}

.data-table tbody tr.table-group-row-level-1 td {
  padding-left: 30px;
}

.table-group-title {
  display: inline-block;
  max-width: 56%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.table-group-row small {
  margin-left: 10px;
  color: #66758b;
  font-size: 10px;
  font-weight: 750;
  text-transform: none;
}

.selection-count {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.row-select-cell {
  width: 38px;
  min-width: 38px;
  max-width: 38px;
  padding-right: 8px !important;
  padding-left: 8px !important;
  text-align: center !important;
}

.row-action-cell {
  text-align: center !important;
}

.table-image-cell {
  width: 64px;
  min-width: 64px;
  max-width: 64px;
  padding-right: 8px !important;
  padding-left: 8px !important;
  text-align: center !important;
}

.data-table tbody td.table-image-cell {
  height: 50px;
}

.table-thumbnail {
  display: block;
  width: 42px;
  height: 42px;
  margin: 0 auto;
  object-fit: contain;
}

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

.row-select-checkbox {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--blue);
  cursor: pointer;
  vertical-align: middle;
}

.data-table tbody tr.is-selected {
  background: #eef6ff;
}

.data-table tbody tr.is-selected:hover {
  background: #e8f2ff;
}

.product-admin-view {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
}

.product-admin-toolbar {
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 10px 14px;
  border-bottom: 1px solid #d7e2ee;
  background: #f8fafc;
}

.product-admin-toolbar label {
  display: grid;
  gap: 4px;
  color: #27364a;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.product-admin-toolbar select,
.product-admin-toolbar input {
  height: 30px;
  border: 1px solid #bac8d8;
  background: #fff;
  color: #102033;
  font: inherit;
  font-size: 13px;
}

.product-admin-toolbar span {
  color: #52627a;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.product-admin-scroll {
  min-height: 0;
  flex: 1;
}

.product-admin-table {
  min-width: 1480px;
}

.product-admin-table thead th {
  height: 30px;
}

.product-admin-table tbody td {
  height: 36px;
  padding: 4px 8px;
}

.product-admin-table .product-admin-group-row,
.product-admin-table .product-admin-group-row:hover {
  background: #eef3f8;
}

.product-admin-group-row td {
  height: auto !important;
  padding: 0 !important;
  border-top: 1px solid #b9c8da;
  border-bottom: 1px solid #cfdae8;
}

.product-admin-group-head {
  display: grid;
  grid-template-columns: minmax(280px, 1.5fr) minmax(130px, .7fr) 88px 88px 64px 64px 58px;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 5px 10px;
}

.product-admin-group-title {
  display: grid;
  gap: 2px;
  min-width: 0;
  text-align: left;
}

.product-admin-group-title strong {
  overflow: hidden;
  color: #15263d;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.product-admin-group-title small,
.product-admin-group-count small {
  overflow: hidden;
  color: #66758b;
  font-size: 10px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-admin-group-count {
  display: grid;
  gap: 2px;
  color: #17263a;
  font-size: 11px;
  font-weight: 850;
  text-align: left;
}

.product-admin-group-tool {
  display: grid;
  gap: 2px;
  color: #334155;
  font-size: 10px;
  font-weight: 850;
  text-align: left;
  text-transform: uppercase;
}

.product-admin-group-tool input {
  width: 100%;
  height: 24px;
  border: 1px solid #b7c6d8;
  background: #fff;
  font: inherit;
  font-size: 12px;
}

.product-admin-tool-button {
  height: 26px;
  border: 1px solid #9eb1c7;
  background: #fff;
  color: #14253a;
  font-size: 12px;
  font-weight: 850;
}

.product-admin-tool-button.outline {
  background: #f7fafc;
}

.product-admin-product-row.is-inactive {
  background: #fff8f8;
}

.product-admin-image-cell {
  width: 54px;
  min-width: 54px;
}

.product-admin-image-cell img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.product-admin-name-cell {
  min-width: 250px;
  text-align: left !important;
}

.product-admin-name-cell strong,
.product-admin-name-cell small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-admin-name-cell strong {
  color: #142033;
  font-size: 12px;
}

.product-admin-name-cell small {
  color: #64748b;
  font-size: 10px;
  font-weight: 750;
}

.product-status-pill {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border: 1px solid #cbd5e1;
  font-size: 11px;
  font-weight: 850;
}

.product-status-pill.is-active {
  border-color: #83b88a;
  background: #edf8ee;
  color: #166534;
}

.product-status-pill.is-inactive {
  border-color: #e1a3a3;
  background: #fff0f0;
  color: #9f1239;
}

.product-status-toggle {
  height: 20px;
  margin-left: 5px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  font-size: 10px;
  font-weight: 850;
}

.product-status-toggle.is-active {
  border-color: #83b88a;
  color: #166534;
}

.product-admin-empty-row td {
  height: 68px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.category-manager-view {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
}

.category-manager-toolbar,
.category-manager-editline {
  display: grid;
  align-items: end;
  gap: 10px;
  border-bottom: 1px solid #d7e2ee;
  background: #f8fafc;
}

.category-manager-toolbar {
  grid-template-columns: minmax(190px, 240px) minmax(260px, 1fr) auto;
  padding: 10px 14px;
}

.category-manager-editline {
  grid-template-columns: minmax(110px, .6fr) minmax(145px, .9fr) minmax(145px, .9fr) minmax(130px, .8fr) 252px 118px;
  padding: 8px 14px;
}

.category-manager-toolbar label,
.category-manager-editline label {
  display: grid;
  gap: 4px;
  color: #27364a;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.category-manager-toolbar select,
.category-manager-toolbar input,
.category-manager-editline input {
  height: 30px;
  border: 1px solid #bac8d8;
  background: #fff;
  color: #102033;
  font: inherit;
  font-size: 13px;
}

.category-manager-editline input:disabled {
  background: #f1f5f9;
  color: #718096;
}

.category-manager-toolbar span {
  color: #52627a;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.category-manager-editline button {
  height: 30px;
  border: 1px solid #9eb1c7;
  background: #fff;
  color: #14253a;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.category-manager-editline button:disabled {
  background: #f1f5f9;
  color: #7b8795;
  cursor: not-allowed;
}

.category-manager-view[data-category-workspace="true"] .category-manager-toolbar,
.category-manager-view[data-category-workspace="true"] .category-manager-editline,
.category-manager-view[data-category-workspace="true"] .category-manager-scroll {
  display: none;
}

.category-manager-workspace[hidden] {
  display: none;
}

.category-manager-workspace {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
}

.category-manager-workbar,
.category-manager-workline {
  display: grid;
  align-items: end;
  gap: 10px;
  border-bottom: 1px solid #d7e2ee;
  background: #f8fafc;
}

.category-manager-workbar {
  grid-template-columns: 1fr auto;
  min-height: 42px;
  padding: 7px 14px;
}

.category-manager-workbar strong {
  color: #14253a;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.category-manager-workline {
  grid-template-columns: minmax(150px, .9fr) minmax(130px, .75fr) minmax(155px, 1fr) minmax(155px, 1fr) minmax(130px, .8fr) 120px;
  padding: 8px 14px;
}

.category-manager-workline label {
  display: grid;
  gap: 4px;
  color: #27364a;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.category-manager-workline input {
  height: 30px;
  border: 1px solid #bac8d8;
  background: #fff;
  color: #102033;
  font: inherit;
  font-size: 13px;
}

.category-manager-workbar button,
.category-manager-workline button {
  height: 30px;
  border: 1px solid #9eb1c7;
  background: #fff;
  color: #14253a;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.category-manager-workspace-scroll {
  min-height: 0;
  flex: 1;
}

.category-manager-workspace-table {
  min-width: 980px;
}

.category-manager-workspace-table thead th {
  height: 30px;
}

.category-manager-workspace-table tbody td {
  height: 36px;
  padding: 4px 8px;
}

.category-manager-scroll {
  min-height: 0;
  flex: 1;
}

.category-manager-table {
  min-width: 1120px;
}

.category-manager-table thead th {
  height: 30px;
}

.category-manager-table tbody td {
  height: 34px;
  padding: 4px 8px;
}

.category-manager-preview-row {
  background: #f8fbff;
}

.category-manager-empty-row td {
  height: 68px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.row-green {
  background: #fbfef9;
}

.row-yellow {
  background: #fffdf4;
}

.row-red {
  background: #fff7f7;
}

.status {
  height: 21px;
  padding: 0 8px;
  font-size: 12px;
}


.statusbar {
  height: 28px;
  background: #071426;
}

/* Polish layer: keep the shell as one continuous system workspace. */
.eui-header {
  height: 56px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(218, 226, 237, 0.95);
}

.menu-button {
  border-radius: 4px;
  background: #063b2d;
  box-shadow: none;
}

.menu-button:focus {
  outline: none;
}

.menu-button:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.82);
}

.menu-button.active {
  background: #0a5a43;
  box-shadow: none;
}

.brand strong,
.main-nav button,
.sub-nav button,
.plain-button,
.icon-button {
  letter-spacing: 0;
}

.main-nav,
.sub-nav,
.statusbar {
  box-shadow: none;
}

.main-nav,
.sub-nav {
  justify-content: center;
}

.main-nav button,
.sub-nav button {
  border-radius: 3px;
  text-align: center;
}

.system-window,
.workbar,
.filter-strip,
.table-scroll {
  box-shadow: none;
}

.data-table {
  border-collapse: collapse;
}

.brand.brand-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 44px;
  padding: 4px 10px;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  border: 0;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand.brand-logo-link .brand-mark,
.brand.brand-logo-link strong,
.brand.brand-logo-link small {
  display: none;
}
.comfort-toggle {
  height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #d7e1ee;
  border-radius: 999px;
  background: #ffffff;
  color: #0f1b3d;
  box-shadow: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.comfort-toggle:hover {
  border-color: #b8c7da;
  background: #f9fbff;
}

.comfort-toggle-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #cbd5e1;
  box-shadow: inset 0 0 0 1px rgba(15, 27, 61, 0.08);
}

.comfort-toggle.active {
  border-color: rgba(245, 158, 11, 0.42);
  background: #fff7ed;
  color: #7c3f00;
}

.comfort-toggle.active .comfort-toggle-dot {
  background: #f59e0b;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.52);
}

.comfort-settings-shortcut {
  height: 32px;
  margin-left: -6px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #2563eb;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}

.comfort-settings-shortcut:hover {
  background: #eaf2ff;
}

html.comfort-filter-on body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(82, 156, 232, 0.16), rgba(255, 255, 255, 0.04) 45%, rgba(255, 145, 72, 0.24)),
    url("assets/fade-bakgrund.png") center / cover no-repeat;
  opacity: var(--comfort-overlay-opacity, 0.34);
  mix-blend-mode: multiply;
}

html.comfort-filter-on body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2147482999;
  pointer-events: none;
  background: rgba(255, 245, 232, var(--comfort-warm-opacity, 0.08));
}

.settings-system {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  background: #fff;
}

.settings-toolbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line-soft);
}

.settings-toolbar strong {
  display: block;
  font-size: 16px;
}

.settings-toolbar span:not(.status) {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.settings-lines {
  display: grid;
  align-content: start;
}

.settings-lines-compact {
  border-bottom: 1px solid var(--line-soft);
}

.settings-line {
  min-height: 108px;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(280px, 460px);
  align-items: center;
  gap: 30px;
  padding: 22px;
  border-bottom: 1px solid var(--line-soft);
}

.settings-line-compact {
  min-height: 72px;
  grid-template-columns: minmax(340px, 1fr) auto;
  gap: 18px;
  padding: 12px 16px;
}

.settings-line-main h2 {
  margin: 4px 0 6px;
  font-size: 22px;
}

.settings-line-main p:last-child {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

.ui-version-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.system-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.system-link.active {
  border-color: #176fd3;
  background: var(--blue-soft);
  color: #075da8;
}

.system-link.primary {
  border-color: #176fd3;
  background: #176fd3;
  color: #fff;
}

.settings-system-compact {
  height: auto;
  min-height: 100%;
  align-content: start;
  grid-template-rows: auto auto;
}

.settings-toolbar.compact {
  min-height: 48px;
  padding: 0 16px;
}

.settings-toolbar.compact strong {
  font-size: 14px;
}

.settings-toolbar.compact span:not(.status) {
  font-size: 12px;
}

.comfort-compact-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 340px) auto 116px;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
}

.comfort-compact-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.comfort-icon-dot {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(82, 156, 232, 0.9), rgba(255, 145, 72, 0.9));
  box-shadow: 0 8px 18px rgba(255, 145, 72, 0.16);
}

.comfort-compact-title h2 {
  margin: 1px 0 2px;
  font-size: 16px;
}

.comfort-compact-title p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.comfort-switch {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
}

.comfort-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.comfort-switch span {
  position: relative;
  width: 54px;
  height: 30px;
  border-radius: 999px;
  background: #dbe4ef;
  transition: background 160ms ease;
}

.comfort-switch span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(15, 27, 61, 0.18);
  transition: transform 160ms ease;
}

.comfort-switch input:checked + span {
  background: linear-gradient(90deg, #5ba7ed, #ff9a4b);
}

.comfort-switch input:checked + span::after {
  transform: translateX(24px);
}

.comfort-switch-mini {
  justify-self: auto;
  gap: 8px;
  font-size: 12px;
}

.comfort-switch-mini span {
  width: 42px;
  height: 24px;
}

.comfort-switch-mini span::after {
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
}

.comfort-switch-mini input:checked + span::after {
  transform: translateX(18px);
}

.comfort-control {
  display: grid;
  grid-template-columns: 1fr 64px;
  align-items: center;
  gap: 18px;
}

.comfort-control input[type="range"] {
  width: 100%;
  accent-color: #f59e0b;
  cursor: pointer;
}

.comfort-control input[type="range"]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.comfort-control strong {
  text-align: right;
  font-size: 20px;
}

.comfort-control-mini {
  grid-template-columns: auto minmax(120px, 1fr) 46px;
  gap: 10px;
}

.comfort-control-mini span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.comfort-control-mini strong {
  font-size: 13px;
}

.comfort-presets {
  justify-self: end;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.comfort-presets button {
  height: 38px;
  padding: 0 16px;
  border: 1px solid #d7e1ee;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
}

.comfort-presets button:hover {
  border-color: rgba(245, 158, 11, 0.5);
  background: #fff7ed;
}

.comfort-presets-mini {
  justify-self: auto;
  gap: 6px;
  flex-wrap: nowrap;
}

.comfort-presets-mini button {
  height: 28px;
  padding: 0 10px;
  font-size: 11px;
}

.comfort-preview {
  justify-self: end;
  width: min(460px, 100%);
  min-height: 86px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(82, 156, 232, var(--comfort-overlay-opacity, 0.34)), rgba(255, 255, 255, 0.2), rgba(255, 145, 72, var(--comfort-overlay-opacity, 0.34))),
    #fff;
}

.comfort-preview span {
  height: 100%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.62);
  font-weight: 850;
}

.comfort-preview.muted {
  background: #f8fafc;
}

.comfort-preview-mini {
  width: 116px;
  min-height: 34px;
  grid-template-columns: 1fr;
  border-radius: 999px;
}

.comfort-preview-mini span {
  min-height: 34px;
}

@media (max-width: 1100px) {
  .settings-line {
    grid-template-columns: 1fr;
  }

  .settings-line-compact {
    grid-template-columns: 1fr;
  }

  .ui-version-actions {
    justify-content: flex-start;
  }

  .comfort-switch,
  .comfort-presets,
  .comfort-preview {
    justify-self: start;
  }

  .comfort-compact-panel {
    grid-template-columns: 1fr;
  }

  .comfort-compact-title p:last-child {
    white-space: normal;
  }
}

.connection-map {
  min-height: 100%;
  padding: 18px 22px 28px;
  background: var(--surface);
}

.connection-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 0 18px;
  border-bottom: 1px solid var(--line);
}

.connection-intro h2 {
  margin: 0 0 6px;
  font-size: 24px;
}

.connection-intro p {
  max-width: 900px;
  margin: 0;
  color: var(--muted);
}

.connection-total {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 850;
}

.connection-block {
  padding: 18px 0 8px;
  border-bottom: 1px solid var(--line-soft);
}

.connection-block-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.connection-block-head h3 {
  margin: 0 0 3px;
  font-size: 18px;
}

.connection-block-head p,
.connection-block-head span {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.connection-table-wrap {
  max-height: 420px;
  overflow: auto;
  border-top: 1px solid var(--line);
}

.connection-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.connection-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px 12px;
  background: var(--surface-soft);
  color: var(--muted);
  text-align: left;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0;
}

.connection-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.connection-table code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #f1f5f9;
  color: var(--ink);
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.connection-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eaf8ef;
  color: #15803d;
  font-weight: 850;
  white-space: nowrap;
}

.connection-status.needs-spec {
  background: #fff7db;
  color: #a16207;
}

.migration-readiness {
  min-height: 100%;
  padding: 18px 22px 30px;
  background: var(--surface);
}

.migration-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 24px;
  align-items: start;
  padding: 8px 0 20px;
  border-bottom: 1px solid var(--line);
}

.migration-intro h2 {
  margin: 0 0 6px;
  font-size: 24px;
}

.migration-intro p {
  max-width: 980px;
  margin: 0;
  color: var(--muted);
}

.migration-score {
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #eef5ff, #fff7ed);
  box-shadow: 0 10px 28px rgba(15, 27, 61, 0.06);
}

.migration-score strong,
.migration-score span,
.migration-score small {
  display: block;
}

.migration-score strong {
  font-size: 28px;
}

.migration-score span {
  margin-top: 2px;
  font-weight: 850;
}

.migration-score small {
  margin-top: 6px;
  color: var(--muted);
}

.migration-section {
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}

.migration-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.migration-section-head h3 {
  margin: 0;
  font-size: 18px;
}

.migration-section-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.migration-gates {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 1px;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
}

.migration-gate {
  min-height: 116px;
  padding: 12px 14px;
  border-right: 1px solid var(--line-soft);
  background: #fff;
}

.migration-gate:last-child {
  border-right: 0;
}

.migration-gate span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.migration-gate strong,
.migration-phase strong {
  display: block;
}

.migration-gate p,
.migration-phase p,
.migration-blockers p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.module-readiness-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-soft);
}

.module-readiness-card {
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.module-readiness-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 18px;
  align-items: start;
}

.module-phase {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.module-readiness-head h4 {
  margin: 6px 0;
  font-size: 20px;
}

.module-readiness-head p {
  margin: 0;
  color: var(--muted);
}

.module-readiness-score {
  padding: 0 0 0 14px;
  border-left: 1px solid var(--line-soft);
  border-radius: 0;
  background: transparent;
}

.module-readiness-score strong,
.module-readiness-score span,
.module-readiness-score small {
  display: block;
}

.module-readiness-score strong {
  font-size: 26px;
}

.module-readiness-score span {
  margin-top: 2px;
  font-weight: 850;
}

.module-readiness-score small {
  margin-top: 6px;
  color: var(--muted);
}

.module-readiness-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 16px 0;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
  background: #fff;
}

.module-readiness-meta div {
  min-width: 0;
  padding: 10px 12px;
  border-right: 1px solid var(--line-soft);
  background: #fff;
}

.module-readiness-meta div:last-child {
  border-right: 0;
}

.module-readiness-meta span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.module-readiness-meta strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.module-check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}

.module-check {
  padding: 10px 12px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
  background: #ffffff;
}

.module-check strong {
  display: block;
  margin-top: 8px;
}

.module-check p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.readiness-state {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.readiness-state.ready {
  background: #eaf8ef;
  color: #15803d;
}

.readiness-state.check {
  background: #fff7db;
  color: #a16207;
}

.readiness-state.block {
  background: #feecec;
  color: #dc2626;
}

.module-next-actions {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.module-next-actions ol {
  margin: 8px 0 0 20px;
  color: var(--muted);
}

.migration-phase-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.migration-phase {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.42);
  border-bottom: 1px solid var(--line-soft);
}

.migration-phase:last-child {
  border-bottom: 0;
}

.migration-phase > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: 2px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 900;
}

.migration-table-wrap {
  max-height: 520px;
}

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

.migration-blockers div {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
}

.migration-blockers span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff7db;
  color: #a16207;
  font-weight: 900;
}

@media (max-width: 1200px) {
  .migration-intro,
  .migration-blockers {
    grid-template-columns: 1fr;
  }

  .migration-gates {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .module-readiness-head,
  .module-readiness-meta,
  .module-check-grid {
    grid-template-columns: 1fr;
  }
}

.customer-payments-view {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.customer-payment-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--line-soft);
}

.customer-payment-tabs a {
  flex: 0 0 auto;
  padding: 9px 14px;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.customer-payment-tabs a[aria-current="page"] {
  border-bottom-color: var(--blue);
  color: var(--blue);
}

.customer-payment-tabs a.active {
  border-bottom-color: var(--blue);
  color: var(--blue);
}

.customer-payment-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: #f7f9fc;
}

.customer-payment-summary > span {
  min-width: 0;
  padding: 11px 14px;
  border-right: 1px solid var(--line-soft);
}

.customer-payment-summary > span:last-child {
  border-right: 0;
}

.customer-payment-summary small,
.customer-payment-summary strong {
  display: block;
}

.customer-payment-summary small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.customer-payment-summary strong {
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: 17px;
}

.customer-payment-workbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
}

.customer-payment-workbar span,
.customer-payment-muted {
  color: var(--muted);
  font-size: 12px;
}

.customer-payment-entry {
  display: grid;
  grid-template-columns: 150px minmax(180px, 1fr) minmax(220px, 1.4fr) 150px auto;
  gap: 10px;
  align-items: end;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.customer-payment-entry[hidden],
.customer-payment-correction-row[hidden] {
  display: none;
}

.customer-payment-entry label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.customer-payment-entry input,
.customer-payment-table input,
.customer-payment-table select,
.customer-payment-correction input {
  box-sizing: border-box;
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.customer-payment-entry input,
.customer-payment-correction input {
  padding: 6px 9px;
}

.customer-payment-table-scroll {
  min-width: 0;
  max-width: 100%;
}

.customer-payment-table {
  min-width: 1160px;
}

.customer-payment-reconciliation-table {
  min-width: 1420px;
}

.customer-payment-table th,
.customer-payment-table td {
  vertical-align: middle;
}

.customer-payment-table select {
  min-width: 280px;
  padding: 5px 28px 5px 8px;
}

.customer-payment-reconciliation-table input[type="date"] {
  min-width: 138px;
}

.customer-payment-reconciliation-table input[type="number"] {
  min-width: 120px;
}

.customer-payment-reconciliation-table input[type="text"] {
  min-width: 160px;
}

.numeric-cell {
  white-space: nowrap;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.text-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.customer-payment-table .status[data-status="unmatched"],
.customer-payment-table .status[data-status="partial_paid"] {
  background: #fff7db;
  color: #8a5a00;
}

.customer-payment-table .status[data-status="matched"],
.customer-payment-table .status[data-status="posted"],
.customer-payment-table .status[data-status="paid"] {
  background: #eaf8ef;
  color: #166534;
}

.customer-payment-table .status[data-status="reversed"] {
  background: #f1f3f5;
  color: #59636e;
}

.customer-payment-correction-row td {
  padding: 0 12px 12px;
  background: #f7f9fc;
}

.customer-payment-correction {
  display: grid;
  grid-template-columns: 160px minmax(240px, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding-top: 10px;
}

.empty-table-cell {
  padding: 28px 16px !important;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 900px) {
  .customer-payment-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-payment-summary > span:nth-child(2) {
    border-right: 0;
  }

  .customer-payment-summary > span:nth-child(-n+2) {
    border-bottom: 1px solid var(--line-soft);
  }

  .customer-payment-entry,
  .customer-payment-correction {
    grid-template-columns: 1fr;
  }
}

.bank-import-view,
.customer-reminders-view {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.bank-import-summary,
.customer-reminder-summary {
  display: grid;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: #f7f9fc;
}

.bank-import-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.bank-import-summary > span,
.customer-reminder-summary > span {
  min-width: 0;
  padding: 11px 14px;
  border-right: 1px solid var(--line-soft);
}

.bank-import-summary > span:last-child,
.customer-reminder-summary > span:last-child {
  border-right: 0;
}

.bank-import-summary small,
.bank-import-summary strong,
.customer-reminder-summary small,
.customer-reminder-summary strong {
  display: block;
}

.bank-import-summary small,
.customer-reminder-summary small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.bank-import-summary strong,
.customer-reminder-summary strong {
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: 17px;
}

.bank-import-workspace {
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.bank-import-controls {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
}

.bank-import-controls label,
.customer-reminder-form label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.bank-import-controls input,
.customer-reminder-form input,
.customer-reminder-form select {
  box-sizing: border-box;
  width: 100%;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.bank-import-controls .plain-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  box-sizing: border-box;
  text-decoration: none;
}

.bank-import-table-scroll,
.customer-reminder-table-scroll {
  min-width: 0;
  max-width: 100%;
}

.bank-import-table-scroll table {
  min-width: 920px;
}

.customer-reminder-table {
  min-width: 1160px;
}

.customer-reminder-table th,
.customer-reminder-table td {
  vertical-align: middle;
}

.customer-reminder-form-row[hidden] {
  display: none;
}

.customer-reminder-form-row td {
  padding: 0 12px 12px;
  background: #f7f9fc;
}

.customer-reminder-form {
  display: grid;
  grid-template-columns: minmax(120px, .8fr) 145px 145px 110px 110px minmax(220px, 1.5fr) auto;
  gap: 10px;
  align-items: end;
  padding-top: 10px;
}

.customer-reminder-form > strong {
  align-self: center;
  font-size: 13px;
}

.customer-reminder-transition-form {
  grid-template-columns: 190px minmax(260px, 1fr) auto;
}

.customer-reminder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 230px;
}

.customer-reminder-table .status[data-status="draft"] {
  background: #fff7db;
  color: #8a5a00;
}

.customer-reminder-table .status[data-status="sent"] {
  background: #eaf8ef;
  color: #166534;
}

.customer-reminder-table .status[data-status="cancelled"] {
  background: #f1f3f5;
  color: #59636e;
}

@media (max-width: 1000px) {
  .customer-reminder-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-reminder-summary > span {
    border-bottom: 1px solid var(--line-soft);
  }

  .customer-reminder-summary > span:nth-child(2n) {
    border-right: 0;
  }

  .customer-reminder-summary > span:last-child {
    border-bottom: 0;
  }

  .customer-reminder-form,
  .customer-reminder-transition-form {
    grid-template-columns: 1fr 1fr;
  }

  .customer-reminder-message {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .bank-import-view,
  .customer-reminders-view {
    width: 100%;
    max-width: 100%;
  }

  .bank-import-summary,
  .customer-reminder-summary,
  .bank-import-controls,
  .customer-reminder-form,
  .customer-reminder-transition-form {
    grid-template-columns: 1fr;
  }

  .bank-import-summary > span,
  .customer-reminder-summary > span {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .bank-import-summary > span:last-child,
  .customer-reminder-summary > span:last-child {
    border-bottom: 0;
  }

  .customer-reminder-message {
    grid-column: auto;
  }
}

.purchase-order-list-view,
.purchase-receipt-list-view,
.purchase-order-view {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.purchase-order-list-table {
  min-width: 1120px;
}

.purchase-receipt-list-table {
  min-width: 980px;
}

.purchase-order-view {
  gap: 0;
  align-content: start;
  background: #fff;
  color: #0f1b3d;
}

.purchase-order-field-table,
.purchase-order-lines-table {
  min-width: 1240px;
}

.purchase-order-field-table th,
.purchase-order-lines-table tfoot th {
  width: 130px;
  padding: 0 12px;
  border-right: 1px solid #eef2f7;
  border-bottom: 1px solid #edf2f7;
  background: #f6f9fc;
  color: #52627a;
  font-size: 10px;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
}

.purchase-order-field-table td,
.purchase-order-lines-table tbody td,
.purchase-order-lines-table tfoot td {
  height: 40px;
  padding: 0;
  border-right: 1px solid #eef2f7;
  border-bottom: 1px solid #edf2f7;
  background: #fff;
}

.purchase-order-view input,
.purchase-order-view select,
.purchase-order-view textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #0f1b3d;
  font: inherit;
}

.purchase-order-view textarea {
  min-height: 58px;
  padding-top: 9px;
  padding-bottom: 9px;
  resize: vertical;
}

.purchase-order-view input[readonly] {
  background: #f8fafc;
  color: #52627a;
}

.purchase-order-view input:focus,
.purchase-order-view select:focus,
.purchase-order-view textarea:focus {
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.38);
  outline: none;
}

.purchase-order-lines-table th:nth-child(1),
.purchase-order-lines-table td:nth-child(1) { width: 130px; }
.purchase-order-lines-table th:nth-child(2),
.purchase-order-lines-table td:nth-child(2) { width: 340px; }
.purchase-order-lines-table th:nth-child(n + 3),
.purchase-order-lines-table td:nth-child(n + 3) { width: 115px; text-align: center; }

.purchase-order-lines-table span,
.purchase-order-lines-table strong {
  display: block;
  padding: 0 12px;
  white-space: nowrap;
}

.purchase-receipt-entry,
.purchase-receipt-history,
.supplier-document-section,
.supplier-credit-entry {
  display: grid;
  gap: 10px;
  padding: 16px 22px;
  border-top: 1px solid var(--line-soft);
}

.purchase-receipt-entry[hidden],
.purchase-receipt-history[hidden],
.supplier-credit-entry[hidden] {
  display: none;
}

.purchase-receipt-fields,
.supplier-credit-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 10px;
}

.purchase-receipt-fields label,
.supplier-credit-fields label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.purchase-receipt-fields input,
.supplier-credit-fields input,
.supplier-document-upload input {
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.purchase-receipt-lines-table {
  min-width: 900px;
}

.purchase-receipt-lines-table input {
  border: 1px solid var(--line-soft);
}

.purchase-receipt-actions {
  display: flex;
  justify-content: flex-end;
}

.supplier-document-upload {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.supplier-document-table {
  min-width: 720px !important;
}

.supplier-document-table button + button {
  margin-left: 6px;
}

@media (max-width: 760px) {
  .purchase-order-list-view,
  .purchase-receipt-list-view,
  .purchase-order-view {
    width: 100%;
    max-width: 100%;
  }

  .purchase-receipt-fields,
  .supplier-credit-fields,
  .supplier-document-upload {
    grid-template-columns: 1fr;
  }

  .purchase-receipt-entry,
  .purchase-receipt-history,
  .supplier-document-section,
  .supplier-credit-entry {
    padding: 14px;
  }
}

.supplier-list-view,
.supplier-invoice-list-view,
.supplier-invoice-draft-view,
.supplier-invoice-view,
.supplier-payments-view {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.supplier-list-toolbar,
.supplier-invoice-line-toolbar,
.customer-payment-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.supplier-list-toolbar input {
  box-sizing: border-box;
  width: min(520px, 100%);
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: inherit;
}

.supplier-invoice-draft-view input,
.supplier-invoice-draft-view select,
.supplier-invoice-draft-view textarea,
.supplier-payments-view input,
.supplier-payments-view select {
  box-sizing: border-box;
  width: 100%;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.supplier-invoice-draft-view .supplier-invoice-field-table input,
.supplier-invoice-draft-view .supplier-invoice-field-table select,
.supplier-invoice-draft-view .supplier-invoice-field-table textarea {
  height: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 0;
}

.supplier-invoice-draft-view table,
.supplier-invoice-view table {
  min-width: 1080px;
}

.supplier-payments-view table {
  min-width: 1260px;
}

.supplier-payment-section {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.customer-payment-section-heading {
  min-height: 30px;
}

.customer-payment-section-heading span {
  color: var(--muted);
  font-size: 12px;
}

.supplier-payments-view td {
  vertical-align: middle;
}

.supplier-payments-view small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.supplier-invoice-voucher {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

@media (max-width: 700px) {
  .supplier-list-view,
  .supplier-invoice-list-view,
  .supplier-invoice-draft-view,
  .supplier-invoice-view,
  .supplier-payments-view {
    width: 100%;
    max-width: 100%;
  }

  .supplier-list-toolbar,
  .supplier-invoice-line-toolbar,
  .customer-payment-section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .supplier-list-toolbar input,
  .supplier-list-toolbar button {
    width: 100%;
  }
}
