@import url("/fonts.css");
:root {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #272c27;
  background: #f8f7f2;
  font-synthesis: none;
  --ink: #272c27;
  --muted: #697066;
  --line: #dedfd5;
  --gold: #e8b84f;
  --paper: #fffefb;
  --soft: #efeee5;
  --green: #356347;
  --red: #a44b35;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button,
.button {
  border: 1px solid #cfd2c7;
  border-radius: 5px;
  background: var(--paper);
  color: var(--ink);
  padding: 11px 17px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  font-size: 13px;
  font-weight: 500;
}
button:hover,
.button:hover {
  border-color: #626e5c;
  background: #f3f3e9;
}
button.primary,
.button.primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #292b21;
  font-weight: 650;
}
button.dark,
.button.dark {
  background: #30372e;
  border-color: #30372e;
  color: white;
}
button.link {
  border: 0;
  background: transparent;
  padding: 0;
  min-height: 32px;
  text-align: left;
  justify-content: flex-start;
  text-decoration: underline;
  text-underline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  font-weight: 400;
  letter-spacing: -1.5px;
  line-height: 1.14;
}
h2 {
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.6px;
}
h3 {
  font-size: 15px;
  font-weight: 600;
}
.testbar {
  padding: 8px 5vw;
  background: #eeecdf;
  border-bottom: 1px solid #deddcf;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  font-size: 11px;
  color: #555c4f;
  letter-spacing: 0.2px;
}
.testbar strong {
  font-weight: 600;
}
.apphead {
  padding: 23px 5vw;
  display: flex;
  align-items: center;
  gap: 45px;
  border-bottom: 1px solid var(--line);
  background: #fcfbf7;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 20px;
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.brand img {
  width: 37px;
  height: 37px;
  border-radius: 4px;
}
.brand strong {
  font-weight: 650;
}
.brand span {
  font-size: 13px;
  letter-spacing: 0.4px;
  color: var(--muted);
  padding-left: 10px;
  border-left: 1px solid var(--line);
  margin-left: 7px;
}
.nav {
  display: flex;
  gap: 24px;
  flex: 1;
}
.nav button {
  border: 0;
  background: none;
  border-radius: 0;
  color: var(--muted);
  padding: 8px 0;
}
.nav button[aria-current="page"] {
  border-bottom: 2px solid var(--gold);
  color: var(--ink);
}
.connection {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #618d69;
  display: inline-block;
}
.container {
  max-width: 1380px;
  margin: auto;
  padding: 42px 5vw 60px;
}
.kicker {
  color: #78806d;
  text-transform: uppercase;
  letter-spacing: 1.7px;
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 12px;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.sub {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  margin-top: 10px;
}
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
}
.metrics {
  display: flex;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
}
.metric {
  padding: 25px 36px 26px 0;
  flex: 1;
}
.metric + .metric {
  border-left: 1px solid var(--line);
  padding-left: 36px;
}
.metric label {
  color: var(--muted);
  font-size: 11px;
  display: block;
  margin-bottom: 9px;
}
.metric strong {
  font-size: 32px;
  font-weight: 450;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.metric small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 7px;
}
.metric.overdue strong {
  color: var(--red);
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 14px;
}
.search {
  width: 290px;
  max-width: 100%;
  background: var(--paper);
}
input,
select,
textarea {
  border: 1px solid #cdd1c4;
  border-radius: 4px;
  background: #fffefb;
  color: var(--ink);
  padding: 11px 12px;
  width: 100%;
  min-width: 0;
  min-height: 43px;
  font-size: 14px;
}
textarea {
  min-height: 90px;
  resize: vertical;
}
.filters {
  display: flex;
  gap: 4px;
}
.filters button {
  border: 0;
  background: none;
  padding: 6px 12px;
  min-height: 34px;
  color: var(--muted);
  font-size: 12px;
}
.filters button[aria-pressed="true"] {
  background: #eaece2;
  color: var(--ink);
}
.tablewrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
th {
  text-align: left;
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--muted);
  font-weight: 600;
  padding: 15px 12px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 21px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  vertical-align: top;
  overflow-wrap: anywhere;
}
th:first-child,
td:first-child {
  padding-left: 0;
}
th:last-child,
td:last-child {
  padding-right: 0;
}
.money {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
button.invoice-link {
  font-weight: 600;
  text-decoration: none !important;
  min-height: 20px;
}
.small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.5;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 3px;
  padding: 4px 7px;
  font-size: 10px;
  background: #eeeadb;
  color: #73603a;
  white-space: nowrap;
}
.badge.paid {
  background: #e8eee4;
  color: #3b6447;
}
.badge.overdue {
  background: #f5e8df;
  color: #a4563e;
}
.badge.draft {
  background: #eaebe7;
  color: #70756b;
}
.footerline {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  padding: 16px 0;
}
.empty {
  text-align: center;
  padding: 65px 15px;
  color: var(--muted);
  font-size: 14px;
}
.empty p {
  margin-bottom: 18px;
}
.notice {
  padding: 14px 17px;
  background: #efeee5;
  border-left: 3px solid var(--gold);
  font-size: 12px;
  color: #626953;
  line-height: 1.65;
  margin-bottom: 24px;
}
.back {
  margin-bottom: 20px;
}
.editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 35px;
  align-items: start;
}

/* Fast, quiet working surfaces that share the existing brand palette. */
[hidden] {
  display: none !important;
}
.wide {
  grid-column: 1 / -1;
}
.client-card-top,
.client-card-actions,
.client-balance,
.picker-footer,
.pagination,
.recovery-banner,
.saved-service-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.client-card-top {
  margin-bottom: 18px;
}
.client-card-top .client-avatar {
  margin: 0;
}
.client-balance {
  align-items: flex-start;
  flex-direction: column;
  margin: 22px 0;
  gap: 5px;
}
.client-balance strong {
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -1px;
}
.client-card-actions button {
  width: auto;
  min-height: 44px;
}
.pagination {
  justify-content: center;
  margin: 22px 0;
  font-size: 12px;
}
.pagination button {
  min-height: 44px;
}
.client-toolbar .search-wrap {
  flex: 1;
  max-width: 680px;
}
.client-picker {
  position: relative;
  min-width: 0;
}
.picker-footer {
  align-items: flex-start;
  margin-top: 9px;
}
.picker-footer .small {
  overflow-wrap: anywhere;
}
.picker-footer button {
  flex-shrink: 0;
  min-height: 32px;
  padding: 0 5px;
}
.client-suggestions {
  position: absolute;
  z-index: 10;
  top: 77px;
  left: 0;
  right: 0;
  max-height: 340px;
  overflow: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 38px #24341b26;
  padding: 6px;
}
.client-suggestions button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 13px;
  min-height: 60px;
}
.client-suggestions button:hover,
.client-suggestions button:focus-visible {
  background: #edf1e8;
  outline: 2px solid #7c956f;
  outline-offset: -2px;
}
.client-suggestions span {
  font-size: 11px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  color: var(--muted);
}
.client-suggestions p {
  padding: 12px;
}
.linefields textarea {
  min-height: 76px;
  resize: vertical;
  line-height: 1.5;
}
.save-status {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}
.save-status.saved {
  color: #406b30;
}
.save-status.error {
  color: #a33e30;
}
.saved-service-bar {
  align-items: end;
  margin: 15px 0 8px;
}
.saved-service-bar label {
  flex: 1;
  min-width: 0;
}
.saved-service-bar select {
  max-width: 100%;
}
.contact-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 24px 0;
}
.contact-panels address {
  font-style: normal;
  font-size: 14px;
  line-height: 1.8;
}
.check-field {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  min-height: 44px;
}
.check-field input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  accent-color: #5b744b;
}
.recovery-banner {
  padding: 18px 22px;
  border: 1px solid #d6ddce;
  background: #edf2e6;
  border-radius: 8px;
  margin-bottom: 25px;
}
.recovery-banner span {
  display: block;
  font-size: 12px;
  margin-top: 5px;
  color: var(--muted);
}
.service-library {
  max-height: 260px;
  overflow: auto;
  margin-bottom: 25px;
}
.service-library > div {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-size: 13px;
}
.service-library small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}
.service-library strong {
  overflow-wrap: anywhere;
}
.import-file {
  margin: 20px 0;
}
.import-results {
  max-height: 280px;
  overflow: auto;
  margin: 18px 0;
}
.import-results > div {
  display: grid;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font-size: 12px;
}
.pdf-preview-note {
  padding: 15px 18px;
  background: #edf1e8;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}
.pdf-preview-note a {
  flex-shrink: 0;
}
@media (max-width: 700px) {
  .contact-panels {
    grid-template-columns: 1fr;
  }
  .saved-service-bar,
  .recovery-banner,
  .pdf-preview-note {
    align-items: stretch;
    flex-direction: column;
  }
  .client-toolbar {
    flex-wrap: wrap;
  }
  .client-toolbar .search-wrap {
    min-width: 100%;
  }
  .clientgrid {
    grid-template-columns: 1fr;
  }
  .client-suggestions {
    top: 76px;
  }
  .editor-bottom {
    position: sticky;
    bottom: 70px;
    background: var(--paper);
    padding: 12px 0;
    border-top: 1px solid var(--line);
    z-index: 5;
  }
  .editor-bottom button {
    min-height: 48px;
  }
  .footerline {
    flex-wrap: wrap;
  }
  .footerline .pagination {
    order: 3;
    width: 100%;
    margin: 12px 0 0;
  }
  .fields {
    min-width: 0;
  }
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.field.wide {
  grid-column: 1/-1;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 26px;
}
.summary {
  position: sticky;
  top: 25px;
}
.summary h3 {
  margin-bottom: 23px;
}
.totalrow {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  line-height: 1.5;
  padding: 8px 0;
}
.totalrow.final {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 17px;
  font-size: 22px;
  letter-spacing: -0.5px;
}
.totalrow.final strong {
  font-weight: 500;
}
.note {
  font-size: 11px;
  line-height: 1.65;
  color: var(--muted);
  margin-top: 17px;
}
.lineitems {
  grid-column: 1/-1;
  margin: 8px 0;
}
.lineitem {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.linefields {
  display: grid;
  grid-template-columns: 1fr 70px 125px 80px 36px;
  gap: 12px;
  align-items: end;
}
.remove {
  padding: 4px;
  min-height: 43px;
  color: var(--red);
  border: 0;
  background: none;
  font-size: 20px;
}
.editor-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  grid-column: 1/-1;
  margin-top: 12px;
}
.error {
  color: #a33e30;
  background: #f7e9e3;
  padding: 12px;
  grid-column: 1/-1;
  font-size: 13px;
  line-height: 1.5;
}
.error:empty {
  display: none;
}
.document-layout {
  display: grid;
  grid-template-columns: minmax(0, 850px) minmax(215px, 1fr);
  gap: 35px;
  align-items: start;
}
.paper {
  background: white;
  padding: 40px;
  border: 1px solid #deded2;
  border-top: 5px solid var(--gold);
  box-shadow: 0 5px 16px #25282006;
}
.doc-head {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: flex-start;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.doc-title {
  text-align: right;
}
.doc-title h2 {
  font-family: Georgia, serif;
  font-size: 29px;
}
.doc-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  padding: 27px 0;
  font-size: 12px;
  line-height: 1.8;
}
.doc-meta label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  font-size: 9px;
  margin-bottom: 7px;
}
.doc-meta address {
  font-style: normal;
}
.doc-meta strong {
  font-weight: 600;
}
.doc-dates {
  display: flex;
  gap: 28px;
  font-size: 11px;
  padding-bottom: 22px;
  color: var(--muted);
}
.doc-dates strong {
  color: var(--ink);
  font-weight: 500;
  margin-left: 7px;
}
.paper table td {
  padding-top: 19px;
  padding-bottom: 19px;
}
.doc-totals {
  max-width: 290px;
  margin: 25px 0 25px auto;
}
.doc-end {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted);
}
.doc-pay {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
}
.doc-pay img {
  width: 88px;
  height: 88px;
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 23px 0;
}
.timeline li {
  padding: 0 0 22px 16px;
  border-left: 1px solid #cfd2c7;
  position: relative;
  font-size: 12px;
}
.timeline li:before {
  position: absolute;
  content: "";
  width: 7px;
  height: 7px;
  background: #b7bfaa;
  left: -4px;
  top: 5px;
  border-radius: 50%;
}
.timeline time {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.aside-actions {
  display: grid;
  gap: 10px;
}
.aside-actions button,
.aside-actions .button {
  width: 100%;
}
.clientgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.clientcard h3 {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 8px;
}
.clientcard .amount {
  font-size: 28px;
  margin: 22px 0 6px;
  font-weight: 450;
}
.clientcard button {
  margin-top: 20px;
}
.setupgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.setupgrid h3 {
  margin-bottom: 12px;
}
.settings-list {
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}
.settings-list li {
  border-top: 1px solid var(--line);
  padding: 12px 0;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.payment {
  max-width: 1020px;
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: 1fr 370px;
  gap: 60px;
  align-items: start;
}
.payment h1 {
  font-size: 36px;
}
.payamount {
  font-size: 56px;
  font-weight: 400;
  letter-spacing: -2px;
  margin: 22px 0;
}
.payment .panel {
  padding: 30px;
}
.payment .primary {
  width: 100%;
  margin-top: 24px;
}
.payintro {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.checkmark {
  font-size: 28px;
  width: 57px;
  height: 57px;
  display: grid;
  place-items: center;
  background: #e4eddf;
  border-radius: 50%;
  color: var(--green);
  margin-bottom: 22px;
}
.receipt {
  max-width: 620px;
  margin: 30px auto;
}
.loading {
  padding: 90px 10vw;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #2e382d;
  color: white;
  padding: 13px 22px;
  border-radius: 5px;
  font-size: 13px;
  box-shadow: 0 4px 24px #0002;
  z-index: 20;
  display: none;
  max-width: 90vw;
}
#toast.show {
  display: block;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
  max-width: 610px;
  width: calc(100% - 35px);
  background: var(--paper);
  color: var(--ink);
}
dialog::backdrop {
  background: #19231866;
  backdrop-filter: blur(2px);
}
.modalhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}
.modalhead button {
  border: 0;
  padding: 5px;
  background: none;
  font-size: 21px;
}
.emailbody {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.75;
  background: #f1f1e8;
  padding: 20px;
  margin: 22px 0;
}
.modalactions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 23px;
}
.setup-label {
  display: inline-flex;
  padding: 4px 7px;
  background: #e8eee2;
  color: #426547;
  font-size: 11px;
  margin-bottom: 13px;
}
body.customer .apphead {
  justify-content: center;
}
body.customer .container {
  padding-top: 26px;
}
.wordbreak {
  overflow-wrap: anywhere;
}
@media (min-width: 1450px) {
  .container {
    padding-left: 60px;
    padding-right: 60px;
  }
}
@media (max-width: 1050px) {
  .linefields {
    grid-template-columns: 1fr 60px 110px 75px 30px;
    gap: 8px;
  }
  .editor {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 22px;
  }
  .document-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .history-aside {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 35px;
  }
  .history-aside h3 {
    margin-top: 0;
  }
  .payment {
    gap: 30px;
    grid-template-columns: 1fr 340px;
  }
  .apphead {
    gap: 30px;
  }
  .clientgrid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  h1 {
    font-size: 36px;
  }
  .container {
    padding: 27px 5vw;
  }
  .apphead {
    flex-wrap: wrap;
    padding: 17px 5vw;
    gap: 12px;
  }
  .nav {
    order: 3;
    flex-basis: 100%;
    gap: 25px;
  }
  .connection {
    margin-left: auto;
  }
  .metrics .metric {
    padding: 21px 15px 20px 0;
  }
  .metrics .metric + .metric {
    padding-left: 15px;
  }
  .metric strong {
    font-size: 26px;
  }
  .metric label {
    font-size: 10px;
  }
  .metric small {
    font-size: 10px;
  }
  .editor,
  .payment,
  .setupgrid {
    grid-template-columns: 1fr;
  }
  .summary {
    position: static;
  }
  .linefields {
    grid-template-columns: 1fr 95px 80px 30px;
  }
  .linefields .description {
    grid-column: 1/-1;
  }
  .linefields .quantity {
    grid-column: 1;
  }
  .clientgrid {
    grid-template-columns: 1fr;
  }
  .payment {
    margin-top: 5px;
  }
  .payamount {
    font-size: 47px;
  }
  .payment .panel {
    padding: 25px;
  }
  .paper {
    padding: 26px;
  }
  .hide-tablet {
    display: none;
  }
  .document-layout .brand span {
    display: none;
  }
  .history-aside {
    display: block;
  }
  .history-aside h3 {
    margin-top: 30px;
  }
  .testbar {
    font-size: 10px;
  }
  .testbar span:last-child {
    display: none;
  }
  .doc-meta {
    gap: 20px;
  }
  .brand {
    font-size: 18px;
  }
}
@media (max-width: 490px) {
  .heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .search {
    width: 100%;
  }
  .filters {
    justify-content: flex-start;
  }
  .metrics {
    flex-wrap: wrap;
  }
  .metric {
    flex-basis: 50%;
  }
  .metric:last-child {
    flex-basis: 100%;
    border-left: 0 !important;
    border-top: 1px solid var(--line);
    padding-left: 0 !important;
    display: flex;
    align-items: baseline;
    gap: 15px;
  }
  .metric:last-child strong {
    font-size: 22px;
  }
  .metric:last-child small {
    margin-left: auto;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .field.wide {
    grid-column: auto;
  }
  .paper {
    padding: 20px;
  }
  .doc-head {
    flex-direction: column;
    gap: 20px;
  }
  .doc-title {
    text-align: left;
  }
  .doc-meta {
    grid-template-columns: 1fr;
  }
  .doc-dates {
    gap: 12px;
    flex-wrap: wrap;
  }
  .doc-totals {
    max-width: none;
  }
  .actions {
    width: 100%;
  }
  .actions button,
  .actions .button {
    flex: 1;
  }
  .hide-mobile {
    display: none;
  }
  td {
    padding: 19px 7px;
    font-size: 12px;
  }
  th {
    padding: 12px 7px;
    font-size: 8px;
  }
  .badge {
    font-size: 9px;
    padding: 4px;
  }
  .connection {
    font-size: 10px;
  }
  .brand span {
    font-size: 11px;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  input,
  select,
  textarea {
    font-size: 16px;
  }
  .footerline {
    font-size: 10px;
    gap: 10px;
  }
  .editor-bottom {
    align-items: stretch;
    flex-direction: column;
    gap: 15px;
  }
  dialog {
    padding: 22px;
  }
  .linefields {
    gap: 8px;
  }
  .nav {
    gap: 22px;
  }
  .doc-pay {
    align-items: flex-start;
  }
}
