:root {
  color-scheme: light;
  --ink: #222438;
  --muted: #656a7f;
  --line: #e0e3ed;
  --purple: #5546d8;
  --wash: #f6f7fb;
  --lilac: #efedfc;
  --green: #266d57;
  --radius: 14px;
  font:
    15px/1.5 'PingFang SC',
    'Microsoft YaHei',
    'Noto Sans CJK SC',
    Arial,
    sans-serif;
  color: var(--ink);
  background: var(--wash);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #8c7df6;
  outline-offset: 3px;
}
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}
button {
  border: none;
  background: none;
}
svg {
  flex: none;
}
h1,
h2,
h3 {
  line-height: 1.35;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 15px;
}
[hidden] {
  display: none !important;
}
.initial {
  min-height: 66vh;
  display: grid;
  gap: 12px;
  place-content: center;
  text-align: center;
  justify-items: center;
  color: var(--muted);
}
#skip,
.sr-only {
  position: absolute;
  left: -9999px;
}
#skip:focus {
  left: 16px;
  top: 12px;
  z-index: 99;
  background: white;
  padding: 8px;
}
.btn,
.iconbtn,
.link,
.back,
.navitem,
.actions,
.topbrand,
.topright,
.hero-label,
.brand,
.original,
.userblock,
.notice,
.attention-link,
.lineitem,
.stage-line {
  display: inline-flex;
  align-items: center;
}
.btn,
.iconbtn {
  justify-content: center;
}
.btn {
  gap: 7px;
  padding: 9px 15px;
  border: 1px solid #d9dce6;
  border-radius: 8px;
  background: white;
  min-height: 39px;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  transition: background 0.14s;
}
.btn:hover {
  background: #f4f3fa;
}
.btn.primary {
  color: white;
  background: var(--purple);
  border-color: var(--purple);
}
.btn.primary:hover {
  background: #483ac1;
}
.btn.small {
  font-size: 12px;
  min-height: 32px;
  padding: 4px 10px;
}
.btn.white {
  color: #4939bd;
  background: #fff;
  border-color: #fff;
}
.btn.ghost {
  color: white;
  border-color: #ffffff70;
  background: #ffffff13;
}
.iconbtn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.iconbtn:hover {
  background: #f0f0f5;
}
.link,
.back {
  color: #5142bc;
  gap: 5px;
  font-weight: 620;
  font-size: 13px;
  padding: 2px 0;
}
.link:hover,
.back:hover,
.tablename:hover {
  text-decoration: underline;
}
.back {
  margin: 0 0 15px;
}
.center {
  text-align: center;
}
.actions {
  gap: 8px;
  flex-wrap: wrap;
}
.shell {
  min-height: 100dvh;
}
.sidebar {
  width: 216px;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 5;
  background: #fcfcff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.brand {
  gap: 11px;
}
.sidebar > .brand {
  min-height: 87px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.brand b,
.brand small,
.loginhead strong,
.loginhead small {
  display: block;
}
.brand b,
.loginhead strong {
  font-size: 21px;
  letter-spacing: 0.04em;
}
.brand small,
.loginhead small {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
}
.sidebar nav {
  padding: 20px 12px;
  overflow: auto;
}
.navlabel {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 680;
  padding: 8px 12px;
}
.navitem + .navlabel {
  margin-top: 18px;
}
.navitem {
  width: 100%;
  gap: 12px;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  color: #54596f;
  font-weight: 550;
  margin: 1px 0;
}
.navitem:hover {
  background: #f2f2f8;
}
.navitem.active {
  background: #eae8fb;
  color: #4c3dbd;
  font-weight: 680;
}
.foot {
  margin-top: auto;
  padding: 18px 22px;
  border-top: 1px solid var(--line);
}
.userblock {
  gap: 10px;
}
.initials,
.rowicon {
  display: grid;
  place-items: center;
  background: #eae6fb;
  color: #604d9e;
  font-weight: 700;
  border-radius: 10px;
  width: 36px;
  height: 36px;
}
.userblock b,
.userblock small {
  display: block;
}
.userblock b {
  font-size: 13px;
}
.userblock small {
  font-size: 11px;
  color: var(--muted);
}
.workspace {
  margin-left: 216px;
}
.top {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 clamp(18px, 3vw, 50px);
  background: white;
  border-bottom: 1px solid var(--line);
}
.topbrand,
.topright {
  gap: 12px;
  font-size: 13px;
}
.topbrand i {
  height: 13px;
  width: 1px;
  background: #d5d5e1;
}
.topbrand span,
.who {
  color: var(--muted);
}
.mobilebrand,
.menubtn,
.menuveil,
.bottomnav {
  display: none;
}
#content {
  max-width: 1480px;
  margin: 0 auto;
  padding: 32px clamp(18px, 3vw, 50px) 54px;
  min-width: 0;
}
.pagehead,
.panelhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.pagehead {
  margin-bottom: 22px;
}
.pagehead h1 {
  font-size: clamp(25px, 2.6vw, 36px);
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}
.pagehead p,
.panelhead small {
  color: var(--muted);
  font-size: 13px;
}
.pagehead p {
  margin-top: 5px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 2px 6px #252a4509;
  min-width: 0;
  overflow: hidden;
}
.panelhead {
  padding: 18px 22px;
  border-bottom: 1px solid #eff0f5;
}
.pad {
  padding: 21px 22px;
}
.stack {
  display: grid;
  align-content: start;
  gap: 17px;
  min-width: 0;
}
.stack.tight {
  gap: 12px;
}
.homegrid,
.detailgrid,
.admincols,
.reportgrid {
  display: grid;
  gap: 18px;
  align-items: start;
}
.homegrid {
  grid-template-columns: minmax(270px, 1fr) minmax(0, 1.3fr);
}
.financecards {
  grid-template-columns: minmax(310px, 1.4fr) minmax(270px, 1fr);
  margin-bottom: 20px;
  align-items: stretch;
}
.detailgrid {
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.9fr);
}
.admincols {
  grid-template-columns: minmax(0, 1.65fr) minmax(250px, 1fr);
}
.reportgrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--purple);
  color: white;
  padding: 25px;
  min-height: 205px;
}
.hero-label {
  font-size: 13px;
  font-weight: 600;
  gap: 8px;
  color: #ece9ff;
}
.hero h2 {
  font-size: 31px;
  margin: 10px 0 2px;
}
.hero p {
  font-size: 13px;
  color: #f0ecff;
  max-width: 69%;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.hero .btn {
  margin-top: 19px;
}
.receipt-art {
  position: absolute;
  z-index: -1;
  top: 0;
  right: -7%;
  width: 52%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero h2.bigcount {
  font:
    670 45px/1.05 Arial,
    sans-serif;
}
.bigcount small {
  font: 500 14px sans-serif;
}
.metrics,
.statpair,
.compvalues {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.metrics {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 21px;
}
.metrics.wide {
  margin: 17px 0;
}
.metrics div + div,
.statpair div + div,
.compvalues div + div {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}
.metrics small,
.statpair small,
.compvalues small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.metrics b,
.statpair b,
.compvalues strong {
  display: block;
  font:
    640 clamp(18px, 1.9vw, 29px)/1.25 Arial,
    sans-serif;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
  margin-top: 6px;
}
.statpair {
  padding: 27px 22px;
}
.statpair span {
  font-size: 12px;
  color: var(--muted);
}
.compvalues {
  background: #f7f7fc;
  padding: 14px;
  border-radius: 8px;
}
.compvalues strong {
  font-size: 22px;
}
.record {
  padding: 15px 20px;
  display: flex;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid #eef0f5;
}
.record:last-child {
  border-bottom: 0;
}
.record:hover {
  background: #f9f8fe;
}
.recordtext {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 3px;
}
.recordtext strong {
  font-size: 14px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.recordtext small,
.recordside small,
table td small,
.original small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.recordside {
  display: grid;
  gap: 3px;
  justify-items: end;
}
.recordside b,
.numeric {
  font-variant-numeric: tabular-nums;
  font-family: Arial, 'PingFang SC', sans-serif;
}
.rowicon {
  flex: none;
  background: #f1effa;
}
.empty {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 6px;
  padding: 31px 17px;
  color: #767a90;
}
.empty > svg {
  color: #978fb7;
}
.empty strong {
  font-size: 14px;
  color: #55596b;
}
.empty p {
  font-size: 13px;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 12px;
  line-height: 1.6;
  font-weight: 600;
  white-space: nowrap;
}
.chip.neutral {
  background: #f0f1f6;
  color: #666a7e;
}
.chip.green {
  background: #e8f5ed;
  color: #236e56;
}
.chip.violet {
  background: #eeebfd;
  color: #5c4ba8;
}
.chip.amber {
  background: #fff0dd;
  color: #8e511e;
}
.chip.red {
  background: #fae9ec;
  color: #9d3e50;
}
.attention-link,
.notice {
  display: flex;
  gap: 8px;
  font-size: 13px;
  align-items: flex-start;
  border-radius: 8px;
  padding: 10px 13px;
  line-height: 1.6;
}
.attention-link,
.notice.warn {
  color: #8b511d;
  background: #fff3e3;
}
.notice.note {
  color: #53527d;
  background: #f1f0f9;
}
.notice svg,
.attention-link svg {
  margin-top: 2px;
}
.attention-link {
  margin: 13px 18px 3px;
}
.pagehead + .notice,
.notice + .progress {
  margin-bottom: 15px;
}
.tabs,
.toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 20px;
}
.tabs .tab {
  color: #63677a;
  font-size: 13px;
  padding: 6px 11px;
  border-radius: 6px;
}
.tabs .on {
  background: var(--lilac);
  color: #4b3cb1;
  font-weight: 650;
}
.fields {
  display: grid;
  gap: 16px;
}
.company-list {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.company-row {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.company-row legend {
  padding: 0 5px;
  font-size: 13px;
  font-weight: 620;
}
.company-row .btn {
  margin-top: 10px;
}
.fields > label,
.fieldpair label,
.fieldgrid label,
.toolbar label {
  display: grid;
  gap: 6px;
  min-width: 0;
  font-size: 13px;
  font-weight: 620;
}
.fieldpair,
.fieldgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
input:not([type='checkbox']):not([type='hidden']),
select,
textarea {
  padding: 9px 11px;
  background: white;
  border: 1px solid #cfd3df;
  border-radius: 7px;
  min-width: 0;
  max-width: 100%;
  line-height: 1.4;
}
.fields input,
.fields select,
.fields textarea {
  width: 100%;
}
input[type='checkbox'] {
  width: 16px;
  height: 16px;
  accent-color: var(--purple);
}
textarea {
  resize: vertical;
}
.hint,
.desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}
.fields h3:not(:first-child) {
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.toolbar {
  align-items: flex-end;
  background: #fbfbfe;
  border-bottom: 1px solid var(--line);
}
.toolbar label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 580;
}
.toolbar input,
.toolbar select {
  font-size: 13px !important;
}
.toolbar input:not([type='date']) {
  width: 171px;
}
.toolbar select {
  max-width: 150px;
}
.tablewrap {
  overflow: auto;
  max-width: 100%;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  text-align: left;
  font-size: 13px;
}
th,
td {
  padding: 12px 13px;
  border-bottom: 1px solid #eceef4;
}
th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
  background: #f8f9fc;
}
tr:last-child td {
  border-bottom: 0;
}
td:first-child,
th:first-child {
  padding-left: 20px;
}
td:last-child,
th:last-child {
  padding-right: 20px;
}
td.numeric,
th.numeric {
  text-align: right;
}
.tablename {
  font-weight: 650;
  color: #44378a;
  display: inline-block;
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}
.progress {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  list-style: none;
  padding: 15px 17px;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
}
.progress li {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.progress li > span {
  display: grid;
  place-items: center;
  flex: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #f0f1f6;
  color: #656a7d;
  font:
    600 12px Arial,
    sans-serif;
}
.progress li.done > span {
  background: #e2f2e9;
  color: var(--green);
}
.progress li.issue > span {
  background: #fff0dc;
  color: #905117;
}
.progress strong,
.progress small {
  display: block;
}
.progress strong {
  font-size: 13px;
}
.progress small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.tickets {
  padding: 0 17px;
}
.ticket {
  border-bottom: 1px solid var(--line);
}
.ticket:last-child {
  border-bottom: 0;
}
.ticket summary {
  cursor: pointer;
  padding: 14px 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ticket summary::after {
  content: '⌄';
  font-size: 16px;
  color: var(--muted);
}
.ticket[open] summary::after {
  transform: rotate(180deg);
}
.ticket summary > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  font-size: 14px;
  font-weight: 620;
}
.ticketbody {
  padding-bottom: 16px;
  display: grid;
  gap: 13px;
}
.original {
  gap: 11px;
  background: #f7f7fc;
  border: 1px solid var(--line);
  padding: 9px 12px;
  border-radius: 8px;
  min-width: 0;
}
.original img {
  width: 55px;
  height: 45px;
  object-fit: contain;
  background: white;
  border-radius: 4px;
}
.original span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.original b {
  font-size: 13px;
}
.original small {
  color: #5a46bd;
}
.facts {
  padding: 17px 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}
.facts.invoicefacts {
  padding: 0;
}
.facts dt {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 3px;
}
.facts dd {
  font-size: 13px;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.lines summary {
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.lineitem,
.stage-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}
.lineitem {
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.stage-line {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.stage-line:first-child {
  border-top: 0;
}
.timeline {
  list-style: none;
  padding: 16px 20px;
}
.timeline li {
  position: relative;
  padding: 0 0 15px 17px;
  border-left: 1px solid #d7d5e5;
  margin-left: 4px;
}
.timeline li:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}
.timeline li::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8173c5;
}
.timeline strong,
.timeline small {
  display: block;
}
.timeline strong {
  font-size: 13px;
}
.timeline small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.risklist,
.deptlist {
  list-style: none;
  padding: 7px 20px;
}
.risklist li,
.deptlist li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.risklist li:last-child,
.deptlist li:last-child {
  border: none;
}
.risklist svg,
.risklist b {
  color: #955719;
}
.risklist b,
.deptlist button {
  margin-left: auto;
}
.deptlist span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.chartrows {
  padding: 16px 20px;
  display: grid;
  gap: 12px;
}
.chartrow > div {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  gap: 12px;
}
.chartrow span {
  color: var(--muted);
}
.chartrow meter {
  width: 100%;
  height: 12px;
  accent-color: var(--purple);
}
meter::-webkit-meter-optimum-value {
  background: #7c6de0;
}
meter::-webkit-meter-bar {
  background: #ecebf3;
  border: none;
}
dialog {
  position: fixed;
  inset: 0;
  width: min(450px, calc(100% - 26px));
  margin: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  box-shadow: 0 20px 80px #26233933;
  max-height: 88dvh;
  overflow-y: auto;
}
dialog::backdrop {
  background: #21213a69;
}
dialog .actions {
  justify-content: flex-end;
}
.dialoghead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -4px 0 15px;
}
.dialoghead h2 {
  font-size: 20px;
}
.dialoghead + .notice {
  margin-bottom: 16px;
}
.form-error {
  font-size: 13px;
  color: #973a48;
  background: #ffeff0;
  padding: 10px;
  border-radius: 7px;
}
.progress-message {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--muted);
  font-size: 14px;
}
.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #d9d5f7;
  border-top-color: var(--purple);
  animation: spin 0.8s linear infinite;
  flex: none;
}
@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}
#flash {
  display: none;
  position: fixed;
  z-index: 40;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: #302e47;
  color: white;
  border-radius: 8px;
  padding: 10px 16px;
  box-shadow: 0 5px 22px #22223822;
  font-size: 14px;
  max-width: 90vw;
}
#flash.shown {
  display: block;
}
#flash.bad {
  background: #7c3645;
}
.loginwrap {
  max-width: 1250px;
  margin: auto;
  padding: 30px clamp(20px, 6vw, 82px);
}
.loginhead {
  display: flex;
  align-items: center;
  gap: 10px;
}
.loginbox#content {
  padding: 0;
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  min-height: 390px;
  margin: clamp(48px, 14vh, 160px) auto 30px;
  max-width: 870px;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 40px #252a450a;
}
.loginside {
  position: relative;
  background: var(--purple);
  color: white;
  overflow: hidden;
  padding: 36px;
  min-height: 230px;
}
.loginside h1 {
  font-size: 32px;
}
.loginside p {
  margin-top: 7px;
  color: #f3f0ff;
  font-size: 14px;
}
.loginside img {
  display: block;
  width: 86%;
  height: 220px;
  object-fit: contain;
  margin-left: auto;
}
.loginform {
  padding: 39px;
  align-content: center;
}
.loginform h2 {
  font-size: 25px;
  margin-bottom: 4px;
}
.loginform .btn {
  margin-top: 5px;
}
@media (max-width: 1100px) {
  .sidebar {
    width: 174px;
  }
  .workspace {
    margin-left: 174px;
  }
  .sidebar > .brand {
    padding: 17px;
  }
  .homegrid,
  .financecards {
    grid-template-columns: 1fr 1fr;
  }
  .detailgrid {
    grid-template-columns: minmax(0, 1fr) minmax(275px, 0.84fr);
  }
  .hero {
    padding: 21px;
  }
  .receipt-art {
    opacity: 0.85;
    right: -12%;
  }
}
@media (max-width: 820px) {
  .sidebar {
    transform: translateX(-105%);
    width: 220px;
  }
  .sidebar.opened {
    transform: none;
  }
  .workspace {
    margin: 0;
  }
  .menubtn {
    display: inline-flex;
  }
  .mobilebrand {
    display: block;
  }
  .menuveil {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 4;
    background: #25253355;
  }
  .top {
    padding: 0 18px;
  }
  .employee .menubtn {
    display: none;
  }
  .employee nav.bottomnav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    background: white;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-around;
    padding: 4px 12px calc(4px + env(safe-area-inset-bottom));
  }
  .bottomnav .navitem {
    width: auto;
    min-width: 85px;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    font-size: 11px;
    padding: 5px 13px;
  }
  .bottomnav .navitem.active {
    background: transparent;
  }
  .employee #content {
    padding-bottom: 95px;
  }
  body:has(.bottomnav) #flash {
    bottom: 77px;
  }
}
@media (max-width: 640px) {
  .homegrid,
  .financecards,
  .detailgrid,
  .admincols,
  .reportgrid {
    grid-template-columns: minmax(0, 1fr);
  }
  .top {
    height: 52px;
  }
  .topright,
  .topbrand {
    gap: 8px;
  }
  .who {
    font-size: 12px;
  }
  #content {
    padding: 21px 14px 38px;
  }
  .pagehead {
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 15px;
  }
  .pagehead h1 {
    font-size: 27px;
  }
  .hero {
    min-height: 175px;
  }
  .receipt-art {
    right: 0;
    width: 45%;
    opacity: 1;
  }
  .hero h2 {
    font-size: 26px;
  }
  .hero .btn {
    margin-top: 12px;
  }
  .pad,
  .panelhead {
    padding: 15px 16px;
  }
  .tabs,
  .toolbar {
    padding: 10px 14px;
  }
  .tabs {
    gap: 2px;
  }
  .fieldgrid,
  .fieldpair {
    gap: 10px;
  }
  .progress {
    padding: 11px 7px;
    gap: 2px;
  }
  .progress li {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 3px;
  }
  .progress strong {
    font-size: 12px;
  }
  .progress small {
    font-size: 10px;
  }
  .metrics b,
  .statpair b {
    font-size: 22px;
  }
  .reportgrid {
    gap: 12px;
  }
  .loginwrap {
    padding: 16px;
  }
  .loginbox#content {
    grid-template-columns: 1fr;
    margin: 40px auto 12px;
    max-width: 410px;
  }
  .loginside {
    min-height: 135px;
    padding: 23px;
  }
  .loginside h1 {
    font-size: 25px;
  }
  .loginside p {
    max-width: 69%;
    font-size: 12px;
  }
  .loginside img {
    position: absolute;
    top: 0;
    right: -7%;
    height: 100%;
    width: 42%;
  }
  .loginform {
    padding: 25px;
  }
  .loginform h2 {
    font-size: 22px;
  }
  .loginhead strong {
    font-size: 18px;
  }
  .record {
    padding: 13px;
  }
  .original,
  .desc,
  .notice {
    overflow-wrap: anywhere;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
.revision {
  padding: 12px 18px;
}
.revision .link {
  display: flex;
  margin-top: 8px;
}
.revision + .revision {
  border-top: 1px solid var(--line);
}
.home-review {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 0.8fr);
  gap: 18px;
  align-items: start;
}
.focuslist {
  list-style: none;
  padding: 2px 20px;
}
.focuslist li {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 12px 0;
  font-size: 13px;
  border-top: 1px solid var(--line);
}
.focuslist li:first-child {
  border: 0;
}
.focuslist li svg {
  color: #7563b6;
}
.focuslist li b {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 1030px) {
  .home-review {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .employee .hero .receipt-art {
    width: 35%;
    height: 112px;
    inset: 8px -1% auto auto;
    object-fit: contain;
  }
  .employee .hero p {
    max-width: 68%;
  }
  .employee .hero-actions {
    position: relative;
  }
  .employee #content:has(.detailgrid) {
    padding-bottom: 30px;
  }
}
