:root {
  --v2-listing-border: #dec3b3;
  --v2-listing-primary: #e5d6ce;
  --v2-listing-secondary: #f6efeb;
  --v2-listing-brown: #8a705d;
  --v2-listing-text: #4b4a48;
  --v2-listing-overdue: #ff808c;
}

.v2-listing-page {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0 auto;
  padding: 14px 18px 36px;
  background: #ffffff !important;
  background-image: none !important;
}

.v2-listing-page.v2-invoice-entry-page {
  padding: 14px 18px 36px;
}

.v2-listing-page > .v2-view-action-bar {
  margin: -12px -18px 18px;
}

.v2-horizontal-page-scroll {
  min-width: 0;
}

.v2-listing-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.v2-listing-toolbar-actions,
.v2-listing-filter-top-right,
.v2-listing-filter-actions,
.v2-listing-pagination-controls,
.v2-listing-clear-all-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.v2-listing-toolbar-button {
  display: inline-flex;
  min-height: 0;
  height: 34px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid var(--v2-listing-border);
  border-radius: 10px;
  color: var(--v2-listing-brown);
  font: 500 13px/1 Inter, system-ui, sans-serif;
  cursor: pointer;
  transition: background-color 180ms ease, box-shadow 180ms ease, border-color 180ms ease, color 180ms ease;
}

.v2-listing-toolbar-button svg,
.v2-listing-chip svg,
.v2-listing-page-button svg {
  width: 16px;
  height: 16px;
}

.v2-listing-toolbar-button--primary {
  min-width: 142px;
  background: var(--v2-listing-primary);
}

.v2-listing-toolbar-button--secondary {
  min-width: 108px;
  background: var(--v2-listing-secondary);
}

.v2-listing-toolbar-button:hover,
.v2-listing-toolbar-button:focus-visible,
.v2-listing-page-button:hover,
.v2-listing-page-button:focus-visible,
.v2-listing-text-action:hover,
.v2-listing-text-action:focus-visible,
.v2-listing-chip:hover,
.v2-listing-chip:focus-visible,
.v2-listing-kpi-card:hover,
.v2-listing-kpi-card:focus-visible,
.v2-listing-table th:hover,
.v2-listing-table th:focus-visible {
  box-shadow: 0 8px 22px rgba(138, 112, 93, 0.14), 0 0 0 4px rgba(222, 195, 179, 0.22);
}

.v2-listing-kpi-card.is-static {
  cursor: default;
}

.v2-listing-kpi-card.is-static:hover,
.v2-listing-kpi-card.is-static:focus-visible {
  box-shadow: none;
}

.v2-listing-more-wrap {
  position: relative;
}

.v2-listing-more-menu {
  top: calc(100% + 10px);
  right: 0;
  left: auto;
  width: 220px;
}

.v2-listing-hero {
  position: relative;
  min-height: 250px;
  margin-bottom: 10px;
}

.v2-listing-hero-copy {
  position: absolute;
  top: 56px;
  left: 22px;
  z-index: 1;
}

.v2-listing-hero-copy h1 {
  margin: 0;
  color: var(--v2-listing-brown);
  font-size: 28px;
  font-weight: 650;
  line-height: 1.1;
}

.v2-listing-hero-copy p {
  margin: 12px 0 0;
  color: var(--v2-listing-text);
  font-size: 17px;
  line-height: 1.35;
}

.v2-listing-inline-sakura,
.v2-listing-chip-sakura,
.v2-listing-pagination-sakura {
  width: 19px;
  height: 19px;
  object-fit: contain;
  vertical-align: middle;
}

.v2-listing-inline-sakura {
  margin-left: 8px;
}

.v2-listing-chip-sakura {
  margin-right: 2px;
}

.v2-listing-pagination-sakura {
  margin-left: 5px;
  align-self: center;
}

.v2-listing-hero-art {
  position: absolute;
  top: 0;
  right: 0;
  width: 74%;
  height: 250px;
  object-fit: contain;
  object-position: right center;
}

.v2-coa-listing-page .v2-listing-hero-copy {
  max-width: 28%;
}

.v2-listing-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.v2-listing-tabs {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 0 0 -5px 16px;
  position: relative;
  z-index: 1;
}

/* Shared listing tabs sit behind the following panel so its rounded top border
   continues across the tab bottoms, matching the V2 filter-action treatment. */
.v2-listing-tab {
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid var(--v2-listing-border);
  border-bottom-color: var(--v2-listing-border);
  border-radius: 10px 10px 0 0;
  background: #fffaf7;
  color: var(--v2-listing-brown);
  font: 600 14px/1 Inter, system-ui, sans-serif;
  cursor: pointer;
}

.v2-listing-tab.is-active {
  border: 2px solid var(--v2-listing-border);
  border-bottom-color: var(--v2-listing-border);
  background: var(--v2-listing-primary);
  box-shadow: inset 0 0 0 1.25px #dec3b3, 0 0 0 4px #f8f2ee;
}

.v2-listing-tab:hover,
.v2-listing-tab:focus-visible {
  box-shadow: inset 0 0 0 1.25px #dec3b3, 0 0 0 4px #f8f2ee;
}

.v2-view-action-split-wrap {
  display: inline-flex;
}

.v2-view-action-split-main {
  border-radius: 10px 0 0 10px !important;
  border-right-width: 0 !important;
}

.v2-view-action-split-toggle {
  min-width: 34px !important;
  padding-inline: 8px !important;
  border-radius: 0 10px 10px 0 !important;
}

.v2-view-action-split-toggle svg {
  width: 14px;
  height: 14px;
}

.v2-listing-kpi-card,
.v2-listing-filter-panel,
.v2-listing-table-card {
  border: 1px solid var(--v2-listing-border);
  border-radius: 18px;
  background: #ffffff;
}

.v2-listing-filter-panel {
  position: relative;
  z-index: 2;
}

.v2-listing-kpi-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  min-height: 118px;
  padding: 20px 24px;
  color: var(--v2-listing-text);
  text-align: left;
  cursor: pointer;
}

.v2-listing-kpi-card.is-active {
  border-width: 3px;
  box-shadow: 0 8px 22px rgba(138, 112, 93, 0.14), 0 0 0 4px rgba(236, 222, 214, 0.9);
}

.v2-listing-kpi-card.is-active:focus-visible {
  box-shadow: 0 8px 22px rgba(138, 112, 93, 0.14), 0 0 0 4px rgba(236, 222, 214, 0.9);
}

.v2-listing-kpi-icon {
  display: grid;
  width: 63px;
  height: 63px;
  place-items: center;
  border-radius: 50%;
}

.v2-listing-kpi-icon svg {
  width: 30px;
  height: 30px;
}

.v2-listing-kpi-icon.is-blue {
  background: #eaf3ff;
  color: #5c9ee8;
}

.v2-listing-kpi-icon.is-yellow {
  background: #fff8dd;
  color: #f0bb2b;
}

.v2-listing-kpi-icon.is-green {
  background: #e6f8ee;
  color: #5ec99c;
}

.v2-listing-kpi-copy {
  display: grid;
  gap: 6px;
}

.v2-listing-kpi-copy strong,
.v2-listing-table th,
.v2-listing-field > span:first-child {
  color: var(--v2-listing-brown);
  font-weight: 650;
}

.v2-listing-kpi-copy strong {
  font-size: 17px;
  white-space: nowrap;
}

.v2-listing-kpi-value {
  color: var(--v2-listing-brown);
  font-size: 24px;
  font-weight: 650;
  line-height: 1.05;
}

.v2-listing-kpi-copy small {
  color: var(--v2-listing-text);
  font-size: 15px;
}

.v2-listing-kpi-arrow {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #b79d87;
}

.v2-listing-filter-panel {
  padding: 14px 22px 16px;
}

.v2-listing-filter-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.v2-listing-search {
  position: relative;
  display: block;
}

.v2-search-clear {
  position: absolute;
  top: 50%;
  right: 18px;
  z-index: 2;
  display: grid;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  aspect-ratio: 1 / 1;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(222, 195, 179, 0.14);
  color: #8a705d;
  transform: translateY(-50%);
  cursor: pointer;
  line-height: 0;
  overflow: hidden;
}

.v2-search-clear svg {
  width: 11px;
  height: 11px;
  stroke-width: 2.35;
}

.v2-search-clear:hover,
.v2-search-clear:focus-visible {
  background: rgba(222, 195, 179, 0.18);
  outline: 0;
}

.v2-search-clear[hidden] {
  display: none !important;
}

.v2-listing-search .v2-invoice-control,
.v2-listing-field .v2-invoice-control,
.v2-listing-date-display {
  height: 40px;
  border-color: var(--v2-listing-border) !important;
  border-radius: 14px;
  background: #ffffff !important;
  color: var(--v2-listing-text);
  font: 400 14px/1 Inter, system-ui, sans-serif;
}

.v2-listing-page .v2-status-checkbox-option span {
  font-weight: 400;
}

.v2-listing-page .v2-status-checkbox-option:has(input:checked) span {
  font-weight: 550;
}

.v2-listing-page .v2-status-checkbox-option input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  padding: 0;
  border: 1.75px solid #dec3b3 !important;
  border-radius: 5px !important;
  background: #ffffff !important;
  outline: none !important;
}

.v2-listing-page .v2-status-checkbox-option input:focus,
.v2-listing-page .v2-status-checkbox-option input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.v2-listing-search .v2-invoice-control {
  padding-left: 62px;
  padding-right: 18px;
}

.v2-listing-search .v2-invoice-control::placeholder,
.v2-listing-field input::placeholder {
  color: #7d7b78;
}

.v2-listing-search .v2-invoice-control::-webkit-search-decoration,
.v2-listing-search .v2-invoice-control::-webkit-search-cancel-button,
.v2-listing-search .v2-invoice-control::-webkit-search-results-button,
.v2-listing-search .v2-invoice-control::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  color: #dec3b3;
}

.v2-listing-search .v2-invoice-control::-ms-clear,
.v2-listing-search .v2-invoice-control::-ms-reveal {
  display: none;
  width: 0;
  height: 0;
}

.v2-listing-search .v2-invoice-control {
  padding-right: 42px;
}

.v2-listing-search-icon {
  position: absolute;
  top: 50%;
  left: 20px;
  z-index: 1;
  display: grid;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  color: var(--v2-listing-brown);
}

.v2-listing-search-icon svg {
  width: 24px;
  height: 24px;
}

.v2-listing-field {
  position: relative;
  display: grid;
  gap: 8px;
}

.v2-listing-field > span:first-child {
  font-size: 13px;
}

.v2-listing-status-field {
  min-width: 220px;
}

.v2-listing-status-field .v2-select-wrap,
.v2-listing-pagination-select .v2-select-wrap {
  display: block;
}

.v2-listing-page .v2-native-select-hidden {
  display: none !important;
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.v2-listing-field .v2-custom-select-trigger,
.v2-listing-pagination-select .v2-custom-select-trigger {
  border-color: var(--v2-listing-border);
  border-radius: 14px;
  color: var(--v2-listing-text);
  font: 400 14px/1.25 Inter, system-ui, sans-serif;
}

.v2-listing-pagination-select .v2-custom-select-menu {
  top: auto;
  bottom: calc(100% + 8px);
  z-index: 400;
}

.v2-listing-field .v2-select-wrap select,
.v2-listing-pagination-select .v2-select-wrap select {
  height: 40px;
}

.v2-listing-filter-top-right .v2-view-action,
.v2-listing-filter-actions .v2-view-action {
  width: 136px;
  height: 40px;
  min-height: 40px;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 16px;
  padding-right: 16px;
  font: 600 14px/1 Inter, system-ui, sans-serif;
}

.v2-listing-filter-top-right .v2-view-action > span,
.v2-listing-filter-actions .v2-view-action > span {
  line-height: 1;
  font-weight: 600;
}

.v2-listing-more-filters {
  width: 136px;
  min-width: 136px;
  height: 40px;
}

.v2-listing-filter-top-right .v2-custom-select-trigger,
.v2-listing-filter-top-right .v2-custom-select-value {
  line-height: 1.35;
}

.v2-listing-filter-top-right .v2-status-multi-select {
  width: 170px;
  min-width: 170px;
}

.v2-listing-filter-top-right .v2-status-checkbox-option span {
  white-space: nowrap;
}

.v2-listing-field .v2-custom-select-menu {
  border-color: var(--v2-listing-border);
  border-radius: 14px;
}

.v2-listing-date-display {
  padding: 0 12px;
}

.v2-listing-money-input {
  text-align: left;
}

.v2-listing-more-filters-panel {
  margin-top: 18px;
}

.v2-listing-filter-grid {
  display: grid;
  gap: 18px;
}

.v2-listing-filter-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 1.5fr) minmax(0, 1.5fr);
  gap: 40px;
  align-items: end;
}

.v2-listing-filter-row-label {
  padding-bottom: 12px;
  color: var(--v2-listing-brown);
  font: 400 16px/1.2 Inter, system-ui, sans-serif;
}

.v2-listing-filter-actions {
  justify-content: flex-end;
  margin-top: 18px;
}

.v2-listing-text-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 0;
  background: transparent;
  color: var(--v2-listing-brown);
  font: 500 14px/1.1 Inter, system-ui, sans-serif;
  cursor: pointer;
  padding: 0;
}

.v2-listing-text-action.is-large {
  font-size: 14px;
}

.v2-listing-text-action::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 0;
  border-bottom: 1.75px solid var(--v2-listing-border);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  will-change: transform, opacity;
  transition: opacity 160ms ease, transform 160ms ease;
}

.v2-listing-text-action:hover::after,
.v2-listing-text-action:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.v2-listing-text-action:hover,
.v2-listing-text-action:focus-visible {
  box-shadow: none;
}

.v2-listing-active-filters {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(222, 195, 179, 0.8);
}

.v2-listing-chip-row {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 10px 26px;
}

.v2-listing-chip {
  display: inline-flex;
  min-height: 0;
  align-items: center;
  gap: 12px;
  padding: 4px 12px;
  border: 1px solid var(--v2-listing-border);
  border-radius: 999px;
  background: var(--v2-listing-secondary);
  color: var(--v2-listing-brown);
  font: 400 12px/1.1 Inter, system-ui, sans-serif;
  cursor: pointer;
}

.v2-listing-chip-close {
  display: grid;
  width: 12px;
  height: 12px;
  place-items: center;
}

.v2-listing-table-card {
  overflow: visible;
  margin-top: 16px;
}

.v2-listing-bulk-action {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  padding: 14px 20px;
  border: 1px solid var(--v2-listing-border);
  border-radius: 18px;
  box-shadow: 0 0 0 6px #fff7dc;
  background: #fcfaf7;
  color: var(--v2-listing-brown);
}

.v2-listing-bulk-action-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #f0bb2b;
  border-radius: 50%;
  color: #f0bb2b;
}

.v2-listing-bulk-action-icon svg { width: 18px; height: 18px; }

.v2-listing-bulk-action-copy { display: grid; gap: 3px; }
.v2-listing-bulk-action-copy strong { font-size: 16px; }
.v2-listing-bulk-action-copy span,
.v2-listing-bulk-action-summary { font-size: 14px; font-weight: 400; }
.v2-listing-bulk-action-actions { display: flex; align-items: center; gap: 12px; }
.v2-listing-bulk-action-actions .v2-view-action { min-width: 132px; }

.v2-listing-table .v2-listing-checkbox {
  display: grid;
  margin: 0 auto;
}

/* Allocation tables scroll inside this card. Clip the table surface to the
   card's existing rounded border so its wide header cannot cover a corner at
   narrow viewport widths. */
.v2-allocation-table-card {
  overflow: hidden;
}

.v2-listing-table-wrap {
  overflow: visible;
  width: 100%;
  border-radius: inherit;
}

.v2-listing-table-scroll {
  overflow-x: auto;
  overflow-y: visible;
  width: 100%;
  max-width: 100%;
  border-radius: 0;
  -webkit-overflow-scrolling: touch;
}

.v2-listing-table-wrap.v2-scrollbar-soft {
  scrollbar-gutter: auto;
}

.v2-listing-table {
  width: max(100%, 1200px);
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
}

.v2-bank-transaction-listing .v2-listing-table {
  width: 100%;
}

@media (min-width: 900px) {
  .v2-bank-transaction-listing .v2-listing-table {
    min-width: 0;
  }

  .v2-bank-transaction-listing .v2-listing-table th,
  .v2-bank-transaction-listing .v2-listing-table td {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .v2-bank-transaction-listing .v2-listing-table th,
  .v2-bank-transaction-listing .v2-listing-table td {
    box-sizing: border-box;
  }

  .v2-bank-transaction-listing .v2-listing-table thead th:nth-of-type(1), .v2-bank-transaction-listing .v2-listing-table tbody td:nth-of-type(1) { width: 110px; }
  .v2-bank-transaction-listing .v2-listing-table thead th:nth-of-type(2), .v2-bank-transaction-listing .v2-listing-table tbody td:nth-of-type(2) { width: 110px; }
  .v2-bank-transaction-listing .v2-listing-table thead th:nth-of-type(3), .v2-bank-transaction-listing .v2-listing-table tbody td:nth-of-type(3) { width: 85px; }
  .v2-bank-transaction-listing .v2-listing-table thead th:nth-of-type(4), .v2-bank-transaction-listing .v2-listing-table tbody td:nth-of-type(4) { width: 150px; }
  .v2-bank-transaction-listing .v2-listing-table thead th:nth-of-type(5), .v2-bank-transaction-listing .v2-listing-table tbody td:nth-of-type(5) { width: 280px; }
  .v2-bank-transaction-listing .v2-listing-table thead th:nth-of-type(6), .v2-bank-transaction-listing .v2-listing-table tbody td:nth-of-type(6) { width: 120px; }
  .v2-bank-transaction-listing .v2-listing-table thead th:nth-of-type(7), .v2-bank-transaction-listing .v2-listing-table tbody td:nth-of-type(7) { width: 100px; }
  .v2-bank-transaction-listing .v2-listing-table thead th:nth-of-type(8), .v2-bank-transaction-listing .v2-listing-table tbody td:nth-of-type(8) { width: 110px; }
  .v2-bank-transaction-listing .v2-listing-table thead th:nth-of-type(9), .v2-bank-transaction-listing .v2-listing-table tbody td:nth-of-type(9) { width: 110px; }
}

.v2-listing-table th,
.v2-listing-table td {
  padding: 14px 10px;
  border-bottom: 1px solid #dec3b3;
  vertical-align: middle;
  text-align: left;
}

.v2-listing-table tbody tr,
.v2-listing-table tbody tr:hover,
.v2-listing-table .v2-listing-empty-state-row {
  background: #ffffff !important;
}

.v2-listing-account-cell {
  display: -webkit-box;
  max-width: 25ch;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.v2-listing-table thead tr,
.v2-listing-table thead th {
  background: #fcfaf7 !important;
}

.v2-listing-table thead th {
  border-bottom: 1px solid #dec3b3 !important;
}

.v2-listing-table thead th:first-child {
  border-top-left-radius: 18px;
}

.v2-listing-table thead th:last-child {
  border-top-right-radius: 18px;
}

.v2-listing-table th[data-sort-column="customer_name"] .v2-listing-table-label {
  margin-left: 32px;
}

.v2-listing-table th {
  white-space: nowrap;
  background-color: #fcfaf7 !important;
  color: #8a705d !important;
  font: 600 14px/1.1 Inter, system-ui, sans-serif !important;
  letter-spacing: 0 !important;
  cursor: pointer;
}

.v2-listing-table th:hover,
.v2-listing-table th:focus-visible {
  box-shadow: none !important;
  outline: 0;
}

.v2-listing-table-label {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}

.v2-listing-table-label::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  border-bottom: 1.75px solid var(--v2-listing-border);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

.v2-listing-table th:hover .v2-listing-table-label::after,
.v2-listing-table th:focus-visible .v2-listing-table-label::after {
  opacity: 1;
  transform: scaleX(1);
}

.v2-listing-table td {
  color: var(--v2-listing-text);
  font-size: 14px;
  line-height: 1.35;
  white-space: nowrap;
}

.v2-listing-page .v2-listing-table thead th:nth-of-type(1),
.v2-listing-page .v2-listing-table tbody td:nth-of-type(1) {
  width: 10%;
}

.v2-listing-page .v2-listing-table thead th:nth-of-type(2),
.v2-listing-page .v2-listing-table tbody td:nth-of-type(2) {
  width: 24%;
}

.v2-listing-page .v2-listing-table thead th:nth-of-type(3),
.v2-listing-page .v2-listing-table tbody td:nth-of-type(3),
.v2-listing-page .v2-listing-table thead th:nth-of-type(4),
.v2-listing-page .v2-listing-table tbody td:nth-of-type(4) {
  width: 10%;
}

.v2-listing-page .v2-listing-table thead th:nth-of-type(5),
.v2-listing-page .v2-listing-table tbody td:nth-of-type(5),
.v2-listing-page .v2-listing-table thead th:nth-of-type(6),
.v2-listing-page .v2-listing-table tbody td:nth-of-type(6) {
  width: 10%;
}

.v2-listing-page .v2-listing-table thead th:nth-of-type(7),
.v2-listing-page .v2-listing-table tbody td:nth-of-type(7) {
  width: 14%;
}

.v2-listing-page .v2-listing-table thead th:nth-of-type(8),
.v2-listing-page .v2-listing-table tbody td:nth-of-type(8) {
  width: 12%;
}

.v2-listing-page .v2-listing-table thead th:nth-of-type(1),
.v2-listing-page .v2-listing-table tbody td:nth-of-type(1) {
  padding-left: 14px;
  padding-right: 2px;
}

.v2-listing-page .v2-listing-table thead th:nth-of-type(3),
.v2-listing-page .v2-listing-table tbody td:nth-of-type(3),
.v2-listing-page .v2-listing-table thead th:nth-of-type(4),
.v2-listing-page .v2-listing-table tbody td:nth-of-type(4) {
  padding-left: 6px;
  padding-right: 2px;
}

.v2-listing-page .v2-listing-table thead th:nth-of-type(5),
.v2-listing-page .v2-listing-table tbody td:nth-of-type(5),
.v2-listing-page .v2-listing-table thead th:nth-of-type(6),
.v2-listing-page .v2-listing-table tbody td:nth-of-type(6) {
  padding-left: 6px;
  padding-right: 2px;
}

.v2-listing-page .v2-listing-table thead th:nth-of-type(7),
.v2-listing-page .v2-listing-table tbody td:nth-of-type(7) {
  padding-left: 6px;
  padding-right: 2px;
}

.v2-listing-page .v2-listing-table thead th:nth-of-type(8),
.v2-listing-page .v2-listing-table tbody td:nth-of-type(8) {
  padding-left: 6px;
  padding-right: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v2-listing-page .v2-listing-table tbody td:last-child {
  padding-right: 28px;
}

.v2-listing-row {
  cursor: pointer;
  transition: background-color 160ms ease;
}

.v2-listing-table tbody .v2-listing-row {
  box-shadow: none;
}

.v2-listing-table tbody .v2-listing-row td {
  border-bottom: 1px solid #dec3b3 !important;
}

.v2-listing-table-scroll:has(+ .v2-listing-pagination) .v2-listing-row:last-child td {
  border-bottom: 0 !important;
}

.v2-listing-row:hover,
.v2-listing-row:focus-visible {
  background: #f6efeb !important;
  outline: 0;
}

.v2-listing-row:has(.v2-allocation-checkbox:checked) {
  background: #eee3dc !important;
}

.v2-listing-row:has(.v2-allocation-checkbox:checked) td {
  color: var(--v2-listing-text);
  font-weight: 550;
}

.v2-allocation-table-card .v2-listing-table tbody .v2-listing-row:last-child td {
  border-bottom: 0 !important;
}

.v2-allocation-amount {
  width: 132px;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
}

.v2-listing-pagination.v2-allocation-table-footer {
  justify-content: flex-start;
  padding-bottom: 18px;
  border-top: 1px solid #dec3b3;
}

.v2-listing-row:not(.is-interactive) {
  cursor: default;
}

.v2-listing-row:not(.is-interactive):hover {
  background: transparent !important;
}

/* Empty states are informational surfaces, not interactive table rows. */
.v2-listing-table tbody tr:has(.v2-empty-state),
.v2-listing-table tbody tr:has(.v2-empty-state):hover,
.v2-listing-table tbody tr:has(.v2-empty-state) td,
.v2-listing-table tbody tr:has(.v2-empty-state):hover td,
.v2-empty-state,
.v2-empty-state:hover {
  background: transparent !important;
  box-shadow: none !important;
  cursor: default;
}

.v2-listing-table tfoot td {
  border-bottom: 0;
  background: #ffffff;
  color: #8a705d;
  font: 650 14px/1.35 Inter, system-ui, sans-serif;
}

.v2-listing-table tfoot td:last-child {
  padding-right: 14px;
}

.v2-listing-table tfoot .v2-journal-entries-total-value {
  text-align: right;
}

.v2-listing-table td.is-strong {
  color: var(--v2-listing-brown);
  font: 600 14px/1.35 Inter, system-ui, sans-serif;
}

.v2-listing-customer-cell,
.v2-listing-due-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.v2-listing-customer-cell {
  min-width: 0;
  align-items: flex-start;
}

.v2-listing-customer-cell > span:last-child {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.25;
}

.v2-listing-wrap-cell {
  display: block;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.25;
}

.v2-journal-listing-page .v2-listing-filter-panel {
  border-radius: 18px;
}

.v2-journal-repeating-menu {
  min-width: 210px;
}

.v2-journal-repeating-menu .v2-add-new-menu-item {
  justify-content: center;
}

.v2-journal-listing-page .v2-listing-table {
  min-width: 1040px;
}

.v2-listing-due-cell {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.v2-listing-due-cell small {
  color: var(--v2-listing-overdue);
  font-size: 14px;
  line-height: 1.1;
}

.v2-listing-customer-badge {
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #fdeaf1;
  color: #d39aa9;
  font-size: 12px;
}

.v2-listing-empty-row {
  padding: 36px 18px !important;
  color: var(--v2-listing-brown) !important;
  text-align: center;
}

.v2-listing-empty-row.is-error {
  color: #b91c1c !important;
}

.v2-listing-empty-state-row {
  padding: 28px 18px !important;
}

.v2-listing-empty-state-row,
.v2-listing-empty-state-row td {
  border-bottom: 0 !important;
}

.v2-listing-empty-state-row:hover,
.v2-listing-empty-state-row:focus-visible,
.v2-listing-empty-state-row:hover td,
.v2-listing-empty-state-row:focus-visible td {
  background: transparent !important;
  outline: 0;
}

.v2-listing-loading-row,
.v2-listing-loading-row td {
  border-bottom: 0 !important;
  background: transparent !important;
}

.v2-listing-sort-mark {
  display: inline-block;
  min-width: 8px;
  margin-left: 5px;
  color: var(--v2-listing-brown);
  font-size: 8.5px;
  vertical-align: middle;
}

.v2-listing-pagination,
#invoice-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 0;
  padding: 18px 22px 0;
}

.v2-listing-table-scroll + .v2-listing-pagination {
  border-top: 1px solid #dec3b3;
}

/* Compact import previews retain the canonical listing table styling while
   fitting all statement columns within the transaction-form page. */
.v2-listing-page .v2-listing-table-wrap > .v2-listing-pagination {
  padding-bottom: 18px;
}

.v2-listing-pagination-summary {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--v2-listing-brown);
  font: 400 14px/1.2 Inter, system-ui, sans-serif;
}

.v2-listing-pagination-summary-text {
  font-size: 14px;
}

.v2-listing-pagination-select {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--v2-listing-brown);
  font: 400 14px/1.2 Inter, system-ui, sans-serif;
}

.v2-listing-pagination-select-label {
  font-size: 14px;
  color: #8a705d;
  font-weight: 400;
}

.v2-listing-pagination-select .v2-custom-select-trigger {
  width: 78px;
  height: 40px;
}

.v2-listing-page-buttons {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.v2-listing-page-button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  aspect-ratio: 1 / 1;
  place-items: center;
  padding: 0;
  border: 1px solid var(--v2-listing-border);
  border-radius: 50%;
  background: #ffffff;
  color: var(--v2-listing-brown);
  font: 400 14px/1 Inter, system-ui, sans-serif;
  cursor: pointer;
  transition: background-color 180ms ease, box-shadow 180ms ease, border-color 180ms ease, color 180ms ease;
}

.v2-listing-page-button.is-active {
  background: var(--v2-listing-secondary);
  font-weight: 600;
}

.v2-listing-page-button:hover,
.v2-listing-page-button:focus-visible {
  border-color: #dec3b3;
  box-shadow: inset 0 0 0 var(--v2-form-control-focus-border-width, 1.25px) #dec3b3, 0 0 0 3px rgba(222, 195, 179, 0.22);
  outline: none;
}

.v2-listing-page-button-text {
  font-size: 14px;
  font-weight: inherit;
  line-height: 1;
}

.v2-listing-page-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
}

.v2-listing-filter-panel.is-collapsed .v2-listing-filter-actions {
  margin-top: 22px;
}

@media (max-width: 1100px) {
  .v2-listing-kpis,
  .v2-listing-filter-grid {
    grid-template-columns: 1fr;
  }

  .v2-listing-filter-top,
  .v2-listing-pagination,
  #invoice-pagination,
  .v2-listing-active-filters {
    display: grid;
    grid-template-columns: 1fr;
  }

  .v2-listing-filter-top-right,
  .v2-listing-filter-actions,
  .v2-listing-pagination-controls {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .v2-listing-filter-row {
    grid-template-columns: minmax(130px, 0.8fr) minmax(0, 1.5fr) minmax(0, 1.5fr);
    gap: 20px;
  }

  .v2-listing-hero {
    min-height: 310px;
  }

  .v2-listing-hero-copy {
    position: static;
    margin-top: 12px;
  }

  .v2-listing-hero-art {
    position: static;
    width: 100%;
    height: auto;
    margin-top: 16px;
  }
}

@media (max-width: 720px) {
  .v2-listing-page,
  .v2-listing-page.v2-invoice-entry-page {
    padding-left: 0;
    padding-right: 0;
  }

  .v2-listing-kpi-card {
    min-width: 0;
    min-height: 96px;
    gap: 14px;
    padding: 16px;
  }

  .v2-listing-kpi-icon {
    width: 52px;
    height: 52px;
  }

  .v2-listing-kpi-icon svg {
    width: 25px;
    height: 25px;
  }

  .v2-listing-kpi-copy {
    gap: 4px;
  }

  .v2-listing-kpi-copy strong {
    font-size: 15px;
  }

  .v2-listing-kpi-value {
    font-size: clamp(20px, 5.5vw, 24px);
  }

  .v2-listing-kpi-copy small {
    font-size: 14px;
  }

  .v2-listing-kpi-arrow {
    width: 30px;
    height: 30px;
  }

  .v2-listing-filter-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .v2-listing-filter-row-label {
    padding-bottom: 0;
  }

  .v2-listing-toolbar-actions,
  .v2-listing-filter-top-right,
  .v2-listing-filter-actions {
    width: 100%;
  }

  .v2-listing-toolbar-actions,
  .v2-listing-filter-top-right {
    justify-content: stretch;
  }

  .v2-listing-toolbar-button,
  .v2-listing-status-field,
  .v2-listing-more-filters,
  .v2-listing-toolbar-button--primary,
  .v2-listing-toolbar-button--secondary {
    width: 100%;
  }

  .v2-listing-filter-top-right .v2-status-multi-select {
    width: 100%;
    min-width: 0;
  }

  .v2-listing-filter-panel,
  .v2-listing-table-card {
    border-radius: 16px;
  }

  .v2-listing-page .v2-listing-table thead th:first-child {
    border-top-left-radius: 16px;
  }

  .v2-listing-page .v2-listing-table thead th:last-child {
    border-top-right-radius: 16px;
  }

  .v2-listing-table th,
  .v2-listing-table td {
    padding: 14px 12px;
  }
}

@media (max-width: 1199px) {
  .v2-horizontal-page-scroll,
  .v2-listing-page {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }

  .v2-horizontal-page-scroll {
    overflow-x: clip;
  }

  .v2-listing-table-scroll .v2-listing-table {
    width: max(100%, 1200px);
    min-width: 0;
    table-layout: fixed;
  }
}

@media (max-width: 1100px) {
  .v2-horizontal-page-scroll .v2-listing-hero {
    min-height: 0;
    grid-template-columns: 1fr;
    padding: 24px 18px 12px;
  }

  .v2-horizontal-page-scroll .v2-listing-hero-copy {
    position: relative;
    top: auto;
    left: auto;
    margin-top: 0;
    z-index: 1;
  }

  .v2-coa-listing-page .v2-listing-hero-copy {
    max-width: none;
  }

  .v2-horizontal-page-scroll .v2-listing-hero-copy h1 {
    font-size: clamp(22px, 3vw, 26px);
  }

  .v2-horizontal-page-scroll .v2-listing-hero-copy p {
    max-width: 360px;
    margin-top: 8px;
    font-size: clamp(14px, 1.8vw, 16px);
  }

  .v2-horizontal-page-scroll .v2-listing-hero-art {
    position: relative;
    top: auto;
    right: auto;
    width: min(100%, 520px);
    height: clamp(100px, 16vw, 150px);
    margin: 4px auto 0;
    object-fit: contain;
    object-position: center;
  }
}
.v2-product-listing-page input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.v2-product-listing-page input[type="number"]::-webkit-inner-spin-button,
.v2-product-listing-page input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.v2-product-listing-page .v2-listing-table {
  width: max(100%, 1275px);
}


.v2-invoice-entry-page .v2-listing-table thead th:nth-of-type(1),
.v2-invoice-entry-page .v2-listing-table tbody td:nth-of-type(1) {
  width: 16%;
}

.v2-invoice-entry-page .v2-listing-table thead th:nth-of-type(2),
.v2-invoice-entry-page .v2-listing-table tbody td:nth-of-type(2) {
  width: 27%;
}

.v2-invoice-entry-page .v2-listing-table thead th:nth-of-type(3),
.v2-invoice-entry-page .v2-listing-table tbody td:nth-of-type(3),
.v2-invoice-entry-page .v2-listing-table thead th:nth-of-type(4),
.v2-invoice-entry-page .v2-listing-table tbody td:nth-of-type(4) {
  width: 13%;
}

.v2-invoice-entry-page .v2-listing-table thead th:nth-of-type(5),
.v2-invoice-entry-page .v2-listing-table tbody td:nth-of-type(5),
.v2-invoice-entry-page .v2-listing-table thead th:nth-of-type(6),
.v2-invoice-entry-page .v2-listing-table tbody td:nth-of-type(6) {
  width: 14%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v2-bank-transaction-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.v2-bank-transaction-type svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--v2-listing-brown);
}

.v2-bank-upload-notice {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid #d8e9fb;
  border-radius: 14px;
  background: #fffdfa;
  color: #806b58;
}

.v2-bank-upload-notice > svg,
.v2-bank-upload-notice > span > svg {
  flex: 0 0 auto;
  color: #5aa7f4;
}

.v2-bank-upload-notice.is-warning {
  border-color: #f5df9d;
}

.v2-bank-upload-notice.is-warning > span > svg {
  color: #d8a526;
}

.v2-bank-upload-notice.is-success > span > svg {
  color: #3f9f70;
}

.v2-bank-upload-notice strong,
.v2-bank-upload-notice p {
  display: block;
  margin: 0;
}

.v2-bank-upload-notice p {
  margin-top: 4px;
}

.v2-bank-upload-notice .v2-view-action {
  margin-left: auto;
}

/* Bank statement import preview: a compact adapter of the canonical listing
   table that keeps all five columns visible in the transaction-form frame. */
.v2-invoice-entry-page .v2-statement-preview-table {
  overflow: hidden;
}

.v2-invoice-entry-page .v2-statement-preview-table .v2-listing-table-wrap,
.v2-invoice-entry-page .v2-statement-preview-table .v2-listing-table-scroll {
  overflow: hidden;
}

.v2-invoice-entry-page .v2-statement-preview-table .v2-listing-table {
  width: 100% !important;
  min-width: 0;
  table-layout: fixed;
}

.v2-invoice-entry-page .v2-statement-preview-table .v2-listing-table th,
.v2-invoice-entry-page .v2-statement-preview-table .v2-listing-table td {
  padding: 12px 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
