@import url("/site-assets/brand/fonts.css");
:root {
  --ink: #282e25;
  --muted: #61675c;
  --line: #e0e4d8;
  --paper: #f4f5f1;
  --green: #96ad55;
  --soft: #f4f5f1;
  --amber: #ae7132;
  --danger: #b1423e;
  --radius: 12px;
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    sans-serif;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #61675c;
  outline-offset: 3px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #61675c;
  outline-offset: 1px;
}
.boot {
  padding: 15vh 10%;
  font-family: Georgia, serif;
  font-size: 45px;
}
.boot span {
  display: block;
  font: 14px sans-serif;
  margin-top: 12px;
  color: var(--muted);
}
.shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #183f37;
  color: #c8d8d0;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  width: 232px;
  z-index: 5;
}
.brand {
  font:
    34px Georgia,
    serif;
  color: #fff;
  letter-spacing: -1.3px;
}
.brand small {
  font: 10px sans-serif;
  display: block;
  letter-spacing: 2.5px;
  color: #9bb6a8;
  margin-top: 4px;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: #85a697;
  margin: 43px 16px 12px;
}
.nav {
  display: grid;
  gap: 5px;
}
.nav a {
  padding: 11px 15px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.nav a:hover {
  background: #ffffff0b;
}
.nav a.active {
  color: white;
  background: #376052;
}
.nav-icon {
  font:
    17px Georgia,
    serif;
  width: 20px;
  text-align: center;
  color: #b4cabc;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 25px 13px 0;
  font-size: 11px;
  line-height: 1.9;
  color: #8eb09d;
}
.sidebar-bottom b {
  display: block;
  color: #c6d7cd;
  font-weight: 500;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 76px;
  background: #fbfcf9;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb span {
  color: var(--ink);
  margin-left: 10px;
}
.user-area {
  display: flex;
  gap: 13px;
  align-items: center;
  font-size: 12px;
}
.avatar {
  background: var(--soft);
  color: var(--ink);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 600;
}
.quiet {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 5px;
}
.content {
  padding: 36px 42px 48px;
  max-width: 1560px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 27px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 9px;
}
h1 {
  font-size: 27px;
  line-height: 1.3;
  letter-spacing: -0.7px;
  margin: 0 0 10px;
  font-weight: 600;
}
h2 {
  font-size: 16px;
  margin: 0;
  font-weight: 600;
}
h3 {
  font-size: 14px;
  margin: 0 0 10px;
}
.subtitle {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  max-width: 760px;
}
.btn {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9e1d9;
  border-radius: 7px;
  padding: 9px 15px;
  font-size: 12px;
  font-weight: 500;
  background: white;
  color: var(--ink);
  white-space: nowrap;
  min-height: 39px;
}
.btn:hover {
  background: #f0f4ee;
}
.btn.primary {
  background: var(--green);
  border-color: var(--ink);
  color: #fff;
}
.btn.primary:hover {
  background: #194333;
}
.btn.danger {
  color: var(--danger);
  border-color: #e7c7c4;
}
.btn.small {
  padding: 5px 9px;
  min-height: 30px;
  font-size: 11px;
}
.actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 24px;
}
.metric {
  background: white;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}
.metric-label {
  font-size: 12px;
  color: var(--muted);
}
.metric-value {
  font-size: 32px;
  line-height: 1.3;
  margin: 12px 0 9px;
  font-weight: 500;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.metric-note {
  font-size: 11px;
  color: var(--muted);
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #7d9c71;
  border-radius: 50%;
  margin-right: 5px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 22px;
  overflow: hidden;
}
.panel-head {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}
.panel-body {
  padding: 23px;
}
.panel-subtitle {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.two-col {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 22px;
}
.tasks {
  display: grid;
}
.task {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f0f2ed;
}
.task:last-child {
  border: 0;
}
.task-title {
  font-size: 13px;
}
.task p {
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0 0;
}
.task-number {
  font-size: 20px;
  font-weight: 500;
  margin-right: 15px;
}
.muted {
  color: var(--muted);
}
.small-text {
  font-size: 11px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
  background: #eef1ed;
  color: #78847b;
}
.badge.green {
  color: #2d6a4c;
  background: #eaf3e9;
}
.badge.amber {
  color: #a06d29;
  background: #faf0dd;
}
.badge.red {
  color: #a84943;
  background: #fbebe9;
}
.badge.blue {
  color: #4b7687;
  background: #edf4f6;
}
.toolbar {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}
input,
select,
textarea {
  border: 1px solid #dce2da;
  border-radius: 6px;
  background: white;
  color: var(--ink);
  padding: 10px 12px;
  min-width: 0;
  width: 100%;
  font-size: 12px;
}
input::placeholder,
textarea::placeholder {
  color: #9ba59a;
}
.toolbar input {
  max-width: 270px;
}
.toolbar select {
  width: auto;
  max-width: 210px;
}
.toolbar input[type="date"] {
  width: 145px;
}
.toolbar .count {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12px;
}
th {
  background: #fafbf8;
  color: #859087;
  padding: 13px 22px;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: 0.5px;
}
td {
  padding: 17px 22px;
  border-bottom: 1px solid #eef1eb;
  vertical-align: middle;
}
tbody tr:last-child td {
  border: 0;
}
tbody tr:hover {
  background: #fcfdfb;
}
td strong {
  font-weight: 550;
}
.cell-sub {
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.product-cell {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 200px;
}
.swatch {
  width: 45px;
  height: 49px;
  background: #f1f0e9;
  border-radius: 5px;
  display: grid;
  place-items: center;
  color: #b8b9ac;
  font-size: 18px;
  object-fit: cover;
  flex-shrink: 0;
}
.table-link {
  color: var(--ink);
  font-size: 12px;
  border: 0;
  padding: 4px 0;
  background: none;
  text-align: left;
}
.empty {
  padding: 65px 25px;
  text-align: center;
  color: var(--muted);
}
.empty-icon {
  font-size: 30px;
  color: #9aad9c;
  margin-bottom: 12px;
}
.empty h3 {
  color: var(--ink);
  font-weight: 500;
}
.empty p {
  font-size: 12px;
  max-width: 460px;
  margin: 0 auto 18px;
}
.notice {
  padding: 13px 17px;
  background: #f4f6ee;
  border: 1px solid #e0e8d7;
  border-radius: 8px;
  font-size: 12px;
  color: #627353;
  margin-bottom: 20px;
}
.notice.warn {
  background: #fcf5e8;
  border-color: #efe0c5;
  color: #96712e;
}
.notice.error {
  background: #fff0ee;
  color: var(--danger);
  border-color: #ecd1ce;
}
.timeline {
  padding: 8px 23px;
}
.timeline-item {
  padding: 15px 0 15px 18px;
  border-left: 1px solid #e5eade;
  position: relative;
}
.timeline-item:before {
  content: "";
  width: 6px;
  height: 6px;
  background: #94ab8e;
  border: 3px solid white;
  border-radius: 50%;
  position: absolute;
  left: -6px;
  top: 20px;
  box-sizing: content-box;
}
.timeline-item p {
  margin: 0;
  font-size: 12px;
}
.timeline-item time {
  font-size: 10px;
  color: var(--muted);
}
.footer-note {
  font-size: 10px;
  color: #9aa394;
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
}
.pagination {
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
  font-size: 11px;
}
.overlay {
  position: fixed;
  inset: 0;
  background: #142d2866;
  z-index: 20;
  display: flex;
  justify-content: flex-end;
  backdrop-filter: blur(3px);
}
.drawer {
  width: 650px;
  max-width: 100%;
  background: var(--paper);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 60px #10251b22;
}
.drawer.wide {
  width: 900px;
}
.drawer-head {
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
}
.drawer-head h2 {
  font-size: 19px;
}
.drawer-body {
  padding: 25px 28px;
  overflow-y: auto;
  flex: 1;
}
.drawer-foot {
  margin-top: 24px;
  padding: 18px 28px;
  background: white;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.field {
  display: grid;
  gap: 7px;
  align-content: start;
}
.field > label {
  font-size: 11px;
  color: #627165;
  font-weight: 500;
}
.field.full {
  grid-column: 1/-1;
}
.section-title {
  grid-column: 1/-1;
  margin-top: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
}
.help {
  font-size: 10px;
  color: var(--muted);
}
textarea {
  resize: vertical;
  min-height: 90px;
}
.error-slot {
  margin-bottom: 15px;
  white-space: pre-wrap;
}
.image-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0;
}
.image-item {
  position: relative;
}
.image-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
}
.image-item button {
  position: absolute;
  right: 0;
  top: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  font-size: 12px;
}
.detail-grid small {
  color: var(--muted);
  display: block;
}
.chat {
  display: grid;
  gap: 16px;
  padding: 23px;
}
.message {
  max-width: 85%;
  justify-self: start;
  background: #f3f5ef;
  padding: 13px 16px;
  border-radius: 0 10px 10px 10px;
  min-width: 140px;
}
.message.service {
  background: #eaf2ed;
  justify-self: end;
  border-radius: 10px 0 10px 10px;
}
.message-meta {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 6px;
}
.message-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.detail-note {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-brand {
  background: #183f37;
  padding: 10vh 12%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  position: relative;
  overflow: hidden;
}
.auth-brand:after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border: 1px solid #708a6955;
  border-radius: 50%;
  right: -200px;
  bottom: -80px;
  box-shadow:
    0 0 0 50px #ffffff02,
    0 0 0 100px #ffffff02,
    0 0 0 150px #ffffff02;
}
.auth-brand h1 {
  font:
    45px/1.25 Georgia,
    serif;
  margin: 65px 0 22px;
}
.auth-brand p {
  font-size: 13px;
  color: #acc6b8;
}
.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 35px;
}
.auth-form {
  width: 360px;
  max-width: 100%;
}
.auth-form h1 {
  margin-bottom: 15px;
}
.auth-form form {
  display: grid;
  gap: 18px;
  margin-top: 27px;
}
.auth-form .btn {
  width: 100%;
}
.mobile-menu {
  display: none;
}
.loading {
  padding: 80px;
  text-align: center;
  color: var(--muted);
}
#toast {
  position: fixed;
  top: max(20px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  background: #edf6ef;
  color: #245641;
  border: 1px solid #bfd9c8;
  padding: 14px 22px;
  border-radius: 8px;
  z-index: 50;
  box-shadow: 0 8px 30px #0002;
  max-width: 90%;
  font-size: 12px;
  display: none;
}
#toast.error {
  background: #fff0ef;
  color: #a3332b;
  border-color: #efc3be;
}
#toast.show {
  display: block;
}
.summary-value {
  font-size: 22px;
  margin-top: 8px;
}
.report-money {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.report-money .metric {
  min-width: 180px;
}
.raw-log {
  font: 11px/1.7 monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.form-note {
  font-size: 11px;
  color: var(--muted);
  margin: 16px 0;
}
.status-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.status-line:last-child {
  border: 0;
}
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-tab {
  background: transparent;
  border: 1px solid var(--line);
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--muted);
}
.filter-tab.selected {
  color: var(--ink);
  background: var(--soft);
  border-color: #c4d5c3;
}
.auth-footer {
  font-size: 10px;
  color: var(--muted);
  margin-top: 28px;
}
.pill-code {
  font: 11px monospace;
  color: var(--muted);
}
@media (min-width: 1450px) {
  .content {
    padding-top: 44px;
  }
  .metric {
    padding: 25px;
  }
  .metric-value {
    font-size: 38px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 200px;
    padding: 28px 14px;
  }
  .shell {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .content {
    padding: 28px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 17px;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .auth-brand {
    padding: 10vh 10%;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 230px;
  }
  .sidebar.open {
    transform: none;
    box-shadow: 0 0 0 100vmax #0005;
  }
  .main {
    width: 100%;
  }
  .mobile-menu {
    display: inline-flex;
    margin-right: 12px;
  }
  .topbar {
    height: 62px;
    padding: 0 17px;
  }
  .content {
    padding: 25px 16px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric-value {
    font-size: 29px;
  }
  .metric {
    padding: 17px;
  }
  .page-heading {
    flex-wrap: wrap;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .page-heading > .actions {
    width: 100%;
  }
  .toolbar {
    padding: 15px;
    gap: 8px;
  }
  .toolbar input {
    max-width: 100%;
    flex: 1;
    min-width: 130px;
  }
  .toolbar select {
    flex: 1;
    max-width: 100%;
  }
  .toolbar .count {
    width: 100%;
    margin-left: 0;
  }
  .panel-head {
    padding: 18px;
  }
  .panel-body {
    padding: 18px;
  }
  th,
  td {
    padding: 14px 16px;
  }
  .user-area > span {
    display: none;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
  .drawer-head,
  .drawer-body,
  .drawer-foot {
    padding: 20px;
  }
  .auth-wrap {
    grid-template-columns: 1fr;
  }
  .auth-brand {
    padding: 30px;
    min-height: auto;
  }
  .auth-brand h1,
  .auth-brand > div:last-child {
    display: none;
  }
  .auth-panel {
    padding: 35px 25px;
  }
  .brand {
    font-size: 29px;
  }
  .auth-form {
    width: 100%;
  }
  .detail-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-note {
    display: block;
  }
  .two-col {
    gap: 0;
  }
}

.upload-box {
  border: 1px dashed var(--line);
  padding: 18px;
  border-radius: 10px;
  background: white;
}
.upload-preview {
  width: 64px;
  height: 64px;
  object-fit: cover;
  vertical-align: middle;
  margin-right: 12px;
}
.image-item {
  width: 110px;
}
.image-item img {
  width: 110px;
  height: 110px;
}
.image-item .btn {
  position: static;
  margin-top: 4px;
  font-size: 11px;
}
.review-image {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 8px;
}
.supplier-workspace {
  max-width: 1400px;
  margin: auto;
  padding: 32px;
}
#supplier-summary p {
  overflow-wrap: anywhere;
}
#reference-price {
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  .supplier-workspace {
    padding: 16px;
  }
}

.supplier-products {
  max-width: 280px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.product-cover {
  display: block;
  flex: 0 0 72px;
  line-height: 0;
}
.product-cell .swatch {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 8px;
}
.cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--muted);
}
.product-cover:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 8px;
}

.status-tabs {
  display: flex;
  gap: 24px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.status-tab {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 16px 0;
  white-space: nowrap;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 3px solid transparent;
}
.status-tab.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
  font-weight: 600;
}
.status-tab span {
  background: var(--soft);
  border-radius: 12px;
  padding: 1px 7px;
  font-size: 12px;
}

.batch-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
}
input.row-select {
  width: 18px;
  height: 18px;
  min-width: 18px;
  padding: 0;
  accent-color: var(--ink);
  cursor: pointer;
}

.supplier-detail-tabs {
  background: white;
  margin-bottom: 20px;
  border-radius: 10px 10px 0 0;
}
.supplier-save {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 24px;
}
.supplier-documents {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.document-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 0;
}
.document-card img,
.document-placeholder {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: var(--paper);
  border-radius: 6px;
}
.document-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
}
.document-upload {
  display: block;
  margin: 14px 0;
  font-size: 12px;
}
.document-upload input {
  margin-top: 6px;
  max-width: 100%;
  font-size: 12px;
}
@media (max-width: 900px) {
  .supplier-documents {
    grid-template-columns: 1fr;
  }
}

.supplier-autocomplete {
  position: relative;
  width: 270px;
  max-width: 100%;
  flex-shrink: 0;
}
.supplier-autocomplete-input {
  position: relative;
}
.toolbar .supplier-search {
  width: 100%;
  padding-right: 36px;
}
.supplier-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 22px;
  padding: 4px;
}
.supplier-suggestions {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px #183d3020;
}
.supplier-suggestions [role="option"],
.supplier-no-match {
  padding: 12px 14px;
  overflow-wrap: anywhere;
}
.supplier-suggestions [role="option"] {
  cursor: pointer;
}
.supplier-suggestions [role="option"]:hover,
.supplier-suggestions [aria-selected="true"] {
  background: var(--paper);
  color: var(--ink);
}
.supplier-no-match {
  color: var(--muted);
}

.supplier-documents.document-group-company {
  grid-template-columns: minmax(0, 360px);
}
.supplier-documents.document-group-legal {
  grid-template-columns: repeat(2, minmax(0, 360px));
}
@media (max-width: 760px) {
  .supplier-documents.document-group-legal {
    grid-template-columns: minmax(0, 1fr);
  }
}

.supplier-shell .content > .panel {
  margin-bottom: 24px;
}
.supplier-chart {
  padding: 24px;
}
.supplier-chart svg {
  width: 100%;
  max-height: 320px;
}
.supplier-chart text {
  fill: #63756d;
  font-size: 12px;
}
.supplier-chart details {
  margin-top: 16px;
}
.dashboard-priority {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.dashboard-priority .panel {
  min-width: 0;
  margin: 0;
}
.dashboard-priority .panel-head {
  padding: 18px 20px;
}
.dashboard-priority .empty {
  padding: 28px 20px;
}
.dashboard-priority .empty-icon {
  font-size: 24px;
  margin-bottom: 8px;
}
.dashboard-feed {
  max-height: 270px;
  overflow-y: auto;
}
.dashboard-feed-item {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.dashboard-feed-item:last-child {
  border-bottom: 0;
}
.dashboard-feed-item > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.dashboard-feed-item time,
.dashboard-feed-item small {
  color: var(--muted);
  font-size: 12px;
}
.dashboard-feed-item time {
  white-space: nowrap;
}
.dashboard-feed-item p {
  margin: 6px 0;
  overflow-wrap: anywhere;
}
.dashboard-feed-item small {
  overflow-wrap: anywhere;
}
.dashboard-metrics {
  gap: 14px;
  margin-bottom: 20px;
}
.dashboard-metrics .metric {
  padding: 14px 18px;
}
.dashboard-metrics .metric-value {
  font-size: 26px;
  margin: 5px 0;
}
.dashboard-metrics .metric-note {
  font-size: 11px;
}
.supplier-dashboard .supplier-chart {
  padding: 14px 20px;
}
.supplier-dashboard .supplier-chart svg {
  max-height: 180px;
}
.supplier-dashboard .panel-head {
  padding: 18px 20px;
}
@media (max-width: 900px) {
  .dashboard-priority {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .dashboard-feed {
    max-height: 190px;
  }
  .dashboard-priority .empty {
    padding: 18px;
  }
  .dashboard-priority .empty-icon {
    display: none;
  }
}

.account-dropdown {
  position: relative;
}
.account-dropdown summary {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  padding: 6px 0;
}
.account-dropdown summary::-webkit-details-marker {
  display: none;
}
.account-dropdown summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
  border-radius: 6px;
}
.account-name {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  width: 260px;
  max-width: calc(100vw - 32px);
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 28px #173f381a;
}
.account-identity {
  padding: 10px 12px 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}
.account-identity small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}
.account-dropdown-panel .btn {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  padding: 12px;
}
@media (max-width: 600px) {
  .account-name {
    max-width: 120px;
  }
  .supplier-shell .breadcrumb span {
    display: none;
  }
}

.account-chevron {
  display: block;
  flex: 0 0 16px;
  align-self: center;
  transition: transform 150ms ease;
}
.account-dropdown[open] .account-chevron {
  transform: rotate(180deg);
}
@media (prefers-reduced-motion: reduce) {
  .account-chevron {
    transition: none;
  }
}

.password-control {
  position: relative;
}
.password-control input {
  padding-right: 66px;
}
.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 8px;
  font: inherit;
  font-size: 12px;
}
.password-toggle:focus-visible {
  outline: 2px solid var(--green);
  border-radius: 4px;
}
[data-form="password"] > .field {
  margin-bottom: 20px;
}
[data-form="password"] .drawer-foot {
  background: transparent;
  padding-left: 0;
  padding-right: 0;
}

/* Separate drawer actions from the preceding fields and explanatory content. */
.drawer-body > .actions {
  margin-top: 24px;
}
.image-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}
.product-image-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.product-image-card {
  min-width: 0;
}
.product-image-preview {
  position: relative;
  aspect-ratio: 1;
  cursor: grab;
  border-radius: 8px;
  overflow: hidden;
  background: var(--soft);
}
.product-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-position,
.image-zoom {
  position: absolute;
  padding: 3px 7px;
  font-size: 11px;
  background: #173f38dc;
  color: white;
  border-radius: 4px;
}
.image-position {
  top: 6px;
  left: 6px;
}
.image-zoom {
  bottom: 6px;
  right: 6px;
}
.image-delete {
  position: absolute;
  top: 4px;
  right: 4px;
  border: 0;
  background: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
}
.product-image-card label {
  display: block;
  font-size: 11px;
  margin-top: 8px;
  color: var(--muted);
}
.product-image-card input,
.product-image-card textarea {
  width: 100%;
  padding: 7px;
  margin-top: 4px;
  font-size: 12px;
}
.product-image-card textarea {
  min-height: 60px;
}
.image-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.image-order-actions .btn {
  padding: 4px 6px;
  font-size: 10px;
  min-height: 24px;
}
.image-add {
  aspect-ratio: 1;
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px dashed #9bb6a8;
  border-radius: 8px;
  color: var(--ink);
  background: #f6f9f5;
  cursor: pointer;
}
.image-add > span {
  font-size: 32px;
  line-height: 1;
}
.upload-box.drag-over {
  outline: 2px solid var(--green);
  background: #edf6ef;
}
@media (max-width: 600px) {
  .product-image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Customer-service workspace: independent conversation and history scrolling. */
.support-workspace {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  height: min(720px, calc(100vh - 270px));
  min-height: 460px;
  background: white;
  border: 1px solid var(--border, #dce4de);
  border-radius: 14px;
  overflow: hidden;
}
.support-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid #e1e8e3;
}
.support-list-heading,
.support-chat-heading {
  padding: 18px 20px;
  border-bottom: 1px solid #e1e8e3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.support-list-heading span {
  font-size: 12px;
  color: #7c8981;
}
#support-live-list {
  overflow-y: auto;
  flex: 1;
}
.support-contact {
  width: 100%;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 18px 14px;
  background: white;
  border: 0;
  border-bottom: 1px solid #edf0ed;
  text-align: left;
  color: inherit;
  cursor: pointer;
}
.support-contact:hover {
  background: #f5f8f4;
}
.support-contact.selected {
  background: #eaf2ec;
  box-shadow: inset 3px 0 #25594c;
}
.support-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e4ece5;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.support-contact-copy {
  min-width: 0;
  flex: 1;
}
.support-contact-top {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: center;
}
.support-contact-top time {
  font-size: 11px;
  color: #78857d;
}
.support-contact .cell-sub,
.support-preview {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 100%;
}
.support-preview {
  font-size: 13px;
  margin-top: 6px;
  color: #65746b;
}
.support-unread {
  background: #b84736;
  color: white;
  border-radius: 12px;
  padding: 2px 6px;
  min-width: 20px;
  text-align: center;
  font-size: 12px;
}
.support-pagination .pagination {
  margin: 0;
  padding: 12px;
  flex-wrap: wrap;
  font-size: 12px;
}
#support-detail {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  position: relative;
}
.support-placeholder {
  padding: 48px 20px;
  text-align: center;
  color: #7a887f;
  margin: auto;
}
#support-admin-chat {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  max-height: none;
  padding: 20px;
  margin: 0;
  background: #f7f9f6;
}
#support-admin-chat .message {
  max-width: 85%;
  width: fit-content;
  margin: 0 0 18px;
  padding: 12px 16px;
  border-radius: 12px;
  background: white;
  overflow-wrap: anywhere;
}
#support-admin-chat .support-outgoing {
  margin-left: auto;
  background: #e5efe7;
}
.support-composer {
  padding: 14px 20px;
  border-top: 1px solid #e1e8e3;
}
.support-composer label {
  font-size: 13px;
}
.support-composer textarea {
  margin-top: 6px;
  min-height: 68px;
  resize: vertical;
  max-height: 140px;
}
.support-composer .actions {
  margin-top: 10px;
  justify-content: space-between;
}
.support-history-control {
  text-align: center;
}
.support-history-control:empty {
  display: none;
}
#support-new-messages:not([hidden]) {
  display: block;
  align-self: center;
  margin: 5px;
  color: #25594c;
}
@media (max-width: 1000px) {
  .support-workspace {
    grid-template-columns: 270px minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .support-workspace {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
  }
  .support-sidebar {
    max-height: 260px;
    border-right: 0;
    border-bottom: 1px solid #e1e8e3;
  }
  #support-detail {
    height: 540px;
  }
  .support-contact {
    padding: 12px;
  }
  .support-composer {
    padding: 12px;
  }
}

#support-admin-chat {
  display: block;
}
#support-new-messages[hidden] {
  display: none;
}

.content.support-page {
  max-width: none;
  padding: 16px;
  height: calc(100dvh - 76px);
  min-height: 0;
  margin: 0;
  overflow: hidden;
}
.support-page .support-workspace {
  height: 100%;
  min-height: 0;
  width: 100%;
}
.support-page .support-list-heading {
  flex-shrink: 0;
  padding: 14px;
}
.support-page .support-list-heading #support-live-status {
  font-size: 10px;
}
.support-search {
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
.support-search input {
  width: 100%;
  font-size: 12px;
}
.support-pagination {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  gap: 6px;
  font-size: 11px;
}
.support-pagination .btn {
  padding: 6px;
}
.support-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}
.support-tags span {
  background: #e2ebe5;
  color: #25594c;
  padding: 2px 6px;
  font-size: 11px;
  border-radius: 4px;
}
.support-tools {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.support-chat-heading strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.support-composer {
  flex-shrink: 0;
}
.support-composer .actions {
  flex-wrap: wrap;
}
.support-image-picker input[hidden] {
  display: none;
}
#support-image-draft {
  display: flex;
  gap: 10px;
  align-items: center;
}
#support-image-draft img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-top: 8px;
}
.support-message-image {
  max-width: 240px;
  max-height: 200px;
  object-fit: contain;
  border-radius: 8px;
}
.support-dialog {
  width: min(850px, 92vw);
  max-height: 86dvh;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
  color: var(--ink);
}
.support-dialog::backdrop {
  background: #172e2866;
}
.support-dialog header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}
.support-dialog h2 {
  margin: 0;
  font-size: 20px;
}
.support-dialog-body {
  padding: 20px;
}
.support-dialog label {
  display: block;
  font-size: 13px;
  margin-bottom: 12px;
}
.support-dialog input,
.support-dialog textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
}
.support-history-filters {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.support-history-filters label:first-child {
  flex: 1;
  min-width: 160px;
}
.support-history-results {
  height: min(46dvh, 450px);
  overflow: auto;
  background: #f5f8f4;
  padding: 14px;
}
.support-history-results .message {
  padding: 12px;
  margin-bottom: 12px;
  background: white;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.support-history-paging {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  padding-top: 14px;
}
@media (max-width: 640px) {
  .content.support-page {
    padding: 6px;
  }
  .support-page .support-workspace {
    display: grid;
    grid-template-columns: minmax(110px, 30%) minmax(0, 1fr);
  }
  .support-page .support-sidebar {
    max-height: none;
    border-right: 1px solid var(--line);
  }
  .support-page #support-detail {
    height: 100%;
    min-height: 0;
  }
  .support-page .support-avatar,
  .support-page .support-list-heading span,
  .support-page .support-composer .help {
    display: none;
  }
  .support-page .support-contact {
    padding: 10px 6px;
    gap: 2px;
  }
  .support-page .support-contact-top time {
    font-size: 9px;
  }
  .support-page .support-chat-heading {
    padding: 10px;
    flex-wrap: wrap;
  }
  .support-page .support-tools {
    gap: 4px;
  }
  .support-page .support-pagination {
    flex-wrap: wrap;
  }
  .support-page .support-message-image {
    max-width: 100%;
  }
  .support-page #support-admin-chat {
    padding: 10px;
  }
  .support-page .support-composer {
    padding: 8px;
  }
}
@media (max-width: 760px) {
  .content.support-page {
    height: calc(100dvh - 62px);
  }
}

.support-list-status {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
  font-size: 11px;
  color: var(--muted);
}
@media (max-width: 640px) {
  .support-list-status {
    flex-direction: column;
    padding: 8px;
  }
}

.support-drop-guide {
  display: none;
  position: absolute;
  inset: 8px;
  z-index: 5;
  background: #edf7f1ee;
  border: 2px dashed #25594c;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 22px;
  color: #25594c;
  pointer-events: none;
}
.support-drop-guide small {
  font-size: 14px;
  margin-top: 12px;
}
.support-dropping .support-drop-guide {
  display: flex;
}
.support-message-video {
  display: block;
  max-width: 100%;
  width: 320px;
  max-height: 240px;
  border-radius: 8px;
}
.support-file {
  display: block;
  padding: 12px;
  border: 1px solid #d8e3dc;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.support-file small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
#support-transfer-status:empty {
  display: none;
}
#support-transfer-status {
  font-size: 12px;
  padding: 4px 16px;
  max-height: 90px;
  overflow: auto;
}
#support-transfer-status span {
  display: inline-block;
  margin-right: 8px;
}
.support-file-help {
  margin: 8px 0 0;
  font-size: 11px;
}
#support-image-draft video {
  width: 110px;
  height: 70px;
}

.support-product-card {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin-top: 12px;
  text-decoration: none;
  background: #ffffffaa;
}
.support-product-card img,
.support-product-card .support-product-placeholder {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 8px;
  background: #edf1e9;
}
.support-product-card .support-product-placeholder {
  display: grid;
  place-items: center;
  font-size: 24px;
}
.support-product-card > span:last-child {
  min-width: 0;
}
.support-product-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.support-product-card {
  max-width: 440px;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.support-product-card:hover {
  background: #fff;
  border-color: var(--ink);
}
.support-product-card:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.support-product-card .support-product-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  white-space: normal;
  line-height: 1.5;
}

.opportunity-product {
  position: relative;
}
.opportunity-product-info {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  gap: 6px;
  overflow-wrap: anywhere;
}
.opportunity-product-info:not([hidden]) {
  display: grid;
}
.opportunity-product-info[hidden] {
  display: none;
}

/* Fabloom VI v1.0 — shared identity, compact working surfaces. */
:root {
  --sans:
    "Inter VI", "Noto VI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei",
    Arial, sans-serif;
  font-family: var(--sans);
  --radius: 8px;
}
body {
  font-family: var(--sans);
  background: #f4f5f1;
}
.sidebar {
  background: white;
  color: var(--ink);
  border-right: 1px solid var(--line);
}
.brand {
  display: block;
  padding: 12px 12px;
  letter-spacing: normal;
}
.brand-wordmark {
  width: 156px;
  height: auto;
  display: block;
}
.brand small {
  font: 400 10px/1.6 var(--sans);
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-top: 20px;
}
.nav-label,
.sidebar-bottom,
.sidebar-bottom b,
.nav-icon {
  color: var(--muted);
}
.nav a {
  border-radius: 4px;
  font-size: 14px;
}
.nav a:hover {
  background: var(--paper);
}
.nav a.active {
  background: var(--green);
  color: var(--ink);
  font-weight: 500;
}
.nav a.active .nav-icon {
  color: var(--ink);
}
.topbar {
  background: white;
}
h1 {
  font-family: var(--sans);
  font-size: 32px;
  line-height: 1.4;
  font-weight: 500;
}
h2 {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.4;
}
h3,
strong {
  font-weight: 500;
}
.eyebrow {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 500;
}
.btn {
  border-radius: 4px;
  font-weight: 500;
}
.btn.primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn.primary:hover {
  background: #a8bd71;
  color: #fff;
  border-color: #a8bd71;
}
.btn:hover {
  background: var(--paper);
}
.panel,
.metric {
  box-shadow: none;
  border-color: var(--line);
  border-radius: 8px;
}
.metric-value {
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
}
.metric-note::before {
  background: var(--green);
}
.panel-head {
  padding: 24px;
}
thead,
th {
  background: var(--paper);
  color: var(--muted);
  font-weight: 500;
}
tbody tr:hover {
  background: #f4f5f180;
}
input,
select,
textarea {
  border-radius: 4px;
  border-color: var(--line);
  color: var(--ink);
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
.drawer-head,
.drawer-foot,
.support-dialog header {
  background: white;
}
.drawer-body,
.support-dialog-body {
  background: white;
}
.drawer-foot {
  padding-top: 24px;
  background: transparent;
}
.actions {
  gap: 12px;
}
.auth-brand {
  background: var(--paper);
  color: var(--ink);
  border-right: 1px solid var(--line);
}
.auth-brand:after {
  display: none;
}
.auth-brand h1 {
  font:
    400 48px/1.1 "Newsreader VI",
    Georgia,
    serif;
  letter-spacing: -0.02em;
}
.auth-brand p,
.auth-brand .small-text {
  color: var(--muted);
}
.auth-brand .brand-wordmark {
  width: 214px;
}
.auth-panel {
  background: white;
}
.support-contact.selected {
  background: var(--paper);
  border-left-color: var(--green);
}
.support-contact:hover {
  background: var(--paper);
}
.support-chat-messages,
.support-message-list {
  background: var(--paper);
}
.support-product-card {
  border-color: var(--line);
  background: var(--paper);
}
.avatar {
  background: var(--paper);
  color: var(--ink);
}
@media (max-width: 760px) {
  h1 {
    font-size: 26px;
  }
  .auth-brand h1 {
    font-size: 34px;
  }
}
#support-admin-chat {
  background: var(--paper);
}
#support-admin-chat .support-outgoing {
  background: #edf1e3;
  color: var(--ink);
}
.support-unread,
.support-unread-badge {
  color: var(--ink);
  background: var(--green);
}
.field > label,
label {
  font-size: 13px;
}
.help,
.form-note,
.subtitle,
.metric-note {
  font-size: 13px;
  color: var(--muted);
}
.panel-body,
.drawer-body,
.support-dialog-body {
  line-height: 1.8;
}
