:root {
  --ink: #17252d;
  --muted: #6f7c82;
  --paper: #f2f5f4;
  --card: #ffffff;
  --line: #dfe6e3;
  --brand: #174f58;
  --brand-dark: #0e353d;
  --brand-soft: #e4efed;
  --accent: #d66c3e;
  --success: #287456;
  --danger: #a84438;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: var(--paper); }
button, input, select, textarea { font: inherit; }
button, .button { cursor: pointer; }

.login-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px;
  background:
    radial-gradient(circle at 16% 18%, rgba(98, 169, 157, .2), transparent 28%),
    radial-gradient(circle at 82% 80%, rgba(214, 108, 62, .14), transparent 25%),
    linear-gradient(145deg, #0d3038, #174f58 58%, #1b5e62);
}

.login-card {
  width: min(430px, 100%);
  padding: 42px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 22px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .25);
}

.brand-mark {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: white;
  background: linear-gradient(135deg, var(--brand), #287b79);
  font-weight: 800;
  letter-spacing: .08em;
  box-shadow: 0 10px 24px rgba(23, 79, 88, .25);
}

.brand-mark.small { width: 48px; height: 48px; border-radius: 13px; box-shadow: none; }
.eyebrow, .kicker { margin: 24px 0 6px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.login-card h1 { margin: 0; font-size: 29px; }
.login-tip { margin: 10px 0 28px; color: var(--muted); font-size: 14px; }
.login-form { display: grid; gap: 18px; }

label { color: var(--muted); font-size: 12px; font-weight: 700; }
input, select, textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  border: 1px solid #cbd5d1;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color .16s, box-shadow .16s;
}
input, select { height: 41px; padding: 0 12px; }
textarea { min-height: 92px; padding: 11px 12px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(23, 79, 88, .1); }

button, .button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--brand);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
button:hover, .button:hover { filter: brightness(1.07); }
button:disabled { opacity: .55; cursor: wait; }
.login-form button { margin-top: 5px; height: 46px; }

.topbar {
  min-height: 84px;
  padding: 17px clamp(24px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: #fff;
  background: linear-gradient(115deg, var(--brand-dark), var(--brand));
  box-shadow: 0 8px 28px rgba(14, 53, 61, .16);
}
.brand-block { display: flex; align-items: center; gap: 14px; }
.brand-block p { margin: 0 0 3px; color: #bcd8d5; font-size: 11px; font-weight: 700; letter-spacing: .15em; }
.brand-block h1 { margin: 0; font-size: 22px; letter-spacing: .04em; }
.account-actions { display: flex; align-items: center; gap: 18px; font-size: 13px; }
.health { display: flex; align-items: center; gap: 7px; color: #d6e7e5; }
.health i { width: 8px; height: 8px; border-radius: 50%; background: #68c299; box-shadow: 0 0 0 4px rgba(104, 194, 153, .15); }
.ghost-button { min-height: 34px; padding: 0 13px; border: 1px solid rgba(255, 255, 255, .28); color: #fff; background: transparent; font-size: 12px; }

main { width: min(1680px, 95vw); margin: 26px auto 54px; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.metrics article { padding: 20px 22px; border: 1px solid var(--line); border-radius: 13px; background: var(--card); box-shadow: 0 7px 22px rgba(24, 52, 57, .05); }
.metrics span { color: var(--muted); font-size: 12px; }
.metrics strong { display: block; margin-top: 7px; color: var(--brand-dark); font-size: 26px; letter-spacing: .02em; }

.page-tabs { display: flex; gap: 8px; margin: 24px 0 12px; }
.page-tab { min-width: 130px; color: var(--muted); background: transparent; }
.page-tab.active { color: var(--brand); background: var(--brand-soft); }
.panel { display: none; padding: 25px; border: 1px solid var(--line); border-radius: 15px; background: var(--card); box-shadow: 0 10px 30px rgba(24, 52, 57, .05); }
.panel.active { display: block; }
.panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.panel-heading .kicker { margin: 0 0 5px; }
.panel-heading h2 { margin: 0; font-size: 23px; }
.panel-heading p:not(.kicker) { margin: 7px 0 0; color: var(--muted); font-size: 12px; }

.policy-form, .filters { display: grid; align-items: end; gap: 12px; margin-bottom: 20px; padding: 17px; border-radius: 11px; background: #f3f6f4; }
.policy-form { grid-template-columns: repeat(3, minmax(180px, 1fr)); }
.policy-form button { align-self: end; }
.policy-note { margin: -7px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.filters { grid-template-columns: repeat(5, minmax(145px, 1fr)); }
.customer-filters { grid-template-columns: repeat(6, minmax(145px, 1fr)); }
.filter-actions { display: flex; gap: 8px; align-items: end; }
.button.secondary { color: var(--brand); background: var(--brand-soft); }
.button.tertiary { color: var(--brand); border: 1px solid #bfcfcb; background: #fff; }
.button.danger { color: #fff; background: var(--danger); }
.file-field { position: relative; overflow: hidden; }
.file-field input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-field span { height: 41px; margin-top: 7px; padding: 0 12px; display: flex; align-items: center; overflow: hidden; border: 1px dashed #9caeaa; border-radius: 8px; color: var(--brand); background: #fff; white-space: nowrap; text-overflow: ellipsis; }

.table-shell { overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.table-list { min-width: 0; }
.table-pager { display: flex; align-items: center; justify-content: flex-end; gap: 14px; min-height: 42px; padding: 8px 2px 0; color: var(--muted); font-size: 12px; }
.pager-summary { margin-right: auto; }
.customer-pager-overview { display: flex; flex: 1; min-width: 0; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-right: auto; }
.customer-pager-overview .pager-summary { margin: 0; width: auto; white-space: nowrap; }
.customer-filter-totals { display: flex; flex-wrap: wrap; gap: 8px 16px; line-height: 1.6; }
.customer-filter-totals > span { white-space: nowrap; }
.customer-filter-totals strong { color: var(--ink); font-weight: 700; }
.pager-size { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.pager-size select { width: 76px; height: 32px; margin: 0; padding: 0 8px; }
.pager-actions { display: flex; gap: 7px; }
.pager-actions .table-action + .table-action { margin-left: 0; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.policy-table { min-width: 1450px; }
.review-table { min-width: 1050px; }
.subsection-title { margin: 24px 0 10px; font-size: 16px; }
.policy-funder-tabs { display: flex; flex-wrap: wrap; gap: 9px; margin: 12px 0 8px; }
.policy-funder-tab { min-width: 115px; padding: 10px 18px; color: var(--muted); border: 1px solid var(--line); background: #fff; white-space: nowrap; }
.policy-funder-tab[aria-pressed="true"] { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); font-weight: 700; }
.dealer-table { min-width: 900px; }
.payee-table { min-width: 780px; }
.rebate-method-table { min-width: 1180px; }
.customer-table { min-width: 2700px; --customer-name-width: 112px; --customer-actions-width: 120px; }
th { position: sticky; top: 0; z-index: 2; padding: 12px 13px; border-bottom: 1px solid #d8e1de; color: #56666d; background: #eef3f1; text-align: left; white-space: nowrap; }
td { padding: 12px 13px; border-bottom: 1px solid #edf0ef; color: #2f4149; vertical-align: middle; white-space: nowrap; }
tbody tr:hover td { background: #f8faf9; }
tbody tr:last-child td { border-bottom: 0; }
td.empty { padding: 38px; color: var(--muted); text-align: center; }
.customer-table th:nth-child(5), .customer-table td:nth-child(5),
.customer-table th:nth-child(6), .customer-table td:nth-child(6) { position: sticky; z-index: 1; background: #fff; white-space: normal; overflow-wrap: anywhere; }
.customer-table th:nth-child(5), .customer-table td:nth-child(5) { left: 0; width: var(--customer-name-width); min-width: var(--customer-name-width); max-width: var(--customer-name-width); }
.customer-table th:nth-child(6), .customer-table td:nth-child(6) { left: var(--customer-name-width); width: var(--customer-actions-width); min-width: var(--customer-actions-width); max-width: var(--customer-actions-width); box-shadow: 5px 0 10px rgba(16, 52, 58, .08); }
.customer-table th:nth-child(5), .customer-table th:nth-child(6) { z-index: 3; background: #eef3f1; }
.customer-table tbody tr:hover td:nth-child(5), .customer-table tbody tr:hover td:nth-child(6) { background: #f8faf9; }
.customer-table .customer-actions { padding: 8px; }
.customer-actions .table-action { display: block; width: 100%; margin: 0; padding: 5px 7px; white-space: normal; line-height: 1.4; }
.customer-record-id { display: block; margin-top: 5px; font-size: 11px; color: var(--muted); }
.customer-actions .table-action + .table-action { margin: 5px 0 0; }
.customer-table .customer-rebate-method { min-width: 180px; max-width: 300px; white-space: normal; overflow-wrap: anywhere; line-height: 1.7; }
.badge { display: inline-flex; padding: 4px 9px; border-radius: 999px; color: var(--muted); background: #edf0ee; font-size: 11px; }
.badge.success { color: var(--success); background: #def0e7; }
.badge.accent { color: #9b512e; background: #f7e5db; }
.badge.superseded { color: #245f91; background: #e2effa; }
.badge.manual { color: #9a5b08; background: #fff0cf; }
.badge.voided { color: #a33127; background: #f8dfdc; }
.table-action { min-height: 29px; padding: 0 11px; color: var(--brand); border: 1px solid #b9cbc7; background: #fff; font-size: 11px; }
.table-action + .table-action { margin-left: 7px; }
.danger-action { color: var(--danger); border-color: #dbb8b3; }

/* Only these three lists are compacted; customer details and other tables keep their layout. */
.compact-table { min-width: 0; table-layout: fixed; }
.compact-table th, .compact-table td { padding: 12px 10px; white-space: normal; overflow-wrap: anywhere; line-height: 1.6; }
.compact-table .badge { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.compact-table th:last-child, .compact-table td:last-child { position: sticky; right: 0; z-index: 1; border-left: 1px solid var(--line); background: #fff; }
.compact-table th:last-child { z-index: 3; background: #eef3f1; }
.compact-table .table-actions .table-action { display: flex; width: 100%; min-width: 0; margin: 0; padding: 5px 7px; white-space: normal; line-height: 1.5; }
.compact-table .table-actions .table-action + .table-action { margin: 6px 0 0; }
.cell-preview { min-width: 0; }
.cell-preview-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; overflow-wrap: anywhere; white-space: pre-wrap; margin: 0; line-height: 1.65; }
.text-detail-button { min-height: 28px; margin-top: 5px; padding: 0 2px; color: var(--brand); background: transparent; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.text-detail-button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.dealer-group-layout { display: grid; grid-template-columns: minmax(320px, .8fr) minmax(0, 1.8fr); gap: 18px; align-items: start; }
.dealer-group-form { display: grid; gap: 15px; padding: 18px; border-radius: 11px; background: #f3f6f4; }
.dealer-group-form textarea { min-height: 220px; line-height: 1.65; }
.dealer-group-form p { margin: -4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.dealer-form-actions { display: flex; gap: 8px; }
.dealer-search { display: grid; gap: 7px; }
.dealer-search-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.dealer-search-controls select { grid-column: 1 / -1; }
.dealer-search-controls input, .dealer-search-controls select { margin-top: 0; }
.dealer-search-results { max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.dealer-search-results .dealer-search-tip { margin: 0; padding: 12px; }
.dealer-search-status { display: grid; gap: 5px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #f8faf9; }
.dealer-search-status span { font-size: 10px; line-height: 1.5; }
.dealer-search-status .success { color: var(--success); }
.dealer-search-status .error { color: var(--danger); }
.dealer-search-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 12px; border-bottom: 1px solid #edf0ef; }
.dealer-search-item:last-child { border-bottom: 0; }
.dealer-search-item strong { display: block; color: var(--ink); font-size: 12px; }
.dealer-search-item span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.dealer-search-item button { flex: 0 0 auto; }

.payee-layout, .rebate-method-layout { display: grid; grid-template-columns: minmax(300px, .65fr) minmax(580px, 1.35fr); gap: 18px; align-items: start; }
.payee-form, .rebate-method-form { display: grid; gap: 15px; padding: 18px; border-radius: 11px; background: #f3f6f4; }
.payee-form-actions, .rebate-method-form-actions { display: flex; gap: 8px; }
.checkbox-field { display: flex; align-items: center; gap: 9px; color: var(--ink); }
.checkbox-field input { width: 17px; height: 17px; margin: 0; }
.calculation-preview { padding: 11px 12px; border-radius: 8px; color: var(--brand); background: var(--brand-soft); font-size: 12px; line-height: 1.6; }

.edit-dialog { width: min(620px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 16px; color: var(--ink); background: #fff; box-shadow: 0 28px 90px rgba(0, 0, 0, .28); }
.edit-dialog::backdrop { background: rgba(8, 29, 34, .56); backdrop-filter: blur(3px); }
.edit-dialog form { padding: 25px; }
.edit-dialog .dialog-body { padding: 25px; }
.replacement-help { margin-top: 16px; padding: 13px 15px; border-radius: 9px; color: var(--muted); background: #f3f6f4; font-size: 12px; line-height: 1.7; }
.replacement-help p { margin: 0; }
.replacement-help p + p { margin-top: 7px; }
.dialog-heading { display: flex; align-items: start; justify-content: space-between; }
.dialog-heading .kicker { margin: 0 0 4px; }
.dialog-heading h2 { margin: 0; font-size: 22px; }
.icon-button { min-width: 36px; min-height: 36px; padding: 0; color: var(--muted); background: #eef2f0; font-size: 24px; font-weight: 400; }
.edit-customer { margin: 13px 0 20px; padding: 10px 12px; border-radius: 7px; color: var(--brand); background: var(--brand-soft); font-size: 13px; }
.edit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.edit-grid .wide { grid-column: 1 / -1; }
.dialog-actions { display: flex; justify-content: end; gap: 9px; margin-top: 22px; }
.policy-question-fields { display: grid; gap: 16px; max-height: 52vh; overflow: auto; padding-right: 4px; }
.policy-question-item { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #f7f9f8; }
.policy-question-item strong { display: block; margin-bottom: 7px; line-height: 1.55; }
.policy-question-item p { margin: 0 0 9px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.policy-question-item textarea { min-height: 88px; }

.text-detail-dialog { width: min(900px, calc(100vw - 32px)); }
.text-detail-dialog .dialog-body { display: flex; flex-direction: column; max-height: calc(100dvh - 48px); }
.text-detail-dialog .dialog-heading { gap: 18px; }
.text-detail-dialog .icon-button { flex: 0 0 auto; }
.text-detail-dialog h2, .text-detail-dialog .edit-customer { overflow-wrap: anywhere; }
.text-detail-dialog .edit-customer { white-space: pre-wrap; line-height: 1.65; margin-bottom: 14px; }
.text-detail-content { min-height: 0; overflow: auto; padding: 3px 12px 3px 3px; line-height: 1.85; font-size: 14px; overflow-wrap: anywhere; white-space: pre-wrap; }
.text-detail-content p { margin: 0; }
.text-detail-content ol { margin: 0; padding-left: 28px; }
.text-detail-content li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.text-detail-content li:last-child { border-bottom: 0; }
.text-detail-dialog .dialog-actions { margin-top: 16px; }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 20; max-width: 430px; padding: 13px 18px; border-radius: 9px; color: #fff; background: #233a42; box-shadow: 0 10px 35px rgba(0, 0, 0, .24); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s; }
.toast.show { opacity: 1; transform: none; }
.toast.error { background: var(--danger); }

.daily-summary { margin: 0 0 22px; padding: 18px; border: 1px solid var(--line); border-radius: 11px; background: #f8faf9; }
.daily-summary-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 15px; }
.daily-summary h3 { margin: 0 0 6px; font-size: 16px; }
.daily-summary-heading p, .daily-status { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.daily-date-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.daily-date-form label { min-width: 145px; }
.daily-amounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.daily-amounts article { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.daily-amounts span { display: block; color: var(--brand); font-size: 13px; }
.daily-amounts strong { display: block; margin: 9px 0; color: var(--brand-dark); font-size: clamp(19px, 2vw, 27px); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.daily-amounts small { color: var(--muted); font-size: 11px; line-height: 1.6; }
.daily-status { margin-top: 10px; min-height: 20px; }
.daily-funder-breakdown { margin-top: 15px; overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; background: white; }
.daily-funder-table { width: 100%; min-width: 480px; border-collapse: collapse; }
.daily-funder-table caption { padding: 13px 16px; text-align: left; color: var(--brand-dark); font-size: 13px; font-weight: 700; }
.daily-funder-table th, .daily-funder-table td { padding: 11px 16px; text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; }
.daily-funder-table th:first-child { text-align: left; }
.daily-funder-table thead th { color: var(--muted); background: #f0f5f3; }
.daily-funder-table tbody th { color: var(--brand-dark); }
.daily-funder-table tbody tr + tr { border-top: 1px solid var(--line); }
.filter-label { color: var(--muted); font-size: 12px; font-weight: 700; }
.funder-multiselect { position: relative; margin-top: 7px; }
.funder-multiselect summary { display: flex; align-items: center; justify-content: space-between; height: 41px; padding: 0 12px; border: 1px solid #cbd5d1; border-radius: 8px; background: white; cursor: pointer; list-style: none; font-size: 13px; }
.funder-multiselect summary::-webkit-details-marker { display: none; }
.funder-multiselect summary::after { content: "⌄"; margin-left: 8px; color: var(--muted); }
.funder-multiselect summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.funder-options { position: absolute; top: calc(100% + 5px); left: 0; z-index: 12; width: 100%; min-width: 190px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: 0 8px 24px rgba(23, 37, 45, .14); }
.funder-options label { display: flex; align-items: center; gap: 9px; padding: 9px 8px; cursor: pointer; color: var(--ink); font-size: 13px; }
.funder-options label:hover { background: var(--brand-soft); border-radius: 5px; }
.funder-options input { width: 16px; height: 16px; margin: 0; padding: 0; accent-color: var(--brand); }
.funder-options button { width: 100%; min-height: 32px; padding: 5px 8px; text-align: left; color: var(--brand); background: var(--brand-soft); border-color: transparent; }
.funder-options small { display: block; padding: 7px 8px 3px; color: var(--muted); font-size: 11px; line-height: 1.5; }

@media (max-width: 1120px) {
  .compact-table th, .compact-table td { padding: 10px 6px; }
  .filters { grid-template-columns: repeat(3, minmax(145px, 1fr)); }
  .policy-form { grid-template-columns: repeat(2, 1fr); }
  .dealer-group-layout { grid-template-columns: 1fr; }
  .payee-layout, .rebate-method-layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .page-tabs { overflow-x: auto; padding-bottom: 5px; }
  .page-tab { flex: 0 0 auto; }
  .brand-block h1 { font-size: 18px; }
  .topbar { align-items: flex-start; }
  .health, #adminName { display: none; }
  main { width: 94vw; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .filters { grid-template-columns: 1fr 1fr; }
  #customerFilters .customer-date-start { grid-column: 1; }
  #customerFilters .filter-actions { grid-column: 1 / -1; }
  .panel { padding: 17px; }
  .customer-heading { align-items: flex-start; flex-direction: column; }
  .edit-grid { grid-template-columns: 1fr; }
  .edit-grid .wide { grid-column: auto; }
  .dealer-search-controls { grid-template-columns: 1fr; }
  .table-pager { align-items: flex-start; flex-wrap: wrap; }
  .pager-summary { width: 100%; }
  .customer-pager-overview { flex-basis: 100%; }
}

@media (max-width: 480px) {
  .customer-table { --customer-name-width: 88px; --customer-actions-width: 108px; }
  .customer-table th:last-child, .customer-table .customer-rebate-method { width: 120px; min-width: 120px; max-width: 120px; }
  .daily-summary { padding: 13px; }
  .daily-amounts { grid-template-columns: 1fr; }
  .daily-date-form { width: 100%; }
  .daily-date-form label { flex: 1; }
}

.customer-amendment-dialog { max-height: calc(100dvh - 32px); overflow: auto; }
.customer-amendment-dialog input[readonly] { background: #f0f3f2; color: var(--muted); }
.amendment-fields { margin: 0; padding: 0; border: 0; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.amendment-fields label { min-width: 0; }
.amendment-fields small { display: block; margin-top: 6px; font-weight: normal; line-height: 1.6; }
.amendment-help { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 0 0 18px; }
.amendment-status { min-height: 20px; margin: 12px 0 0; color: var(--danger); font-size: 12px; line-height: 1.7; }
@media (max-width: 480px) {
  .amendment-fields { grid-template-columns: 1fr; }
  .customer-amendment-dialog form { padding: 20px; }
}
