/* 0.2.281 – only checkbox layout, no broad card/grid overrides.
   Restores the stable dashboard loader from layout 0.2.275. */

/* Checkbox comes before its text throughout the application. */
label.check,
label.payment-ppd-option,
label.editor-ppd-choice {
  display: inline-flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: auto !important;
  max-width: 100% !important;
  min-height: 0 !important;
  margin: 4px 0 10px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: 1.35 !important;
}
label.check input[type="checkbox"],
label.payment-ppd-option input[type="checkbox"],
label.editor-ppd-choice input[type="checkbox"] {
  box-sizing: border-box !important;
  flex: 0 0 18px !important;
  display: inline-block !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  padding: 0 !important;
  margin: 0 !important;
  align-self: center !important;
  vertical-align: middle !important;
}
label.check > span,
label.payment-ppd-option > span {
  display: inline !important;
  margin: 0 !important;
  line-height: 1.35;
}
/* Scope spacing only to the payment panel, never the dashboard tiles. */
.page-invoice_edit .invoice-editor-tools .invoice-tool-body .form-grid {
  column-gap: 12px;
  row-gap: 8px;
}
.page-invoice_edit .invoice-editor-tools label.editor-ppd-choice {
  margin: 4px 0 8px !important;
}
.page-invoice_edit .invoice-editor-tools .tool-subsection {
  margin-top: 12px;
}
.page-invoice_edit .invoice-editor-tools .tool-subsection > h3 {
  margin-bottom: 8px;
}
/* Previous .payment-ppd-option style has its own soft background. Preserve it. */
label.payment-ppd-option {
  padding: 8px 10px !important;
}
@media (max-width: 600px) {
  label.check,
  label.payment-ppd-option,
  label.editor-ppd-choice {
    white-space: normal;
    flex-wrap: nowrap !important;
  }
}
