/* Invoice register: protect each column's reading space, including saved widths. */
.invoice-register-wrap { max-width:100%; overflow:auto; overscroll-behavior-x:contain; }
.invoice-register-wrap:focus-visible { outline:2px solid var(--blue); outline-offset:-2px; }
:is(.shell, .drawer) .invoice-list-table { min-width:1120px; }
.invoice-list-table > thead > tr > th:nth-last-child(8) { min-width:140px; }
.invoice-list-table > thead > tr > th:nth-last-child(7) { min-width:260px; }
.invoice-list-table > thead > tr > th:nth-last-child(6) { min-width:112px; }
.invoice-list-table > thead > tr > th:nth-last-child(5) { min-width:124px; }
.invoice-list-table > thead > tr > th:nth-last-child(4) { min-width:136px; }
.invoice-list-table > thead > tr > th:nth-last-child(-n+3) { min-width:116px; }
.invoice-list-table > thead > tr > th.select-cell { min-width:48px; }
:is(.shell, .drawer) .invoice-list-table > thead > tr > th {
  padding:12px 14px; font-size:11px; line-height:1.5; letter-spacing:.055em;
}
:is(.shell, .drawer) .invoice-list-table > tbody > tr > td {
  padding:10px 14px; font-size:14px; line-height:1.4; vertical-align:middle;
}
:is(.shell, .drawer) .invoice-list-table .cell-main { font-weight:650; }
:is(.shell, .drawer) .invoice-list-table .cell-sub {
  margin-top:3px; font-size:12px; line-height:1.4; overflow-wrap:anywhere; white-space:normal;
}
.invoice-list-table td:nth-last-child(8) .cell-main,
.invoice-list-table td:nth-last-child(7) .cell-main { overflow-wrap:anywhere; }
:is(.shell, .drawer) .invoice-list-table :is(.status,.followup-pill) {
  max-width:100%; white-space:normal; overflow-wrap:anywhere; font-size:12px;
  font-weight:650; line-height:1.4; letter-spacing:0; text-transform:none;
  padding:6px 10px; border-radius:8px;
}
.invoice-list-table .status:before { flex-shrink:0; }
.invoice-list-table .followup-cell small { margin-top:8px; font-size:12px; line-height:1.5; white-space:normal; }
.invoice-list-table :is(td,th).amount { text-align:right; font-weight:650; }
.invoice-list-table .table-sort { justify-content:flex-end; gap:6px; }
.invoice-list-table .table-sort span { background:none; border-radius:0; color:var(--blue); }
.invoice-list-table .table-sort:focus-visible { outline:2px solid var(--blue); outline-offset:4px; }
:is(.shell, .drawer) .invoice-list-table tfoot td { padding:12px 14px; border-top:1px solid var(--line); }
.invoice-list-table.spreadsheet-table .grid-input { min-width:0; font-size:14px; }
.invoice-list-table.spreadsheet-table .grid-subject { min-width:0; }
html[data-theme="dark"] .invoice-list-table .followup-pill { background:#263448; color:#b7d4fb; }
html[data-theme="dark"] .invoice-list-table .followup-pill.warning { background:#3d2c16; color:#ffcc80; }
html[data-theme="dark"] .invoice-list-table .followup-pill.final { background:#402229; color:#ffa5b1; }
html[data-theme="dark"] .invoice-list-table .followup-pill.email-off { background:#303034; color:#c5c5cc; }
html[data-theme="dark"] .invoice-list-table .late-warning { color:#ffcc80; }
html[data-theme="dark"] .invoice-list-table .late-final { color:#ffa5b1; }
html[data-theme="dark"] .invoice-list-table > thead > tr > th { color:#aab6c7; }
html[data-theme] .invoice-list-table .table-sort span { background:transparent; }
html[data-theme="light"] .invoice-list-table > thead > tr > th { color:#596579; }
html[data-theme="light"] .invoice-list-table :is(.status.overdue,.late-final) { color:#a91d34; }
html[data-theme="light"] .invoice-list-table .status.overdue { background:#ffedf0; }
html[data-theme="light"] .invoice-list-table :is(.status.reminder,.followup-pill.warning,.late-warning) { color:#875000; }
html[data-theme="light"] .invoice-list-table .status.reminder { background:#fff1d6; }
html[data-theme="light"] .invoice-list-table .followup-pill.final { background:#ffedf0; color:#a91d34; }
.compact-register .invoice-description{max-width:420px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.compact-register .amount{font-variant-numeric:tabular-nums;white-space:nowrap}
.invoice-queue-tabs{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:12px 0 16px}
.invoice-queue-tabs button{display:inline-flex;align-items:center;gap:8px;background:transparent;color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:9px 12px;font:inherit;font-size:13px;cursor:pointer;min-height:40px}
.invoice-queue-tabs button span{font-variant-numeric:tabular-nums;color:var(--muted);font-size:12px}
.invoice-queue-tabs button[aria-pressed="true"]{background:color-mix(in srgb,var(--blue) 14%,var(--paper));border-color:var(--blue);font-weight:650}
.invoice-queue-tabs button:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.invoice-filter-bar{gap:10px!important;margin-bottom:10px!important}
.invoice-filter-bar :is(input,select,button){font-size:13px;min-height:40px}
.invoice-filter-bar .toolbar-search{min-width:200px}
.invoice-filter-bar .toolbar-search input{padding-left:36px}
.invoice-register-summary{flex-basis:100%;margin:6px 0 0;font-size:13px;line-height:1.6;color:var(--muted)}
.invoice-register-summary strong{color:var(--ink);font-variant-numeric:tabular-nums}
