:root {
  --ink: #202b27;
  --muted: #75827b;
  --line: #e6ebe6;
  --paper: #fff;
  --bg: #f5f7f4;
  --green: #316b4f;
  --green2: #e7f1e9;
  --lime: #d8e9b5;
  --orange: #b96936;
  --orangebg: #fff1e6;
  --red: #b24c42;
  --redbg: #fdecea;
  --blue: #4c6e90;
  --bluebg: #eaf1f8;
  --shadow: 0 10px 30px #24372a0b;
  --r: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    14px/1.5 Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #92bf9b;
  outline-offset: 2px;
}
.app {
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  z-index: 3;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 9px 25px;
}
.mark {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
}
.brand b {
  font-size: 16px;
  letter-spacing: 1.7px;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 1px;
}
.nav-label {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.1px;
  color: #a0aaa4;
  padding: 12px 11px 7px;
}
.nav {
  display: grid;
  gap: 4px;
}
.nav button {
  border: 0;
  background: transparent;
  color: #69776f;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}
.nav button:hover {
  background: #f6f8f5;
  color: var(--ink);
}
.nav button.active {
  color: var(--green);
  background: var(--green2);
}
.nav .ico {
  width: 19px;
  text-align: center;
  font-size: 16px;
}
.sidebar-foot {
  margin-top: auto;
  background: #f7f9f6;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 13px;
  font-size: 12px;
  color: var(--muted);
}
.sidebar-foot b {
  display: block;
  color: var(--ink);
  margin-bottom: 3px;
}
.workspace {
  margin-left: 240px;
  min-height: 100vh;
}
.topbar {
  height: 72px;
  background: #ffffffd9;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  position: sticky;
  top: 0;
  z-index: 2;
  backdrop-filter: blur(12px);
}
.crumb {
  font-size: 13px;
  color: var(--muted);
}
.crumb b {
  color: var(--ink);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.demo-chip {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.5px;
  color: #44693f;
  background: #edf5df;
  border: 1px solid #dce9c8;
  border-radius: 99px;
  padding: 6px 10px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eadfcf;
  color: #675139;
  display: grid;
  place-items: center;
  font-weight: 750;
}
.hamb {
  display: none;
  border: 0;
  background: none;
  font-size: 22px;
}
.content {
  max-width: 1440px;
  margin: auto;
  padding: 30px 34px 54px;
}
.pagehead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.eyebrow {
  color: var(--green);
  font-weight: 750;
  font-size: 11px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}
.pagehead h1 {
  font-size: 27px;
  letter-spacing: -0.7px;
  line-height: 1.2;
  margin: 5px 0;
}
.sub {
  color: var(--muted);
  margin: 0;
}
.btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.btn:hover {
  border-color: #b9c9bd;
  background: #fbfcfa;
}
.btn.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.btn.primary:hover {
  background: #285b42;
}
.btn.ghost {
  background: transparent;
}
.btn.danger {
  color: var(--red);
  border-color: #f2cfcb;
}
.btn.small {
  padding: 6px 9px;
  font-size: 12px;
}
.toolbar {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.pad {
  padding: 20px;
}
.grid {
  display: grid;
  gap: 16px;
}
.kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 17px;
}
.kpi {
  padding: 18px 19px;
  position: relative;
  min-height: 124px;
  cursor: pointer;
  transition:
    transform 0.16s,
    border 0.16s;
}
.kpi:hover {
  transform: translateY(-2px);
  border-color: #bdd0c2;
}
.kpi-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.kpi-val {
  font-size: 30px;
  font-weight: 760;
  letter-spacing: -1px;
  margin: 8px 0 2px;
}
.kpi-note {
  font-size: 11px;
  color: var(--muted);
}
.kpi-icon {
  position: absolute;
  right: 16px;
  top: 15px;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--green2);
  display: grid;
  place-items: center;
}
.split {
  grid-template-columns: 1.15fr 0.85fr;
  margin-bottom: 17px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 15px;
}
.section-title h2 {
  font-size: 15px;
  margin: 0;
}
.muted {
  color: var(--muted);
}
.link {
  color: var(--green);
  text-decoration: none;
  font-weight: 650;
  font-size: 12px;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}
.link:hover {
  text-decoration: underline;
}
.channel-list {
  display: grid;
  gap: 14px;
}
.channel-row {
  display: grid;
  grid-template-columns: 100px 1fr 28px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.bar {
  height: 8px;
  background: #eef1ed;
  border-radius: 20px;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: 20px;
}
.bar i.alt {
  background: #92af72;
}
.bar i.warm {
  background: #d4a26e;
}
.bar i.blue {
  background: #87a3bf;
}
.mini-list {
  display: grid;
}
.mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid #eff2ef;
}
.mini-row:first-child {
  border-top: 0;
}
.mini-row b {
  display: block;
  font-size: 12px;
}
.mini-row small {
  color: var(--muted);
  font-size: 11px;
}
.stack {
  display: grid;
  gap: 16px;
}
.lower {
  grid-template-columns: 1fr 1fr;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 99px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  background: #f0f2f0;
  color: #66716a;
}
.badge.green {
  background: var(--green2);
  color: #38694d;
}
.badge.orange {
  background: var(--orangebg);
  color: #a65f30;
}
.badge.red {
  background: var(--redbg);
  color: #a9443a;
}
.badge.blue {
  background: var(--bluebg);
  color: #456784;
}
.badge.gray {
  background: #f0f2f0;
  color: #66716a;
}
.dot {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
}
.table-wrap {
  overflow: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.table th {
  text-align: left;
  color: #8a958e;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 750;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}
.table td {
  padding: 13px 14px;
  border-bottom: 1px solid #f0f2ef;
  font-size: 12px;
  vertical-align: middle;
}
.table tr:last-child td {
  border-bottom: 0;
}
.table tbody tr:hover {
  background: #fbfcfa;
}
.order-id {
  font-weight: 750;
  color: var(--green);
}
.person {
  display: flex;
  gap: 9px;
  align-items: center;
}
.person-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #edf2ed;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #526b59;
  font-weight: 750;
}
.search {
  min-width: 220px;
  position: relative;
}
.search input {
  width: 100%;
  padding: 9px 12px 9px 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.search span {
  position: absolute;
  left: 12px;
  top: 8px;
  color: #8d9991;
}
.select {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 9px 30px 9px 11px;
  color: #536057;
  font-size: 12px;
}
.filters {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.tabbar {
  display: flex;
  gap: 4px;
  padding: 5px;
  background: #f1f4f0;
  border-radius: 11px;
  margin-bottom: 16px;
  width: max-content;
  max-width: 100%;
  overflow: auto;
}
.tabbar button {
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 8px 12px;
  color: #78847c;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.tabbar button.active {
  background: #fff;
  box-shadow: 0 1px 4px #23352915;
  color: var(--green);
}
.board {
  display: grid;
  grid-template-columns: repeat(5, minmax(210px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.column {
  background: #eff2ee;
  border-radius: 14px;
  padding: 12px;
  min-height: 410px;
}
.column.over {
  outline: 2px dashed #85a78b;
  background: #e8f0e7;
}
.colhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 2px 12px;
  font-size: 12px;
  font-weight: 750;
}
.count {
  background: #fff;
  border-radius: 7px;
  padding: 2px 7px;
  color: #7b877e;
  font-size: 11px;
}
.task {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px;
  margin-bottom: 9px;
  cursor: grab;
  box-shadow: 0 3px 10px #24372a08;
}
.task:active {
  cursor: grabbing;
}
.task h3 {
  font-size: 12px;
  margin: 0 0 7px;
  line-height: 1.4;
}
.task p {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 12px;
}
.task-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.task-foot small {
  color: var(--muted);
  font-size: 10px;
}
.task-actions {
  display: flex;
  gap: 4px;
  margin-top: 10px;
}
.task-actions button {
  flex: 1;
}
.stock-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stock-card {
  padding: 17px;
  cursor: pointer;
}
.stock-card:hover {
  border-color: #bdd0c2;
}
.stock-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.stock-card h3 {
  font-size: 13px;
  margin: 0 0 3px;
}
.stock-card .qty {
  font-size: 25px;
  font-weight: 760;
  letter-spacing: -0.7px;
  margin: 17px 0 2px;
}
.stock-card small {
  color: var(--muted);
}
.stock-meter {
  height: 5px;
  border-radius: 10px;
  background: #edf0ec;
  margin: 13px 0 9px;
  overflow: hidden;
}
.stock-meter i {
  height: 100%;
  display: block;
  border-radius: 10px;
  background: #7d9e77;
}
.stock-meter i.low {
  background: #d38e55;
}
.feedback-card {
  padding: 16px;
}
.feedback-card h3 {
  font-size: 13px;
  margin: 0;
}
.feedback-card p {
  font-size: 12px;
  line-height: 1.6;
  color: #59665d;
  margin: 10px 0 13px;
}
.rating {
  color: #b98437;
  letter-spacing: 1px;
}
.feedback-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.team-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.team-card {
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.team-avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #eaf0e9;
  color: #526c57;
  font-weight: 750;
}
.team-card b {
  display: block;
  font-size: 12px;
}
.team-card small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.empty {
  padding: 44px 20px;
  text-align: center;
  color: var(--muted);
}
.empty b {
  display: block;
  color: var(--ink);
  margin: 0 0 4px;
}
.toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 10;
  background: #24362b;
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 8px 28px #18261c38;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: 0.2s;
  font-size: 13px;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #14201961;
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 8;
}
.modal {
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 24px 80px #17221a38;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 17px;
}
.modal-head h2 {
  font-size: 18px;
  margin: 3px 0;
}
.close {
  border: 0;
  background: #f3f5f2;
  border-radius: 9px;
  width: 32px;
  height: 32px;
  font-size: 18px;
}
.form {
  display: grid;
  gap: 13px;
}
.form label {
  display: grid;
  gap: 5px;
  color: #566259;
  font-size: 12px;
  font-weight: 650;
}
.form input,
.form textarea,
.form select {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px;
  color: var(--ink);
  background: #fff;
}
.form textarea {
  min-height: 82px;
  resize: vertical;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 7px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.detail-cell {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.detail-cell small {
  display: block;
  color: var(--muted);
  margin-bottom: 4px;
}
.detail-cell b {
  font-size: 13px;
}
.notice {
  border: 1px solid #dce8d9;
  background: #f4f8f1;
  border-radius: 11px;
  padding: 11px 13px;
  color: #557059;
  font-size: 11px;
}
.mobile-nav {
  display: none;
}
@media (max-width: 1100px) {
  .sidebar {
    width: 210px;
  }
  .workspace {
    margin-left: 210px;
  }
  .content {
    padding: 26px 23px;
  }
  .topbar {
    padding: 0 23px;
  }
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split {
    grid-template-columns: 1fr;
  }
  .stock-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .sidebar {
    display: none;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    height: 60px;
    padding: 0 16px;
  }
  .hamb {
    display: inline-block;
  }
  .crumb {
    display: none;
  }
  .top-actions {
    margin-left: auto;
  }
  .content {
    padding: 23px 15px 92px;
  }
  .pagehead {
    display: block;
  }
  .pagehead > .btn,
  .pagehead > .toolbar {
    margin-top: 14px;
  }
  .pagehead h1 {
    font-size: 24px;
  }
  .kpis {
    gap: 10px;
  }
  .kpi {
    padding: 14px;
    min-height: 112px;
  }
  .kpi-val {
    font-size: 26px;
  }
  .kpi-icon {
    right: 12px;
    top: 12px;
  }
  .lower,
  .team-grid,
  .stock-grid {
    grid-template-columns: 1fr;
  }
  .search {
    min-width: 100%;
    flex: 1;
  }
  .filters {
    width: 100%;
  }
  .filters .select {
    flex: 1;
  }
  .board {
    grid-template-columns: repeat(5, 230px);
  }
  .mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-around;
    padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
    z-index: 4;
  }
  .mobile-nav button {
    background: transparent;
    border: 0;
    color: #77837a;
    font-size: 9px;
    display: grid;
    justify-items: center;
    gap: 2px;
  }
  .mobile-nav button span {
    font-size: 17px;
  }
  .mobile-nav button.active {
    color: var(--green);
    font-weight: 750;
  }
  .detail-grid {
    grid-template-columns: 1fr 1fr;
  }
  .toast {
    left: 15px;
    right: 15px;
    bottom: 74px;
    text-align: center;
  }
}
