:root {
  color-scheme: light;
  --bg: #ecf0f5;
  --panel: #ffffff;
  --line: #e2e6ea;
  --line-dark: #d6dbe0;
  --text: #1f2933;
  --muted: #687685;
  --primary: #3c8dbc;
  --primary-dark: #367fa9;
  --success: #18bc9c;
  --success-dark: #13a88b;
  --dark: #35415f;
  --soft: #f7f9fb;
  --danger: #dd4b39;
  --warning: #d58b18;
  --shadow: 0 12px 30px rgba(30, 42, 58, 0.1);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 1100px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #eef3f7 0%, #dfe8ee 100%);
}

.login-card {
  width: 360px;
  padding: 34px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.login-card h1 {
  margin: 14px 0 4px;
  font-size: 26px;
  letter-spacing: 0;
}

.login-card p {
  color: var(--muted);
}

.login-card label {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  color: #384657;
  font-weight: 600;
}

.login-card input,
.filters input,
.filters select,
.modal input,
.modal select,
.modal textarea {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  padding: 0 10px;
  background: #fff;
  color: var(--text);
  outline: none;
}

.modal textarea {
  min-height: 72px;
  padding-top: 9px;
  resize: vertical;
}

.login-card input:focus,
.filters input:focus,
.filters select:focus,
.modal input:focus,
.modal select:focus,
.modal textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74, 163, 240, 0.16);
}

.combo-label {
  position: relative;
}

.combo-select {
  position: relative;
}

.combo-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  background: #fff;
  color: #2f3d4e;
  text-align: left;
  font-weight: 600;
}

.combo-trigger::after {
  content: "▾";
  margin-left: 12px;
  color: #4f5f70;
}

.combo-select.open .combo-trigger,
.combo-error .combo-trigger {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(60, 141, 188, 0.16);
}

.combo-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 80;
  max-height: 238px;
  overflow-y: auto;
  padding: 4px 0;
  border: 1px solid var(--line-dark);
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.combo-search-wrap {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 6px;
  background: #fff;
  border-bottom: 1px solid #eef1f4;
}

.combo-search {
  width: 100%;
  height: 32px;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  padding: 0 9px;
  color: #263140;
  outline: none;
}

.combo-search:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(60, 141, 188, 0.14);
}

.combo-option {
  width: 100%;
  min-height: 34px;
  padding: 0 12px;
  background: #fff;
  color: #263140;
  text-align: left;
}

.combo-option:hover,
.combo-option.selected {
  background: var(--primary);
  color: #fff;
}

.combo-empty {
  padding: 12px;
  color: var(--muted);
  text-align: center;
}

.modal input[type="radio"],
.modal input[type="checkbox"] {
  width: 16px;
  height: 16px;
  padding: 0;
  margin: 0;
  box-shadow: none;
}

.login-mark,
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 7px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 220px 1fr;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 14px;
  background: #263247;
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 18px;
  font-size: 18px;
  font-weight: 700;
}

.nav-item {
  height: 40px;
  border-radius: 5px;
  text-align: left;
  padding: 0 12px;
  background: transparent;
  color: #cfd8e3;
}

.nav-item.active,
.nav-item:hover {
  background: #34425c;
  color: #fff;
}

.nav-item.muted {
  color: #aeb9c8;
}

.sidebar-spacer {
  flex: 1;
}

.content {
  min-width: 0;
  padding: 18px 20px 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.topbar h1 {
  margin: 0;
  font-size: 22px;
}

.topbar p {
  margin: 5px 0 0;
  color: var(--muted);
}

.account-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 148px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: #435264;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 1px 0 rgba(20, 31, 46, 0.02);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 18px;
  border-bottom: 1px solid #eef0f2;
}

.left-tools,
.right-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.primary,
.success,
.soft,
.danger {
  height: 36px;
  min-width: 88px;
  padding: 0 15px;
  border-radius: 4px;
  color: #fff;
  font-weight: 600;
}

.primary {
  background: var(--primary);
}

.primary:hover {
  background: var(--primary-dark);
}

.success {
  background: var(--success);
}

.success:hover {
  background: var(--success-dark);
}

.soft {
  border: 1px solid var(--line-dark);
  background: var(--soft);
  color: #2f3d4e;
}

.soft:hover {
  background: #edf2f6;
}

.danger {
  background: var(--danger);
}

.wide {
  width: 100%;
  margin-top: 22px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  background: #f8fafc;
  color: #263140;
  font-size: 18px;
  line-height: 1;
}

.icon-button:hover {
  background: #edf2f6;
}

.icon-button.dark {
  border-color: var(--dark);
  background: var(--dark);
  color: #fff;
}

.export-wrap {
  position: relative;
}

.export-menu {
  position: absolute;
  top: 40px;
  right: 0;
  z-index: 5;
  width: 130px;
  padding: 6px 0;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.export-menu button {
  display: block;
  width: 100%;
  height: 30px;
  padding: 0 12px;
  background: #fff;
  color: #263140;
  text-align: left;
}

.export-menu button:hover {
  background: #f3f6f8;
}

.filters {
  display: block;
  padding: 0 18px 16px;
}

.simple-filter {
  display: grid;
  grid-template-columns: minmax(240px, 420px) 178px 150px 84px;
  gap: 8px;
}

.date-filter-label {
  position: relative;
}

.advanced-filter .date-filter-label {
  display: grid;
}

.date-range {
  position: relative;
  width: 100%;
}

.date-range-trigger {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  background: #fff;
  color: #263140;
  text-align: left;
}

.date-range.open .date-range-trigger {
  border-color: #2f9ee8;
  box-shadow: 0 0 0 2px rgba(47, 158, 232, 0.16);
}

.date-range-menu {
  position: absolute;
  top: 42px;
  left: 0;
  z-index: 70;
  width: 176px;
  padding: 8px;
  border: 1px solid #e5e9ee;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.date-range-menu > button {
  display: block;
  width: 100%;
  height: 28px;
  margin-bottom: 8px;
  border-radius: 4px;
  background: #f2f2f2;
  color: #0b86c8;
  text-align: left;
  padding: 0 14px;
}

.date-range-menu > button:hover,
.date-range-menu > button:first-child {
  background: #0f8fca;
  color: #fff;
}

.date-range-custom {
  display: grid;
  gap: 8px;
}

.date-range-custom input {
  height: 32px;
}

.date-range-custom .primary {
  width: 100%;
  height: 30px;
}

.filter-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
}

.filter-tabs button {
  min-width: 76px;
  height: 40px;
  padding: 0 14px;
  background: #dfe7ee;
  color: #6a7888;
}

.filter-tabs button:hover {
  background: #d3dde6;
  color: #2f3d4e;
}

.advanced-filter {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 12px 34px;
}

.advanced-filter label {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.advanced-filter label span {
  color: #1f2933;
  text-align: right;
}

.filter-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 6px;
  padding-left: 118px;
}

.hidden {
  display: none !important;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 1500px;
  border-collapse: collapse;
  table-layout: fixed;
}

#orders-table.hall-order-table {
  min-width: 2010px;
}

#orders-table.full-order-table {
  min-width: 2950px;
}

th,
td {
  height: 42px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0 10px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

th {
  color: #222;
  font-weight: 700;
  background: #fff;
}

td {
  color: #3d4a59;
  background: #fff;
}

tbody tr:hover td {
  background: #f8fbfd;
}

.check-col {
  width: 42px;
}

.order-action-col {
  width: 250px;
}

#orders-table .order-col-id {
  width: 86px;
}

#orders-table .order-col-date {
  width: 170px;
}

#orders-table .order-col-status {
  width: 112px;
}

#orders-table .order-col-buyer,
#orders-table .order-col-sales {
  width: 82px;
}

#orders-table .order-col-remark {
  width: 90px;
}

#orders-table .order-col-customer {
  width: 210px;
}

#orders-table .order-col-price,
#orders-table .order-col-tax,
#orders-table .order-col-brand {
  width: 92px;
}

#orders-table .order-col-model {
  width: 280px;
}

#orders-table .order-col-receiver {
  width: 310px;
}

#orders-table .order-col-express {
  width: 105px;
}

#orders-table .order-col-serial,
#orders-table .order-col-phone-serial {
  width: 150px;
}

#orders-table .order-col-phone-serial {
  width: 230px;
}

#orders-table .order-col-tracking {
  width: 160px;
}

#orders-table .order-col-feedback {
  width: 95px;
}

#orders-table .order-col-supplier {
  width: 170px;
}

#orders-table .order-col-cost,
#orders-table .order-col-abnormal,
#orders-table .order-col-source {
  width: 100px;
}

#orders-table .order-col-modify {
  width: 120px;
}

td.order-action-cell {
  overflow: visible;
  padding: 0 8px;
}

td.expandable-cell {
  position: relative;
  padding-right: 34px;
  cursor: pointer;
}

td.maybe-expand-cell .cell-text,
td.expandable-cell .cell-text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cell-more {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 28px;
  height: 100%;
  border-left: 1px solid #eef1f4;
  background: #f1f3f5;
  color: #b8c0c8;
  font-size: 18px;
  line-height: 1;
  pointer-events: auto;
}

.cell-more:hover {
  background: #e7ebef;
  color: #7c8792;
}

.cell-popover {
  position: absolute;
  z-index: 120;
  width: 450px;
  min-height: 76px;
  padding: 16px 18px;
  border: 1px solid #e6e9ed;
  background: #fff;
  box-shadow: 0 14px 32px rgba(22, 32, 44, 0.18);
  color: #263140;
  line-height: 1.8;
  white-space: normal;
  word-break: break-all;
}

.cell-popover-close {
  position: absolute;
  top: -16px;
  right: -14px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #7f858b;
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

.empty-row td {
  height: 52px;
  background: #fafafa;
  color: #454545;
  font-size: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 24px;
  padding: 0 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.badge.waiting {
  background: #fff2d9;
  color: var(--warning);
}

.badge.grabbed {
  background: #e6f3ff;
  color: var(--primary-dark);
}

.badge.placed {
  background: #e4f7ed;
  color: var(--success-dark);
}

.badge.done {
  background: #eef0f3;
  color: #667282;
}

.table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  color: var(--muted);
}

.toast {
  color: var(--success-dark);
  font-weight: 600;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.section-header h2 {
  margin: 0;
  font-size: 20px;
}

.section-header p {
  margin: 6px 0 0;
  color: var(--muted);
}

.account-list,
.record-list {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.account-row,
.record-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 62px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}

.account-row strong,
.record-row strong {
  display: block;
  margin-bottom: 4px;
}

.account-row span,
.record-row span {
  color: var(--muted);
}

.row-actions,
.table-actions {
  display: flex;
  gap: 6px;
}

.table-actions {
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  row-gap: 4px;
}

.order-action-cell .table-actions {
  flex-wrap: nowrap;
}

.link-button {
  min-width: 54px;
  height: 30px;
  border-radius: 4px;
  border: 1px solid var(--line-dark);
  background: #fff;
  color: #2f3d4e;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: start center;
  padding-top: 3vh;
  background: rgba(19, 29, 43, 0.36);
  z-index: 20;
}

.modal {
  width: min(1120px, calc(100vw - 56px));
  max-height: 94vh;
  overflow: auto;
  background: #fff;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.modal.dragging {
  user-select: none;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  cursor: move;
}

.modal-head h2 {
  margin: 0;
  font-size: 18px;
}

.modal form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}

.modal label {
  display: grid;
  gap: 7px;
  color: #3e4b5a;
  font-weight: 600;
}

.modal .full {
  grid-column: 1 / -1;
}

.modal-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}

.compact th,
.compact td {
  height: 42px;
}

@media (max-width: 1180px) {
  body {
    min-width: 0;
  }

  .shell {
    grid-template-columns: 72px 1fr;
  }

  .brand span:last-child,
  .nav-item {
    font-size: 0;
  }

  .nav-item::first-letter {
    font-size: 14px;
  }
}

.admin-shell {
  min-height: 100vh;
  padding-top: 50px;
  padding-left: 230px;
  background: #ecf0f5;
}

.main-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 230px 1fr;
  height: 50px;
  color: #354052;
  box-shadow: 0 1px 4px rgba(20, 31, 46, 0.12);
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1f2d32;
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
}

.navbar {
  display: flex;
  align-items: center;
  min-width: 0;
  background: #fff;
}

.nav-icon,
.top-link,
.user-menu {
  height: 50px;
  padding: 0 15px;
  background: transparent;
  color: #384657;
}

.nav-icon:hover,
.top-link:hover,
.user-menu:hover {
  background: #f5f7fa;
}

.tabs {
  display: flex;
  align-items: end;
  gap: 2px;
  flex: 1;
  min-width: 0;
  height: 50px;
  overflow: hidden;
}

.tab-button {
  align-self: end;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 150px;
  height: 50px;
  padding: 0 14px;
  border-radius: 0;
  border-left: 1px solid #edf0f3;
  background: #fff;
  color: #263238;
  white-space: nowrap;
}

.tab-button.active {
  background: #f5f7fa;
  color: #263238;
}

.tab-button span {
  color: inherit;
  opacity: 0.65;
}

.top-actions {
  display: flex;
  align-items: center;
  border-left: 1px solid #edf0f3;
}

.main-sidebar {
  position: fixed;
  top: 50px;
  bottom: 0;
  left: 0;
  z-index: 9;
  width: 230px;
  overflow-y: auto;
  background: #1f2d32;
  color: #b8c7ce;
}

.user-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 12px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #3c8dbc;
  color: #fff;
  font-weight: 700;
}

.user-panel p {
  margin: 0 0 6px;
  color: #fff;
  font-weight: 600;
}

.user-panel span {
  font-size: 12px;
}

.user-panel i {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-radius: 50%;
  background: #3c763d;
}

.menu-search {
  display: flex;
  padding: 10px;
}

.menu-search input {
  min-width: 0;
  flex: 1;
  height: 34px;
  border: 0;
  border-radius: 3px 0 0 3px;
  padding: 0 10px;
  background: #33454d;
  color: #fff;
}

.menu-search button {
  width: 38px;
  border-radius: 0 3px 3px 0;
  background: #33454d;
  color: #b8c7ce;
}

.sidebar-menu {
  padding-bottom: 22px;
}

.menu-item,
.menu-title,
.menu-child {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 10px 15px;
  text-align: left;
  background: transparent;
  color: #b8c7ce;
}

.menu-child {
  min-height: 34px;
  padding-left: 38px;
  background: #26383f;
  font-size: 13px;
}

.menu-item:hover,
.menu-title:hover,
.menu-child:hover,
.menu-title.active {
  color: #fff;
  background: #1e282c;
}

.menu-item.active,
.menu-child.active {
  color: #fff;
  border-left: 0;
  background: #4f73e8;
  padding-left: 15px;
}

.menu-child.active {
  padding-left: 38px;
}

.menu-item small {
  float: right;
  padding: 2px 5px;
  border-radius: 2px;
  background: #dd4b39;
  color: #fff;
}

.menu-group.disabled {
  opacity: 0.62;
}

.menu-hidden {
  display: none;
}

.content-wrapper {
  min-height: calc(100vh - 50px);
  padding: 15px;
}

.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.content-header h1 {
  display: inline;
  margin: 0;
  font-size: 24px;
  font-weight: 500;
}

.content-header span,
.breadcrumb {
  color: #777;
}

.control-sidebar {
  position: fixed;
  top: 50px;
  right: 0;
  bottom: 0;
  width: 0;
  overflow: hidden;
  background: #f9fafc;
  border-left: 1px solid #d2d6de;
}

.setting-tabs,
.control-sidebar h4,
.control-sidebar label,
.skin-grid {
  margin: 14px;
}

.skin-grid {
  display: grid;
  grid-template-columns: repeat(3, 28px);
  gap: 8px;
}

.skin-grid span {
  height: 22px;
  background: #3c8dbc;
}

.skin-grid span:nth-child(2) { background: #222d32; }
.skin-grid span:nth-child(3) { background: #605ca8; }
.skin-grid span:nth-child(4) { background: #00a65a; }
.skin-grid span:nth-child(5) { background: #dd4b39; }
.skin-grid span:nth-child(6) { background: #f39c12; }

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  padding: 15px;
}

.metric {
  min-height: 96px;
  padding: 18px;
  background: var(--metric);
  color: #fff;
}

.metric strong {
  display: block;
  margin-bottom: 8px;
  font-size: 32px;
}

.simple-table {
  min-width: 900px;
}

.account-manage-table {
  min-width: 1120px;
}

.customer-table {
  min-width: 1500px;
}

.customer-table th,
.customer-table td {
  height: 51px;
}

.customer-table th:nth-child(2),
.customer-table td:nth-child(2),
.customer-table th:nth-child(3),
.customer-table td:nth-child(3),
.customer-table th:nth-child(4),
.customer-table td:nth-child(4),
.customer-table th:nth-child(5),
.customer-table td:nth-child(5) {
  width: 250px;
}

.customer-table th:nth-child(6),
.customer-table td:nth-child(6),
.customer-table th:nth-child(7),
.customer-table td:nth-child(7),
.customer-table th:nth-child(8),
.customer-table td:nth-child(8),
.customer-table th:nth-child(9),
.customer-table td:nth-child(9) {
  width: 110px;
}

.account-manage-table th,
.account-manage-table td {
  height: 54px;
}

.account-role {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  height: 24px;
  border-radius: 12px;
  background: #eef6ff;
  color: #2f88d8;
  font-size: 12px;
  font-weight: 700;
}

.account-role.place {
  background: #e4f7ed;
  color: #268d57;
}

.account-role.admin {
  background: #fff2d9;
  color: #c87d0a;
}

.profile-box {
  padding: 22px;
}

.profile-box h2 {
  margin: 0 0 14px;
}

.profile-page {
  padding: 18px;
}

.profile-summary {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 128px;
  padding: 24px;
  color: #fff;
  background: linear-gradient(135deg, #367fa9 0%, #3c8dbc 55%, #18bc9c 100%);
  border-radius: 6px 6px 0 0;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 3px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 34px;
  font-weight: 800;
}

.profile-summary h2 {
  margin: 0 0 6px;
  font-size: 26px;
}

.profile-summary p {
  margin: 0 0 10px;
  opacity: 0.92;
}

.profile-summary span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 10px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.18);
}

.profile-summary i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2ecc71;
}

.profile-card {
  padding: 22px 24px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 6px 6px;
}

.profile-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.profile-card-head h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.profile-card-head p {
  margin: 0;
  color: var(--muted);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

.profile-grid label {
  display: grid;
  gap: 8px;
  color: #3e4b5a;
  font-weight: 700;
}

.profile-grid input {
  height: 38px;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  padding: 0 10px;
  outline: none;
}

.profile-grid input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74, 163, 240, 0.16);
}

.sidebar-collapsed {
  padding-left: 50px;
}

.sidebar-collapsed .main-header {
  grid-template-columns: 50px 1fr;
}

.sidebar-collapsed .logo {
  font-size: 0;
}

.sidebar-collapsed .logo::after {
  content: "中";
  font-size: 20px;
}

.sidebar-collapsed .main-sidebar {
  width: 50px;
}

.sidebar-collapsed .user-panel div:last-child,
.sidebar-collapsed .menu-search,
.sidebar-collapsed .menu-title,
.sidebar-collapsed .menu-child,
.sidebar-collapsed .menu-item small {
  display: none;
}

.sidebar-collapsed .menu-item {
  padding: 12px;
  text-align: center;
  font-size: 0;
}

.sidebar-collapsed .menu-item::first-letter {
  font-size: 16px;
}

.status-tabs {
  display: flex;
  align-items: stretch;
  height: 56px;
  background: #e8edf1;
}

.status-tabs button {
  min-width: 70px;
  padding: 0 18px;
  border-right: 6px solid #e8edf1;
  background: #dbe3ea;
  color: #7a8794;
  font-weight: 600;
}

.status-tabs button.active {
  background: #fff;
  color: #657487;
}

.supplier-toolbar {
  min-height: 76px;
  border-top: 0;
}

.supplier-search {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 84px;
  gap: 8px;
  padding: 0 18px 14px;
}

.add-green {
  background: #18bc9c;
}

.add-green:hover {
  background: #13a88b;
}

.edit-cyan {
  background: #58d0c0;
}

.edit-cyan:hover {
  background: #40bba9;
}

.more-wrap {
  position: relative;
}

.more-button {
  height: 36px;
  min-width: 76px;
  padding: 0 12px;
  border-radius: 4px;
  background: #69728a;
  color: #fff;
  font-weight: 600;
}

.more-menu {
  position: absolute;
  top: 40px;
  left: 0;
  z-index: 3;
  width: 110px;
  padding: 5px 0;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.more-menu button {
  display: block;
  width: 100%;
  height: 32px;
  padding: 0 12px;
  text-align: left;
  background: #fff;
  color: #333;
}

.more-menu button:hover {
  background: #f3f6f8;
}

.supplier-table {
  min-width: 1780px;
}

.supplier-table th,
.supplier-table td {
  height: 57px;
}

.supplier-table th:nth-child(2),
.supplier-table td:nth-child(2) {
  width: 72px;
}

.supplier-table th:nth-child(3),
.supplier-table td:nth-child(3),
.supplier-table th:nth-child(4),
.supplier-table td:nth-child(4),
.supplier-table th:nth-child(5),
.supplier-table td:nth-child(5),
.supplier-table th:nth-child(6),
.supplier-table td:nth-child(6) {
  width: 300px;
}

.supplier-table th:nth-child(7),
.supplier-table td:nth-child(7),
.supplier-table th:nth-child(8),
.supplier-table td:nth-child(8),
.supplier-table th:nth-child(9),
.supplier-table td:nth-child(9) {
  width: 110px;
}

.supplier-table th:nth-child(10),
.supplier-table td:nth-child(10),
.supplier-table th:nth-child(11),
.supplier-table td:nth-child(11),
.supplier-table th:nth-child(12),
.supplier-table td:nth-child(12) {
  width: 96px;
}

.broken-thumb,
.supplier-thumb {
  display: inline-block;
  width: 34px;
  height: 34px;
  border: 1px solid #c8cdd2;
  background: #fafafa;
  vertical-align: middle;
}

.broken-thumb {
  position: relative;
}

.broken-thumb::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  width: 16px;
  height: 16px;
  border: 2px solid #a9b7c5;
  border-top-color: #5cb85c;
  border-right-color: #5cb85c;
}

.supplier-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  background: transparent;
  color: #18bc9c;
  font-weight: 700;
}

.supplier-status span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #18bc9c;
}

.supplier-status.hidden-status {
  color: #98a1aa;
}

.supplier-status.hidden-status span {
  background: #98a1aa;
}

.mini-action {
  min-width: 38px;
  width: auto;
  height: 26px;
  padding: 0 8px;
  border-radius: 3px;
  color: #fff;
  font-weight: 700;
  line-height: 26px;
  white-space: nowrap;
}

.mini-action.edit {
  background: #18bc9c;
}

.mini-action.action-blue {
  background: #2f9ee8;
}

.mini-action.action-green {
  background: #18bc9c;
}

.mini-action.action-navy {
  background: #2f4050;
}

.mini-action.action-orange {
  background: #f39c12;
}

.mini-action.delete {
  min-width: 26px;
  width: 26px;
  padding: 0;
  background: #f45b4f;
}

.supplier-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 0 18px;
  color: #333;
}

.page-size button,
.pager button,
.pager input {
  height: 38px;
  border: 1px solid #ddd;
  background: #fff;
  color: #5f6874;
}

.page-size button {
  min-width: 60px;
  border-radius: 4px;
}

.pager {
  display: flex;
  gap: 0;
  margin-left: auto;
}

.pager:empty {
  display: none;
}

.pager button {
  min-width: 38px;
  padding: 0 12px;
  border-left: 0;
}

.pager button:disabled {
  color: #a8b2bf;
  background: #f6f8fb;
  cursor: not-allowed;
}

.pager button:first-child {
  border-left: 1px solid #ddd;
}

.pager button.active {
  background: #3f4968;
  color: #fff;
}

.pager input {
  width: 60px;
  border-left: 0;
}

.supplier-form {
  grid-template-columns: 120px minmax(0, 1fr);
}

.modal .supplier-form label.full {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
}

.modal .supplier-form .field-row.full {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  min-height: 38px;
  color: #3e4b5a;
  font-weight: 600;
}

.upload-line > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px 70px;
  gap: 6px;
}

.upload-button {
  height: 38px;
  border-radius: 4px;
  background: #f4f6f8;
  border: 1px solid #d6dbe0;
  color: #333;
}

.upload-line ul {
  grid-column: 2;
  min-height: 24px;
  margin: 0;
}

.radio-options {
  display: flex;
  align-items: center;
  gap: 28px;
}

.modal .radio-options label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #3e4b5a;
  font-weight: 400;
}
