:root {
  color-scheme: light;
  --ink: #23382f;
  --text: #28352f;
  --muted: #68746d;
  --sub: #79847e;
  --line: #dfe5dd;
  --green: #285943;
  --mint: #e9f1e6;
  --bg: #f6f7f3;
  --sidebar: 212px;
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    'PingFang SC',
    'Microsoft YaHei',
    sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  font-variant-numeric: tabular-nums;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #90bba4;
  outline-offset: 2px;
}
input,
select {
  min-width: 0;
}
button {
  border: none;
  background: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3,
b,
strong {
  font-weight: 650;
}
.icon {
  display: inline-block;
  flex: none;
  vertical-align: middle;
}
.boot,
.auth {
  max-width: 780px;
  margin: 9vh auto;
  padding: 30px;
}
.skip {
  position: fixed;
  left: 10px;
  top: -50px;
  z-index: 20;
  background: #fff;
  padding: 8px;
}
.skip:focus {
  top: 8px;
}
.layout {
  min-height: 100vh;
}
.workspace {
  margin-left: var(--sidebar);
}
aside {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sidebar);
  background: #fdfefa;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 0 17px;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.025em;
}
.brand img {
  width: 36px;
  height: 36px;
}
.brand strong {
  font-size: 23px;
  letter-spacing: 0.055em;
  font-weight: 720;
  color: #243a2d;
}
aside > .brand {
  height: 81px;
  flex: none;
  padding-left: 9px;
}
.team {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #dfe5dc;
  border-radius: 8px;
  padding: 11px 12px;
  margin: 2px 2px 11px;
  background: #f6f8f1;
}
.team-mark {
  width: 32px;
  height: 32px;
  border: 1px solid #d7e3cf;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #5c7958;
  background: #eaf1e1;
}
.team b,
.profile b {
  font-size: 14px;
  display: block;
}
.team small,
.profile small {
  display: block;
  color: var(--sub);
  font-size: 12px;
  margin-top: 2px;
}
.team small {
  font-size: 11.5px;
  letter-spacing: 0.07em;
}
.navlabel {
  font-size: 12px;
  color: #7c887d;
  padding: 0 12px;
  margin: 16px 0 7px;
  letter-spacing: 0.1em;
}
.navlink {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 13px;
  height: 40px;
  color: #516058;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  margin-bottom: 3px;
  transition: background 0.14s;
}
.navlink:hover {
  background: #f0f3ed;
}
.navlink.active {
  color: #294e39;
  background: #e5eedf;
  font-weight: 680;
}
.navlink.active .icon {
  stroke-width: 1.85;
}
nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 17px;
}
.profile {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 74px;
  border-top: 1px solid var(--line);
  padding: 9px 4px;
}
.profile .icon-btn {
  margin-left: auto;
}
.avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.015em;
}
.avatar.admin {
  background: #dfebdb;
  color: #425e44;
}
.avatar.sage {
  background: #dfece3;
  color: #456b58;
}
.avatar.plum {
  background: #ede6f2;
  color: #796886;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 6px;
  color: var(--muted);
}
.icon-btn:hover {
  background: #e9eee6;
}
.topbar {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 clamp(22px, 2.6vw, 44px);
  background: #fbfcf8;
}
.crumb,
.connection {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #6a776e;
}
.crumb b {
  font-weight: 560;
  color: #3b4b40;
}
.crumb .slash {
  color: #b4bcb5;
}
.connection {
  font-size: 12px;
  gap: 7px;
}
.connection .online,
.tiny-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #729a6d;
  display: inline-block;
  flex: none;
}
.demo {
  padding: 3px 9px;
  background: #eef1e6;
  border: 1px solid #dee4d3;
  border-radius: 5px;
  color: #697653;
  margin-right: 8px;
  font-size: 12px;
}
.mobile-menu,
.scrim {
  display: none;
}
main#content {
  max-width: 1680px;
  margin: auto;
  padding: 25px clamp(22px, 2.6vw, 44px) 32px;
  outline: none;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 21px;
}
.intro h1,
.auth h1 {
  font-size: clamp(26px, 2.25vw, 34px);
  letter-spacing: -0.045em;
  line-height: 1.4;
  color: #25352a;
  font-weight: 710;
}
.intro p,
.auth p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.6;
}
.sub-div {
  margin: 0 10px;
  color: #c7cdc4;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 13px;
  background: #fff;
  color: #405045;
  border: 1px solid #d8dfd5;
  border-radius: 7px;
  font-weight: 550;
  font-size: 14px;
  white-space: nowrap;
  line-height: 1.35;
  box-shadow: 0 1px 2px #293d2607;
}
.btn:hover {
  background: #f2f5ed;
}
.btn.primary {
  background: #315d42;
  color: #fff;
  border-color: #315d42;
}
.btn.primary:hover {
  background: #234a33;
}
.intro > .btn {
  min-height: 38px;
}
.kpis {
  display: grid;
  grid-template-columns: minmax(0, 1.43fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 15px;
  margin-bottom: 19px;
}
.kpi {
  min-width: 0;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  padding: 18px 21px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 153px;
}
.kpi.lead {
  background: linear-gradient(110deg, #1f4634, #305840);
  border: 1px solid #295137;
  color: white;
}
.klabel {
  font-size: 14px;
  font-weight: 570;
  display: flex;
  align-items: center;
  gap: 9px;
  z-index: 1;
}
.kpi.lead .klabel {
  color: #e2eddc;
}
.kvalue {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin: 12px 0 14px;
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    'Arial',
    sans-serif;
  font-size: clamp(26px, 2.7vw, 42px);
  font-weight: 630;
  letter-spacing: -0.055em;
  line-height: 1.07;
  z-index: 1;
}
.kvalue small {
  font-size: 0.57em;
  letter-spacing: 0;
  font-weight: 540;
}
.kpi.lead .kvalue {
  font-size: clamp(32px, 3vw, 46px);
  text-shadow: 0 2px 6px #25493480;
}
.kfoot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: #6c796e;
  font-size: 12px;
  line-height: 1.6;
  z-index: 1;
}
.kfoot b {
  font-weight: 540;
}
.kfoot i {
  display: block;
  width: 1px;
  height: 10px;
  background: #cfd7cb;
  margin: 0 2px;
}
.lead .kfoot {
  color: #dbead8;
}
.lead .kfoot i {
  background: #6a886d;
}
.terrain {
  position: absolute;
  right: -15px;
  top: 12px;
  width: 53%;
  height: calc(100% - 12px);
  opacity: 0.77;
  pointer-events: none;
  mask-image: linear-gradient(105deg, transparent 0%, black 36%);
}
.paper,
.card {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 2px 4px #21351803;
}
.paper .klabel {
  color: #526157;
}
.paper .ico-box {
  width: 27px;
  height: 27px;
  border-radius: 7px;
}
.paper .ico-box .icon {
  width: 16px;
  height: 16px;
}
.card {
  border-radius: 12px;
  padding: 19px 21px;
  min-width: 0;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 18px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}
.card-name {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.card h2,
.export-tile h2 {
  font-size: 18px;
  letter-spacing: -0.035em;
  font-weight: 680;
  line-height: 1.4;
  white-space: nowrap;
}
.ico-box {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex: none;
}
.ico-box.mint {
  background: #e8efe2;
  color: #50704e;
}
.ico-box.sand {
  background: #f7eddc;
  color: #9b804e;
}
.ico-box.lilac {
  background: #f0eaf5;
  color: #8b7799;
}
.ico-box.neutral {
  background: #eff2ee;
  color: #617465;
}
.date-picker {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  color: #56645a;
  border: 1px solid var(--line);
  background: #fcfdf9;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 12px;
  white-space: nowrap;
}
.date-picker input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.date-picker input::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.entry-card {
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
}
.entry-card form {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.entry-grid {
  display: grid;
  grid-template-columns: minmax(78px, 0.84fr) minmax(70px, 1fr) minmax(
      70px,
      1fr
    );
  gap: 14px;
  align-items: center;
}
.entry-grid.labels {
  font-size: 12px;
  color: #768178;
  margin: 23px 0 5px;
  padding: 0 1px 8px;
  border-bottom: 1px solid #e8ece6;
  font-weight: 550;
}
.entry-row {
  padding: 10px 0;
}
.entry-row + .entry-row {
  border-top: 1px dashed #e6eae3;
}
.proj-name {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.proj-name b {
  font-size: 15px;
}
.proj-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 8px;
}
.blue {
  background: #e9eff4;
  color: #627d92;
}
.purple {
  background: #f0eaf5;
  color: #88769b;
}
.currency {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #dce2d8;
  background: #fdfefb;
  padding: 0 11px;
  height: 37px;
  border-radius: 6px;
  color: #849184;
  font-size: 14px;
}
.currency:focus-within {
  border-color: #779e80;
  box-shadow: 0 0 0 2px #e5ede0;
}
.currency input {
  width: 100%;
  background: none;
  border: 0;
  color: #354438;
  font-weight: 510;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  outline: none !important;
}
.currency input::-webkit-inner-spin-button,
.currency input::-webkit-outer-spin-button {
  appearance: none;
}
.currency input::placeholder {
  font-size: 13px;
  font-weight: 400;
  color: #8b958c;
}
.entry-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.entry-foot span,
.rank-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #778377;
}
.entry-foot .btn {
  font-size: 13px;
  min-height: 33px;
}
.seg {
  display: inline-flex;
  padding: 2px;
  background: #f3f5ef;
  border: 1px solid #e5e9e1;
  gap: 1px;
  border-radius: 7px;
}
.seg button {
  font-size: 12px;
  padding: 3px 8px;
  color: #758173;
  white-space: nowrap;
  line-height: 1.55;
  font-weight: 530;
  border-radius: 4px;
}
.seg .on {
  background: #fff;
  color: #38573b;
  box-shadow: 0 1px 3px #263a2220;
}
.rank-card {
  display: flex;
  flex-direction: column;
}
.rank-options {
  margin-top: 14px;
}
.rank-options .seg {
  background: none;
  border: 0;
  padding: 0;
  gap: 15px;
  border-radius: 0;
}
.rank-options .seg button {
  padding: 0 0 5px;
  background: none;
  border-radius: 0;
  box-shadow: none;
  border-bottom: 2px solid transparent;
}
.rank-options .seg .on {
  border-color: #628565;
  color: #3a613f;
}
.ranks {
  margin: 2px 0 8px;
  flex: 1;
}
.rank-line {
  padding: 10px 0 4px;
}
.rank-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.rank-no {
  width: 18px;
  font-size: 13px;
  font-family: ui-monospace, monospace;
  color: #879387;
  font-weight: 650;
  letter-spacing: -0.08em;
}
.rank-no.gold {
  color: #ac8552;
}
.rank-top > .avatar {
  width: 31px;
  height: 31px;
  font-size: 11px;
}
.rank-person {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}
.rank-person b {
  font-size: 14px;
  white-space: nowrap;
}
.rank-top strong {
  font-size: 16px;
  margin-left: auto;
  white-space: nowrap;
  letter-spacing: -0.04em;
}
.project-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 1px 6px;
  line-height: 1.45;
  font-size: 11px;
  font-weight: 550;
  white-space: nowrap;
}
.project-pill.cad {
  background: #eaf0e9;
  color: #53725d;
}
.project-pill.model {
  background: #f0eaf5;
  color: #84728e;
}
.project-pill i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.rank-track {
  margin: 5px 0 0 26px;
  background: #f1f4ee;
  height: 4px;
  overflow: hidden;
  border-radius: 4px;
}
.rank-track em {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: #9bb995;
}
.rank-track em.second {
  background: #bbadca;
}
.rank-foot {
  border-top: 1px solid var(--line);
  padding-top: 11px;
  margin-top: 7px;
}
.pending-note {
  font-size: 12px;
  color: #94723b;
  background: #faf4e8;
  padding: 6px 8px;
  border-radius: 5px;
}
.trend-card .card-head,
.recent-card .card-head {
  margin-bottom: 15px;
}
.chart-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 7px 0 9px;
  color: var(--sub);
  font-size: 12px;
}
.legend {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #647164;
}
.legend i {
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: #548b70;
}
.legend i.purple-line {
  background: #aa97c6;
  margin-left: 9px;
}
.chart {
  width: 100%;
  display: block;
  overflow: visible;
  font-size: 12px;
  fill: #7b887c;
}
.link {
  color: #487154;
  padding: 2px 0;
  font-size: 13px;
  font-weight: 550;
  text-decoration: none;
}
.link:hover {
  text-decoration: underline;
}
.event {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  position: relative;
  padding: 7px 0 10px;
}
.event:not(:last-child):after {
  content: '';
  position: absolute;
  left: 4px;
  background: #e3e9df;
  top: 20px;
  bottom: -10px;
  width: 1px;
}
.event > i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #a5baa0;
  border: 2px solid #eef3e8;
  box-shadow: 0 0 0 1px #cddbc7;
  margin: 6px 0 0;
  z-index: 1;
}
.event b {
  display: block;
  font-size: 14px;
  font-weight: 550;
}
.event small {
  display: block;
  color: #788479;
  font-size: 12px;
  margin-top: 4px;
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 9px;
  padding: 30px 16px;
  color: #7c887d;
  font-size: 14px;
}
.empty .icon {
  opacity: 0.6;
}
.ranks .empty {
  padding: 18px 0;
}
.employee-home {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
}
.quick-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.section-card {
  margin-bottom: 17px;
  padding: 20px 22px;
}
.section-card > .card-head {
  margin-bottom: 18px;
}
.filters,
.report-filter {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.filters {
  padding-bottom: 19px;
  border-bottom: 1px solid var(--line);
}
.month-field {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
}
.month-field input,
.month-field select,
.search,
.field input,
.field select {
  border: 1px solid #d6ded3;
  background: #fff;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}
.search {
  margin-left: auto;
  display: flex;
  gap: 6px;
  align-items: center;
}
.search input {
  border: 0;
  outline: none;
  width: 140px;
  font-size: 14px;
}
.table-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 13px;
}
.table-caption b {
  font-size: 17px;
}
.table-caption small {
  color: var(--sub);
  font-size: 13px;
}
.table-scroll {
  width: 100%;
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  text-align: left;
}
th {
  padding: 12px 9px;
  color: #6a786c;
  background: #f5f7f1;
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
}
td {
  padding: 14px 9px;
  border-bottom: 1px solid #e9ede6;
  line-height: 1.6;
}
tr:last-child td {
  border-bottom: 0;
}
td:has(.amount),
td:has(.ops) {
  white-space: nowrap;
}
.amount {
  font-weight: 590;
}
.ops {
  display: flex;
  gap: 13px;
  align-items: center;
}
.badge {
  display: inline-block;
  background: #eef1ef;
  color: #68776b;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
}
.badge.green {
  background: #e6f0e4;
  color: #4e7451;
}
.badge.amber {
  color: #896f45;
  background: #f7efdf;
}
.report-filter {
  margin-bottom: 18px;
}
.export-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 21px 23px;
  border: 1px solid #d5e0ce;
  background: #ebf2e5;
  border-radius: 11px;
  margin-bottom: 17px;
}
.export-tile p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 3px;
}
.export-tile > .btn {
  margin-left: auto;
}
.export-tile > .ico-box {
  height: 42px;
  width: 42px;
  background: #dce9d6;
}
.rules-grid,
.form-grid,
.audit-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.help {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}
.rules .help {
  margin-top: 6px;
}
.rules-grid .pair {
  align-self: center;
}
.settings-save {
  display: flex;
  justify-content: flex-end;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.check-row input,
.checks input {
  accent-color: #396748;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  font-size: 14px;
  color: #4f6151;
}
.field > span,
.field > label {
  font-weight: 550;
}
.field input,
.field select {
  width: 100%;
  min-height: 39px;
}
.field input:disabled,
.field select:disabled {
  background: #f2f4ef;
  color: #869282;
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%23718170' stroke-width='1.5'%3E%3Cpath d='m2 4 4 4 4-4'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  padding-right: 32px !important;
}
dialog {
  width: min(480px, calc(100vw - 30px));
  max-height: 90vh;
  overflow: auto;
  border: 1px solid #dbe1d7;
  border-radius: 13px;
  padding: 0;
  color: var(--text);
  box-shadow: 0 20px 80px #19282030;
}
dialog.wide {
  width: min(800px, calc(100vw - 30px));
}
dialog::backdrop {
  background: rgb(27 41 31 / 0.36);
  backdrop-filter: blur(2px);
}
dialog header,
dialog footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 22px;
  border-bottom: 1px solid var(--line);
}
dialog header h2 {
  font-size: 19px;
  letter-spacing: -0.02em;
}
dialog footer {
  justify-content: flex-end;
  gap: 10px;
  border-bottom: 0;
  border-top: 1px solid var(--line);
  background: #fafbf7;
}
dialog .dialog-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dialog-error {
  color: #aa4440;
  font-size: 14px;
}
.dialog-error:not(:empty) {
  padding: 7px 21px 14px;
}
.pair {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  border-bottom: 1px dashed #e1e6dd;
  padding-bottom: 10px;
}
.pair span {
  color: var(--muted);
}
.pair b {
  font-weight: 550;
  text-align: right;
}
.inline-action {
  display: flex;
  justify-content: flex-end;
}
.calc-total,
.salary-sum {
  background: #edf3e9;
  padding: 14px 16px;
  border-radius: 7px;
  color: #48674c;
}
.calc-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.calc-total strong {
  font-size: 23px;
}
.checks {
  max-height: 175px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 9px;
}
.checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 13px;
}
.checks input {
  width: 15px;
  min-height: 0;
}
.checks b {
  margin-left: auto;
}
.audit-compare > section {
  padding: 13px;
  background: #f5f7f1;
  border-radius: 7px;
  overflow: auto;
}
.audit-compare h3 {
  font-size: 15px;
  margin-bottom: 7px;
}
.audit-node {
  font-size: 13px;
  padding-left: 8px;
  border-left: 1px solid #d4ddce;
}
.audit-node > div {
  margin: 5px 0;
  overflow-wrap: anywhere;
}
.audit-node span {
  color: #728071;
  margin-right: 8px;
}
.auth {
  width: min(440px, 94vw);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
}
.auth-art {
  background: #254936;
  padding: 27px;
  position: relative;
  overflow: hidden;
}
.auth-art .terrain {
  height: 120%;
  top: -4px;
  right: -30px;
}
.auth-art .brand strong {
  color: #fff;
}
.auth-form {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-form h1 {
  font-size: 25px;
}
.auth-form p {
  margin: -10px 0 3px;
}
.otp {
  display: flex;
  gap: 8px;
}
.auth .dialog-error:not(:empty) {
  padding: 0;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 15px);
  opacity: 0;
  pointer-events: none;
  color: #fff;
  background: #293e30;
  padding: 10px 17px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 30;
  max-width: 90vw;
  text-align: center;
  transition: 0.2s;
}
#toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}
.error-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 25px;
  background: #fff;
  border-radius: 9px;
}
@media (min-width: 1500px) {
  :root {
    --sidebar: 235px;
  }
  .kpi {
    min-height: 164px;
  }
  .card {
    padding: 23px 25px;
  }
  .entry-card {
    padding-bottom: 0;
  }
  .entry-row {
    padding: 14px 0;
  }
  .entry-grid.labels {
    margin-top: 25px;
  }
  .rank-line {
    padding: 13px 0 5px;
  }
  .navlink {
    height: 44px;
  }
}
@media (max-width: 1170px) {
  :root {
    --sidebar: 182px;
  }
  aside {
    padding: 0 12px;
  }
  main#content {
    padding: 21px 20px;
  }
  .topbar {
    padding: 0 20px;
  }
  .kpis {
    gap: 11px;
  }
  .kpi {
    padding: 16px;
    min-height: 141px;
  }
  .card {
    padding: 16px;
  }
  .entry-card {
    padding-bottom: 0;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.48fr) minmax(0, 1fr);
    gap: 12px;
  }
  .entry-grid {
    gap: 9px;
  }
  .rank-person {
    gap: 3px;
  }
  .card h2 {
    font-size: 17px;
  }
  .rank-top {
    gap: 5px;
  }
  .entry-foot span {
    font-size: 11px;
  }
  .project-pill {
    font-size: 10px;
  }
  .kfoot {
    font-size: 11px;
  }
  .entry-foot .btn {
    padding: 7px 10px;
  }
  .rank-no {
    width: 14px;
  }
  .currency {
    padding: 0 7px;
  }
  .chart {
    min-height: 145px;
  }
}
@media (max-width: 960px) {
  :root {
    --sidebar: 160px;
  }
  .team {
    padding: 9px 8px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  }
  .entry-card .card-head,
  .rank-card .card-head {
    align-items: flex-start;
  }
  .card-name {
    gap: 6px;
  }
  .card h2 {
    font-size: 16px;
  }
  .rank-top > .avatar {
    display: none;
  }
  .entry-grid {
    grid-template-columns: 0.75fr 1fr 1fr;
    gap: 7px;
  }
  .proj-icon {
    width: 28px;
    height: 28px;
  }
  .proj-name {
    gap: 6px;
  }
  .entry-foot {
    flex-wrap: wrap;
  }
  .date-picker {
    padding: 4px;
    font-size: 11px;
  }
  .entry-card .ico-box {
    display: none;
  }
  .kpi {
    padding: 14px;
  }
  .navlink {
    gap: 8px;
  }
  .kvalue {
    font-size: 27px;
  }
  .rank-person {
    flex-direction: column;
    align-items: flex-start;
  }
  .seg button {
    padding: 3px 6px;
  }
  .search {
    margin-left: 0;
  }
  .brand strong {
    font-size: 21px;
  }
  aside > .brand {
    padding-left: 4px;
  }
}
@media (max-width: 760px) {
  :root {
    --sidebar: 0px;
  }
  .workspace {
    margin: 0;
  }
  aside {
    width: 215px;
    transform: translateX(-100%);
    transition: transform 0.18s;
  }
  .nav-open aside {
    transform: translateX(0);
  }
  .nav-open .scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: #21332755;
    z-index: 4;
  }
  .mobile-menu {
    display: inline-grid;
  }
  .crumb > .icon {
    display: none;
  }
  .topbar {
    height: 47px;
    padding: 0 13px;
  }
  .crumb {
    gap: 6px;
  }
  .connection {
    font-size: 11px;
  }
  .demo {
    padding: 2px 6px;
  }
  .intro {
    margin-bottom: 16px;
  }
  .intro h1 {
    font-size: 26px;
  }
  .intro p {
    font-size: 12px;
  }
  .intro > .btn {
    font-size: 12px;
    min-height: 32px;
  }
  .kpis {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
  .kpi.lead .kvalue {
    font-size: 30px;
  }
  .kvalue {
    font-size: 23px;
  }
  .klabel {
    font-size: 12px;
    gap: 5px;
  }
  .paper .ico-box {
    width: 21px;
    height: 21px;
  }
  .kpi {
    min-height: 123px;
    padding: 12px;
  }
  .kfoot {
    gap: 3px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  }
  main#content {
    padding: 18px 15px;
  }
  .chart {
    min-height: 125px;
  }
  .employee-home {
    grid-template-columns: 1fr;
  }
  .profile {
    min-height: 67px;
  }
}
@media (max-width: 610px) {
  .kpis {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .kpi.lead {
    grid-column: 1/-1;
    min-height: 125px;
  }
  .lead .kvalue {
    margin: 10px 0;
  }
  .terrain {
    width: 45%;
    right: 0;
    top: 0;
  }
  .kpi {
    min-height: 108px;
  }
  .kpi.lead .kvalue {
    font-size: 35px;
  }
  .kvalue {
    font-size: 26px;
    margin: 8px 0;
  }
  .klabel {
    font-size: 13px;
  }
  .kfoot {
    font-size: 11px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .entry-card .ico-box {
    display: inline-grid;
  }
  .card h2 {
    font-size: 17px;
  }
  .entry-grid {
    grid-template-columns: 0.85fr 1fr 1fr;
  }
  .rank-top > .avatar {
    display: inline-grid;
  }
  .rank-person {
    flex-direction: row;
    align-items: center;
    gap: 7px;
  }
  .rank-no {
    width: 21px;
  }
  .rank-line {
    padding: 8px 0;
  }
  .rank-track {
    margin-left: 27px;
  }
  .ranks {
    margin-bottom: 3px;
  }
  .rank-options {
    margin-top: 11px;
  }
  .date-picker {
    padding: 5px 7px;
    font-size: 12px;
  }
  .entry-grid.labels {
    margin-top: 18px;
  }
  .entry-card .card-head,
  .rank-card .card-head {
    align-items: center;
  }
  .card {
    padding: 16px;
  }
  .entry-card {
    padding-bottom: 0;
  }
  .trend-card {
    order: 3;
  }
  .recent-card {
    order: 4;
  }
  .export-tile {
    padding: 14px;
    flex-wrap: wrap;
  }
  .export-tile h2 {
    font-size: 16px;
  }
  .export-tile p {
    font-size: 12px;
  }
  .audit-compare,
  .rules-grid {
    grid-template-columns: 1fr;
  }
  .section-card {
    padding: 13px;
  }
  .filters {
    gap: 7px;
  }
  .search {
    width: 100%;
  }
  .search input {
    width: 100%;
  }
  .intro .btn .icon {
    width: 14px;
  }
  dialog .dialog-body {
    padding: 15px;
  }
  .field {
    font-size: 13px;
  }
  .sub-div {
    margin: 0 6px;
  }
}

.kvalue.missing,
.kpi.lead .kvalue.missing {
  font-size: 25px;
  font-weight: 550;
  letter-spacing: 0;
}
.ranks .empty {
  min-height: 92px;
}

.profit-shortcut,.profit-overview {display:flex; align-items:center; gap:18px; padding:22px 26px; margin-top:18px}
.profit-shortcut {color:inherit; text-decoration:none}
.profit-shortcut span strong,.profit-shortcut small {display:block}
.profit-shortcut small,.profit-overview small {color:var(--muted,#59696c); font-size:12px}
.profit-shortcut b {margin-left:auto; font-variant-numeric:tabular-nums}
.profit-overview {justify-content:space-between; flex-wrap:wrap; background:linear-gradient(110deg,#e4f4ec,#fafdfb); margin:0 0 18px}
.profit-overview h2 {margin:6px 0; font-size:18px}
.profit-total {font-size:clamp(28px,4vw,44px); color:#174a3a; font-variant-numeric:tabular-nums}
.profit-overview dl {display:flex; flex-wrap:wrap; gap:22px; margin:5px 0}
.profit-overview dt {font-size:12px; color:#4d645c}
.profit-overview dd {margin:6px 0 0; font-weight:650}
.profit-note {display:flex; align-items:flex-start; gap:8px; margin:14px 0; color:#75551c; line-height:1.6}
.profit-note svg {flex:none; margin-top:3px}
.legend { flex-wrap: wrap; justify-content: flex-end; }
.legend span { display: inline-flex; align-items: center; gap: 5px; overflow-wrap: anywhere; }
#team-projects { max-height: 3em; overflow: hidden; }
.proj-name b { overflow-wrap: anywhere; }

.auth-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 24px;
}
.auth-form > .dialog-error:empty {
  display: none;
}
#temporary-password {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 18px;
  letter-spacing: .06em;
}
.inline-action {
  gap: 8px;
}
