:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: #17211d;
  background: #f5f7f4;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #e7b44788;
  outline-offset: 2px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
a {
  color: inherit;
  text-decoration: none;
}

header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  padding: 0 5vw;
  color: white;
  background: #10271f;
  border-bottom: 3px solid #e7b447;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  justify-self: start;
  padding: 0;
  color: white;
  text-align: left;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #10271f;
  font-weight: 900;
  border-radius: 10px;
  background: #e7b447;
}
.brand b,
.brand small {
  display: block;
}
.brand small {
  margin-top: 2px;
  color: #b9c8c1;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
nav {
  display: flex;
  align-self: stretch;
}
nav button {
  min-width: 110px;
  padding: 0 18px;
  color: #c8d4cf;
  font-weight: 700;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  cursor: pointer;
}
nav button:hover,
nav button.active {
  color: white;
  border-bottom-color: #e7b447;
  background: #ffffff0a;
}
.signout {
  justify-self: end;
  padding: 8px 13px;
  color: #dce5e1;
  border: 1px solid #ffffff2b;
  border-radius: 99px;
  background: transparent;
  cursor: pointer;
}

.page {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
  padding-bottom: 70px;
}
.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: 62px 0 34px;
}
.hero h1,
.composer h1,
.simple h1,
.login-card h1 {
  margin-bottom: 12px;
  font-family: Georgia, serif;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.04em;
}
.hero p:not(.kicker),
.composer-title p:not(.kicker),
.simple > p:not(.kicker) {
  margin-bottom: 0;
  color: #67726c;
  font-size: 17px;
  line-height: 1.55;
}
.kicker {
  margin-bottom: 10px;
  color: #176b4d;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.primary,
.secondary,
.danger-link,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  font-weight: 800;
  border-radius: 9px;
  cursor: pointer;
}
.primary {
  color: white;
  border: 1px solid #176b4d;
  background: #176b4d;
  box-shadow: 0 3px 0 #0d4e37;
}
.primary:hover {
  background: #0d4e37;
}
.primary.large {
  min-height: 52px;
  padding: 0 22px;
}
.secondary {
  color: #17211d;
  border: 1px solid #cbd4cf;
  background: white;
}
.secondary:hover {
  border-color: #8fa098;
}
.danger-link,
.text-button {
  min-height: 36px;
  padding: 0;
  color: #176b4d;
  border: 0;
  background: transparent;
}
.danger-link {
  color: #9f3129;
}

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
  padding: 16px;
  overflow-x: auto;
  color: #65726c;
  font-size: 13px;
  white-space: nowrap;
  border: 1px solid #dfe5e1;
  border-radius: 12px;
  background: white;
}
.steps b:first-child {
  color: #176b4d;
}
.steps span {
  color: #a6afaa;
}
.summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 38px;
}
.summary article {
  padding: 22px;
  border: 1px solid #dfe5e1;
  border-radius: 14px;
  background: white;
  box-shadow: 0 8px 30px #192b2308;
}
.summary small,
.summary strong,
.summary span {
  display: block;
}
.summary small {
  color: #68736d;
  font-weight: 700;
}
.summary strong {
  margin: 9px 0;
  font-family: Georgia, serif;
  font-size: 29px;
}
.summary span {
  color: #7b8580;
  font-size: 12px;
}

.accountant-package {
  display: grid;
  grid-template-columns: 1fr minmax(150px, 190px) auto;
  align-items: end;
  gap: 18px;
  margin-bottom: 28px;
  padding: 24px;
  color: #f8fff9;
  border-radius: 16px;
  background: #173f32;
  box-shadow: 0 10px 30px #173f3220;
}
.accountant-package h2,
.accountant-package p {
  margin: 0;
}
.accountant-package h2 {
  margin-bottom: 6px;
  font-family: Georgia, serif;
  font-size: 28px;
}
.accountant-package p:not(.kicker) {
  color: #d3e5dc;
  font-size: 13px;
}
.accountant-package .kicker {
  color: #94d8b8;
}
.accountant-package label {
  color: #f8fff9;
}
.accountant-package select {
  margin-top: 6px;
  background: white;
}
.accountant-package .primary {
  color: #173f32;
  border-color: #f3c96b;
  background: #f3c96b;
  box-shadow: 0 3px 0 #c59a3d;
  white-space: nowrap;
}

.panel {
  margin-bottom: 28px;
  overflow: hidden;
  border: 1px solid #dfe5e1;
  border-radius: 16px;
  background: white;
}
.panel-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border-bottom: 1px solid #dfe5e1;
}
.panel-title h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 30px;
}
.panel-title > p {
  max-width: 350px;
  margin: 0;
  color: #68736d;
  font-size: 13px;
  text-align: right;
}
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #68736d;
  font-size: 12px;
  font-weight: 750;
}
.search input {
  width: 190px;
}
.invoice-card {
  padding: 21px 24px;
  border-bottom: 1px solid #dfe5e1;
}
.invoice-card:last-child {
  border-bottom: 0;
}
.invoice-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.invoice-main h3 {
  margin: 7px 0 4px;
}
.invoice-main p {
  margin: 0;
  color: #68736d;
  font-size: 14px;
}
.amount {
  text-align: right;
}
.amount strong,
.amount span {
  display: block;
}
.amount strong {
  font-family: Georgia, serif;
  font-size: 22px;
}
.amount span {
  margin-top: 3px;
  color: #68736d;
  font-size: 12px;
}
.badge {
  display: inline-block;
  padding: 4px 8px;
  color: #725f24;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  border-radius: 99px;
  background: #fff3c9;
}
.badge.paid {
  color: #176b4d;
  background: #dff4e9;
}
.badge.void {
  color: #69736e;
  background: #e9ecea;
}
.badge.overdue {
  color: #9f3129;
  background: #fde5e1;
}
.invoice-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
.payment-form {
  display: grid;
  grid-template-columns: auto 130px 165px minmax(130px, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin-top: 18px;
  padding: 15px;
  border-radius: 11px;
  background: #f1f5f2;
}
.stripe-box,
.stripe-settings {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #d8e3dc;
  border-radius: 12px;
  background: #f5faf6;
}
.email-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #d8e3dc;
  border-radius: 12px;
  background: #f7faf8;
}
.email-box > div:first-child {
  display: grid;
  gap: 4px;
}
.email-box span {
  color: #66726c;
  font-size: 13px;
}
.email-box.provider_accepted {
  border-color: #9bcdb0;
  background: #edf8f1;
}
.email-box.failed {
  border-color: #e6b3ae;
  background: #fdf2f0;
}
.email-box details {
  max-width: 55%;
}
.email-box summary {
  color: #176b4d;
  font-weight: 750;
  cursor: pointer;
}
.email-box pre {
  max-height: 260px;
  overflow: auto;
  padding: 12px;
  white-space: pre-wrap;
  border-radius: 8px;
  background: white;
}
.email-connect-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.stripe-box.preferred {
  border-width: 2px;
  border-color: #176b4d;
  background: #edf8f1;
}
.stripe-box > div:first-child,
.stripe-settings > div:first-child {
  display: grid;
  gap: 4px;
}
.stripe-box span,
.stripe-settings p {
  margin: 0;
  color: #66726c;
  font-size: 13px;
}
.stripe-settings {
  margin-top: 22px;
  background: white;
}
.stripe-settings h2 {
  margin: 0 0 8px;
}
.stripe-status {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 999px;
  background: #ecefed;
  color: #68736d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.stripe-status.connected {
  background: #dff3e5;
  color: #12633e;
}
.stripe-error {
  color: #9c3f39 !important;
}
.payment-form > b {
  align-self: center;
}
.payment-form label,
.card-form label,
.grid label,
.line-row label,
.tax-row label {
  display: grid;
  gap: 6px;
  color: #435049;
  font-size: 12px;
  font-weight: 750;
}
input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  color: #17211d;
  border: 1px solid #cbd4cf;
  border-radius: 8px;
  background: white;
}
textarea {
  min-height: 88px;
  resize: vertical;
}
.void-note {
  margin: 14px 0 0;
  color: #8c413c;
  font-size: 13px;
}
.empty {
  padding: 60px 24px;
  color: #68736d;
  text-align: center;
}
.payment-history > div {
  display: grid;
  grid-template-columns: 130px 1fr 1fr 140px 90px;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid #dfe5e1;
}
.payment-history > div:last-child {
  border-bottom: 0;
}
.payment-history small {
  display: block;
  margin-top: 3px;
  color: #68736d;
  text-transform: capitalize;
}
.payment-history .corrected {
  color: #8a938f;
  text-decoration: line-through;
  background: #fafbfa;
}
.payment-history em {
  font-size: 12px;
  text-decoration: none;
}

.toast {
  position: sticky;
  z-index: 3;
  top: 10px;
  width: fit-content;
  max-width: calc(100% - 30px);
  margin: 10px auto -52px;
  padding: 12px 17px;
  color: white;
  font-weight: 750;
  border-radius: 9px;
  background: #183f31;
  box-shadow: 0 8px 25px #0003;
}
.composer,
.simple {
  padding: 56px 0 0;
}
.composer-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}
.total-box {
  min-width: 230px;
  padding: 18px 22px;
  text-align: right;
  border: 1px solid #dfe5e1;
  border-radius: 12px;
  background: white;
}
.total-box small,
.total-box strong {
  display: block;
}
.total-box small {
  color: #68736d;
}
.total-box strong {
  margin-top: 5px;
  font-family: Georgia, serif;
  font-size: 27px;
}
#invoice-form {
  overflow: hidden;
  border: 1px solid #dfe5e1;
  border-radius: 16px;
  background: white;
}
.form-section {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 28px;
  border-bottom: 1px solid #dfe5e1;
}
.number {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: white;
  font-weight: 850;
  border-radius: 50%;
  background: #176b4d;
}
.form-section h2 {
  margin: 5px 0 20px;
  font-family: Georgia, serif;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.grid .wide {
  grid-column: 1 / -1;
}
label small {
  color: #7c8781;
  font-weight: 500;
}
.line-row {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(230px, 1.3fr) 170px 90px 130px 34px;
  align-items: end;
  gap: 12px;
  margin-bottom: 12px;
}
.line-row.percentage-line {
  grid-template-columns: minmax(180px, 1fr) minmax(210px, 1.15fr) 145px 155px 100px 135px 34px;
  padding: 16px;
  border: 1px solid #b8d7ca;
  border-radius: 12px;
  background: #f3faf6;
}
.line-row .service-picker,
.line-row .description-field {
  min-width: 0;
}
.calculated-fee {
  display: grid;
  align-self: stretch;
  align-content: end;
  gap: 7px;
}
.calculated-fee span {
  color: #435049;
  font-size: 12px;
  font-weight: 750;
}
.calculated-fee strong {
  display: flex;
  min-height: 42px;
  align-items: center;
  padding: 9px 11px;
  color: #0d5b3e;
  border: 1px solid #b8d7ca;
  border-radius: 8px;
  background: white;
}
.tax-row {
  display: grid;
  grid-template-columns: minmax(180px, 300px) 140px 34px;
  align-items: end;
  gap: 12px;
  margin-bottom: 12px;
}
.tax-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.invoice-shortcuts {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.remove {
  width: 34px;
  height: 42px;
  color: #99443e;
  font-size: 22px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.helper {
  margin: -10px 0 18px;
  color: #68736d;
  font-size: 13px;
}
.form-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  padding: 22px 28px;
  background: #f4f7f4;
}
.form-footer .secondary {
  margin-right: auto;
}
.form-footer > span {
  color: #68736d;
  font-size: 12px;
}

.simple > p:not(.kicker) {
  max-width: 650px;
}
.two-column {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  align-items: start;
  gap: 24px;
  margin-top: 36px;
}
.card-form {
  display: grid;
  gap: 16px;
  padding: 25px;
  border: 1px solid #dfe5e1;
  border-radius: 14px;
  background: white;
}
.card-form h2 {
  margin-bottom: 5px;
  font-family: Georgia, serif;
}
.service-edit-backdrop {
  position: fixed;
  z-index: 30;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #10271fb8;
  cursor: default;
  backdrop-filter: blur(3px);
}
.service-editor-modal {
  position: fixed;
  z-index: 31;
  top: 50%;
  left: 50%;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  border: 3px solid #176b4d;
  box-shadow: 0 26px 80px #07140f80;
  transform: translate(-50%, -50%);
}
.client-list {
  display: grid;
  gap: 10px;
}
.client-list article {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px;
  border: 1px solid #dfe5e1;
  border-radius: 12px;
  background: white;
}
.client-list article > div {
  min-width: 0;
  flex: 1;
}
.form-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.service-list {
  display: grid;
  gap: 20px;
}
.service-list section {
  display: grid;
  gap: 8px;
}
.service-list section > h2 {
  margin: 0 0 4px;
  color: #176b4d;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.service-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid #dfe5e1;
  border-radius: 12px;
  background: white;
}
.service-list h3,
.service-list p {
  margin: 0;
}
.service-list p {
  margin-top: 4px;
  color: #68736d;
  font-size: 13px;
}
.client-list h3,
.client-list p {
  margin: 0 0 3px;
}
.client-list p,
.client-list small {
  color: #68736d;
}
.permission-box,
.recipient-picker {
  display: grid;
  gap: 14px;
  margin: 8px 0;
  padding: 18px;
  border: 1px solid #d8e0dc;
  border-radius: 12px;
  background: #f7f9f7;
}
.permission-box legend,
.recipient-picker legend {
  padding: 0 8px;
  font-weight: 850;
}
.permission-box > p,
.campaign-safety span,
.legal-note p {
  margin: 0;
  color: #68736d;
  line-height: 1.5;
}
.permission-badge {
  display: inline-flex;
  width: fit-content;
  margin-top: 7px;
  padding: 4px 8px;
  color: #70541a;
  font-size: 11px;
  font-weight: 850;
  border-radius: 99px;
  background: #fff0c8;
}
.permission-badge.allowed {
  color: #0d5b3e;
  background: #dff3e9;
}
.permission-badge.blocked {
  color: #8a2822;
  background: #fde5e1;
}
.campaign-safety {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 28px 0;
  padding: 18px 20px;
  border-left: 5px solid #e7b447;
  border-radius: 10px;
  background: white;
}
.recipient-picker > div {
  display: grid;
  max-height: 310px;
  overflow: auto;
  border: 1px solid #dfe5e1;
  border-radius: 9px;
  background: white;
}
.recipient-picker label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-bottom: 1px solid #edf0ee;
}
.recipient-picker label:last-child {
  border-bottom: 0;
}
.recipient-picker input {
  width: 18px;
  height: 18px;
}
.recipient-picker span,
.recipient-picker small {
  display: block;
}
.recipient-picker small {
  margin-top: 2px;
  color: #68736d;
}
.recipient-picker .select-all {
  font-weight: 850;
  border: 0;
}
.campaign-history {
  display: grid;
  align-content: start;
  gap: 12px;
}
.campaign-history > h2 {
  margin-bottom: 2px;
}
.campaign-history article {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid #dfe5e1;
  border-radius: 12px;
  background: white;
}
.campaign-history h3,
.campaign-history p {
  margin: 7px 0 3px;
}
.campaign-history small {
  color: #68736d;
}
.campaign-history details {
  margin-top: 10px;
}
.campaign-history summary {
  color: #176b4d;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.campaign-history pre {
  max-width: 520px;
  padding: 12px;
  overflow: auto;
  white-space: pre-wrap;
  font: 12px/1.45 ui-monospace, monospace;
  border-radius: 8px;
  background: #f5f7f4;
}
.campaign-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}
.legal-note {
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid #dfe5e1;
  border-radius: 12px;
  background: #fffdf8;
}
.legal-note p {
  margin-top: 6px;
}
.avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  color: white;
  font-weight: 850;
  border-radius: 10px;
  background: #176b4d;
}
.settings {
  max-width: 840px;
  margin-top: 36px;
}

.login-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at top, #245540, #0c2119 70%);
}
.login-card {
  width: min(460px, 100%);
  padding: 38px;
  border-radius: 18px;
  background: white;
  box-shadow: 0 25px 80px #0005;
}
.login-card .brand-mark {
  margin-bottom: 24px;
}
.login-card h1 {
  font-size: 48px;
}
.login-card > p:not(.kicker) {
  color: #68736d;
  line-height: 1.5;
}
.login-card label {
  display: grid;
  gap: 7px;
  margin: 24px 0 16px;
  font-weight: 750;
}
.login-card .primary {
  width: 100%;
}
.login-card > small {
  display: block;
  margin-top: 18px;
  color: #68736d;
  text-align: center;
}
.notice.error {
  margin: 16px 0;
  padding: 10px;
  color: #8a2822;
  border-radius: 8px;
  background: #fde5e1;
}

@media (max-width: 850px) {
  header {
    grid-template-columns: 1fr auto;
    padding: 12px 20px;
  }
  nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
  }
  nav button {
    min-height: 42px;
    min-width: 0;
    padding: 0 12px;
  }
  .summary {
    grid-template-columns: 1fr;
  }
  .accountant-package {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .panel-title,
  .composer-title {
    align-items: stretch;
    flex-direction: column;
  }
  .panel-title > p {
    text-align: left;
  }
  .actions {
    justify-content: flex-start;
  }
  .payment-form {
    grid-template-columns: 1fr 1fr;
  }
  .email-box {
    align-items: stretch;
    flex-direction: column;
  }
  .email-box details {
    max-width: none;
  }
  .line-row {
    grid-template-columns: 1fr 1fr;
  }
  .line-row.percentage-line {
    grid-template-columns: 1fr 1fr;
  }
  .line-row .service-picker,
  .line-row .description-field {
    grid-column: 1 / -1;
  }
  .payment-form > b {
    grid-column: 1 / -1;
  }
  .two-column {
    grid-template-columns: 1fr;
  }
  .campaign-safety,
  .campaign-history article {
    align-items: stretch;
    flex-direction: column;
  }
  .payment-history > div {
    grid-template-columns: 110px 1fr 120px;
  }
  .payment-history > div > :nth-child(3),
  .payment-history > div > :nth-child(5) {
    display: none;
  }
}

@media (max-width: 600px) {
  header {
    padding: 12px;
  }
  nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  nav button {
    padding: 0 4px;
    font-size: 12px;
  }
  .campaign-actions {
    flex-direction: column;
  }
  .page {
    width: min(100% - 24px, 1180px);
  }
  .steps {
    display: grid;
    justify-content: stretch;
    gap: 9px;
    overflow: visible;
    white-space: normal;
  }
  .steps span {
    display: none;
  }
  .hero {
    align-items: stretch;
    flex-direction: column;
    padding-top: 38px;
  }
  .actions,
  .search {
    width: 100%;
  }
  .search input {
    width: 100%;
  }
  .actions .secondary {
    flex: 1;
  }
  .accountant-package .primary {
    width: 100%;
  }
  .invoice-card {
    padding: 18px;
  }
  .invoice-main {
    align-items: flex-start;
  }
  .invoice-buttons,
  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }
  .payment-form,
  .grid,
  .line-row,
  .tax-row {
    grid-template-columns: 1fr;
  }
  .line-row.percentage-line {
    grid-template-columns: 1fr;
  }
  .payment-form > b {
    grid-column: auto;
  }
  .form-section {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }
  .form-footer .secondary {
    width: 100%;
    margin: 0;
  }
  .total-box {
    min-width: 0;
    text-align: left;
  }
  .remove {
    width: 100%;
  }
  .signout {
    font-size: 12px;
  }
}
