:root {
  --bg: #f3f6fa;
  --panel: #ffffff;
  --line: #e7ebf1;
  --line-strong: #d8e0ea;
  --text: #344054;
  --muted: #7a8698;
  --primary: #2f80ed;
  --primary-hover: #1d70db;
  --primary-soft: #edf5ff;
  --green: #00a870;
  --green-soft: #e8f8f2;
  --red: #d92d3f;
  --amber: #d97706;
  --shadow: 0 10px 28px rgba(16, 24, 40, .07);
}

.region-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.region-picker select {
  width: 100%;
  min-width: 0;
  height: 40px;
}

@media (max-width: 720px) {
  .region-picker {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 14px;
}

body.auth-locked {
  overflow: hidden;
}

body.auth-locked .app-shell {
  visibility: hidden;
}

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

button,
input,
select,
textarea {
  outline: none;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21, 94, 239, .12);
}

button:disabled {
  cursor: not-allowed;
  opacity: .68;
}

.app-shell {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 100vh;
  overflow-y: auto;
  background: var(--panel);
  border-right: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 64px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #263248;
  border-radius: 6px;
  background: #fff;
  color: #263248;
  font-size: 12px;
  font-weight: 750;
}

.brand-mark.has-logo,
.showcase-mark.has-logo {
  overflow: hidden;
}

.admin-brand-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}

.visual-center .admin-brand-image {
  width: 56px;
  height: 56px;
  border-radius: 12px;
}

.brand-copy {
  min-width: 0;
}

.brand-copy strong {
  display: block;
  overflow: hidden;
  color: #344054;
  font-size: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.menu {
  padding: 10px 8px 24px;
}

.menu-group {
  margin-bottom: 2px;
}

.menu-title,
.menu-item {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.menu-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #475467;
  font-weight: 450;
}

.menu-title-copy {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.menu-title-copy > .bi {
  width: 18px;
  color: #98a2b3;
  font-size: 16px;
  text-align: center;
}

.menu-caret {
  color: #98a2b3;
  font-size: 11px;
  transition: transform .18s ease;
}

.menu-title[aria-expanded="true"] .menu-caret {
  transform: rotate(180deg);
}

.menu-children[hidden] {
  display: none;
}

.menu-subgroup-title {
  min-height: 32px;
  padding: 0 12px 0 24px;
  color: #667085;
  font-size: 12px;
  font-weight: 450;
}

.menu-subgroup-title .menu-title-copy {
  gap: 7px;
}

.menu-subgroup-title .menu-title-copy > .bi {
  width: 15px;
  font-size: 13px;
}

.menu-subgroup-nested > .menu-subgroup-title {
  padding-left: 38px;
}

.menu-subgroup-children .menu-item-nested {
  padding-left: 54px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 2px;
  padding-left: 36px;
  color: #667085;
  font-weight: 400;
}

.menu-dot {
  flex: 0 0 auto;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c3cad5;
}

.menu-title:hover,
.menu-item:hover {
  background: #f6f8fb;
}

.menu-item.active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 500;
}

.menu-item.active .menu-dot {
  background: var(--primary);
}

.workspace {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 22px;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
}

.topbar-heading,
.top-actions {
  display: flex;
  align-items: center;
}

.topbar-heading {
  min-width: 0;
  gap: 12px;
}

.breadcrumb {
  overflow: hidden;
  max-width: 54vw;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

h1 {
  margin: 4px 0 0;
  font-size: 17px;
  line-height: 1.2;
}

.top-actions {
  flex: 0 0 auto;
  gap: 9px;
}

.icon-btn,
.primary,
.ghost,
.danger {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

.primary,
.ghost,
.danger,
.upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 34px;
  padding: 0;
  color: #505a6b;
  font-size: 18px;
}

.icon-btn:hover,
.ghost:hover {
  border-color: #c7ced9;
  background: #f8fafc;
}

.primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

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

.danger {
  border-color: #fecdd3;
  color: var(--red);
}

.tenant-status {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #505a6b;
}

.tenant-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}

.user-menu {
  position: relative;
}

.user-button {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.user-button:hover,
.user-button[aria-expanded="true"] {
  background: #f4f6f8;
}

.user-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #263248;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.user-arrow {
  color: var(--muted);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: none;
  min-width: 130px;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.user-dropdown.visible {
  display: block;
}

.user-dropdown button {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--red);
  text-align: left;
  cursor: pointer;
}

.user-dropdown button:hover {
  background: #fff1f2;
}

.sidebar-toggle,
.sidebar-backdrop {
  display: none;
}

.content {
  padding: 18px 22px 32px;
}

.page-loading {
  display: flex;
  min-height: 280px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
}

.page-loading.compact {
  min-height: 220px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.loading-spinner,
.button-loading::before {
  width: 16px;
  height: 16px;
  border: 2px solid #d7deea;
  border-top-color: var(--primary);
  border-radius: 50%;
  content: "";
  animation: spin .7s linear infinite;
}

.primary.button-loading::before {
  border-color: rgba(255, 255, 255, .45);
  border-top-color: #fff;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.stat,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.stat {
  position: relative;
  min-height: 132px;
  overflow: hidden;
  padding: 18px 19px 16px;
  box-shadow: 0 5px 18px rgba(16, 24, 40, .045);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.stat::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 0;
  background: transparent;
  content: "";
}

.stat:nth-child(2)::before {
  background: var(--green);
}

.stat:nth-child(3)::before {
  background: var(--amber);
}

.stat:nth-child(4)::before {
  background: #7a5af8;
}

.stat:nth-child(5)::before {
  background: #e5484d;
}

.stat:hover {
  border-color: #d9e5f4;
  box-shadow: 0 10px 24px rgba(16, 24, 40, .08);
  transform: translateY(-1px);
}

.stat-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-icon,
.metric-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: transparent;
  color: #2f80ed;
  font-size: 23px;
}

.stat:nth-child(2) .stat-icon {
  background: transparent;
  color: #12a36f;
}

.stat:nth-child(3) .stat-icon {
  background: transparent;
  color: #e58a16;
}

.stat:nth-child(4) .stat-icon {
  background: transparent;
  color: #7657d8;
}

.stat:nth-child(5) .stat-icon {
  background: transparent;
  color: #d54854;
}

.stat label {
  display: inline-block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.stat strong {
  display: block;
  margin-top: 15px;
  color: #344054;
  font-size: 28px;
  font-weight: 600;
}

.stat small {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  overflow: hidden;
  color: #98a2b3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-compare .bi {
  color: #2f80ed;
  font-size: 12px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 12px;
  margin-top: 12px;
}

.panel {
  padding: 18px;
  box-shadow: 0 4px 16px rgba(16, 24, 40, .035);
}

.panel + .panel,
.dashboard-grid + .panel {
  margin-top: 12px;
}

.dashboard-grid .panel + .panel {
  margin-top: 0;
}

.panel h2 {
  margin: 0 0 14px;
  color: #344054;
  font-size: 15px;
  font-weight: 600;
}

.panel h3 {
  margin: 20px 0 12px;
  font-size: 14px;
}

.work-grid,
.todo-grid,
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mini {
  min-height: 74px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #f7f9fc;
  color: var(--text);
  text-align: left;
}

.dashboard-metric {
  display: flex;
  min-height: 78px;
  align-items: center;
  gap: 10px;
  border-color: #edf0f4;
  background: #fbfcfe;
}

.dashboard-metric .metric-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: transparent;
  color: #2f80ed;
  font-size: 21px;
}

.dashboard-metric:nth-child(3n + 2) .metric-icon {
  background: transparent;
  color: #12a36f;
}

.dashboard-metric:nth-child(3n) .metric-icon {
  background: transparent;
  color: #e58a16;
}

.metric-content {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.metric-content label {
  overflow: hidden;
  color: #7a8698;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-content strong {
  margin-top: 0;
  color: #344054;
  font-size: 20px;
  font-weight: 600;
}

.dashboard-activity-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(320px, .9fr);
  gap: 12px;
  margin-top: 12px;
}

.dashboard-activity-grid .panel {
  min-width: 0;
  padding: 0;
  overflow: hidden;
}

.dashboard-activity-grid .panel + .panel {
  margin-top: 0;
}

.dashboard-panel-head {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.dashboard-panel-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.dashboard-panel-title h2 {
  margin: 0;
}

.dashboard-panel-icon {
  display: grid;
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 8px;
  background: transparent;
  color: var(--primary);
  font-size: 19px;
}

.dashboard-ranking-panel .dashboard-panel-icon {
  background: transparent;
  color: #d99000;
}

.dashboard-panel-note {
  flex: 0 0 auto;
  color: #98a2b3;
  font-size: 12px;
}

.dashboard-order-scroll {
  overflow-x: auto;
  padding: 4px 18px 10px;
}

.dashboard-order-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: fixed;
}

.dashboard-order-table th,
.dashboard-order-table td {
  padding: 13px 10px;
  border-bottom: 1px solid #edf0f4;
  text-align: left;
  vertical-align: middle;
}

.dashboard-order-table th {
  color: #7a8698;
  font-size: 12px;
  font-weight: 500;
}

.dashboard-order-table th:nth-child(1) { width: 23%; }
.dashboard-order-table th:nth-child(2) { width: 26%; }
.dashboard-order-table th:nth-child(3) { width: 14%; }
.dashboard-order-table th:nth-child(4) { width: 17%; }
.dashboard-order-table th:nth-child(5) { width: 20%; }

.dashboard-order-table tbody tr {
  cursor: pointer;
  transition: background-color .16s ease;
}

.dashboard-order-table tbody tr:hover {
  background: #f8fbff;
}

.dashboard-order-table tbody tr:last-child td {
  border-bottom: 0;
}

.dashboard-order-user,
.dashboard-order-service {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.dashboard-order-avatar,
.dashboard-ranking-avatar,
.dashboard-order-service-image {
  display: grid;
  flex: 0 0 auto;
  overflow: hidden;
  place-items: center;
  background: #f1f4f8;
  color: #98a2b3;
}

.dashboard-order-avatar,
.dashboard-ranking-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.dashboard-order-service-image {
  width: 44px;
  height: 44px;
  border-radius: 7px;
  font-size: 17px;
}

.dashboard-order-avatar img,
.dashboard-ranking-avatar img,
.dashboard-order-service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dashboard-order-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.dashboard-order-copy strong,
.dashboard-order-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-order-copy strong {
  color: #344054;
  font-size: 13px;
  font-weight: 550;
}

.dashboard-order-type {
  width: max-content;
  padding: 2px 6px;
  border-radius: 4px;
  background: #edf5ff;
  color: #3978c7;
  font-size: 10px;
  line-height: 1.3;
}

.dashboard-order-service .dashboard-order-type {
  background: #f2f7f3;
  color: #3d8760;
}

.dashboard-order-copy small,
.dashboard-order-time {
  color: #98a2b3;
  font-size: 11px;
}

.dashboard-order-amount {
  color: #1d2939;
  font-weight: 650;
  white-space: nowrap;
}

.dashboard-ranking-list {
  padding: 5px 18px 10px;
}

.dashboard-ranking-item {
  display: grid;
  grid-template-columns: 26px 42px minmax(0, 1fr) auto;
  min-height: 68px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #edf0f4;
}

.dashboard-ranking-item:last-child {
  border-bottom: 0;
}

.dashboard-ranking-index {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  background: #f0f2f5;
  color: #7a8698;
  font-size: 11px;
  font-weight: 650;
}

.dashboard-ranking-index.rank-1 {
  background: #fff1bd;
  color: #a86d00;
}

.dashboard-ranking-index.rank-2 {
  background: #edf1f6;
  color: #667085;
}

.dashboard-ranking-index.rank-3 {
  background: #f9e3d2;
  color: #ad5c26;
}

.dashboard-ranking-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.dashboard-ranking-copy > strong {
  overflow: hidden;
  color: #344054;
  font-size: 13px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-ranking-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  color: #98a2b3;
  font-size: 11px;
  white-space: nowrap;
}

.dashboard-ranking-meta > .bi {
  color: #efad24;
  font-size: 10px;
}

.dashboard-ranking-divider {
  width: 1px;
  height: 10px;
  background: #dfe4eb;
}

.dashboard-ranking-value {
  display: inline-flex;
  min-width: 64px;
  min-height: 34px;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  padding: 7px 9px;
  border: 1px solid #bce6d5;
  border-radius: 6px;
  background: #eefbf5;
  color: #00875a;
  white-space: nowrap;
}

.dashboard-ranking-value strong {
  font-size: 15px;
  font-weight: 650;
}

.dashboard-ranking-value small {
  font-size: 10px;
}

.dashboard-empty {
  display: grid;
  min-height: 240px;
  place-items: center;
  align-content: center;
  gap: 9px;
  color: #98a2b3;
}

.dashboard-empty .bi {
  font-size: 28px;
}

button.mini {
  cursor: pointer;
}

button.mini:hover {
  border-color: #cfdbf2;
  background: var(--primary-soft);
  color: var(--primary);
}

.mini label {
  color: var(--muted);
}

.mini strong {
  display: block;
  margin-top: 8px;
  font-size: 21px;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.filter-panel {
  align-items: center;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.filters,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filters input,
.filters select {
  width: 176px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #fff;
}

.filters input[type="date"] {
  width: 148px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.tab {
  position: relative;
  min-height: 36px;
  padding: 0 13px;
  border: 0;
  background: transparent;
  color: #505a6b;
  cursor: pointer;
}

.tab.active {
  color: var(--primary);
  font-weight: 600;
}

.tab.active::after {
  position: absolute;
  right: 8px;
  bottom: -1px;
  left: 8px;
  height: 2px;
  background: var(--primary);
  content: "";
}

.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.selection-column {
  width: 42px;
  min-width: 42px;
  padding-right: 6px !important;
  padding-left: 6px !important;
  text-align: center !important;
}

.selection-column input,
.crud-select-all,
.crud-row-check {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.table-wrap tbody tr.row-selected,
.member-table tbody tr.row-selected {
  background: #eff6ff;
}

.category-tree-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 180px;
  padding-left: calc(var(--tree-level, 0) * 22px);
}

.category-tree-arrow {
  display: none;
}

.category-tree-name.is-child .category-tree-arrow {
  display: inline-block;
}

.category-tree-name > i {
  color: #98a2b3;
  font-size: 13px;
}

.table-wrap + .table-wrap {
  margin-top: 14px;
}

.avatar-column,
.avatar-cell {
  width: 68px;
  min-width: 68px;
  max-width: 68px;
  text-align: center;
}

.avatar-cell {
  padding-top: 7px;
  padding-bottom: 7px;
}

.provider-list-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f7f8fa;
  color: var(--muted);
  font-size: 19px;
}

.provider-list-avatar a {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
}

.provider-list-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.provider-list-avatar.store {
  background: #f5f8fd;
  color: #486789;
}

.audit-table td {
  height: 66px;
  padding-top: 9px;
  padding-bottom: 9px;
}

.table-identity {
  display: flex;
  min-width: 210px;
  align-items: center;
  gap: 10px;
}

.table-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f7f8fa;
  color: var(--muted);
  font-size: 18px;
}

.table-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.table-identity-copy,
.cell-stack {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.table-identity-copy strong,
.cell-stack strong {
  overflow: hidden;
  color: var(--text);
  font-weight: 600;
  text-overflow: ellipsis;
}

.table-identity-copy span,
.cell-stack span {
  overflow: hidden;
  max-width: 230px;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
}

.cell-tags {
  display: flex;
  max-width: 260px;
  flex-wrap: wrap;
  gap: 5px;
  white-space: normal;
}

.audit-service-groups {
  display: grid;
  gap: 6px;
  min-width: 220px;
}

.audit-service-group {
  display: grid;
  gap: 4px;
}

.audit-service-group > strong {
  color: #475467;
  font-size: 12px;
  font-weight: 600;
}

.audit-intro-cell {
  width: 180px;
  max-height: 42px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 21px;
  white-space: normal;
}

.cell-tag {
  padding: 3px 6px;
  border: 1px solid #d8e3f7;
  border-radius: 4px;
  background: #f5f8fd;
  color: #375273;
  font-size: 12px;
}

table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

th,
td {
  height: 46px;
  padding: 0 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

td {
  max-width: 320px;
  color: #344054;
}

tr:last-child td {
  border-bottom: 0;
}

th {
  background: #f7f8fa;
  color: #505a6b;
  font-weight: 600;
}

tbody tr:hover {
  background: #fafbfd;
}

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

.data-form {
  display: grid;
  gap: 0;
}

.settings-form {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  pointer-events: auto;
}

.form-section {
  padding: 18px 20px 22px;
  border-bottom: 1px solid var(--line);
}

.form-section:last-child {
  border-bottom: 0;
}

.form-section h3 {
  margin: 0 0 16px;
  color: #1d2939;
  font-size: 15px;
}

.form-field {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 7px;
}

.form-field.wide {
  grid-column: 1 / -1;
}

.form-field label {
  color: #3c4658;
  font-weight: 600;
}

.form-field label b {
  margin-left: 4px;
  color: var(--red);
  font-weight: 600;
}

.form-field-hint {
  color: #667085;
  font-size: 12px;
  line-height: 1.55;
}

.notice-fields, .notice-field-rows { display: grid; gap: 10px; min-width: 0; }
.notice-field-row { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(100px, 1fr) minmax(120px, 1.5fr) 36px; gap: 8px; align-items: center; }
.notice-field-row > input, .notice-field-row > select { min-width: 0; }
.notice-field-row > button { width: 36px; height: 36px; padding: 0; }
.notice-fields > button { justify-self: start; }
@media (max-width: 600px) {
  .notice-field-row { grid-template-columns: minmax(0, 1fr) 36px; }
  .notice-field-row > input, .notice-field-row > select { grid-column: 1; }
  .notice-field-row > button { grid-column: 2; grid-row: 1 / 4; }
}

.string-list-editor,
.string-list-rows {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.string-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 8px;
  align-items: center;
}

.string-list-row > input {
  min-width: 0;
}

.string-list-row > button {
  width: 36px;
  height: 36px;
  padding: 0;
}

.string-list-editor > button {
  justify-self: start;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #fff;
  pointer-events: auto;
}

.form-field > input:not([type="hidden"]),
.form-field > select:not([multiple]) {
  height: 40px;
  min-height: 40px;
  align-self: start;
}

.settings-form .form-field input[type="number"],
.settings-form .form-field input[type="text"] {
  cursor: text;
  user-select: text;
}

.form-field textarea {
  min-height: 92px;
  resize: vertical;
}

.richtext-field {
  display: grid;
  gap: 0;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #fff;
}

.richtext-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 7px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.richtext-button {
  min-width: 32px;
  min-height: 30px;
  padding: 4px 7px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #475467;
  background: transparent;
}

.richtext-button:hover {
  border-color: var(--line-strong);
  color: var(--primary);
  background: #fff;
}

.richtext-editor {
  min-height: 300px;
  overflow: auto;
  padding: 14px;
  outline: none;
  color: #344054;
  line-height: 1.75;
}

.richtext-editor:focus {
  box-shadow: inset 0 0 0 1px var(--primary);
}

.richtext-image-tools {
  display: flex;
  min-height: 42px;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.richtext-image-tools[hidden] {
  display: none;
}

.richtext-image-tools span {
  color: var(--muted);
  font-size: 12px;
}

.richtext-image-tools select {
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #fff;
  color: var(--text);
}

.richtext-editor img {
  max-width: 100%;
  height: auto;
}

.richtext-editor img.is-selected,
.service-rich-editor img.is-selected {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.form-field select[multiple] {
  min-height: 110px;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.radio-option,
.check-option {
  position: relative;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  cursor: pointer;
}

.radio-option input,
.check-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-option span,
.check-option span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: #3c4658;
  font-weight: 500;
}

.radio-option input:checked + span,
.check-option input:checked + span {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}

.radio-option input:focus-visible + span,
.check-option input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(21, 94, 239, .12);
}

.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.remote-check-row {
  min-height: 44px;
  max-height: 180px;
  align-content: flex-start;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #fff;
}

.remote-check-status {
  align-self: center;
  color: #667085;
  font-size: 13px;
}

.remote-check-status.error {
  color: var(--red);
}

.switch-control {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}

.switch-control input {
  position: absolute;
  opacity: 0;
}

.switch-slider {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 11px;
  background: #cfd5df;
  transition: background .18s ease;
}

.switch-slider::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .24);
  content: "";
  transition: transform .18s ease;
}

.switch-control input:checked + .switch-slider {
  background: var(--primary);
}

.switch-control input:checked + .switch-slider::after {
  transform: translateX(16px);
}

.switch-control em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
}

.color-input {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px;
}

.color-input input[type="color"] {
  padding: 3px;
}

.image-uploader {
  display: grid;
  gap: 10px;
}

.image-uploader-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.image-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.image-preview {
  position: relative;
  width: 86px;
  height: 86px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f7f9fc;
}

.image-preview img {
  width: 100%;
  height: 100%;
  padding: 4px;
  box-sizing: border-box;
  object-fit: contain;
  background: #f7f9fc;
}

.image-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: rgba(17, 24, 39, .72);
  color: #fff;
  cursor: pointer;
}

.upload-button {
  width: max-content;
  min-height: 34px;
  padding: 0 12px;
  border: 1px dashed #b9c3d3;
  border-radius: 5px;
  background: #fff;
  color: #475467;
  cursor: pointer;
}

.upload-button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.settings-actions {
  padding: 14px 0 0;
}

.application-directory {
  min-width: 0;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.application-directory-section + .application-directory-section {
  margin-top: 30px;
}

.application-directory-section h3 {
  margin: 0 0 16px;
  color: #273142;
  font-size: 16px;
  font-weight: 600;
}

.application-directory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.application-directory-card {
  display: flex;
  min-width: 0;
  min-height: 98px;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid #edf0f4;
  border-radius: 5px;
  background: #f7f8fa;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.application-directory-card:hover {
  border-color: #cdd8ea;
  background: #fff;
  box-shadow: 0 5px 16px rgba(23, 32, 48, .07);
}

.application-directory-card:focus-visible {
  border-color: var(--primary);
}

.application-directory-card.disabled {
  cursor: not-allowed;
  opacity: .55;
}

.application-directory-icon {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 4px;
  background: #2563eb;
  color: #fff;
  font-size: 23px;
}

.application-directory-icon.violet {
  background: #7f56d9;
}

.application-directory-icon.red {
  background: #e5484d;
}

.application-directory-icon.green {
  background: #16a34a;
}

.application-directory-icon.purple {
  background: #9333ea;
}

.application-directory-icon.blue {
  background: #2563eb;
}

.application-directory-icon.cyan {
  background: #0891b2;
}

.application-directory-copy {
  display: block;
  min-width: 0;
}

.application-directory-copy strong,
.application-directory-copy small {
  display: block;
}

.application-directory-copy strong {
  overflow: hidden;
  color: #1f2937;
  font-size: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.application-directory-copy small {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 6px;
  color: #7d8799;
  font-size: 12px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.empty {
  display: grid;
  min-height: 150px;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 44px 24px;
  color: var(--muted);
  text-align: center;
}

.empty .bi {
  color: #b2bbc9;
  font-size: 27px;
}

.link-btn {
  padding: 0 8px 0 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
}

.link-btn + .link-btn {
  margin-left: 9px;
}

.danger-text {
  color: var(--red);
}

.status-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #667085;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

.status-badge > .bi {
  font-size: 12px;
  line-height: 1;
}

.status-badge.positive {
  background: var(--green-soft);
  color: #067647;
}

.status-badge.danger {
  background: #fff0f1;
  color: var(--red);
}

.status-badge.info {
  background: #eaf4ff;
  color: #175cd3;
}

.status-badge.primary {
  background: #eef4ff;
  color: #344054;
}

.status-badge.neutral {
  background: #f2f4f7;
  color: #667085;
}

.status-badge.order-pending-pay {
  background: #fff4e5;
  color: #b54708;
}

.status-badge.order-pending-assign {
  background: #eaf4ff;
  color: #175cd3;
}

.status-badge.order-assigned {
  background: #f0eaff;
  color: #6941c6;
}

.status-badge.order-serving {
  background: #e7f6ec;
  color: #087443;
}

.status-badge.order-wait-check {
  background: #fff1f3;
  color: #c01048;
}

.status-badge.order-finished {
  background: #e8f7ef;
  color: #067647;
}

.status-badge.order-closed {
  background: #f2f4f7;
  color: #667085;
}

.status-badge.order-abnormal {
  background: #fff0f1;
  color: #b42318;
}

.status-badge.order-refunding {
  background: #fff7e6;
  color: #c4320a;
}

.status-badge.order-refunded {
  background: #eef2f6;
  color: #475467;
}

.cell-images {
  display: flex;
  gap: 5px;
}

.cell-images a {
  display: block;
  line-height: 0;
}

.cell-images img {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 4px;
  object-fit: cover;
}

.service-list-info {
  display: flex;
  min-width: 190px;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
}

.service-list-thumbnail {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f7f8fa;
  color: var(--muted);
  font-size: 19px;
}

.service-list-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-list-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.service-list-copy strong,
.service-list-copy span {
  overflow: hidden;
  max-width: 210px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-list-copy strong {
  color: var(--text);
  font-weight: 500;
}

.service-list-copy span {
  color: var(--muted);
  font-size: 12px;
}

.color-value {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.color-value i {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(16, 24, 40, .12);
  border-radius: 4px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 2px 0;
  color: var(--muted);
}

.pagination-total {
  margin-right: 4px;
}

.pagination select {
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #fff;
}

.pager-btn {
  min-height: 34px;
}

.page-number {
  min-width: 54px;
  color: #475467;
  text-align: center;
}

.load-error,
.unavailable {
  display: flex;
  min-height: 260px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: var(--muted);
}

.load-error > .bi,
.unavailable > .bi {
  color: #98a2b3;
  font-size: 32px;
}

.unavailable h2,
.unavailable p {
  margin: 0;
}

.unavailable p {
  max-width: 520px;
  text-align: center;
}

.drawer-open {
  overflow: hidden;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 23, 42, 0);
  transition: background .18s ease;
}

.drawer-overlay.visible {
  background: rgba(15, 23, 42, .34);
}

.drawer {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  grid-template-rows: 62px minmax(0, 1fr) 64px;
  width: min(820px, calc(100vw - 40px));
  height: 100%;
  background: #fff;
  box-shadow: -16px 0 44px rgba(15, 23, 42, .14);
  transform: translateX(100%);
  transition: transform .18s ease;
}

.drawer-overlay.visible .drawer {
  transform: translateX(0);
}

.drawer-header,
.drawer-footer {
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}

.drawer-header {
  justify-content: space-between;
}

.drawer-header h2 {
  margin: 0;
  font-size: 17px;
}

.drawer-footer {
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.drawer-body {
  overflow-y: auto;
}

.drawer-body .form-section {
  padding-right: 22px;
  padding-left: 22px;
}

.detail-list {
  display: grid;
}

.detail-list-item {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 18px;
  padding: 13px 22px;
  border-bottom: 1px solid var(--line);
}

.detail-list-item label {
  color: var(--muted);
}

.detail-list-item span {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.mall-order-detail {
  display: grid;
  gap: 14px;
  padding: 2px 0 10px;
}

.mall-order-detail-section {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.mall-order-detail-section > h3 {
  margin: 0;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
  color: var(--text);
  font-size: 14px;
}

.mall-order-detail-section .detail-list-item {
  padding: 11px 16px;
}

.mall-order-detail-section .table-wrap {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.mall-order-detail-section .order-timeline {
  padding: 16px 18px 8px;
}

.audit-detail {
  display: grid;
}

.audit-detail-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.audit-detail-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.audit-detail-avatar {
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--muted);
  font-size: 22px;
}

.audit-detail-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.audit-detail-heading {
  flex: 1 1 auto;
  min-width: 0;
}

.audit-detail-heading h3,
.audit-detail-heading p,
.audit-detail-section h4 {
  margin: 0;
}

.audit-detail-heading h3 {
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-detail-heading p {
  overflow: hidden;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-detail-section {
  padding: 19px 22px 21px;
  border-bottom: 1px solid var(--line);
}

.audit-detail-section:last-child {
  border-bottom: 0;
}

.audit-detail-section h4 {
  margin-bottom: 14px;
  color: #344054;
  font-size: 14px;
}

.audit-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 28px;
}

.audit-detail-field {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.audit-detail-field label {
  color: var(--muted);
  font-size: 12px;
}

.audit-detail-field strong {
  overflow-wrap: anywhere;
  color: #344054;
  font-weight: 500;
  white-space: normal;
}

.audit-image-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.audit-image-item {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: #344054;
  text-decoration: none;
}

.audit-image-item:hover {
  border-color: #b9c9e5;
}

.audit-image-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f7f8fa;
  object-fit: cover;
}

.audit-image-item span {
  overflow: hidden;
  padding: 8px 9px;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-images-empty {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  text-align: center;
}

.toast-root {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 500;
  display: grid;
  gap: 8px;
}

.toast {
  display: flex;
  min-width: 220px;
  max-width: 380px;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  background: #fff;
  border: 1px solid #b7e5d1;
  border-radius: 6px;
  box-shadow: var(--shadow);
  color: #067647;
}

.toast.error {
  border-color: #fecdd3;
  color: var(--red);
}

.detail-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.detail-header h2 {
  margin: 0;
  font-size: 17px;
}

.order-process-panel {
  margin-bottom: 16px;
  padding: 16px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.order-process-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.order-process-heading strong {
  color: #1d2939;
  font-size: 15px;
}

.order-process-heading span {
  color: var(--muted);
  font-size: 12px;
}

.order-process-track {
  display: flex;
  align-items: flex-start;
  min-width: 0;
}

.order-process-step {
  position: relative;
  display: grid;
  min-width: 148px;
  flex: 1 1 0;
  justify-items: center;
  gap: 8px;
  color: #98a2b3;
  text-align: center;
}

.order-process-step strong,
.order-process-terminal strong {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.order-process-step-details {
  display: grid;
  min-height: 34px;
  justify-items: center;
  gap: 3px;
  max-width: 148px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.order-process-detail {
  overflow: hidden;
  max-width: 148px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-process-dot {
  z-index: 1;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #d0d5dd;
  border-radius: 50%;
  background: var(--panel);
  color: #98a2b3;
  font-size: 12px;
}

.order-process-line {
  position: absolute;
  top: 14px;
  right: 0;
  left: 0;
  height: 2px;
  background: #eaecf0;
}

.order-process-step.is-complete,
.order-process-step.is-current {
  color: var(--primary);
}

.order-process-step.is-complete .order-process-dot,
.order-process-step.is-current .order-process-dot {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.order-process-step.is-complete .order-process-line {
  background: var(--primary);
}

.order-process-step.is-current strong {
  font-weight: 700;
}

.order-process-terminal {
  display: grid;
  min-width: 148px;
  justify-items: center;
  gap: 8px;
  color: var(--red);
  text-align: center;
}

.order-process-terminal .bi {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.order-process-terminal.is-refunding {
  color: var(--amber);
}

.order-process-terminal.is-refunded {
  color: #7f56d9;
}

.dispatch-unavailable {
  padding: 18px 22px;
  color: var(--muted);
  line-height: 1.7;
}

.dispatch-unavailable p {
  margin: 0;
}

.dispatch-location-note {
  margin: 0 22px 18px;
  padding: 9px 12px;
  border-left: 3px solid #f2c94c;
  background: #fffbeb;
  color: #8a6116;
  font-size: 12px;
  line-height: 1.6;
}

.status-text {
  color: var(--amber);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin-bottom: 18px;
}

.detail-field {
  display: flex;
  min-height: 32px;
  align-items: baseline;
  gap: 12px;
}

.detail-field label {
  width: 86px;
  color: var(--muted);
}

.detail-field strong {
  font-weight: 500;
}

.detail-table {
  margin-top: 14px;
}

.order-reschedule {
  display: grid;
  gap: 24px;
  padding: 22px;
}

.reschedule-current {
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #dbe4f0;
  border-radius: 6px;
  background: #f7f9fc;
}

.reschedule-current-icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 5px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 19px;
}

.reschedule-current span,
.reschedule-current strong {
  display: block;
}

.reschedule-current div > span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

.reschedule-current strong {
  color: #1d2939;
  font-size: 15px;
}

.reschedule-section {
  display: grid;
  gap: 12px;
}

.reschedule-section-head {
  display: flex;
  min-height: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.reschedule-section-head strong {
  color: #1d2939;
  font-size: 14px;
}

.reschedule-section-head span {
  color: var(--muted);
  font-size: 12px;
}

.reschedule-date-input {
  width: min(300px, 100%);
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #fff;
  color: #1d2939;
  font: inherit;
}

.reschedule-date-options {
  display: grid;
  grid-template-columns: repeat(7, minmax(72px, 1fr));
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 3px;
}

.reschedule-date-option,
.reschedule-slot {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: #344054;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}

.reschedule-date-option {
  display: grid;
  min-height: 62px;
  place-items: center;
  align-content: center;
  gap: 4px;
  padding: 8px;
}

.reschedule-date-option span {
  color: var(--muted);
  font-size: 12px;
}

.reschedule-date-option strong {
  font-size: 14px;
}

.reschedule-date-option:hover,
.reschedule-slot:hover {
  border-color: #9db8eb;
}

.reschedule-date-option.active,
.reschedule-slot.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}

.reschedule-date-option.active span,
.reschedule-slot.active span {
  color: var(--primary);
}

.reschedule-slot-grid {
  display: grid;
  min-height: 156px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 10px;
}

.reschedule-slot-grid.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
}

.reschedule-slot {
  display: grid;
  min-height: 58px;
  place-items: center;
  align-content: center;
  gap: 4px;
  padding: 8px 10px;
}

.reschedule-slot strong {
  font-size: 14px;
}

.reschedule-slot span {
  color: var(--muted);
  font-size: 11px;
}

.reschedule-empty {
  display: grid;
  min-height: 156px;
  grid-column: 1 / -1;
  place-items: center;
  align-content: center;
  gap: 7px;
  border: 1px dashed #d5dce7;
  border-radius: 6px;
  background: #fafbfc;
  color: var(--muted);
  text-align: center;
}

.reschedule-empty .bi {
  color: #98a2b3;
  font-size: 25px;
}

.reschedule-empty strong {
  color: #475467;
}

.reschedule-empty.error,
.reschedule-empty.error strong,
.reschedule-empty.error .bi {
  color: var(--red);
}

.order-timeline {
  display: grid;
  max-width: 940px;
  padding: 8px 10px 8px 4px;
}

.order-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  min-height: 104px;
}

.order-timeline-item:not(:last-child)::before {
  position: absolute;
  top: 39px;
  bottom: 0;
  left: 20px;
  width: 1px;
  background: #dbe3ef;
  content: "";
}

.order-timeline-marker {
  z-index: 1;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid #c7d7f2;
  border-radius: 50%;
  background: #f2f6fd;
  color: var(--primary);
  font-size: 17px;
}

.order-timeline-body {
  min-width: 0;
  padding: 2px 0 22px;
}

.order-timeline-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.order-timeline-head strong {
  color: #1d2939;
  font-size: 15px;
}

.order-timeline-head time,
.order-timeline-operator {
  color: var(--muted);
  font-size: 12px;
}

.order-timeline-operator {
  display: block;
  margin-top: 5px;
}

.order-timeline-body p {
  margin: 9px 0 0;
  padding: 9px 12px;
  border-left: 3px solid #c7d7f2;
  background: #f8fafc;
  color: #475467;
  line-height: 1.6;
}

.order-timeline-empty {
  display: grid;
  min-height: 210px;
  place-items: center;
  align-content: center;
  gap: 7px;
  color: var(--muted);
  text-align: center;
}

.order-timeline-empty .bi {
  color: #98a2b3;
  font-size: 28px;
}

.order-timeline-empty strong {
  color: #475467;
}

.provider-detail-nav {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 9px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.provider-detail-id {
  color: var(--muted);
  font-size: 13px;
}

.provider-detail-nav-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.provider-detail-warning {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 8px 12px;
  border: 1px solid #f1d49a;
  border-radius: 6px;
  background: #fff9eb;
  color: #8a5700;
}

.provider-detail-warning .ghost {
  margin-left: auto;
  background: #fff;
}

.provider-profile {
  padding: 22px;
}

.provider-profile-main {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.provider-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f9fc;
  color: #98a2b3;
  font-size: 38px;
}

.provider-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.provider-identity {
  min-width: 0;
}

.provider-title-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.provider-title-line h2 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 21px;
}

.provider-subtitle {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.provider-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 28px;
  padding-top: 10px;
}

.provider-fact {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
  min-height: 46px;
  align-items: center;
  border-bottom: 1px dashed #edf0f5;
}

.provider-fact label,
.provider-intro label {
  color: var(--muted);
}

.provider-fact strong {
  overflow-wrap: anywhere;
  font-weight: 500;
  line-height: 1.5;
}

.provider-intro {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
  padding-top: 16px;
}

.provider-intro p {
  margin: 0;
  color: #344054;
  line-height: 1.7;
  white-space: pre-wrap;
}

.provider-documents {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.provider-documents h3 {
  margin: 0 0 12px;
  font-size: 14px;
}

.provider-document-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 168px));
  gap: 12px;
}

.provider-document-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}

.provider-document-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1.45;
  object-fit: cover;
  background: #f7f9fc;
}

.provider-document-grid a {
  display: block;
}

.provider-document-grid figcaption {
  padding: 8px 9px;
  color: #505a6b;
  font-size: 12px;
  text-align: center;
}

.provider-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.provider-stat {
  min-height: 104px;
  padding: 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.provider-stat label,
.provider-stat small {
  display: block;
  color: var(--muted);
}

.provider-stat strong {
  display: block;
  margin-top: 9px;
  overflow-wrap: anywhere;
  font-size: 22px;
}

.provider-stat small {
  margin-top: 5px;
  overflow: hidden;
  color: #98a2b3;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.provider-records {
  padding: 16px;
}

.provider-records .tabs {
  margin-bottom: 16px;
}

.provider-record-body .table-wrap {
  border-radius: 5px;
}

.boot-mask {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: none;
  place-items: center;
  background: var(--bg);
}

.boot-mask.visible {
  display: grid;
}

.boot-status {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #667085;
}

.service-items-editor {
  display: grid;
  gap: 12px;
}

.service-item-rows {
  display: grid;
  gap: 10px;
}

.service-item-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) minmax(150px, 0.55fr) minmax(130px, 0.45fr) 40px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e4e7ec;
  border-radius: 6px;
  background: #fff;
}

.service-item-identity {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.service-item-thumb {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e4e7ec;
  border-radius: 5px;
  color: #98a2b3;
  background: #f7f8fa;
}

.service-item-thumb img { width: 100%; height: 100%; padding: 3px; box-sizing: border-box; object-fit: contain; background: #f7f8fa; }
.service-item-field { display: grid; gap: 5px; color: #667085; font-size: 12px; }
.service-item-field > input { width: 100%; }
.service-item-stepper { display: grid; grid-template-columns: 34px minmax(54px, 1fr) 34px; }
.service-item-stepper input { min-width: 0; border-radius: 0; text-align: center; }
.service-item-stepper .icon-btn { width: 34px; height: 40px; border-radius: 0; }
.service-item-stepper .icon-btn:first-child { border-radius: 5px 0 0 5px; }
.service-item-stepper .icon-btn:last-child { border-radius: 0 5px 5px 0; }
.service-item-presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.service-item-presets button { height: 26px; padding: 0; border: 1px solid #d0d5dd; border-radius: 4px; color: #475467; background: #fff; font-size: 11px; cursor: pointer; }
.service-item-presets button:hover { color: #155eef; border-color: #84adff; background: #eff4ff; }
.card-total-times { color: #155eef; font-size: 14px; white-space: nowrap; }
.city-price-rate { color: #b42318; font-size: 14px; white-space: nowrap; }
.input-suffix { position: relative; display: flex; align-items: center; }
.input-suffix input { width: 100%; padding-right: 38px; }
.input-suffix > span { position: absolute; right: 14px; color: #667085; font-size: 14px; pointer-events: none; }

.service-items-summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  color: #475467;
  background: #f6f8fa;
  border-radius: 5px;
}

.service-items-summary strong { color: #b42318; }
.card-product-list { display: grid; gap: 4px; min-width: 180px; }
.card-product-item { display: flex; justify-content: space-between; gap: 12px; color: #344054; }
.card-product-item strong { color: #b42318; white-space: nowrap; }
.card-product-list small, .card-product-empty { color: #98a2b3; }

.mall-skus-editor, .mall-sku-rows { display: grid; gap: 10px; }
.mall-sku-row { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(120px, .7fr) repeat(3, minmax(90px, .45fr)) 72px 40px; gap: 8px; align-items: center; padding: 10px; border: 1px solid #e4e7ec; border-radius: 6px; }
.mall-sku-status { display: flex; align-items: center; gap: 6px; color: #475467; font-size: 13px; }
.mall-sku-status input { width: 16px; height: 16px; }
.mall-sku-remove { color: #d92d20; }
.mall-sku-add { justify-self: start; }
.mall-sku-hint { color: #667085; font-size: 12px; }

.service-item-row .service-item-remove {
  width: 40px;
  height: 40px;
  color: #d92d20;
}

.service-item-add {
  justify-self: start;
}

@media (max-width: 720px) {
  .service-item-row {
    grid-template-columns: minmax(0, 1fr) 40px;
  }

  .service-item-field { grid-column: 1 / -1; }
  .service-items-summary { align-items: flex-start; flex-direction: column; }
  .mall-sku-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mall-sku-row .mall-sku-remove { grid-column: 2; justify-self: end; }
}

.login-mask {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  overflow: auto;
  padding: 28px;
  background: #eef1f5;
}

.login-mask.visible {
  display: grid;
}

.login-stage {
  display: grid;
  grid-template-columns: minmax(360px, .88fr) minmax(440px, 1.12fr);
  width: min(1080px, 100%);
  min-height: 620px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dde2ea;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(17, 24, 39, .14);
}

.login-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 34px;
  background: #1c2738;
  color: #fff;
}

.login-showcase.has-background {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.login-showcase.has-background .showcase-brand,
.login-showcase.has-background .service-visual,
.login-showcase.has-background .showcase-title {
  display: none;
}

.showcase-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 16px;
  font-weight: 650;
}

.showcase-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 6px;
  font-size: 11px;
}

.service-visual {
  position: relative;
  width: min(360px, 100%);
  height: 310px;
  margin: 8px auto;
}

.visual-center,
.visual-node {
  position: absolute;
  z-index: 2;
  background: #fff;
  box-shadow: 0 16px 30px rgba(3, 11, 24, .23);
}

.visual-center {
  top: 96px;
  left: calc(50% - 61px);
  display: grid;
  place-items: center;
  width: 122px;
  height: 122px;
  border: 8px solid #dbe7ff;
  border-radius: 50%;
  color: #155eef;
  font-size: 27px;
  font-weight: 800;
}

.visual-center small {
  margin-top: -28px;
  color: #7282a2;
  font-size: 8px;
  font-weight: 700;
}

.visual-node {
  width: 112px;
  height: 68px;
  padding: 13px;
  border-radius: 6px;
}

.visual-node i,
.visual-node span,
.visual-node b {
  display: block;
  border-radius: 2px;
}

.visual-node i {
  width: 28px;
  height: 7px;
  background: #155eef;
}

.visual-node span {
  width: 76px;
  height: 5px;
  margin-top: 10px;
  background: #dce2eb;
}

.visual-node b {
  width: 54px;
  height: 5px;
  margin-top: 7px;
  background: #edf0f5;
}

.node-one {
  top: 12px;
  left: 15px;
}

.node-one i {
  background: #00a870;
}

.node-two {
  top: 18px;
  right: 8px;
}

.node-two i {
  background: #f59e0b;
}

.node-three {
  right: 20px;
  bottom: 12px;
}

.node-three i {
  background: #e5484d;
}

.visual-line {
  position: absolute;
  z-index: 1;
  width: 184px;
  height: 1px;
  background: rgba(177, 198, 232, .38);
  transform-origin: left center;
}

.visual-line-one {
  top: 83px;
  left: 86px;
  transform: rotate(20deg);
}

.visual-line-two {
  top: 194px;
  left: 169px;
  transform: rotate(28deg);
}

.showcase-title strong,
.showcase-title span {
  display: block;
}

.showcase-title strong {
  font-size: 28px;
}

.showcase-title span {
  margin-top: 8px;
  color: #9fafc5;
  font-size: 10px;
}

.login-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 54px 72px 30px;
  background: #fff;
}

.login-box {
  display: grid;
  width: min(400px, 100%);
  gap: 18px;
}

.login-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 8px;
}

.login-heading h2 {
  margin: 0;
  font-size: 22px;
}

.login-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.login-field {
  display: grid;
  gap: 8px;
  color: #3c4658;
  font-weight: 600;
}

.login-field input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #fff;
  color: var(--text);
  font-weight: 400;
}

.login-field input::placeholder {
  color: #a5adba;
}

.password-input {
  position: relative;
  display: block;
}

.password-input input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

.password-toggle:hover {
  background: #f3f5f8;
}

.password-toggle i {
  position: relative;
  width: 17px;
  height: 11px;
  border: 1.5px solid #7d8799;
  border-radius: 50%;
}

.password-toggle i::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #7d8799;
  content: "";
  transform: translate(-50%, -50%);
}

#login-error {
  min-height: 19px;
  margin: -5px 0 -7px;
  color: var(--red);
  font-size: 13px;
}

.login-submit {
  position: relative;
  width: 100%;
  height: 44px;
  font-weight: 650;
}

.submit-loading {
  display: none;
}

.login-submit.loading .submit-label {
  display: none;
}

.login-submit.loading .submit-loading {
  display: inline;
}

.login-copyright {
  margin: auto 0 0;
  padding-top: 42px;
  color: #a0a8b5;
  font-size: 11px;
}

.upgrade-panel {
  padding: 0;
  overflow: hidden;
}

.upgrade-header {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
}

.upgrade-heading h2 {
  margin: 0;
}

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

.upgrade-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.upgrade-metric {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px;
}

.upgrade-metric + .upgrade-metric {
  border-left: 1px solid var(--line);
}

.upgrade-metric span {
  color: var(--muted);
}

.upgrade-metric strong {
  font-size: 20px;
}

.upgrade-warning {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 16px 22px;
  padding: 11px 13px;
  border: 1px solid #f1d49a;
  border-radius: 5px;
  background: #fff9eb;
  color: #8a5700;
}

.upgrade-online-panel {
  margin-bottom: 16px;
}

.upgrade-release-notes {
  margin: 16px 22px;
  padding: 13px 15px;
  border-left: 3px solid var(--primary);
  background: #f7f9fc;
}

.upgrade-release-notes p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.7;
  white-space: pre-wrap;
}

.upgrade-result {
  margin: 16px 22px;
  padding: 13px 15px;
  border: 1px solid #b9e0d1;
  border-radius: 5px;
  background: #f0faf6;
}

.upgrade-result.error {
  border-color: #efc3c8;
  background: #fff4f5;
}

.upgrade-result-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.upgrade-result pre {
  max-height: 240px;
  margin: 12px 0 0;
  padding: 12px;
  overflow: auto;
  border-radius: 4px;
  background: #18202d;
  color: #eef2f7;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.upgrade-table {
  border-width: 1px 0 0;
  border-radius: 0;
  box-shadow: none;
}

.migration-file,
.migration-checksum {
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
}

.migration-file {
  color: #344054;
  word-break: break-all;
}

.migration-checksum {
  color: var(--muted);
}

.status-badge.warning {
  background: #fff3d6;
  color: #9a5b00;
}

.upgrade-table .status-badge.warning {
  margin-left: 6px;
}

.database-upgrade-panel {
  margin-bottom: 16px;
}

.database-upgrade-panel .upgrade-table td:last-child,
.database-upgrade-panel .upgrade-table th:last-child {
  white-space: nowrap;
}

.database-upgrade-panel .empty {
  min-height: 120px;
}

.upgrade-header .primary,
.upgrade-table .link-btn {
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, .38);
  opacity: 0;
  transition: opacity .16s ease;
}

.confirm-overlay.visible {
  opacity: 1;
}

.confirm-dialog {
  width: min(420px, 100%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(15, 23, 42, .2);
  transform: translateY(8px);
  transition: transform .16s ease;
}

.confirm-overlay.visible .confirm-dialog {
  transform: translateY(0);
}

.confirm-body {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 22px;
}

.confirm-symbol {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 19px;
}

.confirm-symbol.danger {
  background: #fff0f1;
  color: var(--red);
}

.confirm-copy h2 {
  margin: 1px 0 7px;
  font-size: 16px;
}

.confirm-copy p {
  margin: 0;
  color: #667085;
  line-height: 1.7;
}

.confirm-footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  background: #fafbfc;
}

.audit-remark-dialog form {
  display: grid;
}

.audit-remark-body {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.audit-remark-body h2,
.audit-remark-body p {
  margin: 0;
}

.audit-remark-body h2 {
  font-size: 16px;
}

.audit-remark-body p {
  color: #667085;
  line-height: 1.6;
}

.audit-remark-body textarea {
  width: 100%;
  min-height: 112px;
  padding: 10px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  resize: vertical;
}

.audit-remark-error {
  min-height: 18px;
  color: var(--red);
  font-size: 12px;
}

.theme-toggle {
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f141d;
  --panel: #171e29;
  --line: #293343;
  --line-strong: #3a4658;
  --text: #d9e0ea;
  --muted: #929db0;
  --primary: #62a1ff;
  --primary-hover: #7ab0ff;
  --primary-soft: #1c304b;
  --green: #2bc48a;
  --green-soft: #173a30;
  --red: #ff6b7a;
  --amber: #f5aa42;
  --shadow: 0 12px 30px rgba(0, 0, 0, .24);
}

html[data-theme="dark"] body,
html[data-theme="dark"] .workspace {
  background: var(--bg);
  color: var(--text);
}

html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .topbar,
html[data-theme="dark"] .user-dropdown,
html[data-theme="dark"] .stat,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .toolbar,
html[data-theme="dark"] .filter-panel,
html[data-theme="dark"] .form-panel,
html[data-theme="dark"] .detail-panel,
html[data-theme="dark"] .table-wrap,
html[data-theme="dark"] .drawer-panel,
html[data-theme="dark"] .confirm-dialog,
html[data-theme="dark"] .application-directory,
html[data-theme="dark"] .provider-profile,
html[data-theme="dark"] .provider-records {
  background: var(--panel);
  border-color: var(--line);
  color: var(--text);
}

html[data-theme="dark"] .topbar {
  background: rgba(23, 30, 41, .97);
}

html[data-theme="dark"] .brand-mark,
html[data-theme="dark"] .icon-btn,
html[data-theme="dark"] .ghost,
html[data-theme="dark"] .user-button,
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background: #151c27;
  border-color: var(--line-strong);
  color: var(--text);
}

html[data-theme="dark"] .theme-toggle[aria-pressed="true"] {
  background: #26364c;
  border-color: #5277aa;
  color: #ffd166;
}

html[data-theme="dark"] .brand-copy strong,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] .panel h2,
html[data-theme="dark"] .stat strong,
html[data-theme="dark"] .metric-content strong,
html[data-theme="dark"] .dashboard-order-copy strong,
html[data-theme="dark"] .dashboard-order-amount,
html[data-theme="dark"] .dashboard-ranking-copy > strong {
  color: #edf2f8;
}

html[data-theme="dark"] .menu-title,
html[data-theme="dark"] .menu-item,
html[data-theme="dark"] .user-button,
html[data-theme="dark"] .tenant-status {
  color: #c8d0dc;
}

html[data-theme="dark"] .menu-title:hover,
html[data-theme="dark"] .menu-item:hover,
html[data-theme="dark"] .user-button:hover,
html[data-theme="dark"] .user-button[aria-expanded="true"] {
  background: #202a38;
}

html[data-theme="dark"] .menu-item.active {
  background: #1c304b;
  color: #79adff;
}

html[data-theme="dark"] .mini,
html[data-theme="dark"] .dashboard-metric,
html[data-theme="dark"] .application-directory-card,
html[data-theme="dark"] .provider-fact,
html[data-theme="dark"] .provider-stat,
html[data-theme="dark"] .upgrade-metric {
  background: #141b25;
  border-color: #293343;
  color: var(--text);
}

html[data-theme="dark"] .dashboard-order-table th,
html[data-theme="dark"] .dashboard-order-table td,
html[data-theme="dark"] .dashboard-ranking-item,
html[data-theme="dark"] table th,
html[data-theme="dark"] table td {
  border-color: #293343;
}

html[data-theme="dark"] .dashboard-order-table tbody tr:hover,
html[data-theme="dark"] tbody tr:hover {
  background: #1c2634;
}

html[data-theme="dark"] .dashboard-order-avatar,
html[data-theme="dark"] .dashboard-ranking-avatar,
html[data-theme="dark"] .dashboard-order-service-image,
html[data-theme="dark"] .dashboard-ranking-index {
  background: #253041;
}

html[data-theme="dark"] .dashboard-ranking-index.rank-1 {
  background: #4b3b16;
  color: #ffd166;
}

html[data-theme="dark"] .dashboard-ranking-index.rank-2 {
  background: #303a49;
  color: #d7dde7;
}

html[data-theme="dark"] .dashboard-ranking-index.rank-3 {
  background: #4a3023;
  color: #eba778;
}

html[data-theme="dark"] .dashboard-ranking-value {
  background: #15382d;
  border-color: #286d55;
  color: #57d6a4;
}

html[data-theme="dark"] .confirm-footer,
html[data-theme="dark"] .drawer-footer {
  background: #141b25;
  border-color: var(--line);
}

html[data-theme="dark"] .empty,
html[data-theme="dark"] .dashboard-empty,
html[data-theme="dark"] .page-loading,
html[data-theme="dark"] .breadcrumb,
html[data-theme="dark"] .dashboard-panel-note,
html[data-theme="dark"] .dashboard-order-copy small,
html[data-theme="dark"] .dashboard-order-time,
html[data-theme="dark"] .dashboard-ranking-meta {
  color: #929db0;
}

@media (max-width: 1180px) {
  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .application-directory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .provider-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .provider-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    left: 0;
    transform: translateX(-100%);
    width: 232px;
    box-shadow: 12px 0 32px rgba(15, 23, 42, .12);
    transition: transform .2s ease;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9;
    border: 0;
    background: rgba(15, 23, 42, .32);
  }

  body.sidebar-open .sidebar-backdrop {
    display: block;
  }

  .sidebar-toggle {
    display: grid;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-activity-grid {
    grid-template-columns: 1fr;
  }

  .application-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid .panel + .panel {
    margin-top: 0;
  }

  .login-mask {
    padding: 18px;
  }

  .login-stage {
    grid-template-columns: minmax(0, 1fr);
    width: min(520px, 100%);
    min-height: 580px;
  }

  .login-showcase {
    min-height: 128px;
    padding: 24px;
  }

  .service-visual {
    display: none;
  }

  .showcase-title strong {
    font-size: 22px;
  }

  .login-panel {
    padding: 40px 44px 28px;
  }
}

@media (max-width: 680px) {
  .topbar {
    padding: 0 14px;
  }

  .breadcrumb,
  .tenant-status,
  #user-name,
  .user-arrow {
    display: none;
  }

  h1 {
    margin: 0;
  }

  .content {
    padding: 14px;
  }

  .application-directory {
    padding: 18px 16px;
  }

  .application-directory-section + .application-directory-section {
    margin-top: 24px;
  }

  .application-directory-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .application-directory-card {
    min-height: 90px;
    padding: 14px 16px;
  }

  .provider-detail-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .provider-detail-nav-meta {
    width: 100%;
    justify-content: space-between;
  }

  .provider-detail-warning {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .provider-detail-warning .ghost {
    width: 100%;
    margin-left: 0;
  }

  .provider-profile {
    padding: 16px;
  }

  .provider-profile-main {
    align-items: flex-start;
  }

  .provider-avatar {
    width: 70px;
    height: 70px;
  }

  .provider-facts,
  .provider-stats {
    grid-template-columns: 1fr;
  }

  .provider-fact,
  .provider-intro {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px 0;
  }

  .provider-records {
    padding: 12px;
  }

  .stats-grid,
  .work-grid,
  .todo-grid,
  .quick-grid,
  .form-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .filters input {
    flex: 1 1 140px;
    width: auto;
  }

  .filters select {
    flex: 1 1 140px;
    width: auto;
  }

  .filter-panel {
    align-items: stretch;
  }

  .upgrade-header {
    align-items: stretch;
    flex-direction: column;
  }

  .upgrade-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .upgrade-metric:nth-child(3) {
    border-left: 0;
  }

  .upgrade-metric:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .drawer {
    grid-template-rows: 58px minmax(0, 1fr) 60px;
    width: 100vw;
  }

  .drawer-overlay.visible {
    background: rgba(15, 23, 42, .2);
  }

  .drawer-footer {
    justify-content: flex-start;
    gap: 5px;
    padding-right: 9px;
    padding-left: 9px;
  }

  .drawer-footer .primary,
  .drawer-footer .ghost,
  .drawer-footer .danger {
    gap: 5px;
    padding-right: 9px;
    padding-left: 9px;
  }

  .drawer-footer .audit-action .button-label {
    display: none;
  }

  .drawer-footer .audit-action::after {
    content: attr(data-mobile-label);
  }

  .audit-detail-identity {
    overflow: hidden;
  }

  .audit-detail-summary {
    grid-template-columns: 1fr;
  }

  .audit-detail-summary > .status-badge {
    justify-self: start;
  }

  .detail-list-item {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .order-reschedule {
    gap: 20px;
    padding: 16px;
  }

  .reschedule-date-options {
    grid-template-columns: repeat(7, 76px);
  }

  .reschedule-slot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-timeline-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .order-process-panel {
    overflow-x: auto;
  }

  .order-process-track {
    min-width: 900px;
  }

  .audit-detail-summary {
    align-items: flex-start;
  }

  .audit-detail-grid,
  .audit-image-gallery {
    grid-template-columns: 1fr;
  }

  .pagination {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .login-mask {
    padding: 0;
    background: #fff;
  }

  .login-stage {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .login-showcase {
    min-height: 116px;
  }

  .showcase-title strong {
    font-size: 20px;
  }

  .login-panel {
    justify-content: flex-start;
    padding: 38px 24px 24px;
  }
}
