/*
 * E10 admin center shell.
 * This file is intentionally scoped to the standalone admin view so the
 * portal, workflow and UI-system shells keep their own navigation styles.
 */

.e10-shell.admin-mode {
  --admin-primary-width: 240px;
  --admin-secondary-width: 250px;
  --admin-folder-width: 280px;
  --admin-primary-bg: #263746;
  --admin-primary-hover: #304655;
  --admin-primary-active: #0875b9;
  --admin-workspace-bg: #f4f5f7;
  --admin-border: var(--border-color, #e5e5e5);
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  overflow: hidden;
  background: var(--admin-workspace-bg);
}

.e10-shell.admin-mode > .topbar,
.e10-shell.admin-mode > .sidebar {
  display: none;
}

.e10-shell.admin-mode > .main {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.e10-shell.admin-mode > .main > .watermark-layer {
  display: none;
}

#view-admin.admin-center-view {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: var(--admin-workspace-bg, #f4f5f7);
}

#view-admin.admin-center-view.active {
  display: block;
}

.admin-center-shell {
  position: relative;
  display: grid;
  grid-template-columns: var(--admin-primary-width, 240px) var(--admin-secondary-width, 250px) minmax(0, 1fr);
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  color: var(--main-fc, #222222);
  background: #ffffff;
  font-family: var(--regular-ff, Arial, "Microsoft YaHei", sans-serif);
  font-size: 14px;
  letter-spacing: 0;
}

.admin-center-shell button,
.admin-center-shell input {
  letter-spacing: 0;
}

/* Primary service navigation */
.admin-primary-sidebar {
  position: relative;
  z-index: 3;
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  color: rgba(255, 255, 255, 0.88);
  background: var(--admin-primary-bg, #263746);
  box-shadow: inset -1px 0 rgba(0, 0, 0, 0.12);
}

.admin-primary-brand {
  display: flex;
  height: 64px;
  min-height: 64px;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--medium-ff, "Microsoft YaHei", sans-serif);
  font-size: 17px;
  font-weight: 500;
  white-space: nowrap;
}

.admin-primary-brand-mark,
.admin-brand-mark {
  display: inline-grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
}

.admin-primary-brand .icon,
.admin-primary-brand-mark .icon,
.admin-brand-mark .icon {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
}

.admin-primary-nav {
  min-height: 0;
  flex: 1 1 auto;
  padding: 0 0 10px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  scrollbar-width: thin;
}

.admin-primary-nav::-webkit-scrollbar {
  width: 5px;
}

.admin-primary-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
}

.admin-primary-group {
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-primary-group:last-child {
  border-bottom: 0;
}

.admin-primary-group-title {
  display: flex;
  height: 34px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 13px;
  line-height: 26px;
  white-space: nowrap;
}

.admin-primary-group-title .icon {
  width: 13px;
  height: 13px;
  flex-basis: 13px;
}

.admin-primary-section-label {
  display: flex;
  height: 34px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 13px;
  line-height: 26px;
  white-space: nowrap;
}

.admin-primary-section-label b {
  display: inline-grid;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  place-items: center;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
}

.admin-primary-section-label b .icon {
  width: 13px;
  height: 13px;
  flex-basis: 13px;
}

.admin-primary-item {
  position: relative;
  display: flex;
  width: 100%;
  height: 44px;
  align-items: center;
  gap: 11px;
  padding: 0 14px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.88);
  background: transparent;
  border: 0;
  border-radius: 0;
  outline: 0;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
}

.admin-primary-item:hover,
.admin-primary-item:focus-visible {
  color: #ffffff;
  background: var(--admin-primary-hover, #304655);
}

.admin-primary-item.active,
.admin-primary-item[aria-current="page"],
.admin-primary-item.menu-open {
  color: #ffffff;
  background: var(--admin-primary-active, #0875b9);
}

.admin-primary-item.active::before,
.admin-primary-item[aria-current="page"]::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #2ba8f0;
  content: "";
}

.admin-color-grid {
  position: relative;
}

.admin-color-grid .icon {
  display: none;
}

.admin-color-grid::before {
  width: 6px;
  height: 6px;
  content: "";
  background: #ff625d;
  box-shadow: 8px 0 #ffc44d, 0 8px #557df3, 8px 8px #48c56a;
}

.admin-primary-icon {
  display: inline-grid;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  place-items: center;
  color: rgba(255, 255, 255, 0.84);
}

.admin-primary-icon .icon,
.admin-primary-item > .icon:first-child {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}

.admin-primary-label,
.admin-primary-item > span:nth-child(2) {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-primary-chevron,
.admin-primary-item > b {
  display: inline-grid;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  place-items: center;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 400;
}

.admin-primary-item > b .icon {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
}

.admin-primary-user {
  display: flex;
  min-height: 60px;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.08);
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  cursor: pointer;
  text-align: left;
}

.admin-primary-user-avatar,
.admin-user-avatar {
  display: inline-grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  color: #ffffff;
  background: #579be2;
  border-radius: 50%;
  font-size: 14px;
}

.admin-primary-user-copy,
.admin-user-copy {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  line-height: 18px;
}

.admin-primary-user-copy strong,
.admin-user-copy strong {
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-primary-user-copy small,
.admin-user-copy small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-primary-user > b {
  display: inline-grid;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  place-items: center;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 400;
}

.admin-primary-user > b .icon {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
  transform: rotate(-90deg);
}

/* Secondary navigation */
.admin-secondary-sidebar {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  border-right: 1px solid var(--admin-border, #e5e5e5);
}

.admin-secondary-header {
  display: flex;
  height: 52px;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  color: #555555;
  border-bottom: 1px solid var(--admin-border, #e5e5e5);
  font-size: 15px;
  font-weight: 500;
}

.admin-secondary-header-icon,
.admin-secondary-header > span {
  display: inline-grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  color: #f4b72b;
  border: 1px solid #f5cc6a;
  border-radius: 50%;
}

.admin-secondary-header-icon .icon,
.admin-secondary-header > span .icon {
  width: 17px;
  height: 17px;
  flex-basis: 17px;
}

.admin-secondary-menu,
.admin-secondary-sidebar > nav {
  min-height: 0;
  flex: 1 1 auto;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.admin-secondary-item {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 0 16px 0 24px;
  color: #555555;
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  text-align: left;
}

.admin-secondary-item:hover,
.admin-secondary-item:focus-visible {
  color: #0875b9;
  background: #f7f9fb;
  outline: 0;
}

.admin-secondary-item.active,
.admin-secondary-item[aria-current="page"] {
  color: #0875b9;
  background: #f1f2f4;
}

.admin-secondary-item.active::before,
.admin-secondary-item[aria-current="page"]::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #0875b9;
  content: "";
}

.admin-secondary-item .icon {
  width: 17px;
  height: 17px;
  flex-basis: 17px;
  color: #999999;
}

.admin-secondary-item > span:first-child {
  display: inline-grid;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  place-items: center;
  color: #999999;
}

.admin-secondary-item > span:nth-child(2) {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-secondary-item > b {
  display: inline-grid;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  place-items: center;
  color: #aaaaaa;
  font-weight: 400;
}

.admin-secondary-item > b .icon {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
}

.admin-secondary-item.active .icon,
.admin-secondary-item[aria-current="page"] .icon {
  color: #0875b9;
}

.admin-secondary-item-label {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-secondary-chevron {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  color: #aaaaaa;
}

/* Workspace */
.admin-center-workspace {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--admin-workspace-bg, #f4f5f7);
}

.admin-center-toolbar {
  display: flex;
  height: 60px;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  background: var(--admin-workspace-bg, #f4f5f7);
  border-bottom: 1px solid var(--admin-border, #e5e5e5);
}

.admin-center-toolbar-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  color: #222222;
  font-family: var(--medium-ff, "Microsoft YaHei", sans-serif);
  font-size: 16px;
  font-weight: 600;
}

.admin-center-toolbar-title .icon {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
  color: #e9ab23;
}

.admin-center-toolbar-title span,
.admin-center-toolbar-title strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-workspace-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  color: #222222;
}

.admin-workspace-heading > span {
  display: inline-grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  color: #e9ab23;
  border: 1px solid #f1ca6b;
  border-radius: 2px;
  background: #fffaf0;
}

.admin-workspace-heading > span .icon {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}

.admin-workspace-heading h1 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #222222;
  font-family: var(--medium-ff, "Microsoft YaHei", sans-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-center-toolbar-actions,
.admin-workspace-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.admin-workspace-actions .plain-icon-button {
  display: inline-grid;
  width: 34px;
  min-width: 34px;
  padding: 0;
  place-items: center;
  color: #888888;
  background: transparent;
  border: 0;
}

.admin-workspace-actions .plain-icon-button:hover,
.admin-workspace-actions .plain-icon-button:focus-visible {
  color: #0875b9;
  background: #e8edf1;
  outline: 0;
}

.admin-center-toolbar .btn,
.admin-center-toolbar button {
  height: 36px;
  min-width: 70px;
  padding: 0 18px;
  border-radius: 2px;
}

.admin-center-toolbar .btn-primary,
.admin-center-toolbar button.primary {
  color: #ffffff;
  background: #0875b9;
  border-color: #0875b9;
}

.admin-center-toolbar button:disabled,
.admin-center-toolbar .btn:disabled {
  color: #ffffff;
  background: #cfcfcf;
  border-color: #cfcfcf;
  cursor: not-allowed;
}

.admin-center-content,
.admin-center-body,
.admin-workspace-body {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  margin: 18px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--admin-border, #e5e5e5);
}

.admin-folder-pane {
  display: flex;
  width: var(--admin-folder-width, 280px);
  min-width: var(--admin-folder-width, 280px);
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  border-right: 1px solid var(--admin-border, #e5e5e5);
}

.admin-folder-search {
  position: relative;
  padding: 12px 18px;
  border-bottom: 1px solid #eeeeee;
}

.admin-folder-search .icon {
  position: absolute;
  top: 21px;
  left: 29px;
  width: 15px;
  height: 15px;
  color: #aaaaaa;
  pointer-events: none;
}

.admin-folder-search input {
  width: 100%;
  height: 34px;
  padding: 0 12px 0 34px;
  color: #555555;
  background: #ffffff;
  border: 1px solid #dfe3e7;
  border-radius: 2px;
  outline: 0;
}

.admin-folder-search input:focus {
  border-color: #0875b9;
}

.admin-folder-tree {
  min-height: 0;
  flex: 1 1 auto;
  padding: 4px 0;
  overflow: auto;
}

.admin-folder-row {
  display: flex;
  width: 100%;
  height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  color: #555555;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
}

.admin-folder-row:hover {
  background: #f7f8fa;
}

.admin-folder-row.active,
.admin-folder-row[aria-current="true"] {
  color: #333333;
  background: #f1f1f1;
}

.admin-folder-row .icon {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
  color: #f7bd2e;
}

.admin-folder-row .admin-folder-toggle {
  width: 12px;
  height: 12px;
  flex-basis: 12px;
  color: #a5a5a5;
}

.admin-folder-row > b {
  display: inline-grid;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  place-items: center;
  color: #a5a5a5;
  font-weight: 400;
}

.admin-folder-row > b .icon {
  width: 12px;
  height: 12px;
  flex-basis: 12px;
  color: #a5a5a5;
}

.admin-folder-row > span {
  display: inline-grid;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  place-items: center;
}

.admin-folder-row > span:last-child:not(:first-child) {
  display: block;
  width: auto;
  height: auto;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-config-pane {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
}

.admin-config-tabs {
  display: flex;
  height: 48px;
  min-height: 48px;
  align-items: stretch;
  gap: 26px;
  padding: 0 22px;
  overflow-x: auto;
  overflow-y: hidden;
  border-bottom: 1px solid var(--admin-border, #e5e5e5);
  scrollbar-width: none;
}

.admin-config-tabs::-webkit-scrollbar {
  display: none;
}

.admin-config-tab,
.admin-config-tabs > button {
  position: relative;
  display: inline-flex;
  min-width: max-content;
  align-items: center;
  padding: 0;
  color: #666666;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.admin-config-tab:hover,
.admin-config-tab:focus-visible,
.admin-config-tabs > button:hover,
.admin-config-tabs > button:focus-visible {
  color: #0875b9;
  outline: 0;
}

.admin-config-tab.active,
.admin-config-tab[aria-selected="true"],
.admin-config-tabs > button.active,
.admin-config-tabs > button[aria-current="page"] {
  color: #0875b9;
}

.admin-config-tab.active::after,
.admin-config-tab[aria-selected="true"]::after,
.admin-config-tabs > button.active::after,
.admin-config-tabs > button[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: #0875b9;
  content: "";
}

.admin-config-main,
.admin-config-content {
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  padding: 20px;
  overflow: auto;
  background: #ffffff;
}

.admin-config-table {
  width: 100%;
  min-width: 660px;
  color: #555555;
  background: #ffffff;
  border: 1px solid var(--admin-border, #e5e5e5);
  border-collapse: collapse;
  table-layout: fixed;
}

.admin-config-table th {
  height: 46px;
  padding: 0 14px;
  background: #fbfbfb;
  border-bottom: 1px solid var(--admin-border, #e5e5e5);
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}

.admin-config-table td {
  height: 46px;
  padding: 0 14px;
  border-bottom: 1px solid #eeeeee;
}

.admin-config-table .admin-check-column {
  width: 54px;
  text-align: center;
}

.admin-config-table .admin-id-column {
  width: 130px;
}

.admin-config-table .admin-order-column {
  width: 100px;
  text-align: center;
}

.admin-config-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #0875b9;
}

.admin-config-table .admin-empty-row td {
  height: 52px;
  color: #888888;
  text-align: center;
}

.admin-config-table .admin-empty-row span {
  display: none;
}

.admin-config-table .admin-empty-row p {
  margin: 0;
}

.admin-empty-table {
  width: 100%;
  min-width: 660px;
  color: #555555;
  border: 1px solid var(--admin-border, #e5e5e5);
  border-collapse: collapse;
  table-layout: fixed;
}

.admin-empty-table th {
  height: 46px;
  padding: 0 14px;
  background: #fbfbfb;
  border-bottom: 1px solid var(--admin-border, #e5e5e5);
  font-weight: 500;
  text-align: left;
}

.admin-empty-table td {
  height: 46px;
  padding: 0 14px;
  border-bottom: 1px solid #eeeeee;
}

.admin-empty-table .admin-empty-cell {
  height: 48px;
  color: #888888;
  text-align: center;
}

.admin-table-scroll {
  max-width: 100%;
  overflow: auto;
}

/* All-services mega panel */
.admin-service-mask {
  position: fixed;
  z-index: 1190;
  inset: 0;
  display: block;
  visibility: hidden;
  background: transparent;
  opacity: 0;
  pointer-events: none;
}

.admin-service-mask.open,
.admin-service-mask[aria-hidden="false"] {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.admin-service-mask.open[hidden],
.admin-service-mask[aria-hidden="false"][hidden] {
  display: block !important;
}

#adminServiceMega.admin-service-mega,
.admin-service-mega {
  position: fixed;
  z-index: 1200;
  top: 0;
  bottom: 0;
  left: var(--admin-primary-width, 240px);
  display: flex;
  visibility: hidden;
  width: min(670px, calc(100vw - var(--admin-primary-width, 240px)));
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 4px 0 14px rgba(22, 38, 51, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-10px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms;
}

#adminServiceMega.admin-service-mega.open,
#adminServiceMega.admin-service-mega[aria-hidden="false"],
.admin-service-mega.open,
.admin-service-mega[aria-hidden="false"] {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  transition-delay: 0s;
}

#adminServiceMega.admin-service-mega.open[hidden],
#adminServiceMega.admin-service-mega[aria-hidden="false"][hidden],
.admin-service-mega.open[hidden],
.admin-service-mega[aria-hidden="false"][hidden] {
  display: flex !important;
}

.admin-service-search {
  position: relative;
  display: flex;
  height: 64px;
  min-height: 64px;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid var(--admin-border, #e5e5e5);
}

.admin-service-search > label {
  position: relative;
  display: block;
  min-width: 0;
  flex: 1 1 auto;
}

.admin-service-search .icon {
  position: absolute;
  left: 0;
  width: 20px;
  height: 20px;
  color: #9aa1a7;
  pointer-events: none;
}

.admin-service-search input {
  width: 100%;
  height: 40px;
  padding: 0 44px 0 32px;
  color: #555555;
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  outline: 0;
  font-size: 14px;
}

.admin-service-search input:focus {
  border-bottom-color: #0875b9;
}

.admin-service-search-action,
.admin-service-search > button {
  position: absolute;
  right: 18px;
  display: inline-grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  color: #90979d;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.admin-service-search > button .icon {
  position: static;
  width: 18px;
  height: 18px;
  color: currentColor;
}

.admin-service-scroll {
  min-height: 0;
  flex: 1 1 auto;
  padding: 14px 20px 30px;
  overflow-x: hidden;
  overflow-y: auto;
}

.admin-service-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 26px;
  row-gap: 22px;
}

.admin-service-group {
  min-width: 0;
  margin: 0 0 20px;
}

.admin-service-group h3,
.admin-service-group h2,
.admin-service-group-title {
  margin: 0 0 10px;
  color: #333333;
  font-family: var(--medium-ff, "Microsoft YaHei", sans-serif);
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
}

.admin-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 18px;
  row-gap: 2px;
}

.admin-service-grid > button {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 7px 8px;
  overflow: hidden;
  color: #666666;
  background: transparent;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  line-height: 20px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-service-grid > button:hover,
.admin-service-grid > button:focus-visible,
.admin-service-grid > button.selected,
.admin-service-grid > button.active {
  color: #0875b9;
  background: #e8f1f8;
  outline: 0;
}

.admin-service-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-service-link {
  display: block;
  width: 100%;
  min-height: 32px;
  padding: 6px 8px;
  overflow: hidden;
  color: #666666;
  background: transparent;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  line-height: 20px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-service-link:hover,
.admin-service-link:focus-visible,
.admin-service-link.active {
  color: #0875b9;
  background: #e8f1f8;
  outline: 0;
}

@media (max-width: 1080px) {
  .e10-shell.admin-mode {
    --admin-primary-width: 220px;
    --admin-secondary-width: 220px;
    --admin-folder-width: 240px;
  }

  .admin-primary-item {
    padding-right: 12px;
    padding-left: 12px;
  }

  .admin-secondary-item {
    padding-right: 12px;
    padding-left: 18px;
  }

  .admin-center-content,
  .admin-center-body,
  .admin-workspace-body {
    margin: 12px;
  }

  .admin-service-groups {
    column-gap: 18px;
  }

  .admin-service-grid {
    column-gap: 14px;
  }
}

@media (max-width: 760px) {
  .e10-shell.admin-mode {
    --admin-primary-width: 56px;
    --admin-secondary-width: 0px;
    --admin-folder-width: 220px;
  }

  .admin-center-shell {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .admin-primary-brand {
    height: 56px;
    min-height: 56px;
    justify-content: center;
    padding: 0;
  }

  .admin-primary-brand-copy,
  .admin-primary-brand > span:not(.admin-primary-brand-mark):not(.admin-brand-mark),
  .admin-primary-brand > strong,
  .admin-primary-group-title,
  .admin-primary-section-label,
  .admin-primary-label,
  .admin-primary-item > span:nth-child(2),
  .admin-primary-chevron,
  .admin-primary-item > b,
  .admin-primary-user-copy,
  .admin-user-copy,
  .admin-primary-user > .icon,
  .admin-primary-user > b {
    display: none;
  }

  .admin-primary-brand .admin-brand-mark,
  .admin-primary-brand .admin-primary-brand-mark {
    display: inline-grid;
  }

  .admin-primary-group {
    border-bottom: 0;
  }

  .admin-primary-item {
    width: 56px;
    height: 44px;
    justify-content: center;
    gap: 0;
    padding: 0;
  }

  .admin-primary-icon,
  .admin-primary-item > .icon:first-child {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }

  .admin-primary-user {
    min-height: 56px;
    justify-content: center;
    padding: 0;
  }

  .admin-primary-user-avatar,
  .admin-user-avatar {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .admin-secondary-sidebar {
    display: none;
  }

  .admin-center-workspace {
    grid-column: 2;
  }

  .admin-center-toolbar {
    height: 54px;
    min-height: 54px;
    padding: 0 12px;
  }

  .admin-center-toolbar .btn,
  .admin-center-toolbar button {
    min-width: 58px;
    height: 32px;
    padding: 0 12px;
  }

  .admin-center-content,
  .admin-center-body,
  .admin-workspace-body {
    margin: 8px;
  }

  .admin-config-tabs {
    gap: 20px;
    padding: 0 16px;
  }

  .admin-config-main,
  .admin-config-content {
    padding: 14px;
  }

  #adminServiceMega.admin-service-mega,
  .admin-service-mega {
    left: 56px;
    width: calc(100vw - 56px);
  }

  .admin-service-groups {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 420px) {
  .admin-center-toolbar-title {
    max-width: calc(100% - 88px);
    font-size: 14px;
  }

  .admin-center-toolbar-title .icon {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }

  .admin-center-toolbar-actions {
    gap: 6px;
  }

  .admin-center-toolbar-actions > :not(:first-child),
  .admin-workspace-actions > :not(:first-child),
  .admin-toolbar-caption {
    display: none;
  }

  .admin-center-content,
  .admin-center-body,
  .admin-workspace-body {
    margin: 6px;
  }

  .admin-folder-pane {
    display: none;
  }

  .admin-config-tabs {
    height: 44px;
    min-height: 44px;
    gap: 18px;
    padding: 0 12px;
  }

  .admin-config-main,
  .admin-config-content {
    padding: 10px;
  }

  .admin-service-search {
    height: 56px;
    min-height: 56px;
    padding: 0 14px;
  }

  .admin-service-search .icon {
    left: 14px;
  }

  .admin-service-scroll {
    padding: 12px 14px 24px;
  }

  .admin-service-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 18px;
  }


  .admin-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 8px;
  }

  .admin-service-link {
    padding-right: 4px;
    padding-left: 4px;
  }
}
