/* stylelint-disable */
html,
body {
  width: 100%;
  height: 100%;
}
input::-ms-clear,
input::-ms-reveal {
  display: none;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  font-family: sans-serif;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -ms-overflow-style: scrollbar;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
  margin: 0;
}
[tabindex='-1']:focus {
  outline: none;
}
hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-weight: 500;
}
p {
  margin-top: 0;
  margin-bottom: 1em;
}
abbr[title],
abbr[data-original-title] {
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
  border-bottom: 0;
  cursor: help;
}
address {
  margin-bottom: 1em;
  font-style: normal;
  line-height: inherit;
}
input[type='text'],
input[type='password'],
input[type='number'],
textarea {
  -webkit-appearance: none;
}
ol,
ul,
dl {
  margin-top: 0;
  margin-bottom: 1em;
}
ol ol,
ul ul,
ol ul,
ul ol {
  margin-bottom: 0;
}
dt {
  font-weight: 500;
}
dd {
  margin-bottom: 0.5em;
  margin-left: 0;
}
blockquote {
  margin: 0 0 1em;
}
dfn {
  font-style: italic;
}
b,
strong {
  font-weight: bolder;
}
small {
  font-size: 80%;
}
sub,
sup {
  position: relative;
  font-size: 75%;
  line-height: 0;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}
pre,
code,
kbd,
samp {
  font-size: 1em;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
}
pre {
  margin-top: 0;
  margin-bottom: 1em;
  overflow: auto;
}
figure {
  margin: 0 0 1em;
}
img {
  vertical-align: middle;
  border-style: none;
}
a,
area,
button,
[role='button'],
input:not([type='range']),
label,
select,
summary,
textarea {
  touch-action: manipulation;
}
table {
  border-collapse: collapse;
}
caption {
  padding-top: 0.75em;
  padding-bottom: 0.3em;
  text-align: left;
  caption-side: bottom;
}
input,
button,
select,
optgroup,
textarea {
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
}
button,
input {
  overflow: visible;
}
button,
select {
  text-transform: none;
}
button,
html [type='button'],
[type='reset'],
[type='submit'] {
  -webkit-appearance: button;
}
button::-moz-focus-inner,
[type='button']::-moz-focus-inner,
[type='reset']::-moz-focus-inner,
[type='submit']::-moz-focus-inner {
  padding: 0;
  border-style: none;
}
input[type='radio'],
input[type='checkbox'] {
  box-sizing: border-box;
  padding: 0;
}
input[type='date'],
input[type='time'],
input[type='datetime-local'],
input[type='month'] {
  -webkit-appearance: listbox;
}
textarea {
  overflow: auto;
  resize: vertical;
}
fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
legend {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-bottom: 0.5em;
  padding: 0;
  color: inherit;
  font-size: 1.5em;
  line-height: inherit;
  white-space: normal;
}
progress {
  vertical-align: baseline;
}
[type='number']::-webkit-inner-spin-button,
[type='number']::-webkit-outer-spin-button {
  height: auto;
}
[type='search'] {
  outline-offset: -2px;
  -webkit-appearance: none;
}
[type='search']::-webkit-search-cancel-button,
[type='search']::-webkit-search-decoration {
  -webkit-appearance: none;
}
::-webkit-file-upload-button {
  font: inherit;
  -webkit-appearance: button;
}
output {
  display: inline-block;
}
summary {
  display: list-item;
}
template {
  display: none;
}
[hidden] {
  display: none !important;
}

:root {
  color-scheme: light;
  background: #f5f7f9;
}

body {
  min-width: 320px;
  margin: 0;
  background: #f5f7f9;
}

a {
  color: inherit;
}

.app-shell {
  min-height: 100vh;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 64px;
  padding: 0 18px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: #0f766e;
  color: #fff;
  font-weight: 800;
}

.brand-name {
  white-space: nowrap;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 24px;
  border-bottom: 1px solid #e6e8eb;
}

.user-button {
  height: auto;
  padding: 6px 8px;
}

.user-text {
  display: grid;
  text-align: left;
  line-height: 1.15;
}

.user-text small {
  color: #667085;
  font-size: 12px;
}

.page-wrap {
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.page-heading h1,
.public-panel h1 {
  margin: 4px 0 0;
}

.stack {
  display: grid;
  gap: 16px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.metric-card .ant-statistic-content {
  font-weight: 700;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}

.line-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1.6fr) 100px 140px minmax(160px, 1fr) minmax(150px, 1fr) 40px;
  gap: 10px;
  align-items: start;
}

.journal-line-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) 130px 130px minmax(150px, 1fr) minmax(150px, 1fr) 40px;
  gap: 10px;
  align-items: start;
}

.public-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.12), transparent 34rem),
    #f5f7f9;
}

.public-panel {
  width: 100%;
}

.public-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-weight: 800;
}

.public-content {
  margin-top: 24px;
}

.empty-card {
  text-align: center;
}

.invoice-document {
  background: #fff;
}

.invoice-total-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 16px;
}

/* ---- bank transfer card ---- */

.bank-card .ant-card-head-title {
  font-size: 17px;
}

.bank-card-icon {
  color: #0f766e;
}

.bank-intro {
  display: block;
  margin-bottom: 20px;
  font-size: 14px;
}

.bank-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.bank-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid #e6eaec;
  border-radius: 10px;
  background: #f8fafa;
}

.bank-field-wide {
  grid-column: 1 / -1;
}

.bank-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
}

.bank-value {
  font-size: 20px;
  font-weight: 700;
  color: #18181b;
  line-height: 1.2;
}

.bank-value-mono {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}

/* ---- print / save as PDF ---- */

@media print {
  .no-print {
    display: none !important;
  }

  .public-shell {
    min-height: auto;
    padding: 0;
    background: #fff;
    display: block;
  }

  .public-content {
    margin-top: 12px;
  }

  .invoice-document,
  .bank-card {
    box-shadow: none !important;
    break-inside: avoid;
  }

  .bank-field {
    background: #fff;
  }
}

@media (max-width: 900px) {
  .metric-grid,
  .two-col,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .line-grid,
  .journal-line-grid {
    grid-template-columns: 1fr;
  }

  .page-heading {
    display: grid;
  }

  .page-wrap {
    width: min(100% - 24px, 1180px);
    padding-top: 18px;
  }

  .topbar {
    padding: 0 12px;
  }

  .user-text {
    display: none;
  }
}
