/* Domestic SAWIS 7 capture & review — scoped styles (Verdana + #83bb22 theme) */

.domestic-sales-tabbar {
  border-radius: 0.25rem;
}

.domestic-sales-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border: none;
  border-radius: 0;
  background: #fff;
  color: #5b594c;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
}

.domestic-sales-tab-btn:hover {
  color: #4a6b14;
  background: #f7fbf0;
  text-decoration: none;
}

.domestic-sales-tab-btn.is-active {
  background: #83bb22;
  color: #fff;
}

.domestic-sales-tab-btn.is-active:hover {
  background: #74a81d;
  color: #fff;
}

/* In-card filters — same spacing as exports Price Range */
.domestic-report-filters-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 300px;
  padding-block: 1rem;
  margin: 20px;
}


.domestic-page {
  max-height: calc(100vh - 162px);
  overflow: auto;
  padding: 1rem 1.25rem 1.5rem;
}

/* Producer capture ??? card shell (matches admin portal) */
.domestic-capture-card {
  font-family: Verdana, sans-serif;
  color: #5b594c;
}

.domestic-capture-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: calc(100vh - 180px);
  overflow: auto;
}

.domestic-capture-card .domestic-context {
  background: transparent;
  border: none;
  padding: 0;
}

.domestic-capture-card .domestic-page-foot {
  border: none;
  border-top: 1px solid #eaeef2;
  border-radius: 0;
  margin-top: 0.75rem;
  padding: 0.85rem 0 0;
  background: transparent;
}

.domestic-capture-body .domestic-drilldown {
  flex: 1;
}

.domestic-capture-panel,
.domestic-capture-modal {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Capture panel inside admin modal */
.domestic-capture-modal {
  position: relative;
  padding: 0.25rem 0.5rem 0.5rem;
  max-height: calc(94dvh - 2rem);
  overflow: auto;
}

.domestic-capture-modal .domestic-drilldown {
  height: 520px;
  max-height: calc(94dvh - 220px);
}

.domestic-capture-modal .domestic-context {
  background: transparent;
  border: none;
  padding: 0;
}

.domestic-capture-modal .domestic-page-foot {
  border: none;
  border-top: 1px solid #eaeef2;
  border-radius: 0;
  margin-top: 0.75rem;
  padding: 0.85rem 0 0;
  background: transparent;
}

.domestic-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.domestic-page-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #5b594c;
  margin: 0;
}

.domestic-page-sub {
  font-size: 0.7rem;
  color: #5a594b;
  margin: 0.15rem 0 0;
}

.domestic-status-pill {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border-radius: 14px;
  white-space: nowrap;
  border: 1px solid transparent;
}

/* Open / New / Draft — blue */
.domestic-status-pill--open {
  color: #0a5e92;
  background: #dceffb;
  border-color: #b5d9f0;
}

/* Submitted — yellow */
.domestic-status-pill--submitted {
  color: #8a6313;
  background: #fff3da;
  border-color: #ffd98a;
}

/* Approved — green */
.domestic-status-pill--approved {
  color: #1d6b41;
  background: #eafaf0;
  border-color: #a9e3c2;
}

/* Synced — gray */
.domestic-status-pill--synced {
  color: #5b594c;
  background: #e9ecef;
  border-color: #ced4da;
}

/* Cancelled — red */
.domestic-status-pill--cancelled {
  color: #a32c22;
  background: #fbe2e0;
  border-color: #f5c2c0;
}

.domestic-status-pill--lg {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  letter-spacing: 0.08em;
}

/* This return’s form — status colour on the left edge */
.domestic-form-shell {
  border: 1px solid #d9d9d9;
  border-left-width: 5px;
  border-radius: 0.375rem;
  background: #fff;
  padding: 0.75rem 0.85rem 0.85rem;
  margin-bottom: 0.75rem;
}

.domestic-form-shell--open {
  border-left-color: #0a5e92;
  background: #f7fbfe;
}

.domestic-form-shell--submitted {
  border-left-color: #c9a227;
  background: #fffdf6;
}

.domestic-form-shell--approved {
  border-left-color: #1d6b41;
  background: #f5fbf7;
}

.domestic-form-shell--synced {
  border-left-color: #8a887c;
  background: #f7f7f6;
}

.domestic-form-shell--none {
  border-left-color: #ced4da;
  background: #fafafa;
}

.domestic-form-status__empty {
  font-size: 0.85rem;
  color: #8a887c;
}

.domestic-form-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  padding: 2rem 1.5rem;
  text-align: center;
  background: #fff;
  border: 1px solid #eaeef2;
  border-radius: 0.375rem;
}

.domestic-form-empty p {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: #5b594c;
  max-width: 28rem;
  line-height: 1.45;
}

.domestic-form-shell .domestic-context {
  margin-bottom: 0.65rem;
}

.domestic-form-shell .domestic-wine-type-totals {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0.35rem 0 0.75rem;
  margin-bottom: 0.65rem;
  border-bottom: 1px solid #eaeef2;
}

.domestic-form-status__value {
  min-height: calc(1.5em + 0.5rem + 2px);
  display: flex;
  align-items: center;
}

.domestic-lead {
  font-size: 0.7rem;
  color: #5a594b;
  margin: 0 0 0.75rem;
  line-height: 1.45;
}

.domestic-context {
  --bs-gutter-x: 0.75rem;
  --bs-gutter-y: 0.5rem;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  margin-bottom: 0.75rem;
}

.domestic-context .form-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #5b594c;
  letter-spacing: normal;
  text-transform: none;
}

.domestic-context .form-select,
.domestic-context .form-control {
  color: #5b594c;
  border-color: #ced4da;
}

.domestic-context-field {
  flex: 1;
  min-width: 130px;
}

.domestic-context-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #5b594c;
  margin-bottom: 0.25rem;
}

.domestic-context-value {
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  color: #5b594c;
  min-height: calc(1.5em + 0.5rem + 2px);
  display: flex;
  align-items: center;
}

/* Capture — separate wine-type totals strip (above Step 1 / Step 2) */
.domestic-wine-type-totals {
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.75rem 0.75rem;
  background: #fff;
  border: 1px solid #eaeef2;
  border-radius: 0.375rem;
}

.domestic-wine-type-totals__title {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #83bb22;
}

.domestic-wine-type-totals__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem 0.75rem;
}

@media (max-width: 991.98px) {
  .domestic-wine-type-totals__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .domestic-wine-type-totals__grid {
    grid-template-columns: 1fr;
  }
}

.domestic-wine-type-totals__field .form-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #5b594c;
  line-height: 1.25;
}

.domestic-wine-type-totals__field .form-control {
  color: #5b594c;
  border-color: #ced4da;
}

.domestic-drilldown {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 0fr;
  align-items: stretch;
  height: 560px;
  max-height: calc(100vh - 300px);
  background: #f7f7f7;
  border: 1px solid #d9d9d9;
  border-radius: 0.375rem;
  overflow: hidden;
  transition: grid-template-columns 0.35s ease;
}

.domestic-drilldown.has-step2 {
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
}

.domestic-drilldown.review {
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
}

.domestic-pane {
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.domestic-pane--volumes {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-right: 1px solid #d9d9d9;
  background: #fff;
}

.domestic-drilldown:not(.has-step2):not(.review) .domestic-pane--volumes {
  border-right: none;
}

.domestic-pane--matrix,
.domestic-pane--totals {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto auto;
  min-width: 0;
  background: #f7f7f7;
}

.domestic-pane--matrix {
  opacity: 0;
  transform: translateX(24px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.35s ease;
}

.domestic-drilldown.has-step2 .domestic-pane--matrix {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.domestic-pane--matrix-empty {
  grid-template-rows: auto minmax(0, 1fr);
}

.domestic-matrix-empty-msg {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 1.5rem;
  text-align: center;
  color: #5a594b;
  font-size: 0.78rem;
  line-height: 1.45;
}

.domestic-pane-header {
  padding: 0.65rem 0.85rem 0.5rem;
  border-bottom: 1px solid #d9d9d9;
  background: #fafafa;
}

.domestic-pane-step {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6f9a13;
  margin-bottom: 0.15rem;
}

.domestic-pane-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #5b594c;
  margin: 0;
}

.domestic-pane-body {
  min-height: 0;
  overflow-x: auto;
  overflow-y: auto;
}

.domestic-pane--volumes .domestic-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.domestic-pane-foot {
  padding: 0.65rem 0.85rem;
  border-top: 1px solid #d9d9d9;
  background: #5b594c;
  color: #fff;
}

.domestic-pane-foot .label {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.75;
}

.domestic-pane-foot .value {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0.1rem 0 0.35rem;
}

.domestic-pane-foot .meta {
  font-size: 0.58rem;
  opacity: 0.85;
}

.domestic-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.62rem;
}

.domestic-table th,
.domestic-table td {
  border: none !important;
  border-bottom: 1px solid #d9d9d9 !important;
  min-width: unset !important;
  padding: 0.35rem 0.65rem !important;
  vertical-align: middle;
}

.domestic-table th {
  background: #fff;
  color: #5a594b;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.55rem;
  letter-spacing: 0.04em;
  border-bottom: 2px solid #d9d9d9 !important;
}

.domestic-table th.text-end,
.domestic-table td.text-end {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.domestic-table tr.group td {
  background: #f4f4f2;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5a594b;
}

.domestic-table tr.domestic-container-subhead td {
  background: #eef6dd;
  font-size: 0.58rem;
  font-weight: 700;
  color: #4a6b14;
  padding-top: 0.3rem !important;
  padding-bottom: 0.3rem !important;
}

.domestic-table tr.domestic-acc-row {
  cursor: pointer;
}

.domestic-table tr.domestic-acc-row:hover td {
  filter: brightness(0.97);
}

.domestic-acc-chevron {
  display: inline-block;
  width: 0.38rem;
  height: 0.38rem;
  margin-right: 0.45rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  vertical-align: 0.1rem;
  transition: transform 0.2s ease;
}

.domestic-acc-chevron.is-collapsed {
  transform: rotate(-45deg);
  vertical-align: 0.15rem;
}

.domestic-size-label {
  font-weight: 700;
  color: #3f3e35;
}

.domestic-table tr.selectable {
  cursor: pointer;
}

.domestic-table tr.selected td {
  background: #eef6dd;
}

.domestic-table tr.selected td:first-child {
  box-shadow: inset 3px 0 0 #83bb22;
}

.domestic-litres-input {
  display: inline-block;
  min-width: 52px;
  text-align: right;
  border-bottom: 1px solid #83bb22;
  padding: 1px 3px;
  font-variant-numeric: tabular-nums;
}

.domestic-table tr.selected .domestic-litres-input {
  font-weight: 700;
  color: #4a6b14;
}

.domestic-table.readonly .domestic-litres-input {
  border-bottom: none;
  font-weight: 600;
}

.domestic-badge {
  display: inline-block;
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 4px;
  vertical-align: middle;
}

.domestic-badge--ok {
  background: #eafaf0;
  color: #1d6b41;
  border: 1px solid #a9e3c2;
}

.domestic-badge--edit {
  background: #83bb22;
  color: #fff;
}

.domestic-badge--warn {
  background: #fff3da;
  color: #8a6313;
  border: 1px solid #ffd98a;
}

.domestic-matrix-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.65rem 0.85rem 0.4rem;
}

.domestic-crumb {
  font-size: 0.65rem;
  color: #5a594b;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.domestic-crumb:hover {
  color: #4a6b14;
}

.domestic-alloc-badge {
  font-size: 0.58rem;
  font-weight: 700;
  background: #5b594c;
  color: #fff;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
}

.domestic-filters {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  padding: 0 0.85rem 0.5rem;
}

.domestic-filter-chip {
  font-size: 0.58rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #d9d9d9;
  color: #5a594b;
  cursor: pointer;
  max-width: 100%;
  text-align: left;
  line-height: 1.25;
  white-space: normal;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.domestic-filter-chip:hover {
  border-color: #83bb22;
}

.domestic-filter-chip.active {
  background: #83bb22;
  border-color: #83bb22;
  color: #fff;
}

.domestic-filter-tag {
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #fff7e8;
  border: 1px solid #ffd98a;
  color: #7a5a12;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.domestic-matrix-scroll {
  min-height: 0;
  overflow-x: auto;
  overflow-y: auto;
  margin: 0 0.85rem;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: #fff;
}

.domestic-matrix-anim--next {
  animation: domestic-matrix-in-next 0.28s ease;
}

.domestic-matrix-anim--prev {
  animation: domestic-matrix-in-prev 0.28s ease;
}

@keyframes domestic-matrix-in-next {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes domestic-matrix-in-prev {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .domestic-drilldown,
  .domestic-pane--matrix,
  .domestic-filter-chip {
    transition: none;
  }

  .domestic-matrix-anim--next,
  .domestic-matrix-anim--prev {
    animation: none;
  }
}

.domestic-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.58rem;
  min-width: 760px;
}

.domestic-matrix-table th,
.domestic-matrix-table td {
  border: 1px solid #d9d9d9 !important;
  min-width: 48px !important;
  padding: 0.2rem 0.3rem !important;
  text-align: center;
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}

.domestic-matrix-table td:has(.domestic-matrix-input) {
  vertical-align: middle;
}

.domestic-table td:has(.domestic-litres-edit) {
  vertical-align: middle;
}

.domestic-matrix-table thead th {
  background: #fff;
  color: #5a594b;
  font-weight: 700;
  font-size: 0.5rem;
  white-space: nowrap;
}

.domestic-matrix-table th.group,
.domestic-matrix-table td.group {
  background: #eef6dd;
  color: #4a6b14;
  font-weight: 700;
  text-align: left;
  font-size: 0.55rem;
}

.domestic-matrix-table td.name {
  text-align: left;
  white-space: nowrap;
  font-weight: 700;
  color: #3f3e35;
}

.domestic-matrix-table td.code {
  color: #4a6b14;
  font-weight: 700;
}

.domestic-matrix-table td.total {
  background: #fafafa;
  font-weight: 700;
}

.domestic-recon {
  margin: 0.5rem 0.85rem 0;
  background: #eafaf0;
  border: 1px solid #a9e3c2;
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
  font-size: 0.6rem;
  color: #1d6b41;
  font-weight: 600;
}

.domestic-matrix-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.65rem 0.85rem;
  border-top: 1px solid #d9d9d9;
  background: #fff;
  margin-top: auto;
}

.domestic-matrix-foot .hint {
  font-size: 0.55rem;
  color: #5a594b;
  max-width: 220px;
  line-height: 1.35;
}

.domestic-matrix-foot .progress {
  font-size: 0.58rem;
  color: #5a594b;
  font-weight: 600;
}

.domestic-page-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 0.375rem;
  margin-top: 0.75rem;
}

.domestic-btn {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 0.375rem;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #5b594c;
}

.domestic-btn:disabled,
.domestic-btn--primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.domestic-btn--primary {
  background: #83bb22;
  border-color: #83bb22;
  color: #fff;
}

.domestic-btn--ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  font-size: 0.62rem;
  padding: 0.3rem 0.75rem;
}

.domestic-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.62rem;
  margin-top: 0.5rem;
}

.domestic-alert--ok {
  background: #eafaf0;
  border: 1px solid #a9e3c2;
  color: #1d6b41;
}

.domestic-alert--warn {
  background: #fff7e8;
  border: 1px solid #ffd98a;
  color: #7a5a12;
}

.domestic-submission-badge {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 12px;
  white-space: nowrap;
}

.domestic-submission-badge--submitted {
  background: #dceffb;
  color: #0a5e92;
}

.domestic-submission-badge--approved {
  background: #d6e8f3;
  color: #00507a;
}

.domestic-submission-badge--miss {
  background: #fbe2e0;
  color: #a32c22;
}

.domestic-meta {
  font-size: 0.65rem;
  color: #5a594b;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .domestic-drilldown {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(240px, 70vh);
    height: auto;
    max-height: none;
  }

  .domestic-drilldown.has-step2 {
    grid-template-rows: minmax(240px, 40vh) minmax(280px, 50vh);
  }

  .domestic-pane--volumes {
    border-right: none;
    border-bottom: 1px solid #d9d9d9;
  }

  .domestic-drilldown:not(.has-step2):not(.review) .domestic-pane--volumes {
    border-bottom: none;
  }

  .domestic-pane--matrix {
    transform: translateY(16px);
  }

  .domestic-drilldown.has-step2 .domestic-pane--matrix {
    transform: translateY(0);
  }

  .domestic-drilldown.review {
    grid-template-rows: minmax(240px, 40vh) minmax(280px, 50vh);
  }
}

/* Phase 6.2 ? capture controls, help, reconciliation */
.domestic-capture-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.domestic-capture-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.domestic-capture-close {
  border: none;
  background: none;
  color: #5a594b;
  padding: 0.35rem 0.5rem;
  line-height: 1;
}

.domestic-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.domestic-tab {
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #5a594b;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.75rem;
  border-radius: 0.375rem;
  cursor: pointer;
}

.domestic-tab.active {
  background: #83bb22;
  border-color: #83bb22;
  color: #fff;
}

.domestic-api-banner {
  font-size: 0.72rem;
  background: #fff8e6;
  border: 1px solid #f0d9a0;
  color: #7a5a10;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  margin-bottom: 0.65rem;
}

.domestic-context-select,
.domestic-litres-edit,
.domestic-matrix-input,
.domestic-help-input {
  width: 100%;
  font-size: 0.78rem;
  color: #5b594c;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 0.375rem;
  padding: 0.35rem 0.5rem;
  margin-bottom: 0.65rem;
}

.domestic-help-contact .domestic-btn {
  margin-top: 0.15rem;
}

.domestic-litres-edit {
  display: inline-block;
  max-width: 7rem;
  text-align: right;
  vertical-align: middle;
  margin: 0;
}

.domestic-matrix-input {
  display: block;
  width: 4.2rem;
  margin: 0 auto;
  text-align: right;
  padding: 0.15rem 0.25rem;
  font-size: 0.68rem;
  vertical-align: middle;
}

/* Non-zero capture values ? stand out from empty cells */
.domestic-value--nonzero,
.domestic-litres-edit.domestic-value--nonzero,
.domestic-matrix-input.domestic-value--nonzero {
  font-weight: 700;
  color: #2f2e28;
}

.domestic-litres-edit.domestic-value--nonzero,
.domestic-matrix-input.domestic-value--nonzero {
  border-color: #83bb22;
  background: #f7fbf0;
}

.domestic-recon--warn {
  background: #fff3da;
  color: #8a6313;
}

.domestic-workspace {
  display: block;
}

.domestic-workspace.help-open {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}


.domestic-badge--error {
  background: #fdecea;
  color: #a32c22;
}

.domestic-recon--warn {
  background: #fff3da;
  color: #8a6313;
  border-color: #f0d9a0;
}

.domestic-recon--error {
  background: #fdecea;
  color: #a32c22;
  border-color: #f5c2c0;
}

.domestic-recon-summary {
  font-size: 0.68rem;
  margin: 0.5rem 0 0.65rem;
  padding: 0.45rem 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid #d9d9d9;
  background: #f7f7f7;
  color: #5b594c;
}

.domestic-recon-summary--ok {
  background: #eafaf0;
  border-color: #a9e3c2;
  color: #1d6b41;
}

.domestic-recon-summary--warn {
  background: #fff3da;
  border-color: #f0d9a0;
  color: #8a6313;
}

.domestic-recon-summary--error {
  background: #fdecea;
  border-color: #f5c2c0;
  color: #a32c22;
}

.domestic-workspace.help-open .domestic-drilldown {
  flex: 1;
  min-width: 0;
}

.domestic-help-panel {
  flex: 0 0 280px;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 0.375rem;
  padding: 0.85rem;
  max-height: 70vh;
  overflow: auto;
}

.domestic-help-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}

.domestic-help-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #5b594c;
  margin: 0;
}

.domestic-help-close {
  border: none;
  background: transparent;
  font-size: 1.25rem;
  cursor: pointer;
  color: #5a594b;
}

.domestic-help-steps {
  font-size: 0.72rem;
  color: #5a594b;
  padding-left: 1.1rem;
  margin-bottom: 0.85rem;
}

.domestic-help-label {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: #5a594b;
  margin: 0.5rem 0 0.25rem;
}

.domestic-help-su,
.domestic-help-contact {
  font-size: 0.75rem;
  color: #5b594c;
  margin-bottom: 0.65rem;
  margin-top: 0.35rem;
}

.domestic-help-email {
  color: #6f9a13;
  font-size: 0.72rem;
}

.domestic-help-reject {
  background: #fde8e8;
  border: 1px solid #f5c2c2;
  color: #9b1c1c;
  padding: 0.5rem 0.65rem;
  border-radius: 0.375rem;
  font-size: 0.72rem;
  margin-bottom: 0.65rem;
}

.domestic-help-msg {
  font-size: 0.7rem;
  margin-top: 0.4rem;
  color: #5a594b;
}

.domestic-approval-box {
  margin: 0.75rem 0;
  max-width: 520px;
}

.domestic-past {
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 0.375rem;
  padding: 0.85rem;
}
