:root {
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    sans-serif;
  color: #222d2a;
  background: #f6f8f7;
  font-size: 14px;
  font-synthesis: none;
  letter-spacing: 0;
  --green: #18745b;
  --border: #e0e7e3;
  --muted: #74807a;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 1px solid var(--border);
  background: white;
  color: inherit;
  border-radius: 5px;
  min-height: 38px;
  padding: 8px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
}
button:hover {
  background: #f0f5f2;
  border-color: #b6c9bf;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
button.primary:hover {
  background: #105d47;
}
button.danger {
  color: #b83a43;
  border-color: #f0d5d7;
}
button.icon {
  width: 36px;
  min-height: 36px;
  padding: 7px;
  flex-shrink: 0;
}
svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  vertical-align: middle;
}
a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #d8e0db;
  background: #fff;
  border-radius: 5px;
  padding: 10px 11px;
  color: #222d2a;
  min-width: 0;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #91c4b3;
  outline-offset: 1px;
}
textarea {
  resize: vertical;
  min-height: 84px;
}
label {
  display: block;
  margin-bottom: 15px;
  color: #48534d;
  font-size: 13px;
}
label > span {
  display: block;
  margin-bottom: 7px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 26px;
  line-height: 1.4;
  margin-bottom: 6px;
  font-weight: 650;
}
h2 {
  font-size: 20px;
}
h3 {
  font-size: 15px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.number {
  font-variant-numeric: tabular-nums;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 650;
}
.brand-mark {
  width: 35px;
  height: 35px;
  background: #bcefd9;
  color: #145740;
  display: grid;
  place-items: center;
  border-radius: 7px;
}
.brand-mark svg {
  width: 23px;
  height: 23px;
}
.shell {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #202c27;
  color: #d5dfd9;
  position: fixed;
  inset: 0 auto 0 0;
  width: 218px;
  display: flex;
  flex-direction: column;
  padding: 28px 16px;
  z-index: 10;
}
.sidebar .brand {
  color: white;
  padding: 0 10px 27px;
}
.nav-caption {
  font-size: 11px;
  color: #8faaa0;
  margin: 20px 12px 10px;
}
.nav-item {
  background: transparent;
  border: 0;
  width: 100%;
  justify-content: flex-start;
  gap: 13px;
  color: #b9c9bf;
  margin-bottom: 5px;
  padding: 12px 15px;
  height: 44px;
}
.nav-item:hover {
  background: #2b3c33;
  color: white;
}
.nav-item.active {
  background: #354b3e;
  color: #d9ffeb;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 16px 10px 0;
  border-top: 1px solid #3b4941;
}
.account-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e8efe9;
  color: #306447;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.sidebar-bottom .logout {
  color: #d3ddd7;
  background: none;
  border-color: #49584f;
  width: 100%;
  min-height: 34px;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 69px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  background: #fff;
  gap: 12px;
}
.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar-left {
  color: #6b7870;
  font-size: 13px;
}
.topbar-right {
  font-size: 12px;
  color: #6f7e73;
}
.environment {
  background: #edf7f0;
  color: #237752;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
}
.workspace {
  padding: 29px 34px 40px;
  max-width: 1600px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.page-heading p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--border);
  background: #fff;
  margin-bottom: 30px;
  padding: 23px 0;
}
.metric {
  padding: 0 23px;
  border-right: 1px solid var(--border);
  min-width: 0;
}
.metric:last-child {
  border: 0;
}
.metric-label {
  color: #68766d;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.metric-value {
  font-size: 28px;
  font-weight: 600;
  margin: 12px 0 7px;
  white-space: nowrap;
}
.metric-note {
  font-size: 11px;
  color: #7f8c82;
}
.metric:nth-child(2) .metric-value {
  color: #ad7921;
}
.metric:nth-child(3) .metric-value {
  color: #346b95;
}
.metric:nth-child(4) .metric-value {
  color: #1b7b56;
}
.content-title {
  font-size: 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.count {
  background: #e9eeeb;
  color: #66756c;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.tabs {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid var(--border);
  align-self: stretch;
}
.tab {
  border: 0;
  background: transparent;
  padding: 10px 0;
  border-radius: 0;
  font-size: 13px;
  position: relative;
  color: #7c877e;
}
.tab.active {
  color: var(--green);
  font-weight: 600;
  box-shadow: 0 2px 0 var(--green);
}
.tab:hover {
  background: none;
}
.filters {
  display: flex;
  gap: 8px;
  align-items: center;
}
.search {
  position: relative;
  width: 240px;
}
.search input {
  padding-left: 35px;
  font-size: 12px;
  height: 37px;
}
.search svg {
  position: absolute;
  left: 11px;
  top: 10px;
  width: 16px;
  color: #8a988f;
}
.filters select {
  width: 140px;
  font-size: 12px;
  height: 37px;
  padding: 7px;
}
.table-wrap {
  overflow-x: auto;
  border-block: 1px solid var(--border);
  background: #fff;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 11px;
  font-weight: 500;
  color: #77847c;
  background: #f0f4f1;
  padding: 13px 16px;
}
td {
  font-size: 12px;
  padding: 17px 16px;
  border-top: 1px solid #eaf0ec;
}
.click-row {
  cursor: pointer;
}
.click-row:hover {
  background: #f5faf7;
}
.claim-title {
  font-size: 13px;
  font-weight: 550;
  max-width: 290px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.6;
}
.claim-number {
  font-size: 10px;
  color: #919b95;
  margin-top: 5px;
}
.right {
  text-align: right;
}
.money-cell {
  font-weight: 600;
  font-size: 14px;
}
.tag {
  font-size: 11px;
  padding: 5px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  background: #edf0ee;
  color: #647168;
}
.tag.submitted {
  background: #fcf2dd;
  color: #aa7a25;
}
.tag.manager_approved {
  background: #e9f0fc;
  color: #4b70a2;
}
.tag.finance_approved {
  background: #f0ebfa;
  color: #806298;
}
.tag.paid,
.tag.closed {
  background: #e6f4ec;
  color: #287653;
}
.tag.rejected,
.tag.cancelled {
  background: #faeceb;
  color: #b56561;
}
.empty {
  text-align: center;
  padding: 70px 20px;
  color: #8a978d;
}
.empty svg {
  width: 35px;
  height: 35px;
  margin-bottom: 14px;
}
.table-footer {
  display: flex;
  justify-content: space-between;
  color: #8b958e;
  font-size: 11px;
  padding: 16px 0;
  gap: 12px;
}
.bottom-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  margin-top: 26px;
  border-top: 1px solid var(--border);
  padding-top: 25px;
}
.expense-bar {
  display: grid;
  grid-template-columns: 50px 1fr 88px;
  gap: 14px;
  align-items: center;
  margin: 17px 0;
  font-size: 12px;
}
.bar-track {
  height: 6px;
  background: #e6ede8;
  border-radius: 2px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: #66ab86;
}
.todo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #e5ebe7;
  gap: 10px;
}
.todo-text {
  min-width: 0;
}
.todo-text strong {
  font-size: 12px;
  font-weight: 500;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.todo-text span {
  font-size: 11px;
  color: #8b968f;
}
.modal-shade {
  position: fixed;
  inset: 0;
  background: #18291d66;
  z-index: 40;
  display: flex;
  justify-content: flex-end;
}
.panel {
  width: 760px;
  max-width: 100%;
  height: 100%;
  background: #fff;
  overflow: auto;
  box-shadow: -5px 0 30px #15221917;
  padding: 27px 30px 36px;
}
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 23px;
}
.panel-head h2 {
  margin: 0 0 8px;
}
.panel-section {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  margin-top: 24px;
}
.panel-summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  margin: 22px 0;
}
.total {
  font-size: 30px;
  font-weight: 600;
}
.lock-note {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #3e7657;
  background: #f0f7f2;
  padding: 11px 13px;
  font-size: 12px;
  line-height: 1.6;
}
.detail-grid,
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.detail-grid > div {
  padding: 12px 0;
  font-size: 13px;
}
.detail-grid span {
  display: block;
  font-size: 11px;
  color: #879188;
  margin-bottom: 5px;
}
.timeline {
  margin-top: 20px;
}
.event {
  border-left: 1px solid #d9e5dc;
  padding: 0 0 22px 18px;
  margin-left: 6px;
  position: relative;
}
.event:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8ab49a;
  position: absolute;
  left: -4px;
  top: 5px;
}
.event strong {
  font-size: 12px;
  font-weight: 500;
}
.event p {
  font-size: 12px;
  margin: 7px 0;
  color: #78867c;
}
.event time {
  font-size: 10px;
  color: #95a198;
}
.file-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #edf0ed;
  gap: 10px;
}
.file-row a {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.attachment-meta {
  font-size: 10px;
  color: #8b978d;
  margin-top: 5px;
}
.editor-items {
  margin: 20px 0;
}
.editor-item {
  border-block: 1px solid #e1e8e3;
  padding: 18px 0;
  margin-top: 15px;
}
.item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  color: #809086;
  font-size: 12px;
}
.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
  flex-wrap: wrap;
}
.error {
  color: #b44242;
  font-size: 13px;
  margin: 12px 0;
  line-height: 1.6;
}
.subform {
  background: #f6f8f6;
  padding: 18px;
  margin-top: 16px;
}
.notice {
  padding: 10px 12px;
  background: #fff6e8;
  color: #94672a;
  font-size: 12px;
  line-height: 1.7;
  margin: 15px 0;
}
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 25px;
  background: #f0f4f1;
}
.login-form {
  width: 370px;
  max-width: 100%;
}
.login-form .brand {
  margin-bottom: 48px;
}
.login-form h1 {
  font-size: 26px;
}
.login-form p {
  color: #8c978e;
  font-size: 13px;
  margin-bottom: 28px;
}
.login-form button.primary {
  width: 100%;
  margin-top: 8px;
}
.demo-hint {
  margin-top: 25px;
  font-size: 12px;
  color: #6e7f74;
  line-height: 1.8;
  border-top: 1px solid #d6e2d8;
  padding-top: 17px;
}
.mobile-menu {
  display: none;
}
.loading {
  padding: 80px;
  text-align: center;
  color: #7e8e81;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #243d2d;
  color: white;
  border-radius: 6px;
  padding: 12px 22px;
  z-index: 90;
  max-width: 90%;
  font-size: 13px;
  box-shadow: 0 4px 22px #14271922;
  display: none;
}
.audit-row pre {
  white-space: pre-wrap;
  word-break: break-all;
  font-size: 11px;
  max-width: 500px;
}
.adjustment {
  border-block: 1px solid var(--border);
  padding: 14px 0;
  margin: 13px 0;
}
.adjustment p {
  font-size: 12px;
  color: #7b887f;
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.admin-section {
  margin-top: 30px;
  border-top: 1px solid var(--border);
  padding-top: 22px;
}
.inline-form {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
}
.inline-form label {
  margin: 0;
  min-width: 150px;
  flex: 1;
}
.inline-form button {
  margin-bottom: 1px;
}
progress {
  width: 100%;
  height: 7px;
  accent-color: #59a17b;
  border: 0;
}
progress::-webkit-progress-bar {
  background: #e6ede8;
  border-radius: 2px;
}
progress::-webkit-progress-value {
  background: #66ab86;
  border-radius: 2px;
}
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 0;
  padding: 0;
  vertical-align: middle;
  margin-right: 6px;
  accent-color: var(--green);
}
.search {
  margin-bottom: 0;
}
.sidebar-bottom .icon {
  background: transparent;
  color: #d3ddd7;
  border-color: #49584f;
}
body:has(.modal-shade) {
  overflow: hidden;
}
@media (min-width: 1500px) {
  .workspace {
    padding-inline: 45px;
  }
  .metrics {
    padding-block: 28px;
  }
  .metric-value {
    font-size: 32px;
  }
  td {
    padding-block: 20px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 190px;
  }
  .shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .workspace {
    padding: 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .metric {
    padding: 0 15px;
  }
  .metric-value {
    font-size: 23px;
  }
  .search {
    width: 185px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .bottom-grid {
    gap: 25px;
  }
  .metric-note {
    line-height: 1.6;
  }
  .toolbar {
    align-items: flex-start;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.15s;
    width: 218px;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 0 0 0 100vw #12211955;
  }
  .main {
    width: 100%;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .topbar {
    padding: 0 16px;
    height: 58px;
  }
  .topbar-right > span:first-child {
    display: none;
  }
  .workspace {
    padding: 21px 16px;
  }
  .page-heading {
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
  }
  h1 {
    font-size: 23px;
  }
  .page-heading > .actions {
    width: 100%;
    justify-content: flex-end;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 0;
    padding: 20px 0;
    margin-bottom: 25px;
  }
  .metric:nth-child(2) {
    border: 0;
  }
  .metric-value {
    font-size: 24px;
  }
  .metric-label {
    font-size: 11px;
  }
  .metric-note {
    font-size: 10px;
  }
  .filters {
    width: 100%;
  }
  .search {
    flex: 1;
    width: auto;
  }
  .filters select {
    width: 125px;
  }
  .tabs {
    width: 100%;
    gap: 20px;
  }
  .table-wrap {
    margin: 0 -16px;
    border-inline: 0;
  }
  th,
  td {
    padding: 13px 14px;
  }
  .claim-title {
    min-width: 150px;
    max-width: 200px;
  }
  .bottom-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .panel {
    padding: 22px 17px;
  }
  .detail-grid,
  .form-grid {
    gap: 0 12px;
  }
  .panel-summary {
    flex-wrap: wrap;
  }
  .panel h2 {
    font-size: 18px;
  }
  .table-footer {
    line-height: 1.6;
  }
  .hide-mobile {
    display: none;
  }
  .inline-form {
    display: grid;
    grid-template-columns: 1fr;
  }
  .actions {
    gap: 7px;
  }
  .actions button {
    font-size: 12px;
    padding-inline: 10px;
  }
  .total {
    font-size: 26px;
  }
}
