:root {
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
    sans-serif;
  color: #232c3d;
  background: #f7f8fa;
  font-synthesis: none;
  --blue: #3663db;
  --muted: #7d8798;
  --line: #e9ecf1;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
  min-height: 44px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
a {
  color: var(--blue);
}
#app {
  max-width: 640px;
  margin: auto;
  padding: calc(24px + env(safe-area-inset-top)) 22px
    calc(115px + env(safe-area-inset-bottom));
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 27px;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
}
.mark {
  display: grid;
  place-items: center;
  background: #e8edfb;
  color: var(--blue);
  border-radius: 11px;
  width: 34px;
  height: 34px;
  font-size: 18px;
}
.badge {
  font-size: 11px;
  color: #647187;
  background: #eef1f5;
  padding: 6px 10px;
  border-radius: 20px;
}
.badge.ok {
  color: #33816b;
  background: #e9f4ef;
}
.eyebrow {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1px;
  margin: 0 0 8px;
}
h1 {
  font-size: 31px;
  letter-spacing: -1px;
  line-height: 1.2;
  margin: 0;
  font-weight: 700;
}
h2 {
  font-size: 16px;
  margin: 0;
}
h3 {
  font-size: 14px;
  margin: 0;
}
.pagehead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 23px;
}
.primary {
  background: var(--blue);
  color: white;
  border-radius: 12px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 3px 8px #3663db18;
}
.plus {
  font-size: 24px;
  vertical-align: -2px;
  margin-right: 4px;
}
.summary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 26px;
}
.summarytop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.label {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 7px;
}
.amount {
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.currency {
  font-size: 18px;
  font-weight: 400;
  margin-right: 4px;
}
.smalltag {
  font-size: 11px;
  padding: 5px 8px;
  background: #f3f5f9;
  border-radius: 6px;
  color: #8390a5;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 21px 16px;
  padding-top: 19px;
}
.grid strong {
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.grid .label {
  margin-bottom: 6px;
}
.dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-right: 5px;
  background: #91a9e8;
}
.dot.green {
  background: #70ac96;
}
.sectionhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 10px;
}
.sectionhead span {
  font-size: 12px;
  color: var(--muted);
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.rowicon {
  height: 38px;
  width: 38px;
  flex-shrink: 0;
  background: #eaf0fc;
  color: #4970c5;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 17px;
}
.rowicon.receipt {
  background: #eaf4ee;
  color: #3b967a;
}
.rowicon.payment {
  background: #f2eef9;
  color: #8e70ac;
}
.rowicon.purchase {
  background: #f3ede7;
  color: #a68054;
}
.rowicon.reversal {
  background: #f1f2f4;
  color: #8d96a5;
}
.rowmain {
  flex: 1;
  min-width: 0;
}
.row h3 {
  font-size: 14px;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.row p {
  font-size: 11px;
  color: var(--muted);
  margin: 6px 0 0;
  line-height: 1.5;
}
.rowright {
  text-align: right;
  font-size: 14px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.rowright small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.rowright button {
  font-size: 11px;
  color: var(--muted);
  padding: 0;
  min-height: 28px;
}
.empty {
  padding: 35px 18px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
  border: 1px dashed #dce1eb;
  border-radius: 14px;
  margin-top: 16px;
}
.footer-note {
  font-size: 11px;
  color: #98a1b0;
  text-align: center;
  margin-top: 24px;
}
.toolbar {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.toolbar input {
  max-width: 140px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
}
.toolbar a {
  text-decoration: none;
}
.nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  background: #ffffffed;
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  padding: 8px 12px calc(10px + env(safe-area-inset-bottom));
  z-index: 3;
}
.nav button {
  width: min(33%, 190px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #9ba3b1;
  min-height: 47px;
}
.nav svg {
  height: 21px;
  width: 21px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
}
.nav button.active {
  color: var(--blue);
}
.nav button.active:after {
  content: "";
  height: 3px;
  width: 14px;
  background: var(--blue);
  border-radius: 2px;
  margin-top: 2px;
}
.hint {
  font-size: 12px;
  line-height: 1.8;
  color: #788597;
  background: #edf1f7;
  border-radius: 11px;
  padding: 12px 14px;
  margin: 16px 0;
}
.hint.warning {
  background: #fff3de;
  color: #8d692c;
}
.tabs {
  display: flex;
  background: #e9edf3;
  border-radius: 11px;
  padding: 4px;
  margin: 23px 0;
}
.tabs button {
  flex: 1;
  font-size: 14px;
  min-height: 39px;
  border-radius: 8px;
}
.tabs .selected {
  background: white;
  color: var(--blue);
  box-shadow: 0 2px 5px #19243e0a;
}
form {
  background: white;
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 16px;
}
label {
  display: block;
  font-size: 12px;
  color: #768297;
  margin: 0 0 18px;
}
input,
select,
textarea {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid #e0e5ee;
  border-radius: 9px;
  background: #fcfcfd;
  color: #263149;
  font-size: 16px;
  min-height: 46px;
  outline: none;
}
input:focus,
textarea:focus {
  border-color: #7c9ceb;
}
textarea {
  min-height: 70px;
  resize: vertical;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
form .primary {
  width: 100%;
  margin-top: 5px;
}
.back {
  font-size: 13px;
  color: var(--blue);
  padding: 0;
  margin-bottom: 12px;
}
.total {
  background: #f5f7fb;
  padding: 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
}
.total strong {
  font-size: 20px;
}
#notice {
  position: fixed;
  bottom: calc(92px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  background: #26334a;
  color: white;
  border-radius: 12px;
  padding: 12px 17px;
  max-width: 90%;
  width: max-content;
  box-shadow: 0 5px 20px #19243e20;
  z-index: 6;
  font-size: 13px;
  display: none;
}
#notice.visible {
  display: block;
}
#notice button {
  color: #aacaff;
  margin-left: 12px;
  min-height: 24px;
}
.login {
  padding-top: 70px;
}
.login h1 {
  margin-top: 24px;
}
.login p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
}
.avatar {
  background: #edf0f6;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #7281a0;
}
.customerbtn {
  width: 100%;
  text-align: left;
  padding-left: 0;
  padding-right: 0;
}
.balance {
  font-size: 40px;
  font-weight: 650;
  letter-spacing: -1px;
  margin: 20px 0;
}
.copy {
  width: 100%;
  margin: 0 0 25px;
}
.error {
  color: #9d482e;
  font-size: 13px;
  line-height: 1.7;
}
.demo {
  color: #a67b37;
  background: #fff6df;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 12px;
  margin-bottom: 17px;
}
.muted {
  color: var(--muted);
}
.linkbutton {
  color: var(--blue);
  font-size: 12px;
  padding: 0;
}
.readonly {
  font-size: 12px;
  color: var(--muted);
}
@media (min-width: 700px) {
  #app {
    padding-top: 40px;
  }
  .summary {
    padding: 25px;
  }
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .nav {
    max-width: 640px;
    margin: auto;
    border: 1px solid var(--line);
    border-radius: 18px 18px 0 0;
  }
}
.daypicker {
  width: 132px;
  font-size: 11px;
  min-height: 32px;
  padding: 6px 8px;
  margin: 0;
  background: transparent;
  border-color: var(--line);
}
.suggestions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: -8px 0 18px;
}
.suggestions button {
  border: 1px solid #e5eaf3;
  background: #f6f8fc;
  padding: 0 10px;
  min-height: 34px;
  border-radius: 8px;
  font-size: 12px;
  color: #657ca8;
}
