@charset "UTF-8";
:root {
  font-family: Inter, system-ui, sans-serif;
  color: #273a33;
  background: #f8f7f2;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  --paper: #f8f7f2;
  --green: #294a40;
  --blue: #326580;
  --muted: #66736b;
  --line: #d9deda;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
summary,
select {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: var(--blue);
  text-underline-offset: 4px;
}
a[data-route] {
  text-decoration: none;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #a7b6b4;
  border-radius: 6px;
  background: var(--paper);
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s,
    scale 0.15s;
}
button:not(:disabled):active,
.button:active {
  scale: 0.96;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}
button:hover:not(:disabled),
.secondary:hover {
  background: #e8ece5;
}
.primary {
  background: #d56722;
  color: #240706;
  border: 2px solid #240706;
  box-shadow: 3px 3px 0 #240706;
  border-radius: 0;
  min-height: 50px;
  font-weight: 700;
}
.primary:hover:not(:disabled) {
  background: #e37934;
}
.secondary {
  border-color: #8faaa0;
  color: var(--green);
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}
#main:focus {
  outline: none;
}
[hidden] {
  display: none !important;
}
h1,
h2,
p {
  margin: 0;
}
h1,
h2,
.brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.035em;
}
h1 {
  font-size: 48px;
  line-height: 1.06;
  text-wrap: balance;
}
h2 {
  font-size: 34px;
  line-height: 1.15;
}
p {
  text-wrap: pretty;
  color: var(--muted);
}
.brand {
  font-size: 30px;
  font-weight: 600;
  color: var(--blue);
  line-height: 1.15;
  text-decoration: none;
}
.caption {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.compact {
  gap: 18px;
}
.loading {
  padding: 48px;
  text-align: center;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  background: var(--paper);
  padding: 12px;
  z-index: 10;
}
.skip-link:focus {
  top: 16px;
}
.landing {
  max-width: 1600px;
  margin: auto;
  padding: 38px 6.4% 26px;
  overflow: hidden;
}
.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.landing-header .brand {
  font-size: 34px;
  color: #252d2d;
}
.landing-header .brand span {
  font-family: Inter, sans-serif;
  color: var(--blue);
  font-size: 30px;
}
.hero {
  display: grid;
  grid-template-columns: 54% 46%;
  min-height: 718px;
  align-items: center;
  position: relative;
}
.hero-copy {
  padding: 72px 0;
  position: relative;
  z-index: 1;
}
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--blue);
  font-weight: 500;
}
.hero h1 {
  font-size: clamp(58px, 6.1vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  max-width: 670px;
  margin: 26px 0 36px;
}
.hero em {
  color: var(--blue);
  font-weight: 400;
}
.hero-description {
  font-size: 19px;
  line-height: 30px;
  max-width: 490px;
  margin-bottom: 38px;
}
.hero-copy > .caption {
  margin-top: 20px;
}
.hero-art {
  position: relative;
  height: 616px;
  min-width: 0;
}
.hero-art > img {
  position: absolute;
  width: 150%;
  height: 100%;
  object-fit: cover;
  left: -14%;
  mix-blend-mode: multiply;
}
.sample-invoice {
  position: absolute;
  top: 55%;
  left: 0;
  width: calc(100% - 48px);
  max-width: 382px;
  background: #fdfcf8;
  padding: 26px;
  border-radius: 7px;
  box-shadow:
    0 2px 5px #25332a0d,
    0 18px 44px #25332a21;
}
.sample-invoice h2 {
  margin: 20px 0 6px;
}
.sample-invoice > p:not(.eyebrow) {
  font-size: 14px;
}
.sample-invoice > div {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--blue);
}
.landing-footer {
  display: flex;
  gap: 24px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 13px;
  color: var(--muted);
}
.landing-footer em {
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  color: var(--blue);
  margin-left: auto;
}
.access {
  min-height: 100svh;
  background: url("/assets/access-flowers.webp") center/cover fixed;
  padding: 164px 24px 40px;
}
.back {
  position: absolute;
  left: 40px;
  top: 36px;
  font-size: 14px;
  font-weight: 400;
  color: var(--blue);
  border-color: white;
}
.auth-card {
  width: min(480px, 100%);
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: var(--paper);
  border: 1px solid #fff;
  border-radius: 12px;
  padding: 36px 40px;
  box-shadow:
    0 4px 12px #26382e0d,
    0 24px 56px #26382e1f;
}
.auth-card h1 {
  font-size: 44px;
  line-height: 48px;
}
.auth-card .brand {
  font-size: 28px;
  line-height: 30px;
  margin-bottom: -2px;
}
.auth-card .field {
  font-size: 14px;
  line-height: 20px;
}
.auth-card.standalone {
  margin: 15vh auto;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
}
input,
select {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 10px 14px;
  border: 1px solid #a7b6b4;
  border-radius: 5px;
  background: #fffdf9;
  color: #273a33;
  font-weight: 400;
  font-size: 15px;
  line-height: 22px;
}
input::placeholder {
  color: #66736b;
  opacity: 1;
}
.auth-card input {
  height: 48px;
}
.password-input {
  display: flex;
  border: 1px solid #a7b6b4;
  border-radius: 5px;
  background: #fffdf9;
  align-items: center;
}
.password-input input {
  border: 0;
  background: transparent;
  flex: 1;
  min-width: 0;
}
.password-input button {
  min-height: 46px;
  border: 0;
  background: transparent;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--blue);
}
.password-input:focus-within {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.password-input input:focus-visible {
  outline: none;
}
.forgot {
  justify-content: flex-end;
  font-size: 13px;
  font-weight: 500;
}
.auth-footer {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  min-height: 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}
.auth-footer a {
  font-weight: 600;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.notice,
.message {
  font-size: 14px;
  color: #654429;
  background: #f2e8d8;
  border-radius: 6px;
  padding: 12px 14px;
}
.message {
  border-left: 3px solid #ad6327;
}
.workspace {
  min-height: 100svh;
  background: #183f40 url("/assets/app-flowers.webp") center/cover fixed;
  padding: 32px;
  --width: 1376px;
}
.workspace.narrow {
  --width: 720px;
}
.app-nav {
  display: flex;
  gap: 12px;
  align-items: center;
  width: min(var(--width), 100%);
  margin: 0 auto 20px;
}
.nav-card {
  height: 72px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 18px;
  min-width: 152px;
  border: 1px solid white;
  border-radius: 16px;
  background: var(--paper);
  color: var(--green);
  font-size: 17px;
  font-weight: 600;
  box-shadow: 0 3px 12px #122c351a;
}
.nav-card > span {
  font-size: 25px;
  line-height: 1;
}
.nav-card[aria-current] {
  background: var(--green);
  color: white;
  border-color: #ffffff80;
}
.nav-card.floral {
  background:
    linear-gradient(#f8f7f280, #f8f7f280),
    url("/assets/template-flowers.jpg") 50% 65%/cover;
  color: var(--green);
}
.nav-card.floral[aria-current] {
  outline: 2px solid white;
  outline-offset: 3px;
}
.account-menu {
  margin-left: auto;
  position: relative;
}
.account-menu summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--paper);
  border-radius: 12px;
  padding: 12px 18px;
  min-height: 48px;
}
.account-menu summary::-webkit-details-marker {
  display: none;
}
.account-popover {
  position: absolute;
  right: 0;
  top: 58px;
  min-width: 260px;
  max-width: calc(100vw - 48px);
  background: var(--paper);
  box-shadow: 0 12px 40px #122c3540;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border: 1px solid white;
  border-radius: 12px;
}
.account-popover span {
  font-size: 13px;
  overflow-wrap: anywhere;
  color: var(--muted);
}
.account-popover #account-name:empty {
  display: none;
}
.account-popover #sign-out {
  border-color: var(--line);
  background: transparent;
}
.patient-loading {
  padding-top: 24px;
}
.connection-prompt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 32px 0 16px;
}
.connection-prompt .button {
  min-width: 220px;
  max-width: 100%;
}
.onboarding-form {
  margin-top: 24px;
}
.onboarding-explanation {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.onboarding-explanation h2 {
  font-family: inherit;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: normal;
}
.onboarding-checklist {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: grid;
  gap: 16px;
}
.onboarding-checklist li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
}
.onboarding-checklist li > span:first-child {
  color: var(--green);
  font-size: 20px;
  line-height: 24px;
  font-weight: 600;
}
.onboarding-status {
  display: grid;
  justify-items: start;
  gap: 12px;
  margin: 24px 0;
}
.surface {
  width: min(var(--width), 100%);
  margin: auto;
  padding: 32px 40px;
  background: var(--paper);
  border-radius: 16px;
  box-shadow: 0 12px 40px #122c3526;
}
.narrow .surface {
  padding: 28px 40px;
}
.narrow h1 {
  font-size: 38px;
  line-height: 42px;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.section-header p {
  margin-top: 10px;
}
.status-strip {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-block: 1px solid var(--line);
  padding: 16px 0;
  margin-top: 28px;
  font-size: 14px;
  color: var(--muted);
}
.status-strip span:first-child {
  color: var(--green);
  font-weight: 600;
}
.empty-state {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 20px;
}
.empty-state p {
  max-width: 460px;
}
.empty-flower {
  font-size: 52px;
  color: #7a946f;
  line-height: 1.2;
}
.empty-state.small {
  min-height: 210px;
}
#history-filters {
  margin: 28px 0 20px;
}
.history-filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(140px, 1fr)) auto;
  gap: 16px;
  align-items: end;
}
.history-count {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.actions {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.actions .caption {
  max-width: 470px;
}
.segmented {
  display: flex;
  gap: 10px;
}
.segmented .button {
  flex: 1;
  padding: 12px;
  font-size: 14px;
  min-height: 48px;
}
.selected {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.selected:hover {
  background: #365d50;
}
fieldset {
  padding: 0;
  margin: 0;
  border: 0;
  min-width: 0;
}
fieldset:disabled input,
fieldset:disabled select {
  color: #66736b;
  opacity: 1;
  background: #efefe9;
}
.field-row {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 18px;
}
.recurrence {
  border-block: 1px solid var(--line);
  padding: 16px 0;
}
.recurrence summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
}
.recurrence small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 13px;
}
.recurrence fieldset {
  padding-top: 20px;
}
.switch {
  height: 24px;
  width: 42px;
  background: #c6cdc5;
  border-radius: 20px;
  position: relative;
  flex-shrink: 0;
}
.switch:before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: white;
}
.recurrence[open] summary:after {
  content: "−";
}
.table-heading {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.table-heading {
  color: var(--muted);
  font-size: 13px;
}
.gallery-header h1 {
  font-size: 54px;
}
.gallery-header p {
  margin: 12px 0 16px;
}
.template-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}
.template-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #d9deda;
  box-shadow: none;
  text-align: left;
  justify-content: flex-start;
}
.template-card[aria-pressed="true"] {
  border: 2px solid var(--green);
}
.template-preview {
  display: flex;
  background: #e9eae3;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 272px;
  padding: 13px;
}
.template-preview img {
  width: auto;
  max-width: 100%;
  height: 246px;
  object-fit: contain;
  box-shadow: 0 5px 12px #00000015;
  outline: 1px solid #0000001a;
}
.template-caption {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: stretch;
  padding: 18px 20px;
  flex: 1;
}
.template-caption strong {
  font-size: 16px;
  color: var(--green);
}
.template-choice {
  font-size: 14px;
  color: var(--green);
  font-weight: 500;
}
.template-caption small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.app-message {
  position: sticky;
  bottom: 20px;
  width: min(720px, 100%);
  margin: 20px auto 0;
  padding: 14px 20px;
  background: var(--paper);
  border: 1px solid var(--green);
  border-radius: 8px;
  box-shadow: 0 4px 20px #122c3526;
  color: var(--green);
  font-size: 14px;
}
@media (max-width: 1050px) {
  .history-filter-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  }
  .history-search {
    grid-column: 1 / -1;
  }
  .template-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero {
    min-height: 640px;
  }
  .hero-art {
    height: 520px;
  }
  .sample-invoice {
    width: 100%;
  }
  .hero h1 {
    font-size: 66px;
  }
  .landing-footer {
    flex-wrap: wrap;
  }
  .landing-footer em {
    margin-left: 0;
  }
  .nav-card {
    min-width: 132px;
  }
  .surface {
    padding: 28px;
  }
}
@media (max-width: 760px) {
  h1 {
    font-size: 40px;
  }
  .landing {
    padding: 24px;
  }
  .landing-header {
    gap: 12px;
  }
  .landing-header .brand {
    font-size: 28px;
  }
  .landing-header .text-link {
    font-size: 13px;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero-copy {
    padding: 58px 0 24px;
  }
  .hero h1 {
    font-size: 62px;
    max-width: 540px;
  }
  .hero-description {
    font-size: 17px;
  }
  .hero-art {
    height: 390px;
  }
  .hero-art > img {
    width: 125%;
    left: -12%;
  }
  .sample-invoice {
    left: 6%;
    top: 25%;
    width: 80%;
    max-width: 340px;
  }
  .landing-footer {
    gap: 12px;
    font-size: 12px;
  }
  .landing-footer em {
    width: 100%;
  }
  .access {
    padding: 116px 20px 32px;
    background-attachment: scroll;
  }
  .back {
    left: 20px;
    top: 24px;
  }
  .auth-card {
    padding: 28px 24px;
  }
  .auth-card h1 {
    font-size: 40px;
    line-height: 44px;
  }
  .workspace {
    padding: 20px 16px;
    background-attachment: scroll;
  }
  .app-nav {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
  }
  .nav-card {
    flex: 1;
    min-width: 0;
    height: 58px;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 14px;
    gap: 8px;
  }
  .nav-card > span {
    font-size: 20px;
  }
  .account-menu {
    flex-basis: 100%;
    display: flex;
    justify-content: flex-end;
  }
  .account-menu summary {
    font-size: 13px;
    min-height: 40px;
    padding: 6px 12px;
  }
  .account-popover {
    top: 48px;
  }
  .surface,
  .narrow .surface {
    padding: 24px 20px;
  }
  .section-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
  }
  .section-header > .button,
  .section-header > button {
    font-size: 14px;
  }
  .status-strip {
    flex-direction: column;
    gap: 4px;
  }
  .template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .template-preview {
    height: 220px;
    padding: 12px;
  }
  .template-preview img {
    height: auto;
    max-height: 196px;
    width: 100%;
  }
  .template-caption {
    padding: 14px 12px;
  }
  .template-caption strong {
    font-size: 14px;
  }
  .gallery-header h1 {
    font-size: 40px;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .segmented {
    gap: 8px;
  }
  .segmented .button {
    font-size: 13px;
    line-height: 18px;
    padding: 10px 8px;
  }
  .empty-state {
    padding: 32px 0;
    min-height: 260px;
  }
  .empty-state h2 {
    font-size: 30px;
  }
  .history-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .table-heading {
    gap: 8px;
    font-size: 11px;
  }
  .app-message {
    bottom: 12px;
  }
  .caption {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
  button:not(:disabled):active,
  .button:active {
    scale: 1;
  }
}

/* Invoice preparation and durable Excel review share the same quiet workspace. */
.billing-form {
  max-width: 760px;
  margin: 24px auto 0;
}
.billing-modes {
  width: fit-content;
  margin: 24px 0;
}
.billing-modes button {
  min-width: 160px;
}
.billing-details,
.billing-settings {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.billing-details summary {
  cursor: pointer;
  padding: 12px 0;
  font-weight: 600;
}
.billing-check {
  display: flex;
  align-items: center;
  gap: 12px;
}
.billing-check input,
.billing-table input[type="checkbox"] {
  width: 24px;
  height: 24px;
  accent-color: var(--green);
}
.onboarding-consent {
  align-items: flex-start;
  min-height: 44px;
  font-size: 14px;
  cursor: pointer;
}
.onboarding-consent input {
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}
.excel-drop {
  padding: 32px;
  text-align: center;
  background: #f2f4eb;
  border: 1px dashed #9aa88d;
  border-radius: 16px;
}
.excel-drop .field {
  text-align: left;
  margin: 24px auto 0;
  max-width: 420px;
}
.excel-drop p {
  line-height: 1.6;
  text-wrap: pretty;
}
.billing-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 24px;
  background: #edf1e7;
  border-radius: 16px;
  margin: 24px 0;
}
.billing-summary span {
  display: block;
  color: var(--muted);
  margin-bottom: 10px;
  font-size: 14px;
}
.billing-summary strong {
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}
.billing-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
}
.billing-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
.billing-table th {
  color: var(--muted);
  font-weight: 500;
  padding: 16px 12px;
}
.billing-table td {
  padding: 20px 12px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
.billing-table small {
  display: block;
  line-height: 1.5;
  margin-top: 8px;
  color: var(--muted);
  max-width: 320px;
}
.billing-table .amount {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.billing-table .excluded {
  background: #f4f3ef;
  color: var(--muted);
}
.billing-row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 145px;
}
.billing-row-actions button,
.billing-row-actions .button {
  font-size: 14px;
  min-height: 40px;
  padding: 8px 12px;
}
.billing-error {
  color: #9a3527;
  display: block;
  min-width: 180px;
  max-width: 280px;
  line-height: 1.5;
}
.billing-actions {
  flex-wrap: wrap;
  gap: 12px;
}
.billing-dialog {
  width: min(820px, calc(100vw - 32px));
  max-height: 90vh;
  overflow: auto;
  padding: 28px;
  color: var(--green);
  background: var(--paper);
  border: 0;
  border-radius: 20px;
  box-shadow: 0 24px 80px #0003;
}
.billing-dialog::backdrop {
  background: #17271f80;
}
.billing-dialog > button {
  margin-top: 20px;
}
.billing-preview {
  width: 100%;
  height: 65vh;
  border: 1px solid var(--line);
  background: white;
}
.billing-history a {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
  padding: 24px 8px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--green);
}
.billing-history a:hover {
  background: #edf1e7;
}
#billing[aria-busy="true"] {
  opacity: 0.65;
  cursor: progress;
}
@media (max-width: 700px) {
  .billing-summary {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .billing-modes {
    width: 100%;
  }
  .billing-modes button {
    flex: 1;
    min-width: 0;
  }
  .billing-history a {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .excel-drop {
    padding: 20px;
  }
  .billing-dialog {
    padding: 20px;
  }
}
.billing-form .field-row,
.billing-dialog .field-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.billing-settings .field-row + .field-row {
  margin-top: 20px;
}
#billing:focus {
  outline: none;
}
@media (max-width: 700px) {
  .billing-form .field-row,
  .billing-dialog .field-row {
    grid-template-columns: 1fr;
  }
  .billing-table,
  .billing-table tbody {
    display: block;
  }
  .billing-table thead {
    display: none;
  }
  .billing-table tr {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    border-top: 1px solid var(--line);
    padding: 20px 0;
    gap: 12px;
  }
  .billing-table td {
    grid-column: 2;
    padding: 0;
    border: 0;
  }
  .billing-table td:first-child {
    grid-column: 1;
    grid-row: 1 / 3;
  }
  .billing-table td:nth-child(2)::before {
    content: "Fila ";
  }
  .billing-table td:nth-child(4)::before {
    content: "Total: ";
  }
  .billing-table .billing-error {
    min-width: 0;
  }
  .billing-row-actions {
    min-width: 0;
  }
}
