* {
  box-sizing: border-box;
}
:root {
  --orange: #e99332;
  --orange2: #cb7620;
  --green: #4d9365;
  --dark: #294a39;
  --ink: #2c312f;
  --muted: #737872;
  --cream: #faf7f1;
  --line: #ebe4da;
  --red: #c94e45;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font:
    14px/1.55 "Microsoft YaHei",
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
.app {
  display: grid;
  grid-template-columns: 238px 1fr;
  min-height: 100vh;
}
.side {
  height: 100vh;
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, #263b31, #1f3029 68%, #17261f);
  color: #fff;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 0 8px 24px;
}
.logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--orange) 0 48%, var(--green) 48%);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.brand b {
  font-size: 17px;
}
.brand small,
.company small {
  display: block;
  color: #b5c3b9;
}
.company {
  padding: 12px;
  background: #ffffff12;
  border: 1px solid #ffffff20;
  border-radius: 12px;
  margin-bottom: 18px;
}
.back {
  display: block;
  color: #d1d9d3;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 9px;
  margin-bottom: 8px;
}
.back:hover {
  background: #ffffff12;
}
.nav-title {
  padding: 11px 12px 6px;
  color: #91aa99;
  font-size: 12px;
}
.subnav button {
  width: 100%;
  border: 0;
  background: none;
  color: #d1d9d3;
  padding: 11px 13px;
  border-radius: 9px;
  text-align: left;
  margin: 2px 0;
}
.subnav button:hover,
.subnav button.active {
  background: #e9933224;
  color: #fff;
}
.subnav button.active {
  box-shadow: inset 3px 0 0 var(--orange);
}
.subnav i {
  display: inline-block;
  width: 24px;
  font-style: normal;
}
.foot {
  margin-top: auto;
  padding: 10px;
  color: #b5c3b9;
  font-size: 12px;
}
.main {
  min-width: 0;
}
.top {
  height: 68px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  position: sticky;
  top: 0;
  z-index: 8;
}
.crumb {
  display: flex;
  align-items: center;
  gap: 9px;
}
.crumb h1 {
  font-size: 17px;
  margin: 0;
}
.crumb span {
  color: #99968f;
}
.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: grid;
  place-items: center;
}
.content {
  padding: 28px 30px 60px;
  max-width: 1500px;
  margin: auto;
}
.view {
  display: none;
}
.view.active {
  display: block;
}
.intro {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 20px;
}
.intro h2 {
  font-size: 25px;
  margin: 0 0 5px;
}
.muted {
  color: var(--muted);
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 8px 28px #5f4b2e0a;
}
.primary,
.secondary,
.ghost,
.danger {
  border: 0;
  padding: 10px 15px;
  border-radius: 9px;
}
.primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 7px 16px #e9933230;
}
.primary:hover {
  background: var(--orange2);
}
.secondary {
  background: var(--dark);
  color: #fff;
}
.ghost {
  background: #f4efe7;
  color: #5e574e;
}
.danger {
  background: #fff0ed;
  color: #b84940;
}
.link {
  border: 0;
  background: none;
  color: #c97521;
  padding: 4px;
}
.tag {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 18px;
  background: #fff2df;
  color: #a45e18;
  font-size: 12px;
  white-space: nowrap;
}
.tag.green {
  background: #eaf4ec;
  color: #34704b;
}
.tag.red {
  background: #fff0ed;
  color: #b84940;
}
.tag.blue {
  background: #edf1f7;
  color: #506a8a;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
  margin-bottom: 16px;
}
.metric {
  padding: 18px;
}
.metric small {
  color: var(--muted);
}
.metric strong {
  font-size: 26px;
  display: block;
  margin: 4px 0;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.section {
  padding: 20px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.section-head h3 {
  margin: 0;
}
.row {
  padding: 13px 0;
  border-top: 1px solid #eee7de;
}
.row:first-child {
  border-top: 0;
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th,
.table td {
  text-align: left;
  padding: 13px;
  border-bottom: 1px solid #eee7de;
}
.table th {
  background: #fbf8f3;
  color: #7c7972;
  font-size: 12px;
}
.field label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}
.field input,
.field select,
.field textarea,
.search {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd4c8;
  border-radius: 9px;
  background: #fff;
}
.field textarea {
  min-height: 82px;
  resize: vertical;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.field.full {
  grid-column: 1/-1;
}
.empty {
  padding: 60px 20px;
  text-align: center;
  color: #817d76;
}
.modal-mask {
  position: fixed;
  inset: 0;
  background: #17261fb8;
  display: none;
  place-items: center;
  z-index: 30;
  padding: 20px;
}
.modal-mask.show {
  display: grid;
}
.modal {
  width: min(600px, 100%);
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
}
.modal-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
}
.modal-head h3 {
  margin: 0;
}
.modal-head button {
  border: 0;
  background: none;
  font-size: 21px;
}
.modal-body {
  padding: 20px 22px;
}
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 22px 20px;
}
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: var(--dark);
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: 0.2s;
  z-index: 40;
}
.toast.show {
  opacity: 1;
  transform: none;
}
.progress {
  height: 7px;
  border-radius: 8px;
  background: #eee9e1;
  overflow: hidden;
}
.progress i {
  height: 100%;
  display: block;
  background: var(--orange);
}
.notify-wrap {
  position: relative;
}
.notify-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f5f0e8;
  color: #765c3e;
  position: relative;
}
.notify-count {
  position: absolute;
  right: -2px;
  top: -3px;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  background: #c94e45;
  color: #fff;
  font-size: 10px;
  place-items: center;
}
.notify-panel {
  display: none;
  position: absolute;
  right: 0;
  top: 45px;
  width: 350px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 18px 60px #2a211a2c;
  overflow: hidden;
  z-index: 50;
}
.notify-wrap.open .notify-panel {
  display: block;
}
.notify-head {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
}
.notify-item {
  display: block;
  padding: 12px 15px;
  border-bottom: 1px solid #eee7de;
  text-decoration: none;
  color: var(--ink);
}
.notify-item.unread {
  background: #fff8ed;
}
.notify-item b,
.notify-item small {
  display: block;
}
.notify-item small {
  color: var(--muted);
  margin-top: 3px;
}
.notify-empty {
  padding: 30px;
  text-align: center;
  color: var(--muted);
}
@media (max-width: 1100px) {
  .grid2 {
    grid-template-columns: 1fr;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 820px) {
  .app {
    display: block;
  }
  .side {
    height: auto;
    position: static;
  }
  .company,
  .foot {
    display: none;
  }
  .subnav {
    display: flex;
    overflow: auto;
  }
  .subnav button {
    min-width: 125px;
  }
  .top {
    padding: 0 14px;
  }
  .content {
    padding: 18px 14px;
  }
  .metrics,
  .grid2,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .intro {
    align-items: start;
  }
  .notify-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 70px;
    width: auto;
  }
}
