/* Page defaults: box sizing, fonts, links, focus outline, printing. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--color-page);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  line-height: var(--line-height);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
}

:focus-visible {
  outline: 2px solid var(--color-border-focus);
  outline-offset: 1px;
}

.icon {
  flex: none;
  vertical-align: middle;
}
/* Font Awesome icons (js/core/icons.js) sit centred on the text line like the line icons did. */
.fa-icon {
  display: inline-block;
  line-height: 1;
  text-align: center;
}

.boot {
  padding: 40px;
  color: var(--color-text-muted);
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.muted {
  color: var(--color-text-muted);
}

.nowrap {
  white-space: nowrap;
}

.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

[hidden] {
  display: none !important;
}

/* Buttons side by side in a table's Action column. */
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* A field error shown outside a field (e.g. inside a table cell). */
.field-error {
  display: block;
  margin-top: 2px;
  color: var(--color-danger);
  font-size: var(--font-size-xs);
}

/* Printing (core/export.js printElement): every document on A4 portrait with printable 12 mm margins; only the copy
   of the document (.print-root) prints, from the top of the first sheet. */
@page {
  size: A4 portrait;
  margin: 12mm;
}
.print-root {
  display: none;
}
/* While core/export.js measures the print copy: the same layout as on paper (no on-screen page padding or frame). */
.print-root[data-measuring] .print-area {
  position: static;
  width: auto;
  max-width: 100%;
  margin: 0;
  box-shadow: none;
}
.print-root[data-measuring] .document {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
@media print {
  html.is-printing,
  html.is-printing body {
    width: auto;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    background: #ffffff !important;
  }
  html.is-printing body > *:not(.print-root) {
    display: none !important;
  }
  html.is-printing .print-root {
    display: block;
    color: #000000;
  }
  html.is-printing .print-area {
    position: static;
    width: auto;
    max-width: 100%;
    margin: 0;
    box-shadow: none;
  }
  html.is-printing .print-area table {
    max-width: 100%;
  }
  /* One sheet a page: each page (a document, or each copy of a letter) is held to the sheet's printable height, so
     nothing flows onto a second sheet and no blank sheet follows (core/export.js has already shrunk it to fit). */
  html.is-printing .print-root {
    width: 186mm;
  }
  html.is-printing .print-root > .print-area:not(.letter-doc-pages),
  html.is-printing .print-root .letter-doc-pages > .document {
    height: 272mm;
    max-height: 272mm;
    overflow: hidden;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  html.is-printing .print-root .letter-doc-pages > .document + .document {
    break-before: page;
    page-break-before: always;
  }
  html.is-printing .print-root,
  html.is-printing .print-root > .print-area,
  html.is-printing .print-root .letter-doc-pages > .document:last-child {
    break-after: avoid;
    page-break-after: avoid;
  }
  .no-print {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
  }
}
