/* Invoice line items table column widths */
.invoice-date-col {
  width: 100px;
  white-space: nowrap;
}

.invoice-code-col {
  width: 80px;
  white-space: nowrap;
}

.invoice-qty-col {
  width: 60px;
  white-space: nowrap;
}

.invoice-unit-price-col {
  width: 100px;
  white-space: nowrap;
}

.invoice-amount-col {
  width: 100px;
  white-space: nowrap;
}

/* Invoice index summary column - fills available space, truncates with ellipsis */
.invoice-summary-cell {
  max-width: 0;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Invoice balance row styling */
.invoice-balance-row.is-unpaid {
  background-color: var(--bulma-warning);
}

.invoice-balance-row.is-unpaid td {
  color: var(--bulma-warning-invert);
}

.invoice-balance-row.is-paid {
  background-color: #28a745;
}

.invoice-balance-row.is-paid td {
  color: #fff;
}

/* Table with only bottom border on rows (not full grid) */
.box .table-container table.table.table-with-bottom-border {
  border-collapse: collapse;
}

.box .table-container table.table.table-with-bottom-border thead tr th {
  border-bottom: 2px solid var(--bulma-border);
}

.box .table-container table.table.table-with-bottom-border tbody tr td {
  border-bottom: 1px solid var(--bulma-border);
}

/* Payment card styling */
.payment-card {
  border: 1px solid var(--bulma-border);
  border-radius: var(--bulma-radius);
  padding: 1rem;
  background-color: var(--bulma-scheme-main-bis);
}
