
:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --ink: #1f2933;
  --muted: #667085;
  --line: #d9dee7;
  --panel: #ffffff;
  --accent: #0e5f61;
  --accent2: #9a6532;
  --brand-dark: #111827;
  --brand-gold: #b47433;
  --danger: #b42318;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
}
.loginPage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f4f6f8;
}
.loginShell {
  width: min(460px, 100%);
  padding: 0;
}
.loginBrand {
  text-align: center;
  margin-bottom: 22px;
}
.loginBrand img {
  width: min(310px, 82vw);
  max-height: 90px;
  object-fit: contain;
}
.loginBrand h1 { margin-top: 16px; }
.loginPanel {
  display: grid;
  gap: 16px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(17, 24, 39, 0.08);
}
.loginPanel h2 { margin: 0 0 4px; }
.loginPanel label { display: grid; gap: 7px; }
.loginPanel input { width: 100%; }
.loginError {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #fecdca;
  border-radius: 6px;
  color: var(--danger);
  background: #fff6f5;
}
.userSession {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.readOnlyRole .createBtn,
.readOnlyRole .fileBtn,
.readOnlyRole .editMotoBtn,
.readOnlyRole .editSaleInternalBtn,
.readOnlyRole .assignPlateBtn,
.readOnlyRole #savePayment,
.readOnlyRole #savePayablePayment,
.readOnlyRole #saveGroupedPayablePayment,
.readOnlyRole #saveSeller,
.readOnlyRole #saveProvider,
.readOnlyRole #saveClient,
.readOnlyRole #saveMoto,
.readOnlyRole #deleteMoto,
.readOnlyRole #saveSaleInternal,
.readOnlyRole #savePlate { display: none !important; }
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  padding: 20px 28px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
.brandArea {
  display: grid;
  gap: 14px;
  flex: 1;
}
.brandHeader {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr minmax(120px, 340px);
  align-items: center;
  gap: 18px;
}
.brandLogo {
  width: min(340px, 32vw);
  max-height: 72px;
  object-fit: contain;
  object-position: left center;
}
.brandTitle {
  text-align: center;
}
.brandMark {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--brand-dark);
  color: var(--brand-gold);
  border: 2px solid var(--brand-gold);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0;
}
h1 {
  margin: 0;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--brand-dark);
  line-height: 1.08;
}
h1 span {
  display: block;
}
p { margin: 5px 0 0; color: var(--muted); }
main { padding: 22px 28px 40px; }
button, .fileBtn {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: white;
  border-radius: 6px;
  padding: 9px 12px;
  font-weight: 600;
  cursor: pointer;
}
button.secondary { background: #fff; color: var(--accent); }
.fileBtn input { display: none; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.createBtn {
  background: var(--accent2);
  border-color: var(--accent2);
}
.dangerBtn {
  background: #fff;
  color: var(--danger);
  border-color: #fecdca;
  margin-right: auto;
}
.message {
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
}
.hidden { display: none; }
.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.kpi {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  min-height: 74px;
}
.kpi span {
  font-size: 14px;
}
.kpi strong {
  display: block;
  font-size: 20px;
  margin-top: 6px;
  line-height: 1.1;
}
.tabs {
  display: flex;
  gap: 8px;
  margin-top: 2px;
  margin-bottom: 0;
}
.tabLine {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.tabs button {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.tabs button.active {
  background: var(--brand-dark);
  color: #fff;
  border-color: var(--brand-dark);
  box-shadow: inset 4px 0 0 var(--brand-gold);
}
.toolbar {
  display: flex;
  gap: 14px;
  row-gap: 14px;
  margin-bottom: 16px;
  align-items: end;
  flex-wrap: wrap;
}
input, select {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  min-height: 50px;
  background: white;
  font-size: 15px;
}
.toolbar input { min-width: 360px; }
.toolbar select { min-width: 230px; }
.toolbar button {
  min-height: 50px;
  padding-left: 18px;
  padding-right: 18px;
}
.toolbar label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.toolbar label input { min-width: 205px; }
#ventasToolbar {
  display: grid;
  grid-template-columns: repeat(20, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}
#ventasToolbar.hidden { display: none; }
#clientesToolbar {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 120px 120px 180px;
  gap: 12px;
  align-items: end;
}
#clientesToolbar.hidden { display: none; }
#clientesToolbar input,
#clientesToolbar button {
  width: 100%;
  min-height: 44px;
}
#vendedoresToolbar {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 120px 120px 190px;
  gap: 12px;
  align-items: end;
}
#vendedoresToolbar.hidden { display: none; }
#vendedoresToolbar input,
#vendedoresToolbar button {
  width: 100%;
  min-height: 44px;
}
#proveedoresToolbar {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 120px 120px 200px;
  gap: 12px;
  align-items: end;
}
#proveedoresToolbar.hidden { display: none; }
#proveedoresToolbar input,
#proveedoresToolbar button {
  width: 100%;
  min-height: 44px;
}
#cuentasToolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 145px 190px 100px 100px 145px 150px 180px;
  gap: 12px;
  align-items: end;
}
#cuentasToolbar.hidden { display: none; }
#cuentasToolbar input,
#cuentasToolbar select,
#cuentasToolbar button,
#cuentasToolbar .fileBtn {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  display: grid;
  place-items: center;
}
#cuentasToolbar .fileBtn input {
  display: none;
}
#cuentasToolbar #providerInvoicePdfLabel {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}
#motosToolbar {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}
#motosToolbar.hidden { display: none; }
#searchMotos { grid-column: 1 / span 4; }
#estadoMotosWrap { grid-column: 5 / span 2; }
#marcaMotos { grid-column: 7 / span 2; }
#modeloMotos { grid-column: 9 / span 3; }
#colorMotos { grid-column: 1 / span 2; }
#proveedorMotos { grid-column: 3 / span 3; }
#runMotosFilters { grid-column: 6 / span 3; }
#clearMotosFilters { grid-column: 9 / span 3; }
#motosToolbar input,
#motosToolbar select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 11px;
  font-size: 14px;
}
.multiSelect {
  position: relative;
  min-width: 0;
}
.multiSelectBtn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  text-align: left;
}
.multiSelectBtn span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.multiSelectArrow {
  color: var(--muted);
  font-size: 12px;
}
.multiSelectPanel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 280px;
  z-index: 80;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.14);
}
.multiSelectPanel label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 9px;
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
  line-height: 1.2;
  white-space: nowrap;
}
.multiSelectPanel label:hover {
  background: #f3f6f9;
}
#motosToolbar .multiSelectPanel input {
  flex: 0 0 auto;
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
  accent-color: var(--teal);
}
#motosToolbar button {
  width: 100%;
  min-height: 42px;
}
#ventasToolbar > label:nth-child(1) { grid-column: 1 / span 2; }
#ventasToolbar > label:nth-child(2) { grid-column: 3 / span 2; }
#searchVentas { grid-column: 5 / span 6; }
#marcaVentas { grid-column: 11 / span 5; }
#modeloVentas { grid-column: 16 / span 5; }
#agenciaVentas { grid-column: 1 / span 3; }
#vendedorVentas { grid-column: 4 / span 3; }
#metodoPagoVentas { grid-column: 7 / span 3; }
#estadoPagoVentas { grid-column: 10 / span 3; }
#pdfVentas { grid-column: 13 / span 2; }
#runVentasFilters { grid-column: 15 / span 2; }
#exportVentasExcel { grid-column: 17 / span 1; }
#exportVentasPdf { grid-column: 18 / span 1; }
#clearVentasFilters { grid-column: 19 / span 2; }
#ventasToolbar input,
#ventasToolbar select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 14px;
}
#ventasToolbar button {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
}
.fileBtn.compact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 34px;
  padding: 6px 9px;
  font-size: 12px;
  line-height: 1.1;
  border-radius: 6px;
  white-space: nowrap;
}
.filePick {
  display: grid;
  gap: 5px;
  align-content: start;
}
.filePick .fileBtn {
  width: fit-content;
}
.filePickName {
  max-width: 100%;
  min-height: 16px;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reportSummary {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 10px;
  margin: 0 0 12px;
}
.reportSummary div {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 10px 12px;
}
.reportSummary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}
.reportSummary strong { font-size: 18px; }
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
  table-layout: fixed;
}
th, td {
  border-bottom: 1px solid var(--line);
  padding: 10px 10px;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: normal;
}
th {
  position: sticky;
  top: 0;
  background: #f0f3f6;
  font-size: 12px;
  text-transform: uppercase;
  color: #475467;
}
.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  border: 1px solid var(--line);
  background: #fff;
}
.vendida { color: #067647; border-color: #abefc6; background: #ecfdf3; }
.disponible { color: #175cd3; border-color: #b2ccff; background: #eff4ff; }
.stock_local { color: #175cd3; border-color: #b2ccff; background: #eff4ff; }
.stock_parqueadero { color: #175cd3; border-color: #b2ccff; background: #eff4ff; }
.transito { color: #854d0e; border-color: #fde68a; background: #fefce8; }
.devuelta, .no_llego { color: #b42318; border-color: #fecdca; background: #fef3f2; }
.warn { color: var(--danger); font-weight: 700; }
.muted { color: var(--muted); }
.cellMain { font-weight: 700; }
.cellSub { color: var(--muted); margin-top: 3px; overflow-wrap: anywhere; }
.emptyState {
  padding: 16px;
  color: var(--muted);
  background: #fff;
}
.plateValue {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 8px;
  border: 1px solid #abefc6;
  border-radius: 999px;
  background: #ecfdf3;
  color: #067647;
  font-size: 12px;
  font-weight: 700;
}
.numBlock { white-space: nowrap; }
.tinyBtn {
  min-height: 30px;
  padding: 5px 8px;
  font-size: 12px;
  margin-top: 6px;
}
.inventoryTable th:nth-child(1), .inventoryTable td:nth-child(1) { width: 9%; }
.inventoryTable th:nth-child(2), .inventoryTable td:nth-child(2) { width: 19%; }
.inventoryTable th:nth-child(3), .inventoryTable td:nth-child(3) { width: 8%; }
.inventoryTable th:nth-child(4), .inventoryTable td:nth-child(4) { width: 9%; }
.inventoryTable th:nth-child(5), .inventoryTable td:nth-child(5) { width: 15%; }
.inventoryTable th:nth-child(6), .inventoryTable td:nth-child(6) { width: 13%; }
.inventoryTable th:nth-child(7), .inventoryTable td:nth-child(7) { width: 14%; }
.inventoryTable th:nth-child(8), .inventoryTable td:nth-child(8) { width: 7%; }
.inventoryTable th:nth-child(9), .inventoryTable td:nth-child(9) { width: 6%; }
.salesTable th:nth-child(1), .salesTable td:nth-child(1) { width: 11%; }
.salesTable th:nth-child(2), .salesTable td:nth-child(2) { width: 22%; }
.salesTable th:nth-child(3), .salesTable td:nth-child(3) { width: 17%; }
.salesTable th:nth-child(4), .salesTable td:nth-child(4) { width: 8%; }
.salesTable th:nth-child(5), .salesTable td:nth-child(5) { width: 12%; }
.salesTable th:nth-child(6), .salesTable td:nth-child(6) { width: 14%; }
.salesTable th:nth-child(7), .salesTable td:nth-child(7) { width: 7%; }
.salesTable th:nth-child(8), .salesTable td:nth-child(8) { width: 9%; }
.payablesTable th:nth-child(1), .payablesTable td:nth-child(1) { width: 15%; }
.payablesTable th:nth-child(2), .payablesTable td:nth-child(2) { width: 16%; }
.payablesTable th:nth-child(3), .payablesTable td:nth-child(3) { width: 12%; }
.payablesTable th:nth-child(4), .payablesTable td:nth-child(4) { width: 11%; }
.payablesTable th:nth-child(5), .payablesTable td:nth-child(5) { width: 15%; }
.payablesTable th:nth-child(6), .payablesTable td:nth-child(6) { width: 12%; }
.payablesTable th:nth-child(7), .payablesTable td:nth-child(7) { width: 10%; }
.payablesTable th:nth-child(8), .payablesTable td:nth-child(8) { width: 9%; }
dialog {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  width: min(520px, 92vw);
  overflow-x: hidden;
}
dialog::backdrop { background: rgba(16, 24, 40, .28); }
dialog label { display: grid; gap: 5px; margin: 10px 0; color: var(--muted); }
.dialogActions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.dialogClose {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 32px;
  width: 32px;
  padding: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  border-color: var(--line);
}
#motoDialog {
  width: min(960px, 96vw);
  max-height: calc(100vh - 20px);
  padding: 14px 18px;
}
#motoForm h2 {
  margin: 0 0 10px;
  font-size: 24px;
}
#motoForm .formGrid {
  gap: 6px 12px;
}
#motoForm label {
  gap: 3px;
  font-size: 14px;
}
#motoForm input,
#motoForm select {
  min-height: 40px;
  padding: 8px 12px;
}
#motoForm textarea {
  height: 66px;
  min-height: 66px;
  padding: 8px 36px 22px 12px;
  line-height: 1.25;
}
#motoForm #newInfoBloque2 {
  height: 78px;
  min-height: 78px;
}
#motoForm .dialogActions {
  margin-top: 10px;
}
#motoForm .dialogActions button,
#motoForm .dialogActions .fileBtn {
  min-height: 42px;
  padding: 9px 14px;
}
#manualSaleDialog {
  width: min(900px, 94vw);
}
#saleInternalDialog {
  width: min(560px, 92vw);
}
#providerDialog,
#sellerDialog,
#clientDialog {
  width: min(720px, 92vw);
}
#providerForm,
#sellerForm,
#clientForm {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}
#providerForm h2,
#sellerForm h2,
#clientForm h2,
#providerForm input[type="hidden"],
#sellerForm input[type="hidden"],
#clientForm input[type="hidden"],
#providerForm .dialogActions,
#sellerForm .dialogActions,
#clientForm .dialogActions {
  grid-column: 1 / -1;
}
#providerForm label,
#sellerForm label,
#clientForm label {
  margin: 0;
}
.formGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 12px;
}
.formGrid label {
  margin: 0;
}
.suggestField {
  position: relative;
}
.suggestBox {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 30;
  max-height: 190px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(16, 24, 40, .14);
}
.suggestBox button {
  width: 100%;
  min-height: 34px;
  padding: 8px 10px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  text-align: left;
  font-weight: 600;
}
.suggestBox button:hover {
  background: #f2f4f7;
}
.suggestBox button span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.formGrid input,
.formGrid select,
.formGrid textarea {
  width: 100%;
  min-width: 0;
}
.fieldActionHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.fieldActionHeader .tinyBtn {
  margin-top: 0;
}
.copyTextareaWrap {
  position: relative;
  display: block;
}
.copyTextareaWrap textarea {
  padding-right: 38px;
  padding-bottom: 30px;
}
.copyIconBtn {
  position: absolute;
  right: 9px;
  bottom: 9px;
  width: 24px;
  height: 24px;
  min-height: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 5px;
  background: rgba(255, 255, 255, .72);
  color: #98a2b3;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.copyIconBtn:hover {
  border-color: var(--line);
  color: var(--accent);
  background: #fff;
}
.wideField {
  grid-column: 1 / -1;
}
textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  background: white;
  font: inherit;
  resize: vertical;
}
.paymentSummary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 12px 0 16px;
}
.paymentSummary div {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  min-height: 68px;
}
.paymentSummary span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}
.paymentSummary strong {
  display: block;
  font-size: 18px;
  line-height: 1.15;
}
.paymentSummary .invoiceValue {
  font-size: 17px;
  overflow-wrap: normal;
  word-break: keep-all;
}
.paymentGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 12px;
}
.payablePaymentGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 12px;
  margin-top: 12px;
}
.payablePaymentGrid.hidden {
  display: none;
}
.payablePaymentGrid label {
  margin: 0;
}
.payablePaymentGrid textarea {
  min-height: 58px;
}
.paymentsTable th:nth-child(1), .paymentsTable td:nth-child(1) { width: 105px; white-space: nowrap; }
.paymentsTable th:nth-child(2), .paymentsTable td:nth-child(2) { width: 150px; }
.paymentsTable th:nth-child(3), .paymentsTable td:nth-child(3) { width: 150px; }
.paymentsTable th:nth-child(4), .paymentsTable td:nth-child(4) { width: 110px; white-space: nowrap; }
.paymentsTable th:nth-child(5), .paymentsTable td:nth-child(5) { width: 90px; }
.paymentsTable th:nth-child(6), .paymentsTable td:nth-child(6) { width: 90px; }
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-top: 0;
  background: #fff;
  color: var(--muted);
}
.pagination div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pagination button {
  min-height: 34px;
  padding: 6px 10px;
}
.pagination button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
#paymentsDialog {
  width: min(700px, 94vw);
}
#payablePaymentsDialog {
  width: min(980px, 96vw);
}
#groupedPayableDialog {
  width: min(1100px, 96vw);
}
#groupedPayableForm h2 {
  margin: 0 0 10px;
}
.groupedPayableGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 12px;
}
.groupedPayableGrid label {
  margin: 0;
}
.groupedPayableTotals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 10px;
}
.groupedPayableTotals div {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 9px 11px;
}
.groupedPayableTotals span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}
.groupedPayableTotals strong {
  font-size: 18px;
}
.groupedPendingList {
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.groupedPendingList table {
  table-layout: fixed;
}
.groupedPendingList th:nth-child(1),
.groupedPendingList td:nth-child(1) { width: 42px; text-align: center; }
.groupedPendingList th:nth-child(2),
.groupedPendingList td:nth-child(2) { width: 19%; }
.groupedPendingList th:nth-child(3),
.groupedPendingList td:nth-child(3) { width: 13%; }
.groupedPendingList th:nth-child(4),
.groupedPendingList td:nth-child(4) { width: 14%; }
.groupedPendingList th:nth-child(5),
.groupedPendingList td:nth-child(5) { width: 14%; }
.groupedPendingList th:nth-child(6),
.groupedPendingList td:nth-child(6) { width: 16%; }
.groupedPendingList th:nth-child(7),
.groupedPendingList td:nth-child(7) { width: 16%; }
#payablePaymentsForm h2 {
  margin: 0 0 10px;
}
#payablePaymentsDialog .paymentSummary {
  grid-template-columns: repeat(4, 1fr);
  margin: 8px 0 12px;
}
#payablePaymentsDialog .paymentSummary div {
  min-height: 56px;
  padding: 8px 10px;
}
#payablePaymentsList {
  max-height: 210px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}
#payablePaymentsList table {
  min-width: 0;
  width: 100%;
  table-layout: fixed;
}
#payablePaymentsList th,
#payablePaymentsList td {
  padding: 8px 10px;
}
#payablePaymentsList .paymentsTable th:nth-child(1),
#payablePaymentsList .paymentsTable td:nth-child(1) { width: 15%; }
#payablePaymentsList .paymentsTable th:nth-child(2),
#payablePaymentsList .paymentsTable td:nth-child(2) { width: 20%; }
#payablePaymentsList .paymentsTable th:nth-child(3),
#payablePaymentsList .paymentsTable td:nth-child(3) { width: 17%; }
#payablePaymentsList .paymentsTable th:nth-child(4),
#payablePaymentsList .paymentsTable td:nth-child(4) { width: 14%; }
#payablePaymentsList .paymentsTable th:nth-child(5),
#payablePaymentsList .paymentsTable td:nth-child(5) { width: 12%; }
#payablePaymentsList .paymentsTable th:nth-child(6),
#payablePaymentsList .paymentsTable td:nth-child(6) { width: 11%; }
#payablePaymentsList .paymentsTable th:nth-child(7),
#payablePaymentsList .paymentsTable td:nth-child(7) { width: 11%; }
#paymentsList {
  overflow-x: hidden;
}
#paymentsList table {
  min-width: 0;
  width: 100%;
  table-layout: fixed;
}
#paymentsList th,
#paymentsList td {
  padding: 8px 10px;
}
#paymentsList .paymentsTable th:nth-child(1),
#paymentsList .paymentsTable td:nth-child(1) { width: 21%; }
#paymentsList .paymentsTable th:nth-child(2),
#paymentsList .paymentsTable td:nth-child(2) { width: 25%; }
#paymentsList .paymentsTable th:nth-child(3),
#paymentsList .paymentsTable td:nth-child(3) { width: 25%; }
#paymentsList .paymentsTable th:nth-child(4),
#paymentsList .paymentsTable td:nth-child(4) { width: 18%; }
#paymentsList .paymentsTable th:nth-child(5),
#paymentsList .paymentsTable td:nth-child(5) { display: none; }
#paymentsList .paymentsTable th:nth-child(6),
#paymentsList .paymentsTable td:nth-child(6) { width: 11%; }
@media (max-width: 900px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .brandHeader { grid-template-columns: 1fr; justify-items: start; }
  .brandTitle { text-align: left; }
  .brandLogo { width: min(320px, 90vw); max-height: 68px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .toolbar { flex-direction: column; }
  .toolbar input { min-width: 0; width: 100%; }
}
