:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #30343b;
  background: #f5f6f8;
  font-size: 13px;
  font-synthesis: none;
  --blue: #2948e5;
  --nav: #061727;
  --line: #e9ebef;
  --muted: #8a909a;
  --green: #50b67a;
  --red: #ec6476;
  --yellow: #e2b549;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}
button {
  cursor: pointer;
}
a {
  color: var(--blue);
  text-decoration: none;
}
button {
  border: 1px solid #dce0e6;
  background: white;
  color: #464b54;
  border-radius: 4px;
  padding: 8px 13px;
  white-space: nowrap;
}
button:hover {
  border-color: #7186eb;
  color: var(--blue);
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button.primary {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
button.primary:hover {
  background: #1c3bc9;
}
button.danger {
  color: #d34258;
}
button.link {
  border: 0;
  background: none;
  color: var(--blue);
  padding: 3px 0;
}
button.icon-btn {
  padding: 7px;
  border-color: transparent;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
input,
select,
textarea {
  border: 1px solid #dce0e6;
  border-radius: 4px;
  padding: 9px 10px;
  min-width: 0;
  background: white;
  color: #414650;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #ccd4ff;
  border-color: #6b80ed;
}
input[type="checkbox"] {
  accent-color: var(--blue);
  width: 15px;
  height: 15px;
  cursor: pointer;
}
textarea {
  resize: vertical;
  min-height: 90px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 20px;
  font-weight: 600;
}
h2 {
  font-size: 15px;
  font-weight: 600;
}
h3 {
  font-size: 14px;
  font-weight: 600;
}
small,
.muted {
  color: var(--muted);
}
.icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.loading {
  padding: 100px;
  text-align: center;
  color: var(--muted);
}
.topbar {
  height: 50px;
  background: var(--nav);
  display: flex;
  align-items: center;
  padding: 0 23px;
  color: #b7c1cc;
  position: sticky;
  top: 0;
  z-index: 30;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-size: 20px;
  letter-spacing: -0.7px;
  font-weight: 600;
  white-space: nowrap;
}
.brand img {
  height: 28px;
  width: 28px;
}
.brand small {
  font-size: 9px;
  border: 1px solid #5a6878;
  color: #acbbce;
  padding: 2px 4px;
  border-radius: 3px;
  letter-spacing: 0.6px;
  margin: 2px 0 0 3px;
}
.nav {
  display: flex;
  align-self: stretch;
  gap: 4px;
}
.navitem {
  position: relative;
  display: flex;
}
.navitem > a {
  padding: 0 18px;
  display: flex;
  align-items: center;
  color: #b8c1cc;
  font-size: 14px;
  position: relative;
}
.navitem.active > a,
.navitem:hover > a {
  color: white;
  background: #11283c;
}
.navitem.active > a:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  height: 3px;
  background: #6b84ff;
}
.nav-menu {
  display: none;
  position: absolute;
  top: 50px;
  left: 0;
  min-width: 235px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px #13244220;
  padding: 15px 8px;
  border-radius: 0 0 6px 6px;
  color: #374151;
}
.navitem:hover .nav-menu,
.navitem:focus-within .nav-menu {
  display: block;
}
.nav-menu strong {
  display: block;
  padding: 5px 12px 10px;
  font-size: 12px;
  color: #9298a2;
}
.nav-menu a {
  display: block;
  padding: 10px 12px;
  color: #444b56;
  border-radius: 4px;
}
.nav-menu a:hover {
  background: #f0f3ff;
  color: var(--blue);
}
.top-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 13px;
}
.top-tools button {
  color: #c5cfda;
}
.account {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: #dce2e9;
}
.account .avatar {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #2a4056;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 10px;
}
.notification {
  position: relative;
}
.notification:after {
  content: "";
  position: absolute;
  right: 8px;
  top: 7px;
  background: #fd9560;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.home {
  max-width: 1510px;
  margin: auto;
  padding: 22px 32px 16px;
}
.notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  background: #fffbea;
  border: 1px solid #f5edcc;
  color: #746b4e;
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 20px;
  line-height: 1.5;
}
.notice .icon {
  color: #d4af49;
}
.notice .close {
  margin-left: auto;
}
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
}
.home-main,
.home-rail {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.card {
  background: white;
  border: 1px solid #e5e8ec;
  border-radius: 7px;
  overflow: hidden;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  gap: 15px;
}
.card-body {
  padding: 0 20px 20px;
}
.tasks {
  padding-bottom: 8px;
}
.task-section {
  padding: 4px 20px 18px;
}
.task-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #959aa2;
  margin: 4px 0 15px;
  font-size: 12px;
}
.task-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  row-gap: 20px;
}
.metric {
  border: 0;
  text-align: left;
  white-space: normal;
  padding: 0 18px;
  background: transparent;
  position: relative;
  border-radius: 0;
  line-height: 1.5;
}
.metric:not(:nth-child(4n + 1)):before {
  position: absolute;
  content: "";
  height: 24px;
  width: 1px;
  background: #f0f1f3;
  left: 0;
  top: 8px;
}
.metric strong {
  display: block;
  font-size: 22px;
  font-weight: 500;
  color: #292d35;
  padding-left: 9px;
  margin-bottom: 4px;
}
.metric span {
  font-size: 11px;
  color: #666e77;
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.dot.red {
  background: var(--red);
}
.dot.yellow {
  background: var(--yellow);
}
.tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: thin;
  white-space: nowrap;
}
.tabs button {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 14px 1px;
  color: #5e646e;
  position: relative;
}
.tabs button.active {
  color: var(--blue);
  font-weight: 600;
}
.tabs button.active:after {
  content: "";
  height: 2px;
  background: var(--blue);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}
.tabs button em {
  font-style: normal;
  font-size: 11px;
  background: #f0f2f5;
  color: #7f8793;
  border-radius: 8px;
  padding: 1px 5px;
  margin-left: 5px;
}
.card .tabs {
  padding: 0 20px;
  gap: 23px;
}
.news-list {
  padding: 8px 20px 14px;
}
.news-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #f5f5f6;
}
.news-row:last-child {
  border: 0;
}
.news-row button {
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  white-space: normal;
  line-height: 1.5;
  color: #424750;
  font-size: 12px;
}
.news-row time {
  margin-left: auto;
  font-size: 11px;
  color: #969ba3;
  white-space: nowrap;
}
.tag {
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 3px;
  background: #eef2ff;
  color: #5163b8;
  display: inline-block;
  white-space: nowrap;
}
.tag.green {
  background: #edf8f0;
  color: #51a76c;
}
.tag.orange {
  background: #fff5e6;
  color: #d89639;
}
.tag.red {
  background: #fff0f1;
  color: #d95f71;
}
.news-row .tag {
  margin-left: 7px;
  font-size: 9px;
}
.sales-summary {
  display: flex;
  padding: 25px 23px 7px;
  gap: 55px;
  align-items: flex-start;
}
.sales-number strong {
  font-size: 24px;
  font-weight: 500;
  display: block;
  color: #363c48;
  margin-bottom: 8px;
}
.sales-number span {
  font-size: 11px;
  color: #8a909b;
}
.segmented {
  display: flex;
  margin-left: auto;
  gap: 2px;
  background: #f5f6f8;
  padding: 3px;
  border-radius: 4px;
}
.segmented button {
  font-size: 11px;
  border: 0;
  background: transparent;
  padding: 7px 10px;
}
.segmented button.active {
  background: white;
  color: var(--blue);
  box-shadow: 0 1px 4px #20304012;
}
.chart {
  padding: 12px 20px 15px;
}
.chart svg {
  width: 100%;
  height: 195px;
  overflow: visible;
}
.chart-labels {
  display: flex;
  justify-content: space-between;
  padding: 0 0 0 35px;
  font-size: 10px;
  color: #9ba1ab;
}
.chart-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 11px;
  color: #9aa1ad;
  margin-top: 12px;
}
.chart-legend .dot {
  background: #5b7af3;
}
.plan-head {
  padding: 18px 18px 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.plan-head button {
  margin-left: auto;
  font-size: 11px;
}
.plan-detail {
  padding: 2px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.plan-detail > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 11px;
  line-height: 1.6;
}
.plan-detail span {
  color: #949aa2;
}
.plan-detail strong {
  font-weight: 400;
  color: #5b616b;
}
.progress {
  height: 5px !important;
  border-radius: 3px;
  background: #edf0f6;
  overflow: hidden;
  margin-top: -8px;
}
.progress i {
  background: #8f9fee;
  display: block;
  height: 5px;
}
.training {
  padding: 17px 18px;
  background: linear-gradient(105deg, #eef2ff, #f9fbff);
}
.training h2 {
  display: flex;
  justify-content: space-between;
}
.training p {
  font-size: 12px;
  color: #67738b;
  line-height: 1.8;
  margin-top: 10px;
}
.training-actions {
  display: flex;
  gap: 18px;
  margin-top: 12px;
  font-size: 11px;
}
.promo {
  background: linear-gradient(120deg, #f1f1ff, #edf8ff);
  padding: 18px;
  position: relative;
  min-height: 118px;
}
.promo strong {
  font-size: 18px;
  display: block;
  line-height: 1.5;
  color: #33445f;
}
.promo p {
  font-size: 11px;
  color: #7788a6;
  margin-top: 5px;
}
.promo .icon {
  position: absolute;
  right: 16px;
  bottom: 15px;
  width: 47px;
  height: 47px;
  stroke: #6580cd;
  opacity: 0.55;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 17px 10px;
  padding: 0 18px 20px;
}
.quick-grid a {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #68717c;
  font-size: 11px;
}
.quick-grid a:hover {
  color: var(--blue);
}
.quick-grid .icon {
  width: 16px;
  height: 16px;
  color: #8c9bb9;
}
.faq {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 0 18px 20px;
}
.faq button {
  padding: 0;
  text-align: left;
  white-space: normal;
  border: 0;
  font-size: 11px;
  line-height: 1.6;
  background: none;
  color: #737b86;
}
.footer {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  color: #a3a8b0;
  font-size: 10px;
  margin: 25px 0 5px;
}
.footer a {
  color: #8d96a6;
}
.support-float {
  position: fixed;
  bottom: 25px;
  right: 17px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  z-index: 20;
}
.support-float button {
  border-radius: 50%;
  width: 37px;
  height: 37px;
  padding: 8px;
  box-shadow: 0 3px 10px #12244c0a;
  color: #647ce5;
}
.workspace {
  display: grid;
  grid-template-columns: 206px minmax(0, 1fr);
  min-height: calc(100vh - 50px);
}
.sidebar {
  background: white;
  border-right: 1px solid var(--line);
  padding: 22px 12px;
  position: sticky;
  top: 50px;
  height: calc(100vh - 50px);
  overflow: auto;
}
.sidebar h2 {
  padding: 0 12px;
  margin-bottom: 21px;
  font-size: 14px;
}
.sidebar label {
  display: block;
  margin: 21px 12px 9px;
  color: #8a9099;
  font-size: 11px;
}
.sidebar a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  color: #606772;
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 4px;
}
.sidebar a.active {
  color: var(--blue);
  background: #edf1ff;
}
.sidebar a:hover {
  background: #f5f7fc;
}
.sidebar a small {
  color: #9ba2ae;
}
.side-note {
  padding: 15px;
  margin: 40px 0 0;
  border-radius: 6px;
  background: linear-gradient(135deg, #284be5, #5a74e7);
  color: #fff;
  line-height: 1.7;
  font-size: 11px;
}
.side-note strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}
.page {
  padding: 23px 25px;
  min-width: 0;
}
.page-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.page-title p {
  color: #9097a2;
  font-size: 12px;
  margin-top: 7px;
}
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 17px 18px;
  background: white;
  align-items: center;
}
.filters input[type="search"] {
  width: 260px;
}
.filters select {
  min-width: 150px;
}
.filters .push {
  margin-left: auto;
}
.panel > .tabs {
  padding: 0 18px;
  gap: 24px;
}
.table-toolbar {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 13px 18px;
  color: #8b939e;
  font-size: 11px;
  border-bottom: 1px solid var(--line);
}
.table-toolbar .push {
  margin-left: auto;
}
.table-toolbar button {
  font-size: 11px;
  padding: 5px 9px;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}
th {
  font-weight: 400;
  background: #f8f9fb;
  color: #7a8290;
  white-space: nowrap;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
td {
  padding: 17px 15px;
  border-bottom: 1px solid #eff1f4;
  color: #626a76;
  vertical-align: middle;
  line-height: 1.6;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fcfcff;
}
td strong {
  font-weight: 500;
  color: #3f4855;
}
td small {
  display: block;
  font-size: 10px;
  margin-top: 3px;
}
td .link + .link {
  margin-left: 12px;
}
td.number,
th.number {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
}
.paper-thumb {
  height: 43px;
  width: 43px;
  min-width: 43px;
  border-radius: 4px;
  background: #f1f4fa;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.paper-thumb:before {
  content: "";
  width: 21px;
  height: 29px;
  background: linear-gradient(145deg, #fff 40%, #dce5f3);
  border: 1px solid #d0d8e4;
  border-radius: 1px;
  box-shadow: 3px 3px 0 #e5e9ef;
  transform: rotate(-9deg);
}
.paper-thumb:after {
  position: absolute;
  content: "A4";
  font-size: 8px;
  color: #9ba9bd;
  transform: rotate(-9deg);
}
.paper-thumb.t1 {
  background: #f1f4ee;
}
.paper-thumb.t2 {
  background: #fff7eb;
}
.paper-thumb.t3 {
  background: #f4effa;
}
.pagination {
  padding: 15px 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  color: #8b939e;
  font-size: 11px;
}
.pagination button {
  padding: 5px 10px;
}
.pagination select {
  padding: 5px;
}
.empty {
  padding: 65px 20px;
  text-align: center;
  color: #9ca5b3;
}
.empty .icon {
  display: block;
  margin: 0 auto 15px;
  width: 35px;
  height: 35px;
  color: #c1c9d6;
}
.empty p {
  margin-top: 8px;
  font-size: 12px;
}
.order-heading td {
  padding: 9px 15px;
  background: #f7f9fe;
  font-size: 11px;
}
.order-heading .order-id {
  font-weight: 600;
  color: var(--blue);
}
.order-heading .platform {
  margin-left: 20px;
}
.platform-mark {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  font-size: 9px;
  margin-right: 5px;
  background: #ffe77b;
  color: #785d1d;
  font-weight: 600;
}
.platform-mark.shopee {
  background: #fff0e9;
  color: #ee754d;
}
.platform-mark.amazon {
  background: #edf1f5;
  color: #40536b;
}
.platform-mark.shein {
  background: #eaeaea;
  color: #333;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.stat-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 19px;
}
.stat-card span {
  color: #8b929c;
  font-size: 12px;
}
.stat-card strong {
  display: block;
  font-size: 25px;
  font-weight: 500;
  margin-top: 12px;
  color: #3b4451;
}
.stat-card small {
  display: block;
  margin-top: 9px;
  color: #a5aab2;
  font-size: 10px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 3px;
  font-size: 11px;
  color: #6b778b;
  background: #f1f3f7;
  padding: 3px 7px;
  white-space: nowrap;
}
.status-pill.green {
  background: #edf8f1;
  color: #4ca16a;
}
.status-pill.blue {
  background: #edf1ff;
  color: #5b73cf;
}
.status-pill.orange {
  background: #fff7e9;
  color: #c59944;
}
.status-pill.red {
  background: #fff0f1;
  color: #d57582;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.table-note {
  padding: 12px 18px;
  color: #8a929c;
  border-top: 1px solid var(--line);
  font-size: 11px;
}
.bar-list {
  padding: 5px 23px 23px;
}
.bar-item {
  margin: 18px 0;
}
.bar-caption {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #727c8b;
  margin-bottom: 9px;
}
.bar-track {
  height: 9px;
  background: #f0f3f9;
  border-radius: 5px;
  overflow: hidden;
}
.bar-track i {
  display: block;
  height: 100%;
  background: #788eeb;
  border-radius: 5px;
}
.ticket-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 500px;
}
.ticket-list {
  border-right: 1px solid var(--line);
  padding: 8px;
}
.ticket-item {
  display: block;
  border: 0;
  border-radius: 4px;
  padding: 17px;
  text-align: left;
  white-space: normal;
  width: 100%;
  line-height: 1.7;
}
.ticket-item.active {
  background: #f0f3ff;
}
.ticket-item strong {
  display: block;
  font-weight: 500;
}
.ticket-item span {
  font-size: 11px;
  color: #8a93a0;
}
.ticket-content {
  padding: 25px;
}
.message {
  padding: 18px;
  background: #f4f6f9;
  border-radius: 0 10px 10px;
  margin: 22px 0;
  line-height: 1.8;
  max-width: 600px;
}
.internal-note {
  padding: 12px 15px;
  background: #fffbea;
  border-left: 2px solid #ebd486;
  margin: 14px 0;
  white-space: pre-wrap;
}
.connect-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.connect-card {
  padding: 23px;
}
.connect-card h3 {
  margin: 15px 0 10px;
}
.connect-card p {
  color: #8d96a3;
  line-height: 1.7;
  font-size: 12px;
  margin-bottom: 18px;
}
.wide-mark {
  font-size: 19px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
}
.inline-form {
  padding: 22px;
  max-width: 650px;
}
.inline-form label {
  display: grid;
  gap: 9px;
  margin-bottom: 18px;
  color: #687282;
}
.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 8px;
}
dialog {
  border: 0;
  border-radius: 8px;
  padding: 0;
  width: min(680px, calc(100vw - 32px));
  box-shadow: 0 20px 70px #07182d33;
  color: #414956;
  max-height: 90vh;
}
dialog::backdrop {
  background: #101b2c65;
  backdrop-filter: blur(2px);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 23px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  font-size: 17px;
}
.modal-body {
  padding: 23px;
  overflow: auto;
  max-height: 65vh;
}
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 15px 23px;
  border-top: 1px solid var(--line);
  background: #fcfcfd;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: #707987;
}
.form-grid .full {
  grid-column: 1/-1;
}
.form-grid label small {
  font-size: 11px;
  line-height: 1.5;
}
.form-error {
  background: #fff0f2;
  color: #cf5167;
  padding: 10px 12px;
  margin-bottom: 18px;
  border-radius: 4px;
  font-size: 12px;
}
.form-error:empty {
  display: none;
}
.detail-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.detail-list small {
  display: block;
  margin-bottom: 6px;
}
.detail-list strong {
  font-weight: 500;
}
.explanation {
  font-size: 12px;
  line-height: 1.8;
  color: #87919f;
  padding: 12px;
  background: #f6f8fc;
  border-radius: 4px;
  margin-bottom: 18px;
}
.timeline {
  padding: 12px 0;
  font-size: 12px;
  color: #8993a3;
}
.timeline p {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
#toasts {
  position: fixed;
  top: 67px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.toast {
  background: white;
  border: 1px solid #dde9e1;
  border-radius: 5px;
  box-shadow: 0 5px 20px #0f294421;
  padding: 13px 22px;
  color: #4e9765;
  max-width: 90vw;
  min-width: 230px;
  text-align: center;
}
.toast.error {
  color: #ce5264;
  border-color: #f0d3d8;
}
.error-screen {
  margin: 70px auto;
  max-width: 550px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 35px;
  line-height: 1.7;
}
.error-screen button {
  margin-top: 18px;
}
@media (min-width: 1500px) {
  .home {
    padding-top: 25px;
  }
  .home-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .task-section {
    padding-bottom: 23px;
  }
  .task-metrics {
    row-gap: 24px;
  }
}
@media (max-width: 1250px) {
  .topbar {
    gap: 15px;
    padding: 0 16px;
  }
  .navitem > a {
    padding: 0 12px;
  }
  .top-tools {
    gap: 5px;
  }
  .account span:not(.avatar) {
    display: none;
  }
  .home {
    padding: 20px;
  }
  .home-grid {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 15px;
  }
  .home-main,
  .home-rail {
    gap: 15px;
  }
  .metric {
    padding: 0 10px;
  }
  .sales-summary {
    gap: 25px;
  }
  .segmented button {
    padding: 6px;
  }
  .workspace {
    grid-template-columns: 185px 1fr;
  }
  .page {
    padding: 20px;
  }
  .connect-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 980px) {
  .topbar {
    gap: 10px;
  }
  .brand {
    font-size: 16px;
  }
  .brand small {
    display: none;
  }
  .navitem > a {
    padding: 0 10px;
    font-size: 12px;
  }
  .top-tools .icon-btn {
    display: none;
  }
  .home-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .home-rail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .home-rail .faq-card {
    grid-column: 1/-1;
  }
  .home {
    padding: 18px 22px;
  }
  .task-metrics {
    grid-template-columns: repeat(4, 1fr);
  }
  .workspace {
    grid-template-columns: 165px 1fr;
  }
  .page {
    padding: 17px;
  }
  .sidebar {
    padding: 19px 8px;
  }
  .sidebar h2 {
    font-size: 13px;
  }
  .sidebar a {
    font-size: 11px;
  }
  .stats-row {
    gap: 10px;
  }
  .stat-card {
    padding: 14px;
  }
  .stat-card strong {
    font-size: 20px;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .ticket-layout {
    grid-template-columns: 240px 1fr;
  }
  .sales-summary .segmented {
    margin-left: auto;
  }
}
@media (max-width: 700px) {
  .topbar {
    height: auto;
    min-height: 50px;
    flex-wrap: wrap;
    padding: 10px 14px 0;
    gap: 7px;
  }
  .brand {
    font-size: 18px;
  }
  .brand small {
    display: block;
  }
  .top-tools {
    position: absolute;
    right: 15px;
    top: 10px;
  }
  .nav {
    width: 100%;
    overflow-x: auto;
    order: 3;
    height: 40px;
    gap: 5px;
    scrollbar-width: none;
  }
  .navitem > a {
    padding: 0 12px;
    white-space: nowrap;
  }
  .nav-menu {
    display: none !important;
  }
  .home {
    padding: 14px;
  }
  .home-grid {
    gap: 14px;
  }
  .home-rail {
    grid-template-columns: 1fr;
  }
  .home-rail .faq-card {
    grid-column: auto;
  }
  .task-section {
    padding: 5px 13px 20px;
  }
  .metric {
    padding: 0 7px;
  }
  .metric strong {
    font-size: 21px;
  }
  .metric span {
    font-size: 10px;
  }
  .task-metrics {
    row-gap: 22px;
  }
  .sales-summary {
    flex-wrap: wrap;
    padding: 20px;
    gap: 25px;
  }
  .sales-summary .segmented {
    margin-left: 0;
  }
  .sales-number strong {
    font-size: 22px;
  }
  .card-head {
    padding: 16px;
  }
  .news-row time {
    font-size: 9px;
  }
  .news-row button {
    font-size: 11px;
  }
  .footer {
    flex-wrap: wrap;
    gap: 10px;
    font-size: 9px;
  }
  .workspace {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 8px 12px;
    border-bottom: 1px solid var(--line);
    overflow: auto;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
  }
  .sidebar h2,
  .sidebar label,
  .side-note {
    display: none;
  }
  .sidebar a {
    margin: 0;
    padding: 9px 11px;
  }
  .page {
    padding: 16px 12px;
  }
  .page-title {
    align-items: flex-start;
  }
  .page-title h1 {
    font-size: 18px;
  }
  .page-title .actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
  }
  .page-title .actions button {
    font-size: 11px;
    padding: 7px 9px;
  }
  .filters {
    padding: 12px;
    gap: 8px;
  }
  .filters input[type="search"] {
    width: 100%;
  }
  .filters select {
    min-width: 120px;
    flex: 1;
  }
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-grid {
    gap: 14px;
  }
  .form-grid label {
    font-size: 11px;
  }
  .modal-body {
    padding: 18px;
  }
  .connect-grid {
    grid-template-columns: 1fr;
  }
  .ticket-layout {
    grid-template-columns: 1fr;
  }
  .ticket-list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    max-height: 220px;
    overflow: auto;
  }
  .ticket-content {
    padding: 20px;
  }
  .support-float {
    display: none;
  }
  .notice {
    font-size: 10px;
  }
  .notice .close {
    padding: 4px;
  }
  .chart svg {
    height: 170px;
  }
  .table-toolbar {
    padding: 12px;
    gap: 8px;
  }
}
@media print {
  .topbar,
  .sidebar,
  .filters,
  .actions,
  .support-float,
  .notice,
  .footer,
  .pagination,
  .table-toolbar,
  dialog,
  #toasts {
    display: none !important;
  }
  .workspace {
    display: block;
  }
  .page,
  .home {
    padding: 0;
  }
  .panel,
  .card {
    border: 0;
  }
  th,
  td {
    padding: 8px;
  }
  .table-scroll {
    overflow: visible;
  }
}
/* Expanded operational forms and warehouse views */
.item-row {
  display: grid;
  grid-template-columns:
    minmax(180px, 3fr) minmax(90px, 1fr) minmax(110px, 1fr)
    32px;
  gap: 12px;
  align-items: end;
  padding: 14px 0;
  border-bottom: 1px solid #edf0f5;
}
.item-row:has(label:nth-child(2):last-of-type) {
  grid-template-columns: minmax(180px, 3fr) minmax(100px, 1fr) 32px;
}
.item-row label {
  min-width: 0;
}
.item-row .icon-btn {
  margin-bottom: 3px;
}
.item-row select,
.item-row input {
  width: 100%;
}
.line-editor {
  border-top: 1px solid #edf0f5;
}
.receipt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid #edf0f5;
}
.receipt-row small {
  display: block;
  margin-top: 6px;
  color: #8290a3;
}
.receipt-row label {
  width: 140px;
  flex-shrink: 0;
}
.receipt-row input {
  width: 100%;
}
.receipt-lines {
  margin: 10px 0 24px;
}
.warehouse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
}
.warehouse-card {
  padding: 26px;
}
.warehouse-card h2 {
  font-size: 20px;
  margin: 15px 0 8px;
}
.warehouse-card p {
  color: #8792a2;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.4px;
  color: #8290a3;
}
.warehouse-metrics {
  display: flex;
  gap: 26px;
  margin: 28px 0;
}
.warehouse-metrics strong {
  display: block;
  font-size: 22px;
  color: #26344b;
}
.warehouse-metrics small {
  display: block;
  color: #8290a3;
  margin-top: 8px;
}
.batch-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-bottom: 1px solid #edf0f5;
}
.batch-actions small {
  color: #8290a3;
}
.blue-text {
  color: #2585e9 !important;
}
.modal-body h3 {
  font-size: 15px;
  padding-top: 12px;
}
dialog:has(.line-editor) {
  width: min(940px, 94vw);
}
@media (max-width: 700px) {
  .item-row,
  .item-row:has(label:nth-child(2):last-of-type) {
    grid-template-columns: 1fr 90px;
  }
  .item-row label:first-child {
    grid-column: 1/-1;
  }
  .receipt-row {
    gap: 12px;
  }
  .batch-actions {
    flex-wrap: wrap;
  }
}
